diff --git a/404.html b/404.html index 367fc32e68..bd0422bd84 100644 --- a/404.html +++ b/404.html @@ -9,9 +9,9 @@ - + - + diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cf8239e03..82628270c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ ## Changelog +### 0.22.0 2024-08-06 + +#### Added + +- Added insects and ocean critters checklists to dashboard +- Added small loading indicator when opening an item card. + +#### Changed + +- Added version to assets to bust caches. This should reduce/remove cases where old assets are shown. + ### 0.21.1 2024-07-27 #### Changed diff --git a/assets/beta/database/dashboards/museum-insects.json b/assets/beta/database/dashboards/museum-insects.json new file mode 100644 index 0000000000..3fbeebfad5 --- /dev/null +++ b/assets/beta/database/dashboards/museum-insects.json @@ -0,0 +1,698 @@ +[ + { + "id": "item_131001", + "iconName": "Maple_Leafcutter_Moth_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_131002", + "iconName": "Polyphemus_Moth_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131003", + "iconName": "Ghost_Mantis_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131004", + "iconName": "Tiger_Beetle_Sprite", + "seasons": [ + "Spring" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131005", + "iconName": "Harpalus_Beetle_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131006", + "iconName": "Firefly_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_131007", + "iconName": "Cecropia_Caterpillar_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131008", + "iconName": "Pipevine_Swallowtail_Butterfly_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131009", + "iconName": "Little_Wood_Satyr_Butterfly_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131010", + "iconName": "Wolf_Spider_Sprite", + "seasons": [ + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131011", + "iconName": "Man-faced_stink_bug_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131012", + "iconName": "Wasp_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_131013", + "iconName": "Cricket_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_131014", + "iconName": "Moth_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_131015", + "iconName": "Pine_Sphinx_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131016", + "iconName": "Luna_Moth_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131017", + "iconName": "Striped_garden_caterpillar_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131018", + "iconName": "Magnolia_green_jumper_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Rain", + "Storm" + ] + }, + { + "id": "item_132001", + "iconName": "Yucca_Moth_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132002", + "iconName": "Puss_Moth_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132003", + "iconName": "Lady_Beetle_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132004", + "iconName": "Violin_Beetle_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132005", + "iconName": "Scarites_Beetle_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132006", + "iconName": "Orchid_Mantis_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132007", + "iconName": "Fly_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132008", + "iconName": "Blue_Morpho_Butterfly_Sprite", + "seasons": [ + "Summer" + ], + "weathers": [ + "Windy" + ] + }, + { + "id": "item_132009", + "iconName": "Crowned_Hairstreak_Butterfly_Sprite", + "seasons": [ + "Summer" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_132010", + "iconName": "Widow_Spider_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132011", + "iconName": "Snail_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132012", + "iconName": "Centipede_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132013", + "iconName": "Hickory_Horned_Devil_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_132014", + "iconName": "Western_Tiger_Swallowtail_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_132015", + "iconName": "Saddleback_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133001", + "iconName": "Assam_silk_moth_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_133002", + "iconName": "Dragonfly_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133003", + "iconName": "Rove_Beetle_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_133004", + "iconName": "Soldier_Beetle_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133005", + "iconName": "Praying_Mantis_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_133006", + "iconName": "Tiger_Swallowtail_Butterfly_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_133007", + "iconName": "Janetta_Forester_Butterfly_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_133008", + "iconName": "Tarantula_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_133009", + "iconName": "Eastern_Black_Swallowtail_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [ + "Rain", + "Storm" + ] + }, + { + "id": "item_133010", + "iconName": "Gulf_Fritillary_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133011", + "iconName": "Red_Admiral_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_133012", + "iconName": "Olivewing_Butterfly_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_134001", + "iconName": "Atlas_Moth_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_134002", + "iconName": "Grasshopper_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Rain", + "Windy", + "Blizzard", + "Storm" + ] + }, + { + "id": "item_134003", + "iconName": "Ground_beetle_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Rain", + "Windy", + "Blizzard", + "Storm" + ] + }, + { + "id": "item_134004", + "iconName": "Leaf_Beetle_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_134005", + "iconName": "Monarch_Caterpillar_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Rain", + "Windy" + ] + }, + { + "id": "item_134006", + "iconName": "Spicebush_Swallowtail_Butterfly_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_134007", + "iconName": "Birdwing_Butterfly_Sprite", + "seasons": [ + "Winter" + ], + "weathers": [ + "Sunny", + "Rain" + ] + }, + { + "id": "item_134009", + "iconName": "Banded_woollybear_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Windy", + "Blizzard" + ] + } +] \ No newline at end of file diff --git a/assets/beta/database/dashboards/museum-ocean-critters.json b/assets/beta/database/dashboards/museum-ocean-critters.json new file mode 100644 index 0000000000..19d96d17f8 --- /dev/null +++ b/assets/beta/database/dashboards/museum-ocean-critters.json @@ -0,0 +1,436 @@ +[ + { + "id": "item_72032", + "iconName": "Arrow_Crab_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72033", + "iconName": "Common_Starfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72034", + "iconName": "Flowerhat_Jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72035", + "iconName": "Tigertail_Seahorse_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72036", + "iconName": "Jayakar_Seahorse_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72037", + "iconName": "Skunk_Cleaner_Shrimp_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72038", + "iconName": "Eight_armed_sea_star_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72039", + "iconName": "Whelk_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72040", + "iconName": "Mantis_Shrimp_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72041", + "iconName": "Blue_Lobster_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72042", + "iconName": "Giraffe_seahorse_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72043", + "iconName": "Hermit_Crab_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72044", + "iconName": "Mauve_Stinger_Jellyfish_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72046", + "iconName": "CannonBall_Jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72047", + "iconName": "Upside-down_jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72048", + "iconName": "Pom-pom_crab_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72049", + "iconName": "Sea_Slug_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72050", + "iconName": "Venuss_flower_basket_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72051", + "iconName": "Bloodbelly_comb_jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72052", + "iconName": "Pink_Meanie_Jellyfish_Sprite", + "seasons": [ + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72053", + "iconName": "Atolla_jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72054", + "iconName": "White_Spotted_Jellyfish_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72055", + "iconName": "Cauliflower_Jellyfish_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72056", + "iconName": "Horseshoe_Crab_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72057", + "iconName": "Blue_Crab_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72058", + "iconName": "Sexy_Shrimp_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72059", + "iconName": "Harlequin_Shrimp_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72060", + "iconName": "Calico_Lobster_Sprite", + "seasons": [ + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72061", + "iconName": "Split_Colored_Lobster_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72062", + "iconName": "Cotton_Candy_Lobster_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72063", + "iconName": "Sunflower_sea_star_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72064", + "iconName": "Crown_of_Thorns_Starfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72065", + "iconName": "Brisingida_Starfish_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72066", + "iconName": "Red_Knob_Starfish_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72067", + "iconName": "Blue_Starfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72068", + "iconName": "Leafy_Sea_Dragon_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72069", + "iconName": "Hedgehog_Seahorse_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72070", + "iconName": "Shiho_Seahorse_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72071", + "iconName": "Sea_Anemone_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72072", + "iconName": "Chambered_nautilus_Sprite", + "seasons": [ + "Spring" + ], + "weathers": [] + }, + { + "id": "item_72073", + "iconName": "Giant_Isopod_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72074", + "iconName": "Fuschia_flatworm_Sprite", + "seasons": [ + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72075", + "iconName": "Ruby_seadragon_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72076", + "iconName": "Stone_Crab_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72077", + "iconName": "Yeti_Crab_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + } +] \ No newline at end of file diff --git a/assets/latest-changelog.md b/assets/latest-changelog.md index f1da482a52..a2b177c093 100644 --- a/assets/latest-changelog.md +++ b/assets/latest-changelog.md @@ -1 +1 @@ -{"version":"0.21.1","date":"2024-07-27","body":"\r\n#### Changed\r\n\r\n- Fixed fish with date ranges not being shown properly in dashboard.\r\n- Fixed date/configuration for dashboard (My Guide) not being persisted.\r\n- Fixed missing icons for guardian altar\r\n- Show guardian altar under locations -> Lake temple\r\n\r"} \ No newline at end of file +{"version":"0.22.0","date":"2024-08-06","body":"\r\n#### Added\r\n\r\n- Added insects and ocean critters checklists to dashboard\r\n- Added small loading indicator when opening an item card.\r\n\r\n#### Changed\r\n\r\n- Added version to assets to bust caches. This should reduce/remove cases where old assets are shown.\r\n\r"} \ No newline at end of file diff --git a/assets/live/database/dashboards/museum-insects.json b/assets/live/database/dashboards/museum-insects.json new file mode 100644 index 0000000000..3fbeebfad5 --- /dev/null +++ b/assets/live/database/dashboards/museum-insects.json @@ -0,0 +1,698 @@ +[ + { + "id": "item_131001", + "iconName": "Maple_Leafcutter_Moth_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_131002", + "iconName": "Polyphemus_Moth_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131003", + "iconName": "Ghost_Mantis_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131004", + "iconName": "Tiger_Beetle_Sprite", + "seasons": [ + "Spring" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131005", + "iconName": "Harpalus_Beetle_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131006", + "iconName": "Firefly_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_131007", + "iconName": "Cecropia_Caterpillar_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131008", + "iconName": "Pipevine_Swallowtail_Butterfly_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131009", + "iconName": "Little_Wood_Satyr_Butterfly_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131010", + "iconName": "Wolf_Spider_Sprite", + "seasons": [ + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131011", + "iconName": "Man-faced_stink_bug_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131012", + "iconName": "Wasp_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_131013", + "iconName": "Cricket_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_131014", + "iconName": "Moth_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_131015", + "iconName": "Pine_Sphinx_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_131016", + "iconName": "Luna_Moth_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131017", + "iconName": "Striped_garden_caterpillar_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_131018", + "iconName": "Magnolia_green_jumper_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Rain", + "Storm" + ] + }, + { + "id": "item_132001", + "iconName": "Yucca_Moth_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132002", + "iconName": "Puss_Moth_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132003", + "iconName": "Lady_Beetle_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132004", + "iconName": "Violin_Beetle_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132005", + "iconName": "Scarites_Beetle_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132006", + "iconName": "Orchid_Mantis_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132007", + "iconName": "Fly_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132008", + "iconName": "Blue_Morpho_Butterfly_Sprite", + "seasons": [ + "Summer" + ], + "weathers": [ + "Windy" + ] + }, + { + "id": "item_132009", + "iconName": "Crowned_Hairstreak_Butterfly_Sprite", + "seasons": [ + "Summer" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_132010", + "iconName": "Widow_Spider_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132011", + "iconName": "Snail_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_132012", + "iconName": "Centipede_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_132013", + "iconName": "Hickory_Horned_Devil_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_132014", + "iconName": "Western_Tiger_Swallowtail_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_132015", + "iconName": "Saddleback_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133001", + "iconName": "Assam_silk_moth_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_133002", + "iconName": "Dragonfly_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133003", + "iconName": "Rove_Beetle_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Storm" + ] + }, + { + "id": "item_133004", + "iconName": "Soldier_Beetle_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133005", + "iconName": "Praying_Mantis_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_133006", + "iconName": "Tiger_Swallowtail_Butterfly_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_133007", + "iconName": "Janetta_Forester_Butterfly_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_133008", + "iconName": "Tarantula_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [ + "Sunny" + ] + }, + { + "id": "item_133009", + "iconName": "Eastern_Black_Swallowtail_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [ + "Rain", + "Storm" + ] + }, + { + "id": "item_133010", + "iconName": "Gulf_Fritillary_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_133011", + "iconName": "Red_Admiral_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy" + ] + }, + { + "id": "item_133012", + "iconName": "Olivewing_Butterfly_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_134001", + "iconName": "Atlas_Moth_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_134002", + "iconName": "Grasshopper_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Rain", + "Windy", + "Blizzard", + "Storm" + ] + }, + { + "id": "item_134003", + "iconName": "Ground_beetle_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Rain", + "Windy", + "Blizzard", + "Storm" + ] + }, + { + "id": "item_134004", + "iconName": "Leaf_Beetle_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [ + "Sunny", + "Windy" + ] + }, + { + "id": "item_134005", + "iconName": "Monarch_Caterpillar_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Rain", + "Windy" + ] + }, + { + "id": "item_134006", + "iconName": "Spicebush_Swallowtail_Butterfly_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [ + "Sunny", + "Rain", + "Windy", + "Storm" + ] + }, + { + "id": "item_134007", + "iconName": "Birdwing_Butterfly_Sprite", + "seasons": [ + "Winter" + ], + "weathers": [ + "Sunny", + "Rain" + ] + }, + { + "id": "item_134009", + "iconName": "Banded_woollybear_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [ + "Sunny", + "Snow", + "Windy", + "Blizzard" + ] + } +] \ No newline at end of file diff --git a/assets/live/database/dashboards/museum-ocean-critters.json b/assets/live/database/dashboards/museum-ocean-critters.json new file mode 100644 index 0000000000..19d96d17f8 --- /dev/null +++ b/assets/live/database/dashboards/museum-ocean-critters.json @@ -0,0 +1,436 @@ +[ + { + "id": "item_72032", + "iconName": "Arrow_Crab_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72033", + "iconName": "Common_Starfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72034", + "iconName": "Flowerhat_Jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72035", + "iconName": "Tigertail_Seahorse_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72036", + "iconName": "Jayakar_Seahorse_Sprite", + "seasons": [ + "Spring", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72037", + "iconName": "Skunk_Cleaner_Shrimp_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72038", + "iconName": "Eight_armed_sea_star_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72039", + "iconName": "Whelk_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72040", + "iconName": "Mantis_Shrimp_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72041", + "iconName": "Blue_Lobster_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72042", + "iconName": "Giraffe_seahorse_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72043", + "iconName": "Hermit_Crab_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72044", + "iconName": "Mauve_Stinger_Jellyfish_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72046", + "iconName": "CannonBall_Jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72047", + "iconName": "Upside-down_jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72048", + "iconName": "Pom-pom_crab_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72049", + "iconName": "Sea_Slug_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72050", + "iconName": "Venuss_flower_basket_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72051", + "iconName": "Bloodbelly_comb_jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72052", + "iconName": "Pink_Meanie_Jellyfish_Sprite", + "seasons": [ + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72053", + "iconName": "Atolla_jellyfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72054", + "iconName": "White_Spotted_Jellyfish_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72055", + "iconName": "Cauliflower_Jellyfish_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72056", + "iconName": "Horseshoe_Crab_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72057", + "iconName": "Blue_Crab_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72058", + "iconName": "Sexy_Shrimp_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72059", + "iconName": "Harlequin_Shrimp_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72060", + "iconName": "Calico_Lobster_Sprite", + "seasons": [ + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72061", + "iconName": "Split_Colored_Lobster_Sprite", + "seasons": [ + "Spring", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72062", + "iconName": "Cotton_Candy_Lobster_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72063", + "iconName": "Sunflower_sea_star_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + }, + { + "id": "item_72064", + "iconName": "Crown_of_Thorns_Starfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72065", + "iconName": "Brisingida_Starfish_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72066", + "iconName": "Red_Knob_Starfish_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72067", + "iconName": "Blue_Starfish_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72068", + "iconName": "Leafy_Sea_Dragon_Sprite", + "seasons": [ + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72069", + "iconName": "Hedgehog_Seahorse_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72070", + "iconName": "Shiho_Seahorse_Sprite", + "seasons": [ + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72071", + "iconName": "Sea_Anemone_Sprite", + "seasons": [ + "Spring", + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72072", + "iconName": "Chambered_nautilus_Sprite", + "seasons": [ + "Spring" + ], + "weathers": [] + }, + { + "id": "item_72073", + "iconName": "Giant_Isopod_Sprite", + "seasons": [ + "Summer", + "Fall" + ], + "weathers": [] + }, + { + "id": "item_72074", + "iconName": "Fuschia_flatworm_Sprite", + "seasons": [ + "Summer", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72075", + "iconName": "Ruby_seadragon_Sprite", + "seasons": [ + "Summer", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72076", + "iconName": "Stone_Crab_Sprite", + "seasons": [ + "Spring", + "Fall", + "Winter" + ], + "weathers": [] + }, + { + "id": "item_72077", + "iconName": "Yeti_Crab_Sprite", + "seasons": [ + "Spring", + "Summer" + ], + "weathers": [] + } +] \ No newline at end of file diff --git a/chunk-CUAKORE3.js b/chunk-2DMGPU4G.js similarity index 92% rename from chunk-CUAKORE3.js rename to chunk-2DMGPU4G.js index 66c6f740ad..738a573ff5 100644 --- a/chunk-CUAKORE3.js +++ b/chunk-2DMGPU4G.js @@ -1 +1 @@ -import{f as q,g as A,h as Y,i as j,j as z,k as G,l as J,m as K,t as Q}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as c,Ca as S,Fa as m,Ga as T,Ha as w,Ia as y,Ib as $,Ja as s,Ka as r,La as d,Ma as R,Na as U,Nd as F,Ne as M,Ob as B,P as v,Pa as u,Pd as H,Ra as I,Sa as a,Sd as W,V as C,W as h,db as x,eb as V,fb as N,ib as b,jb as D,ka as p,kb as P,mb as k,me as L,mf as O,qb as f,rb as g,ta as E,wa as _}from"./chunk-4KZEYPV3.js";function X(e,i){if(e&1&&d(0,"app-shop-item-process-data-details",1),e&2){let t=a();c("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&d(0,"app-shop-item-data-details",2),e&2){let t=a();c("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&d(0,"app-item-upgrade-details",3),e&2){let t=a();c("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&d(0,"app-opening-hours",6),e&2&&c("openingHours",i)}function ie(e,i){if(e&1&&(_(0,te,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,n=a();m((t=g(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let l=C(t).$implicit,o=a(4);return h(o.showDetails(l))}),r()}if(e&2){let t=i.$implicit,n=a(4);S("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),c("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(s(0,"div",9),w(1,ne,1,3,"app-item-icon",11,T),r()),e&2){let t=a();p(),y(t)}}function ae(e,i){if(e&1&&d(0,"app-shop-item-data-table",10),e&2){let t=a();c("dataSource",t)}}function pe(e,i){if(e&1){let t=u();s(0,"app-data-filter",8),P("showTableChange",function(l){C(t);let o=a(2);return D(o.showTable,l)||(o.showTable=l),h(l)}),r(),_(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);b("showTable",t.showTable),p(),m(t.showTable?-1:1),p(),m(t.showTable?2:-1)}}function le(e,i){if(e&1&&(s(0,"h2",7),x(1,"Stock list"),r(),_(2,pe,3,3),f(3,"async")),e&2){let t,n=a();p(2),m((t=g(3,1,n.shopItemData$))?2:-1,t)}}function me(e,i){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let l=C(t).$implicit,o=a(4);return h(o.showProcessDetails(l))}),r()}if(e&2){let t=i.$implicit,n=a(4);S("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),c("itemName",t.input.iconName)}}function re(e,i){if(e&1&&(s(0,"div",9),w(1,me,1,3,"app-item-icon",11,T),r()),e&2){let t=a();p(),y(t)}}function se(e,i){if(e&1&&d(0,"app-shop-item-process-table",10),e&2){let t=a();c("dataSource",t)}}function ce(e,i){if(e&1){let t=u();s(0,"app-data-filter",8),P("showTableChange",function(l){C(t);let o=a(2);return D(o.showProcessingTable,l)||(o.showProcessingTable=l),h(l)}),r(),_(1,re,3,0,"div",9)(2,se,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);b("showTable",t.showProcessingTable),p(),m(t.showProcessingTable?-1:1),p(),m(t.showProcessingTable?2:-1)}}function _e(e,i){if(e&1&&(s(0,"h2",7),x(1,"Item processing"),r(),_(2,ce,3,3),f(3,"async")),e&2){let t,n=a();p(2),m((t=g(3,1,n.itemProcessing$))?2:-1,t)}}function de(e,i){if(e&1){let t=u();s(0,"app-item-icon",14),I("click",function(){let l=C(t).$implicit,o=a(4);return h(o.showItemUpgradeDetails(l))}),r()}if(e&2){let t=i.$implicit,n=a(4);S("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),c("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(s(0,"div",9),w(1,de,1,4,"app-item-icon",13,T),r()),e&2){let t=a();p(),y(t)}}function he(e,i){if(e&1&&d(0,"app-item-upgrade-table",10),e&2){let t=a();c("dataSource",t)}}function ue(e,i){if(e&1){let t=u();s(0,"app-data-filter",8),P("showTableChange",function(l){C(t);let o=a(2);return D(o.showPItemUpgradeTable,l)||(o.showPItemUpgradeTable=l),h(l)}),r(),_(1,Ce,3,0,"div",9)(2,he,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);b("showTable",t.showPItemUpgradeTable),p(),m(t.showPItemUpgradeTable?-1:1),p(),m(t.showPItemUpgradeTable?2:-1)}}function xe(e,i){if(e&1&&(s(0,"h2",7),x(1),r(),_(2,ue,3,3),f(3,"async")),e&2){let t,n=a();p(),V(n.upgradeHeaderText),p(),m((t=g(3,2,n.itemUpgrade$))?2:-1,t)}}var $e=(()=>{let i=class i extends q{constructor(){super(),this.shopName="ramen-shop",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=v({type:i,selectors:[["app-ramen-shop"]],standalone:!0,features:[E,k],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(l,o){l&1&&(s(0,"app-list-detail-container"),R(1,0),_(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),U(),s(5,"app-card")(6,"h1",4),d(7,"app-ui-icon",5),x(8),r(),_(9,ie,2,3),r(),_(10,le,4,3)(11,_e,4,3)(12,xe,4,4),r()),l&2&&(p(2),m(o.selectedProcessEntity?2:-1),p(),m(o.selectedEntity?3:-1),p(),m(o.selectedItemUpgrade?4:-1),p(3),c("uiIcon",o.SHOP_ICONS[o.shopName]),p(),N(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),p(),m(o.openingHours$?9:-1),p(),m(o.shopItemData$?10:-1),p(),m(o.itemProcessing$?11:-1),p(),m(o.itemUpgrade$?12:-1))},dependencies:[Q,Y,j,K,G,A,J,z,O,H,W,L,M,$,B,F],encapsulation:2});let e=i;return e})();export{$e as RamenShopComponent}; +import{f as q,g as A,h as Y,i as j,j as z,k as G,l as J,m as K,t as Q}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as c,Da as S,Ga as m,Ha as T,Ia as w,Ja as y,Ka as s,Kb as $,La as r,Ma as d,Na as R,Oa as U,P as v,Qa as u,Qb as B,Sa as I,Ta as a,Td as F,Te as M,Vd as H,W as C,X as h,Yd as W,eb as x,fb as V,gb as N,jb as b,kb as D,la as p,lb as P,nb as k,rb as f,sb as g,se as L,sf as O,ua as E,xa as _}from"./chunk-PYTDIKHQ.js";function X(e,i){if(e&1&&d(0,"app-shop-item-process-data-details",1),e&2){let t=a();c("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&d(0,"app-shop-item-data-details",2),e&2){let t=a();c("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&d(0,"app-item-upgrade-details",3),e&2){let t=a();c("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&d(0,"app-opening-hours",6),e&2&&c("openingHours",i)}function ie(e,i){if(e&1&&(_(0,te,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,n=a();m((t=g(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let l=C(t).$implicit,o=a(4);return h(o.showDetails(l))}),r()}if(e&2){let t=i.$implicit,n=a(4);S("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),c("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(s(0,"div",9),w(1,ne,1,3,"app-item-icon",11,T),r()),e&2){let t=a();p(),y(t)}}function ae(e,i){if(e&1&&d(0,"app-shop-item-data-table",10),e&2){let t=a();c("dataSource",t)}}function pe(e,i){if(e&1){let t=u();s(0,"app-data-filter",8),P("showTableChange",function(l){C(t);let o=a(2);return D(o.showTable,l)||(o.showTable=l),h(l)}),r(),_(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);b("showTable",t.showTable),p(),m(t.showTable?-1:1),p(),m(t.showTable?2:-1)}}function le(e,i){if(e&1&&(s(0,"h2",7),x(1,"Stock list"),r(),_(2,pe,3,3),f(3,"async")),e&2){let t,n=a();p(2),m((t=g(3,1,n.shopItemData$))?2:-1,t)}}function me(e,i){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let l=C(t).$implicit,o=a(4);return h(o.showProcessDetails(l))}),r()}if(e&2){let t=i.$implicit,n=a(4);S("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),c("itemName",t.input.iconName)}}function re(e,i){if(e&1&&(s(0,"div",9),w(1,me,1,3,"app-item-icon",11,T),r()),e&2){let t=a();p(),y(t)}}function se(e,i){if(e&1&&d(0,"app-shop-item-process-table",10),e&2){let t=a();c("dataSource",t)}}function ce(e,i){if(e&1){let t=u();s(0,"app-data-filter",8),P("showTableChange",function(l){C(t);let o=a(2);return D(o.showProcessingTable,l)||(o.showProcessingTable=l),h(l)}),r(),_(1,re,3,0,"div",9)(2,se,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);b("showTable",t.showProcessingTable),p(),m(t.showProcessingTable?-1:1),p(),m(t.showProcessingTable?2:-1)}}function _e(e,i){if(e&1&&(s(0,"h2",7),x(1,"Item processing"),r(),_(2,ce,3,3),f(3,"async")),e&2){let t,n=a();p(2),m((t=g(3,1,n.itemProcessing$))?2:-1,t)}}function de(e,i){if(e&1){let t=u();s(0,"app-item-icon",14),I("click",function(){let l=C(t).$implicit,o=a(4);return h(o.showItemUpgradeDetails(l))}),r()}if(e&2){let t=i.$implicit,n=a(4);S("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),c("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(s(0,"div",9),w(1,de,1,4,"app-item-icon",13,T),r()),e&2){let t=a();p(),y(t)}}function he(e,i){if(e&1&&d(0,"app-item-upgrade-table",10),e&2){let t=a();c("dataSource",t)}}function ue(e,i){if(e&1){let t=u();s(0,"app-data-filter",8),P("showTableChange",function(l){C(t);let o=a(2);return D(o.showPItemUpgradeTable,l)||(o.showPItemUpgradeTable=l),h(l)}),r(),_(1,Ce,3,0,"div",9)(2,he,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);b("showTable",t.showPItemUpgradeTable),p(),m(t.showPItemUpgradeTable?-1:1),p(),m(t.showPItemUpgradeTable?2:-1)}}function xe(e,i){if(e&1&&(s(0,"h2",7),x(1),r(),_(2,ue,3,3),f(3,"async")),e&2){let t,n=a();p(),V(n.upgradeHeaderText),p(),m((t=g(3,2,n.itemUpgrade$))?2:-1,t)}}var $e=(()=>{let i=class i extends q{constructor(){super(),this.shopName="ramen-shop",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=v({type:i,selectors:[["app-ramen-shop"]],standalone:!0,features:[E,k],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(l,o){l&1&&(s(0,"app-list-detail-container"),R(1,0),_(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),U(),s(5,"app-card")(6,"h1",4),d(7,"app-ui-icon",5),x(8),r(),_(9,ie,2,3),r(),_(10,le,4,3)(11,_e,4,3)(12,xe,4,4),r()),l&2&&(p(2),m(o.selectedProcessEntity?2:-1),p(),m(o.selectedEntity?3:-1),p(),m(o.selectedItemUpgrade?4:-1),p(3),c("uiIcon",o.SHOP_ICONS[o.shopName]),p(),N(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),p(),m(o.openingHours$?9:-1),p(),m(o.shopItemData$?10:-1),p(),m(o.itemProcessing$?11:-1),p(),m(o.itemUpgrade$?12:-1))},dependencies:[Q,Y,j,K,G,A,J,z,O,H,W,L,M,$,B,F],encapsulation:2});let e=i;return e})();export{$e as RamenShopComponent}; diff --git a/chunk-WFTBLPSZ.js b/chunk-43NKEY2U.js similarity index 97% rename from chunk-WFTBLPSZ.js rename to chunk-43NKEY2U.js index 1241d3af97..913c68b5ab 100644 --- a/chunk-WFTBLPSZ.js +++ b/chunk-43NKEY2U.js @@ -1 +1 @@ -import{$a as A,Aa as p,Ba as g,Ca as E,Da as z,Hb as N,Ja as o,K as v,Ka as m,L as y,La as f,Oa as u,Ob as D,P as b,Q as k,Qc as B,Sa as I,X as h,Y as w,Za as M,_a as O,cb as R,da as S,ga as C,ka as a,la as l,mb as W,tb as P,va as T,wa as x,za as n,zb as _}from"./chunk-4KZEYPV3.js";var F=["determinateSpinner"];function L(c,i){if(c&1&&(h(),o(0,"svg",11),f(1,"circle",12),m()),c&2){let d=I();n("viewBox",d._viewBox()),a(),g("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeCircumference()/2,"px")("stroke-width",d._circleStrokeWidth(),"%"),n("r",d._circleRadius())}}var V=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:G});function G(){return{diameter:j}}var j=100,Q=10,tr=(()=>{let i=class i{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=j,this._noopAnimations=t==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-Q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};i.\u0275fac=function(t){return new(t||i)(l(S),l(C,8),l(V))},i.\u0275cmp=b({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(t&1&&M(F,5),t&2){let s;O(s=A())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){t&2&&(n("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),z("mat-"+r.color),g("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),E("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",_],diameter:[2,"diameter","diameter",_],strokeWidth:[2,"strokeWidth","strokeWidth",_]},exportAs:["matProgressSpinner"],standalone:!0,features:[T,W],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,r){if(t&1&&(x(0,L,2,8,"ng-template",null,0,P),o(2,"div",2,1),h(),o(4,"svg",3),f(5,"circle",4),m()(),w(),o(6,"div",5)(7,"div",6)(8,"div",7),u(9,8),m(),o(10,"div",9),u(11,8),m(),o(12,"div",10),u(13,8),m()()()),t&2){let s=R(1);a(4),n("viewBox",r._viewBox()),a(),g("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),n("r",r._circleRadius()),a(4),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s)}},dependencies:[N],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let c=i;return c})();var cr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=v({imports:[D,B]});let c=i;return c})();export{tr as a,cr as b}; +import{$a as O,Aa as n,Ab as _,Ba as p,Ca as g,Da as E,Ea as z,Jb as N,K as v,Ka as o,L as y,La as m,Ma as f,P as b,Pa as u,Q as k,Qb as D,Ta as I,Uc as B,Y as h,Z as w,_a as M,ab as A,db as R,ea as S,ha as C,la as a,ma as l,nb as W,ub as P,wa as T,xa as x}from"./chunk-PYTDIKHQ.js";var F=["determinateSpinner"];function L(c,i){if(c&1&&(h(),o(0,"svg",11),f(1,"circle",12),m()),c&2){let d=I();n("viewBox",d._viewBox()),a(),g("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeCircumference()/2,"px")("stroke-width",d._circleStrokeWidth(),"%"),n("r",d._circleRadius())}}var V=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:G});function G(){return{diameter:j}}var j=100,Q=10,tr=(()=>{let i=class i{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=j,this._noopAnimations=t==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-Q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};i.\u0275fac=function(t){return new(t||i)(l(S),l(C,8),l(V))},i.\u0275cmp=b({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(t&1&&M(F,5),t&2){let s;O(s=A())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){t&2&&(n("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),z("mat-"+r.color),g("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),E("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",_],diameter:[2,"diameter","diameter",_],strokeWidth:[2,"strokeWidth","strokeWidth",_]},exportAs:["matProgressSpinner"],standalone:!0,features:[T,W],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,r){if(t&1&&(x(0,L,2,8,"ng-template",null,0,P),o(2,"div",2,1),h(),o(4,"svg",3),f(5,"circle",4),m()(),w(),o(6,"div",5)(7,"div",6)(8,"div",7),u(9,8),m(),o(10,"div",9),u(11,8),m(),o(12,"div",10),u(13,8),m()()()),t&2){let s=R(1);a(4),n("viewBox",r._viewBox()),a(),g("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),n("r",r._circleRadius()),a(4),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s)}},dependencies:[N],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let c=i;return c})();var cr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=v({imports:[D,B]});let c=i;return c})();export{tr as a,cr as b}; diff --git a/chunk-4KZEYPV3.js b/chunk-4KZEYPV3.js deleted file mode 100644 index cd8a904704..0000000000 --- a/chunk-4KZEYPV3.js +++ /dev/null @@ -1,24 +0,0 @@ -var fI=Object.defineProperty,hI=Object.defineProperties;var pI=Object.getOwnPropertyDescriptors;var Ya=Object.getOwnPropertySymbols;var S_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable;var M_=t=>{throw TypeError(t)};var I_=(t,e,r)=>e in t?fI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||={})S_.call(e,r)&&I_(t,r,e[r]);if(Ya)for(var r of Ya(e))T_.call(e,r)&&I_(t,r,e[r]);return t},ue=(t,e)=>hI(t,pI(e));var mI=(t,e)=>{var r={};for(var n in t)S_.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Ya)for(var n of Ya(t))e.indexOf(n)<0&&T_.call(t,n)&&(r[n]=t[n]);return r};var Wu=(t,e,r)=>e.has(t)||M_("Cannot "+r);var Ft=(t,e,r)=>(Wu(t,e,"read from private field"),r?r.call(t):e.get(t)),Pn=(t,e,r)=>e.has(t)?M_("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),_r=(t,e,r,n)=>(Wu(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Yu=(t,e,r)=>(Wu(t,e,"access private method"),r);var ms=(t,e,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(c){i(c)}},s=l=>{try{a(r.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(t,e)).next())});function X(t){return typeof t=="function"}function Qa(t){return t&&X(t.schedule)}function Qu(t){return t[t.length-1]}function Za(t){return X(Qu(t))?t.pop():void 0}function Ln(t){return Qa(Qu(t))?t.pop():void 0}function A_(t,e){return typeof Qu(t)=="number"?t.pop():e}function k_(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):i(d.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function R_(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function vr(t){return this instanceof vr?(this.v=t,this):new vr(t)}function O_(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(m){return new Promise(function(y,A){o.push([f,m,y,A])>1||a(f,m)})})}function a(f,m){try{l(n[f](m))}catch(y){u(o[0][3],y)}}function l(f){f.value instanceof vr?Promise.resolve(f.value.v).then(c,d):u(o[0][2],f)}function c(f){a("next",f)}function d(f){a("throw",f)}function u(f,m){f(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function N_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof R_=="function"?R_(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var oo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ka(t){return X(t?.then)}function so(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Xa=so(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function yr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Ce=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(X(n))try{n()}catch(o){e=o instanceof Xa?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{F_(o)}catch(s){e=e??[],s instanceof Xa?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Xa(e)}}add(e){var r;if(e&&e!==this)if(this.closed)F_(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&yr(r,e)}remove(e){let{_finalizers:r}=this;r&&yr(r,e),e instanceof t&&e._removeParent(this)}};Ce.EMPTY=(()=>{let t=new Ce;return t.closed=!0,t})();var Zu=Ce.EMPTY;function Ja(t){return t instanceof Ce||t&&"closed"in t&&X(t.remove)&&X(t.add)&&X(t.unsubscribe)}function F_(t){X(t)?t():t.unsubscribe()}var bn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ao={setTimeout(t,e,...r){let{delegate:n}=ao;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=ao;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function el(t){ao.setTimeout(()=>{let{onUnhandledError:e}=bn;if(e)e(t);else throw t})}function fi(){}var P_=Ku("C",void 0,void 0);function L_(t){return Ku("E",void 0,t)}function j_(t){return Ku("N",t,void 0)}function Ku(t,e,r){return{kind:t,value:e,error:r}}var br=null;function lo(t){if(bn.useDeprecatedSynchronousErrorHandling){let e=!br;if(e&&(br={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=br;if(br=null,r)throw n}}else t()}function V_(t){bn.useDeprecatedSynchronousErrorHandling&&br&&(br.errorThrown=!0,br.error=t)}var wr=class extends Ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ja(e)&&e.add(this)):this.destination=vI}static create(e,r,n){return new hi(e,r,n)}next(e){this.isStopped?Ju(j_(e),this):this._next(e)}error(e){this.isStopped?Ju(L_(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ju(P_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},gI=Function.prototype.bind;function Xu(t,e){return gI.call(t,e)}var ef=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){tl(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){tl(n)}else tl(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){tl(r)}}},hi=class extends wr{constructor(e,r,n){super();let i;if(X(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&bn.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Xu(e.next,o),error:e.error&&Xu(e.error,o),complete:e.complete&&Xu(e.complete,o)}):i=e}this.destination=new ef(i)}};function tl(t){bn.useDeprecatedSynchronousErrorHandling?V_(t):el(t)}function _I(t){throw t}function Ju(t,e){let{onStoppedNotification:r}=bn;r&&ao.setTimeout(()=>r(t,e))}var vI={closed:!0,next:fi,error:_I,complete:fi};var co=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Pt(t){return t}function tf(...t){return nf(t)}function nf(t){return t.length===0?Pt:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var Z=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=bI(r)?r:new hi(r,n,i);return lo(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=B_(n),new n((i,o)=>{let s=new hi({next:a=>{try{r(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[co](){return this}pipe(...r){return nf(r)(this)}toPromise(r){return r=B_(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function B_(t){var e;return(e=t??bn.Promise)!==null&&e!==void 0?e:Promise}function yI(t){return t&&X(t.next)&&X(t.error)&&X(t.complete)}function bI(t){return t&&t instanceof wr||yI(t)&&Ja(t)}function nl(t){return X(t[co])}function il(t){return Symbol.asyncIterator&&X(t?.[Symbol.asyncIterator])}function rl(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function wI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ol=wI();function sl(t){return X(t?.[ol])}function al(t){return O_(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield vr(r.read());if(i)return yield vr(void 0);yield yield vr(n)}}finally{r.releaseLock()}})}function ll(t){return X(t?.getReader)}function Ne(t){if(t instanceof Z)return t;if(t!=null){if(nl(t))return CI(t);if(oo(t))return xI(t);if(Ka(t))return DI(t);if(il(t))return H_(t);if(sl(t))return EI(t);if(ll(t))return II(t)}throw rl(t)}function CI(t){return new Z(e=>{let r=t[co]();if(X(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xI(t){return new Z(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,el)})}function EI(t){return new Z(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function H_(t){return new Z(e=>{SI(t,e).catch(r=>e.error(r))})}function II(t){return H_(al(t))}function SI(t,e){var r,n,i,o;return k_(this,void 0,void 0,function*(){try{for(r=N_(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ut(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function rf(t){return X(t?.lift)}function oe(t){return e=>{if(rf(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function se(t,e,r,n,i){return new of(t,e,r,n,i)}var of=class extends wr{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function cl(t,e=0){return oe((r,n)=>{r.subscribe(se(n,i=>Ut(n,t,()=>n.next(i),e),()=>Ut(n,t,()=>n.complete(),e),i=>Ut(n,t,()=>n.error(i),e)))})}function dl(t,e=0){return oe((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function $_(t,e){return Ne(t).pipe(dl(e),cl(e))}function U_(t,e){return Ne(t).pipe(dl(e),cl(e))}function z_(t,e){return new Z(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function G_(t,e){return new Z(r=>{let n;return Ut(r,e,()=>{n=t[ol](),Ut(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>X(n?.return)&&n.return()})}function ul(t,e){if(!t)throw new Error("Iterable cannot be null");return new Z(r=>{Ut(r,e,()=>{let n=t[Symbol.asyncIterator]();Ut(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function q_(t,e){return ul(al(t),e)}function W_(t,e){if(t!=null){if(nl(t))return $_(t,e);if(oo(t))return z_(t,e);if(Ka(t))return U_(t,e);if(il(t))return ul(t,e);if(sl(t))return G_(t,e);if(ll(t))return q_(t,e)}throw rl(t)}function $e(t,e){return e?W_(t,e):Ne(t)}function V(...t){let e=Ln(t);return $e(t,e)}function B(t,e){return oe((r,n)=>{let i=0;r.subscribe(se(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:TI}=Array,{getPrototypeOf:MI,prototype:AI,keys:RI}=Object;function fl(t){if(t.length===1){let e=t[0];if(TI(e))return{args:e,keys:null};if(kI(e)){let r=RI(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function kI(t){return t&&typeof t=="object"&&MI(t)===AI}var{isArray:OI}=Array;function NI(t,e){return OI(e)?t(...e):t(e)}function uo(t){return B(e=>NI(t,e))}function hl(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function zt(...t){let e=Ln(t),r=Za(t),{args:n,keys:i}=fl(t);if(n.length===0)return $e([],e);let o=new Z(FI(n,e,i?s=>hl(i,s):Pt));return r?o.pipe(uo(r)):o}function FI(t,e,r=Pt){return n=>{Y_(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l{let c=$e(t[l],e),d=!1;c.subscribe(se(n,u=>{o[l]=u,d||(d=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Y_(t,e,r){t?Ut(r,t,e):e()}function rt(t,e){return oe((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(se(n,l=>{i?.unsubscribe();let c=0,d=o++;Ne(t(l,d)).subscribe(i=se(n,u=>n.next(e?e(l,u,d,c++):u),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function fo(){return oe((t,e)=>{let r=null;t._refCount++;let n=se(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var jn=class extends Z{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,rf(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ce;let r=this.getSubject();e.add(this.source.subscribe(se(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ce.EMPTY)}return e}refCount(){return fo()(this)}};var Q_=so(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var N=(()=>{class t extends Z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new pl(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Q_}next(r){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Zu:(this.currentObservers=null,o.push(r),new Ce(()=>{this.currentObservers=null,yr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new Z;return r.source=this,r}}return t.create=(e,r)=>new pl(e,r),t})(),pl=class extends N{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Zu}};var Ze=class extends N{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var gs={now(){return(gs.delegate||Date).now()},delegate:void 0};var ji=class extends N{constructor(e=1/0,r=1/0,n=gs){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;r||(n.push(e),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function po(t,e){let r=X(t)?t:()=>t,n=i=>i.error(r());return new Z(e?i=>e.schedule(n,0,i):n)}function xr(t){return!!t&&(t instanceof Z||X(t.lift)&&X(t.subscribe))}var pi=so(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function K_(t){return t instanceof Date&&!isNaN(t)}function X_(t,e,r,n,i,o,s,a){let l=[],c=0,d=0,u=!1,f=()=>{u&&!l.length&&!c&&e.complete()},m=A=>c{o&&e.next(A),c++;let k=!1;Ne(r(A,d++)).subscribe(se(e,O=>{i?.(O),o?m(O):e.next(O)},()=>{k=!0},void 0,()=>{if(k)try{for(c--;l.length&&cy(O)):y(O)}f()}catch(O){e.error(O)}}))};return t.subscribe(se(e,m,()=>{u=!0,f()})),()=>{a?.()}}function nt(t,e,r=1/0){return X(e)?nt((n,i)=>B((o,s)=>e(n,o,i,s))(Ne(t(n,i))),r):(typeof e=="number"&&(r=e),oe((n,i)=>X_(n,i,t,r)))}function Vn(t=1/0){return nt(Pt,t)}function J_(){return Vn(1)}function Bn(...t){return J_()($e(t,Ln(t)))}function mo(t){return new Z(e=>{Ne(t()).subscribe(e)})}function sf(...t){let e=Za(t),{args:r,keys:n}=fl(t),i=new Z(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=f},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(n?hl(n,a):a),o.complete())}))}});return e?i.pipe(uo(e)):i}var PI=["addListener","removeListener"],LI=["addEventListener","removeEventListener"],jI=["on","off"];function dn(t,e,r,n){if(X(r)&&(n=r,r=void 0),n)return dn(t,e,r).pipe(uo(n));let[i,o]=HI(t)?LI.map(s=>a=>t[s](e,a,r)):VI(t)?PI.map(ev(t,e)):BI(t)?jI.map(ev(t,e)):[];if(!i&&oo(t))return nt(s=>dn(s,e,r))(Ne(t));if(!i)throw new TypeError("Invalid event target");return new Z(s=>{let a=(...l)=>s.next(1o(a)})}function ev(t,e){return r=>n=>t[r](e,n)}function VI(t){return X(t.addListener)&&X(t.removeListener)}function BI(t){return X(t.on)&&X(t.off)}function HI(t){return X(t.addEventListener)&&X(t.removeEventListener)}function Dr(t=0,e,r=Z_){let n=-1;return e!=null&&(Qa(e)?r=e:n=e),new Z(i=>{let o=K_(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function at(...t){let e=Ln(t),r=A_(t,1/0),n=t;return n.length?n.length===1?Ne(n[0]):Vn(r)($e(n,e)):Et}var $I=new Z(fi);function xe(t,e){return oe((r,n)=>{let i=0;r.subscribe(se(n,o=>t.call(e,o,i++)&&n.next(o)))})}function tv(t){return oe((e,r)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let c=i;i=null,r.next(c)}s&&r.complete()},l=()=>{o=null,s&&r.complete()};e.subscribe(se(r,c=>{n=!0,i=c,o||Ne(t(c)).subscribe(o=se(r,a,l))},()=>{s=!0,(!n||!o||o.closed)&&r.complete()}))})}function vl(t,e=Cr){return tv(()=>Dr(t,e))}function mi(t){return oe((e,r)=>{let n=null,i=!1,o;n=e.subscribe(se(r,void 0,void 0,s=>{o=Ne(t(s,mi(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function nv(t,e,r,n,i){return(o,s)=>{let a=r,l=e,c=0;o.subscribe(se(s,d=>{let u=c++;l=a?t(l,d,u):(a=!0,d),n&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function gi(t,e){return X(e)?nt(t,e,1):nt(t,1)}function iv(t){return new Z(e=>t.subscribe(e))}var UI={connector:()=>new N};function yl(t,e=UI){let{connector:r}=e;return oe((n,i)=>{let o=r();Ne(t(iv(o))).subscribe(i),i.add(n.subscribe(o))})}function un(t,e=Cr){return oe((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function l(){let c=s+t,d=e.now();if(d{o=c,s=e.now(),i||(i=e.schedule(l,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Vi(t){return oe((e,r)=>{let n=!1;e.subscribe(se(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Je(t){return t<=0?()=>Et:oe((e,r)=>{let n=0;e.subscribe(se(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function rv(){return oe((t,e)=>{t.subscribe(se(e,fi))})}function Bi(t){return B(()=>t)}function af(t,e){return e?r=>Bn(e.pipe(Je(1),rv()),r.pipe(af(t))):nt((r,n)=>Ne(t(r,n)).pipe(Je(1),Bi(r)))}function zI(t,e=Cr){let r=Dr(t,e);return af(()=>r)}function Hn(t,e=Pt){return t=t??GI,oe((r,n)=>{let i,o=!0;r.subscribe(se(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function GI(t,e){return t===e}function bl(t=qI){return oe((e,r)=>{let n=!1;e.subscribe(se(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function qI(){return new pi}function Hi(t){return oe((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function $n(t,e){let r=arguments.length>=2;return n=>n.pipe(t?xe((i,o)=>t(i,o,n)):Pt,Je(1),r?Vi(e):bl(()=>new pi))}function go(t){return t<=0?()=>Et:oe((e,r)=>{let n=[];e.subscribe(se(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function lf(t,e){let r=arguments.length>=2;return n=>n.pipe(t?xe((i,o)=>t(i,o,n)):Pt,go(1),r?Vi(e):bl(()=>new pi))}function ov(t,e){let r=X(t)?t:()=>t;return X(e)?yl(e,{connector:r}):n=>new jn(n,r)}function WI(t){return t?e=>yl(t)(e):e=>ov(new N)(e)}function cf(t,e){return oe(nv(t,e,arguments.length>=2,!0))}function sv(t={}){let{connector:e=()=>new N,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,l,c=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},m=()=>{f(),s=l=void 0,d=u=!1},y=()=>{let A=s;m(),A?.unsubscribe()};return oe((A,k)=>{c++,!u&&!d&&f();let O=l=l??e();k.add(()=>{c--,c===0&&!u&&!d&&(a=df(y,i))}),O.subscribe(k),!s&&c>0&&(s=new hi({next:ce=>O.next(ce),error:ce=>{u=!0,f(),a=df(m,r,ce),O.error(ce)},complete:()=>{d=!0,f(),a=df(m,n),O.complete()}}),Ne(A).subscribe(s))})(o)}}function df(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new hi({next:()=>{n.unsubscribe(),t()}});return Ne(e(...r)).subscribe(n)}function de(t,e,r){let n,i=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:r}=t:n=t??1/0,sv({connector:()=>new ji(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Er(t){return xe((e,r)=>t<=r)}function It(...t){let e=Ln(t);return oe((r,n)=>{(e?Bn(t,r,e):Bn(t,r)).subscribe(n)})}function K(t){return oe((e,r)=>{Ne(t).subscribe(se(r,()=>r.complete(),fi)),!r.closed&&e.subscribe(r)})}function uf(t,e=!1){return oe((r,n)=>{let i=0;r.subscribe(se(n,o=>{let s=t(o,i++);(s||e)&&n.next(o),!s&&n.complete()}))})}function Ie(t,e,r){let n=X(t)||e||r?{next:t,error:e,complete:r}:t;return n?oe((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(se(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):Pt}function av(t,e){return Object.is(t,e)}var vt=null,vs=!1,wl=1,Xt=Symbol("SIGNAL");function De(t){let e=vt;return vt=t,e}function YI(){return vs}var bs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function xl(t){if(vs)throw new Error("");if(vt===null)return;vt.consumerOnSignalRead(t);let e=vt.nextProducerIndex++;if(_o(vt),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Il(t){_o(t);for(let e=0;e0}function _o(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function hv(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function gf(t){let e=Object.create(ZI);e.computation=t;let r=()=>{if(lv(e),xl(e),e.value===Cl)throw e.error;return e.value};return r[Xt]=e,r}var ff=Symbol("UNSET"),hf=Symbol("COMPUTING"),Cl=Symbol("ERRORED"),ZI=ue(S({},bs),{value:ff,dirty:!0,error:null,equal:av,producerMustRecompute(t){return t.value===ff||t.value===hf},producerRecomputeValue(t){if(t.value===hf)throw new Error("Detected cycle in computations.");let e=t.value;t.value=hf;let r=Dl(t),n;try{n=t.computation()}catch(i){n=Cl,t.error=i}finally{El(t,r)}if(e!==ff&&e!==Cl&&n!==Cl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function KI(){throw new Error}var pv=KI;function mv(){pv()}function gv(t){pv=t}var XI=null;function _v(t){let e=Object.create(_f);e.value=t;let r=()=>(xl(e),e.value);return r[Xt]=e,r}function Tl(t,e){dv()||mv(),t.equal(t.value,e)||(t.value=e,JI(t))}function vv(t,e){dv()||mv(),Tl(t,e(t.value))}var _f=ue(S({},bs),{equal:av,value:void 0});function JI(t){t.version++,QI(),cv(t),XI?.()}function yv(t,e,r){let n=Object.create(eS);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=l=>{n.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(mf(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=pf)}let a=()=>{if(n.fn===null)return;if(YI())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Il(n))return;n.hasRun=!0;let l=Dl(n);try{n.cleanupFn(),n.cleanupFn=pf,n.fn(i)}finally{El(n,l)}};return n.ref={notify:()=>uv(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Xt]:n},n.ref}var pf=()=>{},eS=ue(S({},bs),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:pf});var wy="https://g.co/ng/security#xss",j=class extends Error{constructor(e,r){super(_c(e,r)),this.code=e}};function _c(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Cy=Symbol("InputSignalNode#UNSET"),tS=ue(S({},_f),{transformFn:void 0,applyValueToInputSignal(t,e){Tl(t,e)}});function xy(t,e){let r=Object.create(tS);r.value=t,r.transformFn=e?.transform;function n(){if(xl(r),r.value===Cy)throw new j(-950,!1);return r.value}return n[Xt]=r,n}function Ns(t){return{toString:t}.toString()}var Ml="__parameters__";function nS(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Dy(t,e,r){return Ns(()=>{let n=nS(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(l,c,d){let u=l.hasOwnProperty(Ml)?l[Ml]:Object.defineProperty(l,Ml,{value:[]})[Ml];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ft=globalThis;function Ge(t){for(let e in t)if(t[e]===Ge)return e;throw Error("Could not find renamed property on target object.")}function iS(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function jt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(jt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function Of(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var rS=Ge({__forward_ref__:Ge});function bt(t){return t.__forward_ref__=bt,t.toString=function(){return jt(this())},t}function St(t){return Ey(t)?t():t}function Ey(t){return typeof t=="function"&&t.hasOwnProperty(rS)&&t.__forward_ref__===bt}function Iy(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function I(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function te(t){return{providers:t.providers||[],imports:t.imports||[]}}function vc(t){return bv(t,Ty)||bv(t,My)}function Sy(t){return vc(t)!==null}function bv(t,e){return t.hasOwnProperty(e)?t[e]:null}function oS(t){let e=t&&(t[Ty]||t[My]);return e||null}function wv(t){return t&&(t.hasOwnProperty(Cv)||t.hasOwnProperty(sS))?t[Cv]:null}var Ty=Ge({\u0275prov:Ge}),Cv=Ge({\u0275inj:Ge}),My=Ge({ngInjectableDef:Ge}),sS=Ge({ngInjectorDef:Ge}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=I({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ay(t){return t&&!!t.\u0275providers}var aS=Ge({\u0275cmp:Ge}),lS=Ge({\u0275dir:Ge}),cS=Ge({\u0275pipe:Ge}),dS=Ge({\u0275mod:Ge}),Ul=Ge({\u0275fac:Ge}),ws=Ge({__NG_ELEMENT_ID__:Ge}),xv=Ge({__NG_ENV_ID__:Ge});function Gn(t){return typeof t=="string"?t:t==null?"":String(t)}function uS(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Gn(t)}function fS(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new j(-200,t)}function $h(t,e){throw new j(-201,!1)}var Ee=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ee||{}),Nf;function Ry(){return Nf}function Gt(t){let e=Nf;return Nf=t,e}function ky(t,e,r){let n=vc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&Ee.Optional)return null;if(e!==void 0)return e;$h(t,"Injector")}var hS={},xs=hS,Ff="__NG_DI_FLAG__",zl="ngTempTokenPath",pS="ngTokenPath",mS=/\n/gm,gS="\u0275",Dv="__source",wo;function _S(){return wo}function $i(t){let e=wo;return wo=t,e}function vS(t,e=Ee.Default){if(wo===void 0)throw new j(-203,!1);return wo===null?ky(t,void 0,e):wo.get(t,e&Ee.Optional?null:void 0,e)}function C(t,e=Ee.Default){return(Ry()||vS)(St(t),e)}function g(t,e=Ee.Default){return C(t,yc(e))}function yc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Pf(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):jt(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(mS,` - `)}`}var $r=Oy(Dy("Optional"),8);var ko=Oy(Dy("SkipSelf"),4);function Ar(t,e){let r=t.hasOwnProperty(Ul);return r?t[Ul]:null}function CS(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Uh(r,e):e(r))}function Ny(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Gl(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function DS(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Fs(t,e,r){let n=Ps(t,e);return n>=0?t[n|1]=r:(n=~n,ES(t,n,e,r)),n}function vf(t,e){let r=Ps(t,e);if(r>=0)return t[r|1]}function Ps(t,e){return IS(t,e,1)}function IS(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?u="":u=i[d+1].toLowerCase(),n&2&&c!==u){if(wn(n))return!1;s=!0}}}}return wn(n)||s}function wn(t){return(t&1)===0}function kS(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!wn(s)&&(e+=Iv(o,i),i=""),n=s,o=o||!wn(n);r++}return i!==""&&(e+=Iv(o,i)),e}function jS(t){return t.map(LS).join(",")}function VS(t){let e=[],r=[],n=1,i=2;for(;n{let e=Uy(t),r=ue(S({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ly.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qn.Emulated,styles:t.styles||Lt,_:null,schemas:t.schemas||null,tView:null,id:""});zy(r);let n=t.dependencies;return r.directiveDefs=Tv(n,!1),r.pipeDefs=Tv(n,!0),r.id=$S(r),r})}function BS(t){return xn(t)||bc(t)}function HS(t){return t!==null}function ne(t){return Ns(()=>({type:t.type,bootstrap:t.bootstrap||Lt,declarations:t.declarations||Lt,imports:t.imports||Lt,exports:t.exports||Lt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Sv(t,e){if(t==null)return vi;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=Do.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==Do.None?[n,a]:n,e[o]=s):r[o]=n}return r}function F(t){return Ns(()=>{let e=Uy(t);return zy(e),e})}function ae(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function xn(t){return t[aS]||null}function bc(t){return t[lS]||null}function Gh(t){return t[cS]||null}function Hy(t){let e=xn(t)||bc(t)||Gh(t);return e!==null?e.standalone:!1}function $y(t,e){let r=t[dS]||null;if(!r&&e===!0)throw new Error(`Type ${jt(t)} does not have '\u0275mod' property.`);return r}function Uy(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||vi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Lt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Sv(t.inputs,e),outputs:Sv(t.outputs),debugInfo:null}}function zy(t){t.features?.forEach(e=>e(t))}function Tv(t,e){if(!t)return null;let r=e?Gh:BS;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(HS)}function $S(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function wc(t){return{\u0275providers:t}}function US(...t){return{\u0275providers:qh(!0,t),\u0275fromNgModule:!0}}function qh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Uh(e,s=>{let a=s;jf(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Gy(i,o),r}function Gy(t,e){for(let r=0;r{e(o,n)})}}function jf(t,e,r,n){if(t=St(t),!t)return!1;let i=null,o=wv(t),s=!o&&xn(t);if(!o&&!s){let l=t.ngModule;if(o=wv(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)jf(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{Uh(o.imports,d=>{jf(d,e,r,n)&&(c||=[],c.push(d))})}finally{}c!==void 0&&Gy(c,e)}if(!a){let c=Ar(i)||(()=>new i);e({provide:i,useFactory:c,deps:Lt},i),e({provide:Py,useValue:i,multi:!0},i),e({provide:xo,useValue:()=>C(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;Wh(l,d=>{e(d,c)})}}else return!1;return i!==t&&t.providers!==void 0}function Wh(t,e){for(let r of t)Ay(r)&&(r=r.\u0275providers),Array.isArray(r)?Wh(r,e):e(r)}var zS=Ge({provide:String,useValue:Ge});function qy(t){return t!==null&&typeof t=="object"&&zS in t}function GS(t){return!!(t&&t.useExisting)}function qS(t){return!!(t&&t.useFactory)}function Eo(t){return typeof t=="function"}function WS(t){return!!t.useClass}var Cc=new E(""),Pl={},YS={},yf;function xc(){return yf===void 0&&(yf=new ql),yf}var ht=class{},Es=class extends ht{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bf(e,s=>this.processProvider(s)),this.records.set(Fy,vo(void 0,this)),i.has("environment")&&this.records.set(ht,vo(void 0,this));let o=this.records.get(Cc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Py,Lt,Ee.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=De(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),De(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=$i(this),n=Gt(void 0),i;try{return e()}finally{$i(r),Gt(n)}}get(e,r=xs,n=Ee.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(xv))return e[xv](this);n=yc(n);let i,o=$i(this),s=Gt(void 0);try{if(!(n&Ee.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=JS(e)&&vc(e);c&&this.injectableDefInScope(c)?l=vo(Vf(e),Pl):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&Ee.Self?xc():this.parent;return r=n&Ee.Optional&&r===xs?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[zl]=a[zl]||[]).unshift(jt(e)),o)throw a;return bS(a,e,"R3InjectorError",this.source)}else throw a}finally{Gt(s),$i(o)}}resolveInjectorInitializers(){let e=De(null),r=$i(this),n=Gt(void 0),i;try{let o=this.get(xo,Lt,Ee.Self);for(let s of o)s()}finally{$i(r),Gt(n),De(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(jt(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new j(205,!1)}processProvider(e){e=St(e);let r=Eo(e)?e:St(e&&e.provide),n=ZS(e);if(!Eo(e)&&e.multi===!0){let i=this.records.get(r);i||(i=vo(void 0,Pl,!0),i.factory=()=>Pf(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=De(null);try{return r.value===Pl&&(r.value=YS,r.value=r.factory()),typeof r.value=="object"&&r.value&&XS(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{De(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=St(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Vf(t){let e=vc(t),r=e!==null?e.factory:Ar(t);if(r!==null)return r;if(t instanceof E)throw new j(204,!1);if(t instanceof Function)return QS(t);throw new j(204,!1)}function QS(t){if(t.length>0)throw new j(204,!1);let r=oS(t);return r!==null?()=>r.factory(t):()=>new t}function ZS(t){if(qy(t))return vo(void 0,t.useValue);{let e=Wy(t);return vo(e,Pl)}}function Wy(t,e,r){let n;if(Eo(t)){let i=St(t);return Ar(i)||Vf(i)}else if(qy(t))n=()=>St(t.useValue);else if(qS(t))n=()=>t.useFactory(...Pf(t.deps||[]));else if(GS(t))n=()=>C(St(t.useExisting));else{let i=St(t&&(t.useClass||t.provide));if(KS(t))n=()=>new i(...Pf(t.deps));else return Ar(i)||Vf(i)}return n}function vo(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function KS(t){return!!t.deps}function XS(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function JS(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Bf(t,e){for(let r of t)Array.isArray(r)?Bf(r,e):r&&Ay(r)?Bf(r.\u0275providers,e):e(r)}function Yt(t,e){t instanceof Es&&t.assertNotDestroyed();let r,n=$i(t),i=Gt(void 0);try{return e()}finally{$i(n),Gt(i)}}function Yy(){return Ry()!==void 0||_S()!=null}function Oo(t){if(!Yy())throw new j(-203,!1)}function eT(t){let e=ft.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function tT(t){return typeof t=="function"}var Qn=0,ee=1,re=2,Mt=3,Cn=4,Qt=5,Io=6,Is=7,yt=8,Dn=9,Wn=10,qe=11,Ss=12,Mv=13,No=14,Vt=15,Rr=16,yo=17,yi=18,Dc=19,Qy=20,Ui=21,Ll=22,kr=23,ot=25,Yh=1;var Or=7,Wl=8,So=9,Rt=10,Yl=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Yl||{});function zi(t){return Array.isArray(t)&&typeof t[Yh]=="object"}function xi(t){return Array.isArray(t)&&t[Yh]===!0}function Qh(t){return(t.flags&4)!==0}function Ec(t){return t.componentOffset>-1}function Ic(t){return(t.flags&1)===1}function bi(t){return!!t.template}function Hf(t){return(t[re]&512)!==0}function nT(t){return(t[re]&256)===256}var $f=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Zy(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Ve(){return Ky}function Ky(t){return t.type.prototype.ngOnChanges&&(t.setInput=rT),iT}Ve.ngInherit=!0;function iT(){let t=Jy(this),e=t?.current;if(e){let r=t.previous;if(r===vi)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function rT(t,e,r,n,i){let o=this.declaredInputs[n],s=Jy(t)||oT(t,{previous:vi,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new $f(c&&c.currentValue,r,l===vi),Zy(t,e,i,r)}var Xy="__ngSimpleChanges__";function Jy(t){return t[Xy]||null}function oT(t,e){return t[Xy]=e}var Av=null;var Un=function(t,e,r){Av?.(t,e,r)},eb="svg",sT="math";function Yn(t){for(;Array.isArray(t);)t=t[Qn];return t}function aT(t){for(;Array.isArray(t);){if(typeof t[Yh]=="object")return t;t=t[Qn]}return null}function tb(t,e){return Yn(e[t])}function hn(t,e){return Yn(e[t.index])}function Ls(t,e){return t.data[e]}function Zh(t,e){return t[e]}function Yi(t,e){let r=e[t];return zi(r)?r:r[Qn]}function lT(t){return(t[re]&4)===4}function Kh(t){return(t[re]&128)===128}function cT(t){return xi(t[Mt])}function Gi(t,e){return e==null?null:t[e]}function nb(t){t[yo]=0}function dT(t){t[re]&1024||(t[re]|=1024,Kh(t)&&Sc(t))}function uT(t,e){for(;t>0;)e=e[No],t--;return e}function Ts(t){return!!(t[re]&9216||t[kr]?.dirty)}function Uf(t){t[Wn].changeDetectionScheduler?.notify(7),t[re]&64&&(t[re]|=1024),Ts(t)&&Sc(t)}function Sc(t){t[Wn].changeDetectionScheduler?.notify(0);let e=Ms(t);for(;e!==null&&!(e[re]&8192||(e[re]|=8192,!Kh(e)));)e=Ms(e)}function Xh(t,e){if((t[re]&256)===256)throw new j(911,!1);t[Ui]===null&&(t[Ui]=[]),t[Ui].push(e)}function ib(t,e){if(t[Ui]===null)return;let r=t[Ui].indexOf(e);r!==-1&&t[Ui].splice(r,1)}function Ms(t){let e=t[Mt];return xi(e)?e[Mt]:e}var ve={lFrame:fb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var rb=!1;function fT(){return ve.lFrame.elementDepthCount}function hT(){ve.lFrame.elementDepthCount++}function pT(){ve.lFrame.elementDepthCount--}function ob(){return ve.bindingsEnabled}function sb(){return ve.skipHydrationRootTNode!==null}function mT(t){return ve.skipHydrationRootTNode===t}function gT(){ve.skipHydrationRootTNode=null}function Q(){return ve.lFrame.lView}function Be(){return ve.lFrame.tView}function he(t){return ve.lFrame.contextLView=t,t[yt]}function pe(t){return ve.lFrame.contextLView=null,t}function pt(){let t=ab();for(;t!==null&&t.type===64;)t=t.parent;return t}function ab(){return ve.lFrame.currentTNode}function _T(){let t=ve.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ur(t,e){let r=ve.lFrame;r.currentTNode=t,r.isParent=e}function Jh(){return ve.lFrame.isParent}function ep(){ve.lFrame.isParent=!1}function vT(){return ve.lFrame.contextLView}function lb(){return rb}function Rv(t){rb=t}function js(){let t=ve.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cb(){return ve.lFrame.bindingIndex}function yT(t){return ve.lFrame.bindingIndex=t}function Qi(){return ve.lFrame.bindingIndex++}function Tc(t){let e=ve.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function bT(){return ve.lFrame.inI18n}function wT(t,e){let r=ve.lFrame;r.bindingIndex=r.bindingRootIndex=t,zf(e)}function CT(){return ve.lFrame.currentDirectiveIndex}function zf(t){ve.lFrame.currentDirectiveIndex=t}function tp(t){let e=ve.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function np(){return ve.lFrame.currentQueryIndex}function Mc(t){ve.lFrame.currentQueryIndex=t}function xT(t){let e=t[ee];return e.type===2?e.declTNode:e.type===1?t[Qt]:null}function db(t,e,r){if(r&Ee.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&Ee.Host);)if(i=xT(o),i===null||(o=o[No],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=ve.lFrame=ub();return n.currentTNode=e,n.lView=t,!0}function ip(t){let e=ub(),r=t[ee];ve.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function ub(){let t=ve.lFrame,e=t===null?null:t.child;return e===null?fb(t):e}function fb(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function hb(){let t=ve.lFrame;return ve.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var pb=hb;function rp(){let t=hb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function DT(t){return(ve.lFrame.contextLView=uT(t,ve.lFrame.contextLView))[yt]}function Zn(){return ve.lFrame.selectedIndex}function Nr(t){ve.lFrame.selectedIndex=t}function Zi(){let t=ve.lFrame;return Ls(t.tView,t.selectedIndex)}function op(){ve.lFrame.currentNamespace=eb}function mq(){ET()}function ET(){ve.lFrame.currentNamespace=null}function IT(){return ve.lFrame.currentNamespace}var mb=!0;function Ac(){return mb}function Rc(t){mb=t}function ST(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Ky(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function kc(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[l]<0&&(t[yo]+=65536),(a>14>16&&(t[re]&3)===e&&(t[re]+=16384,kv(a,o)):kv(a,o)}var Co=-1,Fr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function MT(t){return t instanceof Fr}function AT(t){return(t.flags&8)!==0}function RT(t){return(t.flags&16)!==0}function _b(t){return t!==Co}function Ql(t){return t&32767}function kT(t){return t>>16}function Zl(t,e){let r=kT(t),n=e;for(;r>0;)n=n[No],r--;return n}var Gf=!0;function Kl(t){let e=Gf;return Gf=t,e}var OT=256,vb=OT-1,yb=5,NT=0,zn={};function FT(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(ws)&&(n=r[ws]),n==null&&(n=r[ws]=NT++);let i=n&vb,o=1<>yb)]|=o}function Xl(t,e){let r=bb(t,e);if(r!==-1)return r;let n=e[ee];n.firstCreatePass&&(t.injectorIndex=e.length,wf(n.data,t),wf(e,null),wf(n.blueprint,null));let i=sp(t,e),o=t.injectorIndex;if(_b(i)){let s=Ql(i),a=Zl(i,e),l=a[ee].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function wf(t,e){t.push(0,0,0,0,0,0,0,0,e)}function bb(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function sp(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Eb(i),n===null)return Co;if(r++,i=i[No],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Co}function qf(t,e,r){FT(t,e,r)}function PT(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,u=n?a:a+d,f=i?a+d:c;for(let m=u;m=l&&y.type===r)return m}if(i){let m=s[l];if(m&&bi(m)&&m.type===r)return l}return null}function Pr(t,e,r,n){let i=t[r],o=e.data;if(MT(i)){let s=i;s.resolving&&fS(uS(o[r]));let a=Kl(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Gt(s.injectImpl):null,d=db(t,n,Ee.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&ST(r,o[r],e)}finally{c!==null&&Gt(c),Kl(a),s.resolving=!1,pb()}}return i}function jT(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ws)?t[ws]:void 0;return typeof e=="number"?e>=0?e&vb:VT:e}function Ov(t,e,r){let n=1<>yb)]&n)}function Nv(t,e){return!(t&Ee.Self)&&!(t&Ee.Host&&e)}var Mr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return xb(this._tNode,this._lView,e,yc(n),r)}};function VT(){return new Mr(pt(),Q())}function Re(t){return Ns(()=>{let e=t.prototype.constructor,r=e[Ul]||Wf(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Ul]||Wf(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Wf(t){return Ey(t)?()=>{let e=Wf(St(t));return e&&e()}:Ar(t)}function BT(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[re]&2048&&!(s[re]&512);){let a=Db(o,s,r,n|Ee.Self,zn);if(a!==zn)return a;let l=o.parent;if(!l){let c=s[Qy];if(c){let d=c.get(r,zn,n);if(d!==zn)return d}l=Eb(s),s=s[No]}o=l}return i}function Eb(t){let e=t[ee],r=e.type;return r===2?e.declTNode:r===1?t[Qt]:null}function Di(t){return PT(pt(),t)}function Fv(t,e=null,r=null,n){let i=Ib(t,e,r,n);return i.resolveInjectorInitializers(),i}function Ib(t,e=null,r=null,n,i=new Set){let o=[r||Lt,US(t)];return n=n||(typeof t=="object"?void 0:jt(t)),new Es(o,e||xc(),n||null,i)}var Sr=class Sr{static create(e,r){if(Array.isArray(e))return Fv({name:""},r,e,"");{let n=e.name??"";return Fv({name:n},e.parent,e.providers,n)}}};Sr.THROW_IF_NOT_FOUND=xs,Sr.NULL=new ql,Sr.\u0275prov=I({token:Sr,providedIn:"any",factory:()=>C(Fy)}),Sr.__NG_ELEMENT_ID__=-1;var Te=Sr;var HT=new E("");HT.__NG_ELEMENT_ID__=t=>{let e=pt();if(e===null)throw new j(204,!1);if(e.type&2)return e.value;if(t&Ee.Optional)return null;throw new j(204,!1)};var $T="ngOriginalError";function Cf(t){return t[$T]}var fn=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Cf(e);for(;r&&Cf(r);)r=Cf(r);return r||null}},Sb=new E("",{providedIn:"root",factory:()=>g(fn).handleError.bind(void 0)}),pn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=UT,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Yf=class extends pn{constructor(e){super(),this._lView=e}onDestroy(e){return Xh(this._lView,e),()=>ib(this._lView,e)}};function UT(){return new Yf(Q())}var Qf=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=g(fn,{optional:!0}),this.destroyRef=g(pn),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new j(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let r=this.listeners?.indexOf(e);r!==void 0&&r!==-1&&this.listeners?.splice(r,1)}}}emit(e){if(this.destroyed)throw new j(953,!1);if(this.listeners===null)return;let r=De(null);try{for(let n of this.listeners)try{n(e)}catch(i){this.errorHandler?.handleError(i)}}finally{De(r)}}};function gq(t){return new Qf}function Pv(t,e){return xy(t,e)}function zT(t){return xy(Cy,t)}var He=(Pv.required=zT,Pv);function GT(){return Fo(pt(),Q())}function Fo(t,e){return new $(hn(t,e))}var $=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=GT;let t=e;return t})();function Tb(t){return t instanceof $?t.nativeElement:t}var Zf=class extends N{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Yy()&&(this.destroyRef=g(pn,{optional:!0})??void 0)}emit(e){let r=De(null);try{super.next(e)}finally{De(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xf(o),i&&(i=xf(i)),s&&(s=xf(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof Ce&&e.add(a),a}};function xf(t){return e=>{setTimeout(t,void 0,e)}}var q=Zf;function qT(){return this._results[Symbol.iterator]()}var En=class t{get changes(){return this._changes??=new q}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=qT)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=xS(e);(this._changesDetected=!CS(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Mb(t){return(t.flags&128)===128}var Ab=new Map,WT=0;function YT(){return WT++}function QT(t){Ab.set(t[Dc],t)}function ZT(t){Ab.delete(t[Dc])}var Lv="__ngContext__";function qi(t,e){zi(e)?(t[Lv]=e[Dc],QT(e)):t[Lv]=e}function Rb(t){return Ob(t[Ss])}function kb(t){return Ob(t[Cn])}function Ob(t){for(;t!==null&&!xi(t);)t=t[Cn];return t}var Kf;function Nb(t){Kf=t}function Fb(){if(Kf!==void 0)return Kf;if(typeof document<"u")return document;throw new j(210,!1)}var Po=new E("",{providedIn:"root",factory:()=>KT}),KT="ng",ap=new E(""),en=new E("",{providedIn:"platform",factory:()=>"unknown"});var kt=new E(""),Vs=new E("",{providedIn:"root",factory:()=>Fb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),lp={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},Pb=new E("",{providedIn:"root",factory:()=>lp});var XT="h",JT="b";var eM=()=>null;function cp(t,e,r=!1){return eM(t,e,r)}var Lb=!1,tM=new E("",{providedIn:"root",factory:()=>Lb});var Al;function nM(){if(Al===void 0&&(Al=null,ft.trustedTypes))try{Al=ft.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Al}function Oc(t){return nM()?.createHTML(t)||t}var Rl;function jb(){if(Rl===void 0&&(Rl=null,ft.trustedTypes))try{Rl=ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rl}function jv(t){return jb()?.createHTML(t)||t}function Vv(t){return jb()?.createScriptURL(t)||t}var wi=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wy})`}},Xf=class extends wi{getTypeName(){return"HTML"}},Jf=class extends wi{getTypeName(){return"Style"}},eh=class extends wi{getTypeName(){return"Script"}},th=class extends wi{getTypeName(){return"URL"}},nh=class extends wi{getTypeName(){return"ResourceURL"}};function Zt(t){return t instanceof wi?t.changingThisBreaksApplicationSecurity:t}function Ei(t,e){let r=iM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${wy})`)}return r===e}function iM(t){return t instanceof wi&&t.getTypeName()||null}function Vb(t){return new Xf(t)}function Bb(t){return new Jf(t)}function Hb(t){return new eh(t)}function $b(t){return new th(t)}function Ub(t){return new nh(t)}function rM(t){let e=new rh(t);return oM()?new ih(e):e}var ih=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Oc(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},rh=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Oc(e),r}};function oM(){try{return!!new window.DOMParser().parseFromString(Oc(""),"text/html")}catch{return!1}}var sM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Nc(t){return t=String(t),t.match(sM)?t:"unsafe:"+t}function Ii(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Bs(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var zb=Ii("area,br,col,hr,img,wbr"),Gb=Ii("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qb=Ii("rp,rt"),aM=Bs(qb,Gb),lM=Bs(Gb,Ii("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")),cM=Bs(qb,Ii("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")),Bv=Bs(zb,lM,cM,aM),Wb=Ii("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dM=Ii("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"),uM=Ii("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"),fM=Bs(Wb,dM,uM),hM=Ii("script,style,template"),oh=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=gM(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=mM(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=Hv(e).toLowerCase();if(!Bv.hasOwnProperty(r))return this.sanitizedSomething=!0,!hM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=Hv(e).toLowerCase();Bv.hasOwnProperty(r)&&!zb.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push($v(e))}};function pM(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function mM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Yb(e);return e}function gM(t){let e=t.firstChild;if(e&&pM(t,e))throw Yb(e);return e}function Hv(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Yb(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var _M=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vM=/([^\#-~ |!])/g;function $v(t){return t.replace(/&/g,"&").replace(_M,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(vM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var kl;function dp(t,e){let r=null;try{kl=kl||rM(t);let n=e?String(e):"";r=kl.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=kl.getInertBodyElement(n)}while(n!==o);let a=new oh().sanitizeChildren(Uv(r)||r);return Oc(a)}finally{if(r){let n=Uv(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Uv(t){return"content"in t&&yM(t)?t.content:null}function yM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var In=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(In||{});function _q(t){let e=up();return e?jv(e.sanitize(In.HTML,t)||""):Ei(t,"HTML")?jv(Zt(t)):dp(Fb(),Gn(t))}function Si(t){let e=up();return e?e.sanitize(In.URL,t)||"":Ei(t,"URL")?Zt(t):Nc(Gn(t))}function bM(t){let e=up();if(e)return Vv(e.sanitize(In.RESOURCE_URL,t)||"");if(Ei(t,"ResourceURL"))return Vv(Zt(t));throw new j(904,!1)}function wM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?bM:Si}function Qb(t,e,r){return wM(e,r)(t)}function up(){let t=Q();return t&&t[Wn].sanitizer}var CM=/^>|^->||--!>|)/g,DM="\u200B$1\u200B";function EM(t){return t.replace(CM,e=>e.replace(xM,DM))}function IM(t){Iy("Must never be called in production mode");let r=t[Vt][yt];return r&&r.constructor?xn(r.constructor):null}function SM(t){Iy("Must never be called in production mode");let r=IM(t)?.type?.name;return r?` (used in the '${r}' component template)`:""}function Zb(t){return t instanceof Function?t():t}function Fc(t){return(t??g(Te)).get(en)==="browser"}var Ci=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ci||{}),TM;function fp(t,e){return TM(t,e)}function bo(t,e,r,n,i){if(n!=null){let o,s=!1;xi(n)?o=n:zi(n)&&(s=!0,n=n[Qn]);let a=Yn(n);t===0&&r!==null?i==null?t0(e,r,a):Jl(e,r,a,i||null,!0):t===1&&r!==null?Jl(e,r,a,i||null,!0):t===2?UM(e,a,s):t===3&&e.destroyNode(a),o!=null&&GM(e,t,o,r,i)}}function MM(t,e){return t.createText(e)}function AM(t,e,r){t.setValue(e,r)}function RM(t,e){return t.createComment(EM(e))}function Kb(t,e,r){return t.createElement(e,r)}function kM(t,e){Xb(t,e),e[Qn]=null,e[Qt]=null}function OM(t,e,r,n,i,o){n[Qn]=i,n[Qt]=e,jc(t,n,r,1,i,o)}function Xb(t,e){e[Wn].changeDetectionScheduler?.notify(8),jc(t,e,e[qe],2,null,null)}function NM(t){let e=t[Ss];if(!e)return Df(t[ee],t);for(;e;){let r=null;if(zi(e))r=e[Ss];else{let n=e[Rt];n&&(r=n)}if(!r){for(;e&&!e[Cn]&&e!==t;)zi(e)&&Df(e[ee],e),e=e[Mt];e===null&&(e=t),zi(e)&&Df(e[ee],e),r=e&&e[Cn]}e=r}}function FM(t,e,r,n){let i=Rt+n,o=r.length;n>0&&(r[i-1][Cn]=e),n0&&(t[r-1][Cn]=n[Cn]);let o=Gl(t,Rt+e);kM(n[ee],n);let s=o[yi];s!==null&&s.detachView(o[ee]),n[Mt]=null,n[Cn]=null,n[re]&=-129}return n}function Pc(t,e){if(!(e[re]&256)){let r=e[qe];r.destroyNode&&jc(t,e,r,3,null,null),NM(e)}}function Df(t,e){if(e[re]&256)return;let r=De(null);try{e[re]&=-129,e[re]|=256,e[kr]&&mf(e[kr]),LM(t,e),PM(t,e),e[ee].type===1&&e[qe].destroy();let n=e[Rr];if(n!==null&&xi(e[Mt])){n!==e[Mt]&&hp(n,e);let i=e[yi];i!==null&&i.detachView(t)}ZT(e)}finally{De(r)}}function PM(t,e){let r=t.cleanup,n=e[Is];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Is]=null);let i=e[Ui];if(i!==null){e[Ui]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===qn.None||o===qn.Emulated)return null}return hn(n,r)}}function Jl(t,e,r,n,i){t.insertBefore(e,r,n,i)}function t0(t,e,r){t.appendChild(e,r)}function zv(t,e,r,n,i){n!==null?Jl(t,e,r,n,i):t0(t,e,r)}function VM(t,e,r,n){t.removeChild(e,r,n)}function pp(t,e){return t.parentNode(e)}function BM(t,e){return t.nextSibling(e)}function n0(t,e,r){return $M(t,e,r)}function HM(t,e,r){return t.type&40?hn(t,r):null}var $M=HM,Gv;function Lc(t,e,r,n){let i=e0(t,n,e),o=e[qe],s=n.parent||e[Qt],a=n0(s,n,e);if(i!=null)if(Array.isArray(r))for(let l=0;lot&&a0(t,e,ot,!1),Un(s?2:0,i),r(n,i)}finally{Nr(o),Un(s?3:1,i)}}function gp(t,e,r){if(Qh(e)){let n=De(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function eA(t,e,r,n){let i=_0(e);i.push(r),t.firstCreatePass&&v0(t).push(n,i.length-1)}function tA(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return sb()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function qv(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=Do.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?Wv(n,r,c,a,l):Wv(n,r,c,a)}return n}function Wv(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function nA(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let d=n;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function aA(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ec(r)&&pA(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Xl(r,e),qi(n,e);let s=r.initialInputs;for(let a=i;a{Sc(t.lView)},consumerOnSignalRead(){this.lView[kr]=this}}),SA=100;function C0(t,e=!0,r=0){let n=t[Wn],i=n.rendererFactory,o=!1;o||i.begin?.();try{TA(t,r)}catch(s){throw e&&Hc(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function TA(t,e){let r=lb();try{Rv(!0),ch(t,e);let n=0;for(;Ts(t);){if(n===SA)throw new j(103,!1);n++,ch(t,1)}}finally{Rv(r)}}function MA(t,e,r,n){let i=e[re];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Wn].inlineEffectRunner?.flush(),ip(e);let a=null,l=null;!o&&AA(t)&&(l=xA(e),a=Dl(l));try{nb(e),yT(t.bindingStartIndex),r!==null&&u0(t,e,r,2,n);let c=(i&3)===3;if(!o)if(c){let f=t.preOrderCheckHooks;f!==null&&jl(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Vl(e,f,0,null),bf(e,0)}if(s||RA(e),x0(e,0),t.contentQueries!==null&&g0(t,e),!o)if(c){let f=t.contentCheckHooks;f!==null&&jl(e,f)}else{let f=t.contentHooks;f!==null&&Vl(e,f,1),bf(e,1)}YM(t,e);let d=t.components;d!==null&&E0(e,d,0);let u=t.viewQuery;if(u!==null&&lh(2,u,n),!o)if(c){let f=t.viewCheckHooks;f!==null&&jl(e,f)}else{let f=t.viewHooks;f!==null&&Vl(e,f,2),bf(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ll]){for(let f of e[Ll])f();e[Ll]=null}o||(e[re]&=-73)}catch(c){throw o||Sc(e),c}finally{l!==null&&(El(l,a),EA(l)),rp()}}function AA(t){return t.type!==2}function x0(t,e){for(let r=Rb(t);r!==null;r=kb(r))for(let n=Rt;n-1&&(As(e,n),Gl(r,n))}this._attachedToViewContainer=!1}Pc(this._lView[ee],this._lView)}onDestroy(e){Xh(this._lView,e)}markForCheck(){$c(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[re]&=-129}reattach(){Uf(this._lView),this._lView[re]|=128}detectChanges(){this._lView[re]|=1024,C0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new j(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Hf(this._lView),r=this._lView[Rr];r!==null&&!e&&hp(r,this._lView),Xb(this._lView[ee],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new j(902,!1);this._appRef=e;let r=Hf(this._lView),n=this._lView[Rr];n!==null&&!r&&Jb(n,this._lView),Uf(this._lView)}},Ue=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=FA;let t=e;return t})(),OA=Ue,NA=class extends OA{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=jo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new jr(i)}};function FA(){return Uc(pt(),Q())}function Uc(t,e){return t.type&4?new NA(e,t,Fo(t,e)):null}var yq=new RegExp(`^(\\d+)*(${JT}|${XT})*(.*)`);var PA=()=>null;function Vr(t,e){return PA(t,e)}var To=class{},I0=new E("",{providedIn:"root",factory:()=>!1});var S0=new E(""),dh=class{},tc=class{};function LA(t){let e=Error(`No component factory found for ${jt(t)}.`);return e[jA]=t,e}var jA="ngComponent";var uh=class{resolveComponentFactory(e){throw LA(e)}},Wp=class Wp{};Wp.NULL=new uh;var Jt=Wp,Mo=class{},Kn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>VA();let t=e;return t})();function VA(){let t=Q(),e=pt(),r=Yi(e.index,t);return(zi(r)?r:t)[qe]}var BA=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Ef={};var Yv=new Set;function mn(t){Yv.has(t)||(Yv.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function T0(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ft.requestAnimationFrame=="function"&&ft.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function Qv(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Zv(...t){}var L=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),typeof Zone>"u")throw new j(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,UA(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new j(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new j(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,HA,Zv,Zv);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},HA={};function Ep(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function $A(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{T0(()=>{t.callbackScheduled=!1,fh(t),t.isCheckStableRunning=!0,Ep(t),t.isCheckStableRunning=!1})}),fh(t))}function UA(t){let e=()=>{$A(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(zA(a))return r.invokeTask(i,o,s,a);try{return Kv(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Xv(t)}},onInvoke:(r,n,i,o,s,a,l)=>{try{return Kv(t),r.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!GA(a)&&e(),Xv(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,fh(t),Ep(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function fh(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Kv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Xv(t){t._nesting--,Ep(t)}var nc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function zA(t){return M0(t,"__ignore_ng_zone__")}function GA(t){return M0(t,"__scheduler_tick__")}function M0(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function qA(t="zone.js",e){return t==="noop"?new nc:t==="zone.js"?new L(e):t}var _i=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(_i||{}),A0={destroy(){}};function Hs(t,e){!e&&Oo(Hs);let r=e?.injector??g(Te);if(!Fc(r))return A0;mn("NgAfterRender");let n=r.get(zc),i=n.handler??=new rc,o=e?.phase??_i.MixedReadWrite,s=()=>{i.unregister(l),a()},a=r.get(pn).onDestroy(s),l=Yt(r,()=>new ic(o,t));return i.register(l),{destroy:s}}function Ct(t,e){!e&&Oo(Ct);let r=e?.injector??g(Te);if(!Fc(r))return A0;mn("NgAfterNextRender");let n=r.get(zc),i=n.handler??=new rc,o=e?.phase??_i.MixedReadWrite,s=()=>{i.unregister(l),a()},a=r.get(pn).onDestroy(s),l=Yt(r,()=>new ic(o,()=>{s(),t()}));return i.register(l),{destroy:s}}var ic=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=g(L),this.errorHandler=g(fn,{optional:!0}),g(To,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},rc=class{constructor(){this.executingCallbacks=!1,this.buckets={[_i.EarlyRead]:new Set,[_i.Write]:new Set,[_i.MixedReadWrite]:new Set,[_i.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},zc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function oc(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&o0(t,r,o.join(" "))}}function JA(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=t1;let t=e;return t})();function t1(){let t=pt();return k0(t,Q())}var n1=We,R0=class extends n1{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Fo(this._hostTNode,this._hostLView)}get injector(){return new Mr(this._hostTNode,this._hostLView)}get parentInjector(){let e=sp(this._hostTNode,this._hostLView);if(_b(e)){let r=Zl(e,this._hostLView),n=Ql(e),i=r[ee].data[n+8];return new Mr(i,r)}else return new Mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=ey(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Vr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Lr(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!tT(e),a;if(s)a=r;else{let y=r||{};a=y.index,n=y.injector,i=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}let l=s?e:new Br(xn(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let A=(s?c:this.parentInjector).get(ht,null);A&&(o=A)}let d=xn(l.componentType??{}),u=Vr(this._lContainer,d?.id??null),f=u?.firstChild??null,m=l.create(c,i,f,o);return this.insertImpl(m.hostView,a,Lr(this._hostTNode,u)),m}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(cT(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=i[Mt],c=new R0(l,l[Qt],l[Mt]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Vo(s,i,o,n),e.attachToViewContainerRef(),Ny(If(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=ey(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=As(this._lContainer,r);n&&(Gl(If(this._lContainer),r),Pc(n[ee],n))}detach(e){let r=this._adjustIndex(e,-1),n=As(this._lContainer,r);return n&&Gl(If(this._lContainer),r)!=null?new jr(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function ey(t){return t[Wl]}function If(t){return t[Wl]||(t[Wl]=[])}function k0(t,e){let r,n=e[t.index];return xi(n)?r=n:(r=m0(n,e,null,t),e[t.index]=r,Bc(e,r)),r1(r,e,t,n),new R0(r,t,e)}function i1(t,e){let r=t[qe],n=r.createComment(""),i=hn(e,t),o=pp(r,i);return Jl(r,o,n,BM(r,i),!1),n}var r1=s1,o1=()=>!1;function O0(t,e,r){return o1(t,e,r)}function s1(t,e,r,n){if(t[Or])return;let i;r.type&8?i=Yn(n):i=i1(e,r),t[Or]=i}var ph=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},mh=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],d=e[-l];for(let u=Rt;ue.trim())}function L0(t,e,r){t.queries===null&&(t.queries=new gh),t.queries.track(new _h(e,r))}function h1(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function Sp(t,e){return t.queries.getByIndex(e)}function j0(t,e){let r=t[ee],n=Sp(r,e);return n.crossesNgTemplate?vh(r,t,e,[]):N0(r,t,n,e)}function Gc(t){return typeof t=="function"&&t[Xt]!==void 0}function Xn(t,e){mn("NgSignals");let r=_v(t),n=r[Xt];return e?.equal&&(n.equal=e.equal),r.set=i=>Tl(n,i),r.update=i=>vv(n,i),r.asReadonly=p1.bind(r),r}function p1(){let t=this[Xt];if(t.readonlyFn===void 0){let e=()=>this();e[Xt]=t,t.readonlyFn=e}return t.readonlyFn}function V0(t){return Gc(t)&&typeof t.set=="function"}function B0(t,e){let r,n=gf(()=>{r._dirtyCounter();let i=v1(r,t);if(e&&i===void 0)throw new j(-951,!1);return i});return r=n[Xt],r._dirtyCounter=Xn(0),r._flatValue=void 0,n}function m1(){return B0(!0,!1)}function g1(){return B0(!0,!0)}function _1(t,e){let r=t[Xt];r._lView=Q(),r._queryIndex=e,r._queryList=Ip(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(n=>n+1))}function v1(t,e){let r=t._lView,n=t._queryIndex;if(r===void 0||n===void 0||r[re]&4)return e?void 0:Lt;let i=Ip(r,n),o=j0(r,n);return i.reset(o,Tb),e?i.first:i._changesDetected||t._flatValue===void 0?t._flatValue=i.toArray():t._flatValue}function ty(t,e){return m1()}function y1(t,e){return g1()}var H0=(ty.required=y1,ty);function b1(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(D1))}return o}return cc.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,d=i.styleUrls;i.styleUrls.forEach((u,f)=>{a.push(""),s.push(n(u).then(m=>{a[c+f]=m,d.splice(d.indexOf(u),1),d.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let l=Promise.all(s).then(()=>E1(o));e.push(l)}),C1(),Promise.all(e).then(()=>{})}var cc=new Map,w1=new Set;function C1(){let t=cc;return cc=new Map,t}function x1(){return cc.size===0}function D1(t){return typeof t=="string"?t:t.text()}function E1(t){w1.delete(t)}function I1(t){return Object.getPrototypeOf(t.prototype).constructor}function ie(t){let e=I1(t.type),r=!0,n=[t];for(;e;){let i;if(bi(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new j(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=Ol(t.inputs),s.inputTransforms=Ol(t.inputTransforms),s.declaredInputs=Ol(t.declaredInputs),s.outputs=Ol(t.outputs);let a=i.hostBindings;a&&R1(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&M1(t,l),c&&A1(t,c),S1(t,i),iS(t.outputs,i.outputs),bi(i)&&i.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Ds(i.hostAttrs,r=Ds(r,i.hostAttrs))}}function Ol(t){return t===vi?{}:t===Lt?[]:t}function M1(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function A1(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function R1(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function wq(t){let e=r=>{let n=(Array.isArray(t)?t:t()).map(i=>typeof i=="function"?{directive:St(i),inputs:vi,outputs:vi}:{directive:St(i.directive),inputs:ny(i.inputs),outputs:ny(i.outputs)});r.hostDirectives===null?(r.findHostDirectiveDefs=$0,r.hostDirectives=n):r.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function $0(t,e,r){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let i=bc(n.directive);k1(i.declaredInputs,n.inputs),$0(i,e,r),r.set(i,n),e.push(i)}}function ny(t){if(t===void 0||t.length===0)return vi;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},uc=class extends Rs{constructor(e){super(),this.moduleType=e}create(e){return new dc(this.moduleType,e,[])}};function O1(t,e,r){return new dc(t,e,r)}var yh=class extends Wi{constructor(e){super(),this.componentFactoryResolver=new sc(this),this.instance=null;let r=new Es([...e.providers,{provide:Wi,useValue:this},{provide:Jt,useValue:this.componentFactoryResolver}],e.parent||xc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function $s(t,e,r=null){return new yh({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var N1=(()=>{let e=class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(n,i,o,s){if(!this.cachedInjectors.has(n)){let a=o.length>0?$s(o,i,s):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=I({token:e,providedIn:"environment",factory:()=>new e});let t=e;return t})();var Jn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ze(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function U0(t){return Tp(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function F1(t,e){if(Array.isArray(t))for(let r=0;rQ0(y);z1(0,y,()=>ib(c,A)),Xh(c,A)}function xq(){let t=Q(),e=pt(),r=t[ee],n=t[Dn],i=Us(r,e);(!Z0(n)||i.loadingTmplIndex===null)&&nR(t,e),iR(t,e)}function Tr(t,e,r,n=!1){let i=r[Mt],o=i[ee];if(nT(i))return;let s=Rp(i,e),a=s[G0];if(sy(a,t)&&sy(s[U1]??-1,t)){let l=i[Dn],c=Us(o,e),u=!n&&Fc(l)&&(Y1(c)!==null||ry(c,Tt.Loading)!==null||ry(c,Tt.Placeholder))?K1:eR;try{u(t,s,r,e,i)}catch(f){Hc(i,f)}}}function X1(t){return t instanceof ac&&typeof t.injector.__ngOutletInjector=="function"}function J1(t,e){return t.injector.__ngOutletInjector(e)}function eR(t,e,r,n,i){let o=W1(t,i,n);if(o!==null){e[G0]=t;let s=i[ee],a=o+ot,l=Ls(s,a),c=0;Dp(r,c);let d;if(t===Tt.Complete){let m=Us(s,n),y=m.providers;if(y&&y.length>0){let A=i[Dn],k=X1(A),O=k?A:A.get(ht);d=O.get(N1).getOrCreateInjector(m,O,y,""),k&&(d=J1(A,d))}}let u=Vr(r,l.tView.ssrId),f=jo(i,l,null,{dehydratedView:u,injector:d});Vo(r,f,c,Lr(l,u)),$c(f,2)}}function sy(t,e){return t{let u=!1,f=[],m=[];for(let y of d)if(y.status==="fulfilled"){let A=y.value,k=xn(A)||bc(A);if(k)f.push(k);else{let O=Gh(A);O&&m.push(O)}}else{u=!0;break}if(t.loadingPromise=null,l.remove(c),u){if(t.loadingState=qt.FAILED,t.errorTmplIndex===null){let y=SM(e),A=new j(750,!1);Hc(e,A)}}else{t.loadingState=qt.COMPLETE;let y=s.tView;if(f.length>0){y.directiveRegistry=oy(y.directiveRegistry,f);let A=f.map(O=>O.type),k=qh(!1,...A);t.providers=k}m.length>0&&(y.pipeRegistry=oy(y.pipeRegistry,m))}}),t.loadingPromise):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=qt.COMPLETE,l.remove(c)}),t.loadingPromise)}function nR(t,e){let r=t[e.index];Tr(Tt.Placeholder,e,r)}function ay(t,e,r){t.loadingPromise.then(()=>{t.loadingState===qt.COMPLETE?Tr(Tt.Complete,e,r):t.loadingState===qt.FAILED&&Tr(Tt.Error,e,r)})}function iR(t,e){let r=t[ee],n=t[e.index],i=t[Dn];if(!Z0(i))return;let o=Rp(t,e),s=Us(r,e);switch(Q0(o),s.loadingState){case qt.NOT_STARTED:Tr(Tt.Loading,e,n),tR(s,t,e),s.loadingState===qt.IN_PROGRESS&&ay(s,e,n);break;case qt.IN_PROGRESS:Tr(Tt.Loading,e,n),ay(s,e,n);break;case qt.COMPLETE:Tr(Tt.Complete,e,n);break;case qt.FAILED:Tr(Tt.Error,e,n);break;default:}}function Pe(t,e,r,n){let i=Q(),o=Qi();if(Wt(i,o,e)){let s=Be(),a=Zi();mA(a,i,t,e,r,n)}return Pe}function kp(t,e,r,n){return Wt(t,Qi(),r)?e+Gn(r)+n:wt}function Op(t,e,r,n,i,o){let s=cb(),a=Ap(t,s,r,i);return Tc(2),a?e+Gn(r)+n+Gn(i)+o:wt}function K0(t,e,r,n,i,o,s,a){let l=cb(),c=L1(t,l,r,i,s);return Tc(3),c?e+Gn(r)+n+Gn(i)+o+Gn(s)+a:wt}function Nl(t,e){return t<<17|e<<2}function Hr(t){return t>>17&32767}function rR(t){return(t&2)==2}function oR(t,e){return t&131071|e<<17}function wh(t){return t|2}function Ao(t){return(t&131068)>>2}function Sf(t,e){return t&-131069|e<<2}function sR(t){return(t&1)===1}function Ch(t){return t|1}function aR(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Hr(s),l=Ao(s);t[n]=r;let c=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||Ps(u,d)>0)&&(c=!0)}else d=r;if(i)if(l!==0){let f=Hr(t[a+1]);t[n+1]=Nl(f,a),f!==0&&(t[f+1]=Sf(t[f+1],n)),t[a+1]=oR(t[a+1],n)}else t[n+1]=Nl(a,0),a!==0&&(t[a+1]=Sf(t[a+1],n)),a=n;else t[n+1]=Nl(l,0),a===0?a=n:t[l+1]=Sf(t[l+1],n),l=n;c&&(t[n+1]=wh(t[n+1])),ly(t,d,n,!0),ly(t,d,n,!1),lR(e,d,t,n,o),s=Nl(a,l),o?e.classBindings=s:e.styleBindings=s}function lR(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Ps(o,e)>=0&&(r[n+1]=Ch(r[n+1]))}function ly(t,e,r,n){let i=t[r+1],o=e===null,s=n?Hr(i):Ao(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];cR(l,e)&&(a=!0,t[s+1]=n?Ch(c):wh(c)),s=n?Hr(c):Ao(c)}a&&(t[r+1]=n?wh(i):Ch(i))}function cR(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Ps(t,e)>=0:!1}var ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function X0(t){return t.substring(ut.key,ut.keyEnd)}function dR(t){return t.substring(ut.value,ut.valueEnd)}function uR(t){return tw(t),J0(t,Ro(t,0,ut.textEnd))}function J0(t,e){let r=ut.textEnd;return r===e?-1:(e=ut.keyEnd=hR(t,ut.key=e,r),Ro(t,e,r))}function fR(t){return tw(t),ew(t,Ro(t,0,ut.textEnd))}function ew(t,e){let r=ut.textEnd,n=ut.key=Ro(t,e,r);return r===n?-1:(n=ut.keyEnd=pR(t,n,r),n=cy(t,n,r,58),n=ut.value=Ro(t,n,r),n=ut.valueEnd=mR(t,n,r),cy(t,n,r,59))}function tw(t){ut.key=0,ut.keyEnd=0,ut.value=0,ut.valueEnd=0,ut.textEnd=t.length}function Ro(t,e,r){for(;e32;)e++;return e}function pR(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function cy(t,e,r,n){return e=Ro(t,e,r),e32&&(a=s),o=i,i=n,n=l&-33}return a}function dy(t,e,r,n){let i=-1,o=r;for(;o=0;r=ew(e,r))sw(t,X0(e),dR(e))}function Gr(t){Np(xR,nw,t,!0)}function nw(t,e){for(let r=uR(e);r>=0;r=J0(e,r))Fs(t,X0(e),!0)}function iw(t,e,r,n){let i=Q(),o=Be(),s=Tc(2);if(o.firstUpdatePass&&ow(o,t,s,n),e!==wt&&Wt(i,s,e)){let a=o.data[Zn()];aw(o,a,i,i[qe],t,i[s+1]=ER(e,r),n,s)}}function Np(t,e,r,n){let i=Be(),o=Tc(2);i.firstUpdatePass&&ow(i,null,o,n);let s=Q();if(r!==wt&&Wt(s,o,r)){let a=i.data[Zn()];if(lw(a,n)&&!rw(i,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(r=Of(l,r||"")),xh(i,a,s,r,n)}else DR(i,a,s,s[qe],s[o+1],s[o+1]=CR(t,e,r),n,o)}}function rw(t,e){return e>=t.expandoStartIndex}function ow(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Zn()],s=rw(t,r);lw(o,n)&&e===null&&!s&&(e=!1),e=vR(i,o,e,n),aR(i,o,e,r,s,n)}}function vR(t,e,r,n){let i=tp(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Tf(null,t,e,r,n),r=Os(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Tf(i,t,e,r,n),o===null){let l=yR(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Tf(null,t,e,l[1],n),l=Os(l,e.attrs,n),bR(t,e,n,l))}else o=wR(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function yR(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Ao(n)!==0)return t[Hr(n)]}function bR(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Hr(i)]=n}function wR(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let l=t[i],c=Array.isArray(l),d=c?l[1]:l,u=d===null,f=r[i+1];f===wt&&(f=u?Lt:void 0);let m=u?vf(f,n):d===n?f:void 0;if(c&&!fc(m)&&(m=vf(l,n)),fc(m)&&(a=m,s))return a;let y=t[i+1];i=s?Hr(y):Ao(y)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=vf(l,n))}return a}function fc(t){return t!==void 0}function ER(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=jt(Zt(t)))),t}function lw(t,e){return(t.flags&(e?8:16))!==0}function cw(t,e,r){let n=Q(),i=kp(n,t,e,r);Np(Fs,nw,i,!0)}function Dq(){return Q()[Vt][yt]}var Dh=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function Mf(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function IR(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;o<=s&&o<=l;){let c=t.at(o),d=e[o],u=Mf(o,c,o,d,r);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let f=t.at(s),m=e[l],y=Mf(s,f,l,m,r);if(y!==0){y<0&&t.updateValue(s,m),s--,l--;continue}let A=r(o,c),k=r(s,f),O=r(o,d);if(Object.is(O,k)){let ce=r(l,m);Object.is(ce,A)?(t.swap(o,s),t.updateValue(s,m),l--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(n??=new hc,i??=hy(t,o,s,r),Eh(t,n,o,O))t.updateValue(o,d),o++,s++;else if(i.has(O))n.set(A,t.detach(o)),s--;else{let ce=t.create(o,e[o]);t.attach(o,ce),o++,s++}}for(;o<=l;)fy(t,n,r,o,e[o]),o++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=t.at(o),u=c.value,f=Mf(o,d,o,u,r);if(f!==0)f<0&&t.updateValue(o,u),o++,c=l.next();else{n??=new hc,i??=hy(t,o,s,r);let m=r(o,u);if(Eh(t,n,o,m))t.updateValue(o,u),o++,s++,c=l.next();else if(!i.has(m))t.attach(o,t.create(o,u)),o++,s++,c=l.next();else{let y=r(o,d);n.set(y,t.detach(o)),s--}}}for(;!c.done;)fy(t,n,r,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function Eh(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function fy(t,e,r,n,i){if(Eh(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function hy(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var hc=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function b(t,e){mn("NgControlFlow");let r=Q(),n=Qi(),i=r[n]!==wt?r[n]:-1,o=i!==-1?pc(r,ot+i):void 0,s=0;if(Wt(r,n,t)){let a=De(null);try{if(o!==void 0&&Dp(o,s),t!==-1){let l=ot+t,c=pc(r,l),d=Mh(r[ee],l),u=Vr(c,d.tView.ssrId),f=jo(r,d,e,{dehydratedView:u});Vo(c,f,s,Lr(d,u))}}finally{De(a)}}else if(o!==void 0){let a=b0(o,s);a!==void 0&&(a[yt]=e)}}var Ih=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Rt}};function it(t,e){return e}var Sh=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function et(t,e,r,n,i,o,s,a,l,c,d,u,f){mn("NgControlFlow");let m=Q(),y=Be(),A=l!==void 0,k=Q(),O=a?s.bind(k[Vt][yt]):s,ce=new Sh(A,O);k[ot+t]=ce,ks(m,y,t+1,e,r,n,i,Gi(y.consts,o)),A&&ks(m,y,t+2,l,c,d,u,Gi(y.consts,f))}var Th=class extends Dh{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Rt}at(e){return this.getLView(e)[yt].$implicit}attach(e,r){let n=r[Io];this.needsIndexUpdate||=e!==this.length,Vo(this.lContainer,r,e,Lr(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,SR(this.lContainer,e)}create(e,r){let n=Vr(this.lContainer,this.templateTNode.tView.ssrId),i=jo(this.hostLView,this.templateTNode,new Ih(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Pc(e[ee],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[yt].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Rc(!0),Kb(n,i,IT()));function RR(t,e,r,n,i){let o=e.consts,s=Gi(o,n),a=Lo(e,t,8,"ng-container",s);s!==null&&oc(a,s,!0);let l=Gi(o,i);return bp(e,r,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function ei(t,e,r){let n=Q(),i=Be(),o=t+ot,s=i.firstCreatePass?RR(o,i,n,e,r):i.data[o];Ur(s,!0);let a=kR(i,n,s,t);return n[o]=a,Ac()&&Lc(i,n,a,s),qi(a,n),Ic(s)&&(_p(i,n,s),gp(i,s,n)),r!=null&&vp(n,s),ei}function ti(){let t=pt(),e=Be();return Jh()?ep():(t=t.parent,Ur(t,!1)),e.firstCreatePass&&(kc(e,t),Qh(t)&&e.queries.elementEnd(t)),ti}function Bt(t,e,r){return ei(t,e,r),ti(),Bt}var kR=(t,e,r,n)=>(Rc(!0),RM(e[qe],""));function Ke(){return Q()}function zs(t,e,r){let n=Q(),i=Qi();if(Wt(n,i,e)){let o=Be(),s=Zi();zr(o,s,n,t,e,n[qe],r,!0)}return zs}function Fp(t,e,r){let n=Q(),i=Qi();if(Wt(n,i,e)){let o=Be(),s=Zi(),a=tp(o.data),l=y0(a,s,n);zr(o,s,n,t,e,l,r,!0)}return Fp}var Ir=void 0;function OR(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var NR=["en",[["a","p"],["AM","PM"],Ir],[["AM","PM"],Ir,Ir],[["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"]],Ir,[["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"]],Ir,[["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}",Ir,"{1} 'at' {0}",Ir],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",OR],Af={};function Pp(t){let e=FR(t),r=py(e);if(r)return r;let n=e.split("-")[0];if(r=py(n),r)return r;if(n==="en")return NR;throw new j(701,!1)}function py(t){return t in Af||(Af[t]=ft.ng&&ft.ng.common&&ft.ng.common.locales&&ft.ng.common.locales[t]),Af[t]}var Bo=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Bo||{});function FR(t){return t.toLowerCase().replace(/_/g,"-")}var mc="en-US";var PR=mc;function LR(t){typeof t=="string"&&(PR=t.toLowerCase().replace(/_/g,"-"))}var jR=(t,e,r)=>{};function le(t,e,r,n){let i=Q(),o=Be(),s=pt();return jp(o,i,i[qe],s,t,e,n),le}function Lp(t,e){let r=pt(),n=Q(),i=Be(),o=tp(i.data),s=y0(o,r,n);return jp(i,n,s,r,t,e),Lp}function VR(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function jp(t,e,r,n,i,o,s){let a=Ic(n),c=t.firstCreatePass&&v0(t),d=e[yt],u=_0(e),f=!0;if(n.type&3||s){let A=hn(n,e),k=s?s(A):A,O=u.length,ce=s?Fe=>s(Yn(Fe[n.index])):n.index;jR(A,i,o);let je=null;if(!s&&a&&(je=VR(t,e,i,n.index)),je!==null){let Fe=je.__ngLastListenerFn__||je;Fe.__ngNextListenerFn__=o,je.__ngLastListenerFn__=o,f=!1}else{o=gy(n,e,d,o,!1);let Fe=r.listen(k,i,o);u.push(o,Fe),c&&c.push(i,ce,O,O+1)}}else o=gy(n,e,d,o,!1);let m=n.outputs,y;if(f&&m!==null&&(y=m[i])){let A=y.length;if(A)for(let k=0;k-1?Yi(t.index,e):e;$c(a,5);let l=my(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)l=my(e,r,c,s)&&l,c=c.__ngNextListenerFn__;return i&&l===!1&&s.preventDefault(),l}}function _(t=1){return DT(t)}function BR(t,e){let r=null,n=OS(t);for(let i=0;i=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Ki(t){let e=vT();return Zh(e,ot+t)}function fw(t,e,r,n,i){let o=Q(),s=Op(o,t,e,r,n,i);gR(s)}function x(t,e=""){let r=Q(),n=Be(),i=t+ot,o=n.firstCreatePass?Lo(n,i,1,e,null):n.data[i],s=UR(n,r,o,e,t);r[i]=s,Ac()&&Lc(n,r,s,o),Ur(o,!1)}var UR=(t,e,r,n,i)=>(Rc(!0),MM(e[qe],n));function ke(t){return Y("",t,""),ke}function Y(t,e,r){let n=Q(),i=kp(n,t,e,r);return i!==wt&&Cp(n,Zn(),i),Y}function xt(t,e,r,n,i){let o=Q(),s=Op(o,t,e,r,n,i);return s!==wt&&Cp(o,Zn(),s),xt}function Hp(t,e,r,n,i,o,s){let a=Q(),l=K0(a,t,e,r,n,i,o,s);return l!==wt&&Cp(a,Zn(),l),Hp}function zR(t,e,r){V0(e)&&(e=e());let n=Q(),i=Qi();if(Wt(n,i,e)){let o=Be(),s=Zi();zr(o,s,n,t,e,n[qe],r,!1)}return zR}function Eq(t,e){let r=V0(t);return r&&t.set(e),r}function GR(t,e){let r=Q(),n=Be(),i=pt();return jp(n,r,r[qe],i,t,e),GR}function qR(t,e,r){let n=Be();if(n.firstCreatePass){let i=bi(t);Ah(r,n.data,n.blueprint,i,!0),Ah(e,n.data,n.blueprint,i,!1)}}function Ah(t,e,r,n,i){if(t=St(t),Array.isArray(t))for(let o=0;o>20;if(Eo(t)||!t.multi){let m=new Fr(c,i,p),y=kf(l,e,i?d:d+f,u);y===-1?(qf(Xl(a,s),o,l),Rf(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(m),s.push(m)):(r[y]=m,s[y]=m)}else{let m=kf(l,e,d+f,u),y=kf(l,e,d,d+f),A=m>=0&&r[m],k=y>=0&&r[y];if(i&&!k||!i&&!A){qf(Xl(a,s),o,l);let O=QR(i?YR:WR,r.length,i,n,c);!i&&k&&(r[y].providerFactory=O),Rf(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(O),s.push(O)}else{let O=hw(r[i?y:m],c,!i&&n);Rf(o,t,m>-1?m:y,O)}!i&&n&&k&&r[y].componentProviders++}}}function Rf(t,e,r,n){let i=Eo(e),o=WS(e);if(i||o){let l=(o?St(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let d=c.indexOf(r);d===-1?c.push(r,[n,l]):c[d+1].push(n,l)}else c.push(r,l)}}}function hw(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function kf(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>qR(n,i?i(t):t,e)}}var ZR=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=qh(!1,n.type),o=i.length>0?$s([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(C(ht))});let t=e;return t})();function ge(t){mn("NgStandalone"),t.getStandaloneInjector=e=>e.get(ZR).getOrCreateStandaloneInjector(t)}function Ti(t,e,r){let n=js()+t,i=Q();return i[n]===wt?Mp(i,n,r?e.call(r):e()):P1(i,n)}function ni(t,e,r,n){return gw(Q(),js(),t,e,r,n)}function pw(t,e,r,n,i){return _w(Q(),js(),t,e,r,n,i)}function mw(t,e){let r=t[e];return r===wt?void 0:r}function gw(t,e,r,n,i,o){let s=e+r;return Wt(t,s,i)?Mp(t,s+1,o?n.call(o,i):n(i)):mw(t,s+1)}function _w(t,e,r,n,i,o,s){let a=e+r;return Ap(t,a,i,o)?Mp(t,a+2,s?n.call(s,i,o):n(i,o)):mw(t,a+2)}function lt(t,e){let r=Be(),n,i=t+ot;r.firstCreatePass?(n=KR(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=Ar(n.type,!0)),s,a=Gt(p);try{let l=Kl(!1),c=o();return Kl(l),$R(r,Q(),i,c),c}finally{Gt(a)}}function KR(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function mt(t,e,r){let n=t+ot,i=Q(),o=Zh(i,n);return yw(i,n)?gw(i,js(),e,o.transform,r,o):o.transform(r)}function vw(t,e,r,n){let i=t+ot,o=Q(),s=Zh(o,i);return yw(o,i)?_w(o,js(),e,s.transform,r,n,s):s.transform(r,n)}function yw(t,e){return t[ee].data[e].pure}function Yc(t,e){return Uc(t,e)}var Fl=null;function XR(t){Fl!==null&&(t.defaultEncapsulation!==Fl.defaultEncapsulation||t.preserveWhitespaces!==Fl.preserveWhitespaces)||(Fl=t)}var Qc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var $p=new E(""),qs=new E(""),Zc=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Up||(JR(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{L.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,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,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(C(L),C(Kc),C(qs))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Kc=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return Up?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function JR(t){Up=t}var Up;function Xi(t){return!!t&&typeof t.then=="function"}function zp(t){return!!t&&typeof t.subscribe=="function"}var Xc=new E(""),bw=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(Xc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Xi(s))n.push(s);else if(zp(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jc=new E("");function ek(){gv(()=>{throw new j(600,!1)})}function tk(t){return t.isBoundToModule}var nk=10;function ik(t,e,r){try{let n=r();return Xi(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function ww(t,e){return Array.isArray(e)?e.reduce(ww,t):S(S({},t),e)}var Sn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Sb),this.afterRenderEffectManager=g(zc),this.zonelessEnabled=g(I0),this.externalTestViews=new Set,this.beforeRender=new N,this.afterTick=new N,this.componentTypes=[],this.components=[],this.isStable=g(Jn).hasPendingTasks.pipe(B(n=>!n)),this._injector=g(ht)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof tc;if(!this._injector.get(bw).done){let m=!o&&Hy(n),y=!1;throw new j(405,y)}let a;o?a=n:a=this._injector.get(Jt).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=tk(a)?void 0:this._injector.get(Wi),c=i||a.selector,d=a.create(Te.NULL,[],c,l),u=d.location.nativeElement,f=d.injector.get($p,null);return f?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),$l(this.components,d),f?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new j(101,!1);let i=De(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,De(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(Mo,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oTs(l))&&(s.execute(),!this.allViews.some(({_lView:l})=>Ts(l))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;$l(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Jc,[]);[...this._bootstrapListeners,...i].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),()=>$l(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new j(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $l(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function rk(t,e,r,n){if(!r&&!Ts(t))return;C0(t,e,r&&!n?0:1)}var kh=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},ed=(()=>{let e=class e{compileModuleSync(n){return new uc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=$y(n),s=Zb(o.declarations).reduce((a,l)=>{let c=xn(l);return c&&a.push(new Br(c)),a},[]);return new kh(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ok=new E("");function sk(t,e,r){let n=new uc(r);return Promise.resolve(n)}function _y(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var ak=!0;var lk=(()=>{let e=class e{constructor(){this.appRef=g(Sn),this.taskService=g(Jn),this.ngZone=g(L),this.zonelessEnabled=g(I0),this.disableScheduling=g(S0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ce,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof nc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Qv:T0;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&L.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Qv(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ck=(()=>{let e=class e{constructor(){this.zone=g(L),this.changeDetectionScheduler=g(To,{optional:!0}),this.applicationRef=g(Sn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler?.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dk({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new L(Cw()),[{provide:L,useFactory:t},{provide:xo,multi:!0,useFactory:()=>{let r=g(ck,{optional:!0});return()=>r.initialize()}},{provide:xo,multi:!0,useFactory:()=>{let r=g(fk);return()=>{r.initialize()}}},{provide:Sb,useFactory:uk},e===!0?{provide:S0,useValue:!0}:[],ak||e===!1?{provide:To,useExisting:lk}:[]]}function uk(){let t=g(L),e=g(fn);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Cw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var fk=(()=>{let e=class e{constructor(){this.subscription=new Ce,this.initialized=!1,this.zone=g(L),this.pendingTasks=g(Jn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{L.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{L.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hk(){return typeof $localize<"u"&&$localize.locale||mc}var Ho=new E("",{providedIn:"root",factory:()=>g(Ho,Ee.Optional|Ee.SkipSelf)||hk()});var xw=new E(""),Dw=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=qA(i?.ngZone,Cw({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=i?.ignoreChangesOutsideZone,a=O1(n.moduleType,this.injector,dk({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s})),l=a.injector.get(fn,null);return o.runOutsideAngular(()=>{let c=o.onError.subscribe({next:d=>{l.handleError(d)}});a.onDestroy(()=>{$l(this._modules,a),c.unsubscribe()})}),ik(l,o,()=>{let c=a.injector.get(bw);return c.runInitializers(),c.donePromise.then(()=>{let d=a.injector.get(Ho,mc);return LR(d||mc),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,i=[]){let o=ww({},i);return sk(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(Sn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new j(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new j(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(xw,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(C(Te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Cs=null,Ew=new E("");function pk(t){if(Cs&&!Cs.get(Ew,!1))throw new j(400,!1);ek(),Cs=t;let e=t.get(Dw);return _k(t),e}function Gp(t,e,r=[]){let n=`Platform: ${e}`,i=new E(n);return(o=[])=>{let s=Iw();if(!s||s.injector.get(Ew,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):pk(mk(a,n))}return gk(i)}}function mk(t=[],e){return Te.create({name:e,providers:[{provide:Cc,useValue:"platform"},{provide:xw,useValue:new Set([()=>Cs=null])},...t]})}function gk(t){let e=Iw();if(!e)throw new j(401,!1);return e}function Iw(){return Cs?.get(Dw)??null}function _k(t){t.get(ap,null)?.forEach(r=>r())}function Iq(){return!1}var Ae=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=vk;let t=e;return t})();function vk(t){return yk(pt(),Q(),(t&16)===16)}function yk(t,e,r){if(Ec(t)&&!r){let n=Yi(t.index,e);return new jr(n,n)}else if(t.type&47){let n=e[Vt];return new jr(n,e)}return null}var Oh=class{constructor(){}supports(e){return U0(e)}create(e){return new Nh(e)}},bk=(t,e)=>e,Nh=class{constructor(e){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=e||bk}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Fh(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new gc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new gc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Fh=class{constructor(e,r){this.item=e,this.trackById=r,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}},Ph=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},gc=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Ph,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vy(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;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(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new Vh(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},Vh=class{constructor(e){this.key=e,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 yy(){return new Mi([new Oh])}var Mi=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||yy()),deps:[[e,new ko,new $r]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new j(901,!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:yy});let t=e;return t})();function by(){return new qp([new Lh])}var qp=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||by()),deps:[[e,new ko,new $r]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new j(901,!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:by});let t=e;return t})();var Sw=Gp(null,"core",[]),Tw=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(C(Sn))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();function G(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ot(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function td(t,e){mn("NgSignals");let r=gf(t);return e?.equal&&(r[Xt].equal=e.equal),r}function $o(t){let e=De(null);try{return t()}finally{De(e)}}var wk=new E("",{providedIn:"root",factory:()=>g(Ck)}),Ck=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new Bh});let t=e;return t})(),Bh=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(Jn),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},Hh=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=yv(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(fn,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Ji(t,e){mn("NgSignals"),!e?.injector&&Oo(Ji);let r=e?.injector??g(Te),n=e?.manualCleanup!==!0?r.get(pn):null,i=new Hh(r.get(wk),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(Ae,null,{optional:!0});return!o||!(o._lView[re]&8)?i.watcher.notify():(o._lView[Ll]??=[]).push(i.watcher.notify),i}function Sq(t,e){let r=xn(t),n=e.elementInjector||xc();return new Br(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}function Mw(t){let e=xn(t);if(!e)return null;let r=new Br(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Pw=null;function ii(){return Pw}function Lw(t){Pw??=t}var nd=class{};var J=new E(""),nm=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(xk),providedIn:"platform"});let t=e;return t})(),jw=new E(""),xk=(()=>{let e=class e extends nm{constructor(){super(),this._doc=g(J),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ii().getBaseHref(this._doc)}onPopState(n){let i=ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function im(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Aw(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Ai(t){return t&&t[0]!=="?"?"?"+t:t}var Ri=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(rm),providedIn:"root"});let t=e;return t})(),Vw=new E(""),rm=(()=>{let e=class e extends Ri{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(J).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 im(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Ai(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Ai(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Ai(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(nm),C(Vw,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bw=(()=>{let e=class e extends Ri{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=im(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Ai(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Ai(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(nm),C(Vw,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),er=(()=>{let e=class e{constructor(n){this._subject=new q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Ik(Aw(Rw(i))),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,i=""){return this.path()==this.normalize(n+Ai(i))}normalize(n){return e.stripTrailingSlash(Ek(this._basePath,Rw(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ai(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ai(i)),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.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Ai,e.joinWithSlash=im,e.stripTrailingSlash=Aw,e.\u0275fac=function(i){return new(i||e)(C(Ri))},e.\u0275prov=I({token:e,factory:()=>Dk(),providedIn:"root"});let t=e;return t})();function Dk(){return new er(C(Ri))}function Ek(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Rw(t){return t.replace(/\/index.html$/,"")}function Ik(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var om=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(om||{});var tn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function qr(t,e){let r=Pp(t),n=r[Bo.NumberSymbols][e];if(typeof n>"u"){if(e===tn.CurrencyDecimal)return r[Bo.NumberSymbols][tn.Decimal];if(e===tn.CurrencyGroup)return r[Bo.NumberSymbols][tn.Group]}return n}function Hw(t,e){return Pp(t)[Bo.NumberFormats][e]}var Sk=/^(\d+)?\.((\d+)(-(\d+))?)?$/,kw=22,id=".",Ws="0",Tk=";",Mk=",",Yp="#";var Ak="%";function $w(t,e,r,n,i,o,s=!1){let a="",l=!1;if(!isFinite(t))a=qr(r,tn.Infinity);else{let c=Nk(t);s&&(c=Ok(c));let d=e.minInt,u=e.minFrac,f=e.maxFrac;if(o){let ce=o.match(Sk);if(ce===null)throw new Error(`${o} is not a valid digit info`);let je=ce[1],Fe=ce[3],Nt=ce[5];je!=null&&(d=Qp(je)),Fe!=null&&(u=Qp(Fe)),Nt!=null?f=Qp(Nt):Fe!=null&&u>f&&(f=u)}Fk(c,u,f);let m=c.digits,y=c.integerLen,A=c.exponent,k=[];for(l=m.every(ce=>!ce);y0?k=m.splice(y,m.length):(k=m,m=[0]);let O=[];for(m.length>=e.lgSize&&O.unshift(m.splice(-e.lgSize,m.length).join(""));m.length>e.gSize;)O.unshift(m.splice(-e.gSize,m.length).join(""));m.length&&O.unshift(m.join("")),a=O.join(qr(r,n)),k.length&&(a+=qr(r,i)+k.join("")),A&&(a+=qr(r,tn.Exponential)+"+"+A)}return t<0&&!l?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function Rk(t,e,r){let n=Hw(e,om.Percent),i=Uw(n,qr(e,tn.MinusSign));return $w(t,i,e,tn.Group,tn.Decimal,r,!0).replace(new RegExp(Ak,"g"),qr(e,tn.PercentSign))}function kk(t,e,r){let n=Hw(e,om.Decimal),i=Uw(n,qr(e,tn.MinusSign));return $w(t,i,e,tn.Group,tn.Decimal,r)}function Uw(t,e="-"){let r={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(Tk),i=n[0],o=n[1],s=i.indexOf(id)!==-1?i.split(id):[i.substring(0,i.lastIndexOf(Ws)+1),i.substring(i.lastIndexOf(Ws)+1)],a=s[0],l=s[1]||"";r.posPre=a.substring(0,a.indexOf(Yp));for(let d=0;d-1&&(e=e.replace(id,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===Ws;o++);if(o===(a=e.length))n=[0],i=1;else{for(a--;e.charAt(a)===Ws;)a--;for(i-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(e.charAt(o))}return i>kw&&(n=n.splice(0,kw-1),r=i-1,i=1),{digits:n,exponent:r,integerLen:i}}function Fk(t,e,r){if(e>r)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${r}).`);let n=t.digits,i=n.length-t.integerLen,o=Math.min(Math.max(e,i),r),s=o+t.integerLen,a=n[s];if(s>0){n.splice(Math.max(t.integerLen,s));for(let u=s;u=5)if(s-1<0){for(let u=0;u>s;u--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[s-1]++;for(;i=c?y.pop():l=!1),f>=10?1:0},0);d&&(n.unshift(d),t.integerLen++)}function Qp(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function od(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Zp=/\s+/,Ow=[],sd=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=Ow,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Zp):Ow}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Zp):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(Zp).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(p($),p(Kn))},e.\u0275dir=F({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var zq=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Kp,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Nw("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Nw("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(p(We),p(Ue))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Kp=class{constructor(){this.$implicit=null,this.ngIf=null}};function Nw(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${jt(e)}'.`)}var ad=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(p(We))},e.\u0275dir=F({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ve]});let t=e;return t})();function Ys(t,e){return new j(2100,!1)}var Xp=class{createSubscription(e,r){return $o(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){$o(()=>e.unsubscribe())}},Jp=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},Pk=new Jp,Lk=new Xp,Gq=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Xi(n))return Pk;if(zp(n))return Lk;throw Ys(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(p(Ae,16))},e.\u0275pipe=ae({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var jk=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,zw=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw Ys(e,n);return n.replace(jk,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();function Vk(t,e){return{key:t,value:e}}var Gw=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=Fw}transform(n,i=Fw){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(Vk(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}};e.\u0275fac=function(i){return new(i||e)(p(qp,16))},e.\u0275pipe=ae({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function Fw(t,e){let r=t.key,n=e.key;if(r===n)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(r===null)return 1;if(n===null)return-1;if(typeof r=="string"&&typeof n=="string")return r{let e=class e{constructor(n){this._locale=n}transform(n,i,o){if(!qw(n))return null;o||=this._locale;try{let s=Ww(n);return kk(s,o,i)}catch(s){throw Ys(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(p(Ho,16))},e.\u0275pipe=ae({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})(),qq=(()=>{let e=class e{constructor(n){this._locale=n}transform(n,i,o){if(!qw(n))return null;o||=this._locale;try{let s=Ww(n);return Rk(s,o,i)}catch(s){throw Ys(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(p(Ho,16))},e.\u0275pipe=ae({name:"percent",type:e,pure:!0,standalone:!0});let t=e;return t})();function qw(t){return!(t==null||t===""||t!==t)}function Ww(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var Wq=(()=>{let e=class e{transform(n,i,o){if(n==null)return null;if(!this.supports(n))throw Ys(e,n);return n.slice(i,o)}supports(n){return typeof n=="string"||Array.isArray(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"slice",type:e,pure:!1,standalone:!0});let t=e;return t})();var gn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})(),sm="browser",Bk="server";function am(t){return t===sm}function Qs(t){return t===Bk}var Yw=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>am(g(en))?new em(g(J),window):new tm});let t=e;return t})(),em=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=Hk(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function Hk(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var tm=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Uo=class{};var Qw=t=>t.src,$k=new E("",{providedIn:"root",factory:()=>Qw});var Uk=new E("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),zk=(()=>{let e=class e{constructor(){this.preloadedImages=g(Uk),this.document=g(J)}createPreloadLinkTag(n,i,o,s){if(this.preloadedImages.has(i))return;this.preloadedImages.add(i);let a=n.createElement("link");n.setAttribute(a,"as","image"),n.setAttribute(a,"href",i),n.setAttribute(a,"rel","preload"),n.setAttribute(a,"fetchpriority","high"),s&&n.setAttribute(a,"imageSizes",s),o&&n.setAttribute(a,"imageSrcset",o),n.appendChild(this.document.head,a)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Gk=/^((\s*\d+w\s*(,|$)){1,})$/;var qk=[1,2],Wk=640;var Yk=1920,Qk=1080;var Yq=(()=>{let e=class e{constructor(){this.imageLoader=g($k),this.config=Zk(g(Pb)),this.renderer=g(Kn),this.imgElement=g($).nativeElement,this.injector=g(Te),this.isServer=Qs(g(en)),this.preloadLinkCreator=g(zk),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){mn("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let n=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),n,this.sizes)}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){let i=this._renderedSrc;this.updateSrcAndSrcset(!0);let o=this._renderedSrc;this.lcpObserver!==null&&i&&o&&i!==o&&this.injector.get(L).runOutsideAngular(()=>{this.lcpObserver?.updateImage(i,o)})}}callImageLoader(n){let i=n;return this.loaderParams&&(i.loaderParams=this.loaderParams),this.imageLoader(i)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n)}return this._renderedSrc}getRewrittenSrcset(){let n=Gk.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let s=n?parseFloat(o):parseFloat(o)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,i=n;return this.sizes?.trim()==="100vw"&&(i=n.filter(s=>s>=Wk)),i.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(n=!1){n&&(this._renderedSrc=null);let i=this.getRewrittenSrc();this.setHostAttribute("src",i);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return qk.map(i=>`${this.callImageLoader({src:this.ngSrc,width:this.width*i})} ${i}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=!1;return this.sizes||(n=this.width>Yk||this.height>Qk),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Qw&&!n}generatePlaceholder(n){let{placeholderResolution:i}=this.config;return n===!0?`url(${this.callImageLoader({src:this.ngSrc,width:i,isPlaceholder:!0})})`:typeof n=="string"&&n.startsWith("data:")?`url(${n})`:null}shouldBlurPlaceholder(n){return!n||!n.hasOwnProperty("blur")?!0:!!n.blur}removePlaceholderOnLoad(n){let i=()=>{let a=this.injector.get(Ae);o(),s(),this.placeholder=!1,a.markForCheck()},o=this.renderer.listen(n,"load",i),s=this.renderer.listen(n,"error",i)}ngOnDestroy(){}setHostAttribute(n,i){this.renderer.setAttribute(this.imgElement,n,i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(i,o){i&2&&Kt("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Kk],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Ot],height:[2,"height","height",Ot],loading:"loading",priority:[2,"priority","priority",G],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",G],fill:[2,"fill","fill",G],placeholder:[2,"placeholder","placeholder",Xk],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[ye,Ve]});let t=e;return t})();function Zk(t){let e={};return t.breakpoints&&(e.breakpoints=t.breakpoints.sort((r,n)=>r-n)),Object.assign({},lp,t,e)}function Kk(t){return typeof t=="string"?t:Zt(t)}function Xk(t){return typeof t=="string"&&t.startsWith("data:")?t:G(t)}var Ks=class{},dd=class{},ki=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var cm=class{encodeKey(e){return Zw(e)}encodeValue(e){return Zw(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Jk(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=r.get(s)||[];l.push(a),r.set(s,l)}),r}var eO=/%(\d[a-f0-9])/gi,tO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Zw(t){return encodeURIComponent(t).replace(eO,(e,r)=>tO[r]??e)}function cd(t){return`${t}`}var ir=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new cm,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Jk(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(cd):[cd(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(cd(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(cd(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var dm=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function nO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Kw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Xw(t){return typeof Blob<"u"&&t instanceof Blob}function Jw(t){return typeof FormData<"u"&&t instanceof FormData}function iO(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Zs=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(nO(this.method)||i?(this.body=n!==void 0?n:null,o=i):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.transferCache=o.transferCache),this.headers??=new ki,this.context??=new dm,!this.params)this.params=new ir,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),l=a===-1?"?":af.set(m,e.setHeaders[m]),c)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,m)=>f.set(m,e.setParams[m]),d)),new t(r,n,s,{params:d,headers:c,context:u,reportProgress:l,responseType:i,withCredentials:a,transferCache:o})}},rr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(rr||{}),Xs=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new ki,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},ud=class t extends Xs{constructor(e={}){super(e),this.type=rr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Js=class t extends Xs{constructor(e={}){super(e),this.type=rr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},nr=class extends Xs{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},rC=200,rO=204;function lm(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var hm=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof Zs)s=n;else{let c;o.headers instanceof ki?c=o.headers:c=new ki(o.headers);let d;o.params&&(o.params instanceof ir?d=o.params:d=new ir({fromObject:o.params})),s=new Zs(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=V(s).pipe(gi(c=>this.handler.handle(c)));if(n instanceof Zs||o.observe==="events")return a;let l=a.pipe(xe(c=>c instanceof Js));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(B(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(B(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new ir().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,lm(o,i))}post(n,i,o={}){return this.request("POST",n,lm(o,i))}put(n,i,o={}){return this.request("PUT",n,lm(o,i))}};e.\u0275fac=function(i){return new(i||e)(C(Ks))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),oO=/^\)\]\}',?\n/,sO="X-Request-URL";function eC(t){if(t.url)return t.url;let e=sO.toLocaleLowerCase();return t.headers.get(e)}var aO=(()=>{let e=class e{constructor(){this.fetchImpl=g(um,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(L)}handle(n){return new Z(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(fm,s=>i.error(new nr({error:s}))),()=>o.abort()})}doRequest(n,i,o){return ms(this,null,function*(){let s=this.createRequestInit(n),a;try{let y=this.fetchImpl(n.urlWithParams,S({signal:i},s));lO(y),o.next({type:rr.Sent}),a=yield y}catch(y){o.error(new nr({error:y,status:y.status??0,statusText:y.statusText,url:n.urlWithParams,headers:y.headers}));return}let l=new ki(a.headers),c=a.statusText,d=eC(a)??n.urlWithParams,u=a.status,f=null;if(n.reportProgress&&o.next(new ud({headers:l,status:u,statusText:c,url:d})),a.body){let y=a.headers.get("content-length"),A=[],k=a.body.getReader(),O=0,ce,je,Fe=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ms(this,null,function*(){for(;;){let{done:dt,value:cn}=yield k.read();if(dt)break;if(A.push(cn),O+=cn.length,n.reportProgress){je=n.responseType==="text"?(je??"")+(ce??=new TextDecoder).decode(cn,{stream:!0}):void 0;let ro=()=>o.next({type:rr.DownloadProgress,total:y?+y:void 0,loaded:O,partialText:je});Fe?Fe.run(ro):ro()}}}));let Nt=this.concatChunks(A,O);try{let dt=a.headers.get("Content-Type")??"";f=this.parseBody(n,Nt,dt)}catch(dt){o.error(new nr({error:dt,headers:new ki(a.headers),status:a.status,statusText:a.statusText,url:eC(a)??n.urlWithParams}));return}}u===0&&(u=f?rC:0),u>=200&&u<300?(o.next(new Js({body:f,headers:l,status:u,statusText:c,url:d})),o.complete()):o.error(new nr({error:f,headers:l,status:u,statusText:c,url:d}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(oO,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),um=class{};function fm(){}function lO(t){t.then(fm,fm)}function oC(t,e){return e(t)}function cO(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function dO(t,e,r){return(n,i)=>Yt(r,()=>e(n,o=>t(o,i)))}var uO=new E(""),pm=new E(""),fO=new E(""),sC=new E("",{providedIn:"root",factory:()=>!0});function hO(){let t=null;return(e,r)=>{t===null&&(t=(g(uO,{optional:!0})??[]).reduceRight(cO,oC));let n=g(Jn);if(g(sC)){let o=n.add();return t(e,r).pipe(Hi(()=>n.remove(o)))}else return t(e,r)}}var tC=(()=>{let e=class e extends Ks{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Jn),this.contributeToStability=g(sC)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(pm),...this.injector.get(fO,[])]));this.chain=i.reduceRight((o,s)=>dO(o,s,this.injector),oC)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Hi(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(C(dd),C(ht))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();var pO=/^\)\]\}',?\n/;function mO(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var nC=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new j(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?$e(i.\u0275loadImpl()):V(null)).pipe(rt(()=>new Z(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((k,O)=>a.setRequestHeader(k,O.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let k=n.detectContentTypeHeader();k!==null&&a.setRequestHeader("Content-Type",k)}if(n.responseType){let k=n.responseType.toLowerCase();a.responseType=k!=="json"?k:"text"}let l=n.serializeBody(),c=null,d=()=>{if(c!==null)return c;let k=a.statusText||"OK",O=new ki(a.getAllResponseHeaders()),ce=mO(a)||n.url;return c=new ud({headers:O,status:a.status,statusText:k,url:ce}),c},u=()=>{let{headers:k,status:O,statusText:ce,url:je}=d(),Fe=null;O!==rO&&(Fe=typeof a.response>"u"?a.responseText:a.response),O===0&&(O=Fe?rC:0);let Nt=O>=200&&O<300;if(n.responseType==="json"&&typeof Fe=="string"){let dt=Fe;Fe=Fe.replace(pO,"");try{Fe=Fe!==""?JSON.parse(Fe):null}catch(cn){Fe=dt,Nt&&(Nt=!1,Fe={error:cn,text:Fe})}}Nt?(s.next(new Js({body:Fe,headers:k,status:O,statusText:ce,url:je||void 0})),s.complete()):s.error(new nr({error:Fe,headers:k,status:O,statusText:ce,url:je||void 0}))},f=k=>{let{url:O}=d(),ce=new nr({error:k,status:a.status||0,statusText:a.statusText||"Unknown Error",url:O||void 0});s.error(ce)},m=!1,y=k=>{m||(s.next(d()),m=!0);let O={type:rr.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(O.total=k.total),n.responseType==="text"&&a.responseText&&(O.partialText=a.responseText),s.next(O)},A=k=>{let O={type:rr.UploadProgress,loaded:k.loaded};k.lengthComputable&&(O.total=k.total),s.next(O)};return a.addEventListener("load",u),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",y),l!==null&&a.upload&&a.upload.addEventListener("progress",A)),a.send(l),s.next({type:rr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",u),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",y),l!==null&&a.upload&&a.upload.removeEventListener("progress",A)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(C(Uo))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),aC=new E(""),gO="XSRF-TOKEN",_O=new E("",{providedIn:"root",factory:()=>gO}),vO="X-XSRF-TOKEN",yO=new E("",{providedIn:"root",factory:()=>vO}),fd=class{},bO=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=od(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(C(J),C(en),C(_O))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function wO(t,e){let r=t.url.toLowerCase();if(!g(aC)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(fd).getToken(),i=g(yO);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var lC=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(lC||{});function CO(t,e){return{\u0275kind:t,\u0275providers:e}}function cC(...t){let e=[hm,nC,tC,{provide:Ks,useExisting:tC},{provide:dd,useFactory:()=>g(aO,{optional:!0})??g(nC)},{provide:pm,useValue:wO,multi:!0},{provide:aC,useValue:!0},{provide:fd,useClass:bO}];for(let r of t)e.push(...r.\u0275providers);return wc(e)}var iC=new E("");function dC(){return CO(lC.LegacyInterceptors,[{provide:iC,useFactory:hO},{provide:pm,useExisting:iC,multi:!0}])}var _m=class extends nd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},vm=class t extends _m{static makeCurrent(){Lw(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=xO();return r==null?null:DO(r)}resetBaseElement(){ea=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return od(document.cookie,e)}},ea=null;function xO(){return ea=ea||document.querySelector("base"),ea?ea.getAttribute("href"):null}function DO(t){return new URL(t,document.baseURI).pathname}var ym=class{addToWindow(e){ft.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new j(5103,!1);return o},ft.getAllAngularTestabilities=()=>e.getAllTestabilities(),ft.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ft.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ft.frameworkStabilizers||(ft.frameworkStabilizers=[]),ft.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?ii().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},EO=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),bm=new E(""),pC=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new j(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(C(bm),C(L))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),hd=class{constructor(e){this._doc=e}},mm="ng-app-id",mC=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Qs(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${mm}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(mm),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(mm,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(C(J),C(Po),C(Vs,8),C(en))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),gm={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/Math/MathML"},Cm=/%COMP%/g,gC="%COMP%",IO=`_nghost-${gC}`,SO=`_ngcontent-${gC}`,TO=!0,MO=new E("",{providedIn:"root",factory:()=>TO});function AO(t){return SO.replace(Cm,t)}function RO(t){return IO.replace(Cm,t)}function _C(t,e){return e.map(r=>r.replace(Cm,t))}var uC=(()=>{let e=class e{constructor(n,i,o,s,a,l,c,d=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Qs(l),this.defaultRenderer=new ta(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===qn.ShadowDom&&(i=ue(S({},i),{encapsulation:qn.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof pd?o.applyToHost(n):o instanceof na&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case qn.Emulated:s=new pd(c,d,i,this.appId,u,a,l,f);break;case qn.ShadowDom:return new wm(c,d,n,i,a,l,this.nonce,f);default:s=new na(c,d,i,u,a,l,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(C(pC),C(mC),C(Po),C(MO),C(J),C(en),C(L),C(Vs))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),ta=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(gm[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(fC(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(fC(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new j(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=gm[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=gm[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Ci.DashCase|Ci.Important)?e.style.setProperty(r,n,i&Ci.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Ci.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=ii().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function fC(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var wm=class extends ta{constructor(e,r,n,i,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=_C(i.id,i.styles);for(let d of c){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},na=class extends ta{constructor(e,r,n,i,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?_C(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},pd=class extends na{constructor(e,r,n,i,o,s,a,l){let c=i+"-"+n.id;super(e,r,n,o,s,a,l,c),this.contentAttr=AO(c),this.hostAttr=RO(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},kO=(()=>{let e=class e extends hd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),hC=["alt","control","meta","shift"],OO={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},NO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},FO=(()=>{let e=class e extends hd{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ii().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),hC.forEach(d=>{let u=i.indexOf(d);u>-1&&(i.splice(u,1),a+=d+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=OO[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),hC.forEach(a=>{if(a!==o){let l=NO[a];l(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function PO(){vm.makeCurrent()}function LO(){return new fn}function jO(){return Nb(document),document}var VO=[{provide:en,useValue:sm},{provide:ap,useValue:PO,multi:!0},{provide:J,useFactory:jO,deps:[]}],CW=Gp(Sw,"browser",VO),BO=new E(""),HO=[{provide:qs,useClass:ym,deps:[]},{provide:$p,useClass:Zc,deps:[L,Kc,qs]},{provide:Zc,useClass:Zc,deps:[L,Kc,qs]}],$O=[{provide:Cc,useValue:"root"},{provide:fn,useFactory:LO,deps:[]},{provide:bm,useClass:kO,multi:!0,deps:[J,L,en]},{provide:bm,useClass:FO,multi:!0,deps:[J]},uC,mC,pC,{provide:Mo,useExisting:uC},{provide:Uo,useClass:EO,deps:[]},[]],xW=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Po,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(C(BO,12))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[...$O,...HO],imports:[gn,Tw]});let t=e;return t})();var md=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var UO=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=C(zO),o},providedIn:"root"});let t=e;return t})(),zO=(()=>{let e=class e extends UO{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case In.NONE:return i;case In.HTML:return Ei(i,"HTML")?Zt(i):dp(this._doc,String(i)).toString();case In.STYLE:return Ei(i,"Style")?Zt(i):i;case In.SCRIPT:if(Ei(i,"Script"))return Zt(i);throw new j(5200,!1);case In.URL:return Ei(i,"URL")?Zt(i):Nc(String(i));case In.RESOURCE_URL:if(Ei(i,"ResourceURL"))return Zt(i);throw new j(5201,!1);default:throw new j(5202,!1)}}bypassSecurityTrustHtml(n){return Vb(n)}bypassSecurityTrustStyle(n){return Bb(n)}bypassSecurityTrustScript(n){return Hb(n)}bypassSecurityTrustUrl(n){return $b(n)}bypassSecurityTrustResourceUrl(n){return Ub(n)}};e.\u0275fac=function(i){return new(i||e)(C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function IW(t,e){let r=gd(t);return r+=e,qO(r)}function gd(t){return t.day+((vC.get(t.season)??0)-1)*28+(t.year-1)*112}function SW(t,e,r=!1){let n=[e].flat();if(!n.length)return!1;let i=gd(t);return r&&(i=Math.floor(i-1)%112),n.some(o=>{let s=gd(o.from);r&&(s=Math.floor(s-1)%112);let a=gd(o.to);return r&&(a=Math.floor(a-1)%112),s<=i&&a>=i})}function qO(t){let e=Math.floor((t-1)/112)+1,r=(t-1)%28+1,n=Math.floor((t-1)%112/28)+1;return{day:r,season:n===1?"Spring":n===2?"Summer":n===3?"Fall":"Winter",year:e}}var At=function(t){return t.BASE="base",t.BRONZE="bronze",t.SILVER="silver",t.GOLD="gold",t.OSMIUM="osmium",t}(At||{});var fe=function(t){return t.CROSS="T_Icon_Cross",t.EMPTY_STAR="T_Icon_Styles",t.ARROW_RIGHT="T_BoxArrowRight",t.CORAL="T_Icon_GoldMinimal",t.WARNING="Exclamation_Warning",t.FESTIVAL="T_Icon_Festivals",t.BIRTHDAY="T_Icon_Birthday",t.JOURNAL="T_Icon_Journal",t.CRAFTING="T_Icon_Crafting",t.PEOPLE="T_Icon_People",t.DATABASE="T_Icon_AllQuest",t.MAP="T_Icon_Map",t.TO_DO="T_Icon_Errands",t.TO_DO_ON_LIST="T_Icon_Checklist_Checked",t.BURGER_MENU="T_Icon_BurgerMenu",t.SETTINGS="T_Icon_GameSettings",t.MY_CORAL="T_icon_coral",t.MISC="T_Icon_ShipmentMedium",t.CATCHING="T_Icon_CatchingM",t.FARMING="T_Icon_FarmingM",t.ARTISAN="T_Icon_ArtisanM",t.COOKING="T_Icon_ConsumablesM",t.OFFERING="T_Icon_Offering",t.BESTIARY="T_Icon_Bestiary",t.NOTES="T_Icon_Notes",t.ACHIEVEMENT="T_Icon_Achievement",t.BADGES="T_Icon_Badges",t.PLANT="T_Icon_Plant",t.BLACKSMITH="T_Icon_Blacksmith",t.COFFEE="T_Icon_Coffee",t.INN="T_Icon_Inn",t.LAB="T_Icon_Lab",t.MUSEUM="T_Icon_Museum",t.RANCH="T_Icon_Ranch",t.SALON="T_Icon_Salon",t.ANIMAL_SHELTER="T_Icons_AnimalShelter",t.BEACH_SHACK="T_Icons_BeachShack",t.CARAVAN="T_Icons_Caravan",t.CARPENTER="T_Icons_Carpenter",t.CLOTHING_STORE="T_Icons_ClothingStore",t.STORE="T_Icons_Store",t.TAVERN="T_Icons_Tavern",t.RAMEN="T_Icons_Ramen",t.GIFTING="Icons_Gift",t.LOVE="T_Icon_Love",t.LIKE="T_Icon_Like",t.NEUTRAL="T_Icon_Expression",t.DISLIKE="T_Icon_Dislike",t.HATE="T_Icon_Hate",t.ANIMAL_DAY="T_Icon_AnimalDay",t.CHERRY_BLOSSOM="T_Icon_CherryBlossom",t.OCEAN_CLEAN_UP="T_Icon_Cleanup",t.EARTH="T_Icon_Earth",t.MOONCAKE="T_Icon_Mooncake",t.NEW_YEAR="T_Icon_NewYear",t.SPOOKY="T_Icon_Spooky",t.WINTER_FAIR="T_Icon_WinterFair",t}(fe||{});var kW=["de","en","es","fr","id","ja","zh-CN","ko","pt-BR"],OW={de:"german",en:"english",id:"indonesian",fr:"french",es:"spanish",ja:"japanese","zh-CN":"chinese simplified",ko:"korean","pt-BR":"brazilian portuguese"};var PW={"cherry-blossom":"Cherry blossom","earth-day":"Earth Day","tree-planting":"Tree Planting",animal:"Animal","beach-clean-up":"Beach Clean Up",spooky:"Spooky",harvest:"Harvest","new-year-eve":"New Year Eve Feast","winter-fair":"Winter Fair"},LW={"winter-fair":fe.WINTER_FAIR,"tree-planting":fe.EARTH,animal:fe.ANIMAL_DAY,"beach-clean-up":fe.OCEAN_CLEAN_UP,spooky:fe.SPOOKY,harvest:fe.MOONCAKE,"new-year-eve":fe.NEW_YEAR,"cherry-blossom":fe.CHERRY_BLOSSOM};var yC=["Spring","Summer","Fall","Winter"];var $W={blacksmith:"Blacksmith",lab:"Lab","general-store":"Sams general store",carpenter:"Carpenter","merfolk-general-store":"Merfolk general store","merfolk-oracle-tail-store":"Merfolk tail store","pet-shop":"Pet Shop",ranch:"Ranch","beach-shack":"Beach Shack","concerned-monkey":"Concerned Monkey","bens-caravan":"Bens Caravan",bos:"Band of Smiles","socket-and-pan":"Socket & Pan",tavern:"Fishensips",coffee:"Raj's Coffee Corner","white-flamingo":"White Flamingo","tidal-threads":"Tidal Threads","underwater-ranch":"Underwater Ranch","taco-truck":"Taco Truck","sales-cart-stall":"Sales Cart Stall","furniture-store":"Furniture Store","ramen-shop":"Ramen Shop"},UW={blacksmith:fe.BLACKSMITH,lab:fe.LAB,"general-store":fe.STORE,carpenter:fe.CARPENTER,"merfolk-general-store":fe.CORAL,"merfolk-oracle-tail-store":fe.CORAL,"pet-shop":fe.ANIMAL_SHELTER,ranch:fe.RANCH,"beach-shack":fe.BEACH_SHACK,"concerned-monkey":fe.ACHIEVEMENT,"bens-caravan":fe.CARAVAN,bos:fe.BESTIARY,"socket-and-pan":fe.COOKING,coffee:fe.COFFEE,"white-flamingo":fe.CLOTHING_STORE,tavern:fe.TAVERN,"tidal-threads":fe.CLOTHING_STORE,"underwater-ranch":fe.RANCH,"taco-truck":fe.STORE,"sales-cart-stall":fe.STORE,"furniture-store":fe.STORE,"ramen-shop":fe.RAMEN};var bC=["Sunny","Rain","Storm","Windy","Snow","Blizzard"];function WO(t){let e=Object.keys(t);return e.map(n=>t[n]).filter(n=>n).length===e.length}function ZY(t,e="Any"){return WO(t)?e:Object.keys(t).filter(r=>t[r]).map(YO).map(xm).join(", ")}function YO(t){return t.charAt(0).toUpperCase()+t.slice(1)}function xm(t){return(t??"").replaceAll(/([A-Z])/g," $1").trim()}function KY(t){return t.endsWith("-a")||t.endsWith("-2")?At.BRONZE:t.endsWith("-b")||t.endsWith("-3")?At.SILVER:t.endsWith("-c")||t.endsWith("-4")?At.GOLD:t.endsWith("-d")||t.endsWith("-5")?At.OSMIUM:At.BASE}function XY(t){return t!=null}function nn(t){return"id"in t?t.id:t.key}function wC(t){return t.map(e=>{let r=Object.keys(e)[0];return ue(S({},e[r]),{mapKey:r})})}var t9=new Map([["Common",10],["Uncommon",20],["Rare",30],["Super Rare",40],["SuperRare",40],["Legendary",50]]),n9=new Map([["Small",10],["Medium",20],["Large",30],["Gigantic",40]]),vC=new Map([["Spring",1],["Summer",2],["Fall",3],["Winter",4]]);var _n=(()=>{let e=class e{constructor(){this.CURRENT_SETTINGS_VERSION=1,this.SETTINGS_STORAGE_KEY="coral-guide-settings",this.DEFAULT_SETTINGS={version:this.CURRENT_SETTINGS_VERSION,useBeta:!1,language:"en"}}saveSettings(n){let i=S(S({},this.DEFAULT_SETTINGS),n);localStorage.setItem(this.SETTINGS_STORAGE_KEY,JSON.stringify(i)),this._settings=i}getSettings(){let n=localStorage.getItem(this.SETTINGS_STORAGE_KEY);if(!n)this.saveSettings(this.DEFAULT_SETTINGS);else if(!this._settings){let i=JSON.parse(n);this._settings=this._migrate(i)}return this._settings}_migrate(n){if(!n.version){let i=ue(S({},this.DEFAULT_SETTINGS),{useBeta:!!n.useBeta});return this.saveSettings(i),i}return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var CC=(()=>{let e=class e{constructor(){this.settings=g(_n).getSettings(),this.http=g(hm);let n=this.settings.useBeta?"beta":"live",i=this.settings.language??"en";this.BASE_PATH=`assets/${n}/database`,this.BASE_PATH_WITH_LANG=`assets/${n}/database/${i}`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _d=(()=>{let e=class e extends CC{constructor(){super(...arguments),this._ITEMS=[],this._JOURNAL_ORDERS=new Map,this._TAG_BASED_ITEMS=[],this._GIFT_PREFERENCES=[],this._SHOP_ITEMS=new Map,this._FESTIVAL_DATA=new Map,this._SHOP_PROCESS_ITEMS=new Map,this._OPENING_HOURS=new Map,this._ITEM_UPGRADE=new Map,this._NPCS=[],this._PROCESSOR_MAPPING={},this._COOKING_UTENSIL_MAPPING={},this._ANIMAL_SHOP_DATA=new Map,this._DATABASE_ITEMS=new Map}fetchDatabaseItem$(n){return this._DATABASE_ITEMS.has(n)?V(this._DATABASE_ITEMS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/items/${n}.json`).pipe(Ie(i=>this._DATABASE_ITEMS.set(n,i)),de(1))}getItems(){return this._ITEMS}fetchItems$(){return this._ITEMS$||(this._ITEMS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/items.json`).pipe(Ie(n=>this._ITEMS=n),de(1))),this._ITEMS$}fetchMailData$(){return this._MAIL_DATA$||(this._MAIL_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/mail-data.json`).pipe(de(1))),this._MAIL_DATA$}fetchBestiary$(){return this._BESTIARY$||(this._BESTIARY$=this.http.get(`${this.BASE_PATH_WITH_LANG}/bestiary.json`).pipe(de(1))),this._BESTIARY$}fetchAnimals$(){return this._ANIMAL_DATA$||(this._ANIMAL_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/animal-data.json`).pipe(de(1))),this._ANIMAL_DATA$}fetchAnimalMoodData$(){return this._ANIMAL_MOOD_DATA$||(this._ANIMAL_MOOD_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/animal-mood-size.json`).pipe(de(1))),this._ANIMAL_MOOD_DATA$}fetchAnimalShopData$(n){return this._ANIMAL_SHOP_DATA.has(n)?V(this._ANIMAL_SHOP_DATA.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-animal-shop-data.json`).pipe(Ie(i=>this._ANIMAL_SHOP_DATA.set(n,i)),de(1))}fetchTornPagesData$(){return this._TORN_PAGES_DATA$||(this._TORN_PAGES_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/torn-pages.json`).pipe(de(1))),this._TORN_PAGES_DATA$}getCookingUtensilMapping(){return this._COOKING_UTENSIL_MAPPING}fetchCookingUtensilMapping$(){return this._COOKING_UTENSIL_MAPPING$||(this._COOKING_UTENSIL_MAPPING$=this.http.get(`${this.BASE_PATH_WITH_LANG}/cooking-utensil-mapping.json`).pipe(B(n=>n[0]),Ie(n=>this._COOKING_UTENSIL_MAPPING=n),de(1))),this._COOKING_UTENSIL_MAPPING$}getProcessorMapping(){return this._PROCESSOR_MAPPING}fetchProcessorMapping$(){return this._PROCESSOR_MAPPING$||(this._PROCESSOR_MAPPING$=this.http.get(`${this.BASE_PATH_WITH_LANG}/processor-mapping.json`).pipe(B(n=>n[0]),Ie(n=>this._PROCESSOR_MAPPING=n),de(1))),this._PROCESSOR_MAPPING$}getNPCs(){return this._NPCS}fetchNPCs$(){return this._NPCS$||(this._NPCS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/npcs.json`).pipe(Ie(n=>this._NPCS=n),de(1))),this._NPCS$}fetchHeartEvents$(){return this._HEART_EVENTS$||(this._HEART_EVENTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/heart-events.json`).pipe(B(n=>n[0]),de(1))),this._HEART_EVENTS$}fetchMuseumChecklist$(){return this._MUSEUM_CHECKLIST$||(this._MUSEUM_CHECKLIST$=this.http.get(`${this.BASE_PATH_WITH_LANG}/museum-checklist.json`).pipe(B(n=>n[0]),de(1))),this._MUSEUM_CHECKLIST$}fetchCookingRecipesChecklist$(){return this._COOKING_RECIPES_CHECKLIST$||(this._COOKING_RECIPES_CHECKLIST$=this.http.get(`${this.BASE_PATH_WITH_LANG}/cooking-recipes-checklist.json`).pipe(B(n=>n[0]),de(1))),this._COOKING_RECIPES_CHECKLIST$}fetchAchievements$(){return this._ACHHIEVEMENTS$||(this._ACHHIEVEMENTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/achievements.json`).pipe(de(1))),this._ACHHIEVEMENTS$}fetchOfferings$(){return this._OFFERINGS$||(this._OFFERINGS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/offerings.json`).pipe(de(1))),this._OFFERINGS$}fetchConsumables$(){return this._CONSUMABLES$||(this._CONSUMABLES$=this.http.get(`${this.BASE_PATH_WITH_LANG}/consumables.json`).pipe(de(1))),this._CONSUMABLES$}fetchItemMixingRecipeData$(){return this._ITEM_MIXING_RECIPE$||(this._ITEM_MIXING_RECIPE$=this.http.get(`${this.BASE_PATH_WITH_LANG}/underwater-seeds-item-mixing-data.json`).pipe(de(1))),this._ITEM_MIXING_RECIPE$}fetchFish$(){return this._FISH$||(this._FISH$=this.http.get(`${this.BASE_PATH_WITH_LANG}/fish.json`).pipe(de(1))),this._FISH$}fetchCraftingRecipes$(){return this._CRAFTING_RECIPE$||(this._CRAFTING_RECIPE$=zt([this.http.get(`${this.BASE_PATH_WITH_LANG}/crafting-recipes.json`),this.fetchItems$(),this.fetchTagBasedItems$()]).pipe(B(([n,i,o])=>(n.forEach(s=>{s.item=i.find(a=>a.id===s.key.toLowerCase()),s.genericIngredients.forEach(a=>a.genericItem=o.find(l=>l.key===a.key))}),n))).pipe(de(1))),this._CRAFTING_RECIPE$}fetchItemProcessingRecipes$(){return this._ITEM_PROCESSING_RECIPE$||(this._ITEM_PROCESSING_RECIPE$=zt([this.http.get(`${this.BASE_PATH_WITH_LANG}/item-processing.json`),this.fetchTagBasedItems$(),this.fetchItems$()]).pipe(B(([n,i,o])=>{let s=n[0];return Object.keys(s).forEach(a=>{s[a].forEach(l=>{l.machine=a,l.genericInput&&(l.genericInput.genericItem=i.find(c=>c.key===l.genericInput?.key)),l.output.item.sellPrice=o.find(c=>c.id===l.output.item.id)?.sellPrice})}),s}),de(1))),this._ITEM_PROCESSING_RECIPE$}fetchCookingRecipes$(){return this._COOKING_RECIPE$||(this._COOKING_RECIPE$=this.http.get(`${this.BASE_PATH_WITH_LANG}/cooking-recipes.json`).pipe(B(n=>n[0]),de(1))),this._COOKING_RECIPE$}fetchTreasureHunts$(){return this._TREASURE_HUNTS$||(this._TREASURE_HUNTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/treasure-hunt-maps.json`).pipe(de(1))),this._TREASURE_HUNTS$}fetchTagBasedItems$(){return this._TAG_BASED_ITEMS$||(this._TAG_BASED_ITEMS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/tag-based-items.json`).pipe(Ie(n=>this._TAG_BASED_ITEMS=n),de(1))),this._TAG_BASED_ITEMS$}getTagBasedItems(){return this._TAG_BASED_ITEMS}fetchOceanCritters$(){return this._OCEAN_CRITTERS$||(this._OCEAN_CRITTERS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/ocean-critters.json`).pipe(de(1))),this._OCEAN_CRITTERS$}fetchBugsAndInsects$(){return this._BUGS_AND_INSECTS$||(this._BUGS_AND_INSECTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/bugs-and-insects.json`).pipe(de(1))),this._BUGS_AND_INSECTS$}fetchCrops$(){return this._CROPS$||(this._CROPS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/crops.json`).pipe(de(1))),this._CROPS$}fetchFruitTrees$(){return this._FRUIT_TREES$||(this._FRUIT_TREES$=this.http.get(`${this.BASE_PATH_WITH_LANG}/fruit-trees.json`).pipe(de(1))),this._FRUIT_TREES$}fetchFruitPlants$(){return this._FRUIT_PLANTS$||(this._FRUIT_PLANTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/fruit-plants.json`).pipe(de(1))),this._FRUIT_PLANTS$}fetchJournalOrder$(n){return this._JOURNAL_ORDERS.get(n)||this._JOURNAL_ORDERS.set(n,this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}.json`).pipe(de(1))),this._JOURNAL_ORDERS.get(n)}fetchGiftingPreferences$(){return this._GIFT_PREFERENCES$||(this._GIFT_PREFERENCES$=this.http.get(`${this.BASE_PATH_WITH_LANG}/gift-preferences.json`).pipe(B(n=>wC(n)),Ie(n=>this._GIFT_PREFERENCES=n),de(1))),this._GIFT_PREFERENCES$}getGiftingPreferences(){return this._GIFT_PREFERENCES}fetchPetShopAdoptions$(){return this._PET_SHOP_ADOPTIONS$||(this._PET_SHOP_ADOPTIONS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/pet-shop-adoptions.json`).pipe(de(1))),this._PET_SHOP_ADOPTIONS$}fetchShopProcessItems$(n){return this._SHOP_PROCESS_ITEMS.has(n)?V(this._SHOP_PROCESS_ITEMS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-shop-process-items.json`).pipe(Ie(i=>this._SHOP_PROCESS_ITEMS.set(n,i)),de(1))}fetchItemUpgradeData$(n){return this._ITEM_UPGRADE.has(n)?V(this._ITEM_UPGRADE.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-item-upgrade.json`).pipe(Ie(i=>this._ITEM_UPGRADE.set(n,i)),de(1))}fetchOpeningHours$(n){return this._OPENING_HOURS.has(n)?V(this._OPENING_HOURS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-opening-hours.json`).pipe(B(i=>i[0]),Ie(i=>this._OPENING_HOURS.set(n,i)),de(1))}fetchShopItemData$(n){return this._SHOP_ITEMS.has(n)?V(this._SHOP_ITEMS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-shop-items.json`).pipe(Ie(i=>this._SHOP_ITEMS.set(n,i)),de(1))}fetchFestivalData$(n){return this._FESTIVAL_DATA.has(n)?V(this._FESTIVAL_DATA.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-festival-data.json`).pipe(B(i=>i[0]),Ie(i=>this._FESTIVAL_DATA.set(n,i)),de(1))}fetchFestivalOpeningHours$(n){let i="festival_"+n;return this._OPENING_HOURS.has(i)?V(this._OPENING_HOURS.get(i)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-festival-opening-hours.json`).pipe(B(o=>o[0]),Ie(o=>this._OPENING_HOURS.set(i,o)),de(1))}fetchMeritExchangeShopData$(){return this._MERIT_EXCHANGE_SHOP_DATA$||(this._MERIT_EXCHANGE_SHOP_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/merit-exchange-shop-items.json`).pipe(de(1))),this._MERIT_EXCHANGE_SHOP_DATA$}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Em;try{Em=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Em=!1}var Oe=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?am(this._platformId):typeof document=="object"&&!!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||Em)&&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}};e.\u0275fac=function(i){return new(i||e)(C(en))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zo,xC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function I9(){if(zo)return zo;if(typeof document!="object"||!document)return zo=new Set(xC),zo;let t=document.createElement("input");return zo=new Set(xC.filter(e=>(t.setAttribute("type",e),t.type===e))),zo}var ia;function QO(){if(ia==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ia=!0}))}finally{ia=ia||!1}return ia}function ri(t){return QO()?t:!!t.capture}var Tn=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Tn||{}),vd,Wr;function yd(){if(Wr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Wr=!1,Wr;if("scrollBehavior"in document.documentElement.style)Wr=!0;else{let t=Element.prototype.scrollTo;t?Wr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Wr=!1}}return Wr}function Go(){if(typeof document!="object"||!document)return Tn.NORMAL;if(vd==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),n=r.style;n.width="2px",n.height="1px",t.appendChild(r),document.body.appendChild(t),vd=Tn.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,vd=t.scrollLeft===0?Tn.NEGATED:Tn.INVERTED),t.remove()}return vd}var Dm;function ZO(){if(Dm==null){let t=typeof document<"u"?document.head:null;Dm=!!(t&&(t.createShadowRoot||t.attachShadow))}return Dm}function DC(t){if(ZO()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function KO(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function rn(t){return t.composedPath?t.composedPath()[0]:t.target}function ra(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Ht(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function on(t){return t!=null&&`${t}`!="false"}function si(t,e=0){return Im(t)?Number(t):e}function Im(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function qo(t){return Array.isArray(t)?t:[t]}function st(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Mn(t){return t instanceof $?t.nativeElement:t}function XO(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JO=(()=>{let e=class e{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map,this._ngZone=g(L)}ngOnDestroy(){this._observedElements.forEach((n,i)=>this._cleanupObserver(i))}observe(n){let i=Mn(n);return new Z(o=>{let a=this._observeElement(i).pipe(B(l=>l.filter(c=>!XO(c))),xe(l=>!!l.length)).subscribe(l=>{this._ngZone.run(()=>{o.next(l)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let i=new N,o=this._mutationObserverFactory.create(s=>i.next(s));o&&o.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:o,stream:i,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)){let{observer:i,stream:o}=this._observedElements.get(n);i&&i.disconnect(),o.complete(),this._observedElements.delete(n)}}};e.\u0275fac=function(i){return new(i||e)(C(EC))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),IC=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=si(n),this._subscribe()}constructor(n,i){this._contentObserver=n,this._elementRef=i,this.event=new q,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let n=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?n.pipe(un(this.debounce)):n).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(p(JO),p($))},e.\u0275dir=F({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",G],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ye]});let t=e;return t})(),bd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[EC]});let t=e;return t})();var SC=new Set,Yr,Sm=(()=>{let e=class e{constructor(n,i){this._platform=n,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):tN}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&eN(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(Vs,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function eN(t,e){if(!SC.has(t))try{Yr||(Yr=document.createElement("style"),e&&Yr.setAttribute("nonce",e),Yr.setAttribute("type","text/css"),document.head.appendChild(Yr)),Yr.sheet&&(Yr.sheet.insertRule(`@media ${t} {body{ }}`,0),SC.add(t))}catch(r){console.error(r)}}function tN(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var MC=(()=>{let e=class e{constructor(n,i){this._mediaMatcher=n,this._zone=i,this._queries=new Map,this._destroySubject=new N}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return TC(qo(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=TC(qo(n)).map(a=>this._registerQuery(a).observable),s=zt(o);return s=Bn(s.pipe(Je(1)),s.pipe(Er(1),un(0))),s.pipe(B(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let i=this._mediaMatcher.matchMedia(n),s={observable:new Z(a=>{let l=c=>this._zone.run(()=>a.next(c));return i.addListener(l),()=>{i.removeListener(l)}}).pipe(It(i),B(({matches:a})=>({query:n,matches:a})),K(this._destroySubject)),mql:i};return this._queries.set(n,s),s}};e.\u0275fac=function(i){return new(i||e)(C(Sm),C(L))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function TC(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var NC=" ";function Fm(t,e,r){let n=Dd(t,e);r=r.trim(),!n.some(i=>i.trim()===r)&&(n.push(r),t.setAttribute(e,n.join(NC)))}function Ad(t,e,r){let n=Dd(t,e);r=r.trim();let i=n.filter(o=>o!==r);i.length?t.setAttribute(e,i.join(NC)):t.removeAttribute(e)}function Dd(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var FC="cdk-describedby-message",wd="cdk-describedby-host",Am=0,Rd=(()=>{let e=class e{constructor(n,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Am++}`,this._document=n,this._id=g(Po)+"-"+Am++}describe(n,i,o){if(!this._canBeDescribed(n,i))return;let s=Tm(i,o);typeof i!="string"?(AC(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,i,o){if(!i||!this._isElementNode(n))return;let s=Tm(i,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),typeof i=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${wd}="${this._id}"]`);for(let i=0;io.indexOf(FC)!=0);n.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(n,i){let o=this._messageRegistry.get(i);Fm(n,"aria-describedby",o.messageElement.id),n.setAttribute(wd,this._id),o.referenceCount++}_removeMessageReference(n,i){let o=this._messageRegistry.get(i);o.referenceCount--,Ad(n,"aria-describedby",o.messageElement.id),n.removeAttribute(wd)}_isElementDescribedByMessage(n,i){let o=Dd(n,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(n,i){if(!this._isElementNode(n))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),s=n.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(C(J),C(Oe))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Tm(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function AC(t,e){t.id||(t.id=`${FC}-${e}-${Am++}`)}var Ed=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new N,this._typeaheadSubscription=Ce.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new N,this.change=new N,e instanceof En?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Gc(e)&&(this._effectRef=Ji(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ie(r=>this._pressedLetters.push(r)),un(e),xe(()=>this._pressedLetters.length>0),B(()=>this._pressedLetters.join(""))).subscribe(r=>{let n=this._getItemsArray();for(let i=1;i!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),n=typeof e=="number"?e:r.indexOf(e),i=r[n];this._activeItem=i??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let n=1;n<=r.length;n++){let i=(this._activeItemIndex+e*n+r.length)%r.length,o=r[i];if(!this._skipPredicateFn(o)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=r,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Gc(this._items)?this._items():this._items instanceof En?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},Id=class extends Ed{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},Sd=class extends Ed{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Pm=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return gN(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let i=mN(DN(n));if(i&&(RC(i)===-1||!this.isVisible(i)))return!1;let o=n.nodeName.toLowerCase(),s=RC(n);return n.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!CN(n)?!1:o==="audio"?n.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,i){return xN(n)&&!this.isDisabled(n)&&(i?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(i){return new(i||e)(C(Oe))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mN(t){try{return t.frameElement}catch{return null}}function gN(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function _N(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function vN(t){return bN(t)&&t.type=="hidden"}function yN(t){return wN(t)&&t.hasAttribute("href")}function bN(t){return t.nodeName.toLowerCase()=="input"}function wN(t){return t.nodeName.toLowerCase()=="a"}function PC(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function RC(t){if(!PC(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function CN(t){let e=t.nodeName.toLowerCase(),r=e==="input"&&t.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function xN(t){return vN(t)?!1:_N(t)||yN(t)||t.hasAttribute("contenteditable")||PC(t)}function DN(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Rm=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,r,n,i,o=!1,s){this._element=e,this._checker=r,this._ngZone=n,this._document=i,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let n=this._getFirstTabbableElement(r);return n?.focus(e),!!n}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let n=0;n=0;n--){let i=r[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[n]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?Ct(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(Je(1)).subscribe(e)}},LC=(()=>{let e=class e{constructor(n,i,o){this._checker=n,this._ngZone=i,this._injector=g(Te),this._document=o}create(n,i=!1){return new Rm(n,this._checker,this._ngZone,this._document,i,this._injector)}};e.\u0275fac=function(i){return new(i||e)(C(Pm),C(L),C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Lm(t){return t.buttons===0||t.detail===0}function jm(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var EN=new E("cdk-input-modality-detector-options"),IN={ignoreKeys:[18,17,224,91,16]},jC=650,Wo=ri({passive:!0,capture:!0}),SN=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,i,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new Ze(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=rn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(jm(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=rn(a)},this._options=S(S({},IN),s),this.modalityDetected=this._modality.pipe(Er(1)),this.modalityChanged=this.modalityDetected.pipe(Hn()),n.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Wo),o.addEventListener("mousedown",this._onMousedown,Wo),o.addEventListener("touchstart",this._onTouchstart,Wo)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wo),document.removeEventListener("mousedown",this._onMousedown,Wo),document.removeEventListener("touchstart",this._onTouchstart,Wo))}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(L),C(J),C(EN,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),TN=new E("liveAnnouncerElement",{providedIn:"root",factory:MN});function MN(){return null}var AN=new E("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),RN=0,VC=(()=>{let e=class e{constructor(n,i,o,s){this._ngZone=i,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...i){let o=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&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(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof a=="number"&&(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(){let n="cdk-live-announcer-element",i=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{let e=class e{constructor(n,i,o,s,a){this._ngZone=n,this._platform=i,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 N,this._rootNodeFocusAndBlurListener=l=>{let c=rn(l);for(let d=c;d;d=d.parentElement)l.type==="focus"?this._onFocus(l,d):this._onBlur(l,d)},this._document=s,this._detectionMode=a?.detectionMode||xd.IMMEDIATE}monitor(n,i=!1){let o=Mn(n);if(!this._platform.isBrowser||o.nodeType!==1)return V();let s=DC(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let l={checkChildren:i,subject:new N,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let i=Mn(n),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(n,i,o){let s=Mn(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([l,c])=>this._originChanged(l,i,c)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,i)=>this.stopMonitoring(i))}_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 this._detectionMode===xd.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused",i==="touch"),n.classList.toggle("cdk-keyboard-focused",i==="keyboard"),n.classList.toggle("cdk-mouse-focused",i==="mouse"),n.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(n,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&i,this._detectionMode===xd.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jC:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,i){let o=this._elementInfo.get(i),s=rn(n);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(n,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(n,i){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(i))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let i=n.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Cd),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Cd)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(K(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Cd),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Cd),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,i,o){this._setClasses(n,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(n){let i=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,i){this._elementRef=n,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new q}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(p($),p(Zr))},e.\u0275dir=F({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),Qr=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Qr||{}),kC="cdk-high-contrast-black-on-white",OC="cdk-high-contrast-white-on-black",Mm="cdk-high-contrast-active",Vm=(()=>{let e=class e{constructor(n,i){this._platform=n,this._document=i,this._breakpointSubscription=g(MC).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Qr.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.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 Qr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Qr.BLACK_ON_WHITE}return Qr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(Mm,kC,OC),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Qr.BLACK_ON_WHITE?n.add(Mm,kC):i===Qr.WHITE_ON_BLACK&&n.add(Mm,OC)}}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),HC=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(C(Vm))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[bd]});let t=e;return t})();var ON=new E("cdk-dir-doc",{providedIn:"root",factory:NN});function NN(){return g(J)}var FN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function PN(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?FN.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var gt=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new q,n){let i=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=PN(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(C(ON,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var or=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();var LN=["text"],jN=[[["mat-icon"]],"*"],VN=["mat-icon","*"];function BN(t,e){if(t&1&&M(0,"mat-pseudo-checkbox",1),t&2){let r=_();D("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function HN(t,e){if(t&1&&M(0,"mat-pseudo-checkbox",3),t&2){let r=_();D("disabled",r.disabled)}}function $N(t,e){if(t&1&&(v(0,"span",4),x(1),w()),t&2){let r=_();h(),Y("(",r.group.label,")")}}var UN=["mat-internal-form-field",""],zN=["*"];var ZC=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),KC=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function GN(){return!0}var qN=new E("mat-sanity-checks",{providedIn:"root",factory:GN}),Ye=(()=>{let e=class e{constructor(n,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return ra()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(i){return new(i||e)(C(Vm),C(qN,8),C(J))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[or,or]});let t=e;return t})();var Od=class{constructor(e,r,n,i,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(i,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var XC=(()=>{let e=class e{isErrorState(n,i){return!!(n&&n.invalid&&(n.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var vn=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(vn||{}),$m=class{constructor(e,r,n,i=!1){this._renderer=e,this.element=r,this.config=n,this._animationForciblyDisabledThroughCss=i,this.state=vn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},$C=ri({passive:!0,capture:!0}),Um=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=rn(e);r&&this._events.get(e.type)?.forEach((n,i)=>{(i===r||i.contains(r))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,n,i){let o=this._events.get(r);if(o){let s=o.get(n);s?s.add(i):o.set(n,new Set([i]))}else this._events.set(r,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,$C)})}removeHandler(e,r,n){let i=this._events.get(e);if(!i)return;let o=i.get(r);o&&(o.delete(n),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,$C)))}},UC={enterDuration:225,exitDuration:150},WN=800,zC=ri({passive:!0,capture:!0}),GC=["mousedown","touchstart"],qC=["mouseup","mouseleave","touchend","touchcancel"],sa=class sa{constructor(e,r,n,i){this._target=e,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Mn(n))}fadeInRipple(e,r,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=S(S({},UC),n.animation);n.centered&&(e=i.left+i.width/2,r=i.top+i.height/2);let s=n.radius||YN(e,r,i),a=e-i.left,l=r-i.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${l-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,n.color!=null&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,m=u.transitionDuration,y=f==="none"||m==="0s"||m==="0s, 0s"||i.width===0&&i.height===0,A=new $m(this,d,n,y);d.style.transform="scale3d(1, 1, 1)",A.state=vn.FADING_IN,n.persistent||(this._mostRecentTransientRipple=A);let k=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let O=()=>this._finishRippleTransition(A),ce=()=>this._destroyRipple(A);d.addEventListener("transitionend",O),d.addEventListener("transitioncancel",ce),k={onTransitionEnd:O,onTransitionCancel:ce}}),this._activeRipples.set(A,k),(y||!c)&&this._finishRippleTransition(A),A}fadeOutRipple(e){if(e.state===vn.FADING_OUT||e.state===vn.HIDDEN)return;let r=e.element,n=S(S({},UC),e.config.animation);r.style.transitionDuration=`${n.exitDuration}ms`,r.style.opacity="0",e.state=vn.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=Mn(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,GC.forEach(n=>{sa._eventManager.addHandler(this._ngZone,n,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qC.forEach(r=>{this._triggerElement.addEventListener(r,this,zC)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===vn.FADING_IN?this._startFadeOutTransition(e):e.state===vn.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=vn.VISIBLE,!n&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=vn.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel)),e.element.remove()}_onMousedown(e){let r=Lm(e),n=this._lastTouchStartEvent&&Date.now(){let r=e.state===vn.VISIBLE||e.config.terminateOnPointerUp&&e.state===vn.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(GC.forEach(r=>sa._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(qC.forEach(r=>e.removeEventListener(r,this,zC)),this._pointerUpEventsRegistered=!1))}};sa._eventManager=new Um;var zm=sa;function YN(t,e,r){let n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),i=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+i*i)}var qm=new E("mat-ripple-global-options"),Yo=(()=>{let e=class e{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,i,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new zm(this,i,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:S(S(S({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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,i=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,i,S(S({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,S(S({},this.rippleConfig),n))}};e.\u0275fac=function(i){return new(i||e)(p($),p(L),p(Oe),p(qm,8),p(kt,8))},e.\u0275dir=F({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),Wm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ye,Ye]});let t=e;return t})(),QN=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(p(kt,8))},e.\u0275cmp=R({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&H("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ge],decls:0,vars:0,template:function(i,o){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.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});let t=e;return t})(),ZN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ye]});let t=e;return t})(),Ym=new E("MAT_OPTION_PARENT_COMPONENT");var Qm=new E("MatOptgroup");var KN=0,Gm=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},Nd=(()=>{let e=class e{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=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,i,o,s){this._element=n,this._changeDetectorRef=i,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${KN++}`,this.onSelectionChange=new q,this._stateChanges=new N}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,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!Ht(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let 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 Gm(this,n))}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(Ym,8),p(Qm,8))},e.\u0275cmp=R({type:e,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&Se(LN,7),i&2){let s;U(s=z())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&le("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),i&2&&(zs("id",o.id),Pe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),H("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",G]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ye,ge],ngContentSelectors:VN,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){i&1&&(be(jN),T(0,BN,1,2,"mat-pseudo-checkbox",1),W(1),v(2,"span",2,0),W(4,1),w(),T(5,HN,1,1,"mat-pseudo-checkbox",3)(6,$N,2,1,"span",4),M(7,"div",5)),i&2&&(b(o.multiple?0:-1),h(5),b(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),h(),b(o.group&&o.group._inert?6:-1),h(),D("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[QN,Yo],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;background:rgba(0,0,0,0)}.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-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function JC(t,e,r){if(r.length){let n=e.toArray(),i=r.toArray(),o=0;for(let s=0;sr+n?Math.max(0,t-n+e):r}var Zm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Wm,Ye,ZN]});let t=e;return t})(),WC={capture:!0},YC=["focus","mousedown","mouseenter","touchstart"],Bm="mat-ripple-loader-uninitialized",Hm="mat-ripple-loader-class-name",QC="mat-ripple-loader-centered",kd="mat-ripple-loader-disabled",B7=(()=>{let e=class e{constructor(){this._document=g(J,{optional:!0}),this._animationMode=g(kt,{optional:!0}),this._globalRippleOptions=g(qm,{optional:!0}),this._platform=g(Oe),this._ngZone=g(L),this._hosts=new Map,this._onInteraction=n=>{let i=rn(n);if(i instanceof HTMLElement){let o=i.closest(`[${Bm}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let n of YC)this._document?.addEventListener(n,this._onInteraction,WC)})}ngOnDestroy(){let n=this._hosts.keys();for(let i of n)this.destroyRipple(i);for(let i of YC)this._document?.removeEventListener(i,this._onInteraction,WC)}configureRipple(n,i){n.setAttribute(Bm,this._globalRippleOptions?.namespace??""),(i.className||!n.hasAttribute(Hm))&&n.setAttribute(Hm,i.className||""),i.centered&&n.setAttribute(QC,""),i.disabled&&n.setAttribute(kd,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,i){let o=this._hosts.get(n);if(o){o.disabled=i;return}i?n.setAttribute(kd,""):n.removeAttribute(kd)}_createRipple(n){if(!this._document)return;let i=this._hosts.get(n);if(i)return i;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute(Hm)),n.append(o);let s=new Yo(new $(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(QC),s.disabled=n.hasAttribute(kd),this.attachRipple(n,s),s}attachRipple(n,i){n.removeAttribute(Bm),this._hosts.set(n,i)}destroyRipple(n){let i=this._hosts.get(n);i&&(i.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),H7=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ge],attrs:UN,ngContentSelectors:zN,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},styles:[".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-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var lx=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(p(Kn),p($))},e.\u0275dir=F({type:e});let t=e;return t})(),eg=(()=>{let e=class e extends lx{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,features:[ie]});let t=e;return t})(),ha=new E(""),XN={provide:ha,useExisting:bt(()=>JN),multi:!0},JN=(()=>{let e=class e extends eg{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&le("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[me([XN]),ie]});let t=e;return t})(),eF={provide:ha,useExisting:bt(()=>cx),multi:!0};function tF(){let t=ii()?ii().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var nF=new E(""),cx=(()=>{let e=class e extends lx{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!tF())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};e.\u0275fac=function(i){return new(i||e)(p(Kn),p($),p(nF,8))},e.\u0275dir=F({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(i,o){i&1&&le("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[me([eF]),ie]});let t=e;return t})();function ar(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function dx(t){return t!=null&&typeof t.length=="number"}var Jr=new E(""),Wd=new E(""),iF=/^(?=.{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])?)*$/,Pd=class{static min(e){return ux(e)}static max(e){return fx(e)}static required(e){return rF(e)}static requiredTrue(e){return oF(e)}static email(e){return sF(e)}static minLength(e){return aF(e)}static maxLength(e){return lF(e)}static pattern(e){return hx(e)}static nullValidator(e){return Ld(e)}static compose(e){return yx(e)}static composeAsync(e){return bx(e)}};function ux(t){return e=>{if(ar(e.value)||ar(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(ar(e.value)||ar(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function rF(t){return ar(t.value)?{required:!0}:null}function oF(t){return t.value===!0?null:{required:!0}}function sF(t){return ar(t.value)||iF.test(t.value)?null:{email:!0}}function aF(t){return e=>ar(e.value)||!dx(e.value)?null:e.value.lengthdx(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function hx(t){if(!t)return Ld;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(ar(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Ld(t){return null}function px(t){return t!=null}function mx(t){return Xi(t)?$e(t):t}function gx(t){let e={};return t.forEach(r=>{e=r!=null?S(S({},e),r):e}),Object.keys(e).length===0?null:e}function _x(t,e){return e.map(r=>r(t))}function cF(t){return!t.validate}function vx(t){return t.map(e=>cF(e)?e:r=>e.validate(r))}function yx(t){if(!t)return null;let e=t.filter(px);return e.length==0?null:function(r){return gx(_x(r,e))}}function tg(t){return t!=null?yx(vx(t)):null}function bx(t){if(!t)return null;let e=t.filter(px);return e.length==0?null:function(r){let n=_x(r,e).map(mx);return sf(n).pipe(B(gx))}}function ng(t){return t!=null?bx(vx(t)):null}function nx(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function wx(t){return t._rawValidators}function Cx(t){return t._rawAsyncValidators}function Km(t){return t?Array.isArray(t)?t:[t]:[]}function jd(t,e){return Array.isArray(t)?t.includes(e):t===e}function ix(t,e){let r=Km(e);return Km(t).forEach(i=>{jd(r,i)||r.push(i)}),r}function rx(t,e){return Km(e).filter(r=>!jd(t,r))}var Vd=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=tg(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ng(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},lr=class extends Vd{get formDirective(){return null}get path(){return null}},Oi=class extends Vd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Bd=class{constructor(e){this._cd=e}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}},dF={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},rQ=ue(S({},dF),{"[class.ng-submitted]":"isSubmitted"}),xx=(()=>{let e=class e extends Bd{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(p(Oi,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ie]});let t=e;return t})(),Dx=(()=>{let e=class e extends Bd{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(p(lr,10))},e.\u0275dir=F({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ie]});let t=e;return t})();var aa="VALID",Fd="INVALID",Qo="PENDING",la="DISABLED",cr=class{},Hd=class extends cr{constructor(e,r){super(),this.value=e,this.source=r}},da=class extends cr{constructor(e,r){super(),this.pristine=e,this.source=r}},ua=class extends cr{constructor(e,r){super(),this.touched=e,this.source=r}},Zo=class extends cr{constructor(e,r){super(),this.status=e,this.source=r}},Xm=class extends cr{constructor(e){super(),this.source=e}},Jm=class extends cr{constructor(e){super(),this.source=e}};function Ex(t){return(Yd(t)?t.validators:t)||null}function uF(t){return Array.isArray(t)?tg(t):t||null}function Ix(t,e){return(Yd(e)?e.asyncValidators:t)||null}function fF(t){return Array.isArray(t)?ng(t):t||null}function Yd(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function hF(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new j(1e3,"");if(!n[r])throw new j(1001,"")}function pF(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new j(1002,"")})}var $d=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new N,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===aa}get invalid(){return this.status===Fd}get pending(){return this.status==Qo}get disabled(){return this.status===la}get enabled(){return this.status!==la}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(ix(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ix(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(rx(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(rx(e,this._rawAsyncValidators))}hasValidator(e){return jd(this._rawValidators,e)}hasAsyncValidator(e){return jd(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ue(S({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new ua(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new ua(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ue(S({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new da(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new da(!0,n))}markAsPending(e={}){this.status=Qo;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Zo(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ue(S({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=la,this.errors=null,this._forEachChild(i=>{i.disable(ue(S({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hd(this.value,n)),this._events.next(new Zo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ue(S({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=aa,this._forEachChild(n=>{n.enable(ue(S({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ue(S({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===aa||this.status===Qo)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hd(this.value,r)),this._events.next(new Zo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ue(S({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?la:aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Qo,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=mx(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Zo(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?la:this.errors?Fd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qo)?Qo:this._anyControlsHaveStatus(Fd)?Fd:aa}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new da(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new ua(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Yd(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=uF(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=fF(this._rawAsyncValidators)}},fa=class extends $d{constructor(e,r,n){super(Ex(r),Ix(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){pF(this,!0,e),Object.keys(e).forEach(n=>{hF(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var ox=class extends fa{};var pa=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Qd}),Qd="always";function mF(t,e){return[...e.path,t]}function Ud(t,e,r=Qd){ig(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),_F(t,e),yF(t,e),vF(t,e),gF(t,e)}function zd(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),qd(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Gd(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function gF(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function ig(t,e){let r=wx(t);e.validator!==null?t.setValidators(nx(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Cx(t);e.asyncValidator!==null?t.setAsyncValidators(nx(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Gd(e._rawValidators,i),Gd(e._rawAsyncValidators,i)}function qd(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=wx(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Cx(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Gd(e._rawValidators,n),Gd(e._rawAsyncValidators,n),r}function _F(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Sx(t,e)})}function vF(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Sx(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Sx(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yF(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function Tx(t,e){t==null,ig(t,e)}function bF(t,e){return qd(t,e)}function Mx(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function wF(t){return Object.getPrototypeOf(t.constructor)===eg}function Ax(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Rx(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===cx?r=o:wF(o)?n=o:i=o}),i||n||r||null}function CF(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var xF={provide:lr,useExisting:bt(()=>rg)},ca=Promise.resolve(),rg=(()=>{let e=class e extends lr{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new q,this.form=new fa({},tg(n),ng(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ca.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),Ud(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ca.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ca.then(()=>{let i=this._findContainer(n.path),o=new fa({});Tx(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ca.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){ca.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,Ax(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(i){return new(i||e)(p(Jr,10),p(Wd,10),p(pa,8))},e.\u0275dir=F({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&le("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([xF]),ie]});let t=e;return t})();function sx(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function ax(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var DF=class extends $d{constructor(e=null,r,n){super(Ex(r),Ix(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yd(r)&&(r.nonNullable||r.initialValueIsDefault)&&(ax(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sx(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sx(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ax(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var EF=t=>t instanceof DF;var sQ=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),IF={provide:ha,useExisting:bt(()=>SF),multi:!0},SF=(()=>{let e=class e extends eg{writeValue(n){let i=n??"";this.setProperty("value",i)}registerOnChange(n){this.onChange=i=>{n(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&le("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[me([IF]),ie]});let t=e;return t})();var og=new E(""),TF={provide:Oi,useExisting:bt(()=>MF)},MF=(()=>{let e=class e extends Oi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new q,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Rx(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&zd(i,this,!1),Ud(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Mx(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&zd(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")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(p(Jr,10),p(Wd,10),p(ha,10),p(og,8),p(pa,8))},e.\u0275dir=F({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[me([TF]),ie,Ve]});let t=e;return t})(),AF={provide:lr,useExisting:bt(()=>ma)},ma=(()=>{let e=class e extends lr{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new q,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(qd(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){let i=this.form.get(n.path);return Ud(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){zd(n.control||null,n,!1),CF(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,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,Ax(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Xm(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1,this.form._events.next(new Jm(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(zd(i||null,n),EF(o)&&(Ud(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);Tx(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&bF(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ig(this.form,this),this._oldForm&&qd(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(p(Jr,10),p(Wd,10),p(pa,8))},e.\u0275dir=F({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&le("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([AF]),ie,Ve]});let t=e;return t})();var RF={provide:Oi,useExisting:bt(()=>sg)},sg=(()=>{let e=class e extends Oi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new q,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Rx(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Mx(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return mF(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(p(lr,13),p(Jr,10),p(Wd,10),p(ha,10),p(og,8))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[me([RF]),ie,Ve]});let t=e;return t})();function kx(t){return typeof t=="number"?t:parseFloat(t)}var ag=(()=>{let e=class e{constructor(){this._validator=Ld}ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Ld,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,features:[Ve]});let t=e;return t})(),kF={provide:Jr,useExisting:bt(()=>OF),multi:!0},OF=(()=>{let e=class e extends ag{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>kx(n),this.createValidator=n=>fx(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Pe("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[me([kF]),ie]});let t=e;return t})(),NF={provide:Jr,useExisting:bt(()=>FF),multi:!0},FF=(()=>{let e=class e extends ag{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>kx(n),this.createValidator=n=>ux(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Pe("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[me([NF]),ie]});let t=e;return t})();var PF={provide:Jr,useExisting:bt(()=>LF),multi:!0},LF=(()=>{let e=class e extends ag{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=n=>n,this.createValidator=n=>hx(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Pe("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[me([PF]),ie]});let t=e;return t})();var Ox=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();var aQ=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:pa,useValue:n.callSetDisabledState??Qd}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ox]});let t=e;return t})(),Nx=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:og,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:pa,useValue:n.callSetDisabledState??Qd}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ox]});let t=e;return t})();var we="primary",Aa=Symbol("RouteTitle"),fg=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function ns(t){return new fg(t)}function jF(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function Wx(t){return t.length>0?t[t.length-1]:null}function fr(t){return xr(t)?t:Xi(t)?$e(Promise.resolve(t)):V(t)}var BF={exact:Qx,subset:Zx},Yx={exact:HF,subset:$F,ignored:()=>!0};function Px(t,e,r){return BF[r.paths](t.root,e.root,r.matrixParams)&&Yx[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function HF(t,e){return ai(t,e)}function Qx(t,e,r){if(!to(t.segments,e.segments)||!Xd(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Qx(t.children[n],e.children[n],r))return!1;return!0}function $F(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>qx(t[r],e[r]))}function Zx(t,e,r){return Kx(t,e,e.segments,r)}function Kx(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!to(i,r)||e.hasChildren()||!Xd(i,r,n))}else if(t.segments.length===r.length){if(!to(t.segments,r)||!Xd(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Zx(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!to(t.segments,i)||!Xd(t.segments,i,n)||!t.children[we]?!1:Kx(t.children[we],e,o,n)}}function Xd(t,e,r){return e.every((n,i)=>Yx[r](t[i].parameters,n.parameters))}var dr=class{constructor(e=new Le([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ns(this.queryParams),this._queryParamMap}toString(){return GF.serialize(this)}},Le=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jd(this)}},eo=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=ns(this.parameters),this._parameterMap}toString(){return Jx(this)}};function UF(t,e){return to(t,e)&&t.every((r,n)=>ai(r.parameters,e[n].parameters))}function to(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function zF(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===we&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==we&&(r=r.concat(e(i,n)))}),r}var Ra=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new is,providedIn:"root"});let t=e;return t})(),is=class{parse(e){let r=new mg(e);return new dr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${ga(e.root,!0)}`,n=YF(e.queryParams),i=typeof e.fragment=="string"?`#${qF(e.fragment)}`:"";return`${r}${n}${i}`}},GF=new is;function Jd(t){return t.segments.map(e=>Jx(e)).join("/")}function ga(t,e){if(!t.hasChildren())return Jd(t);if(e){let r=t.children[we]?ga(t.children[we],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==we&&n.push(`${i}:${ga(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=zF(t,(n,i)=>i===we?[ga(t.children[we],!1)]:[`${i}:${ga(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[we]!=null?`${Jd(t)}/${r[0]}`:`${Jd(t)}/(${r.join("//")})`}}function Xx(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zd(t){return Xx(t).replace(/%3B/gi,";")}function qF(t){return encodeURI(t)}function pg(t){return Xx(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function eu(t){return decodeURIComponent(t)}function Lx(t){return eu(t.replace(/\+/g,"%20"))}function Jx(t){return`${pg(t.path)}${WF(t.parameters)}`}function WF(t){return Object.entries(t).map(([e,r])=>`;${pg(e)}=${pg(r)}`).join("")}function YF(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Zd(r)}=${Zd(i)}`).join("&"):`${Zd(r)}=${Zd(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var QF=/^[^\/()?;#]+/;function lg(t){let e=t.match(QF);return e?e[0]:""}var ZF=/^[^\/()?;=#]+/;function KF(t){let e=t.match(ZF);return e?e[0]:""}var XF=/^[^=?&#]+/;function JF(t){let e=t.match(XF);return e?e[0]:""}var eP=/^[^&#]+/;function tP(t){let e=t.match(eP);return e?e[0]:""}var mg=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Le([],{}):new Le([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[we]=new Le(e,r)),n}parseSegment(){let e=lg(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new j(4009,!1);return this.capture(e),new eo(eu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=KF(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=lg(this.remaining);i&&(n=i,this.capture(n))}e[eu(r)]=eu(n)}parseQueryParam(e){let r=JF(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=tP(this.remaining);s&&(n=s,this.capture(n))}let i=Lx(r),o=Lx(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=lg(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new j(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=we);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[we]:new Le([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new j(4011,!1)}};function eD(t){return t.segments.length>0?new Le([],{[we]:t}):t}function tD(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=tD(i);if(n===we&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new Le(t.segments,e);return nP(r)}function nP(t){if(t.numberOfChildren===1&&t.children[we]){let e=t.children[we];return new Le(t.segments.concat(e.segments),e.children)}return t}function Ca(t){return t instanceof dr}function iP(t,e,r=null,n=null){let i=nD(t);return iD(i,e,r,n)}function nD(t){let e;function r(o){let s={};for(let l of o.children){let c=r(l);s[l.outlet]=c}let a=new Le(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=eD(n);return e??i}function iD(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return cg(i,i,i,r,n);let o=rP(e);if(o.toRoot())return cg(i,i,new Le([],{}),r,n);let s=oP(o,i,t),a=s.processChildren?ya(s.segmentGroup,s.index,o.commands):oD(s.segmentGroup,s.index,o.commands);return cg(i,s.segmentGroup,a,r,n)}function tu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xa(t){return typeof t=="object"&&t!=null&&t.outlets}function cg(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===e?s=r:s=rD(t,e,r);let a=eD(tD(s));return new dr(a,o,i)}function rD(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=rD(o,e,r)}),new Le(t.segments,n)}var nu=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&tu(n[0]))throw new j(4003,!1);let i=n.find(xa);if(i&&i!==Wx(n))throw new j(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function rP(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new nu(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new nu(r,e,n)}var Jo=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function oP(t,e,r){if(t.isAbsolute)return new Jo(e,!0,0);if(!r)return new Jo(e,!1,NaN);if(r.parent===null)return new Jo(r,!0,0);let n=tu(t.commands[0])?0:1,i=r.segments.length-1+n;return sP(r,i,t.numberOfDoubleDots)}function sP(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new j(4005,!1);i=n.segments.length}return new Jo(n,!1,i-o)}function aP(t){return xa(t[0])?t[0].outlets:{[we]:t}}function oD(t,e,r){if(t??=new Le([],{}),t.segments.length===0&&t.hasChildren())return ya(t,e,r);let n=lP(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==we)&&t.children[we]&&t.numberOfChildren===1&&t.children[we].segments.length===0){let o=ya(t.children[we],e,r);return new Le(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=oD(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new Le(t.segments,i)}}function lP(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(xa(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Vx(l,c,s))return o;n+=2}else{if(!Vx(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function gg(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=gg(new Le([],{}),0,n))}),e}function jx(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Vx(t,e,r){return t==r.path&&ai(e,r.parameters)}var ba="imperative",Dt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Dt||{}),yn=class{constructor(e,r){this.id=e,this.url=r}},rs=class extends yn{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Dt.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Rn=class extends yn{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Dt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},an=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(an||{}),iu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(iu||{}),Ni=class extends yn{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Dt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ur=class extends yn{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Dt.NavigationSkipped}},Da=class extends yn{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Dt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ru=class extends yn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Dt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_g=class extends yn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Dt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vg=class extends yn{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Dt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},yg=class extends yn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Dt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bg=class extends yn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Dt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wg=class{constructor(e){this.route=e,this.type=Dt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cg=class{constructor(e){this.route=e,this.type=Dt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},xg=class{constructor(e){this.snapshot=e,this.type=Dt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dg=class{constructor(e){this.snapshot=e,this.type=Dt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eg=class{constructor(e){this.snapshot=e,this.type=Dt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ig=class{constructor(e){this.snapshot=e,this.type=Dt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ou=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Dt.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ea=class{},os=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var Sg=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ka(this.injector),this.attachRef=null}},ka=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Sg(this.parentInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(C(ht))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),su=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Tg(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Tg(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Mg(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Mg(e,this._root).map(r=>r.value)}};function Tg(t,e){if(t===e.value)return e;for(let r of e.children){let n=Tg(t,r);if(n)return n}return null}function Mg(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Mg(t,r);if(n.length)return n.unshift(e),n}return[]}var sn=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Xo(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var au=class extends su{constructor(e,r){super(e),this.snapshot=r,jg(this,e)}toString(){return this.snapshot.toString()}};function sD(t){let e=dP(t),r=new Ze([new eo("",{})]),n=new Ze({}),i=new Ze({}),o=new Ze({}),s=new Ze(""),a=new Fi(r,n,o,s,i,we,t,e.root);return a.snapshot=e.root,new au(new sn(a,[]),e)}function dP(t){let e={},r={},n={},i="",o=new es([],e,n,i,r,we,t,null,{});return new cu("",new sn(o,[]))}var Fi=class{constructor(e,r,n,i,o,s,a,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(B(c=>c[Aa]))??V(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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.params.pipe(B(e=>ns(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(B(e=>ns(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lu(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:S(S({},e.params),t.params),data:S(S({},e.data),t.data),resolve:S(S(S(S({},t.data),e.data),i?.data),t._resolvedData)}:n={params:S({},t.params),data:S({},t.data),resolve:S(S({},t.data),t._resolvedData??{})},i&&lD(i)&&(n.resolve[Aa]=i.title),n}var es=class{get title(){return this.data?.[Aa]}constructor(e,r,n,i,o,s,a,l,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=ns(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ns(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},cu=class extends su{constructor(e,r){super(r),this.url=e,jg(this,r)}toString(){return aD(this._root)}};function jg(t,e){e.value._routerState=t,e.children.forEach(r=>jg(t,r))}function aD(t){let e=t.children.length>0?` { ${t.children.map(aD).join(", ")} } `:"";return`${t.value}${e}`}function dg(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,ai(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),ai(e.params,r.params)||t.paramsSubject.next(r.params),VF(e.url,r.url)||t.urlSubject.next(r.url),ai(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Ag(t,e){let r=ai(t.params,e.params)&&UF(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Ag(t.parent,e.parent))}function lD(t){return typeof t.title=="string"||t.title===null}var uP=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=we,this.activateEvents=new q,this.deactivateEvents=new q,this.attachEvents=new q,this.detachEvents=new q,this.parentContexts=g(ka),this.location=g(We),this.changeDetector=g(Ae),this.inputBinder=g(pu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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;let 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 j(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new j(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new j(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new j(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Rg(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ve]});let t=e;return t})(),Rg=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Fi?this.route:e===ka?this.childContexts:this.parent.get(e,r)}},pu=new E(""),Bx=(()=>{let e=class e{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){let{activatedRoute:i}=n,o=zt([i.queryParams,i.params,i.data]).pipe(rt(([s,a,l],c)=>(l=S(S(S({},s),a),l),c===0?V(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=Mw(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function fP(t,e,r){let n=Ia(t,e._root,r?r._root:void 0);return new au(n,e)}function Ia(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=hP(t,e,r);return new sn(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ia(t,a)),s}}let n=pP(e.value),i=e.children.map(o=>Ia(t,o));return new sn(n,i)}}function hP(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ia(t,n,i);return Ia(t,n)})}function pP(t){return new Fi(new Ze(t.url),new Ze(t.params),new Ze(t.queryParams),new Ze(t.fragment),new Ze(t.data),t.outlet,t.component,t)}var Sa=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},cD="ngNavigationCancelingError";function du(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Ca(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=dD(!1,an.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function dD(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[cD]=!0,r.cancellationCode=e,r}function mP(t){return uD(t)&&Ca(t.url)}function uD(t){return!!t&&t[cD]}var gP=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["ng-component"]],standalone:!0,features:[ge],decls:1,vars:0,template:function(i,o){i&1&&M(0,"router-outlet")},dependencies:[uP],encapsulation:2});let t=e;return t})();function _P(t,e){return t.providers&&!t._injector&&(t._injector=$s(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Vg(t){let e=t.children&&t.children.map(Vg),r=e?ue(S({},t),{children:e}):S({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==we&&(r.component=gP),r}function An(t){return t.outlet||we}function vP(t,e){let r=t.filter(n=>An(n)===e);return r.push(...t.filter(n=>An(n)!==e)),r}function Oa(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var yP=(t,e,r,n)=>B(i=>(new kg(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),kg=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),dg(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Xo(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Xo(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Xo(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Xo(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ig(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Dg(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(dg(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),dg(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Oa(i.snapshot);s.attachRef=null,s.route=i,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},uu=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ts=class{constructor(e,r){this.component=e,this.route=r}};function bP(t,e,r){let n=t._root,i=e?e._root:null;return _a(n,i,r,[n.value])}function wP(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function as(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Sy(t)?t:e.get(t):n}function _a(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Xo(e);return t.children.forEach(s=>{CP(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>wa(a,r.getContext(s),i)),i}function CP(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=xP(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new uu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?_a(t,e,a?a.children:null,n,i):_a(t,e,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ts(a.outlet.component,s))}else s&&wa(e,a,i),i.canActivateChecks.push(new uu(n)),o.component?_a(t,null,a?a.children:null,n,i):_a(t,null,r,n,i);return i}function xP(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!to(t.url,e.url);case"pathParamsOrQueryParamsChange":return!to(t.url,e.url)||!ai(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ag(t,e)||!ai(t.queryParams,e.queryParams);case"paramsChange":default:return!Ag(t,e)}}function wa(t,e,r){let n=Xo(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?wa(s,e.children.getContext(o),r):wa(s,null,r):wa(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ts(e.outlet.component,i)):r.canDeactivateChecks.push(new ts(null,i)):r.canDeactivateChecks.push(new ts(null,i))}function Na(t){return typeof t=="function"}function DP(t){return typeof t=="boolean"}function EP(t){return t&&Na(t.canLoad)}function IP(t){return t&&Na(t.canActivate)}function SP(t){return t&&Na(t.canActivateChild)}function TP(t){return t&&Na(t.canDeactivate)}function MP(t){return t&&Na(t.canMatch)}function fD(t){return t instanceof pi||t?.name==="EmptyError"}var Kd=Symbol("INITIAL_VALUE");function ss(){return rt(t=>zt(t.map(e=>e.pipe(Je(1),It(Kd)))).pipe(B(e=>{for(let r of e)if(r!==!0){if(r===Kd)return Kd;if(r===!1||AP(r))return r}return!0}),xe(e=>e!==Kd),Je(1)))}function AP(t){return Ca(t)||t instanceof Sa}function RP(t,e){return nt(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?V(ue(S({},r),{guardsResult:!0})):kP(s,n,i,t).pipe(nt(a=>a&&DP(a)?OP(n,o,t,e):V(a)),B(a=>ue(S({},r),{guardsResult:a})))})}function kP(t,e,r,n){return $e(t).pipe(nt(i=>jP(i.component,i.route,r,e,n)),$n(i=>i!==!0,!0))}function OP(t,e,r,n){return $e(e).pipe(gi(i=>Bn(FP(i.route.parent,n),NP(i.route,n),LP(t,i.path,r),PP(t,i.route,r))),$n(i=>i!==!0,!0))}function NP(t,e){return t!==null&&e&&e(new Eg(t)),V(!0)}function FP(t,e){return t!==null&&e&&e(new xg(t)),V(!0)}function PP(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return V(!0);let i=n.map(o=>mo(()=>{let s=Oa(e)??r,a=as(o,s),l=IP(a)?a.canActivate(e,t):Yt(s,()=>a(e,t));return fr(l).pipe($n())}));return V(i).pipe(ss())}function LP(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>wP(s)).filter(s=>s!==null).map(s=>mo(()=>{let a=s.guards.map(l=>{let c=Oa(s.node)??r,d=as(l,c),u=SP(d)?d.canActivateChild(n,t):Yt(c,()=>d(n,t));return fr(u).pipe($n())});return V(a).pipe(ss())}));return V(o).pipe(ss())}function jP(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return V(!0);let s=o.map(a=>{let l=Oa(e)??i,c=as(a,l),d=TP(c)?c.canDeactivate(t,e,r,n):Yt(l,()=>c(t,e,r,n));return fr(d).pipe($n())});return V(s).pipe(ss())}function VP(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return V(!0);let o=i.map(s=>{let a=as(s,t),l=EP(a)?a.canLoad(e,r):Yt(t,()=>a(e,r));return fr(l)});return V(o).pipe(ss(),hD(n))}function hD(t){return tf(Ie(e=>{if(typeof e!="boolean")throw du(t,e)}),B(e=>e===!0))}function BP(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return V(!0);let o=i.map(s=>{let a=as(s,t),l=MP(a)?a.canMatch(e,r):Yt(t,()=>a(e,r));return fr(l)});return V(o).pipe(ss(),hD(n))}var Ta=class{constructor(e){this.segmentGroup=e||null}},Ma=class extends Error{constructor(e){super(),this.urlTree=e}};function Ko(t){return po(new Ta(t))}function HP(t){return po(new j(4e3,!1))}function $P(t){return po(dD(!1,an.GuardRejected))}var Og=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return V(n);if(i.numberOfChildren>1||!i.children[we])return HP(`${e.redirectTo}`);i=i.children[we]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:f,params:m,data:y,title:A}=i,k=Yt(o,()=>a({params:m,data:y,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:f,title:A}));if(k instanceof dr)throw new Ma(k);r=k}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new Ma(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new dr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,i)}),new Le(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new j(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Ng={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function UP(t,e,r,n,i){let o=Bg(t,e,r);return o.matched?(n=_P(e,n),BP(n,e,r,i).pipe(B(s=>s===!0?o:S({},Ng)))):V(o)}function Bg(t,e,r){if(e.path==="**")return zP(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?S({},Ng):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||jF)(r,t,e);if(!i)return S({},Ng);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?S(S({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function zP(t){return{matched:!0,parameters:t.length>0?Wx(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Hx(t,e,r,n){return r.length>0&&WP(t,r,n)?{segmentGroup:new Le(e,qP(n,new Le(r,t.children))),slicedSegments:[]}:r.length===0&&YP(t,r,n)?{segmentGroup:new Le(t.segments,GP(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new Le(t.segments,t.children),slicedSegments:r}}function GP(t,e,r,n){let i={};for(let o of r)if(mu(t,e,o)&&!n[An(o)]){let s=new Le([],{});i[An(o)]=s}return S(S({},n),i)}function qP(t,e){let r={};r[we]=e;for(let n of t)if(n.path===""&&An(n)!==we){let i=new Le([],{});r[An(n)]=i}return r}function WP(t,e,r){return r.some(n=>mu(t,e,n)&&An(n)!==we)}function YP(t,e,r){return r.some(n=>mu(t,e,n))}function mu(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function QP(t,e,r,n){return An(t)!==n&&(n===we||!mu(e,r,t))?!1:Bg(e,t,r).matched}function ZP(t,e,r){return e.length===0&&!t.children[r]}var Fg=class{};function KP(t,e,r,n,i,o,s="emptyOnly"){return new Pg(t,e,r,n,i,s,o).recognize()}var XP=31,Pg=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Og(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new j(4002,`'${e.segmentGroup}'`)}recognize(){let e=Hx(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(B(({children:r,rootSnapshot:n})=>{let i=new sn(n,r),o=new cu("",i),s=iP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new es([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),we,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,we,r).pipe(B(n=>({children:n,rootSnapshot:r})),mi(n=>{if(n instanceof Ma)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ta?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(B(s=>s instanceof sn?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return $e(o).pipe(gi(s=>{let a=n.children[s],l=vP(r,s);return this.processSegmentGroup(e,l,a,s,i)}),cf((s,a)=>(s.push(...a),s)),Vi(null),lf(),nt(s=>{if(s===null)return Ko(n);let a=pD(s);return JP(a),V(a)}))}processSegment(e,r,n,i,o,s,a){return $e(r).pipe(gi(l=>this.processSegmentAgainstRoute(l._injector??e,r,l,n,i,o,s,a).pipe(mi(c=>{if(c instanceof Ta)return V(null);throw c}))),$n(l=>!!l),mi(l=>{if(fD(l))return ZP(n,i,o)?V(new Fg):Ko(n);throw l}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,l){return QP(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,l):Ko(i):Ko(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=Bg(r,i,o);if(!l)return Ko(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>XP&&(this.allowRedirects=!1));let m=new es(o,c,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,$x(i),An(i),i.component??i._loadedComponent??null,i,Ux(i)),y=lu(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(y.params),m.data=Object.freeze(y.data);let A=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,u,m,e);return this.applyRedirects.lineralizeSegments(i,A).pipe(nt(k=>this.processSegment(e,n,r,k.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=UP(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(rt(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(rt(({routes:c})=>{let d=n._loadedInjector??e,{parameters:u,consumedSegments:f,remainingSegments:m}=l,y=new es(f,u,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,$x(n),An(n),n.component??n._loadedComponent??null,n,Ux(n)),A=lu(y,s,this.paramsInheritanceStrategy);y.params=Object.freeze(A.params),y.data=Object.freeze(A.data);let{segmentGroup:k,slicedSegments:O}=Hx(r,f,m,c);if(O.length===0&&k.hasChildren())return this.processChildren(d,c,k,y).pipe(B(je=>new sn(y,je)));if(c.length===0&&O.length===0)return V(new sn(y,[]));let ce=An(n)===o;return this.processSegment(d,c,k,O,ce?we:o,!0,y).pipe(B(je=>new sn(y,je instanceof sn?[je]:[])))}))):Ko(r)))}getChildConfig(e,r,n){return r.children?V({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?V({routes:r._loadedRoutes,injector:r._loadedInjector}):VP(e,r,n,this.urlSerializer).pipe(nt(i=>i?this.configLoader.loadChildren(e,r).pipe(Ie(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):$P(r))):V({routes:[],injector:e})}};function JP(t){t.sort((e,r)=>e.value.outlet===we?-1:r.value.outlet===we?1:e.value.outlet.localeCompare(r.value.outlet))}function eL(t){let e=t.value.routeConfig;return e&&e.path===""}function pD(t){let e=[],r=new Set;for(let n of t){if(!eL(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=pD(n.children);e.push(new sn(n.value,i))}return e.filter(n=>!r.has(n))}function $x(t){return t.data||{}}function Ux(t){return t.resolve||{}}function tL(t,e,r,n,i,o){return nt(s=>KP(t,e,r,n,s.extractedUrl,i,o).pipe(B(({state:a,tree:l})=>ue(S({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function nL(t,e){return nt(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return V(r);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of mD(l))s.add(c);let a=0;return $e(s).pipe(gi(l=>o.has(l)?iL(l,n,t,e):(l.data=lu(l,l.parent,t).resolve,V(void 0))),Ie(()=>a++),go(1),nt(l=>a===s.size?V(r):Et))})}function mD(t){let e=t.children.map(r=>mD(r)).flat();return[t,...e]}function iL(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!lD(i)&&(o[Aa]=i.title),rL(o,t,e,n).pipe(B(s=>(t._resolvedData=s,t.data=lu(t,t.parent,r).resolve,null)))}function rL(t,e,r,n){let i=hg(t);if(i.length===0)return V({});let o={};return $e(i).pipe(nt(s=>oL(t[s],e,r,n).pipe($n(),Ie(a=>{if(a instanceof Sa)throw du(new is,a);o[s]=a}))),go(1),Bi(o),mi(s=>fD(s)?Et:po(s)))}function oL(t,e,r,n){let i=Oa(e)??n,o=as(t,i),s=o.resolve?o.resolve(e,r):Yt(i,()=>o(e,r));return fr(s)}function ug(t){return rt(e=>{let r=t(e);return r?$e(r).pipe(B(()=>e)):V(e)})}var gD=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===we);return i}getResolvedTitleForRoute(n){return n.data[Aa]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(sL),providedIn:"root"});let t=e;return t})(),sL=(()=>{let e=class e extends gD{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(C(md))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fa=new E("",{providedIn:"root",factory:()=>({})}),fu=new E(""),Hg=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(ed)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return V(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=fr(n.loadComponent()).pipe(B(_D),Ie(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Hi(()=>{this.componentLoaders.delete(n)})),o=new jn(i,()=>new N).pipe(fo());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return V({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=aL(i,this.compiler,n,this.onLoadEndListener).pipe(Hi(()=>{this.childrenLoaders.delete(i)})),a=new jn(s,()=>new N).pipe(fo());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aL(t,e,r,n){return fr(t.loadChildren()).pipe(B(_D),nt(i=>i instanceof Rs||Array.isArray(i)?V(i):$e(e.compileModuleAsync(i))),B(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(fu,[],{optional:!0,self:!0}).flat()),{routes:s.map(Vg),injector:o}}))}function lL(t){return t&&typeof t=="object"&&"default"in t}function _D(t){return lL(t)?t.default:t}var $g=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(cL),providedIn:"root"});let t=e;return t})(),cL=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vD=new E(""),yD=new E("");function dL(t,e,r){let n=t.get(yD),i=t.get(J);return t.get(L).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),uL(t))),{onViewTransitionCreated:l}=n;return l&&Yt(t,()=>l({transition:a,from:e,to:r})),s})}function uL(t){return new Promise(e=>{Ct(e,{injector:t})})}var fL=new E(""),Ug=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new N,this.transitionAbortSubject=new N,this.configLoader=g(Hg),this.environmentInjector=g(ht),this.urlSerializer=g(Ra),this.rootContexts=g(ka),this.location=g(er),this.inputBindingEnabled=g(pu,{optional:!0})!==null,this.titleStrategy=g(gD),this.options=g(Fa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g($g),this.createViewTransition=g(vD,{optional:!0}),this.navigationErrorHandler=g(fL,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>V(void 0),this.rootComponentType=null;let n=o=>this.events.next(new wg(o)),i=o=>this.events.next(new Cg(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(ue(S(S({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new Ze({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ba,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(xe(s=>s.id!==0),B(s=>ue(S({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),rt(s=>{let a=!1,l=!1;return V(s).pipe(rt(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",an.SupersededByNewNavigation),Et;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?ue(S({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!d&&u!=="reload"){let f="";return this.events.next(new ur(c.id,this.urlSerializer.serialize(c.rawUrl),f,iu.IgnoredSameUrlNavigation)),c.resolve(!1),Et}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return V(c).pipe(rt(f=>{let m=this.transitions?.getValue();return this.events.next(new rs(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),m!==this.transitions?.getValue()?Et:Promise.resolve(f)}),tL(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Ie(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=ue(S({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let m=new ru(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(m)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:m,source:y,restoredState:A,extras:k}=c,O=new rs(f,this.urlSerializer.serialize(m),y,A);this.events.next(O);let ce=sD(this.rootComponentType).snapshot;return this.currentTransition=s=ue(S({},c),{targetSnapshot:ce,urlAfterRedirects:m,extras:ue(S({},k),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,V(s)}else{let f="";return this.events.next(new ur(c.id,this.urlSerializer.serialize(c.extractedUrl),f,iu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Et}}),Ie(c=>{let d=new _g(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),B(c=>(this.currentTransition=s=ue(S({},c),{guards:bP(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),RP(this.environmentInjector,c=>this.events.next(c)),Ie(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw du(this.urlSerializer,c.guardsResult);let d=new vg(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),xe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",an.GuardRejected),!1)),ug(c=>{if(c.guards.canActivateChecks.length)return V(c).pipe(Ie(d=>{let u=new yg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),rt(d=>{let u=!1;return V(d).pipe(nL(this.paramsInheritanceStrategy,this.environmentInjector),Ie({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",an.NoDataFromResolver)}}))}),Ie(d=>{let u=new bg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),ug(c=>{let d=u=>{let f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ie(m=>{u.component=m}),B(()=>{})));for(let m of u.children)f.push(...d(m));return f};return zt(d(c.targetSnapshot.root)).pipe(Vi(null),Je(1))}),ug(()=>this.afterPreactivation()),rt(()=>{let{currentSnapshot:c,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,c.root,d.root);return u?$e(u).pipe(B(()=>s)):V(s)}),B(c=>{let d=fP(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=ue(S({},c),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),Ie(()=>{this.events.next(new Ea)}),yP(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Je(1),Ie({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Rn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),K(this.transitionAbortSubject.pipe(Ie(c=>{throw c}))),Hi(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",an.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),mi(c=>{if(l=!0,uD(c))this.events.next(new Ni(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),mP(c)?this.events.next(new os(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let d=new Da(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let u=Yt(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(u instanceof Sa){let{message:f,cancellationCode:m}=du(this.urlSerializer,u);this.events.next(new Ni(s.id,this.urlSerializer.serialize(s.extractedUrl),f,m)),this.events.next(new os(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(d);let f=n.errorHandler(c);s.resolve(!!f)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Et}))}))}cancelNavigationTransition(n,i,o){let s=new Ni(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hL(t){return t!==ba}var pL=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(mL),providedIn:"root"});let t=e;return t})(),Lg=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},mL=(()=>{let e=class e extends Lg{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(gL),providedIn:"root"});let t=e;return t})(),gL=(()=>{let e=class e extends bD{constructor(){super(...arguments),this.location=g(er),this.urlSerializer=g(Ra),this.options=g(Fa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g($g),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new dr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sD(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof rs)this.stateMemento=this.createStateMemento();else if(n instanceof ur)this.rawUrlTree=i.initialUrl;else if(n instanceof ru){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Ea?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Ni&&(n.code===an.GuardRejected||n.code===an.NoDataFromResolver)?this.restoreHistory(i):n instanceof Da?this.restoreHistory(i,!0):n instanceof Rn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=S(S({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=S(S({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),va=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(va||{});function wD(t,e){t.events.pipe(xe(r=>r instanceof Rn||r instanceof Ni||r instanceof Da||r instanceof ur),B(r=>r instanceof Rn||r instanceof ur?va.COMPLETE:(r instanceof Ni?r.code===an.Redirect||r.code===an.SupersededByNewNavigation:!1)?va.REDIRECTING:va.FAILED),xe(r=>r!==va.REDIRECTING),Je(1)).subscribe(()=>{e()})}function _L(t){throw t}var vL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},kn=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Qc),this.stateManager=g(bD),this.options=g(Fa,{optional:!0})||{},this.pendingTasks=g(Jn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Ug),this.urlSerializer=g(Ra),this.location=g(er),this.urlHandlingStrategy=g($g),this._events=new N,this.errorHandler=this.options.errorHandler||_L,this.navigated=!1,this.routeReuseStrategy=g(pL),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(fu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(pu,{optional:!0}),this.eventsSubscription=new Ce,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Ni&&i.code!==an.Redirect&&i.code!==an.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Rn)this.navigated=!0;else if(i instanceof os){let a=i.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c=S({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||hL(o.source)},a);this.scheduleNavigation(l,ba,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}wL(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ba,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=S({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,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(Vg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,d=c?this.currentUrlTree.fragment:a,u=null;switch(l){case"merge":u=S(S({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let f;try{let m=o?o.snapshot:this.routerState.snapshot.root;f=nD(m)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return iD(f,n,u,d??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Ca(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ba,null,i)}navigate(n,i={skipLocationChange:!1}){return bL(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=S({},vL):i===!1?o=S({},yL):o=i,Ca(n))return Px(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Px(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((f,m)=>{l=f,c=m});let u=this.pendingTasks.add();return wD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bL(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,l){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new N,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(d=>{d instanceof Rn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:Qb(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(p(kn),p(Fi),Di("tabindex"),p(Kn),p($),p(Ri))},e.\u0275dir=F({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&le("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Pe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",G],skipLocationChange:[2,"skipLocationChange","skipLocationChange",G],replaceUrl:[2,"replaceUrl","replaceUrl",G],routerLink:"routerLink"},standalone:!0,features:[ye,Ve]});let t=e;return t})(),CD=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new q,this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof Rn&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(Vn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=$e(n).pipe(Vn()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=CL(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(p(kn),p($),p(Kn),p(Ae),p(li,8))},e.\u0275dir=F({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&Me(s,li,5),i&2){let a;U(a=z())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ve]});let t=e;return t})();function CL(t){return!!t.paths}var hu=class{};var xL=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(xe(n=>n instanceof Rn),gi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=$s(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return $e(o).pipe(Vn())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=V(null);let s=o.pipe(nt(a=>a===null?V(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return $e([s,a]).pipe(Vn())}else return s})}};e.\u0275fac=function(i){return new(i||e)(C(kn),C(ed),C(ht),C(hu),C(Hg))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xD=new E(""),DL=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(ht),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof rs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Rn?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ur&&n.code===iu.IgnoredSameUrlNavigation&&(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 ou&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>ms(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Ct(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new ou(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){l0()},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function EL(t){return t.routerState.root}function Pa(t,e){return{\u0275kind:t,\u0275providers:e}}function IL(){let t=g(Te);return e=>{let r=t.get(Sn);if(e!==r.components[0])return;let n=t.get(kn),i=t.get(DD);t.get(zg)===1&&n.initialNavigation(),t.get(ED,null,Ee.Optional)?.setUpPreloading(),t.get(xD,null,Ee.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var DD=new E("",{factory:()=>new N}),zg=new E("",{providedIn:"root",factory:()=>1});function SL(){return Pa(2,[{provide:zg,useValue:0},{provide:Xc,multi:!0,deps:[Te],useFactory:e=>{let r=e.get(jw,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(kn),o=e.get(DD);wD(i,()=>{n(!0)}),e.get(Ug).afterPreactivation=()=>(n(!0),o.closed?V(void 0):o),i.initialNavigation()}))}}])}function TL(){return Pa(3,[{provide:Xc,multi:!0,useFactory:()=>{let e=g(kn);return()=>{e.setUpLocationChangeListener()}}},{provide:zg,useValue:2}])}var ED=new E("");function ML(t){return Pa(0,[{provide:ED,useExisting:xL},{provide:hu,useExisting:t}])}function AL(){return Pa(8,[Bx,{provide:pu,useExisting:Bx}])}function RL(t){let e=[{provide:vD,useValue:dL},{provide:yD,useValue:S({skipNextTransition:!!t?.skipInitialTransition},t)}];return Pa(9,e)}var zx=new E("ROUTER_FORROOT_GUARD"),kL=[er,{provide:Ra,useClass:is},kn,ka,{provide:Fi,useFactory:EL,deps:[kn]},Hg,[]],ID=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[kL,[],{provide:fu,multi:!0,useValue:n},{provide:zx,useFactory:PL,deps:[[kn,new $r,new ko]]},{provide:Fa,useValue:i||{}},i?.useHash?NL():FL(),OL(),i?.preloadingStrategy?ML(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?LL(i):[],i?.bindToComponentInputs?AL().\u0275providers:[],i?.enableViewTransitions?RL().\u0275providers:[],jL()]}}static forChild(n){return{ngModule:e,providers:[{provide:fu,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(C(zx,8))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();function OL(){return{provide:xD,useFactory:()=>{let t=g(Yw),e=g(L),r=g(Fa),n=g(Ug),i=g(Ra);return r.scrollOffset&&t.setOffset(r.scrollOffset),new DL(i,n,t,e,r)}}}function NL(){return{provide:Ri,useClass:Bw}}function FL(){return{provide:Ri,useClass:rm}}function PL(t){return"guarded"}function LL(t){return[t.initialNavigation==="disabled"?TL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?SL().\u0275providers:[]]}var Gx=new E("");function jL(){return[{provide:Gx,useFactory:IL},{provide:Jc,multi:!0,useExisting:Gx}]}var ci=(()=>{let e=class e{constructor(){this.uiIcon=He.required(),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-ui-icon"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-ui-icon",o._setClass)},inputs:{uiIcon:[1,"uiIcon"]},standalone:!0,features:[ge],decls:1,vars:4,consts:[[1,"size-full"]],template:function(i,o){i&1&&M(0,"div",0),i&2&&fw("-webkit-mask:url('assets/ui/images/icons/",o.uiIcon(),".png') no-repeat center/contain; mask:url('assets/ui/images/icons/",o.uiIcon(),".png') no-repeat center/contain;")},styles:[`.app-ui-icon{display:block;height:2.5rem;width:2.5rem;color:inherit}.app-ui-icon div{display:inline-block;background:currentColor no-repeat;mask-size:contain;-webkit-mask-size:contain}[disabled] .app-ui-icon{opacity:.5}[disabled] .app-ui-icon:hover,[disabled] .app-ui-icon:focus-visible{color:inherit!important} -`],encapsulation:2});let t=e;return t})();function VL(t,e){if(t&1&&(M(0,"img",0),lt(1,"titlecase")),t&2){let r=_();Wc("src","assets/ui/images/icons/quality-stars/T_Icon_Star",mt(1,2,r.quality),"B.png",Si)}}var hr=(()=>{let e=class e{constructor(){this.QUALITY=At}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-rarity-icon"]],inputs:{quality:"quality"},decls:1,vars:1,consts:[["onerror","this.onerror=null;this.src='/assets/ui/images/spacer.gif'","alt","",3,"src"]],template:function(i,o){i&1&&T(0,VL,2,4,"img",0),i&2&&b(o.quality&&o.quality!==o.QUALITY.BASE?0:-1)},dependencies:[zw],styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();function BL(t,e){if(t&1&&M(0,"app-item-icon",1),t&2){let r=_();D("itemName",r.subIconName)}}function HL(t,e){if(t&1&&M(0,"app-rarity-icon",2),t&2){let r=_();D("quality",r.quality)}}function $L(t,e){if(t&1&&(v(0,"div",3),x(1),w()),t&2){let r=_();h(),Y("",r.amount," ")}}var ct=(()=>{let e=class e{constructor(){this.amount=0,this._settings=g(_n),this._setClass=!0,this.version=this._settings.getSettings().useBeta?"beta":"live"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-item-icon"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-item-icon",o._setClass)},inputs:{itemName:"itemName",subIconName:"subIconName",quality:"quality",amount:[2,"amount","amount",Ot]},features:[ye],decls:4,vars:6,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/placeholder.png'",3,"src"],[1,"!absolute","bottom-[5px]","left-[5px]","w-[50%]",3,"itemName"],[1,"absolute","top-[5px]","left-[5px]","w-[35%]",3,"quality"],[1,"bg-[#F1D9B5]","absolute","bottom-0","right-0","py-1","px-2","text-black","font-semibold","text-lg","rounded-lg"]],template:function(i,o){i&1&&(M(0,"img",0),T(1,BL,1,1,"app-item-icon",1)(2,HL,1,1,"app-rarity-icon",2)(3,$L,2,1,"div",3)),i&2&&(Bp("src","assets/",o.version,"/items/icons/",o.itemName,".webp",Si),h(),b(o.subIconName?1:-1),h(),b(o.quality?2:-1),h(),b(o.amount>1?3:-1))},dependencies:[e,hr],styles:[`.app-item-icon{position:relative;display:block}.app-item-icon>img{max-width:100%;height:auto;aspect-ratio:1/1} -`],encapsulation:2});let t=e;return t})();var UL=[[["","cardActions",""]],[["","cardIcon",""]],"*"],zL=["[cardActions]","[cardIcon]","*"],SD=(()=>{let e=class e{constructor(){this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-card"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-card",o._setClass)},ngContentSelectors:zL,decls:3,vars:0,template:function(i,o){i&1&&(be(UL),W(0),W(1,1),W(2,2))},styles:[`.app-card{background-color:#f7f2e8;border-radius:var(--cg-card-radius);padding:var(--cg-card-padding);display:flex;flex-direction:column}.app-card [cardIcon]{height:var(--cg-card-icon-height);margin-left:auto;margin-right:auto;display:flex;justify-content:center}.app-card [cardIcon]>img{height:var(--cg-card-icon-height);width:auto}@media (min-width: 1280px){.app-card{--cg-card-padding: 36px;--cg-card-icon-height: 180px}} -`],encapsulation:2});let t=e;return t})();var yu=class{};function bu(t){return t&&typeof t.connect=="function"&&!(t instanceof jn)}var ls=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(ls||{}),La=new E("_ViewRepeater"),cs=class{applyChanges(e,r,n,i,o){e.forEachOperation((s,a,l)=>{let c,d;if(s.previousIndex==null){let u=n(s,a,l);c=r.createEmbeddedView(u.templateRef,u.context,u.index),d=ls.INSERTED}else l==null?(r.remove(a),d=ls.REMOVED):(c=r.get(a),r.move(c,l),d=ls.MOVED);o&&o({context:c?.context,operation:d,record:s})})}detach(){}};var ds=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,n=!0,i){this._multiple=e,this._emitChanges=n,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new N,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,n=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let n of r)if(this.compareWith(e,n))return n;return e}else return e}};var qL=20,Pi=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this._platform=i,this._scrolled=new N,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){let i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=qL){return this._platform.isBrowser?new Z(i=>{this._globalSubscription||this._addGlobalListener();let o=n>0?this._scrolled.pipe(vl(n)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(n,i){let o=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(xe(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(n){let i=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,n)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,i){let o=Mn(i),s=n.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let n=this._getWindow();return dn(n.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(C(L),C(Oe),C(J,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Li=(()=>{let e=class e{constructor(n,i,o,s){this.elementRef=n,this.scrollDispatcher=i,this.ngZone=o,this.dir=s,this._destroyed=new N,this._elementScrolled=new Z(a=>this.ngZone.runOutsideAngular(()=>dn(this.elementRef.nativeElement,"scroll").pipe(K(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){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=o?n.end:n.start),n.right==null&&(n.right=o?n.start:n.end),n.bottom!=null&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),o&&Go()!=Tn.NORMAL?(n.left!=null&&(n.right=i.scrollWidth-i.clientWidth-n.left),Go()==Tn.INVERTED?n.left=n.right:Go()==Tn.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let i=this.elementRef.nativeElement;yd()?i.scrollTo(n):(n.top!=null&&(i.scrollTop=n.top),n.left!=null&&(i.scrollLeft=n.left))}measureScrollOffset(n){let i="left",o="right",s=this.elementRef.nativeElement;if(n=="top")return s.scrollTop;if(n=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return n=="start"?n=a?o:i:n=="end"&&(n=a?i:o),a&&Go()==Tn.INVERTED?n==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&Go()==Tn.NEGATED?n==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:n==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(p($),p(Pi),p(L),p(gt,8))},e.\u0275dir=F({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let t=e;return t})(),WL=20,ln=(()=>{let e=class e{constructor(n,i,o){this._platform=n,this._change=new N,this._changeListener=s=>{this._change.next(s)},this._document=o,i.runOutsideAngular(()=>{if(n.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,i=this._getWindow(),o=n.documentElement,s=o.getBoundingClientRect(),a=-s.top||n.body.scrollTop||i.scrollY||o.scrollTop||0,l=-s.left||n.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:a,left:l}}change(n=WL){return n>0?this._change.pipe(vl(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(L),C(J,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var On=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})(),ja=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[or,On,or,On]});let t=e;return t})();var Ba=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Ha=class extends Ba{constructor(e,r,n,i,o){super(),this.component=e,this.viewContainerRef=r,this.injector=n,this.componentFactoryResolver=i,this.projectableNodes=o}},pr=class extends Ba{constructor(e,r,n,i){super(),this.templateRef=e,this.viewContainerRef=r,this.context=n,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Gg=class extends Ba{constructor(e){super(),this.element=e instanceof $?e.nativeElement:e}},wu=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Ha)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof pr)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Gg)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Cu=class extends wu{constructor(e,r,n,i,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=n.create(e.injector||this._defaultInjector||Te.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let r=e.viewContainerRef,n=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(i=>this.outletElement.appendChild(i)),n.detectChanges(),this.setDisposeFn(()=>{let i=r.indexOf(n);i!==-1&&r.remove(i)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var TD=(()=>{let e=class e extends pr{constructor(n,i){super(n,i)}};e.\u0275fac=function(i){return new(i||e)(p(Ue),p(We))},e.\u0275dir=F({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[ie]});let t=e;return t})();var xu=(()=>{let e=class e extends wu{constructor(n,i,o){super(),this._componentFactoryResolver=n,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new q,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let l=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},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);let i=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,s=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=i.createComponent(s,i.length,n.injector||i.injector,n.projectableNodes||void 0);return i!==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);let i=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(i){return new(i||e)(p(Jt),p(We),p(J))},e.\u0275dir=F({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ie]});let t=e;return t})();var MD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();var AD=yd(),qg=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=st(-this._previousScrollPosition.left),e.style.top=st(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,n=e.style,i=r.style,o=n.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),AD&&(n.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),AD&&(n.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,n=this._viewportRuler.getViewportSize();return r.scrollHeight>n.height||r.scrollWidth>n.width}};var Wg=class{constructor(e,r,n,i){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(xe(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Du=class{enable(){}disable(){}attach(){}};function Yg(t,e){return e.some(r=>{let n=t.bottomr.bottom,o=t.rightr.right;return n||i||o||s})}function RD(t,e){return e.some(r=>{let n=t.topr.bottom,o=t.leftr.right;return n||i||o||s})}var Qg=class{constructor(e,r,n,i){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:i}=this._viewportRuler.getViewportSize();Yg(r,[{width:n,height:i,bottom:i,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}},YL=(()=>{let e=class e{constructor(n,i,o,s){this._scrollDispatcher=n,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new Du,this.close=a=>new Wg(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new qg(this._viewportRuler,this._document),this.reposition=a=>new Qg(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(i){return new(i||e)(C(Pi),C(ln),C(L),C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$a=class{constructor(e){if(this.scrollStrategy=new Du,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let n of r)e[n]!==void 0&&(this[n]=e[n])}}};var Zg=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var PD=(()=>{let e=class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(i){return new(i||e)(C(J))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),QL=(()=>{let e=class e extends PD{constructor(n,i){super(n),this._ngZone=i,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let l=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.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)}};e.\u0275fac=function(i){return new(i||e)(C(J),C(L,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ZL=(()=>{let e=class e extends PD{constructor(n,i,o){super(n),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=rn(s)},this._clickListener=s=>{let a=rn(s),l=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){let u=c[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(l))break;let f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(s)):f.next(s)}}}add(n){if(super.add(n),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let 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)}};e.\u0275fac=function(i){return new(i||e)(C(J),C(Oe),C(L,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),LD=(()=>{let e=class e{constructor(n,i){this._platform=i,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||ra()){let o=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;sthis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new N,this._outsidePointerEvents=new N,this._renders=new N,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=$o(()=>Hs(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Ct(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=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,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=S(S({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ue(S({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=st(this._config.width),e.height=st(this._config.height),e.minWidth=st(this._config.minWidth),e.minHeight=st(this._config.minHeight),e.maxWidth=st(this._config.maxWidth),e.maxHeight=st(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,n){let i=qo(r||[]).filter(o=>!!o);i.length&&(n?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(K(at(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},kD="cdk-overlay-connected-position-bounding-box",KL=/([A-Za-z%]+)$/,Xg=class{get positions(){return this._preferredPositions}constructor(e,r,n,i,o){this._viewportRuler=r,this._document=n,this._platform=i,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 N,this._resizeSubscription=Ce.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(kD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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){this.reapplyLastPosition();return}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();let e=this._originRect,r=this._overlayRect,n=this._viewportRect,i=this._containerRect,o=[],s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,i,a),c=this._getOverlayPoint(l,r,a),d=this._getOverlayFit(c,r,n,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,n)){o.push({position:a,origin:l,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&no(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(kD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,n){let i;if(n.originX=="center")i=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;i=n.originX=="start"?s:a}r.left<0&&(i-=r.left);let o;return n.originY=="center"?o=e.top+e.height/2:o=n.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:i,y:o}}_getOverlayPoint(e,r,n){let i;n.overlayX=="center"?i=-r.width/2:n.overlayX==="start"?i=this._isRtl()?-r.width:0:i=this._isRtl()?0:-r.width;let o;return n.overlayY=="center"?o=-r.height/2:o=n.overlayY=="top"?0:-r.height,{x:e.x+i,y:e.y+o}}_getOverlayFit(e,r,n,i){let o=ND(r),{x:s,y:a}=e,l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(s+=l),c&&(a+=c);let d=0-s,u=s+o.width-n.width,f=0-a,m=a+o.height-n.height,y=this._subtractOverflows(o.width,d,u),A=this._subtractOverflows(o.height,f,m),k=y*A;return{visibleArea:k,isCompletelyWithinViewport:o.width*o.height===k,fitsInViewportVertically:A===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(e,r,n){if(this._hasFlexibleDimensions){let i=n.bottom-r.y,o=n.right-r.x,s=OD(this._overlayRef.getConfig().minHeight),a=OD(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||s!=null&&s<=i,c=e.fitsInViewportHorizontally||a!=null&&a<=o;return l&&c}return!1}_pushOverlayOnScreen(e,r,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let i=ND(r),o=this._viewportRect,s=Math.max(e.x+i.width-o.width,0),a=Math.max(e.y+i.height-o.height,0),l=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0),d=0,u=0;return i.width<=o.width?d=c||-s:d=e.xy&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-y/2)}let l=r.overlayX==="start"&&!i||r.overlayX==="end"&&i,c=r.overlayX==="end"&&!i||r.overlayX==="start"&&i,d,u,f;if(c)f=n.width-e.x+this._viewportMargin*2,d=e.x-this._viewportMargin;else if(l)u=e.x,d=n.right-e.x;else{let m=Math.min(n.right-e.x+n.left,e.x),y=this._lastBoundingBoxSize.width;d=m*2,u=e.x-m,d>y&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-y/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(e,r){let n=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=st(n.height),i.top=st(n.top),i.bottom=st(n.bottom),i.width=st(n.width),i.left=st(n.left),i.right=st(n.right),r.overlayX==="center"?i.alignItems="center":i.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?i.justifyContent="center":i.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(i.maxHeight=st(o)),s&&(i.maxWidth=st(s))}this._lastBoundingBoxSize=n,no(this._boundingBox.style,i)}_resetBoundingBoxStyles(){no(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){no(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let n={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){let d=this._viewportRuler.getViewportScrollPosition();no(n,this._getExactOverlayY(r,e,d)),no(n,this._getExactOverlayX(r,e,d))}else n.position="static";let a="",l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),s.maxHeight&&(i?n.maxHeight=st(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=st(s.maxWidth):o&&(n.maxWidth="")),no(this._pane.style,n)}_getExactOverlayY(e,r,n){let i={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;i.bottom=`${s-(o.y+this._overlayRect.height)}px`}else i.top=st(o.y);return i}_getExactOverlayX(e,r,n){let i={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(o.x+this._overlayRect.width)}px`}else i.left=st(o.x);return i}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),n=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:RD(e,n),isOriginOutsideView:Yg(e,n),isOverlayClipped:RD(r,n),isOverlayOutsideView:Yg(r,n)}}_subtractOverflows(e,...r){return r.reduce((n,i)=>n-Math.max(i,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&qo(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof $)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+r,height:n,width:r}}};function no(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function OD(t){if(typeof t!="number"&&t!=null){let[e,r]=t.split(KL);return!r||r==="px"?parseFloat(e):null}return t||null}function ND(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function XL(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var FD="cdk-global-overlay-wrapper",Jg=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(FD),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=n,l=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",m="",y="",A="";l?A="flex-start":d==="center"?(A="center",f?y=u:m=u):f?d==="left"||d==="end"?(A="flex-end",m=u):(d==="right"||d==="start")&&(A="flex-start",y=u):d==="left"||d==="start"?(A="flex-start",m=u):(d==="right"||d==="end")&&(A="flex-end",y=u),e.position=this._cssPosition,e.marginLeft=l?"0":m,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":y,r.justifyContent=A,r.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,n=r.style;r.classList.remove(FD),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},JL=(()=>{let e=class e{constructor(n,i,o,s){this._viewportRuler=n,this._document=i,this._platform=o,this._overlayContainer=s}global(){return new Jg}flexibleConnectedTo(n){return new Xg(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(i){return new(i||e)(C(ln),C(J),C(Oe),C(LD))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),e2=0,$t=(()=>{let e=class e{constructor(n,i,o,s,a,l,c,d,u,f,m,y){this.scrollStrategies=n,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=d,this._directionality=u,this._location=f,this._outsideClickDispatcher=m,this._animationsModuleType=y}create(n){let i=this._createHostElement(),o=this._createPaneElement(i),s=this._createPortalOutlet(o),a=new $a(n);return a.direction=a.direction||this._directionality.value,new Kg(s,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(ht))}position(){return this._positionBuilder}_createPaneElement(n){let i=this._document.createElement("div");return i.id=`cdk-overlay-${e2++}`,i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Sn)),new Cu(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(i){return new(i||e)(C(YL),C(LD),C(Jt),C(JL),C(QL),C(Te),C(L),C(J),C(gt),C(er),C(ZL),C(kt,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),t2=[{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"}],jD=new E("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition()}}),Ua=(()=>{let e=class e{constructor(n){this.elementRef=n}};e.\u0275fac=function(i){return new(i||e)(p($))},e.\u0275dir=F({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),e_=(()=>{let e=class e{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 disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(n){this._disposeOnNavigation=n}constructor(n,i,o,s,a){this._overlay=n,this._dir=a,this._backdropSubscription=Ce.EMPTY,this._attachSubscription=Ce.EMPTY,this._detachSubscription=Ce.EMPTY,this._positionSubscription=Ce.EMPTY,this._disposeOnNavigation=!1,this._ngZone=g(L),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new q,this.positionChange=new q,this.attach=new q,this.detach=new q,this.overlayKeydown=new q,this.overlayOutsideClick=new q,this._templatePortal=new pr(i,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=t2);let 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(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ht(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),s=rn(i);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let n=this._position=this.positionStrategy||this._createPositionStrategy(),i=new $a({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(n){let i=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._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let n=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(n),n}_getOrigin(){return this.origin instanceof Ua?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ua?this.origin.elementRef.nativeElement:this.origin instanceof $?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(uf(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(p($t),p(Ue),p(We),p(jD),p(gt,8))},e.\u0275dir=F({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",G],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",G],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",G],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",G],push:[2,"cdkConnectedOverlayPush","push",G],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",G]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ye,Ve]});let t=e;return t})();function n2(t){return()=>t.scrollStrategies.reposition()}var i2={provide:jD,deps:[$t],useFactory:n2},us=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[$t,i2],imports:[or,MD,ja,ja]});let t=e;return t})();var ui=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ui||{}),xZ="*";function _t(t,e){return{type:ui.Trigger,name:t,definitions:e,options:{}}}function Xe(t,e=null){return{type:ui.Animate,styles:e,timings:t}}function DZ(t,e=null){return{type:ui.Sequence,steps:t,options:e}}function _e(t){return{type:ui.Style,styles:t,offset:null}}function Qe(t,e,r){return{type:ui.State,name:t,styles:e,options:r}}function Ga(t){return{type:ui.Keyframes,steps:t}}function ze(t,e,r=null){return{type:ui.Transition,expr:t,animation:e,options:r}}function Eu(t=null){return{type:ui.AnimateChild,options:t}}function Iu(t,e,r=null){return{type:ui.Query,selector:t,animation:e,options:r}}var VD=class{constructor(e=0,r=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=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},BD=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},EZ="!";var o2=["tooltip"],UD=20;var zD=new E("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition({scrollThrottle:UD})}});function s2(t){return()=>t.scrollStrategies.reposition({scrollThrottle:UD})}var a2={provide:zD,deps:[$t],useFactory:s2};function l2(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var c2=new E("mat-tooltip-default-options",{providedIn:"root",factory:l2});var HD="tooltip-panel",$D=ri({passive:!0}),d2=8,u2=8,f2=24,h2=200,Su=(()=>{let e=class e{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=on(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=on(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=si(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=si(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=n!=null?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,i,o,s,a,l,c,d,u,f,m,y){this._overlay=n,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=f,this._defaultOptions=m,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=p2,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new N,this._injector=g(Te),this._scrollStrategy=u,this._document=y,m&&(this._showDelay=m.showDelay,this._hideDelay=m.hideDelay,m.position&&(this.position=m.position),m.positionAtOrigin&&(this.positionAtOrigin=m.positionAtOrigin),m.touchGestures&&(this.touchGestures=m.touchGestures)),f.change.pipe(K(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=d2}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(K(this._destroyed)).subscribe(n=>{n?n==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{n.removeEventListener(i,o,$D)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Ha(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(K(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(n)}hide(n=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(n):(i._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){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&s._origin instanceof $)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?n||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(K(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}-${HD}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(K(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(K(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(K(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Ht(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){let i=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(S(S({},o.main),s.main)),this._addOffset(S(S({},o.fallback),s.fallback))])}_addOffset(n){let i=u2,o=!this._dir||this._dir.value=="ltr";return n.originY==="top"?n.offsetY=-i:n.originY==="bottom"?n.offsetY=i:n.originX==="start"?n.offsetX=o?-i:i:n.originX==="end"&&(n.offsetX=o?i:-i),n}_getOrigin(){let n=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"||i=="below"?o={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&n||i=="right"&&!n?o={originX:"start",originY:"center"}:(i=="after"||i=="right"&&n||i=="left"&&!n)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let n=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"?o={overlayX:"center",overlayY:"bottom"}:i=="below"?o={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&n||i=="right"&&!n?o={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&n||i=="left"&&!n)&&(o={overlayX:"start",overlayY:"center"});let{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(),Ct(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):n==="end"?n="start":n==="start"&&(n="end"),{x:n,y:i}}_updateCurrentPositionClass(n){let{overlayY:i,originX:o,originY:s}=n,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=i==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let l=this._overlayRef;if(l){let c=`${this._cssClassPrefix}-${HD}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{this._setupPointerExitEventsIfNeeded();let i;n.x!==void 0&&n.y!==void 0&&(i=n),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{let i=n.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",i=>{let o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,$D)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let n=this.touchGestures;if(n!=="off"){let i=this._elementRef.nativeElement,o=i.style;(n==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(n==="on"||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(i){return new(i||e)(p($t),p($),p(Pi),p(We),p(L),p(Oe),p(Rd),p(Zr),p(zD),p(gt),p(c2,8),p(J))},e.\u0275dir=F({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),p2=(()=>{let e=class e{constructor(n,i,o){this._changeDetectorRef=n,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new N,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(n){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){this._showTimeoutId!=null&&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(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>f2&&n.width>=h2}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){let i=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(n?s:o),i.classList.add(n?o:s),this._isVisible!==n&&(this._isVisible=n,this._changeDetectorRef.markForCheck()),n&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}};e.\u0275fac=function(i){return new(i||e)(p(Ae),p($),p(kt,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(i&1&&Se(o2,7),i&2){let s;U(s=z())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){i&1&&le("mouseleave",function(a){return o._handleMouseLeave(a)}),i&2&&Kt("zoom",o.isVisible()?1:null)},standalone:!0,features:[ge],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){if(i&1){let s=Ke();v(0,"div",1,0),le("animationend",function(l){return he(s),pe(o._handleAnimationEnd(l))}),v(2,"div",2),x(3),w()()}i&2&&(H("mdc-tooltip--multiline",o._isMultiline),D("ngClass",o.tooltipClass),h(3),ke(o.message))},dependencies:[sd],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let t=e;return t})();var GD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[a2],imports:[HC,gn,us,Ye,Ye,On]});let t=e;return t})();var Nn,t_=(()=>{var e,r,qD,WD;let o=class o{constructor(){Pn(this,r);Pn(this,e);this.userData=Xn({version:Nn._CURRENT_USER_DATA_VERSION,currentIndex:-1,data:[]}),_r(this,e,g(_n).getSettings().useBeta?"_beta":"_live")}save(){localStorage.setItem(Nn._USER_DATA_STORE_KEY+Ft(this,e),JSON.stringify(this.userData()))}read(){let a=localStorage.getItem(Nn._USER_DATA_STORE_KEY+Ft(this,e));if(a){let l=JSON.parse(a),c=Yu(this,r,qD).call(this,l);this.userData.set(c),l.version!==c.version&&this.save()}else this.userData.set({version:Nn._CURRENT_USER_DATA_VERSION,currentIndex:0,data:[this.createEmptyUserData()]}),this.save()}createEmptyUserData(){return{name:Yu(this,r,WD).call(this),myGuideFilter:{year:1,day:1,season:"Spring",weather:"Sunny",hideCompleted:!0},todos:[],checklists:{}}}getCurrentData(){return this.userData().data[this.userData().currentIndex]}};e=new WeakMap,r=new WeakSet,qD=function(a){let l=a.data??[],c=a.version;for(;c!==Nn._CURRENT_USER_DATA_VERSION;)c?c===1&&(l=l.map((d,u)=>(d.myGuideFilter={year:1,day:1,season:"Spring",weather:"Sunny",hideCompleted:!0},d.name=Nn._SAVE_GAME_NAME_PREFIX+(u+1),d.checklists={},d)),c=2):(l=[this.createEmptyUserData()],c=Nn._CURRENT_USER_DATA_VERSION);return{version:Nn._CURRENT_USER_DATA_VERSION,currentIndex:a.currentIndex??0,data:l}},WD=function(){let a=new Set(this.userData().data.map(c=>c.name)),l=this.userData().data.length+1;for(;a.has(Nn._SAVE_GAME_NAME_PREFIX+l);)l++;return Nn._SAVE_GAME_NAME_PREFIX+l},o._CURRENT_USER_DATA_VERSION=2,o._USER_DATA_STORE_KEY="user-data",o._SAVE_GAME_NAME_PREFIX="Save game ",o.\u0275fac=function(l){return new(l||o)},o.\u0275prov=I({token:o,factory:o.\u0275fac,providedIn:"root"});let t=o;return t})();Nn=t_;var YD=(()=>{let e=class e{constructor(){this.clearTimeout=3e3,this.userDataService=g(t_),this._settings=g(_n),this._completedCategory$=new N,this._markedAsCompleted=new ds(!0,[]),this.versionSuffix=this._settings.getSettings().useBeta?"_beta":"_live",this.read(),this._markedAsCompleted.compareWith=(n,i)=>n.category===i.category&&nn(n.item)===nn(i.item)}get currentToDoAmount(){return this.getCurrentToDo().length}get currentIsEmpty(){return this.currentToDoAmount===0}add(n){this.getCurrentToDo().push(n),this.save()}getCurrentToDo(){return this.userDataService.getCurrentData().todos}save(){this.userDataService.save()}read(){let n=localStorage.getItem(e._LEGACY_TO_DO_STORE_KEY+this.versionSuffix);n&&this._migrate(JSON.parse(n))}updateStatus(n,i,o,s=!1){let a={category:n,item:i};o?this._markedAsCompleted.select(a):this._markedAsCompleted.deselect(a),s?this._completeEntries():this._resetClearTimer()}resetLiveToDo(){localStorage.setItem(e._LEGACY_TO_DO_STORE_KEY+"_live",JSON.stringify([this._createEmptyToDo()])),this.read()}resetBetaToDo(){localStorage.setItem(e._LEGACY_TO_DO_STORE_KEY+"_beta",JSON.stringify([this._createEmptyToDo()])),this.read()}alreadyInList(n,i){let o=this.getCategoryList(n);if(o.length===0)return!1;let s=nn(i);return!!o.find(a=>nn(a.itemEntry)===s)}getCategoryList(n){return this.getCurrentToDo().filter(o=>o.context===n)}categoryCompleted$(){return this._completedCategory$.asObservable()}completeCategory(n){this._completedCategory$.next(n)}_resetClearTimer(){clearTimeout(this.clearTimer),this.clearTimer=setTimeout(()=>{this._completeEntries()},this.clearTimeout)}_createEmptyToDo(){return{version:e._CURRENT_TO_DO_VERSION,offerings:[],cookingRecipes:[],journal:{critter:[],fish:[],gems:[],artifacts:[],fossils:[],insects:[]},uncategorized:[]}}_completeEntries(){let n=this._markedAsCompleted.selected;this._markedAsCompleted.clear();let i=-1;n.forEach(o=>{let s=nn(o.item);i=this.getCurrentToDo().findIndex(a=>nn(a.itemEntry)===s&&a.context===o.category),i>=0&&this.getCurrentToDo().splice(i,1)}),this.save()}_migrate(n){return n.length?("version"in n[0]&&(n.forEach((i,o)=>{let s=[];i.cookingRecipes.forEach(l=>s.push({context:"cooking_recipes",itemEntry:l.item})),i.offerings.forEach(l=>s.push({context:"offerings",itemEntry:l.item,amount:l.amount,quality:l.quality})),i.uncategorized.forEach(l=>s.push({itemEntry:l})),i.journal.artifacts.forEach(l=>s.push({context:"journal_artifacts",itemEntry:l})),i.journal.gems.forEach(l=>s.push({context:"journal_gems",itemEntry:l})),i.journal.fossils.forEach(l=>s.push({context:"journal_fossils",itemEntry:l})),i.journal.critter.forEach(l=>s.push({context:"journal_critter",itemEntry:l.item})),i.journal.fish.forEach(l=>s.push({context:"journal_fish",itemEntry:l.item})),i.journal.insects.forEach(l=>s.push({context:"journal_insects",itemEntry:l.item}));let a=this.userDataService.userData().data[o];a&&(a.todos=s)}),localStorage.removeItem(e._LEGACY_TO_DO_STORE_KEY+this.versionSuffix),this.userDataService.save()),n):[]}};e._CURRENT_TO_DO_VERSION=1,e._LEGACY_TO_DO_STORE_KEY="checklist",e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function g2(t,e){if(t&1){let r=Ke();v(0,"button",2),le("click",function(){he(r);let i=_();return pe(i.toDoService.updateStatus(i.context(),i.item(),!0,!0))}),M(1,"app-ui-icon",3),w()}if(t&2){let r=_();h(),D("uiIcon",r.UiIcon.TO_DO_ON_LIST)}}function _2(t,e){if(t&1){let r=Ke();v(0,"button",4),le("click",function(){he(r);let i=_();return pe(i.toDoService.add({context:i.context(),itemEntry:i.item(),quality:i.quality(),amount:i.amount()}))}),M(1,"app-ui-icon",5),w()}if(t&2){let r=_();h(),D("uiIcon",r.UiIcon.TO_DO)}}var QD=(()=>{let e=class e{constructor(){this.item=He.required(),this.context=He(),this.amount=He(),this.quality=He(),this.UiIcon=fe,this.toDoService=g(YD)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-to-do-toggle"]],inputs:{item:[1,"item"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"]},standalone:!0,features:[ge],decls:2,vars:1,consts:[["matTooltip","Remove from to-do"],["matTooltip"," Add to to-do"],["matTooltip","Remove from to-do",3,"click"],[1,"!text-green-600","!w-8","!h-8","hover:!text-green-800","focus-visible:!text-green-800",3,"uiIcon"],["matTooltip"," Add to to-do",3,"click"],[1,"!w-8","!h-8","hover:!text-black","focus-visible:!text-black",3,"uiIcon"]],template:function(i,o){i&1&&T(0,g2,2,1,"button",0)(1,_2,2,1,"button",1),i&2&&b(o.toDoService.alreadyInList(o.context(),o.item())?0:1)},dependencies:[Su,ci],encapsulation:2});let t=e;return t})();var ZD=(()=>{let e=class e{transform(n){return n?xm(n):""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"addSpacesToPascalCase",type:e,pure:!0,standalone:!0});let t=e;return t})();var n_=class{constructor(e){this._box=e,this._destroyed=new N,this._resizeSubject=new N,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Z(r=>{let n=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(xe(r=>r.some(n=>n.target===e)),de({bufferSize:1,refCount:!0}),K(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Tu=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=g(L),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,i){let o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new n_(o)),this._observers.get(o).observe(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var b2=["notch"],w2=["matFormFieldNotchedOutline",""],C2=["*"],x2=["textField"],D2=["iconPrefixContainer"],E2=["textPrefixContainer"],I2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],S2=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function T2(t,e){t&1&&M(0,"span",19)}function M2(t,e){if(t&1&&(v(0,"label",18),W(1,1),T(2,T2,1,0,"span",19),w()),t&2){let r=_(2);D("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),Pe("for",r._control.disableAutomaticLabeling?null:r._control.id),h(2),b(!r.hideRequiredMarker&&r._control.required?2:-1)}}function A2(t,e){if(t&1&&T(0,M2,3,5,"label",18),t&2){let r=_();b(r._hasFloatingLabel()?0:-1)}}function R2(t,e){t&1&&M(0,"div",5)}function k2(t,e){}function O2(t,e){if(t&1&&T(0,k2,0,0,"ng-template",11),t&2){_(2);let r=Ki(1);D("ngTemplateOutlet",r)}}function N2(t,e){if(t&1&&(v(0,"div",7),T(1,O2,1,1,null,11),w()),t&2){let r=_();D("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),h(),b(r._forceDisplayInfixLabel()?-1:1)}}function F2(t,e){t&1&&(v(0,"div",8,2),W(2,2),w())}function P2(t,e){t&1&&(v(0,"div",9,3),W(2,3),w())}function L2(t,e){}function j2(t,e){if(t&1&&T(0,L2,0,0,"ng-template",11),t&2){_();let r=Ki(1);D("ngTemplateOutlet",r)}}function V2(t,e){t&1&&(v(0,"div",12),W(1,4),w())}function B2(t,e){t&1&&(v(0,"div",13),W(1,5),w())}function H2(t,e){t&1&&M(0,"div",14)}function $2(t,e){if(t&1&&(v(0,"div",16),W(1,6),w()),t&2){let r=_();D("@transitionMessages",r._subscriptAnimationState)}}function U2(t,e){if(t&1&&(v(0,"mat-hint",20),x(1),w()),t&2){let r=_(2);D("id",r._hintLabelId),h(),ke(r.hintLabel)}}function z2(t,e){if(t&1&&(v(0,"div",17),T(1,U2,2,2,"mat-hint",20),W(2,7),M(3,"div",21),W(4,8),w()),t&2){let r=_();D("@transitionMessages",r._subscriptAnimationState),h(),b(r.hintLabel?1:-1)}}var Au=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})();var G2=new E("MatError");var q2=0,KD=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${q2++}`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){i&2&&(zs("id",o.id),Pe("align",null),H("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),W2=new E("MatPrefix");var Y2=new E("MatSuffix");var oE=new E("FloatingLabelParent"),XD=(()=>{let e=class e{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=g(Tu),this._ngZone=g(L),this._parent=g(oE),this._resizeSubscription=new Ce}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Q2(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())})}};e.\u0275fac=function(i){return new(i||e)(p($))},e.\u0275dir=F({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function Q2(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let n=r.scrollWidth;return r.remove(),n}var JD="mdc-line-ripple--active",Mu="mdc-line-ripple--deactivating",eE=(()=>{let e=class e{constructor(n,i){this._elementRef=n,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(Mu);o.propertyName==="opacity"&&a&&s.remove(JD,Mu)},i.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let n=this._elementRef.nativeElement.classList;n.remove(Mu),n.add(JD)}deactivate(){this._elementRef.nativeElement.classList.add(Mu)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(i){return new(i||e)(p($),p(L))},e.\u0275dir=F({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),tE=(()=>{let e=class e{constructor(n,i){this._elementRef=n,this._ngZone=i,this.open=!1}ngAfterViewInit(){let n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){!this.open||!n?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(i){return new(i||e)(p($),p(L))},e.\u0275cmp=R({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(i&1&&Se(b2,5),i&2){let s;U(s=z())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[ge],attrs:w2,ngContentSelectors:C2,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(i,o){i&1&&(be(),M(0,"div",1),v(1,"div",2,0),W(3),w(),M(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),Z2={transitionMessages:_t("transitionMessages",[Qe("enter",_e({opacity:1,transform:"translateY(0%)"})),ze("void => enter",[_e({opacity:0,transform:"translateY(-5px)"}),Xe("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},i_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e});let t=e;return t})();var r_=new E("MatFormField"),K2=new E("MAT_FORM_FIELD_DEFAULT_OPTIONS"),nE=0,iE="fill",X2="auto",rE="fixed",J2="translateY(-50%)",sE=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=on(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||X2}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){let i=this._appearance,o=n||this._defaults?.appearance||iE;this._appearance=o,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||rE}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||rE}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,i,o,s,a,l,c,d){this._elementRef=n,this._changeDetectorRef=i,this._dir=s,this._platform=a,this._defaults=l,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance=iE,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${nE++}`,this._hintLabelId=`mat-mdc-hint-${nE++}`,this._subscriptAnimationState="",this._destroyed=new N,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=g(Te),l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.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(){let 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(K(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(),at(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Hs(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(K(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_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){let i=this._control?this._control.ngControl:null;return i&&i[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(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&n.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;i?n.push(i.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let n=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){n.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,l=this._dir.value==="rtl"?"-1":"1",c=`${s+a}px`,u=`calc(${l} * (${c} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;n.style.transform=`var( - --mat-mdc-form-field-label-transform, - ${J2} translateX(${u}) - )`}_isAttachedToDom(){let n=this._elementRef.nativeElement;if(n.getRootNode){let i=n.getRootNode();return i&&i!==n}return document.documentElement.contains(n)}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(L),p(gt),p(Oe),p(K2,8),p(kt,8),p(J))},e.\u0275cmp=R({type:e,selectors:[["mat-form-field"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Au,5),Me(s,Au,7),Me(s,i_,5),Me(s,W2,5),Me(s,Y2,5),Me(s,G2,5),Me(s,KD,5)),i&2){let a;U(a=z())&&(o._labelChildNonStatic=a.first),U(a=z())&&(o._labelChildStatic=a.first),U(a=z())&&(o._formFieldControl=a.first),U(a=z())&&(o._prefixChildren=a),U(a=z())&&(o._suffixChildren=a),U(a=z())&&(o._errorChildren=a),U(a=z())&&(o._hintChildren=a)}},viewQuery:function(i,o){if(i&1&&(Se(x2,5),Se(D2,5),Se(E2,5),Se(XD,5),Se(tE,5),Se(eE,5)),i&2){let s;U(s=z())&&(o._textField=s.first),U(s=z())&&(o._iconPrefixContainer=s.first),U(s=z())&&(o._textPrefixContainer=s.first),U(s=z())&&(o._floatingLabel=s.first),U(s=z())&&(o._notchedOutline=s.first),U(s=z())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){i&2&&H("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[me([{provide:r_,useExisting:e},{provide:oE,useExisting:e}]),ge],ngContentSelectors:S2,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,o){if(i&1){let s=Ke();be(I2),T(0,A2,1,1,"ng-template",null,0,Yc),v(2,"div",4,1),le("click",function(l){return he(s),pe(o._control.onContainerClick(l))}),T(4,R2,1,0,"div",5),v(5,"div",6),T(6,N2,2,2,"div",7)(7,F2,3,0,"div",8)(8,P2,3,0,"div",9),v(9,"div",10),T(10,j2,1,1,null,11),W(11),w(),T(12,V2,2,0,"div",12)(13,B2,2,0,"div",13),w(),T(14,H2,1,0,"div",14),w(),v(15,"div",15),T(16,$2,2,1,"div",16)(17,z2,5,2,"div",17),w()}if(i&2){let s;h(2),H("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),h(2),b(!o._hasOutline()&&!o._control.disabled?4:-1),h(2),b(o._hasOutline()?6:-1),h(),b(o._hasIconPrefix?7:-1),h(),b(o._hasTextPrefix?8:-1),h(2),b(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),h(2),b(o._hasTextSuffix?12:-1),h(),b(o._hasIconSuffix?13:-1),h(),b(o._hasOutline()?-1:14),h(),H("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),h(),b((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[XD,tE,ad,eE,KD],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-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-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{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-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-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{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-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-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{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{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:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-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-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-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: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:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-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-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-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-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.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;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.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;color:var(--mat-form-field-enabled-select-arrow-color)}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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%;z-index:0}.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>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.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-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:[Z2.transitionMessages]},changeDetection:0});let t=e;return t})(),aE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ye,gn,bd,Ye]});let t=e;return t})();var tj=["trigger"],nj=["panel"],ij=[[["mat-select-trigger"]],"*"],rj=["mat-select-trigger","*"];function oj(t,e){if(t&1&&(v(0,"span",4),x(1),w()),t&2){let r=_();h(),ke(r.placeholder)}}function sj(t,e){t&1&&W(0)}function aj(t,e){if(t&1&&(v(0,"span",11),x(1),w()),t&2){let r=_(2);h(),ke(r.triggerValue)}}function lj(t,e){if(t&1&&(v(0,"span",5),T(1,sj,1,0)(2,aj,2,1,"span",11),w()),t&2){let r=_();h(),b(r.customTrigger?1:2)}}function cj(t,e){if(t&1){let r=Ke();v(0,"div",12,1),le("@transformPanel.done",function(i){he(r);let o=_();return pe(o._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){he(r);let o=_();return pe(o._handleKeydown(i))}),W(2,1),w()}if(t&2){let r=_();cw("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),D("ngClass",r.panelClass)("@transformPanel","showing"),Pe("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var dj={transformPanelWrap:_t("transformPanelWrap",[ze("* => void",Iu("@transformPanel",[Eu()],{optional:!0}))]),transformPanel:_t("transformPanel",[Qe("void",_e({opacity:0,transform:"scale(1, 0.8)"})),ze("void => showing",Xe("120ms cubic-bezier(0, 0, 0.2, 1)",_e({opacity:1,transform:"scale(1, 1)"}))),ze("* => void",Xe("100ms linear",_e({opacity:0})))])};var lE=0,cE=new E("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition()}});function uj(t){return()=>t.scrollStrategies.reposition()}var fj=new E("MAT_SELECT_CONFIG"),hj={provide:cE,deps:[$t],useFactory:uj},dE=new E("MatSelectTrigger"),o_=class{constructor(e,r){this.source=e,this.value=r}},uE=(()=>{let e=class e{_scrollOptionIntoView(n){let i=this.options.toArray()[n];if(i){let o=this.panel.nativeElement,s=JC(n,this.options,this.optionGroups),a=i._getHostElement();n===0&&s===1?o.scrollTop=0:o.scrollTop=ex(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(n){return new o_(this,n)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=n,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(n){this._placeholder=n,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Pd.required)??!1}set required(n){this._required=n,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(n){this._selectionModel,this._multiple=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 errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(n){this._errorStateTracker.matcher=n}get id(){return this._id}set id(n){this._id=n||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(n){this._errorStateTracker.errorState=n}constructor(n,i,o,s,a,l,c,d,u,f,m,y,A,k){this._viewportRuler=n,this._changeDetectorRef=i,this._elementRef=a,this._dir=l,this._parentFormField=u,this.ngControl=f,this._liveAnnouncer=A,this._defaultOptions=k,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._panelOpen=!1,this._compareWith=(O,ce)=>O===ce,this._uid=`mat-select-${lE++}`,this._triggerAriaLabelledBy=null,this._destroy=new N,this.stateChanges=new N,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${lE++}`,this._panelDoneAnimatingStream=new N,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new N,this.optionSelectionChanges=mo(()=>{let O=this.options;return O?O.changes.pipe(It(O),rt(()=>at(...O.map(ce=>ce.onSelectionChange)))):this._initialized.pipe(rt(()=>this.optionSelectionChanges))}),this.openedChange=new q,this._openedStream=this.openedChange.pipe(xe(O=>O),B(()=>{})),this._closedStream=this.openedChange.pipe(xe(O=>!O),B(()=>{})),this.selectionChange=new q,this.valueChange=new q,this._trackedModal=null,this._skipPredicate=O=>this.panelOpen?!1:O.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),k?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=k.typeaheadDebounceInterval),this._errorStateTracker=new Od(s,f,d,c,this.stateChanges),this._scrollStrategyFactory=y,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||0,this.id=this.id}ngOnInit(){this._selectionModel=new ds(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Hn(),K(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(K(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(K(this._destroy)).subscribe(n=>{n.added.forEach(i=>i.select()),n.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(It(null),K(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let n=this._getTriggerAriaLabelledby(),i=this.ngControl;if(n!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=n,n?o.setAttribute("aria-labelledby",n):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.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._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let n=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!n)return;let i=`${this.id}-panel`;this._trackedModal&&Ad(this._trackedModal,"aria-owns",i),Fm(n,"aria-owns",i),this._trackedModal=n}_clearFromModal(){if(!this._trackedModal)return;let n=`${this.id}-panel`;Ad(this._trackedModal,"aria-owns",n),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}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){let n=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&n.reverse(),n.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(n){this.disabled||(this.panelOpen?this._handleOpenKeydown(n):this._handleClosedKeydown(n))}_handleClosedKeydown(n){let i=n.keyCode,o=i===40||i===38||i===37||i===39,s=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&s&&!Ht(n)||(this.multiple||n.altKey)&&o)n.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;a.onKeydown(n);let c=this.selected;c&&l!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(n){let i=this._keyManager,o=n.keyCode,s=o===40||o===38,a=i.isTyping();if(s&&n.altKey)n.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&i.activeItem&&!Ht(n))n.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&n.ctrlKey){n.preventDefault();let l=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(l?c.select():c.deselect())})}else{let l=i.activeItemIndex;i.onKeydown(n),this._multiple&&s&&n.shiftKey&&i.activeItem&&i.activeItemIndex!==l&&i.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(Je(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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&n)Array.isArray(n),n.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(n);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(n){let i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,n)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(n){return n!==this._value||this._multiple&&Array.isArray(n)?(this.options&&this._setSelectionByValue(n),this._value=n,!0):!1}_getOverlayWidth(n){return this.panelWidth==="auto"?(n instanceof Ua?n.elementRef:n||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let n of this.options)n._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Id(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(){let n=at(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(K(n)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),at(...this.options.map(i=>i._stateChanges)).pipe(K(n)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(n,i){let o=this._selectionModel.isSelected(n);n.value==null&&!this._multiple?(n.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(n.value)):(o!==n.selected&&(n.selected?this._selectionModel.select(n):this._selectionModel.deselect(n)),i&&this._keyManager.setActiveItem(n),this.multiple&&(this._sortValues(),i&&this.focus())),o!==this._selectionModel.isSelected(n)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let n=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,n):n.indexOf(i)-n.indexOf(o)),this.stateChanges.next()}}_propagateChanges(n){let i;this.multiple?i=this.selected.map(o=>o.value):i=this.selected?this.selected.value:n,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let n=-1;for(let i=0;i0}focus(n){this._elementRef.nativeElement.focus(n)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let n=this._parentFormField?.getLabelId(),i=n?n+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:n}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let n=this._parentFormField?.getLabelId(),i=(n?n+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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}};e.\u0275fac=function(i){return new(i||e)(p(ln),p(Ae),p(L),p(XC),p($),p(gt,8),p(rg,8),p(ma,8),p(r_,8),p(Oi,10),Di("tabindex"),p(cE),p(VC),p(fj,8))},e.\u0275cmp=R({type:e,selectors:[["mat-select"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,dE,5),Me(s,Nd,5),Me(s,Qm,5)),i&2){let a;U(a=z())&&(o.customTrigger=a.first),U(a=z())&&(o.options=a),U(a=z())&&(o.optionGroups=a)}},viewQuery:function(i,o){if(i&1&&(Se(tj,5),Se(nj,5),Se(e_,5)),i&2){let s;U(s=z())&&(o.trigger=s.first),U(s=z())&&(o.panel=s.first),U(s=z())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){i&1&&le("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),i&2&&(Pe("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),H("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",G],disableRipple:[2,"disableRipple","disableRipple",G],tabIndex:[2,"tabIndex","tabIndex",n=>n==null?0:Ot(n)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",G],placeholder:"placeholder",required:[2,"required","required",G],multiple:[2,"multiple","multiple",G],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",G],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Ot],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[me([{provide:i_,useExisting:e},{provide:Ym,useExisting:e}]),ye,Ve,ge],ngContentSelectors:rj,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[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,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,o){if(i&1){let s=Ke();be(ij),v(0,"div",2,0),le("click",function(){return he(s),pe(o.open())}),v(3,"div",3),T(4,oj,2,1,"span",4)(5,lj,3,1,"span",5),w(),v(6,"div",6)(7,"div",7),op(),v(8,"svg",8),M(9,"path",9),w()()()(),T(10,cj,3,9,"ng-template",10),le("backdropClick",function(){return he(s),pe(o.close())})("attach",function(){return he(s),pe(o._onAttached())})("detach",function(){return he(s),pe(o.close())})}if(i&2){let s=Ki(1);h(3),Pe("id",o._valueId),h(),b(o.empty?4:5),h(6),D("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Ua,e_,sd],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)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.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-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{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}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[dj.transformPanel]},changeDetection:0});let t=e;return t})(),fE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["mat-select-trigger"]],standalone:!0,features:[me([{provide:dE,useExisting:e}])]});let t=e;return t})(),hE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[hj],imports:[gn,us,Zm,Ye,On,aE,Zm,Ye]});let t=e;return t})();var Ou=["*"],mj=["content"],gj=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],_j=["mat-drawer","mat-drawer-content","*"];function vj(t,e){if(t&1){let r=Ke();v(0,"div",1),le("click",function(){he(r);let i=_();return pe(i._onBackdropClicked())}),w()}if(t&2){let r=_();H("mat-drawer-shown",r._isShowingBackdrop())}}function yj(t,e){t&1&&(v(0,"mat-drawer-content"),W(1,2),w())}var bj=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],wj=["mat-sidenav","mat-sidenav-content","*"];function Cj(t,e){if(t&1){let r=Ke();v(0,"div",1),le("click",function(){he(r);let i=_();return pe(i._onBackdropClicked())}),w()}if(t&2){let r=_();H("mat-drawer-shown",r._isShowingBackdrop())}}function xj(t,e){t&1&&(v(0,"mat-sidenav-content"),W(1,2),w())}var Dj='.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{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);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);width:var(--mat-sidenav-container-width);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}',pE={transformDrawer:_t("transform",[Qe("open, open-instant",_e({transform:"none",visibility:"visible"})),Qe("void",_e({"box-shadow":"none",visibility:"hidden"})),ze("void => open-instant",Xe("0ms")),ze("void <=> open, open-instant => void",Xe("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var Ej=new E("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Ij}),s_=new E("MAT_DRAWER_CONTAINER");function Ij(){return!1}var Ru=(()=>{let e=class e extends Li{constructor(n,i,o,s,a){super(o,s,a),this._changeDetectorRef=n,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(p(Ae),p(bt(()=>gE)),p($),p(Pi),p(L))},e.\u0275cmp=R({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,o){i&2&&Kt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[me([{provide:Li,useExisting:e}]),ie,ge],ngContentSelectors:Ou,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),mE=(()=>{let e=class e{get position(){return this._position}set position(n){n=n==="end"?"end":"start",n!==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=on(n)}get autoFocus(){let n=this._autoFocus;return n??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(n){(n==="true"||n==="false"||n==null)&&(n=on(n)),this._autoFocus=n}get opened(){return this._opened}set opened(n){this.toggle(on(n))}constructor(n,i,o,s,a,l,c,d){this._elementRef=n,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=l,this._doc=c,this._container=d,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N,this._animationEnd=new N,this._animationState="void",this.openedChange=new q(!0),this._openedStream=this.openedChange.pipe(xe(u=>u),B(()=>{})),this.openedStart=this._animationStarted.pipe(xe(u=>u.fromState!==u.toState&&u.toState.indexOf("open")===0),Bi(void 0)),this._closedStream=this.openedChange.pipe(xe(u=>!u),B(()=>{})),this.closedStart=this._animationStarted.pipe(xe(u=>u.fromState!==u.toState&&u.toState==="void"),Bi(void 0)),this._destroyed=new N,this.onPositionChanged=new q,this._modeChanged=new N,this._injector=g(Te),this.openedChange.pipe(K(this._destroyed)).subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{dn(this._elementRef.nativeElement,"keydown").pipe(xe(u=>u.keyCode===27&&!this.disableClose&&!Ht(u)),K(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Hn((u,f)=>u.fromState===f.fromState&&u.toState===f.toState)).subscribe(u=>{let{fromState:f,toState:m}=u;(m.indexOf("open")===0&&f==="void"||m==="void"&&f.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{n.removeEventListener("blur",o),n.removeEventListener("mousedown",o),n.removeAttribute("tabindex")};n.addEventListener("blur",o),n.addEventListener("mousedown",o)})),n.focus(i)}_focusByCssSelector(n,i){let o=this._elementRef.nativeElement.querySelector(n);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;let n=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":Ct(()=>{!this._focusTrap.focusInitialElement()&&typeof n.focus=="function"&&n.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(n){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){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,i){n&&i&&(this._openedVia=i);let o=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),o}_setOpen(n,i,o){return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(Je(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){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,o=i.parentNode;n==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}};e.\u0275fac=function(i){return new(i||e)(p($),p(LC),p(Zr),p(Oe),p(L),p(Pm),p(J,8),p(s_,8))},e.\u0275cmp=R({type:e,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(i&1&&Se(mj,5),i&2){let s;U(s=z())&&(o._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){i&1&&Lp("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),i&2&&(Fp("@transform",o._animationState),Pe("align",null),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.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"],standalone:!0,features:[ge],ngContentSelectors:Ou,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(be(),v(0,"div",1,0),W(2),w())},dependencies:[Li],encapsulation:2,data:{animation:[pE.transformDrawer]},changeDetection:0});let t=e;return t})(),gE=(()=>{let e=class e{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(n){this._autosize=on(n)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(n){this._backdropOverride=n==null?null:on(n)}get scrollable(){return this._userContent||this._content}constructor(n,i,o,s,a,l=!1,c){this._dir=n,this._element=i,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=c,this._drawers=new En,this.backdropClick=new q,this._destroyed=new N,this._doCheckSubject=new N,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N,this._injector=g(Te),n&&n.change.pipe(K(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(K(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}ngAfterContentInit(){this._allDrawers.changes.pipe(It(this._allDrawers),K(this._destroyed)).subscribe(n=>{this._drawers.reset(n.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(It(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(un(10),K(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")n+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();n+=o,i-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();i+=o,n-=o}}n=n||null,i=i||null,(n!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:n,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(n){n._animationStarted.pipe(xe(i=>i.fromState!==i.toState),K(this._drawers.changes)).subscribe(i=>{i.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),n.mode!=="side"&&n.openedChange.pipe(K(this._drawers.changes)).subscribe(()=>this._setContainerClass(n.opened))}_watchDrawerPosition(n){n&&n.onPositionChanged.pipe(K(this._drawers.changes)).subscribe(()=>{Ct(()=>{this._validateDrawers()},{injector:this._injector,phase:_i.Read})})}_watchDrawerMode(n){n&&n._modeChanged.pipe(K(at(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(n){let i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";n?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(n=>{n.position=="end"?(this._end!=null,this._end=n):(this._start!=null,this._start=n)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_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 n!=null&&n.opened}_drawerHasBackdrop(n){return this._backdropOverride==null?!!n&&n.mode!=="side":this._backdropOverride}};e.\u0275fac=function(i){return new(i||e)(p(gt,8),p($),p(L),p(Ae),p(ln),p(Ej),p(kt,8))},e.\u0275cmp=R({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Ru,5),Me(s,mE,5)),i&2){let a;U(a=z())&&(o._content=a.first),U(a=z())&&(o._allDrawers=a)}},viewQuery:function(i,o){if(i&1&&Se(Ru,5),i&2){let s;U(s=z())&&(o._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[me([{provide:s_,useExisting:e}]),ge],ngContentSelectors:_j,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(be(gj),T(0,vj,1,2,"div",0),W(1),W(2,1),T(3,yj,2,0,"mat-drawer-content")),i&2&&(b(o.hasBackdrop?0:-1),h(3),b(o._content?-1:3))},dependencies:[Ru],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{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);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);width:var(--mat-sidenav-container-width);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});let t=e;return t})(),ku=(()=>{let e=class e extends Ru{constructor(n,i,o,s,a){super(n,i,o,s,a)}};e.\u0275fac=function(i){return new(i||e)(p(Ae),p(bt(()=>l_)),p($),p(Pi),p(L))},e.\u0275cmp=R({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,o){i&2&&Kt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[me([{provide:Li,useExisting:e}]),ie,ge],ngContentSelectors:Ou,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),a_=(()=>{let e=class e extends mE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(n){this._fixedInViewport=on(n)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(n){this._fixedTopGap=si(n)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(n){this._fixedBottomGap=si(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,o){i&2&&(Pe("align",null),Kt("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[ie,ge],ngContentSelectors:Ou,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(be(),v(0,"div",1,0),W(2),w())},dependencies:[Li],encapsulation:2,data:{animation:[pE.transformDrawer]},changeDetection:0});let t=e;return t})(),l_=(()=>{let e=class e extends gE{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,ku,5),Me(s,a_,5)),i&2){let a;U(a=z())&&(o._content=a.first),U(a=z())&&(o._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[me([{provide:s_,useExisting:e}]),ie,ge],ngContentSelectors:wj,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(be(bj),T(0,Cj,1,2,"div",0),W(1),W(2,1),T(3,xj,2,0,"mat-sidenav-content")),i&2&&(b(o.hasBackdrop?0:-1),h(3),b(o._content?-1:3))},dependencies:[ku],styles:[Dj],encapsulation:2,changeDetection:0});let t=e;return t})(),_E=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ye,On,On,Ye]});let t=e;return t})();var fs=(()=>{var e;let r=class r{constructor(){Pn(this,e,Xn(!1))}toggle(){Ft(this,e).update(i=>!i)}open(){Ft(this,e).set(!0)}close(){Ft(this,e).set(!1)}get(){return Ft(this,e).asReadonly()}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275prov=I({token:r,factory:r.\u0275fac,providedIn:"root"});let t=r;return t})();var Tj=["drawer"],Mj=[[["","listDetail",""]],"*"],Aj=["[listDetail]","*"],c_=(()=>{var e,r;let n=class n{constructor(){Pn(this,e);Pn(this,r);this.removePlaceholder=He(!1,{transform:G}),this.uiIcon=fe,this.media=g(Sm),this.changeDetectorRef=g(Ae),_r(this,e,g(fs)),_r(this,r,()=>this.changeDetectorRef.detectChanges()),this.mobileQuery=this.media.matchMedia("(max-width: calc(600px - 1.5rem))"),this.mobileQuery.addListener(Ft(this,r)),Ji(()=>{Ft(this,e).get()()?this.drawer?.open():this.drawer?.close()})}ngOnDestroy(){this.mobileQuery.removeListener(Ft(this,r))}};e=new WeakMap,r=new WeakMap,n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=R({type:n,selectors:[["app-list-detail-container"]],viewQuery:function(s,a){if(s&1&&Se(Tj,5),s&2){let l;U(l=z())&&(a.drawer=l.first)}},inputs:{removePlaceholder:[1,"removePlaceholder"]},ngContentSelectors:Aj,decls:6,vars:5,consts:[["drawer",""],[3,"hasBackdrop"],["position","end",1,"list-detail-drawer",3,"fixedInViewport","mode"],[1,"p-main-content","w-full"]],template:function(s,a){s&1&&(be(Mj),v(0,"mat-sidenav-container",1)(1,"mat-sidenav",2,0),W(3),w(),v(4,"mat-sidenav-content",3),W(5,1),w()()),s&2&&(D("hasBackdrop",!1),h(),D("fixedInViewport",a.mobileQuery.matches)("mode","over"),h(3),H("remove-placeholder-padding",a.removePlaceholder()))},dependencies:[a_,l_,ku],styles:[".list-detail-drawer[_ngcontent-%COMP%]{--mat-sidenav-container-width: 100%}@media (min-width: 1280px){.list-detail-drawer[_ngcontent-%COMP%]{--mat-sidenav-container-width: var(--cg-main-space-card-placeholder-width)}}"]});let t=n;return t})();var h_=["*"];function Rj(t,e){t&1&&W(0)}var kj=["tabListContainer"],Oj=["tabList"],Nj=["tabListInner"],Fj=["nextPaginator"],Pj=["previousPaginator"],Lj=t=>({animationDuration:t}),jj=(t,e)=>({value:t,params:e});function Vj(t,e){}var Bj=["tabBodyWrapper"],Hj=["tabHeader"];function $j(t,e){}function Uj(t,e){if(t&1&&T(0,$j,0,0,"ng-template",12),t&2){let r=_().$implicit;D("cdkPortalOutlet",r.templateLabel)}}function zj(t,e){if(t&1&&x(0),t&2){let r=_().$implicit;ke(r.textLabel)}}function Gj(t,e){if(t&1){let r=Ke();v(0,"div",7,2),le("click",function(){let i=he(r),o=i.$implicit,s=i.$index,a=_(),l=Ki(1);return pe(a._handleClick(o,l,s))})("cdkFocusChange",function(i){let o=he(r).$index,s=_();return pe(s._tabFocusChanged(i,o))}),M(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),T(6,Uj,1,1,null,12)(7,zj,1,1),w()()()}if(t&2){let r=e.$implicit,n=e.$index,i=Ki(1),o=_();Gr(r.labelClass),H("mdc-tab--active",o.selectedIndex===n),D("id",o._getTabLabelId(n))("disabled",r.disabled)("fitInkBarToContent",o.fitInkBarToContent),Pe("tabIndex",o._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),h(3),D("matRippleTrigger",i)("matRippleDisabled",r.disabled||o.disableRipple),h(3),b(r.templateLabel?6:7)}}function qj(t,e){t&1&&W(0)}function Wj(t,e){if(t&1){let r=Ke();v(0,"mat-tab-body",13),le("_onCentered",function(){he(r);let i=_();return pe(i._removeTabBodyWrapperHeight())})("_onCentering",function(i){he(r);let o=_();return pe(o._setTabBodyWrapperHeight(i))}),w()}if(t&2){let r=e.$implicit,n=e.$index,i=_();Gr(r.bodyClass),H("mat-mdc-tab-body-active",i.selectedIndex===n),D("id",i._getTabContentId(n))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",i.animationDuration)("preserveContent",i.preserveContent),Pe("tabindex",i.contentTabIndex!=null&&i.selectedIndex===n?i.contentTabIndex:null)("aria-labelledby",i._getTabLabelId(n))("aria-hidden",i.selectedIndex!==n)}}var Yj=new E("MatTabContent"),Qj=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(Ue))},e.\u0275dir=F({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[me([{provide:Yj,useExisting:e}])]});let t=e;return t})(),Zj=new E("MatTabLabel"),bE=new E("MAT_TAB"),Kj=(()=>{let e=class e extends TD{constructor(n,i,o){super(n,i),this._closestTab=o}};e.\u0275fac=function(i){return new(i||e)(p(Ue),p(We),p(bE,8))},e.\u0275dir=F({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[me([{provide:Zj,useExisting:e}]),ie]});let t=e;return t})(),wE=new E("MAT_TAB_GROUP"),Xj=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(n){this._setTemplateLabelInput(n)}get content(){return this._contentPortal}constructor(n,i){this._viewContainerRef=n,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new N,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 pr(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(n){n&&n._closestTab===this&&(this._templateLabel=n)}};e.\u0275fac=function(i){return new(i||e)(p(We),p(wE,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tab"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Kj,5),Me(s,Qj,7,Ue)),i&2){let a;U(a=z())&&(o.templateLabel=a.first),U(a=z())&&(o._explicitContent=a.first)}},viewQuery:function(i,o){if(i&1&&Se(Ue,7),i&2){let s;U(s=z())&&(o._implicitContent=s.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",G],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[me([{provide:bE,useExisting:e}]),ye,Ve,ge],ngContentSelectors:h_,decls:1,vars:0,template:function(i,o){i&1&&(be(),T(0,Rj,1,0,"ng-template"))},encapsulation:2});let t=e;return t})(),d_="mdc-tab-indicator--active",vE="mdc-tab-indicator--no-transition",u_=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let r=this._items.find(i=>i.elementRef.nativeElement===e),n=this._currentItem;if(r!==n&&(n?.deactivateInkBar(),r)){let i=n?.elementRef.nativeElement.getBoundingClientRect?.();r.activateInkBar(i),this._currentItem=r}}},Jj=(()=>{let e=class e{constructor(){this._elementRef=g($),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){this._fitToContent!==n&&(this._fitToContent=n,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){let i=this._elementRef.nativeElement;if(!n||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(d_);return}let o=i.getBoundingClientRect(),s=n.width/o.width,a=n.left-o.left;i.classList.add(vE),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${s})`),i.getBoundingClientRect(),i.classList.remove(vE),i.classList.add(d_),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(d_)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let n=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=n.createElement("span"),o=this._inkBarContentElement=n.createElement("span");i.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let n=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;n.appendChild(this._inkBarElement)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",G]},features:[ye]});let t=e;return t})();var CE=(()=>{let e=class e extends Jj{constructor(n){super(),this.elementRef=n,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(i){return new(i||e)(p($))},e.\u0275dir=F({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){i&2&&(Pe("aria-disabled",!!o.disabled),H("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",G]},standalone:!0,features:[ye,ie]});let t=e;return t})(),yE=ri({passive:!0}),eV=650,tV=100,nV=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(n){let i=isNaN(n)?0:n;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(n,i,o,s,a,l,c){this._elementRef=n,this._changeDetectorRef=i,this._viewportRuler=o,this._dir=s,this._ngZone=a,this._platform=l,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new q,this.indexFocused=new q,this._sharedResizeObserver=g(Tu),this._injector=g(Te),a.runOutsideAngular(()=>{dn(n.nativeElement,"mouseleave").pipe(K(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){dn(this._previousPaginator.nativeElement,"touchstart",yE).pipe(K(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),dn(this._nextPaginator.nativeElement,"touchstart",yE).pipe(K(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let n=this._dir?this._dir.change:V("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(un(32),K(this._destroyed)),o=this._viewportRuler.change(150).pipe(K(this._destroyed)),s=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Sd(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Ct(s,{injector:this._injector}),at(n,o,i,this._items.changes,this._itemsResized()).pipe(K(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),s()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Et:this._items.changes.pipe(It(this._items),rt(n=>new Z(i=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(s=>i.next(s));return n.forEach(s=>o.observe(s.elementRef.nativeElement)),()=>{o.disconnect()}}))),Er(1),xe(n=>n.some(i=>i.contentRect.width>0&&i.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(!Ht(n))switch(n.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n))}break;default:this._keyManager.onKeydown(n)}}_onContentChanges(){let 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]:!0}_setTabFocus(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let n=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-n:n;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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){let i=this._tabListContainer.nativeElement.offsetWidth,o=(n=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(n){this._stopInterval(),this._scrollHeader(n)}_scrollToLabel(n){if(this.disablePagination)return;let i=this._items?this._items.toArray()[n]:null;if(!i)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:a}=i.elementRef.nativeElement,l,c;this._getLayoutDirection()=="ltr"?(l=s,c=l+a):(c=this._tabListInner.nativeElement.offsetWidth-s,l=c-a);let d=this.scrollDistance,u=this.scrollDistance+o;lu&&(this.scrollDistance+=Math.min(c-u,l-d))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let 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=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let n=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return n-i||0}_alignInkBarToSelectedTab(){let n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=n?n.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(n,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Dr(eV,tV).pipe(K(at(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:s}=this._scrollHeader(n);(s===0||s>=o)&&this._stopInterval()}))}_scrollTo(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(ln),p(gt,8),p(L),p(Oe),p(kt,8))},e.\u0275dir=F({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",G],selectedIndex:[2,"selectedIndex","selectedIndex",Ot]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ye]});let t=e;return t})(),iV=(()=>{let e=class e extends nV{constructor(n,i,o,s,a,l,c){super(n,i,o,s,a,l,c),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new u_(this._items),super.ngAfterContentInit()}_itemSelected(n){n.preventDefault()}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(ln),p(gt,8),p(L),p(Oe),p(kt,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tab-header"]],contentQueries:function(i,o,s){if(i&1&&Me(s,CE,4),i&2){let a;U(a=z())&&(o._items=a)}},viewQuery:function(i,o){if(i&1&&(Se(kj,7),Se(Oj,7),Se(Nj,7),Se(Fj,5),Se(Pj,5)),i&2){let s;U(s=z())&&(o._tabListContainer=s.first),U(s=z())&&(o._tabList=s.first),U(s=z())&&(o._tabListInner=s.first),U(s=z())&&(o._nextPaginator=s.first),U(s=z())&&(o._previousPaginator=s.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){i&2&&H("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{disableRipple:[2,"disableRipple","disableRipple",G]},standalone:!0,features:[ye,ie,ge],ngContentSelectors:h_,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(i,o){if(i&1){let s=Ke();be(),v(0,"button",5,0),le("click",function(){return he(s),pe(o._handlePaginatorClick("before"))})("mousedown",function(l){return he(s),pe(o._handlePaginatorPress("before",l))})("touchend",function(){return he(s),pe(o._stopInterval())}),M(2,"div",6),w(),v(3,"div",7,1),le("keydown",function(l){return he(s),pe(o._handleKeydown(l))}),v(5,"div",8,2),le("cdkObserveContent",function(){return he(s),pe(o._onContentChanges())}),v(7,"div",9,3),W(9),w()()(),v(10,"button",10,4),le("mousedown",function(l){return he(s),pe(o._handlePaginatorPress("after",l))})("click",function(){return he(s),pe(o._handlePaginatorClick("after"))})("touchend",function(){return he(s),pe(o._stopInterval())}),M(12,"div",6),w()}i&2&&(H("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),D("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),h(3),H("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(7),H("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),D("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[Yo,IC],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let t=e;return t})(),rV=new E("MAT_TABS_CONFIG"),oV={translateTab:_t("translateTab",[Qe("center, void, left-origin-center, right-origin-center",_e({transform:"none"})),Qe("left",_e({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Qe("right",_e({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ze("* => left, * => right, left => center, right => center",Xe("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ze("void => left-origin-center",[_e({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Xe("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ze("void => right-origin-center",[_e({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Xe("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},sV=(()=>{let e=class e extends xu{constructor(n,i,o,s){super(n,i,s),this._host=o,this._centeringSub=Ce.EMPTY,this._leavingSub=Ce.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(It(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()}};e.\u0275fac=function(i){return new(i||e)(p(Jt),p(We),p(bt(()=>xE)),p(J))},e.\u0275dir=F({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[ie]});let t=e;return t})(),xE=(()=>{let e=class e{set position(n){this._positionIndex=n,this._computePositionAnimationState()}constructor(n,i,o){this._elementRef=n,this._dir=i,this._dirChangeSubscription=Ce.EMPTY,this._translateTabComplete=new N,this._onCentering=new q,this._beforeCentering=new q,this._afterLeavingCenter=new q,this._onCentered=new q(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe(Hn((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(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(n){let i=this._isCenterPosition(n.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(n){return n=="center"||n=="left-origin-center"||n=="right-origin-center"}_computePositionAnimationState(n=this._getLayoutDirection()){this._positionIndex<0?this._position=n=="ltr"?"left":"right":this._positionIndex>0?this._position=n=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(n){let i=this._getLayoutDirection();return i=="ltr"&&n<=0||i=="rtl"&&n>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(i){return new(i||e)(p($),p(gt,8),p(Ae))},e.\u0275cmp=R({type:e,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(i&1&&Se(xu,5),i&2){let s;U(s=z())&&(o._portalHost=s.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[ge],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,o){if(i&1){let s=Ke();v(0,"div",1,0),le("@translateTab.start",function(l){return he(s),pe(o._onTranslateTabStarted(l))})("@translateTab.done",function(l){return he(s),pe(o._translateTabComplete.next(l))}),T(2,Vj,0,0,"ng-template",2),w()}i&2&&D("@translateTab",pw(3,jj,o._position,ni(1,Lj,o.animationDuration)))},dependencies:[sV,Li],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:[oV.translateTab]}});let t=e;return t})(),aV=0,lV=!0,vJ=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(n){this._fitInkBarToContent=n,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){this._indexToSelect=isNaN(n)?null:n}get animationDuration(){return this._animationDuration}set animationDuration(n){let i=n+"";this._animationDuration=/^\d+$/.test(i)?n+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(n){this._contentTabIndex=isNaN(n)?null:n}get backgroundColor(){return this._backgroundColor}set backgroundColor(n){if(!lV)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),n&&i.add("mat-tabs-with-background",`mat-background-${n}`),this._backgroundColor=n}constructor(n,i,o,s){this._elementRef=n,this._changeDetectorRef=i,this._animationMode=s,this._tabs=new En,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ce.EMPTY,this._tabLabelSubscription=Ce.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new q,this.focusChange=new q,this.animationDone=new q,this.selectedTabChange=new q(!0),this._isServer=!g(Oe).isBrowser,this._groupId=aV++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let n=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=n){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(n));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===n),i||(this.selectedIndexChange.emit(n),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-n,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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(()=>{let n=this._clampTabIndex(this._indexToSelect);if(n===this._selectedIndex){let i=this._tabs.toArray(),o;for(let s=0;s{i[n].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(n))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(It(this._allTabs)).subscribe(n=>{this._tabs.reset(n.filter(i=>i._closestTabGroup===this||!i._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){let i=this._tabHeader;i&&(i.focusIndex=n)}_focusChanged(n){this._lastFocusedTabIndex=n,this.focusChange.emit(this._createChangeEvent(n))}_createChangeEvent(n){let i=new f_;return i.index=n,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[n]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=at(...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;let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=n+"px")}_removeTabBodyWrapperHeight(){let n=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=n.clientHeight,n.style.height="",this.animationDone.emit()}_handleClick(n,i,o){i.focusIndex=o,n.disabled||(this.selectedIndex=o)}_getTabIndex(n){let i=this._lastFocusedTabIndex??this.selectedIndex;return n===i?0:-1}_tabFocusChanged(n,i){n&&n!=="mouse"&&n!=="touch"&&(this._tabHeader.focusIndex=i)}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(rV,8),p(kt,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tab-group"]],contentQueries:function(i,o,s){if(i&1&&Me(s,Xj,5),i&2){let a;U(a=z())&&(o._allTabs=a)}},viewQuery:function(i,o){if(i&1&&(Se(Bj,5),Se(Hj,5)),i&2){let s;U(s=z())&&(o._tabBodyWrapper=s.first),U(s=z())&&(o._tabHeader=s.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,o){i&2&&(Gr("mat-"+(o.color||"primary")),Kt("--mat-tab-animation-duration",o.animationDuration),H("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",G],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",G],dynamicHeight:[2,"dynamicHeight","dynamicHeight",G],selectedIndex:[2,"selectedIndex","selectedIndex",Ot],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Ot],disablePagination:[2,"disablePagination","disablePagination",G],disableRipple:[2,"disableRipple","disableRipple",G],preserveContent:[2,"preserveContent","preserveContent",G],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[me([{provide:wE,useExisting:e}]),ye,ge],ngContentSelectors:h_,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(i,o){if(i&1){let s=Ke();be(),v(0,"mat-tab-header",3,0),le("indexFocused",function(l){return he(s),pe(o._focusChanged(l))})("selectFocusedIndex",function(l){return he(s),pe(o.selectedIndex=l)}),et(2,Gj,8,17,"div",4,it),w(),T(4,qj,1,0),v(5,"div",5,1),et(7,Wj,1,13,"mat-tab-body",6,it),w()}i&2&&(D("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),h(2),tt(o._tabs),h(2),b(o._isServer?4:-1),h(),H("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(2),tt(o._tabs))},dependencies:[iV,CE,BC,Yo,xu,xE],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});let t=e;return t})(),f_=class{};var DE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ye,Ye]});let t=e;return t})();var dV=[[["caption"]],[["colgroup"],["col"]],"*"],uV=["caption","colgroup, col","*"];function fV(t,e){t&1&&W(0,2)}function hV(t,e){t&1&&(v(0,"thead",0),Bt(1,1),w(),v(2,"tbody",0),Bt(3,2)(4,3),w(),v(5,"tfoot",0),Bt(6,4),w())}function pV(t,e){t&1&&Bt(0,1)(1,2)(2,3)(3,4)}var Fn=new E("CDK_TABLE");var Vu=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(Ue))},e.\u0275dir=F({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Bu=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(Ue))},e.\u0275dir=F({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),SE=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(Ue))},e.\u0275dir=F({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),hs=(()=>{let e=class e{get name(){return this._name}set name(n){this._setNameInput(n)}get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(n){n!==this._stickyEnd&&(this._stickyEnd=n,this._hasStickyChanged=!0)}constructor(n){this._table=n,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(n){n&&(this._name=n,this.cssClassFriendlyName=n.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(p(Fn,8))},e.\u0275dir=F({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Vu,5),Me(s,Bu,5),Me(s,SE,5)),i&2){let a;U(a=z())&&(o.cell=a.first),U(a=z())&&(o.headerCell=a.first),U(a=z())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",G],stickyEnd:[2,"stickyEnd","stickyEnd",G]},standalone:!0,features:[me([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ye]});let t=e;return t})(),Fu=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},TE=(()=>{let e=class e extends Fu{constructor(n,i){super(n,i)}};e.\u0275fac=function(i){return new(i||e)(p(hs),p($))},e.\u0275dir=F({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ie]});let t=e;return t})();var ME=(()=>{let e=class e extends Fu{constructor(n,i){super(n,i);let o=n._table?._getCellRole();o&&i.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(i){return new(i||e)(p(hs),p($))},e.\u0275dir=F({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ie]});let t=e;return t})(),Pu=class{constructor(){this.tasks=[],this.endTasks=[]}},Lu=new E("_COALESCED_STYLE_SCHEDULER"),m_=(()=>{let e=class e{constructor(n){this._currentSchedule=null,this._ngZone=g(L)}schedule(n){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(n)}scheduleEnd(n){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(n)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Pu,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let n=this._currentSchedule;this._currentSchedule=new Pu;for(let i of n.tasks)i();for(let i of n.endTasks)i()}this._currentSchedule=null})))}};e.\u0275fac=function(i){return new(i||e)(C(L))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();var g_=(()=>{let e=class e{constructor(n,i){this.template=n,this._differs=i}ngOnChanges(n){if(!this._columnsDiffer){let i=n.columns&&n.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(n){return this instanceof qa?n.headerCell.template:this instanceof __?n.footerCell.template:n.cell.template}};e.\u0275fac=function(i){return new(i||e)(p(Ue),p(Mi))},e.\u0275dir=F({type:e,features:[Ve]});let t=e;return t})(),qa=(()=>{let e=class e extends g_{get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}constructor(n,i,o){super(n,i),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(n){super.ngOnChanges(n)}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(p(Ue),p(Mi),p(Fn,8))},e.\u0275dir=F({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",G]},standalone:!0,features:[ye,ie,Ve]});let t=e;return t})(),__=(()=>{let e=class e extends g_{get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}constructor(n,i,o){super(n,i),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(n){super.ngOnChanges(n)}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(p(Ue),p(Mi),p(Fn,8))},e.\u0275dir=F({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",G]},standalone:!0,features:[ye,ie,Ve]});let t=e;return t})(),Hu=(()=>{let e=class e extends g_{constructor(n,i,o){super(n,i),this._table=o}};e.\u0275fac=function(i){return new(i||e)(p(Ue),p(Mi),p(Fn,8))},e.\u0275dir=F({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ie]});let t=e;return t})(),io=(()=>{let e=class e{constructor(n){this._viewContainer=n,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(p(We))},e.\u0275dir=F({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),v_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[io],encapsulation:2});let t=e;return t})();var y_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[io],encapsulation:2});let t=e;return t})(),AE=(()=>{let e=class e{constructor(n){this.templateRef=n,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(p(Ue))},e.\u0275dir=F({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),EE=["top","bottom","left","right"],p_=class{constructor(e,r,n,i,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let n=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let o=0;o{for(let i of n)this._removeStickyStyle(i,r)})}updateStickyColumns(e,r,n,i=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||n.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,i),l=this._getStickyStartColumnPositions(a,r),c=this._getStickyEndColumnPositions(a,n),d=r.lastIndexOf(!0),u=n.indexOf(!0),f=this.direction==="rtl",m=f?"right":"left",y=f?"left":"right";for(let A of e)for(let k=0;kr[k]?A:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:u===-1?[]:a.slice(u).map((A,k)=>n[k+u]?A:null).reverse()}))})}stickRows(e,r,n){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=n==="bottom"?e.slice().reverse():e,o=n==="bottom"?r.slice().reverse():r,s=[],a=[],l=[];for(let d=0,u=0;d{let n=e.querySelector("tfoot");n&&(r.some(i=>!i)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let i of r)e.style[i]="",e.classList.remove(this._borderCellCss[i]);EE.some(i=>r.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,n,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${n}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},n=0;for(let i of EE)e.style[i]&&(n+=r[i]);return n?`${n}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],i=e.children;for(let o=0;o0;o--)r[o]&&(n[o]=i,i+=e[o]);return n}};var ju=new E("CDK_SPL");var b_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Fn);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),w_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Fn);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),C_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Fn);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),x_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Fn);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var D_=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let n=this._elementRef.nativeElement.getAttribute("role"),i=n==="grid"||n==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}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=n,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(n){this._fixedLayout=n,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(n,i,o,s,a,l,c,d,u,f,m,y){this._differs=n,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=c,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=f,this._stickyPositioningListener=m,this._onDestroy=new N,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new q,this.viewChange=new Ze({start:0,end:Number.MAX_VALUE}),this._injector=g(Te),s||o.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!c.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((n,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(K(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}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(),bu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let n=this._dataDiffer.diff(this._renderRows);if(!n){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(n,i,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===ls.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),n.forEachIdentityChange(o=>{let s=i.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),Ct(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),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(){let n=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=IE(this._headerRowOutlet,"thead");o&&(o.style.display=n.length?"":"none")}let i=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,i,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let n=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=IE(this._footerRowOutlet,"tfoot");o&&(o.style.display=n.length?"":"none")}let i=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...n,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let l=0;l{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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()}_getAllRenderRows(){let n=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(a)?o.get(a):[];if(l.length){let c=l.shift();return c.dataIndex=i,c}else return{data:n,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Nu(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Nu(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Nu(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Nu(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let n=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&n.length>1,this._defaultRowDef=n[0]}_renderUpdatedColumns(){let n=(a,l)=>a||!!l.getColumnsDiff(),i=this._rowDefs.reduce(n,!1);i&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(n,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(n,!1);return s&&this._forceRenderFooterRows(),i||o||s}_switchDataSource(n){this._data=[],bu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),n||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=n}_observeRenderChanges(){if(!this.dataSource)return;let n;bu(this.dataSource)?n=this.dataSource.connect(this):xr(this.dataSource)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=V(this.dataSource)),this._renderChangeSubscription=n.pipe(K(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((n,i)=>this._renderRow(this._headerRowOutlet,n,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((n,i)=>this._renderRow(this._footerRowOutlet,n,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(n,i){let o=Array.from(i.columns||[]).map(l=>{let c=this._columnDefsByName.get(l);return c}),s=o.map(l=>l.sticky),a=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(n,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(n){let i=[];for(let o=0;o!s.when||s.when(i,n));else{let s=this._rowDefs.find(a=>a.when&&a.when(i,n))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(n,i){let o=n.rowDef,s={$implicit:n.data};return{templateRef:o.template,context:s,index:i}}_renderRow(n,i,o,s={}){let a=n.viewContainer.createEmbeddedView(i.template,s,o);return this._renderCellTemplateForItem(i,s),a}_renderCellTemplateForItem(n,i){for(let o of this._getCellTemplates(n))io.mostRecentCellOutlet&&io.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let n=this._rowOutlet.viewContainer;for(let i=0,o=n.length;i{let o=this._columnDefsByName.get(i);return n.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let n=(i,o)=>i||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(){let n=this._dir?this._dir.value:"ltr";this._stickyStyler=new p_(this._isNativeHtmlTable,this.stickyCssClass,n,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:V()).pipe(K(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(n){return n.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let n=this._customNoDataRow||this._noDataRow;if(!n)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(i){let s=o.createEmbeddedView(n.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(n._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(p(Mi),p(Ae),p($),Di("role"),p(gt,8),p(J),p(Oe),p(La),p(Lu),p(ln),p(ju,12),p(L,8))},e.\u0275cmp=R({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,s){if(i&1&&(Me(s,AE,5),Me(s,hs,5),Me(s,Hu,5),Me(s,qa,5),Me(s,__,5)),i&2){let a;U(a=z())&&(o._noDataRow=a.first),U(a=z())&&(o._contentColumnDefs=a),U(a=z())&&(o._contentRowDefs=a),U(a=z())&&(o._contentHeaderRowDefs=a),U(a=z())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,o){i&2&&H("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",G],fixedLayout:[2,"fixedLayout","fixedLayout",G]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[me([{provide:Fn,useExisting:e},{provide:La,useClass:cs},{provide:Lu,useClass:m_},{provide:ju,useValue:null}]),ye,ge],ngContentSelectors:uV,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(be(dV),W(0),W(1,1),T(2,fV,1,0)(3,hV,7,0)(4,pV,4,0)),i&2&&(h(2),b(o._isServer?2:-1),h(),b(o._isNativeHtmlTable?3:4))},dependencies:[w_,b_,x_,C_],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function Nu(t,e){return t.concat(Array.from(e))}function IE(t,e){let r=e.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let i=n.nodeType===1?n.nodeName:null;if(i===r)return n;if(i==="TABLE")break;n=n.parentNode}return null}var RE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[ja]});let t=e;return t})();var mV=[[["caption"]],[["colgroup"],["col"]],"*"],gV=["caption","colgroup, col","*"];function _V(t,e){t&1&&W(0,2)}function vV(t,e){t&1&&(v(0,"thead",0),Bt(1,1),w(),v(2,"tbody",2),Bt(3,3)(4,4),w(),v(5,"tfoot",0),Bt(6,5),w())}function yV(t,e){t&1&&Bt(0,1)(1,3)(2,4)(3,5)}var kE=(()=>{let e=class e extends D_{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[me([{provide:D_,useExisting:e},{provide:Fn,useExisting:e},{provide:Lu,useClass:m_},{provide:La,useClass:cs},{provide:ju,useValue:null}]),ie,ge],ngContentSelectors:gV,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(be(mV),W(0),W(1,1),T(2,_V,1,0)(3,vV,7,0)(4,yV,4,0)),i&2&&(h(2),b(o._isServer?2:-1),h(),b(o._isNativeHtmlTable?3:4))},dependencies:[w_,b_,x_,C_],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{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});let t=e;return t})(),OE=(()=>{let e=class e extends Vu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[me([{provide:Vu,useExisting:e}]),ie]});let t=e;return t})(),NE=(()=>{let e=class e extends Bu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[me([{provide:Bu,useExisting:e}]),ie]});let t=e;return t})();var FE=(()=>{let e=class e extends hs{get name(){return this._name}set name(n){this._setNameInput(n)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[me([{provide:hs,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ie]});let t=e;return t})(),PE=(()=>{let e=class e extends TE{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ie]});let t=e;return t})();var LE=(()=>{let e=class e extends ME{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ie]});let t=e;return t})();var jE=(()=>{let e=class e extends qa{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",G]},standalone:!0,features:[me([{provide:qa,useExisting:e}]),ye,ie]});let t=e;return t})();var VE=(()=>{let e=class e extends Hu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[me([{provide:Hu,useExisting:e}]),ie]});let t=e;return t})(),BE=(()=>{let e=class e extends v_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({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"],standalone:!0,features:[me([{provide:v_,useExisting:e}]),ie,ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[io],encapsulation:2});let t=e;return t})();var HE=(()=>{let e=class e extends y_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[me([{provide:y_,useExisting:e}]),ie,ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[io],encapsulation:2});let t=e;return t})();var $E=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[Ye,RE,Ye]});let t=e;return t})(),bV=9007199254740991,$u=class extends yu{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Ze([]),this._filter=new Ze(""),this._internalPageChanges=new N,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,n)=>{let i=r[n];if(Im(i)){let o=Number(i);return o{let i=n.active,o=n.direction;return!i||o==""?r:r.sort((s,a)=>{let l=this.sortingDataAccessor(s,i),c=this.sortingDataAccessor(a,i),d=typeof l,u=typeof c;d!==u&&(d==="number"&&(l+=""),u==="number"&&(c+=""));let f=0;return l!=null&&c!=null?l>c?f=1:l{let i=Object.keys(r).reduce((s,a)=>s+r[a]+"\u25EC","").toLowerCase(),o=n.trim().toLowerCase();return i.indexOf(o)!=-1},this._data=new Ze(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?at(this._sort.sortChange,this._sort.initialized):V(null),r=this._paginator?at(this._paginator.page,this._internalPageChanges,this._paginator.initialized):V(null),n=this._data,i=zt([n,this._filter]).pipe(B(([a])=>this._filterData(a))),o=zt([i,e]).pipe(B(([a])=>this._orderData(a))),s=zt([o,r]).pipe(B(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let n=Math.ceil(r.length/r.pageSize)-1||0,i=Math.min(r.pageIndex,n);i!==r.pageIndex&&(r.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};function CV(t,e){if(t&1&&(v(0,"span",0),x(1),w()),t&2){let r=_();h(),xt(" (+",(r.values.length||0)-1," ",r.values.length===2?"other":"others",") ")}}var UE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-multi-select-trigger"]],inputs:{values:"values"},standalone:!0,features:[ge],decls:2,vars:2,consts:[[1,"text-sm","opacity-80"]],template:function(i,o){i&1&&(x(0),T(1,CV,2,2,"span",0)),i&2&&(Y("",o.values[0]||"Filter",` -`),h(),b((o.values.length||0)>1?1:-1))},encapsulation:2});let t=e;return t})();var zE=()=>[];function DV(t,e){if(t&1&&(v(0,"mat-option",5),x(1),w()),t&2){let r=e.$implicit;D("value",r),h(),ke(r)}}function EV(t,e){if(t&1&&(v(0,"mat-form-field",2)(1,"mat-label"),x(2,"Season"),w(),v(3,"mat-select",3)(4,"mat-select-trigger"),M(5,"app-multi-select-trigger",4),w(),et(6,DV,2,2,"mat-option",5,it),w()()),t&2){let r,n=_(2);h(5),D("values",(r=n.parentFormGroup.value.season)!==null&&r!==void 0?r:Ti(1,zE)),h(),tt(n.Seasons)}}function IV(t,e){if(t&1&&(v(0,"mat-option",5),x(1),w()),t&2){let r=e.$implicit;D("value",r),h(),ke(r)}}function SV(t,e){if(t&1&&(v(0,"mat-form-field",2)(1,"mat-label"),x(2,"Weather"),w(),v(3,"mat-select",6)(4,"mat-select-trigger"),M(5,"app-multi-select-trigger",4),w(),et(6,IV,2,2,"mat-option",5,it),w()()),t&2){let r,n=_(2);h(5),D("values",(r=n.parentFormGroup.value.weather)!==null&&r!==void 0?r:Ti(1,zE)),h(),tt(n.Weathers)}}function TV(t,e){if(t&1&&(v(0,"mat-option",5),x(1),w()),t&2){let r=e.$implicit;D("value",r),h(),ke(r)}}function MV(t,e){if(t&1&&(v(0,"mat-form-field",2)(1,"mat-label"),x(2,"Location"),w(),v(3,"mat-select",7)(4,"mat-option",5),x(5,"No filter"),w(),et(6,TV,2,2,"mat-option",5,it),w()()),t&2){let r=_(2);h(4),D("value",null),h(2),tt(r.locations)}}function AV(t,e){if(t&1&&(ei(0,1),T(1,EV,8,2,"mat-form-field",2)(2,SV,8,2,"mat-form-field",2)(3,MV,8,1,"mat-form-field",2),ti()),t&2){let r=_();D("formGroup",r.parentFormGroup),h(),b(r.parentFormGroup.contains("season")?1:-1),h(),b(r.parentFormGroup.contains("weather")?2:-1),h(),b(r.parentFormGroup.contains("location")&&r.locations.length?3:-1)}}var uee=(()=>{let e=class e{constructor(){this.locations=[],this.showTableChange=new q,this.Seasons=yC,this.Weathers=bC,this.classes="my-3 flex gap-x-3 gap-y-4 flex-wrap"}setShowTable(n){this.showTable=n,this.showTableChange.emit(this.showTable)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-data-filter"]],hostVars:2,hostBindings:function(i,o){i&2&&Gr(o.classes)},inputs:{parentFormGroup:"parentFormGroup",locations:"locations",showTable:"showTable"},outputs:{showTableChange:"showTableChange"},decls:3,vars:2,consts:[["type","button",1,"btn",3,"click"],[3,"formGroup"],[1,"semi-transparent-form-field","grow","lg:grow-0","shrink-0","basis-auto"],["disableOptionCentering","","formControlName","season","multiple",""],[3,"values"],[3,"value"],["disableOptionCentering","","formControlName","weather","multiple",""],["disableOptionCentering","","formControlName","location"]],template:function(i,o){i&1&&(v(0,"button",0),le("click",function(){return o.setShowTable(!o.showTable)}),x(1),w(),T(2,AV,4,4,"ng-container",1)),i&2&&(h(),Y("",o.showTable?"Show grid":"Show table",` -`),h(),b(o.parentFormGroup?2:-1))},dependencies:[sE,Au,uE,fE,Nd,xx,Dx,ma,sg,UE],encapsulation:2});let t=e;return t})();var RV=["mat-sort-header",""],kV=["*"];function OV(t,e){if(t&1){let r=Ke();v(0,"div",2),le("@arrowPosition.start",function(){he(r);let i=_();return pe(i._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){he(r);let i=_();return pe(i._disableViewStateAnimation=!1)}),M(1,"div",3),v(2,"div",4),M(3,"div",5)(4,"div",6)(5,"div",7),w()()}if(t&2){let r=_();D("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),h(2),D("@indicator",r._getArrowDirectionState()),h(),D("@leftPointer",r._getArrowDirectionState()),h(),D("@rightPointer",r._getArrowDirectionState())}}var GE=new E("MAT_SORT_DEFAULT_OPTIONS"),Wa=(()=>{let e=class e{get direction(){return this._direction}set direction(n){this._direction=n}constructor(n){this._defaultOptions=n,this._initializedStream=new ji(1),this.sortables=new Map,this._stateChanges=new N,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new q,this.initialized=this._initializedStream}register(n){this.sortables.set(n.id,n)}deregister(n){this.sortables.delete(n.id)}sort(n){this.active!=n.id?(this.active=n.id,this.direction=n.start?n.start:this.start):this.direction=this.getNextSortDirection(n),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(n){if(!n)return"";let i=n?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=NV(n.start||this.start,i),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(i){return new(i||e)(p(GE,8))},e.\u0275dir=F({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",G],disabled:[2,"matSortDisabled","disabled",G]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ye,Ve]});let t=e;return t})();function NV(t,e){let r=["asc","desc"];return t=="desc"&&r.reverse(),e||r.push(""),r}var mr=KC.ENTERING+" "+ZC.STANDARD_CURVE,ps={indicator:_t("indicator",[Qe("active-asc, asc",_e({transform:"translateY(0px)"})),Qe("active-desc, desc",_e({transform:"translateY(10px)"})),ze("active-asc <=> active-desc",Xe(mr))]),leftPointer:_t("leftPointer",[Qe("active-asc, asc",_e({transform:"rotate(-45deg)"})),Qe("active-desc, desc",_e({transform:"rotate(45deg)"})),ze("active-asc <=> active-desc",Xe(mr))]),rightPointer:_t("rightPointer",[Qe("active-asc, asc",_e({transform:"rotate(45deg)"})),Qe("active-desc, desc",_e({transform:"rotate(-45deg)"})),ze("active-asc <=> active-desc",Xe(mr))]),arrowOpacity:_t("arrowOpacity",[Qe("desc-to-active, asc-to-active, active",_e({opacity:1})),Qe("desc-to-hint, asc-to-hint, hint",_e({opacity:.54})),Qe("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_e({opacity:0})),ze("* => asc, * => desc, * => active, * => hint, * => void",Xe("0ms")),ze("* <=> *",Xe(mr))]),arrowPosition:_t("arrowPosition",[ze("* => desc-to-hint, * => desc-to-active",Xe(mr,Ga([_e({transform:"translateY(-25%)"}),_e({transform:"translateY(0)"})]))),ze("* => hint-to-desc, * => active-to-desc",Xe(mr,Ga([_e({transform:"translateY(0)"}),_e({transform:"translateY(25%)"})]))),ze("* => asc-to-hint, * => asc-to-active",Xe(mr,Ga([_e({transform:"translateY(25%)"}),_e({transform:"translateY(0)"})]))),ze("* => hint-to-asc, * => active-to-asc",Xe(mr,Ga([_e({transform:"translateY(0)"}),_e({transform:"translateY(-25%)"})]))),Qe("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_e({transform:"translateY(0)"})),Qe("hint-to-desc, active-to-desc, desc",_e({transform:"translateY(-25%)"})),Qe("hint-to-asc, active-to-asc, asc",_e({transform:"translateY(25%)"}))]),allowChildren:_t("allowChildren",[ze("* <=> *",[Iu("@*",Eu(),{optional:!0})])])},Uu=(()=>{let e=class e{constructor(){this.changes=new N}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function FV(t){return t||new Uu}var PV={provide:Uu,deps:[[new $r,new ko,Uu]],useFactory:FV},qE=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(n){this._updateSortActionDescription(n)}constructor(n,i,o,s,a,l,c,d){this._intl=n,this._changeDetectorRef=i,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=l,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{let i=!!n;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(n){this._isDisabled()&&n||(this._showIndicatorHint=n,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(n){this._viewState=n||{},this._disableViewStateAnimation&&(this._viewState={toState:n.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(n){!this._isDisabled()&&(n.keyCode===32||n.keyCode===13)&&(n.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let n=this._viewState.fromState;return(n?`${n}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(n){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,n)),this._sortActionDescription=n}_handleStateChanges(){this._rerenderSubscription=at(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(p(Uu),p(Ae),p(Wa,8),p("MAT_SORT_HEADER_COLUMN_DEF",8),p(Zr),p($),p(Rd,8),p(GE,8))},e.\u0275cmp=R({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,o){i&1&&le("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),i&2&&(Pe("aria-sort",o._getAriaSortAttribute()),H("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",G],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",G]},exportAs:["matSortHeader"],standalone:!0,features:[ye,ge],attrs:RV,ngContentSelectors:kV,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,o){i&1&&(be(),v(0,"div",0)(1,"div",1),W(2),w(),T(3,OV,6,6,"div",2),w()),i&2&&(H("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),Pe("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),h(3),b(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ps.indicator,ps.leftPointer,ps.rightPointer,ps.arrowOpacity,ps.arrowPosition,ps.allowChildren]},changeDetection:0});let t=e;return t})(),WE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[PV],imports:[Ye]});let t=e;return t})();function E_(t){t||(Oo(E_),t=g(pn));let e=new Z(r=>t.onDestroy(r.next.bind(r)));return r=>r.pipe(K(e))}function jV(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Oo(jV);let n=r?e?.injector?.get(pn)??g(pn):null,i;e?.requireSync?i=Xn({kind:0}):i=Xn({kind:1,value:e?.initialValue});let o=t.subscribe({next:s=>i.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;i.set({kind:2,error:s})}});return n?.onDestroy(o.unsubscribe.bind(o)),td(()=>{let s=i();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new j(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}var YE=(()=>{let e=class e{constructor(){this.showTable=!1,this.listDetailComponent=H0.required(c_),this._database=g(_d),this._route=g(Fi),this.listDetail=g(fs),this.destroyRef=g(pn),this._route.queryParams.pipe(Je(1)).subscribe({next:n=>{this.selectedId=n.selectedId,this.onIdSelected&&this.selectedId&&this.onIdSelected(this.selectedId)}}),Ji(()=>{this.listDetailComponent().drawer?._closedStream.pipe(E_(this.destroyRef)).subscribe({next:()=>{this.selectedEntity=void 0}})})}showDetails(n){this.selectedEntity=n,this.listDetail.open()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["ng-component"]],viewQuery:function(i,o){i&1&&dw(o.listDetailComponent,c_,5),i&2&&uw()},decls:0,vars:0,template:function(i,o){},encapsulation:2});let t=e;return t})();var Wee=(()=>{let e=class e extends YE{constructor(){super(...arguments),this.reusedImages=[],this.selectedTabIndex=Xn(-1),this._router=g(kn),this._title=g(md)}updateUrl(n){typeof n!="string"&&this.selectedTabIndex.set(n.index);let i=typeof n=="string"?n:n.tab.textLabel,o=this.urlPathFromLabel?.(i)??i.toLowerCase().replaceAll(" ","");this._router.navigate(["..",o],{relativeTo:this._route}).then(()=>{this.updateTitle(i)})}activateTabFromRoute(n){this._route.paramMap.pipe(Je(1),Ie(i=>{let o=i.get("tabName");if(o){let s=n.map(a=>a.toLowerCase().replaceAll(" ","")).indexOf(o);this.selectedTabIndex.set(s),this.updateTitle(n[s])}else n[0]&&this.updateUrl(n[0])})).subscribe()}getMultipleIconNames(n){let i=n.filter((o,s)=>n.indexOf(o)!==s);return[...new Set(i)]}updateTitle(n){let i=this._title.getTitle();i&&this._title.setTitle(`${n} - ${i}`)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["ng-component"]],features:[ie],decls:0,vars:0,template:function(i,o){},encapsulation:2});let t=e;return t})();var VV=["innerTemplate"],BV=["*"];function HV(t,e){t&1&&W(0)}var QE=(()=>{let e=class e{constructor(){this.innerTemplate=null,this.active=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-module-sidebar-item"]],viewQuery:function(i,o){if(i&1&&Se(VV,5),i&2){let s;U(s=z())&&(o.innerTemplate=s.first)}},inputs:{uiIcon:"uiIcon",routerLink:"routerLink",exact:[2,"exact","exact",G],active:[2,"active","active",G]},features:[ye],ngContentSelectors:BV,decls:2,vars:0,consts:[["innerTemplate",""]],template:function(i,o){i&1&&(be(),T(0,HV,1,0,"ng-template",null,0,Yc))},encapsulation:2});let t=e;return t})();var $V=()=>[],UV=t=>({exact:t});function zV(t,e){if(t&1&&M(0,"app-ui-icon",2),t&2){let r=_(2).$implicit;D("uiIcon",r.uiIcon)}}function GV(t,e){}function qV(t,e){if(t&1){let r=Ke();v(0,"li")(1,"a",1),le("click",function(){he(r);let i=_(2);return pe(i.showMenu=!1)}),T(2,zV,1,1,"app-ui-icon",2)(3,GV,0,0,"ng-template",3),v(4,"button",4),le("click",function(i){he(r);let o=_(2);return pe(o.toggleMenu(i))}),x(5,"Menu "),w()()()}if(t&2){let r=_(),n=r.$implicit,i=r.$index,o=r.$count;h(),H("custom-active",n.active)("mb-4",i!==o-1),D("routerLink",n.routerLink)("routerLinkActive","active")("routerLinkActiveOptions",ni(9,UV,!!n.exact)),h(),b(n.uiIcon?2:-1),h(),D("ngTemplateOutlet",n.innerTemplate)}}function WV(t,e){}function YV(t,e){if(t&1&&(v(0,"li",0),T(1,WV,0,0,"ng-template",3),w()),t&2){let r=_().$implicit;h(),D("ngTemplateOutlet",r.innerTemplate)}}function QV(t,e){if(t&1&&T(0,qV,6,11,"li")(1,YV,2,1,"li",0),t&2){let r=e.$implicit;b(r.routerLink?0:-1),h(),b(r.routerLink?-1:1)}}var nte=(()=>{let e=class e{constructor(){this.showMenu=!1,this._setClass=!0}toggleMenu(n){n.preventDefault(),n.stopPropagation(),this.showMenu=!this.showMenu}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-module-sidebar"]],contentQueries:function(i,o,s){if(i&1&&Me(s,QE,4),i&2){let a;U(a=z())&&(o.viewChildren=a)}},hostVars:2,hostBindings:function(i,o){i&2&&H("app-module-sidebar",o._setClass)},decls:5,vars:3,consts:[[1,"module-sidebar-list-divider","mb-3","mt-9","text-xl","text-white/70","font-semibold"],[1,"app-module-sidebar-list-item",3,"click","routerLink","routerLinkActive","routerLinkActiveOptions"],[1,"!h-6",3,"uiIcon"],[3,"ngTemplateOutlet"],[1,"xl:hidden","block","ml-auto","m-[-18px]","border-l-2","px-5","h-[45px]",3,"click"]],template:function(i,o){if(i&1&&(v(0,"aside")(1,"nav")(2,"ul"),et(3,QV,2,2,null,null,it),w()()()),i&2){let s;h(2),H("hide-menu",!o.showMenu),h(),tt((s=o.viewChildren==null?null:o.viewChildren.toArray())!==null&&s!==void 0?s:Ti(2,$V))}},dependencies:[ad,li,CD,ci],styles:[`.app-module-sidebar{overflow:auto;display:block;padding-top:.5rem;padding-bottom:.5rem;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}@media (min-width: 1280px){.app-module-sidebar{height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}}.app-module-sidebar{background-color:#000000bf;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.app-module-sidebar .hide-menu .app-module-sidebar-list-item:not(.active):not(.custom-active),.app-module-sidebar .hide-menu .module-sidebar-list-divider{display:none}.app-module-sidebar{scrollbar-width:thin;scrollbar-color:#a1a1a1 #000000}.app-module-sidebar::-webkit-scrollbar{width:18px}.app-module-sidebar::-webkit-scrollbar-track{background:#000}.app-module-sidebar::-webkit-scrollbar-thumb{background-color:#a1a1a1;border-radius:10px;border:3px solid #000000}@media (min-width: 1280px){.module-sidebar-list-divider{display:block!important}}@media (min-width: 1536px){.app-module-sidebar{padding:60px 40px 60px 60px}}.app-module-sidebar-list-item{padding:8px;border-radius:30px;height:46px;border:3px solid #191919;display:flex;align-items:center;justify-content:center;column-gap:.5rem;--tw-border-opacity: 1;border-color:rgb(115 115 115 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.app-module-sidebar-list-item:hover{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.app-module-sidebar-list-item:hover .app-ui-icon{color:#645a54}.app-module-sidebar-list-item .app-ui-icon{color:#3f3834}.app-module-sidebar-list-item.active,.app-module-sidebar-list-item.custom-active{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.app-module-sidebar-list-item.active .app-ui-icon,.app-module-sidebar-list-item.custom-active .app-ui-icon{color:#e4b07e}.app-module-sidebar-list-item:not(.active):not(.custom-active) button{display:none}@media (min-width: 1280px){.app-module-sidebar-list-item{display:flex!important;height:50px}} -`],encapsulation:2});let t=e;return t})();var gr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-money"]],inputs:{amount:[2,"amount","amount",Ot]},features:[ye],decls:3,vars:3,consts:[["src","assets/ui/images/icons/T_IconCoin.png",1,"app-money-icon"]],template:function(i,o){i&1&&(x(0),lt(1,"number"),M(2,"img",0)),i&2&&ke(mt(1,1,o.amount))},dependencies:[ld],styles:["[_nghost-%COMP%]{white-space:nowrap}.app-money-icon[_ngcontent-%COMP%]{height:1em;display:inline-block;vertical-align:text-top;margin-left:2px}"]});let t=e;return t})();function ZV(t,e){if(t&1&&M(0,"app-money",1)(1,"app-money",1)(2,"app-money",1)(3,"app-money",1)(4,"app-money",1),t&2){let r,n,i,o,s=_(2);D("amount",s.item().sellPrice),h(),D("amount",(r=s.item().qualities.bronze)==null?null:r.sellPrice),h(),D("amount",(n=s.item().qualities.silver)==null?null:n.sellPrice),h(),D("amount",(i=s.item().qualities.gold)==null?null:i.sellPrice),h(),D("amount",(o=s.item().qualities.osmium)==null?null:o.sellPrice)}}function KV(t,e){if(t&1&&(M(0,"app-item-icon",0)(1,"app-item-icon",0)(2,"app-item-icon",0)(3,"app-item-icon",0)(4,"app-item-icon",0),T(5,ZV,5,5)),t&2){let r=_();D("itemName",r.item().iconName)("quality",r.QUALITY.BASE),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.BRONZE),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.SILVER),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.GOLD),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.OSMIUM),h(),b(r.includePrices()?5:-1)}}function XV(t,e){if(t&1&&M(0,"app-money",1),t&2){let r=_(2);D("amount",r.item().sellPrice)}}function JV(t,e){if(t&1&&(M(0,"app-item-icon",0),T(1,XV,1,1,"app-money",1)),t&2){let r=_();D("itemName",r.item().iconName)("quality",r.QUALITY.BASE),h(),b(r.includePrices()?1:-1)}}var ZE=(()=>{let e=class e{constructor(){this.QUALITY=At,this.item=He.required(),this.includePrices=He(!1,{transform:G}),this.showOnlyBase=He(!1,{transform:G})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-quality-grid"]],hostAttrs:[1,"app-quality-grid"],hostVars:2,hostBindings:function(i,o){i&2&&H("!grid-cols-1",o.showOnlyBase())},inputs:{item:[1,"item"],includePrices:[1,"includePrices"],showOnlyBase:[1,"showOnlyBase"]},decls:2,vars:2,consts:[[3,"itemName","quality"],[1,"text-black",3,"amount"]],template:function(i,o){i&1&&T(0,KV,6,11)(1,JV,2,3),i&2&&(b(o.showOnlyBase()?-1:0),h(),b(o.showOnlyBase()?1:-1))},dependencies:[ct,gr],styles:[`.app-quality-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:center;column-gap:.75rem}.app-quality-grid .app-item-icon{background:#7f7f7f4d;border-radius:16px;padding:3px} -`],encapsulation:2});let t=e;return t})();function tB(t,e){if(t&1&&(v(0,"div",2),M(1,"app-item-icon",3),v(2,"span"),x(3),w()()),t&2){let r=_(2).$implicit;h(),D("itemName",r.item.iconName),h(2),ke(r.item.displayName)}}function nB(t,e){if(t&1&&T(0,tB,4,2,"div",2),t&2){let r=_().$implicit;b(r.item?0:-1)}}function iB(t,e){t&1&&x(0," (all the same) ")}function rB(t,e){if(t&1&&(v(0,"div",2),M(1,"app-item-icon",4),v(2,"span"),x(3),T(4,iB,1,0),w()()),t&2){let r=_(2).$implicit;h(),D("itemName",r.genericItem.iconName),h(2),Y("",r.genericItem.displayName," "),h(),b(r.shouldBeSameItem?4:-1)}}function oB(t,e){if(t&1&&T(0,rB,5,3,"div",2),t&2){let r=_().$implicit;b(r.genericItem?0:-1)}}function sB(t,e){if(t&1&&(v(0,"div",0),T(1,nB,1,1)(2,oB,1,1),v(3,"div",1),x(4),w()(),M(5,"hr")),t&2){let r=e.$implicit,n=_();h(),b(n.isGenericEntry(r)?-1:1),h(),b(n.isGenericEntry(r)?2:-1),h(2),ke(r.amount)}}var Gu=(()=>{let e=class e{constructor(){this.itemList=He.required()}isGenericEntry(n){return"genericItem"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-item-list"]],inputs:{itemList:[1,"itemList"]},decls:2,vars:0,consts:[[1,"flex","justify-between","py-1"],[1,"flex","items-center"],[1,"flex","gap-x-3","items-center"],[1,"size-10",3,"itemName"],[1,"w-10",3,"itemName"]],template:function(i,o){i&1&&et(0,sB,6,3,null,null,it),i&2&&tt(o.itemList())},dependencies:[ct]});let t=e;return t})();var KE=(()=>{let e=class e{transform(n){return!!n&&"id"in n&&"displayName"in n&&"price"in n&&"sellPrice"in n&&n.id.toLowerCase().startsWith("item_")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isItem",type:e,pure:!0});let t=e;return t})();var XE=(()=>{let e=class e{transform(n,i){return i in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"has",type:e,pure:!0});let t=e;return t})();var JE=(()=>{let e=class e{transform(n){return!!n&&"key"in n&&"displayName"in n&&"iconName"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isMinimalTagBasedItem",type:e,pure:!0});let t=e;return t})();var eI=(()=>{let e=class e extends JE{transform(n){return super.transform(n)&&"items"in n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275pipe=ae({name:"isTagBasedItem",type:e,pure:!0});let t=e;return t})();var tI=(()=>{let e=class e{transform(n){return n.map(i=>({item:i,amount:1}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"toItemListEntries",type:e,pure:!0});let t=e;return t})();var fB=["*"],hB=t=>["/database",t];function pB(t,e){if(t&1&&(v(0,"span",9),x(1),lt(2,"addSpacesToPascalCase"),w()),t&2){let r=_();h(),ke(mt(2,1,r.displayKey))}}function mB(t,e){if(t&1&&(v(0,"span",10)(1,"a",14),M(2,"app-ui-icon",15),w()()),t&2){let r=_(),n=_();h(),D("routerLink",ni(2,hB,r.id)),h(),D("uiIcon",n.uiIcon.DATABASE)}}function gB(t,e){if(t&1&&(v(0,"span",12),x(1),w()),t&2){let r=_();h(),ke(r.description)}}function _B(t,e){if(t&1&&(M(0,"app-item-list",13),lt(1,"toItemListEntries")),t&2){let r=_();D("itemList",mt(1,1,r.items))}}function vB(t,e){if(t&1&&M(0,"app-quality-grid",16),t&2){let r=_(2);D("item",r)}}function yB(t,e){if(t&1&&M(0,"app-money",18),t&2){let r=_(3);D("amount",r.sellPrice)}}function bB(t,e){if(t&1&&(v(0,"div",17),x(1," Sells for: "),T(2,yB,1,1,"app-money",18),lt(3,"has"),w()),t&2){let r=_(2);h(2),b(r&&vw(3,1,r,"sellPrice")?2:-1)}}function wB(t,e){if(t&1&&(T(0,vB,1,1,"app-quality-grid",16),lt(1,"isItem"),lt(2,"keyvalue"),T(3,bB,4,4,"div",17)),t&2){let r=_(),n=_();b(mt(1,1,r)&&mt(2,3,r.qualities).length&&!n.hideQualityGrid()?0:3)}}function CB(t,e){if(t&1){let r=Ke();v(0,"app-card",0)(1,"div",1),M(2,"app-to-do-toggle",2),v(3,"button",3),le("click",function(){he(r);let i=_();return pe(i.listDetails.close())}),M(4,"app-ui-icon",4),w()(),M(5,"app-item-icon",5),v(6,"div",6)(7,"div",7)(8,"div",8),x(9),w(),T(10,pB,3,3,"span",9),lt(11,"isTagBasedItem"),w(),T(12,mB,3,4,"span",10),lt(13,"isTagBasedItem"),w(),M(14,"hr",11),T(15,gB,2,1,"span",12),lt(16,"isTagBasedItem"),W(17),T(18,_B,2,3,"app-item-list",13),lt(19,"isTagBasedItem"),T(20,wB,4,5),lt(21,"isTagBasedItem"),w()}if(t&2){let r=e,n=_();h(2),D("amount",n.amount())("quality",n.quality())("item",n.item())("context",n.context()),h(2),D("uiIcon",n.uiIcon.CROSS),h(),Vp("itemName",r.iconName),D("amount",n.amount()),h(4),ke(r.displayName),h(),b(mt(11,13,r)?-1:10),h(2),b(mt(13,15,r)?-1:12),h(3),b(mt(16,17,r)?-1:15),h(3),b(mt(19,19,r)?18:-1),h(2),b(mt(21,21,r)?-1:20)}}var wte=(()=>{var e;let r=class r{constructor(){Pn(this,e);this.item=He.required(),this.context=He(),this.amount=He(),this.quality=He(),this.hideQualityGrid=He(!1,{transform:G}),this.uiIcon=fe,this.UiIcon=fe,this.listDetails=g(fs),_r(this,e,g(_d)),this.computedItem=td(()=>{let i=this.item();if(this.isItem(i))return i;{let o=Ft(this,e).getItems().find(s=>s.id===nn(i));if(o)return o;if(this.isCustomEntry(i))return i;if(this.isTagBasedItem(i))return Ft(this,e).getTagBasedItems().find(s=>s.key===nn(i));console.error(`couldn't find ${nn(i)} in base-card`);return}})}isTagBasedItem(i){return"key"in i}isCustomEntry(i){return"id"in i&&!i.id.toLowerCase().startsWith("item_")}isItem(i){return"sellPrice"in i&&"price"in i&&"description"in i&&i.id.toLowerCase().startsWith("item_")}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=R({type:r,selectors:[["app-base-item-card"]],inputs:{item:[1,"item"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"],hideQualityGrid:[1,"hideQualityGrid"]},ngContentSelectors:fB,decls:1,vars:1,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],[3,"amount","quality","item","context"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["cardIcon","",3,"amount","itemName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"text-accent","text-2xl"],["matTooltip","Open in database","matTooltipPosition","before"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"mt-6",3,"itemList"],[3,"routerLink"],[1,"focus-visible:!text-black","hover:!text-black",3,"uiIcon"],["includePrices","",1,"mt-6",3,"item"],[1,"flex"],[1,"ml-2","text-black",3,"amount"]],template:function(o,s){if(o&1&&(be(),T(0,CB,22,23,"app-card",0)),o&2){let a;b((a=s.computedItem())?0:-1,a)}},dependencies:[li,Su,QD,ci,ct,SD,ZE,gr,Gu,Gw,ZD,KE,XE,eI,tI],encapsulation:2});let t=r;return t})();var Dte=(()=>{let e=class e{transform(n){return Math.max(...n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"max",type:e,pure:!0});let t=e;return t})();var nI={transformMenu:_t("transformMenu",[Qe("void",_e({opacity:0,transform:"scale(0.8)"})),ze("void => enter",Xe("120ms cubic-bezier(0, 0, 0.2, 1)",_e({opacity:1,transform:"scale(1)"}))),ze("* => void",Xe("100ms 25ms linear",_e({opacity:0})))]),fadeInItems:_t("fadeInItems",[Qe("showing",_e({opacity:1})),ze("void => *",[_e({opacity:0}),Xe("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Gte=nI.fadeInItems,qte=nI.transformMenu;var xB=new E("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition()}});function DB(t){return()=>t.scrollStrategies.reposition()}var EB={provide:xB,deps:[$t],useFactory:DB};var iI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[EB],imports:[gn,Wm,Ye,us,On,Ye]});let t=e;return t})();var IB=[[["app-module-sidebar"]],"*"],SB=["app-module-sidebar","*"],Qte=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-sidebar-container"]],ngContentSelectors:SB,decls:4,vars:0,consts:[[1,"h-full","grid","module-grid"],[1,"px-safe","xl:h-main","scrollbar-w-thin","xl:overflow-auto"]],template:function(i,o){i&1&&(be(IB),v(0,"div",0),W(1),v(2,"div",1),W(3,1),w()())},styles:[`.module-grid{grid-template-columns:1fr;grid-auto-rows:min-content}.module-grid .app-module-sidebar{width:100%}@media (min-width: 1280px){.module-grid .app-module-sidebar{width:300px}}@media (min-width: 1536px){.module-grid .app-module-sidebar{width:400px}}@media (min-width: 1280px){.module-grid{grid-template-columns:300px calc(100% - 300px);grid-auto-rows:auto}.app-module-sidebar{min-height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}}@media (min-width: 1536px){.module-grid{grid-template-columns:400px calc(100% - 400px)}} -`],encapsulation:2});let t=e;return t})();var rI=(()=>{let e=class e{constructor(){this.minimalItem=He.required(),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-inline-minimal-item"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-inline-minimal-item",o._setClass)},inputs:{minimalItem:[1,"minimalItem"]},decls:2,vars:2,consts:[[3,"itemName"]],template:function(i,o){i&1&&(M(0,"app-item-icon",0),x(1)),i&2&&(D("itemName",o.minimalItem().iconName),h(),Y(" ",o.minimalItem().displayName,` -`))},dependencies:[ct],styles:[`.app-inline-minimal-item{display:inline-flex;column-gap:3px}.app-inline-minimal-item .app-item-icon img{height:1.4em;width:auto;display:inline-block;vertical-align:text-bottom;margin:-2px 2px -2px 0} -`],encapsulation:2});let t=e;return t})();var MB=["*"],oI=(()=>{let e=class e{constructor(){this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-responsive-table"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-responsive-table",o._setClass)},ngContentSelectors:MB,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},styles:[`.app-responsive-table{display:block;table-layout:fixed;overflow:auto;max-height:100vh;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity));background:#f7f2e8;border-radius:5px}@media (pointer: coarse){.app-responsive-table{max-width:calc(100% - 24px)}}.app-responsive-table table{width:100%}.app-responsive-table tr:nth-child(odd) td{background:#fcfbf8}.app-responsive-table tr:nth-child(2n) td{background:#fcfbf8}.app-responsive-table .can-expand tr:nth-child(4n+1) td,.app-responsive-table .can-expand tr:nth-child(4n+2) td{background:#fcfbf8}.app-responsive-table .can-expand tr:nth-child(4n+3) td,.app-responsive-table .can-expand tr:nth-child(4n+4) td{background:#f7f2e8}.app-responsive-table .app-item-icon{width:40px}.app-responsive-table th{background:#f7f2e8!important}.app-responsive-table th.mat-header-cell,.app-responsive-table td.mat-cell,.app-responsive-table td.mat-footer-cell{padding-right:16px}.app-responsive-table .icon-col,.app-responsive-table .text-col,.app-responsive-table .list-col{vertical-align:top}.app-responsive-table .icon-col{padding-top:6px}.app-responsive-table .text-col{padding-top:14px}.app-responsive-table .list-col{padding-top:12px}@media (min-width: 640px){.app-responsive-table{max-height:unset}}@media (min-width: 1024px){.app-responsive-table{margin-left:0;max-width:100%}} -`],encapsulation:2});let t=e;return t})();var tne=(()=>{let e=class e{transform(n){return"pickupableItem"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isCrop",type:e,pure:!0});let t=e;return t})();function RB(t,e){if(t&1&&x(0),t&2){let r=_(2);xt(" ",r.processingTime.day," day",r.processingTime.day>1?"s":""," ")}}function kB(t,e){if(t&1&&x(0),t&2){let r=_(2);xt(" ",r.processingTime.time.hours," hour",r.processingTime.time.hours>1?"s":""," ")}}function OB(t,e){if(t&1&&x(0),t&2){let r=_(2);xt(" ",r.processingTime.time.minutes," minute",r.processingTime.time.minutes>1?"s":""," ")}}function NB(t,e){t&1&&x(0," instant ")}function FB(t,e){if(t&1&&T(0,RB,1,2)(1,kB,1,2)(2,OB,1,2)(3,NB,1,0),t&2){let r=_();b(r.processingTime.day?0:-1),h(),b(r.processingTime.time.hours?1:-1),h(),b(r.processingTime.time.minutes?2:-1),h(),b(r.processingTime.day===0&&r.processingTime.time.hours===0&&r.processingTime.time.minutes===0?3:-1)}}var qu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-processing-time"]],inputs:{processingTime:"processingTime"},decls:1,vars:1,template:function(i,o){i&1&&T(0,FB,4,4),i&2&&b(o.processingTime?0:-1)},encapsulation:2});let t=e;return t})();function PB(t,e){if(t&1&&M(0,"app-rarity-icon",1),t&2){let r=_().$implicit;D("quality",r.from)}}function LB(t,e){if(t&1&&M(0,"app-ui-icon",2),t&2){let r=_(3);D("uiIcon",r.uiIcon.EMPTY_STAR)}}function jB(t,e){if(t&1&&(T(0,PB,1,1,"app-rarity-icon",1)(1,LB,1,1,"app-ui-icon",2),M(2,"app-ui-icon",3)(3,"app-rarity-icon",4),v(4,"div",5)(5,"span",6),M(6,"app-processing-time",7),w()()),t&2){let r=e.$implicit,n=_(2);b(r.from!==n.quality.BASE?0:-1),h(),b(r.from===n.quality.BASE?1:-1),h(),D("uiIcon",n.uiIcon.ARROW_RIGHT),h(),D("quality",r.to),h(3),D("processingTime",r)}}function VB(t,e){if(t&1&&(v(0,"div",0),et(1,jB,7,5,null,null,it),w()),t&2){let r=_();h(),tt(r.refinements)}}var rne=(()=>{let e=class e{constructor(){this.quality=At,this.uiIcon=fe}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-refinements-list"]],inputs:{refinements:"refinements"},decls:1,vars:1,consts:[[1,"refinement-list"],[1,"size-6",3,"quality"],[1,"!size-6","!flex",3,"uiIcon"],[1,"!size-4","!flex","my-1","mx-2",3,"uiIcon"],[1,"w-6",3,"quality"],[1,"text-right"],[1,"text-black"],[3,"processingTime"]],template:function(i,o){i&1&&T(0,VB,3,0,"div",0),i&2&&b(o.refinements?0:-1)},dependencies:[ci,hr,qu],styles:["[_nghost-%COMP%]{display:block}.refinement-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:max-content max-content max-content 1fr}"]});let t=e;return t})();function BB(t,e){if(t&1&&(M(0,"app-ui-icon",0),v(1,"span",1),M(2,"app-processing-time",2),w()),t&2){let r=_(2);D("uiIcon",r.uiIcon.EMPTY_STAR),h(2),D("processingTime",r.baseProcessingTime)}}function HB(t,e){if(t&1&&(M(0,"app-rarity-icon",3),v(1,"span",1),M(2,"app-processing-time",2),w()),t&2){let r=_().$implicit,n=_();D("quality",r),h(2),D("processingTime",n.baseProcessingTime)}}function $B(t,e){if(t&1&&(M(0,"app-rarity-icon",3),v(1,"span",1),M(2,"app-processing-time",2),w()),t&2){let r=_().$implicit;D("quality",r),h(2),D("processingTime",e)}}function UB(t,e){if(t&1&&T(0,BB,3,2)(1,HB,3,2)(2,$B,3,2),t&2){let r,n=e.$implicit,i=_();b(n===i.quality.BASE&&i.baseProcessingTime?0:-1),h(),b(n!==i.quality.BASE&&i.baseProcessingTime&&!(i.processingTimePerQualities!=null&&i.processingTimePerQualities[n])?1:-1),h(),b((r=i.processingTimePerQualities==null?null:i.processingTimePerQualities[n])?2:-1,r)}}var cne=(()=>{let e=class e{constructor(){this.qualityValues=Object.values(At),this.quality=At,this.uiIcon=fe}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-processing-time-per-quality"]],inputs:{baseProcessingTime:"baseProcessingTime",processingTimePerQualities:"processingTimePerQualities"},decls:2,vars:0,consts:[[1,"!w-6","!h-6","!flex",3,"uiIcon"],[1,"text-black","text-right"],[3,"processingTime"],[1,"!w-6","!h-6",3,"quality"]],template:function(i,o){i&1&&et(0,UB,3,3,null,null,it),i&2&&tt(o.qualityValues)},dependencies:[ci,hr,qu],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}"]});let t=e;return t})();function zB(t,e){if(t&1&&M(0,"app-rarity-icon",5),t&2){let r=_(3).$implicit;D("quality",r.quality)}}function GB(t,e){if(t&1&&(v(0,"div",2),M(1,"app-item-icon",3),v(2,"span",4),x(3),w(),T(4,zB,1,1,"app-rarity-icon",5),w()),t&2){let r=_(2).$implicit;h(),D("itemName",r.item.iconName),h(2),ke(r.item.displayName),h(),b(r.quality?4:-1)}}function qB(t,e){if(t&1&&T(0,GB,5,3,"div",2),t&2){let r=_().$implicit;b(r.item?0:-1)}}function WB(t,e){t&1&&x(0," (all the same) ")}function YB(t,e){if(t&1&&(v(0,"div",6),M(1,"app-item-icon",3),v(2,"span",7),x(3),T(4,WB,1,0),w()()),t&2){let r=_(2).$implicit;h(),D("itemName",r.genericItem.iconName),h(2),Y("",r.genericItem.displayName," "),h(),b(r.shouldBeSameItem?4:-1)}}function QB(t,e){if(t&1&&T(0,YB,5,3,"div",6),t&2){let r=_().$implicit;b(r.genericItem?0:-1)}}function ZB(t,e){if(t&1&&(v(0,"div",0),T(1,qB,1,1)(2,QB,1,1),v(3,"div",1),x(4),w()()),t&2){let r=e.$implicit,n=_();h(),b(n.isGenericEntry(r)?-1:1),h(),b(n.isGenericEntry(r)?2:-1),h(2),ke(r.amount)}}var fne=(()=>{let e=class e extends Gu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["app-table-item-list"]],features:[ie],decls:2,vars:0,consts:[[1,"flex","justify-between","mb-1"],[1,"ml-2","flex","items-center"],[1,"flex","gap-2","items-center"],[1,"!size-7",3,"itemName"],[1,"ml-1","whitespace-nowrap"],[1,"!size-4",3,"quality"],[1,"flex","gap-x-3","items-center"],[1,"whitespace-nowrap"]],template:function(i,o){i&1&&et(0,ZB,5,3,"div",0,it),i&2&&tt(o.itemList())},dependencies:[ct,hr]});let t=e;return t})();var pne=(()=>{let e=class e{transform(n){return[...n.ingredients,...n.genericIngredients]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"craftingRecipeIngredients",type:e,pure:!0});let t=e;return t})();var gne=(()=>{let e=class e{transform(n){let i=[...n.ingredients];return n.genericIngredients.length&&n.genericIngredients.forEach(o=>{let s={shouldBeSameItem:!1,amount:o.amount,genericItem:o.genericItem};i.push(s)}),i}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"cookingRecipeIngredients",type:e,pure:!0});let t=e;return t})();var vne=(()=>{let e=class e{transform(n){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"castToMinimalItemArray",type:e,pure:!0});let t=e;return t})();var bne=(()=>{let e=class e{transform(n){let i=[n.input,...n.additionalInput];if(n.genericInput){let o=ue(S({},n.genericInput),{shouldBeSameItem:!0});i.push(o)}return i}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"itemProcessingIngredients",type:e,pure:!0});let t=e;return t})();var aI=(()=>{let e=class e{constructor(){this.displayedColumns=[],this.displayHeaderColumns=[],this._dataSource=[],this.sortingDataAccessor=this.sortingDataAccessor?.bind(this),this.sortHelper=this.sortHelper.bind(this)}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource=n}ngAfterViewInit(){this.matDataSource&&this.sort&&(this.matDataSource.sort=this.sort,this.sortingDataAccessor&&(this.matDataSource.sortingDataAccessor=this.sortingDataAccessor))}ngOnChanges(n){let i=n.dataSource.currentValue;i&&this.setupDataSource(i)}ngOnInit(){this.setupDataSource(this.dataSource)}setupDataSource(n){this.matDataSource=new $u(n),this.displayedColumns=[...this.BASE_DISPLAY_COLUMNS],this.displayHeaderColumns=this.displayedColumns.filter(i=>i!=="icon")}sortHelper(n,i){if(!n)return null;if(Array.isArray(n))return n.includes("Spring")?1:n.includes("Summer")?2:n.includes("Fall")?3:n.includes("Fall")?4:5;switch(i){case"outputName":case"displayName":return n.displayName;case"sellPrice":return n.sellPrice??-1;default:return null}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["ng-component"]],viewQuery:function(i,o){if(i&1&&Se(Wa,5),i&2){let s;U(s=z())&&(o.sort=s.first)}},inputs:{dataSource:"dataSource"},features:[Ve],decls:0,vars:0,template:function(i,o){},encapsulation:2});let t=e;return t})();function KB(t,e){if(t&1&&(v(0,"td",11),M(1,"app-item-icon",12),w()),t&2){let r=e.$implicit;h(),D("itemName",r.iconName)}}function XB(t,e){t&1&&(v(0,"th",13),x(1," Output "),w()),t&2&&Pe("colspan",2)}function JB(t,e){if(t&1&&(v(0,"td",14),x(1),w()),t&2){let r=e.$implicit;h(),Y("",r.displayName," ")}}function eH(t,e){t&1&&(v(0,"th",15),x(1," Sell price"),w())}function tH(t,e){if(t&1&&(v(0,"td",16),M(1,"app-money",17),w()),t&2){let r=e.$implicit;h(),D("amount",r.sellPrice)}}function nH(t,e){t&1&&M(0,"tr",18)}function iH(t,e){t&1&&M(0,"tr",19)}function rH(t,e){if(t&1&&(v(0,"table",0),ei(1,1),T(2,KB,2,1,"td",2),ti(),ei(3,3),T(4,XB,2,1,"th",4)(5,JB,2,1,"td",5),ti(),ei(6,6),T(7,eH,2,0,"th",7)(8,tH,2,1,"td",8),ti(),T(9,nH,1,0,"tr",9)(10,iH,1,0,"tr",10),w()),t&2){let r=_();D("dataSource",r.matDataSource),h(9),D("matHeaderRowDef",r.displayHeaderColumns)("matHeaderRowDefSticky",!0),h(),D("matRowDefColumns",r.displayedColumns)}}var Sne=(()=>{let e=class e extends aI{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","sellPrice"],this.sortingDataAccessor=(n,i)=>this.sortHelper(n,i)??0}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["app-non-specialized-table"]],features:[ie],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(i,o){i&1&&(v(0,"app-responsive-table"),T(1,rH,11,4,"table",0),w()),i&2&&(h(),b(o.matDataSource?1:-1))},dependencies:[kE,NE,jE,FE,OE,VE,PE,LE,BE,HE,Wa,qE,ct,gr,oI],encapsulation:2});let t=e;return t})();var Mne=(()=>{let e=class e{transform(n){return"dropData"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isBaseCrop",type:e,pure:!0});let t=e;return t})();var Rne=(()=>{let e=class e{transform(n){return"fishName"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isFish",type:e,pure:!0});let t=e;return t})();var lI=(()=>{let e=class e{transform(n){return`${n.day} ${n.season}`+(n.year<0?"":`, Year ${n.year}`)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"ingameDate",type:e,pure:!0});let t=e;return t})();var One=(()=>{let e=class e{transform(n){return`${n.hours.toString().padStart(2,"0")}:${n.minutes.toString().padStart(2,"0")}`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"ingameTime",type:e,pure:!0});let t=e;return t})();var Fne=(()=>{let e=class e{transform(n){return["F","E","D","C","B","A","S","SS"][n]??"unknown"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"townrank",type:e,pure:!0});let t=e;return t})();var Lne=(()=>{let e=class e{transform(n){return!!n&&"id"in n&&"displayName"in n&&"iconName"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isMinimalItem",type:e,pure:!0});let t=e;return t})();var zne=(()=>{let e=class e{constructor(){this.portraitName=He.required(),this.npcKey=He.required(),this.version=g(_n).getSettings().useBeta?"beta":"live",this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-npc-portrait"]],hostVars:2,hostBindings:function(i,o){i&2&&H("npc-portrait",o._setClass)},inputs:{portraitName:[1,"portraitName"],npcKey:[1,"npcKey"]},decls:1,vars:4,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/placeholder.png'",3,"src"]],template:function(i,o){i&1&&M(0,"img",0),i&2&&Gs("src","assets/",o.version,"/portraits/",o.npcKey(),"/thumbs/",o.portraitName(),".webp",Si)},encapsulation:2});let t=e;return t})();var Kne=(()=>{let e=class e{constructor(){this.portraitName=He.required(),this.npcKey=He.required(),this.version=g(_n).getSettings().useBeta?"beta":"live",this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-npc-head-portrait"]],hostVars:2,hostBindings:function(i,o){i&2&&H("npc-head-portrait",o._setClass)},inputs:{portraitName:[1,"portraitName"],npcKey:[1,"npcKey"]},decls:1,vars:4,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/no-head-portrait.webp'",3,"src"]],template:function(i,o){i&1&&M(0,"img",0),i&2&&Gs("src","assets/",o.version,"/head-portraits/",o.npcKey(),"/",o.portraitName(),".webp",Si)},encapsulation:2});let t=e;return t})();var sH=t=>({selectedId:t}),aH=()=>["/journal","notes","letters"];function lH(t,e){t&1&&x(0,` Increases max stamina -`)}function cH(t,e){t&1&&x(0,` Increases max health -`)}function dH(t,e){if(t&1&&(x(0),M(1,"app-item-icon",0),x(2)),t&2){let r,n=_();Y(" Adds ",((r=n.effect.meta.quantity)!==null&&r!==void 0?r:1)>1?n.effect.meta.quantity+"x ":""," "),h(),D("itemName",n.effect.meta.item.iconName),h(),Y(" ",n.effect.meta.item.displayName," to inventory ")}}function uH(t,e){if(t&1&&(v(0,"div"),x(1," Unlocks "),M(2,"app-item-icon",1),x(3),w()),t&2){let r=_();h(2),D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," crafting recipe ")}}function fH(t,e){if(t&1&&(v(0,"div"),x(1," Unlocks "),M(2,"app-item-icon",1),x(3),w()),t&2){let r=_();h(2),D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," cooking recipe ")}}function hH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Unlocks ",r.effect.meta.utensil," utensil ")}}function pH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Sets quests fact '",r.effect.meta.factName,"' ")}}function mH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Unlocks 1 skill point for ",r.effect.meta.mastery," mastery ")}}function gH(t,e){if(t&1&&(v(0,"div"),x(1," Adds "),M(2,"app-money",2),w()),t&2){let r=_();h(2),D("amount",r.effect.meta.amount)}}function _H(t,e){if(t&1&&(M(0,"app-item-icon",1),x(1)),t&2){let r=_(2);D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," ")}}function vH(t,e){if(t&1&&x(0),t&2){let r=_(2);Y(" items of category ",r.effect.meta.category," ")}}function yH(t,e){if(t&1&&(v(0,"div"),x(1),T(2,_H,2,2)(3,vH,1,1),w()),t&2){let r=_();h(),Y(" Removes ",r.effect.meta.amount,"x "),h(),b(r.hasMinimalItem(r.effect.meta)?2:-1),h(),b(r.hasMinimalItem(r.effect.meta)?-1:3)}}function bH(t,e){if(t&1&&(x(0," Sends mail '"),v(1,"a",3),x(2),w(),x(3)),t&2){let r=_();h(),D("queryParams",ni(4,sH,r.effect.meta.mail.mailId))("routerLink",Ti(6,aH)),h(),ke(r.effect.meta.mail.title),h(),Y("' ",r.effect.meta.dayDelay>0?" after "+r.effect.meta.dayDelay+" day(s)":""," ")}}function wH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Activates quest '",r.effect.meta.questId,"' ")}}function CH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Completes quest '",r.effect.meta.questId,"' ")}}function xH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Updates schedules of NPCs: '",r.effect.meta.npcIds.join(", "),"' ")}}function DH(t,e){if(t&1&&x(0),t&2){let r,n=_();xt(" Sets state of '",(r=n.effect.meta.customName)!==null&&r!==void 0?r:n.effect.meta.id,"' to '",n.effect.meta.state,"' ")}}function EH(t,e){if(t&1&&(v(0,"div"),x(1," Unlocks special item "),M(2,"app-item-icon",4),x(3),w()),t&2){let r=_();h(2),D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," ")}}var Jne=(()=>{let e=class e{hasMinimalItem(n){return"item"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-effect"]],inputs:{effect:"effect"},decls:16,vars:16,consts:[[1,"!w-7","-my-1","translate-y-1","!inline-block",3,"itemName"],[1,"!w-7","ml-1","-my-1","translate-y-1","!inline-block",3,"itemName"],[1,"!w-7","-my-1","translate-y-1","ml-1","!inline-block",3,"amount"],[1,"underline",3,"queryParams","routerLink"],[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"]],template:function(i,o){i&1&&T(0,lH,1,0)(1,cH,1,0)(2,dH,3,3)(3,uH,4,2,"div")(4,fH,4,2,"div")(5,hH,1,1)(6,pH,1,1)(7,mH,1,1)(8,gH,3,1,"div")(9,yH,4,3,"div")(10,bH,4,7)(11,wH,1,1)(12,CH,1,1)(13,xH,1,1)(14,DH,1,2)(15,EH,4,2,"div"),i&2&&(b(o.effect.type==="BoostMaxStamina"?0:-1),h(),b(o.effect.type==="BoostMaxHealth"?1:-1),h(),b(o.effect.type==="AddItemToInventory"?2:-1),h(),b(o.effect.type==="UnlockCraftingRecipe"?3:-1),h(),b(o.effect.type==="UnlockCookingRecipe"?4:-1),h(),b(o.effect.type==="UnlockCookingUtensil"?5:-1),h(),b(o.effect.type==="SetQuestFactValue"?6:-1),h(),b(o.effect.type==="ConsumeItemMastery"?7:-1),h(),b(o.effect.type==="VaryMoney"?8:-1),h(),b(o.effect.type==="RemoveItemFromInventory"?9:-1),h(),b(o.effect.type==="SendMailToPlayer"?10:-1),h(),b(o.effect.type==="SetQuestActive"?11:-1),h(),b(o.effect.type==="SetQuestCompleted"?12:-1),h(),b(o.effect.type==="UpdateNpcSchedule"?13:-1),h(),b(o.effect.type==="ChangeObjectState"?14:-1),h(),b(o.effect.type==="UnlockSpecialItem"?15:-1))},dependencies:[li,ct,gr],encapsulation:2});let t=e;return t})();var IH=(t,e)=>e.id,SH=t=>({selectedId:t}),TH=()=>["/journal","notes","letters"];function MH(t,e){if(t&1&&(v(0,"div"),x(1," Achievement "),M(2,"app-item-icon",0),x(3),w()),t&2){let r=_();h(2),D("itemName",r.requirement.meta.achievement.iconName),h(),Y(" ",r.requirement.meta.achievement.title," unlocked ")}}function AH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Mount ",r.requirement.meta.inverted?"not ":""," acquired ")}}function RH(t,e){t&1&&x(0," Game in developer editor ")}function kH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Reached ",r.requirement.meta.expectedHeartLevel," hearts with any NPC ")}}function OH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Viewed ",r.requirement.meta.cutsceneTopic," cutscene ")}}function NH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Marriage ",r.requirement.meta.inverted?"hasn't been ":"","proposed ")}}function FH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Unlocked ",r.requirement.meta.types," giants ")}}function PH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Quest fact ",r.requirement.meta.factName," set ")}}function LH(t,e){if(t&1&&(v(0,"div"),x(1," Acquired special item "),M(2,"app-item-icon",0),x(3),w()),t&2){let r=_();h(2),D("itemName",r.requirement.meta.item.iconName),h(),Y(" ",r.requirement.meta.item.displayName," ")}}function jH(t,e){if(t&1&&(x(0),lt(1,"ingameDate"),lt(2,"ingameDate")),t&2){let r=_();Hp(" Date is ",r.requirement.meta.inverted?"not ":"","between ",mt(1,3,r.requirement.meta.from)," and ",mt(2,5,r.requirement.meta.to)," ")}}function VH(t,e){if(t&1&&(v(0,"div"),x(1),M(2,"app-item-icon",1),x(3),w()),t&2){let r=_();h(),Y(" Has ",r.requirement.meta.amount,"x "),h(),D("itemName",r.requirement.meta.item.iconName),h(),xt(" ",r.requirement.meta.item.displayName,"",r.requirement.meta.requiredQuality?" of "+r.requirement.meta.requiredQuality+" quality":""," in inventory ")}}function BH(t,e){if(t&1&&x(0),t&2){let r=_();xt(" Has ",r.requirement.meta.amount,"x items of category ",r.requirement.meta.categoryName," in inventory ")}}function HH(t,e){if(t&1&&x(0),t&2){let r,n=_();xt(" State of '",(r=n.requirement.meta.customName)!==null&&r!==void 0?r:n.requirement.meta.id,"' is '",n.requirement.meta.state,"' ")}}function $H(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Quest '",r.requirement.meta.questId,"' is active ")}}function UH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Temple has reached level ",r.requirement.meta.level," ")}}function zH(t,e){if(t&1&&x(0),t&2){let r=_();xt(" Has reached level ",r.requirement.meta.level," in ",r.requirement.meta.mine," mine ")}}function GH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Has upgraded farm house to level ",r.requirement.meta.level," ")}}function qH(t,e){t&1&&(v(0,"span",2),x(1," not"),w())}function WH(t,e){if(t&1&&(x(0," Has"),T(1,qH,2,0,"span",2),x(2)),t&2){let r=_();h(),b(r.requirement.meta.inverted?1:-1),h(),Y(" unlocked cooking utensil ",r.requirement.meta.utensil," ")}}function YH(t,e){if(t&1&&x(0),t&2){let r=_();xt(" Has reached level ",r.requirement.meta.level," in ",r.requirement.meta.mastery," mastery ")}}function QH(t,e){if(t&1&&x(0),t&2){let r=_();xt(" Has reached ",r.requirement.meta.expectedHeartLevel," hearts with ",r.requirement.meta.npcKey," ")}}function ZH(t,e){t&1&&x(0," at least ")}function KH(t,e){if(t&1&&(x(0),T(1,ZH,1,0),x(2)),t&2){let r=_();Y(" Quest fact '",r.requirement.meta.factName,"' has "),h(),b(r.requirement.meta.comparator==="MoreEqual"?1:-1),h(),Y(" a value of ",r.requirement.meta.value," ")}}function XH(t,e){if(t&1&&(x(0," Player has read '"),v(1,"a",3),x(2),w(),x(3,"' ")),t&2){let r=_();h(),D("queryParams",ni(3,SH,r.requirement.meta.mailId))("routerLink",Ti(5,TH)),h(),ke(r.requirement.meta.title)}}function JH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Player received dinosaur hologram reward for ",r.requirement.meta.dinosaursName," ")}}function e$(t,e){if(t&1&&(M(0,"app-inline-minimal-item",4),x(1)),t&2){let r=e.$implicit,n=e.$index,i=e.$count;D("minimalItem",r),h(),Y("",n!==i-1?", ":""," ")}}function t$(t,e){if(t&1&&(x(0),et(1,e$,2,2,null,null,IH)),t&2){let r=_();Y(" Player shipped the following item(s) 50x",r.requirement.meta.includeAllQualities?" (any quality)":"",": "),h(),tt(r.requirement.meta.itemsToShip)}}var cI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-requirements"]],inputs:{requirement:"requirement"},decls:24,vars:24,consts:[[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"],[1,"!w-7","ml-1","-my-1","translate-y-1","mr-0.5","!inline-block",3,"itemName"],[1,"font-bold"],[1,"underline",3,"queryParams","routerLink"],[3,"minimalItem"]],template:function(i,o){i&1&&T(0,MH,4,2,"div")(1,AH,1,1)(2,RH,1,0)(3,kH,1,1)(4,OH,1,1)(5,NH,1,1)(6,FH,1,1)(7,PH,1,1)(8,LH,4,2,"div")(9,jH,3,7)(10,VH,4,4,"div")(11,BH,1,2)(12,HH,1,2)(13,$H,1,1)(14,UH,1,1)(15,zH,1,2)(16,GH,1,1)(17,WH,3,2)(18,YH,1,2)(19,QH,1,2)(20,KH,3,3)(21,XH,4,6)(22,JH,1,1)(23,t$,3,1),i&2&&(b(o.requirement.type==="IsAchievementCompleted"?0:-1),h(),b(o.requirement.type==="MountAcquired"?1:-1),h(),b(o.requirement.type==="EditorOnly"?2:-1),h(),b(o.requirement.type==="CountNPCHeartLevel"?3:-1),h(),b(o.requirement.type==="IsCutsceneTriggered"?4:-1),h(),b(o.requirement.type==="MarriageHasProposed"?5:-1),h(),b(o.requirement.type==="IsGiantUnlocked"?6:-1),h(),b(o.requirement.type==="QuestFact"?7:-1),h(),b(o.requirement.type==="SpecialItem"?8:-1),h(),b(o.requirement.type==="DateSeasonRange"?9:-1),h(),b(o.requirement.type==="ItemInInventory"?10:-1),h(),b(o.requirement.type==="ItemWithCategoryInInventory"?11:-1),h(),b(o.requirement.type==="ObjectState"?12:-1),h(),b(o.requirement.type==="QuestActive"?13:-1),h(),b(o.requirement.type==="TempleLevel"?14:-1),h(),b(o.requirement.type==="CompleteMining"?15:-1),h(),b(o.requirement.type==="FarmHouseLevel"?16:-1),h(),b(o.requirement.type==="HasCookingUtensil"?17:-1),h(),b(o.requirement.type==="MasteryLevel"?18:-1),h(),b(o.requirement.type==="NPCHeartLevel"?19:-1),h(),b(o.requirement.type==="QuestFactCompare"?20:-1),h(),b(o.requirement.type==="IsMailRead"?21:-1),h(),b(o.requirement.type==="DinoHologramItemRewardClaimed"?22:-1),h(),b(o.requirement.type==="ShipToUnlock"?23:-1))},dependencies:[li,ct,rI,lI],encapsulation:2});let t=e;return t})();var rie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-merit-points"]],inputs:{amount:[2,"amount","amount",Ot]},features:[ye],decls:3,vars:3,consts:[["src","assets/ui/images/icons/T_Icon_Merit.png",1,"app-merit-points-icon"]],template:function(i,o){i&1&&(x(0),lt(1,"number"),M(2,"img",0)),i&2&&ke(mt(1,1,o.amount))},dependencies:[ld],styles:["[_nghost-%COMP%]{white-space:nowrap}.app-merit-points-icon[_ngcontent-%COMP%]{height:1em;display:inline-block;vertical-align:text-top;margin-left:2px}"]});let t=e;return t})();var i$=[[["","expandableHeader",""]],"*"],r$=["[expandableHeader]","*"],cie=(()=>{let e=class e{constructor(){this.open=!1}toggle(){this.open=!this.open}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-expandable"]],inputs:{open:[2,"open","open",G]},features:[ye],ngContentSelectors:r$,decls:5,vars:4,consts:[[1,"expandable-header"],[1,"expandable-body","grid","transition-all","duration-500","ease-in-out"],[1,"overflow-hidden"]],template:function(i,o){i&1&&(be(i$),v(0,"div",0),W(1),w(),v(2,"div",1)(3,"div",2),W(4,1),w()()),i&2&&(h(2),H("grid-rows-0fr",!o.open)("grid-rows-1fr",o.open))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();var uie=(()=>{let e=class e{transform(n){return n&&n.replace(/<[^>]+>/ig,"")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"removeTags",type:e,pure:!0});let t=e;return t})();function o$(t,e){if(t&1&&(v(0,"div",1),M(1,"app-item-icon",3),v(2,"span"),x(3),w(),v(4,"span"),x(5),w()()),t&2){let r=_().$implicit;h(),D("itemName",r.item.iconName),h(2),ke(r.item.displayName),h(2),Y("x",r.amount,"")}}function s$(t,e){if(t&1&&(v(0,"div",0),T(1,o$,6,3,"div",1),v(2,"div",2),x(3),w()(),M(4,"hr")),t&2){let r=e.$implicit;h(),b(r.item?1:-1),h(2),Y("",r.chance,"%")}}var hie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-chance-per-item-list"]],inputs:{chances:"chances"},decls:2,vars:0,consts:[[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"flex","items-center"],[1,"size-10",3,"itemName"]],template:function(i,o){i&1&&et(0,s$,5,2,null,null,it),i&2&&tt(o.chances)},dependencies:[ct],encapsulation:2});let t=e;return t})();function a$(t,e){if(t&1&&(v(0,"div",1),M(1,"app-item-icon",3),v(2,"span",4),x(3),w()()),t&2){let r=_().$implicit;h(),D("itemName",r.item.iconName),h(2),xt("",r.item.displayName,"\xA0x",r.amount,"")}}function l$(t,e){if(t&1&&(v(0,"div",0),T(1,a$,4,3,"div",1),v(2,"div",2),x(3),w()()),t&2){let r=e.$implicit;h(),b(r.item?1:-1),h(2),Y("",r.chance,"%")}}var mie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-chance-per-item-table-list"]],inputs:{chances:"chances"},decls:2,vars:0,consts:[[1,"flex","justify-between","mb-1"],[1,"flex","gap-2","items-center"],[1,"ml-2","flex","items-center"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap"]],template:function(i,o){i&1&&et(0,l$,4,2,"div",0,it),i&2&&tt(o.chances)},dependencies:[ct],encapsulation:2});let t=e;return t})();var vie=(()=>{let e=class e{transform(n){return n&&nn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"entityKey",type:e,pure:!0});let t=e;return t})();function c$(t,e){if(t&1&&x(0),t&2){let r=_(2);Y(" Unlock requirements (",r.requirements.type==="And"?"all":"any"," of them): ")}}function d$(t,e){t&1&&x(0," Unlock requirement: ")}function u$(t,e){if(t&1&&M(0,"app-requirements",2),t&2){let r=e.$implicit;D("requirement",r)}}function f$(t,e){if(t&1&&(v(0,"div",0),T(1,c$,1,1)(2,d$,1,0),v(3,"div",1),et(4,u$,1,1,"app-requirements",2,it),w()()),t&2){let r=_();h(),b(r.requirements.requirements.length>1?1:-1),h(),b(r.requirements.requirements.length<2?2:-1),h(2),tt(r.requirements.requirements)}}var bie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-requirements-list"]],inputs:{requirements:"requirements"},decls:1,vars:1,consts:[[1,"my-2"],[1,"flex","flex-col","text-black"],[3,"requirement"]],template:function(i,o){i&1&&T(0,f$,6,2,"div",0),i&2&&b(o.requirements&&o.requirements.requirements.length?0:-1)},dependencies:[cI],encapsulation:2});let t=e;return t})();var Ooe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[cC(dC())],imports:[gn,ID,hE,iI,DE,_E,$E,GD,Nx,WE]});let t=e;return t})();export{S as a,ue as b,mI as c,Ft as d,Pn as e,_r as f,ms as g,N as h,Et as i,V as j,po as k,B as l,zt as m,Bn as n,mo as o,sf as p,dn as q,Dr as r,at as s,$I as t,xe as u,mi as v,un as w,Je as x,Bi as y,zI as z,Hn as A,WI as B,de as C,It as D,rt as E,K as F,Ie as G,j as H,bt as I,I as J,te as K,E as L,C as M,g as N,$r as O,R as P,ne as Q,F as R,wc as S,ht as T,Ve as U,he as V,pe as W,op as X,mq as Y,Re as Z,Di as _,Te as $,pn as aa,gq as ba,He as ca,$ as da,q as ea,en as fa,kt as ga,In as ha,_q as ia,Si as ja,h as ka,p as la,l0 as ma,Ue as na,Mo as oa,L as pa,We as qa,Xn as ra,H0 as sa,ie as ta,wq as ua,ye as va,T as wa,Cq as xa,xq as ya,Pe as za,D as Aa,Kt as Ba,H as Ca,Gr as Da,Dq as Ea,b as Fa,it as Ga,et as Ha,tt as Ia,v as Ja,w as Ka,M as La,ei as Ma,ti as Na,Bt as Oa,Ke as Pa,zs as Qa,le as Ra,_ as Sa,be as Ta,W as Ua,Vp as Va,Wc as Wa,Bp as Xa,Me as Ya,Se as Za,U as _a,z as $a,dw as ab,uw as bb,Ki as cb,x as db,ke as eb,Y as fb,xt as gb,Hp as hb,zR as ib,Eq as jb,GR as kb,me as lb,ge as mb,Ti as nb,ni as ob,pw as pb,lt as qb,mt as rb,vw as sb,Yc as tb,Xc as ub,Sn as vb,Iq as wb,Ae as xb,G as yb,Ot as zb,td as Ab,Ji as Bb,Sq as Cb,J as Db,er as Eb,sd as Fb,zq as Gb,ad as Hb,Gq as Ib,zw as Jb,Gw as Kb,ld as Lb,qq as Mb,Wq as Nb,gn as Ob,am as Pb,Yq as Qb,hm as Rb,uC as Sb,CW as Tb,xW as Ub,md as Vb,UO as Wb,IW as Xb,SW as Yb,At as Zb,fe as _b,kW as $b,OW as ac,PW as bc,LW as cc,yC as dc,$W as ec,UW as fc,bC as gc,ZY as hc,xm as ic,KY as jc,XY as kc,nn as lc,t9 as mc,n9 as nc,_n as oc,CC as pc,_d as qc,on as rc,si as sc,Mn as tc,Oe as uc,I9 as vc,ri as wc,KO as xc,gt as yc,ds as zc,Li as Ac,Ha as Bc,pr as Cc,wu as Dc,xu as Ec,Ht as Fc,$a as Gc,LD as Hc,Kg as Ic,$t as Jc,Ua as Kc,e_ as Lc,Sm as Mc,Pm as Nc,LC as Oc,Zr as Pc,Ye as Qc,Od as Rc,XC as Sc,qm as Tc,Yo as Uc,Wm as Vc,Nd as Wc,B7 as Xc,H7 as Yc,ui as Zc,xZ as _c,_t as $c,Xe as ad,DZ as bd,_e as cd,ze as dd,VD as ed,BD as fd,EZ as gd,ha as hd,JN as id,cx as jd,Jr as kd,Pd as ld,Oi as md,xx as nd,Dx as od,fa as pd,ox as qd,rg as rd,DF as sd,sQ as td,SF as ud,MF as vd,ma as wd,sg as xd,OF as yd,FF as zd,LF as Ad,aQ as Bd,Nx as Cd,t_ as Dd,rs as Ed,Rn as Fd,Fi as Gd,uP as Hd,gD as Id,kn as Jd,li as Kd,CD as Ld,ID as Md,ci as Nd,hr as Od,ct as Pd,QE as Qd,nte as Rd,SD as Sd,gr as Td,ZE as Ud,fs as Vd,Su as Wd,GD as Xd,YD as Yd,QD as Zd,Gu as _d,ZD as $d,wte as ae,Dte as be,Au as ce,i_ as de,r_ as ee,sE as fe,aE as ge,uE as he,fE as ie,hE as je,Qte as ke,_E as le,c_ as me,Xj as ne,rV as oe,vJ as pe,DE as qe,rI as re,oI as se,kE as te,OE as ue,NE as ve,FE as we,PE as xe,LE as ye,jE as ze,VE as Ae,BE as Be,HE as Ce,$E as De,tne as Ee,qu as Fe,rne as Ge,cne as He,fne as Ie,pne as Je,gne as Ke,vne as Le,bne as Me,uee as Ne,Wa as Oe,qE as Pe,WE as Qe,aI as Re,Sne as Se,Mne as Te,E_ as Ue,jV as Ve,YE as We,Wee as Xe,Rne as Ye,lI as Ze,One as _e,Fne as $e,Lne as af,zne as bf,Kne as cf,Jne as df,cI as ef,rie as ff,cie as gf,uie as hf,hie as if,mie as jf,vie as kf,bie as lf,Ooe as mf}; diff --git a/chunk-M22KCL2Z.js b/chunk-5Y7JXUU2.js similarity index 98% rename from chunk-M22KCL2Z.js rename to chunk-5Y7JXUU2.js index 51054ff840..bfecb906b7 100644 --- a/chunk-M22KCL2Z.js +++ b/chunk-5Y7JXUU2.js @@ -1 +1 @@ -import{$a as f,Aa as _,Ca as C,Da as N,I as T,Ja as r,K as z,Ka as d,L as w,La as u,P as D,Pa as S,Q as R,Qa as B,Qc as I,Ra as p,Ta as X,U as M,Ua as Q,Uc as E,V as h,W as k,X as O,Y as V,Yc as $,Za as g,_ as L,_a as v,cb as H,da as P,ea as y,ga as j,hd as J,ka as x,kd as W,la as s,lb as K,mb as Z,pa as q,va as U,xb as G,yb as b,za as F,zb as Y}from"./chunk-4KZEYPV3.js";var te=["input"],ne=["label"],ae=["*"],ie=new w("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var a=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(a||{}),re={provide:J,useExisting:T(()=>oe),multi:!0},A=class{},de=0,ee=ce(),oe=(()=>{let i=class i{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let o=new A;return o.source=this,o.checked=e,o}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,o,c,n,m,l){this._elementRef=e,this._changeDetectorRef=o,this._ngZone=c,this._animationMode=m,this._options=l,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"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new y,this.indeterminateChange=new y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=a.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(n)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let o=e!=this._indeterminate;this._indeterminate=e,o&&(this._indeterminate?this._transitionCheckState(a.Indeterminate):this._transitionCheckState(this.checked?a.Checked:a.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let o=this._currentCheckState,c=this._getAnimationTargetElement();if(!(o===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let n=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.classList.remove(n)},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(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?a.Checked:a.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,o){if(this._animationMode==="NoopAnimations")return"";switch(e){case a.Init:if(o===a.Checked)return this._animationClasses.uncheckedToChecked;if(o==a.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case a.Unchecked:return o===a.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case a.Checked:return o===a.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case a.Indeterminate:return o===a.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let o=this._inputElement;o&&(o.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};i.\u0275fac=function(o){return new(o||i)(s(P),s(G),s(q),L("tabindex"),s(j,8),s(ie,8))},i.\u0275cmp=D({type:i,selectors:[["mat-checkbox"]],viewQuery:function(o,c){if(o&1&&(g(te,5),g(ne,5),g(E,5)),o&2){let n;v(n=f())&&(c._inputElement=n.first),v(n=f())&&(c._labelElement=n.first),v(n=f())&&(c.ripple=n.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(o,c){o&2&&(B("id",c.id),F("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),C("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",b],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",b],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",b],disabled:[2,"disabled","disabled",b],indeterminate:[2,"indeterminate","indeterminate",b]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:W,useExisting:i,multi:!0}]),U,M,Z],ngContentSelectors:ae,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[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"]],template:function(o,c){if(o&1){let n=S();X(),r(0,"div",3),p("click",function(l){return h(n),k(c._preventBubblingFromLabel(l))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(n),k(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(n),k(c._onBlur())})("click",function(){return h(n),k(c._onInputClick())})("change",function(l){return h(n),k(c._onInteractionEvent(l))}),d(),u(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),u(9,"path",10),d(),V(),u(10,"div",11),d(),u(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(o&2){let n=H(2);_("labelPosition",c.labelPosition),x(4),C("mdc-checkbox--selected",c.checked),_("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),F("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),_("matRippleTrigger",n)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),_("for",c.inputId)}},dependencies:[E,$],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-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)}.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-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.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%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=i;return t})();var Te=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=R({type:i}),i.\u0275inj=z({imports:[oe,I,I]});let t=i;return t})();export{oe as a,Te as b}; +import{$ as L,$a as v,Aa as F,Ab as Y,Ba as _,Da as C,Ea as N,I as T,K as z,Ka as r,L as w,La as d,Ma as u,P as D,Q as R,Qa as S,Ra as B,Sa as p,Ua as X,Uc as I,V as M,Va as Q,W as h,X as k,Y as O,Yc as E,Z as V,_a as g,ab as f,ad as $,db as H,ea as P,fa as y,ha as j,la as x,ld as J,ma as s,mb as K,nb as Z,od as W,qa as q,wa as U,yb as G,zb as b}from"./chunk-PYTDIKHQ.js";var te=["input"],ne=["label"],ae=["*"],ie=new w("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var a=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(a||{}),re={provide:J,useExisting:T(()=>oe),multi:!0},A=class{},de=0,ee=ce(),oe=(()=>{let i=class i{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let o=new A;return o.source=this,o.checked=e,o}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,o,c,n,m,l){this._elementRef=e,this._changeDetectorRef=o,this._ngZone=c,this._animationMode=m,this._options=l,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"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new y,this.indeterminateChange=new y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=a.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(n)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let o=e!=this._indeterminate;this._indeterminate=e,o&&(this._indeterminate?this._transitionCheckState(a.Indeterminate):this._transitionCheckState(this.checked?a.Checked:a.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let o=this._currentCheckState,c=this._getAnimationTargetElement();if(!(o===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(o,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let n=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.classList.remove(n)},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(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?a.Checked:a.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,o){if(this._animationMode==="NoopAnimations")return"";switch(e){case a.Init:if(o===a.Checked)return this._animationClasses.uncheckedToChecked;if(o==a.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case a.Unchecked:return o===a.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case a.Checked:return o===a.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case a.Indeterminate:return o===a.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let o=this._inputElement;o&&(o.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};i.\u0275fac=function(o){return new(o||i)(s(P),s(G),s(q),L("tabindex"),s(j,8),s(ie,8))},i.\u0275cmp=D({type:i,selectors:[["mat-checkbox"]],viewQuery:function(o,c){if(o&1&&(g(te,5),g(ne,5),g(E,5)),o&2){let n;v(n=f())&&(c._inputElement=n.first),v(n=f())&&(c._labelElement=n.first),v(n=f())&&(c.ripple=n.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(o,c){o&2&&(B("id",c.id),F("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),C("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",b],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",b],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",b],disabled:[2,"disabled","disabled",b],indeterminate:[2,"indeterminate","indeterminate",b]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:W,useExisting:i,multi:!0}]),U,M,Z],ngContentSelectors:ae,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[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"]],template:function(o,c){if(o&1){let n=S();X(),r(0,"div",3),p("click",function(l){return h(n),k(c._preventBubblingFromLabel(l))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(n),k(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(n),k(c._onBlur())})("click",function(){return h(n),k(c._onInputClick())})("change",function(l){return h(n),k(c._onInteractionEvent(l))}),d(),u(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),u(9,"path",10),d(),V(),u(10,"div",11),d(),u(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(o&2){let n=H(2);_("labelPosition",c.labelPosition),x(4),C("mdc-checkbox--selected",c.checked),_("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),F("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),_("matRippleTrigger",n)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),_("for",c.inputId)}},dependencies:[E,$],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-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)}.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-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.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%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=i;return t})();var Te=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=R({type:i}),i.\u0275inj=z({imports:[oe,I,I]});let t=i;return t})();export{oe as a,Te as b}; diff --git a/chunk-5YYTL4ON.js b/chunk-5YYTL4ON.js new file mode 100644 index 0000000000..4ed84a6164 --- /dev/null +++ b/chunk-5YYTL4ON.js @@ -0,0 +1 @@ +import{i as a}from"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import"./chunk-PYTDIKHQ.js";export{a as CraftingModule}; diff --git a/chunk-ZGSE3C3O.js b/chunk-767JIGWH.js similarity index 85% rename from chunk-ZGSE3C3O.js rename to chunk-767JIGWH.js index 30a84446b1..ad9233b51a 100644 --- a/chunk-ZGSE3C3O.js +++ b/chunk-767JIGWH.js @@ -1 +1 @@ -import{_b as e}from"./chunk-4KZEYPV3.js";var l=[{icon:e.LOVE,label:"Favorite",preferenceField:"favoritePreferences"},{icon:e.LOVE,label:"Love",preferenceField:"lovePreferences"},{icon:e.LIKE,label:"Like",preferenceField:"likePreferences"},{icon:e.NEUTRAL,label:"Neutral",preferenceField:"neutralPreferences"},{icon:e.DISLIKE,label:"Dislike",preferenceField:"dislikePreferences"},{icon:e.HATE,label:"Hate",preferenceField:"hatePreferences"}];export{l as a}; +import{cc as e}from"./chunk-PYTDIKHQ.js";var l=[{icon:e.LOVE,label:"Favorite",preferenceField:"favoritePreferences"},{icon:e.LOVE,label:"Love",preferenceField:"lovePreferences"},{icon:e.LIKE,label:"Like",preferenceField:"likePreferences"},{icon:e.NEUTRAL,label:"Neutral",preferenceField:"neutralPreferences"},{icon:e.DISLIKE,label:"Dislike",preferenceField:"dislikePreferences"},{icon:e.HATE,label:"Hate",preferenceField:"hatePreferences"}];export{l as a}; diff --git a/chunk-7FKT42WR.js b/chunk-7FKT42WR.js deleted file mode 100644 index f59747f9bc..0000000000 --- a/chunk-7FKT42WR.js +++ /dev/null @@ -1 +0,0 @@ -import{a as K,b as z,i as H}from"./chunk-OHRRW4BO.js";import{Aa as d,Ca as k,Fa as l,Ga as C,Ha as x,Ia as f,Ib as N,Ja as a,Ka as p,Kb as L,Ke as G,La as _,Le as O,N as R,P as v,Pa as b,Pd as M,Ra as w,Sa as r,V as F,W as S,We as q,Z as D,_d as V,ca as E,db as y,eb as B,fb as P,ka as n,mb as T,me as j,mf as I,qb as u,qc as A,rb as g,ta as $,wa as s}from"./chunk-4KZEYPV3.js";function W(e,i){e&1&&_(0,"hr",2)}function X(e,i){if(e&1&&(_(0,"app-item-list",0),s(1,W,1,0,"hr",2)),e&2){let t=i.$implicit,o=i.$index,m=i.$count;d("itemList",t),n(),l(o!==m-1?1:-1)}}function Y(e,i){if(e&1&&(a(0,"span",1),y(1," Either of the following"),p(),x(2,X,2,2,null,null,C)),e&2){let t=r();n(2),f(t.mixingRecipe().eitherOrIngredients)}}function Z(e,i){if(e&1&&(a(0,"div",5),_(1,"app-item-icon",7),a(2,"span"),y(3),p()()),e&2){let t=r().$implicit;n(),d("itemName",t.iconName),n(2),B(t.displayName)}}function ee(e,i){if(e&1&&(a(0,"div",4),s(1,Z,4,2,"div",5),a(2,"div",6),y(3),p()(),_(4,"hr")),e&2){let t=i.$implicit,o=r().$implicit;n(),l(t?1:-1),n(2),P("as ",o.key,"")}}function ie(e,i){if(e&1&&(a(0,"div",3),x(1,ee,5,2,null,null,C),u(3,"castToMinimalItemArray"),p()),e&2){let t=i.$implicit;n(),f(g(3,0,t.value))}}function te(e,i){if(e&1&&(a(0,"span",1),y(1," The following counting as"),p(),x(2,ie,4,2,"div",3,C),u(4,"keyvalue")),e&2){let t=r();n(2),f(g(4,0,t.mixingRecipe().additionsToGenerics))}}var J=(()=>{let i=class i{constructor(){this.mixingRecipe=E.required()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=v({type:i,selectors:[["app-mixing-recipe"]],inputs:{mixingRecipe:[1,"mixingRecipe"]},standalone:!0,features:[T],decls:4,vars:5,consts:[[1,"mb-3",3,"itemList"],[1,"text-black"],[1,"my-5"],[1,"mb-3"],[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"flex","items-center"],[1,"w-10",3,"itemName"]],template:function(m,c){m&1&&(_(0,"app-item-list",0),u(1,"cookingRecipeIngredients"),s(2,Y,4,0)(3,te,5,2)),m&2&&(d("itemList",g(1,3,c.mixingRecipe())),n(2),l(c.mixingRecipe().eitherOrIngredients.length?2:-1),n(),l(c.mixingRecipe().additionsToGenerics?3:-1))},dependencies:[L,I,M,V,G,O],encapsulation:2});let e=i;return e})();var ne=(e,i)=>i.key;function oe(e,i){if(e&1&&_(0,"app-mixing-recipe",2),e&2){let t=i.$implicit;d("mixingRecipe",t)}}function ae(e,i){if(e&1&&x(0,oe,1,1,"app-mixing-recipe",2,ne),e&2){let t=i.$implicit;f(t.mixedFrom)}}function me(e,i){if(e&1&&(a(0,"app-database-item-details",0),s(1,ae,2,0,"ng-template",1),p()),e&2){let t=r();d("itemId",t.selectedEntity.item.id)}}function pe(e,i){if(e&1){let t=b();a(0,"app-item-icon",5),w("click",function(){let m=F(t).$implicit,c=r(3);return S(c.showDetails(m))}),p()}if(e&2){let t=i.$implicit,o=r(3);k("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),d("amount",t.amount)("itemName",t.item.iconName)}}function re(e,i){if(e&1&&(a(0,"div",3),x(1,pe,1,4,"app-item-icon",4,C),p()),e&2){let t=r();n(),f(t)}}function ce(e,i){}function le(e,i){if(e&1&&s(0,re,3,0,"div",3)(1,ce,0,0),e&2){let t=r();l(t.showTable?-1:0),n(),l(t.showTable?1:-1)}}var we=(()=>{let i=class i extends q{constructor(){super(...arguments),this.itemMixingRecipes=R(A).fetchItemMixingRecipeData$()}};i.\u0275fac=(()=>{let o;return function(c){return(o||(o=D(i)))(c||i)}})(),i.\u0275cmp=v({type:i,selectors:[["app-mixing"]],standalone:!0,features:[$,T],decls:4,vars:4,consts:[["context","item_mixing","listDetail","",3,"itemId"],["appDatabaseItemDetails",""],[3,"mixingRecipe"],[1,"icon-grid"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(m,c){if(m&1&&(a(0,"app-list-detail-container"),s(1,me,2,1,"app-database-item-details",0)(2,le,2,2),u(3,"async"),p()),m&2){let h;n(),l(c.selectedEntity?1:-1),n(),l((h=g(3,2,c.itemMixingRecipes))?2:-1,h)}},dependencies:[H,I,M,j,z,N,K,J],encapsulation:2});let e=i;return e})();export{we as MixingComponent}; diff --git a/chunk-LLAJLK2Q.js b/chunk-A3U5G3MY.js similarity index 81% rename from chunk-LLAJLK2Q.js rename to chunk-A3U5G3MY.js index 5da8b94266..8b54be8b04 100644 --- a/chunk-LLAJLK2Q.js +++ b/chunk-A3U5G3MY.js @@ -1 +1 @@ -import{a as j}from"./chunk-AWBWSX6N.js";import{q as R,r as U}from"./chunk-QVSQOUAD.js";import{a as N}from"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{$d as M,Aa as m,Fa as g,Ga as I,Ha as A,Ia as E,Ib as V,Ja as p,Ka as c,La as k,P as S,Pa as T,Ra as x,Sa as l,V as _,Va as F,W as u,Xe as O,d as y,e as w,f as L,ka as s,l as D,mb as P,me as $,mf as z,ne as B,pe as G,qb as b,rb as h,ta as v,wa as C}from"./chunk-4KZEYPV3.js";function q(t,i){if(t&1&&k(0,"app-offering",3),t&2){let e=i.$implicit;m("details",e)}}function H(t,i){if(t&1&&(p(0,"app-item-card-switch",0),C(1,q,1,1,"ng-template",2),c()),t&2){let e=l();m("item",e.selectedEntity)}}function J(t,i){if(t&1){let e=T();p(0,"mat-tab",5),b(1,"addSpacesToPascalCase"),p(2,"app-offering-group",6),x("selected",function(d){_(e);let n=l(2);return u(n.showDetails(d))}),c()()}if(t&2){let e=i.$implicit,f=l(2);F("label",h(1,3,e.offeringGroupTitle)),s(2),m("offeringAltar",e)("selectedEntity",f.selectedEntity)}}function K(t,i){if(t&1){let e=T();p(0,"mat-tab-group",4),x("selectedTabChange",function(d){_(e);let n=l();return u(n.updateUrl(d))}),A(1,J,3,5,"mat-tab",5,I),c()}if(t&2){let e=l();m("selectedIndex",e.selectedTabIndex()),s(),E(i)}}var pe=(()=>{var i;let e=class e extends O{constructor(){super();w(this,i);L(this,i,[]),this.urlPathFromLabel=n=>{let a=n.toLowerCase().replaceAll(" ",""),r=y(this,i).find(o=>o.offeringGroupTitle.toLowerCase().replaceAll(" ","")===a);return r?r.urlPath:n.toLowerCase().replaceAll(" ","")},this.offerings$=this._database.fetchOfferings$().pipe(D(n=>{let a=n.filter(o=>!o.customType),r=a.map(o=>o.urlPath);return this.activateTabFromRoute(r),a}))}};i=new WeakMap,e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=S({type:e,selectors:[["app-lake-temple"]],standalone:!0,features:[v,P],decls:4,vars:4,consts:[["listDetail","","context","offerings",3,"item"],[3,"selectedIndex"],["appDatabaseItemDetails",""],[3,"details"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"selected","offeringAltar","selectedEntity"]],template:function(a,r){if(a&1&&(p(0,"app-list-detail-container"),C(1,H,2,1,"app-item-card-switch",0)(2,K,3,1,"mat-tab-group",1),b(3,"async"),c()),a&2){let o;s(),g(r.selectedEntity?1:-1),s(),g((o=h(3,2,r.offerings$))?2:-1,o)}},dependencies:[G,R,z,$,U,j,B,M,N,V],encapsulation:2});let t=e;return t})();export{pe as LakeTempleComponent}; +import{a as j}from"./chunk-IUAKQFVS.js";import{q as R,r as U}from"./chunk-BPN5VRCO.js";import{a as N}from"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as m,Ga as g,Ha as I,Ia as A,Ja as E,Ka as p,Kb as V,La as c,Ma as k,P as S,Qa as T,Sa as x,Ta as l,W as _,Wa as F,X as u,bf as O,d as y,e as w,f as L,fe as M,l as D,la as s,nb as P,rb as b,sb as h,se as $,sf as z,te as B,ua as v,ve as G,xa as C}from"./chunk-PYTDIKHQ.js";function q(t,i){if(t&1&&k(0,"app-offering",3),t&2){let e=i.$implicit;m("details",e)}}function H(t,i){if(t&1&&(p(0,"app-item-card-switch",0),C(1,q,1,1,"ng-template",2),c()),t&2){let e=l();m("item",e.selectedEntity)}}function J(t,i){if(t&1){let e=T();p(0,"mat-tab",5),b(1,"addSpacesToPascalCase"),p(2,"app-offering-group",6),x("selected",function(d){_(e);let n=l(2);return u(n.showDetails(d))}),c()()}if(t&2){let e=i.$implicit,f=l(2);F("label",h(1,3,e.offeringGroupTitle)),s(2),m("offeringAltar",e)("selectedEntity",f.selectedEntity)}}function K(t,i){if(t&1){let e=T();p(0,"mat-tab-group",4),x("selectedTabChange",function(d){_(e);let n=l();return u(n.updateUrl(d))}),A(1,J,3,5,"mat-tab",5,I),c()}if(t&2){let e=l();m("selectedIndex",e.selectedTabIndex()),s(),E(i)}}var pe=(()=>{var i;let e=class e extends O{constructor(){super();w(this,i);L(this,i,[]),this.urlPathFromLabel=n=>{let a=n.toLowerCase().replaceAll(" ",""),r=y(this,i).find(o=>o.offeringGroupTitle.toLowerCase().replaceAll(" ","")===a);return r?r.urlPath:n.toLowerCase().replaceAll(" ","")},this.offerings$=this._database.fetchOfferings$().pipe(D(n=>{let a=n.filter(o=>!o.customType),r=a.map(o=>o.urlPath);return this.activateTabFromRoute(r),a}))}};i=new WeakMap,e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=S({type:e,selectors:[["app-lake-temple"]],standalone:!0,features:[v,P],decls:4,vars:4,consts:[["listDetail","","context","offerings",3,"item"],[3,"selectedIndex"],["appDatabaseItemDetails",""],[3,"details"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"selected","offeringAltar","selectedEntity"]],template:function(a,r){if(a&1&&(p(0,"app-list-detail-container"),C(1,H,2,1,"app-item-card-switch",0)(2,K,3,1,"mat-tab-group",1),b(3,"async"),c()),a&2){let o;s(),g(r.selectedEntity?1:-1),s(),g((o=h(3,2,r.offerings$))?2:-1,o)}},dependencies:[G,R,z,$,U,j,B,M,N,V],encapsulation:2});let t=e;return t})();export{pe as LakeTempleComponent}; diff --git a/chunk-POXAUVM7.js b/chunk-BJE36J3T.js similarity index 99% rename from chunk-POXAUVM7.js rename to chunk-BJE36J3T.js index 7b78b4dd6f..6b1e4a663c 100644 --- a/chunk-POXAUVM7.js +++ b/chunk-BJE36J3T.js @@ -1,4 +1,4 @@ -import{A as oe,Aa as we,C as le,Ca as ye,D as ae,E as ce,F as he,Ib as Oe,J as pe,Ja as _e,K as ue,Ka as Te,L as D,La as Se,M as $,Ob as B,P as v,Pb as R,Q as de,Ra as Ee,Rb as Ae,Ta as $e,U as fe,Ua as Re,Wb as De,a as x,b as C,da as me,db as Ie,ea as N,eb as ze,fa as ge,g as te,h as P,ha as ke,j as ne,ka as xe,l as W,la as j,lb as Ce,mb as M,qa as be,qb as K,r as ie,rb as Q,s as re,y as se}from"./chunk-4KZEYPV3.js";function V(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var z=V();function Ne(a){z=a}var je=/[&<>"']/,We=new RegExp(je.source,"g"),Be=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ke=new RegExp(Be.source,"g"),Qe={"&":"&","<":"<",">":">",'"':""","'":"'"},ve=a=>Qe[a];function y(a,t){if(t){if(je.test(a))return a.replace(We,ve)}else if(Be.test(a))return a.replace(Ke,ve);return a}var Xe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Ve(a){return a.replace(Xe,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var Je=/(^|[^\[])\^/g;function k(a,t){a=typeof a=="string"?a:a.source,t=t||"";let n={replace:(e,i)=>(i=typeof i=="object"&&"source"in i?i.source:i,i=i.replace(Je,"$1"),a=a.replace(e,i),n),getRegex:()=>new RegExp(a,t)};return n}function Me(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch{return null}return a}var U={exec:()=>null};function Le(a,t){let n=a.replace(/\|/g,(r,s,o)=>{let l=!1,p=s;for(;--p>=0&&o[p]==="\\";)l=!l;return l?"|":" |"}),e=n.split(/ \|/),i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),t)if(e.length>t)e.splice(t);else for(;e.length"']/,We=new RegExp(je.source,"g"),Be=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ke=new RegExp(Be.source,"g"),Qe={"&":"&","<":"<",">":">",'"':""","'":"'"},ve=a=>Qe[a];function y(a,t){if(t){if(je.test(a))return a.replace(We,ve)}else if(Be.test(a))return a.replace(Ke,ve);return a}var Xe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Ve(a){return a.replace(Xe,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var Je=/(^|[^\[])\^/g;function k(a,t){a=typeof a=="string"?a:a.source,t=t||"";let n={replace:(e,i)=>(i=typeof i=="object"&&"source"in i?i.source:i,i=i.replace(Je,"$1"),a=a.replace(e,i),n),getRegex:()=>new RegExp(a,t)};return n}function Me(a){try{a=encodeURI(a).replace(/%25/g,"%")}catch{return null}return a}var U={exec:()=>null};function Le(a,t){let n=a.replace(/\|/g,(r,s,o)=>{let l=!1,p=s;for(;--p>=0&&o[p]==="\\";)l=!l;return l?"|":" |"}),e=n.split(/ \|/),i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),t)if(e.length>t)e.splice(t);else for(;e.length{let r=i.match(/^\s+/);if(r===null)return i;let[s]=r;return s.length>=e.length?i.slice(e.length):i}).join(` `)}var A=class{options;rules;lexer;constructor(t){this.options=t||z}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:F(e,` `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],i=Ge(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){let i=F(e,"#");(this.options.pedantic||!i||/ $/.test(i))&&(e=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=F(n[0].replace(/^ *>[ \t]?/gm,""),` diff --git a/chunk-QVSQOUAD.js b/chunk-BPN5VRCO.js similarity index 61% rename from chunk-QVSQOUAD.js rename to chunk-BPN5VRCO.js index 1debc1e70c..fc532a0a7e 100644 --- a/chunk-QVSQOUAD.js +++ b/chunk-BPN5VRCO.js @@ -1,4 +1,4 @@ -import{a as di,b as _i,c as Ci,d as fi,i as ui}from"./chunk-OHRRW4BO.js";import{a as Gt,b as Yt}from"./chunk-WFTBLPSZ.js";import{$a as Ht,$d as Re,$e as ae,Aa as _,Ae as ke,Be,Ca as P,Ce as Ne,De as ti,E as it,Ee as ii,Fa as s,Ga as I,Gd as Wt,Ha as g,Hb as Lt,Hd as Rt,Ia as y,Ib as H,Ie as ft,Ja as l,Jb as lt,Jd as qt,K as nt,Ka as r,Kb as je,Kd as Fe,La as C,Lb as pt,Ma as v,Mb as mt,Md as yt,N as he,Na as w,Nb as Ot,Nd as $,Ne as L,Oa as Ut,Ob as oe,Oe as Ue,P as D,Pa as S,Pd as M,Pe as Ve,Q as ot,Qd as jt,Qe as ni,Ra as E,Rd as zt,Re as $e,Sa as p,Sd as V,Td as J,Te as oi,U as Bt,Ue as ai,V as x,Vd as Ct,W as T,Wa as gt,Wd as Kt,We as ze,Xd as Qt,Ya as Vt,Z as Te,Ze as ut,_a as $t,_b as xe,_d as Zt,_e as li,a as Ge,ae as ge,af as Ke,b as Ye,bc as Oe,be as Jt,bf as pi,c as wt,ca as Me,cc as rt,d as Dt,db as c,df as Qe,e as bt,eb as b,ec as We,ef as Ze,f as Et,fb as h,fc as st,ff as mi,gb as ce,hc as ct,ib as k,if as ri,j as Pt,ja as Nt,jb as B,jf as si,ka as n,kb as N,ke as Xt,l as kt,lf as ci,m as tt,mb as de,me as A,mf as He,na as Mt,nb as At,ob as Se,oc as dt,qb as f,qc as _t,qe as ei,rb as u,sb as ne,se as ye,ta as F,te as Ie,ue as ve,va as Ft,ve as we,wa as d,we as De,xe as be,yb as at,ye as Ee,za as se,ze as Pe}from"./chunk-4KZEYPV3.js";var G=(()=>{let i=class i extends ze{constructor(){super(...arguments),this.SHOP_DISPLAY_NAMES=We,this.SHOP_ICONS=st,this.upgradeHeaderText="Upgrades",this.uiIcon=xe,this.showProcessingTable=!1,this.showPItemUpgradeTable=!1}showDetails(o){this.selectedProcessEntity=void 0,this.selectedItemUpgrade=void 0,super.showDetails(o)}showProcessDetails(o){this.selectedEntity=void 0,this.selectedItemUpgrade=void 0,this.selectedProcessEntity=o,this.listDetail.open()}showItemUpgradeDetails(o){this.selectedEntity=void 0,this.selectedItemUpgrade=o,this.selectedProcessEntity=void 0,this.listDetail.open()}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["ng-component"]],features:[F],decls:0,vars:0,template:function(m,a){},encapsulation:2});let e=i;return e})();function tn(e,i){e&1&&(l(0,"div",1),c(1,"Enabled: "),l(2,"span",2),c(3,"NO"),r()())}function nn(e,i){if(e&1&&(l(0,"div"),c(1,"Only at times: "),l(2,"span",5),c(3),f(4,"number"),f(5,"number"),f(6,"number"),f(7,"number"),r()()),e&2){let t=p();n(3),ce(" ",ne(4,2,t.shopItemData.timeRange.fromTime.hours,"2.0")+":"+ne(5,5,t.shopItemData.timeRange.fromTime.minutes,"2.0")," - ",ne(6,8,t.shopItemData.timeRange.toTime.hours,"2.0")+":"+ne(7,11,t.shopItemData.timeRange.toTime.minutes,"2.0")," ")}}function on(e,i){if(e&1&&(l(0,"div"),c(1,"Available since: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.shopItemData.sinceDate)," ")}}function an(e,i){if(e&1&&(l(0,"div"),c(1,"Available until: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.shopItemData.tillDate)," ")}}function ln(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenDays.join(", ")," ")}}function pn(e,i){if(e&1&&(l(0,"div"),c(1,"Only on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.allowedDays.join(", ")," ")}}function mn(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenDays.join(", ")," ")}}function rn(e,i){if(e&1&&(l(0,"div"),c(1,"Only at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.allowedWeather.join(", ")," ")}}function sn(e,i){if(e&1&&(l(0,"div"),c(1,"Except at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenWeather.join(", ")," ")}}function cn(e,i){if(e&1&&(l(0,"div"),c(1,"Only at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.allowedSeasons.join(", ")," ")}}function dn(e,i){if(e&1&&(l(0,"div"),c(1,"Except at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenSeasons.join(", ")," ")}}function _n(e,i){if(e&1&&C(0,"app-effect",7),e&2){let t=i.$implicit;_("effect",t)}}function Cn(e,i){if(e&1&&(l(0,"div",4),c(1,"Effects when bought: "),l(2,"div",6),g(3,_n,1,1,"app-effect",7,I),r()()),e&2){let t=p();n(3),y(t.shopItemData.effects)}}function fn(e,i){if(e&1&&c(0),e&2){let t=p(2);h(" Unlock requirements (",t.shopItemData.requirements.type==="And"?"all":"any"," of them): ")}}function un(e,i){e&1&&c(0," Unlock requirement: ")}function hn(e,i){if(e&1&&C(0,"app-requirements",8),e&2){let t=i.$implicit;_("requirement",t)}}function xn(e,i){if(e&1&&(l(0,"div",4),d(1,fn,1,1)(2,un,1,0),l(3,"div",6),g(4,hn,1,1,"app-requirements",8,I),r()()),e&2){let t=p();n(),s(t.shopItemData.requirements.requirements.length>1?1:-1),n(),s(t.shopItemData.requirements.requirements.length<2?2:-1),n(2),y(t.shopItemData.requirements.requirements)}}var O=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-shop-item-data-details"]],inputs:{shopItemData:"shopItemData"},decls:23,vars:18,consts:[[3,"item"],[1,"mb-3"],[1,"text-black"],[3,"amount"],[1,"my-2"],[1,"inline-flex"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0),d(1,tn,4,0,"div",1),l(2,"div"),c(3,"Buy price: "),l(4,"span",2),C(5,"app-money",3),r()(),l(6,"div"),c(7,"Town rank: "),l(8,"span",2),c(9),f(10,"townrank"),r()(),d(11,nn,8,14,"div")(12,on,5,3,"div")(13,an,5,3,"div")(14,ln,4,1,"div")(15,pn,4,1,"div")(16,mn,4,1,"div")(17,rn,4,1,"div")(18,sn,4,1,"div")(19,cn,4,1,"div")(20,dn,4,1,"div")(21,Cn,5,0,"div",4)(22,xn,6,2,"div",4),r()),m&2&&(_("item",a.shopItemData.item),n(),s(a.shopItemData.enabled?-1:1),n(4),_("amount",a.shopItemData.priceOverride!==0?a.shopItemData.priceOverride:a.shopItemData.item.price),n(4),h(" ",u(10,16,a.shopItemData.townRank)," "),n(2),s(a.shopItemData.availableDuringTime&&a.shopItemData.timeRange?11:-1),n(),s(a.shopItemData.availableSinceDate&&a.shopItemData.sinceDate?12:-1),n(),s(a.shopItemData.availableTillDate&&a.shopItemData.tillDate?13:-1),n(),s(a.shopItemData.forbiddenDays.length?14:-1),n(),s(a.shopItemData.allowedDays.length&&a.shopItemData.allowedDays.length!==7?15:-1),n(),s(a.shopItemData.forbiddenDays.length?16:-1),n(),s(a.shopItemData.allowedWeather.length?17:-1),n(),s(a.shopItemData.forbiddenWeather.length?18:-1),n(),s(a.shopItemData.allowedSeasons.length&&a.shopItemData.allowedSeasons.length!==4?19:-1),n(),s(a.shopItemData.forbiddenSeasons.length?20:-1),n(),s(a.shopItemData.effects&&a.shopItemData.effects.length?21:-1),n(),s(a.shopItemData.requirements&&a.shopItemData.requirements.requirements.length?22:-1))},dependencies:[ge,J,Qe,Ze,pt,ut,ae],encapsulation:2});let e=i;return e})();var Tn=e=>["/locations",e];function Sn(e,i){if(e&1&&(l(0,"td",15),C(1,"app-item-icon",16),r()),e&2){let t=i.$implicit;n(),_("itemName",t.item.iconName)}}function gn(e,i){e&1&&(l(0,"th",17),c(1,"Item "),r()),e&2&&se("colspan",2)}function yn(e,i){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.item.displayName," ")}}function In(e,i){e&1&&(l(0,"th",17),c(1,"Shop "),r())}function vn(e,i){if(e&1&&(l(0,"td",18)(1,"a",19),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,Tn,t.shop.url)),n(),b(t.shop.displayName)}}function wn(e,i){e&1&&(l(0,"th",20),c(1,"Town Rank "),r())}function Dn(e,i){if(e&1&&(l(0,"td",21),c(1),f(2,"townrank"),r()),e&2){let t=i.$implicit;n(),h(" ",u(2,1,t.townRank)," ")}}function bn(e,i){e&1&&(l(0,"th",20),c(1,"Price "),r())}function En(e,i){if(e&1&&(l(0,"td",22),C(1,"app-money",23),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.price)}}function Pn(e,i){e&1&&(l(0,"th",20),c(1,"Sell price "),r())}function kn(e,i){if(e&1&&(l(0,"td",22),C(1,"app-money",23),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.sellPrice)}}function Bn(e,i){e&1&&C(0,"tr",24)}function Nn(e,i){e&1&&C(0,"tr",25)}function Mn(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,Sn,2,1,"td",2),w(),v(3,3),d(4,gn,2,1,"th",4)(5,yn,2,1,"td",5),w(),v(6,6),d(7,In,2,0,"th",4)(8,vn,3,4,"td",5),w(),v(9,7),d(10,wn,2,0,"th",8)(11,Dn,3,3,"td",9),w(),v(12,10),d(13,bn,2,0,"th",8)(14,En,2,1,"td",11),w(),v(15,12),d(16,Pn,2,0,"th",8)(17,kn,2,1,"td",11),w(),d(18,Bn,1,0,"tr",13)(19,Nn,1,0,"tr",14),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(18),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var W=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","townRank","price","sellPrice"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].shop&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-shop-item-data-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","townRank"],["class","backdrop-blur-xl whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","price"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl","whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,Mn,20,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,J,ye,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve,ae],encapsulation:2});let e=i;return e})();var Fn=e=>["/locations",e];function Un(e,i){if(e&1&&(l(0,"td",10),C(1,"app-item-icon",11),r()),e&2){let t=i.$implicit;n(),_("itemName",t.input.iconName)}}function Vn(e,i){e&1&&(l(0,"th",12),c(1,"Item "),r()),e&2&&se("colspan",2)}function $n(e,i){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.input.displayName," ")}}function Hn(e,i){e&1&&(l(0,"th",12),c(1,"Shop "),r())}function An(e,i){if(e&1&&(l(0,"td",13)(1,"a",14),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,Fn,t.shop.url)),n(),b(t.shop.displayName)}}function Ln(e,i){e&1&&(l(0,"th",12),c(1,"Output chances"),r())}function On(e,i){if(e&1&&(l(0,"td",13),C(1,"app-chance-per-item-table-list",15),r()),e&2){let t=i.$implicit;n(),_("chances",t.outputChanges)}}function Wn(e,i){e&1&&C(0,"tr",16)}function Rn(e,i){e&1&&C(0,"tr",17)}function qn(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,Un,2,1,"td",2),w(),v(3,3),d(4,Vn,2,1,"th",4)(5,$n,2,1,"td",5),w(),v(6,6),d(7,Hn,2,0,"th",4)(8,An,3,4,"td",5),w(),v(9,7),d(10,Ln,2,0,"th",4)(11,On,2,1,"td",5),w(),d(12,Wn,1,0,"tr",8)(13,Rn,1,0,"tr",9),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(12),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var Y=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","outputChances"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].shop&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-shop-item-process-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","outputChances"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],[3,"chances"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,qn,14,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,ye,si,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve],encapsulation:2});let e=i;return e})();function Gn(e,i){if(e&1&&(l(0,"div"),c(1," Amount needed for processing: "),l(2,"span",4),c(3),r()()),e&2){let t=p();n(3),h("",t.itemProcessData.inputAmount,"}")}}var j=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-shop-item-process-data-details"]],inputs:{itemProcessData:"itemProcessData"},decls:7,vars:4,consts:[[3,"item"],[3,"amount"],[1,"my-2"],[3,"chances"],[1,"text-black"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0),d(1,Gn,4,1,"div"),l(2,"div"),c(3,"Cost to process: "),C(4,"app-money",1),r(),l(5,"div",2),C(6,"app-chance-per-item-list",3),r()()),m&2&&(_("item",a.itemProcessData.input),n(),s(a.itemProcessData.inputAmount>1?1:-1),n(3),_("amount",a.itemProcessData.processingCost),n(2),_("chances",a.itemProcessData.outputChanges))},dependencies:[ge,J,ri],encapsulation:2});let e=i;return e})();function Yn(e,i){if(e&1&&(l(0,"div"),c(1),r(),l(2,"div"),c(3),f(4,"ingameTime"),f(5,"ingameTime"),r()),e&2){let t=p().$implicit;n(),h(" ",t.value.isCoreEveryDay?"Every day":"Weekdays",":"),n(2),ce("",u(4,3,t.value.coreOpeningHours.from),"-",u(5,5,t.value.coreOpeningHours.to)," ")}}function jn(e,i){if(e&1&&(l(0,"div"),c(1),r(),l(2,"div"),c(3),f(4,"ingameTime"),f(5,"ingameTime"),r()),e&2){let t=p().$implicit,o=p();n(),h(" ",o.shortenWeekdays(t.value.coreOpeningDays).join(", "),":"),n(2),ce(" ",u(4,3,t.value.coreOpeningHours.from),"-",u(5,5,t.value.coreOpeningHours.to)," ")}}function zn(e,i){if(e&1&&(l(0,"div"),c(1),r(),l(2,"div"),c(3),f(4,"ingameTime"),f(5,"ingameTime"),r()),e&2){let t=i.$implicit;n(),h(" ",t.key,":"),n(2),ce(" ",u(4,3,t.value.from),"-",u(5,5,t.value.to)," ")}}function Kn(e,i){if(e&1&&(g(0,zn,6,7,null,null,I),f(2,"keyvalue")),e&2){let t=p().$implicit;y(u(2,0,t.value.dayOfTheWeekSpecificOpeningHours))}}function Qn(e,i){if(e&1&&(l(0,"div")(1,"div",0),c(2),r(),l(3,"div",1),d(4,Yn,6,7)(5,jn,6,7)(6,Kn,3,2),r()()),e&2){let t=i.$implicit;n(2),b(t.key),n(2),s(t.value.isCoreOnlyWeekdays||t.value.isCoreEveryDay?4:-1),n(),s(!t.value.isCoreOnlyWeekdays&&!t.value.isCoreEveryDay?5:-1),n(),s(t.value.dayOfTheWeekSpecificOpeningHours?6:-1)}}var R=(()=>{let i=class i{shortenWeekdays(o){return o.map(m=>m.substring(0,3))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-opening-hours"]],inputs:{openingHours:"openingHours"},decls:3,vars:2,consts:[[1,"font-semibold","text-xl"],[1,"grid","grid-cols-2","gap-2"]],template:function(m,a){m&1&&(g(0,Qn,7,4,"div",null,I),f(2,"keyvalue")),m&2&&y(u(2,0,a.openingHours))},dependencies:[je,li],styles:["[_nghost-%COMP%]{display:flex;gap:2rem;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}"]});let e=i;return e})();function Zn(e,i){if(e&1&&(l(0,"div"),c(1,"Unlock requirements:"),r(),C(2,"app-item-list",3)),e&2){let t=p();n(2),_("itemList",t.itemUpgradeData.unlockRequirements)}}function Jn(e,i){if(e&1&&(l(0,"div"),c(1,"Cost: "),l(2,"span",2),C(3,"app-money",5),r()()),e&2){let t=p(2);n(3),_("amount",t.itemUpgradeData.priceOverride!==0?t.itemUpgradeData.priceOverride:t.itemUpgradeData.price)}}function Xn(e,i){if(e&1&&C(0,"app-item-list",4),e&2){let t=p(2);_("itemList",t.itemUpgradeData.requirements)}}function eo(e,i){if(e&1&&(l(0,"div"),c(1,"Upgrade requirements:"),r(),d(2,Jn,4,1,"div")(3,Xn,1,1,"app-item-list",4)),e&2){let t=p();n(2),s(t.itemUpgradeData.priceOverride||t.itemUpgradeData.price?2:-1),n(),s(t.itemUpgradeData.requirements.length?3:-1)}}var z=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-item-upgrade-details"]],inputs:{itemUpgradeData:"itemUpgradeData"},decls:12,vars:7,consts:[[3,"item"],[1,"mb-3"],[1,"text-black"],[1,"mb-6",3,"itemList"],[1,"mb-3",3,"itemList"],[3,"amount"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0)(1,"div",1),c(2,"Town rank: "),l(3,"span",2),c(4),f(5,"townrank"),r()(),d(6,Zn,3,1),l(7,"div",1),c(8,"Upgrade time: "),l(9,"span",2),c(10),r()(),d(11,eo,4,2),r()),m&2&&(_("item",a.itemUpgradeData.item),n(4),h(" ",u(5,5,a.itemUpgradeData.townRank)," "),n(2),s(a.itemUpgradeData.unlockRequirements.length?6:-1),n(4),h(" ",a.itemUpgradeData.daysDelay," days "),n(),s(a.itemUpgradeData.requirements.length||a.itemUpgradeData.priceOverride||a.itemUpgradeData.price?11:-1))},dependencies:[ge,J,Zt,ae],encapsulation:2});let e=i;return e})();var io=e=>["/locations",e];function no(e,i){if(e&1&&(l(0,"td",18),C(1,"app-item-icon",19),r()),e&2){let t=i.$implicit;n(),_("itemName",t.item.iconName)}}function oo(e,i){e&1&&(l(0,"th",20),c(1,"Item "),r()),e&2&&se("colspan",2)}function ao(e,i){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.item.displayName," ")}}function lo(e,i){e&1&&(l(0,"th",20),c(1,"Shop "),r())}function po(e,i){if(e&1&&(l(0,"td",21)(1,"a",22),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,io,t.shop.url)),n(),b(t.shop.displayName)}}function mo(e,i){e&1&&(l(0,"th",23),c(1,"Town Rank "),r())}function ro(e,i){if(e&1&&(l(0,"td",24),c(1),f(2,"townrank"),r()),e&2){let t=i.$implicit;n(),h(" ",u(2,1,t.townRank)," ")}}function so(e,i){e&1&&(l(0,"th",23),c(1,"Unlock requirements "),r())}function co(e,i){if(e&1&&(l(0,"td",25),C(1,"app-table-item-list",26),r()),e&2){let t=i.$implicit;n(),_("itemList",t.unlockRequirements)}}function _o(e,i){e&1&&(l(0,"th",23),c(1,"Upgrade requirements "),r())}function Co(e,i){if(e&1&&(l(0,"td",25)(1,"div",27)(2,"span"),c(3,"Cost:"),r(),C(4,"app-money",28),r(),C(5,"app-table-item-list",26),r()),e&2){let t=i.$implicit;n(4),_("amount",t.price),n(),_("itemList",t.requirements)}}function fo(e,i){e&1&&(l(0,"th",23),c(1,"Upgrade time "),r())}function uo(e,i){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.daysDelay," days ")}}function ho(e,i){e&1&&(l(0,"th",23),c(1,"Sell price "),r())}function xo(e,i){if(e&1&&(l(0,"td",29),C(1,"app-money",28),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.sellPrice)}}function To(e,i){e&1&&C(0,"tr",30)}function So(e,i){e&1&&C(0,"tr",31)}function go(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,no,2,1,"td",2),w(),v(3,3),d(4,oo,2,1,"th",4)(5,ao,2,1,"td",5),w(),v(6,6),d(7,lo,2,0,"th",4)(8,po,3,4,"td",5),w(),v(9,7),d(10,mo,2,0,"th",8)(11,ro,3,3,"td",9),w(),v(12,10),d(13,so,2,0,"th",8)(14,co,2,1,"td",11),w(),v(15,12),d(16,_o,2,0,"th",8)(17,Co,6,2,"td",11),w(),v(18,13),d(19,fo,2,0,"th",8)(20,uo,2,1,"td",11),w(),v(21,14),d(22,ho,2,0,"th",8)(23,xo,2,1,"td",15),w(),d(24,To,1,0,"tr",16)(25,So,1,0,"tr",17),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(24),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var K=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","townRank","unlockRequirements","daysDelay","requirements"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].shop&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-item-upgrade-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","townRank"],["class","backdrop-blur-xl whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","unlockRequirements"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","requirements"],["matColumnDef","daysDelay"],["matColumnDef","sellPrice"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl","whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],["mat-cell","",1,"text-col"],[3,"itemList"],[1,"flex","justify-between","mb-2"],[3,"amount"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,go,26,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,J,ye,ft,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve,ae],encapsulation:2});let e=i;return e})();function yo(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Io(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function vo(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function wo(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Do(e,i){if(e&1&&(d(0,wo,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function bo(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Eo(e,i){if(e&1&&(l(0,"div",9),g(1,bo,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Po(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function ko(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Eo,3,0,"div",9)(2,Po,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Bo(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,ko,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function No(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Mo(e,i){if(e&1&&(l(0,"div",9),g(1,No,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Fo(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Uo(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Mo,3,0,"div",9)(2,Fo,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Vo(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Uo,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function $o(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Ho(e,i){if(e&1&&(l(0,"div",9),g(1,$o,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Ao(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Lo(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Ho,3,0,"div",9)(2,Ao,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Oo(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Lo,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ti=(()=>{let i=class i extends G{constructor(){super(),this.shopName="blacksmith",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.itemProcessing$=this._database.fetchShopProcessItems$(this.shopName),this.itemUpgrade$=this._database.fetchItemUpgradeData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-blacksmith"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,yo,1,1,"app-shop-item-process-data-details",1)(3,Io,1,1,"app-shop-item-data-details",2)(4,vo,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Do,2,3),r(),d(10,Bo,4,3)(11,Vo,4,3)(12,Oo,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Wo(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Ro(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function qo(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Go(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Yo(e,i){if(e&1&&(d(0,Go,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function jo(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function zo(e,i){if(e&1&&(l(0,"div",9),g(1,jo,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Ko(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Qo(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,zo,3,0,"div",9)(2,Ko,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Zo(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Qo,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Jo(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Xo(e,i){if(e&1&&(l(0,"div",9),g(1,Jo,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ea(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function ta(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Xo,3,0,"div",9)(2,ea,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ia(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,ta,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function na(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function oa(e,i){if(e&1&&(l(0,"div",9),g(1,na,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function aa(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function la(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,oa,3,0,"div",9)(2,aa,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function pa(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,la,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Si=(()=>{let i=class i extends G{constructor(){super(),this.shopName="lab",this.shopItemData$=this._database.fetchShopItemData$("lab"),this.openingHours$=this._database.fetchOpeningHours$("lab"),this.itemProcessing$=this._database.fetchShopProcessItems$("lab"),this.itemUpgrade$=this._database.fetchItemUpgradeData$("lab")}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-lab"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Wo,1,1,"app-shop-item-process-data-details",1)(3,Ro,1,1,"app-shop-item-data-details",2)(4,qo,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Yo,2,3),r(),d(10,Zo,4,3)(11,ia,4,3)(12,pa,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function ma(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function ra(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function sa(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function ca(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function da(e,i){if(e&1&&(d(0,ca,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function _a(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Ca(e,i){if(e&1&&(l(0,"div",9),g(1,_a,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function fa(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function ua(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Ca,3,0,"div",9)(2,fa,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function ha(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,ua,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function xa(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Ta(e,i){if(e&1&&(l(0,"div",9),g(1,xa,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Sa(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function ga(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Ta,3,0,"div",9)(2,Sa,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ya(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,ga,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Ia(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function va(e,i){if(e&1&&(l(0,"div",9),g(1,Ia,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function wa(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Da(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,va,3,0,"div",9)(2,wa,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function ba(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Da,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var gi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="general-store",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-general-store"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,ma,1,1,"app-shop-item-process-data-details",1)(3,ra,1,1,"app-shop-item-data-details",2)(4,sa,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,da,2,3),r(),d(10,ha,4,3)(11,ya,4,3)(12,ba,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Ea(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Pa(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function ka(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Ba(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Na(e,i){if(e&1&&(d(0,Ba,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Ma(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Fa(e,i){if(e&1&&(l(0,"div",9),g(1,Ma,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Ua(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Va(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Fa,3,0,"div",9)(2,Ua,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function $a(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Va,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Ha(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Aa(e,i){if(e&1&&(l(0,"div",9),g(1,Ha,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function La(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Oa(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Aa,3,0,"div",9)(2,La,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Wa(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Oa,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Ra(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function qa(e,i){if(e&1&&(l(0,"div",9),g(1,Ra,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Ga(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Ya(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,qa,3,0,"div",9)(2,Ga,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function ja(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Ya,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var yi=(()=>{let i=class i extends G{constructor(){super(),this.upgradeHeaderText="Buildings",this.shopName="carpenter",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.itemUpgrade$=this._database.fetchItemUpgradeData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-carpenter"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Ea,1,1,"app-shop-item-process-data-details",1)(3,Pa,1,1,"app-shop-item-data-details",2)(4,ka,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Na,2,3),r(),d(10,$a,4,3)(11,Wa,4,3)(12,ja,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function za(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Ka(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Qa(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Za(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Ja(e,i){if(e&1&&(d(0,Za,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Xa(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function el(e,i){if(e&1&&(l(0,"div",9),g(1,Xa,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function tl(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function il(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,el,3,0,"div",9)(2,tl,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function nl(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,il,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function ol(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function al(e,i){if(e&1&&(l(0,"div",9),g(1,ol,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ll(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function pl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,al,3,0,"div",9)(2,ll,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ml(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,pl,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function rl(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function sl(e,i){if(e&1&&(l(0,"div",9),g(1,rl,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function cl(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function dl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,sl,3,0,"div",9)(2,cl,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function _l(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,dl,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ii=(()=>{let i=class i extends G{constructor(){super(),this.shopName="merfolk-general-store",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merfolk-general-store"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,za,1,1,"app-shop-item-process-data-details",1)(3,Ka,1,1,"app-shop-item-data-details",2)(4,Qa,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Ja,2,3),r(),d(10,nl,4,3)(11,ml,4,3)(12,_l,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Cl(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function fl(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function ul(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function hl(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function xl(e,i){if(e&1&&(d(0,hl,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Tl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Sl(e,i){if(e&1&&(l(0,"div",9),g(1,Tl,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function gl(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function yl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Sl,3,0,"div",9)(2,gl,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Il(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,yl,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function vl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function wl(e,i){if(e&1&&(l(0,"div",9),g(1,vl,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Dl(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function bl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,wl,3,0,"div",9)(2,Dl,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function El(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,bl,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Pl(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function kl(e,i){if(e&1&&(l(0,"div",9),g(1,Pl,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Bl(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Nl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,kl,3,0,"div",9)(2,Bl,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Ml(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Nl,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var vi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="merfolk-oracle-tail-store",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merfolk-oracle-tail-store"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Cl,1,1,"app-shop-item-process-data-details",1)(3,fl,1,1,"app-shop-item-data-details",2)(4,ul,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,xl,2,3),r(),d(10,Il,4,3)(11,El,4,3)(12,Ml,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Fl(e,i){if(e&1&&C(0,"app-npc-portrait",1),e&2){let t=p();_("npcKey",t.npc.key)("portraitName",t.npc.appearances[0].appearances.Default.Normal)}}var wi=(()=>{let i=class i{constructor(){this.UiIcon=xe,this._database=he(_t)}ngOnInit(){this.npc=this._database.getNPCs().find(o=>o.key===this.adoption.npcData.npcId)}ngOnChanges(o){o.adoption&&!o.adoption.isFirstChange()&&(this.npc=this._database.getNPCs().find(m=>m.key===o.adoption.currentValue.npcData.npcId))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-pet-adoption-details"]],inputs:{adoption:"adoption"},features:[Bt],decls:11,vars:4,consts:[[1,"text-lg","font-semibold","relative"],["cardIcon","",3,"npcKey","portraitName"],[1,"text-black","text-2xl"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"text-black"],[3,"amount"]],template:function(m,a){m&1&&(l(0,"app-card",0),d(1,Fl,1,2,"app-npc-portrait",1),l(2,"div",2),c(3),r(),C(4,"hr",3),l(5,"span",4),c(6),r(),l(7,"div"),c(8,"Price: "),l(9,"span",5),C(10,"app-money",6),r()()()),m&2&&(n(),s(a.npc?1:-1),n(2),b(a.npc==null?null:a.npc.characterName),n(3),b(a.adoption.description),n(4),_("amount",a.adoption.price))},dependencies:[V,J,pi],encapsulation:2});let e=i;return e})();function Vl(e,i){if(e&1&&C(0,"app-shop-item-data-details",1),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function $l(e,i){if(e&1&&C(0,"app-pet-adoption-details",2),e&2){let t=p();_("adoption",t.selectedAdoption)}}function Hl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(3);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(3);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Al(e,i){if(e&1&&(l(0,"div",9),g(1,Hl,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Ll(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Ol(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p();return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Al,3,0,"div",9)(2,Ll,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p();k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Wl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(3);return T(a.showAdoptionDetails(m))}),r()}if(e&2){let t=i.$implicit;_("itemName",t.iconName)}}function Rl(e,i){if(e&1&&(l(0,"div",9),g(1,Wl,1,1,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function ql(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p();return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Rl,3,0,"div",9)}if(e&2){let t=p();k("showTable",t.showTable),n(),s(t.showTable?-1:1)}}var Di=(()=>{let i=class i extends ze{constructor(){super(),this.uiIcon=xe,this.shopItemData$=this._database.fetchShopItemData$("pet-shop"),this.petShopAdoptions$=tt([this._database.fetchPetShopAdoptions$(),this._database.fetchNPCs$()]).pipe(kt(o=>o[0]))}showDetails(o){super.showDetails(o),this.selectedAdoption=void 0}showAdoptionDetails(o){this.selectedEntity=void 0,this.selectedAdoption=o,this.listDetail.open()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-pet-shop"]],features:[F],decls:17,vars:9,consts:[["listDetail",""],[3,"shopItemData"],[3,"adoption"],[1,"mb-6"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mb-3","font-semibold","text-2xl","text-white"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"itemName"]],template:function(m,a){if(m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Vl,1,1,"app-shop-item-data-details",1)(3,$l,1,1,"app-pet-adoption-details",2),w(),l(4,"app-card",3)(5,"h1",4),C(6,"app-ui-icon",5),c(7," Pet shop "),r(),c(8," Open 24/7 "),r(),l(9,"h2",6),c(10,"Stock list"),r(),d(11,Ol,3,3),f(12,"async"),l(13,"h2",7),c(14,"Adoptions"),r(),d(15,ql,2,2),f(16,"async"),r()),m&2){let q,X;n(2),s(a.selectedEntity?2:-1),n(),s(a.selectedAdoption?3:-1),n(3),_("uiIcon",a.uiIcon.ANIMAL_SHELTER),n(5),s((q=u(12,5,a.shopItemData$))?11:-1,q),n(4),s((X=u(16,7,a.petShopAdoptions$))?15:-1,X)}},dependencies:[M,V,A,L,$,O,W,wi,H],encapsulation:2});let e=i;return e})();function Gl(e,i){if(e&1&&(l(0,"span",8),c(1),r()),e&2){let t=p();n(),h(" ",t.mappedAnimalShopData().readableCategory,"")}}function Yl(e,i){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=p();n(),b(t.mappedAnimalShopData().description)}}function jl(e,i){if(e&1&&(l(0,"div"),c(1,"Limited amount: "),l(2,"span",13),c(3),r()()),e&2){let t=p();n(3),h(` +import{a as di,b as _i,c as Ci,d as fi,i as ui}from"./chunk-TL6KPAQW.js";import{a as Gt,b as Yt}from"./chunk-43NKEY2U.js";import{$a as $t,$d as Ct,Aa as se,Ae as ve,Ba as _,Be as we,Ce as De,Da as P,De as be,E as it,Ee,Fe as Pe,Ga as s,Ge as ke,Ha as I,He as Be,Ia as g,Ie as Ne,Ja as y,Jb as Lt,Je as ti,K as nt,Ka as l,Kb as H,Kd as Wt,Ke as ii,La as r,Lb as lt,Ld as Rt,Ma as C,Mb as je,N as he,Na as v,Nb as pt,Nd as qt,Oa as w,Ob as mt,Od as Fe,Oe as ft,P as D,Pa as Ut,Pb as Ot,Q as ot,Qa as S,Qb as oe,Qd as yt,Sa as E,Ta as p,Td as $,Te as L,Ue,V as Bt,Vd as M,Ve,W as x,Wd as jt,We as ni,X as T,Xa as gt,Xd as zt,Xe as $e,Yd as V,Za as Vt,Zd as J,Ze as oi,_ as Te,_e as ai,a as Ge,ab as Ht,ae as Kt,af as ze,b as Ye,be as Qt,c as wt,cc as xe,d as Dt,da as Me,df as ut,e as bt,eb as c,ee as Zt,ef as li,f as Et,fb as b,fc as Oe,fe as Re,ff as ae,gb as h,gc as rt,ge,gf as Ke,hb as ce,he as Jt,hf as pi,ic as We,j as Pt,jb as k,jc as st,jf as Qe,ka as Nt,kb as B,kf as Ze,l as kt,la as n,lb as N,lc as ct,lf as mi,m as tt,nb as de,oa as Mt,ob as At,of as ri,pb as Se,pf as si,qe as Xt,rb as f,rf as ci,sb as u,sc as dt,se as A,sf as He,tb as ne,ua as F,uc as _t,wa as Ft,we as ei,xa as d,ye,zb as at,ze as Ie}from"./chunk-PYTDIKHQ.js";var G=(()=>{let i=class i extends ze{constructor(){super(...arguments),this.SHOP_DISPLAY_NAMES=We,this.SHOP_ICONS=st,this.upgradeHeaderText="Upgrades",this.uiIcon=xe,this.showProcessingTable=!1,this.showPItemUpgradeTable=!1}showDetails(o){this.selectedProcessEntity=void 0,this.selectedItemUpgrade=void 0,super.showDetails(o)}showProcessDetails(o){this.selectedEntity=void 0,this.selectedItemUpgrade=void 0,this.selectedProcessEntity=o,this.listDetail.open()}showItemUpgradeDetails(o){this.selectedEntity=void 0,this.selectedItemUpgrade=o,this.selectedProcessEntity=void 0,this.listDetail.open()}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["ng-component"]],features:[F],decls:0,vars:0,template:function(m,a){},encapsulation:2});let e=i;return e})();function tn(e,i){e&1&&(l(0,"div",1),c(1,"Enabled: "),l(2,"span",2),c(3,"NO"),r()())}function nn(e,i){if(e&1&&(l(0,"div"),c(1,"Only at times: "),l(2,"span",5),c(3),f(4,"number"),f(5,"number"),f(6,"number"),f(7,"number"),r()()),e&2){let t=p();n(3),ce(" ",ne(4,2,t.shopItemData.timeRange.fromTime.hours,"2.0")+":"+ne(5,5,t.shopItemData.timeRange.fromTime.minutes,"2.0")," - ",ne(6,8,t.shopItemData.timeRange.toTime.hours,"2.0")+":"+ne(7,11,t.shopItemData.timeRange.toTime.minutes,"2.0")," ")}}function on(e,i){if(e&1&&(l(0,"div"),c(1,"Available since: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.shopItemData.sinceDate)," ")}}function an(e,i){if(e&1&&(l(0,"div"),c(1,"Available until: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.shopItemData.tillDate)," ")}}function ln(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenDays.join(", ")," ")}}function pn(e,i){if(e&1&&(l(0,"div"),c(1,"Only on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.allowedDays.join(", ")," ")}}function mn(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenDays.join(", ")," ")}}function rn(e,i){if(e&1&&(l(0,"div"),c(1,"Only at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.allowedWeather.join(", ")," ")}}function sn(e,i){if(e&1&&(l(0,"div"),c(1,"Except at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenWeather.join(", ")," ")}}function cn(e,i){if(e&1&&(l(0,"div"),c(1,"Only at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.allowedSeasons.join(", ")," ")}}function dn(e,i){if(e&1&&(l(0,"div"),c(1,"Except at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.shopItemData.forbiddenSeasons.join(", ")," ")}}function _n(e,i){if(e&1&&C(0,"app-effect",7),e&2){let t=i.$implicit;_("effect",t)}}function Cn(e,i){if(e&1&&(l(0,"div",4),c(1,"Effects when bought: "),l(2,"div",6),g(3,_n,1,1,"app-effect",7,I),r()()),e&2){let t=p();n(3),y(t.shopItemData.effects)}}function fn(e,i){if(e&1&&c(0),e&2){let t=p(2);h(" Unlock requirements (",t.shopItemData.requirements.type==="And"?"all":"any"," of them): ")}}function un(e,i){e&1&&c(0," Unlock requirement: ")}function hn(e,i){if(e&1&&C(0,"app-requirements",8),e&2){let t=i.$implicit;_("requirement",t)}}function xn(e,i){if(e&1&&(l(0,"div",4),d(1,fn,1,1)(2,un,1,0),l(3,"div",6),g(4,hn,1,1,"app-requirements",8,I),r()()),e&2){let t=p();n(),s(t.shopItemData.requirements.requirements.length>1?1:-1),n(),s(t.shopItemData.requirements.requirements.length<2?2:-1),n(2),y(t.shopItemData.requirements.requirements)}}var O=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-shop-item-data-details"]],inputs:{shopItemData:"shopItemData"},decls:23,vars:18,consts:[[3,"item"],[1,"mb-3"],[1,"text-black"],[3,"amount"],[1,"my-2"],[1,"inline-flex"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0),d(1,tn,4,0,"div",1),l(2,"div"),c(3,"Buy price: "),l(4,"span",2),C(5,"app-money",3),r()(),l(6,"div"),c(7,"Town rank: "),l(8,"span",2),c(9),f(10,"townrank"),r()(),d(11,nn,8,14,"div")(12,on,5,3,"div")(13,an,5,3,"div")(14,ln,4,1,"div")(15,pn,4,1,"div")(16,mn,4,1,"div")(17,rn,4,1,"div")(18,sn,4,1,"div")(19,cn,4,1,"div")(20,dn,4,1,"div")(21,Cn,5,0,"div",4)(22,xn,6,2,"div",4),r()),m&2&&(_("item",a.shopItemData.item),n(),s(a.shopItemData.enabled?-1:1),n(4),_("amount",a.shopItemData.priceOverride!==0?a.shopItemData.priceOverride:a.shopItemData.item.price),n(4),h(" ",u(10,16,a.shopItemData.townRank)," "),n(2),s(a.shopItemData.availableDuringTime&&a.shopItemData.timeRange?11:-1),n(),s(a.shopItemData.availableSinceDate&&a.shopItemData.sinceDate?12:-1),n(),s(a.shopItemData.availableTillDate&&a.shopItemData.tillDate?13:-1),n(),s(a.shopItemData.forbiddenDays.length?14:-1),n(),s(a.shopItemData.allowedDays.length&&a.shopItemData.allowedDays.length!==7?15:-1),n(),s(a.shopItemData.forbiddenDays.length?16:-1),n(),s(a.shopItemData.allowedWeather.length?17:-1),n(),s(a.shopItemData.forbiddenWeather.length?18:-1),n(),s(a.shopItemData.allowedSeasons.length&&a.shopItemData.allowedSeasons.length!==4?19:-1),n(),s(a.shopItemData.forbiddenSeasons.length?20:-1),n(),s(a.shopItemData.effects&&a.shopItemData.effects.length?21:-1),n(),s(a.shopItemData.requirements&&a.shopItemData.requirements.requirements.length?22:-1))},dependencies:[ge,J,Qe,Ze,pt,ut,ae],encapsulation:2});let e=i;return e})();var Tn=e=>["/locations",e];function Sn(e,i){if(e&1&&(l(0,"td",15),C(1,"app-item-icon",16),r()),e&2){let t=i.$implicit;n(),_("itemName",t.item.iconName)}}function gn(e,i){e&1&&(l(0,"th",17),c(1,"Item "),r()),e&2&&se("colspan",2)}function yn(e,i){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.item.displayName," ")}}function In(e,i){e&1&&(l(0,"th",17),c(1,"Shop "),r())}function vn(e,i){if(e&1&&(l(0,"td",18)(1,"a",19),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,Tn,t.shop.url)),n(),b(t.shop.displayName)}}function wn(e,i){e&1&&(l(0,"th",20),c(1,"Town Rank "),r())}function Dn(e,i){if(e&1&&(l(0,"td",21),c(1),f(2,"townrank"),r()),e&2){let t=i.$implicit;n(),h(" ",u(2,1,t.townRank)," ")}}function bn(e,i){e&1&&(l(0,"th",20),c(1,"Price "),r())}function En(e,i){if(e&1&&(l(0,"td",22),C(1,"app-money",23),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.price)}}function Pn(e,i){e&1&&(l(0,"th",20),c(1,"Sell price "),r())}function kn(e,i){if(e&1&&(l(0,"td",22),C(1,"app-money",23),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.sellPrice)}}function Bn(e,i){e&1&&C(0,"tr",24)}function Nn(e,i){e&1&&C(0,"tr",25)}function Mn(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,Sn,2,1,"td",2),w(),v(3,3),d(4,gn,2,1,"th",4)(5,yn,2,1,"td",5),w(),v(6,6),d(7,In,2,0,"th",4)(8,vn,3,4,"td",5),w(),v(9,7),d(10,wn,2,0,"th",8)(11,Dn,3,3,"td",9),w(),v(12,10),d(13,bn,2,0,"th",8)(14,En,2,1,"td",11),w(),v(15,12),d(16,Pn,2,0,"th",8)(17,kn,2,1,"td",11),w(),d(18,Bn,1,0,"tr",13)(19,Nn,1,0,"tr",14),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(18),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var W=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","townRank","price","sellPrice"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].shop&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-shop-item-data-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","townRank"],["class","backdrop-blur-xl whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","price"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl","whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,Mn,20,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,J,ye,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve,ae],encapsulation:2});let e=i;return e})();var Fn=e=>["/locations",e];function Un(e,i){if(e&1&&(l(0,"td",10),C(1,"app-item-icon",11),r()),e&2){let t=i.$implicit;n(),_("itemName",t.input.iconName)}}function Vn(e,i){e&1&&(l(0,"th",12),c(1,"Item "),r()),e&2&&se("colspan",2)}function $n(e,i){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.input.displayName," ")}}function Hn(e,i){e&1&&(l(0,"th",12),c(1,"Shop "),r())}function An(e,i){if(e&1&&(l(0,"td",13)(1,"a",14),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,Fn,t.shop.url)),n(),b(t.shop.displayName)}}function Ln(e,i){e&1&&(l(0,"th",12),c(1,"Output chances"),r())}function On(e,i){if(e&1&&(l(0,"td",13),C(1,"app-chance-per-item-table-list",15),r()),e&2){let t=i.$implicit;n(),_("chances",t.outputChanges)}}function Wn(e,i){e&1&&C(0,"tr",16)}function Rn(e,i){e&1&&C(0,"tr",17)}function qn(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,Un,2,1,"td",2),w(),v(3,3),d(4,Vn,2,1,"th",4)(5,$n,2,1,"td",5),w(),v(6,6),d(7,Hn,2,0,"th",4)(8,An,3,4,"td",5),w(),v(9,7),d(10,Ln,2,0,"th",4)(11,On,2,1,"td",5),w(),d(12,Wn,1,0,"tr",8)(13,Rn,1,0,"tr",9),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(12),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var Y=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","outputChances"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].shop&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-shop-item-process-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","outputChances"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],[3,"chances"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,qn,14,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,ye,si,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve],encapsulation:2});let e=i;return e})();function Gn(e,i){if(e&1&&(l(0,"div"),c(1," Amount needed for processing: "),l(2,"span",4),c(3),r()()),e&2){let t=p();n(3),h("",t.itemProcessData.inputAmount,"}")}}var j=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-shop-item-process-data-details"]],inputs:{itemProcessData:"itemProcessData"},decls:7,vars:4,consts:[[3,"item"],[3,"amount"],[1,"my-2"],[3,"chances"],[1,"text-black"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0),d(1,Gn,4,1,"div"),l(2,"div"),c(3,"Cost to process: "),C(4,"app-money",1),r(),l(5,"div",2),C(6,"app-chance-per-item-list",3),r()()),m&2&&(_("item",a.itemProcessData.input),n(),s(a.itemProcessData.inputAmount>1?1:-1),n(3),_("amount",a.itemProcessData.processingCost),n(2),_("chances",a.itemProcessData.outputChanges))},dependencies:[ge,J,ri],encapsulation:2});let e=i;return e})();function Yn(e,i){if(e&1&&(l(0,"div"),c(1),r(),l(2,"div"),c(3),f(4,"ingameTime"),f(5,"ingameTime"),r()),e&2){let t=p().$implicit;n(),h(" ",t.value.isCoreEveryDay?"Every day":"Weekdays",":"),n(2),ce("",u(4,3,t.value.coreOpeningHours.from),"-",u(5,5,t.value.coreOpeningHours.to)," ")}}function jn(e,i){if(e&1&&(l(0,"div"),c(1),r(),l(2,"div"),c(3),f(4,"ingameTime"),f(5,"ingameTime"),r()),e&2){let t=p().$implicit,o=p();n(),h(" ",o.shortenWeekdays(t.value.coreOpeningDays).join(", "),":"),n(2),ce(" ",u(4,3,t.value.coreOpeningHours.from),"-",u(5,5,t.value.coreOpeningHours.to)," ")}}function zn(e,i){if(e&1&&(l(0,"div"),c(1),r(),l(2,"div"),c(3),f(4,"ingameTime"),f(5,"ingameTime"),r()),e&2){let t=i.$implicit;n(),h(" ",t.key,":"),n(2),ce(" ",u(4,3,t.value.from),"-",u(5,5,t.value.to)," ")}}function Kn(e,i){if(e&1&&(g(0,zn,6,7,null,null,I),f(2,"keyvalue")),e&2){let t=p().$implicit;y(u(2,0,t.value.dayOfTheWeekSpecificOpeningHours))}}function Qn(e,i){if(e&1&&(l(0,"div")(1,"div",0),c(2),r(),l(3,"div",1),d(4,Yn,6,7)(5,jn,6,7)(6,Kn,3,2),r()()),e&2){let t=i.$implicit;n(2),b(t.key),n(2),s(t.value.isCoreOnlyWeekdays||t.value.isCoreEveryDay?4:-1),n(),s(!t.value.isCoreOnlyWeekdays&&!t.value.isCoreEveryDay?5:-1),n(),s(t.value.dayOfTheWeekSpecificOpeningHours?6:-1)}}var R=(()=>{let i=class i{shortenWeekdays(o){return o.map(m=>m.substring(0,3))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-opening-hours"]],inputs:{openingHours:"openingHours"},decls:3,vars:2,consts:[[1,"font-semibold","text-xl"],[1,"grid","grid-cols-2","gap-2"]],template:function(m,a){m&1&&(g(0,Qn,7,4,"div",null,I),f(2,"keyvalue")),m&2&&y(u(2,0,a.openingHours))},dependencies:[je,li],styles:["[_nghost-%COMP%]{display:flex;gap:2rem;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}"]});let e=i;return e})();function Zn(e,i){if(e&1&&(l(0,"div"),c(1,"Unlock requirements:"),r(),C(2,"app-item-list",3)),e&2){let t=p();n(2),_("itemList",t.itemUpgradeData.unlockRequirements)}}function Jn(e,i){if(e&1&&(l(0,"div"),c(1,"Cost: "),l(2,"span",2),C(3,"app-money",5),r()()),e&2){let t=p(2);n(3),_("amount",t.itemUpgradeData.priceOverride!==0?t.itemUpgradeData.priceOverride:t.itemUpgradeData.price)}}function Xn(e,i){if(e&1&&C(0,"app-item-list",4),e&2){let t=p(2);_("itemList",t.itemUpgradeData.requirements)}}function eo(e,i){if(e&1&&(l(0,"div"),c(1,"Upgrade requirements:"),r(),d(2,Jn,4,1,"div")(3,Xn,1,1,"app-item-list",4)),e&2){let t=p();n(2),s(t.itemUpgradeData.priceOverride||t.itemUpgradeData.price?2:-1),n(),s(t.itemUpgradeData.requirements.length?3:-1)}}var z=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-item-upgrade-details"]],inputs:{itemUpgradeData:"itemUpgradeData"},decls:12,vars:7,consts:[[3,"item"],[1,"mb-3"],[1,"text-black"],[1,"mb-6",3,"itemList"],[1,"mb-3",3,"itemList"],[3,"amount"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0)(1,"div",1),c(2,"Town rank: "),l(3,"span",2),c(4),f(5,"townrank"),r()(),d(6,Zn,3,1),l(7,"div",1),c(8,"Upgrade time: "),l(9,"span",2),c(10),r()(),d(11,eo,4,2),r()),m&2&&(_("item",a.itemUpgradeData.item),n(4),h(" ",u(5,5,a.itemUpgradeData.townRank)," "),n(2),s(a.itemUpgradeData.unlockRequirements.length?6:-1),n(4),h(" ",a.itemUpgradeData.daysDelay," days "),n(),s(a.itemUpgradeData.requirements.length||a.itemUpgradeData.priceOverride||a.itemUpgradeData.price?11:-1))},dependencies:[ge,J,Zt,ae],encapsulation:2});let e=i;return e})();var io=e=>["/locations",e];function no(e,i){if(e&1&&(l(0,"td",18),C(1,"app-item-icon",19),r()),e&2){let t=i.$implicit;n(),_("itemName",t.item.iconName)}}function oo(e,i){e&1&&(l(0,"th",20),c(1,"Item "),r()),e&2&&se("colspan",2)}function ao(e,i){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.item.displayName," ")}}function lo(e,i){e&1&&(l(0,"th",20),c(1,"Shop "),r())}function po(e,i){if(e&1&&(l(0,"td",21)(1,"a",22),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,io,t.shop.url)),n(),b(t.shop.displayName)}}function mo(e,i){e&1&&(l(0,"th",23),c(1,"Town Rank "),r())}function ro(e,i){if(e&1&&(l(0,"td",24),c(1),f(2,"townrank"),r()),e&2){let t=i.$implicit;n(),h(" ",u(2,1,t.townRank)," ")}}function so(e,i){e&1&&(l(0,"th",23),c(1,"Unlock requirements "),r())}function co(e,i){if(e&1&&(l(0,"td",25),C(1,"app-table-item-list",26),r()),e&2){let t=i.$implicit;n(),_("itemList",t.unlockRequirements)}}function _o(e,i){e&1&&(l(0,"th",23),c(1,"Upgrade requirements "),r())}function Co(e,i){if(e&1&&(l(0,"td",25)(1,"div",27)(2,"span"),c(3,"Cost:"),r(),C(4,"app-money",28),r(),C(5,"app-table-item-list",26),r()),e&2){let t=i.$implicit;n(4),_("amount",t.price),n(),_("itemList",t.requirements)}}function fo(e,i){e&1&&(l(0,"th",23),c(1,"Upgrade time "),r())}function uo(e,i){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.daysDelay," days ")}}function ho(e,i){e&1&&(l(0,"th",23),c(1,"Sell price "),r())}function xo(e,i){if(e&1&&(l(0,"td",29),C(1,"app-money",28),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.sellPrice)}}function To(e,i){e&1&&C(0,"tr",30)}function So(e,i){e&1&&C(0,"tr",31)}function go(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,no,2,1,"td",2),w(),v(3,3),d(4,oo,2,1,"th",4)(5,ao,2,1,"td",5),w(),v(6,6),d(7,lo,2,0,"th",4)(8,po,3,4,"td",5),w(),v(9,7),d(10,mo,2,0,"th",8)(11,ro,3,3,"td",9),w(),v(12,10),d(13,so,2,0,"th",8)(14,co,2,1,"td",11),w(),v(15,12),d(16,_o,2,0,"th",8)(17,Co,6,2,"td",11),w(),v(18,13),d(19,fo,2,0,"th",8)(20,uo,2,1,"td",11),w(),v(21,14),d(22,ho,2,0,"th",8)(23,xo,2,1,"td",15),w(),d(24,To,1,0,"tr",16)(25,So,1,0,"tr",17),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(24),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var K=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","townRank","unlockRequirements","daysDelay","requirements"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].shop&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-item-upgrade-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","townRank"],["class","backdrop-blur-xl whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","unlockRequirements"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","requirements"],["matColumnDef","daysDelay"],["matColumnDef","sellPrice"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl","whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],["mat-cell","",1,"text-col"],[3,"itemList"],[1,"flex","justify-between","mb-2"],[3,"amount"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,go,26,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,J,ye,ft,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve,ae],encapsulation:2});let e=i;return e})();function yo(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Io(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function vo(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function wo(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Do(e,i){if(e&1&&(d(0,wo,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function bo(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Eo(e,i){if(e&1&&(l(0,"div",9),g(1,bo,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Po(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function ko(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Eo,3,0,"div",9)(2,Po,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Bo(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,ko,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function No(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Mo(e,i){if(e&1&&(l(0,"div",9),g(1,No,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Fo(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Uo(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Mo,3,0,"div",9)(2,Fo,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Vo(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Uo,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function $o(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Ho(e,i){if(e&1&&(l(0,"div",9),g(1,$o,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Ao(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Lo(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Ho,3,0,"div",9)(2,Ao,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Oo(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Lo,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ti=(()=>{let i=class i extends G{constructor(){super(),this.shopName="blacksmith",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.itemProcessing$=this._database.fetchShopProcessItems$(this.shopName),this.itemUpgrade$=this._database.fetchItemUpgradeData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-blacksmith"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,yo,1,1,"app-shop-item-process-data-details",1)(3,Io,1,1,"app-shop-item-data-details",2)(4,vo,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Do,2,3),r(),d(10,Bo,4,3)(11,Vo,4,3)(12,Oo,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Wo(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Ro(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function qo(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Go(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Yo(e,i){if(e&1&&(d(0,Go,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function jo(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function zo(e,i){if(e&1&&(l(0,"div",9),g(1,jo,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Ko(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Qo(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,zo,3,0,"div",9)(2,Ko,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Zo(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Qo,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Jo(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Xo(e,i){if(e&1&&(l(0,"div",9),g(1,Jo,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ea(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function ta(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Xo,3,0,"div",9)(2,ea,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ia(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,ta,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function na(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function oa(e,i){if(e&1&&(l(0,"div",9),g(1,na,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function aa(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function la(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,oa,3,0,"div",9)(2,aa,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function pa(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,la,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Si=(()=>{let i=class i extends G{constructor(){super(),this.shopName="lab",this.shopItemData$=this._database.fetchShopItemData$("lab"),this.openingHours$=this._database.fetchOpeningHours$("lab"),this.itemProcessing$=this._database.fetchShopProcessItems$("lab"),this.itemUpgrade$=this._database.fetchItemUpgradeData$("lab")}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-lab"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Wo,1,1,"app-shop-item-process-data-details",1)(3,Ro,1,1,"app-shop-item-data-details",2)(4,qo,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Yo,2,3),r(),d(10,Zo,4,3)(11,ia,4,3)(12,pa,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function ma(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function ra(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function sa(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function ca(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function da(e,i){if(e&1&&(d(0,ca,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function _a(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Ca(e,i){if(e&1&&(l(0,"div",9),g(1,_a,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function fa(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function ua(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Ca,3,0,"div",9)(2,fa,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function ha(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,ua,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function xa(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Ta(e,i){if(e&1&&(l(0,"div",9),g(1,xa,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Sa(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function ga(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Ta,3,0,"div",9)(2,Sa,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ya(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,ga,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Ia(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function va(e,i){if(e&1&&(l(0,"div",9),g(1,Ia,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function wa(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Da(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,va,3,0,"div",9)(2,wa,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function ba(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Da,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var gi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="general-store",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-general-store"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,ma,1,1,"app-shop-item-process-data-details",1)(3,ra,1,1,"app-shop-item-data-details",2)(4,sa,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,da,2,3),r(),d(10,ha,4,3)(11,ya,4,3)(12,ba,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Ea(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Pa(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function ka(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Ba(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Na(e,i){if(e&1&&(d(0,Ba,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Ma(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Fa(e,i){if(e&1&&(l(0,"div",9),g(1,Ma,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Ua(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Va(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Fa,3,0,"div",9)(2,Ua,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function $a(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Va,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Ha(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Aa(e,i){if(e&1&&(l(0,"div",9),g(1,Ha,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function La(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Oa(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Aa,3,0,"div",9)(2,La,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Wa(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Oa,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Ra(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function qa(e,i){if(e&1&&(l(0,"div",9),g(1,Ra,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Ga(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Ya(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,qa,3,0,"div",9)(2,Ga,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function ja(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Ya,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var yi=(()=>{let i=class i extends G{constructor(){super(),this.upgradeHeaderText="Buildings",this.shopName="carpenter",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.itemUpgrade$=this._database.fetchItemUpgradeData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-carpenter"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Ea,1,1,"app-shop-item-process-data-details",1)(3,Pa,1,1,"app-shop-item-data-details",2)(4,ka,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Na,2,3),r(),d(10,$a,4,3)(11,Wa,4,3)(12,ja,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function za(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Ka(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Qa(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Za(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Ja(e,i){if(e&1&&(d(0,Za,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Xa(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function el(e,i){if(e&1&&(l(0,"div",9),g(1,Xa,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function tl(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function il(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,el,3,0,"div",9)(2,tl,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function nl(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,il,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function ol(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function al(e,i){if(e&1&&(l(0,"div",9),g(1,ol,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ll(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function pl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,al,3,0,"div",9)(2,ll,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ml(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,pl,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function rl(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function sl(e,i){if(e&1&&(l(0,"div",9),g(1,rl,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function cl(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function dl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,sl,3,0,"div",9)(2,cl,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function _l(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,dl,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ii=(()=>{let i=class i extends G{constructor(){super(),this.shopName="merfolk-general-store",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merfolk-general-store"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,za,1,1,"app-shop-item-process-data-details",1)(3,Ka,1,1,"app-shop-item-data-details",2)(4,Qa,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Ja,2,3),r(),d(10,nl,4,3)(11,ml,4,3)(12,_l,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Cl(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function fl(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function ul(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function hl(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function xl(e,i){if(e&1&&(d(0,hl,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Tl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Sl(e,i){if(e&1&&(l(0,"div",9),g(1,Tl,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function gl(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function yl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Sl,3,0,"div",9)(2,gl,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Il(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,yl,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function vl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function wl(e,i){if(e&1&&(l(0,"div",9),g(1,vl,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Dl(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function bl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,wl,3,0,"div",9)(2,Dl,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function El(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,bl,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Pl(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function kl(e,i){if(e&1&&(l(0,"div",9),g(1,Pl,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Bl(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Nl(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,kl,3,0,"div",9)(2,Bl,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Ml(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Nl,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var vi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="merfolk-oracle-tail-store",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merfolk-oracle-tail-store"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Cl,1,1,"app-shop-item-process-data-details",1)(3,fl,1,1,"app-shop-item-data-details",2)(4,ul,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,xl,2,3),r(),d(10,Il,4,3)(11,El,4,3)(12,Ml,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Fl(e,i){if(e&1&&C(0,"app-npc-portrait",1),e&2){let t=p();_("npcKey",t.npc.key)("portraitName",t.npc.appearances[0].appearances.Default.Normal)}}var wi=(()=>{let i=class i{constructor(){this.UiIcon=xe,this._database=he(_t)}ngOnInit(){this.npc=this._database.getNPCs().find(o=>o.key===this.adoption.npcData.npcId)}ngOnChanges(o){o.adoption&&!o.adoption.isFirstChange()&&(this.npc=this._database.getNPCs().find(m=>m.key===o.adoption.currentValue.npcData.npcId))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-pet-adoption-details"]],inputs:{adoption:"adoption"},features:[Bt],decls:11,vars:4,consts:[[1,"text-lg","font-semibold","relative"],["cardIcon","",3,"npcKey","portraitName"],[1,"text-black","text-2xl"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"text-black"],[3,"amount"]],template:function(m,a){m&1&&(l(0,"app-card",0),d(1,Fl,1,2,"app-npc-portrait",1),l(2,"div",2),c(3),r(),C(4,"hr",3),l(5,"span",4),c(6),r(),l(7,"div"),c(8,"Price: "),l(9,"span",5),C(10,"app-money",6),r()()()),m&2&&(n(),s(a.npc?1:-1),n(2),b(a.npc==null?null:a.npc.characterName),n(3),b(a.adoption.description),n(4),_("amount",a.adoption.price))},dependencies:[V,J,pi],encapsulation:2});let e=i;return e})();function Vl(e,i){if(e&1&&C(0,"app-shop-item-data-details",1),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function $l(e,i){if(e&1&&C(0,"app-pet-adoption-details",2),e&2){let t=p();_("adoption",t.selectedAdoption)}}function Hl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(3);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(3);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Al(e,i){if(e&1&&(l(0,"div",9),g(1,Hl,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Ll(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Ol(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p();return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Al,3,0,"div",9)(2,Ll,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p();k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Wl(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(3);return T(a.showAdoptionDetails(m))}),r()}if(e&2){let t=i.$implicit;_("itemName",t.iconName)}}function Rl(e,i){if(e&1&&(l(0,"div",9),g(1,Wl,1,1,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function ql(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p();return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Rl,3,0,"div",9)}if(e&2){let t=p();k("showTable",t.showTable),n(),s(t.showTable?-1:1)}}var Di=(()=>{let i=class i extends ze{constructor(){super(),this.uiIcon=xe,this.shopItemData$=this._database.fetchShopItemData$("pet-shop"),this.petShopAdoptions$=tt([this._database.fetchPetShopAdoptions$(),this._database.fetchNPCs$()]).pipe(kt(o=>o[0]))}showDetails(o){super.showDetails(o),this.selectedAdoption=void 0}showAdoptionDetails(o){this.selectedEntity=void 0,this.selectedAdoption=o,this.listDetail.open()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-pet-shop"]],features:[F],decls:17,vars:9,consts:[["listDetail",""],[3,"shopItemData"],[3,"adoption"],[1,"mb-6"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mb-3","font-semibold","text-2xl","text-white"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"itemName"]],template:function(m,a){if(m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Vl,1,1,"app-shop-item-data-details",1)(3,$l,1,1,"app-pet-adoption-details",2),w(),l(4,"app-card",3)(5,"h1",4),C(6,"app-ui-icon",5),c(7," Pet shop "),r(),c(8," Open 24/7 "),r(),l(9,"h2",6),c(10,"Stock list"),r(),d(11,Ol,3,3),f(12,"async"),l(13,"h2",7),c(14,"Adoptions"),r(),d(15,ql,2,2),f(16,"async"),r()),m&2){let q,X;n(2),s(a.selectedEntity?2:-1),n(),s(a.selectedAdoption?3:-1),n(3),_("uiIcon",a.uiIcon.ANIMAL_SHELTER),n(5),s((q=u(12,5,a.shopItemData$))?11:-1,q),n(4),s((X=u(16,7,a.petShopAdoptions$))?15:-1,X)}},dependencies:[M,V,A,L,$,O,W,wi,H],encapsulation:2});let e=i;return e})();function Gl(e,i){if(e&1&&(l(0,"span",8),c(1),r()),e&2){let t=p();n(),h(" ",t.mappedAnimalShopData().readableCategory,"")}}function Yl(e,i){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=p();n(),b(t.mappedAnimalShopData().description)}}function jl(e,i){if(e&1&&(l(0,"div"),c(1,"Limited amount: "),l(2,"span",13),c(3),r()()),e&2){let t=p();n(3),h(` `,t.mappedAnimalShopData().itemLimit," ")}}function zl(e,i){if(e&1&&c(0),e&2){let t=i.$implicit,o=i.$index,m=i.$count;ce(" ",t.variant,"",o!==m-1?", ":""," ")}}function Kl(e,i){if(e&1&&(l(0,"div"),c(1,"Drop location: "),l(2,"span",13),c(3),f(4,"addSpacesToPascalCase"),r()()),e&2){let t=p(2);n(3),h(" ",u(4,1,t.produceDropLocation)," ")}}function Ql(e,i){if(e&1&&(l(0,"div"),c(1,"Tool for harvesting: "),l(2,"span",13),C(3,"app-item-icon",17),c(4),r()()),e&2){let t=p(2);n(3),_("itemName",t.itemHarvestTool.iconName),n(),h(" ",t.itemHarvestTool.displayName," ")}}function Zl(e,i){if(e&1&&(l(0,"div",13),c(1),f(2,"addSpacesToPascalCase"),f(3,"titlecase"),C(4,"app-item-icon",17),c(5),r()),e&2){let t=p().$implicit;n(),h(" ",u(3,5,u(2,3,t.key)),": "),n(3),_("itemName",t.value.iconName),n(),h(" ",t.value.displayName," ")}}function Jl(e,i){if(e&1&&(d(0,Zl,6,7,"div",13),f(1,"isMinimalItem")),e&2){let t=i.$implicit;s(u(1,1,t.value)?0:-1)}}function Xl(e,i){if(e&1&&(g(0,Jl,2,3,null,null,I),f(2,"keyvalue")),e&2){let t=i.$implicit,o=p(3);y(ne(2,0,t,o.keyValueNoOrder))}}function ep(e,i){if(e&1&&(d(0,Kl,5,3,"div"),l(1,"div"),c(2,"Type of producing: "),l(3,"span",13),c(4),f(5,"addSpacesToPascalCase"),r()(),d(6,Ql,5,2,"div"),l(7,"div"),c(8,"Harvest cooldown: "),l(9,"span",13),c(10),r()(),l(11,"div",16),c(12,"Produces: "),g(13,Xl,3,3,null,null,I),r()),e&2){let t=p();s(t.produceDropLocation!=="None"?0:-1),n(4),h(" ",u(5,5,t.animalProduceType)," "),n(2),s(t.itemHarvestTool?6:-1),n(4),ce(" ",t.harvestCooldown," day",t.harvestCooldown>1?"s":""," "),n(3),y(t.produces)}}function tp(e,i){if(e&1&&(l(0,"div",14)(1,"div"),c(2,"Variants: "),l(3,"span",13),g(4,zl,1,2,null,null,I),r()(),l(6,"div"),c(7,"Building: "),l(8,"span",13),c(9),f(10,"addSpacesToPascalCase"),r()(),d(11,ep,15,7),r()),e&2){let t=i;n(4),y(t.variants),n(5),h(" ",u(10,2,t.building)," "),n(2),s(t.animalProduceType!=="None"?11:-1)}}var Ei=(()=>{let i=class i{constructor(){this.mappedAnimalShopData=Me.required(),this.listDetails=he(Ct),this.UiIcon=xe,this.uiIcon=xe}keyValueNoOrder(){return 0}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-animal-details"]],inputs:{mappedAnimalShopData:[1,"mappedAnimalShopData"]},decls:30,vars:14,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["cardIcon","",3,"itemName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"text-accent","text-2xl"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"flex"],[1,"ml-2","text-black",3,"amount"],[1,"text-black"],[1,"mt-4"],[3,"requirements"],[1,"my-3"],[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"]],template:function(m,a){if(m&1&&(l(0,"app-card",0)(1,"div",1)(2,"button",2),E("click",function(){return a.listDetails.close()}),C(3,"app-ui-icon",3),r()(),C(4,"app-item-icon",4),l(5,"div",5)(6,"div",6)(7,"div",7),c(8),r(),d(9,Gl,2,1,"span",8),r()(),C(10,"hr",9),d(11,Yl,2,1,"span",10),l(12,"div",11),c(13,"Price: "),C(14,"app-money",12),r(),l(15,"div"),c(16,"Amount on purchase: "),l(17,"span",13),c(18),r()(),l(19,"div"),c(20,"Town rank: "),l(21,"span",13),c(22),f(23,"townrank"),r()(),d(24,jl,4,1,"div")(25,tp,12,4,"div",14),C(26,"app-requirements-list",15),l(27,"div",11),c(28," Sells for: "),C(29,"app-money",12),r()()),m&2){let q,X;n(3),_("uiIcon",a.uiIcon.CROSS),n(),_("itemName",(q=a.mappedAnimalShopData().animal)==null||q.variants==null||q.variants[0]==null||q.variants[0].icons==null?null:q.variants[0].icons.adult),n(4),b(a.mappedAnimalShopData().readableName),n(),s(a.mappedAnimalShopData().readableCategory?-1:9),n(2),s(a.mappedAnimalShopData().description?11:-1),n(3),_("amount",a.mappedAnimalShopData().price),n(4),h(` `,a.mappedAnimalShopData().amountOnPurchase," "),n(4),h(` -`,u(23,12,a.mappedAnimalShopData().townRank)," "),n(2),s(a.mappedAnimalShopData().itemLimit>=0?24:-1),n(),s((X=a.mappedAnimalShopData().animal)?25:-1,X),n(),_("requirements",a.mappedAnimalShopData().requirements),n(3),_("amount",a.mappedAnimalShopData().sellPrice)}},dependencies:[M,V,J,ci,Kt,$,lt,je,ae,Ke,Re],encapsulation:2});let e=i;return e})();var np=()=>["hearts","bad","neutral","happy"];function op(e,i){e&1&&(l(0,"th",16),c(1,"Hearts / size per mood "),r()),e&2&&se("rowspan",2)}function ap(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.heartLevel," heart(s) ")}}function lp(e,i){e&1&&(l(0,"th",18),c(1,"Bad "),r()),e&2&&se("colspan",2)}function pp(e,i){e&1&&(l(0,"th",18),c(1,"Neutral "),r()),e&2&&se("colspan",2)}function mp(e,i){e&1&&(l(0,"th",18),c(1,"Happy "),r()),e&2&&se("colspan",2)}function rp(e,i){e&1&&(l(0,"th",16),c(1,"Small"),r())}function sp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.bad.small," % ")}}function cp(e,i){e&1&&(l(0,"th",16),c(1,"Large"),r())}function dp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.bad.large," % ")}}function _p(e,i){e&1&&(l(0,"th",16),c(1,"Small"),r())}function Cp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.neutral.small," % ")}}function fp(e,i){e&1&&(l(0,"th",16),c(1,"Large"),r())}function up(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.neutral.large," % ")}}function hp(e,i){e&1&&(l(0,"th",16),c(1,"Small"),r())}function xp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.happy.small," % ")}}function Tp(e,i){e&1&&(l(0,"th",16),c(1,"Large"),r())}function Sp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.happy.large," % ")}}function gp(e,i){e&1&&C(0,"tr",19)}function yp(e,i){e&1&&C(0,"tr",19)}function Ip(e,i){e&1&&C(0,"tr",20)}var Pi=(()=>{let i=class i{constructor(){this.displayHeaderColumns=["hearts","badSmall","badLarge","neutralSmall","neutralLarge","happySmall","happyLarge"]}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-animal-mood-table"]],inputs:{productSizeByMood:"productSizeByMood"},decls:33,vars:10,consts:[["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","hearts"],["class","backdrop-blur-xl","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","bad"],["class","backdrop-blur-xl justify-center","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","neutral"],["matColumnDef","happy"],["matColumnDef","badSmall"],["matColumnDef","badLarge"],["matColumnDef","neutralSmall"],["matColumnDef","neutralLarge"],["matColumnDef","happySmall"],["matColumnDef","happyLarge"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","",1,"backdrop-blur-xl","justify-center"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table")(1,"table",0),v(2,1),d(3,op,2,1,"th",2)(4,ap,2,1,"td",3),w(),v(5,4),d(6,lp,2,1,"th",5),w(),v(7,6),d(8,pp,2,1,"th",5),w(),v(9,7),d(10,mp,2,1,"th",5),w(),v(11,8),d(12,rp,2,0,"th",2)(13,sp,2,1,"td",3),w(),v(14,9),d(15,cp,2,0,"th",2)(16,dp,2,1,"td",3),w(),v(17,10),d(18,_p,2,0,"th",2)(19,Cp,2,1,"td",3),w(),v(20,11),d(21,fp,2,0,"th",2)(22,up,2,1,"td",3),w(),v(23,12),d(24,hp,2,0,"th",2)(25,xp,2,1,"td",3),w(),v(26,13),d(27,Tp,2,0,"th",2)(28,Sp,2,1,"td",3),w(),d(29,gp,1,0,"tr",14)(30,yp,1,0,"tr",14),f(31,"slice"),d(32,Ip,1,0,"tr",15),r()()),m&2&&(n(),_("dataSource",a.productSizeByMood),n(28),_("matHeaderRowDef",At(9,np))("matHeaderRowDefSticky",!0),n(),_("matHeaderRowDef",ne(31,6,a.displayHeaderColumns,1))("matHeaderRowDefSticky",!0),n(2),_("matRowDefColumns",a.displayHeaderColumns))},dependencies:[ye,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ot],encapsulation:2});let e=i;return e})();function wp(e,i){if(e&1&&C(0,"app-shop-item-data-details",1),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Dp(e,i){if(e&1&&C(0,"app-animal-details",2),e&2){let t=p();_("mappedAnimalShopData",t.selectedAnimal)}}function bp(e,i){e&1&&C(0,"app-opening-hours",7),e&2&&_("openingHours",i)}function Ep(e,i){if(e&1&&(d(0,bp,1,1,"app-opening-hours",7),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Pp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function kp(e,i){if(e&1&&(l(0,"div",9),g(1,Pp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Bp(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Np(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,kp,3,0,"div",9)(2,Bp,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Mp(e,i){if(e&1&&(l(0,"h2",5),c(1,"Stock list"),r(),d(2,Np,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Fp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(3);return T(a.showAnimal(m))}),r()}if(e&2){let t,o=i.$implicit,m=p(3);P("selected-icon",(m.selectedAnimal==null?null:m.selectedAnimal.key)===o.key),_("itemName",(t=o.animal==null||o.animal.variants==null||o.animal.variants[0]==null||o.animal.variants[0].icons==null?null:o.animal.variants[0].icons.adult)!==null&&t!==void 0?t:null)}}function Up(e,i){if(e&1&&(l(0,"div",9),g(1,Fp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Vp(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p();return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Up,3,0,"div",9)}if(e&2){let t=p();k("showTable",t.showTable),n(),s(t.showTable?-1:1)}}function $p(e,i){e&1&&C(0,"app-animal-mood-table",6),e&2&&_("productSizeByMood",i)}var ki=(()=>{let i=class i extends G{constructor(){super(),this.shopName="ranch",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.sizeByMood$=this._database.fetchAnimalMoodData$(),this.animalData$=tt([this._database.fetchAnimals$(),this._database.fetchAnimalShopData$(this.shopName)]).pipe(it(([o,m])=>Pt(m.map(a=>{let vt=a,{animalKey:q}=vt,X=wt(vt,["animalKey"]);return Ye(Ge({},X),{animal:o.find(Xi=>Xi.key===q)})}))))}showDetails(o){super.showDetails(o),this.selectedAnimal=void 0}showAnimal(o){this.selectedAnimal=o,this.selectedEntity=void 0,this.listDetail.open()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-ranch"]],features:[F],decls:18,vars:12,consts:[["listDetail",""],[3,"shopItemData"],[3,"mappedAnimalShopData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"productSizeByMood"],[3,"openingHours"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(m,a){if(m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,wp,1,1,"app-shop-item-data-details",1)(3,Dp,1,1,"app-animal-details",2),w(),l(4,"app-card")(5,"h1",3),C(6,"app-ui-icon",4),c(7),r(),d(8,Ep,2,3),r(),d(9,Mp,4,3),l(10,"h2",5),c(11,"Animals"),r(),d(12,Vp,2,2),f(13,"async"),l(14,"h2",5),c(15,"Animal product size per mood and hearts"),r(),d(16,$p,1,1,"app-animal-mood-table",6),f(17,"async"),r()),m&2){let q,X;n(2),s(a.selectedEntity?2:-1),n(),s(a.selectedAnimal?3:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?8:-1),n(),s(a.shopItemData$?9:-1),n(3),s((q=u(13,8,a.animalData$))?12:-1,q),n(4),s((X=u(17,10,a.sizeByMood$))?16:-1,X)}},dependencies:[M,V,A,L,$,O,W,R,Ei,Pi,H],encapsulation:2});let e=i;return e})();function Hp(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Ap(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Lp(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Op(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Wp(e,i){if(e&1&&(d(0,Op,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Rp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function qp(e,i){if(e&1&&(l(0,"div",9),g(1,Rp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Gp(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Yp(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,qp,3,0,"div",9)(2,Gp,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function jp(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Yp,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function zp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Kp(e,i){if(e&1&&(l(0,"div",9),g(1,zp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Qp(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Zp(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Kp,3,0,"div",9)(2,Qp,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Jp(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Zp,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Xp(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function em(e,i){if(e&1&&(l(0,"div",9),g(1,Xp,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function tm(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function im(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,em,3,0,"div",9)(2,tm,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function nm(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,im,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Bi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="beach-shack",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.itemUpgrade$=this._database.fetchItemUpgradeData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-beach-shack"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Hp,1,1,"app-shop-item-process-data-details",1)(3,Ap,1,1,"app-shop-item-data-details",2)(4,Lp,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Wp,2,3),r(),d(10,jp,4,3)(11,Jp,4,3)(12,nm,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function om(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function am(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function lm(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function pm(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function mm(e,i){if(e&1&&(d(0,pm,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function rm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function sm(e,i){if(e&1&&(l(0,"div",9),g(1,rm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function cm(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function dm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,sm,3,0,"div",9)(2,cm,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function _m(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,dm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Cm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function fm(e,i){if(e&1&&(l(0,"div",9),g(1,Cm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function um(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function hm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,fm,3,0,"div",9)(2,um,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function xm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,hm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Tm(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Sm(e,i){if(e&1&&(l(0,"div",9),g(1,Tm,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function gm(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function ym(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Sm,3,0,"div",9)(2,gm,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Im(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,ym,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ni=(()=>{let i=class i extends G{constructor(){super(),this.shopName="concerned-monkey",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-concerned-monkey"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,om,1,1,"app-shop-item-process-data-details",1)(3,am,1,1,"app-shop-item-data-details",2)(4,lm,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,mm,2,3),r(),d(10,_m,4,3)(11,xm,4,3)(12,Im,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function vm(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function wm(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Dm(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function bm(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Em(e,i){if(e&1&&(d(0,bm,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Pm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function km(e,i){if(e&1&&(l(0,"div",9),g(1,Pm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Bm(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Nm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,km,3,0,"div",9)(2,Bm,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Mm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Nm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Fm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Um(e,i){if(e&1&&(l(0,"div",9),g(1,Fm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Vm(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function $m(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Um,3,0,"div",9)(2,Vm,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Hm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,$m,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Am(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Lm(e,i){if(e&1&&(l(0,"div",9),g(1,Am,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Om(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Wm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Lm,3,0,"div",9)(2,Om,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Rm(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Wm,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Mi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="bos",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-bos"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,vm,1,1,"app-shop-item-process-data-details",1)(3,wm,1,1,"app-shop-item-data-details",2)(4,Dm,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Em,2,3),r(),d(10,Mm,4,3)(11,Hm,4,3)(12,Rm,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function qm(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Gm(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Ym(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function jm(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function zm(e,i){if(e&1&&(d(0,jm,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Km(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Qm(e,i){if(e&1&&(l(0,"div",9),g(1,Km,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Zm(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Jm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Qm,3,0,"div",9)(2,Zm,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Xm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Jm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function er(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function tr(e,i){if(e&1&&(l(0,"div",9),g(1,er,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ir(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function nr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,tr,3,0,"div",9)(2,ir,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function or(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,nr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function ar(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function lr(e,i){if(e&1&&(l(0,"div",9),g(1,ar,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function pr(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function mr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,lr,3,0,"div",9)(2,pr,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function rr(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,mr,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Fi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="bens-caravan",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-bens-caravan"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,qm,1,1,"app-shop-item-process-data-details",1)(3,Gm,1,1,"app-shop-item-data-details",2)(4,Ym,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,zm,2,3),r(),d(10,Xm,4,3)(11,or,4,3)(12,rr,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function sr(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function cr(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function dr(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function _r(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Cr(e,i){if(e&1&&(d(0,_r,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function fr(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function ur(e,i){if(e&1&&(l(0,"div",9),g(1,fr,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function hr(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function xr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,ur,3,0,"div",9)(2,hr,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Tr(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,xr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Sr(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function gr(e,i){if(e&1&&(l(0,"div",9),g(1,Sr,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function yr(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Ir(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,gr,3,0,"div",9)(2,yr,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function vr(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Ir,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function wr(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Dr(e,i){if(e&1&&(l(0,"div",9),g(1,wr,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function br(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Er(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Dr,3,0,"div",9)(2,br,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Pr(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Er,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ui=(()=>{let i=class i extends G{constructor(){super(),this.shopName="socket-and-pan",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-socket-and-pan"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,sr,1,1,"app-shop-item-process-data-details",1)(3,cr,1,1,"app-shop-item-data-details",2)(4,dr,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Cr,2,3),r(),d(10,Tr,4,3)(11,vr,4,3)(12,Pr,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function kr(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Br(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Nr(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Mr(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Fr(e,i){if(e&1&&(d(0,Mr,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Ur(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Vr(e,i){if(e&1&&(l(0,"div",9),g(1,Ur,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function $r(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Hr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Vr,3,0,"div",9)(2,$r,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Ar(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Hr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Lr(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Or(e,i){if(e&1&&(l(0,"div",9),g(1,Lr,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Wr(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Rr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Or,3,0,"div",9)(2,Wr,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function qr(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Rr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Gr(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Yr(e,i){if(e&1&&(l(0,"div",9),g(1,Gr,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function jr(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function zr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Yr,3,0,"div",9)(2,jr,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Kr(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,zr,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Vi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="white-flamingo",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-white-flamingo"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,kr,1,1,"app-shop-item-process-data-details",1)(3,Br,1,1,"app-shop-item-data-details",2)(4,Nr,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Fr,2,3),r(),d(10,Ar,4,3)(11,qr,4,3)(12,Kr,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Qr(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Zr(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Jr(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Xr(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function es(e,i){if(e&1&&(d(0,Xr,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function ts(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function is(e,i){if(e&1&&(l(0,"div",9),g(1,ts,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ns(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function os(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,is,3,0,"div",9)(2,ns,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function as(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,os,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function ls(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function ps(e,i){if(e&1&&(l(0,"div",9),g(1,ls,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ms(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function rs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,ps,3,0,"div",9)(2,ms,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ss(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,rs,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function cs(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function ds(e,i){if(e&1&&(l(0,"div",9),g(1,cs,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function _s(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Cs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,ds,3,0,"div",9)(2,_s,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function fs(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Cs,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var $i=(()=>{let i=class i extends G{constructor(){super(),this.shopName="coffee",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-coffee"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Qr,1,1,"app-shop-item-process-data-details",1)(3,Zr,1,1,"app-shop-item-data-details",2)(4,Jr,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,es,2,3),r(),d(10,as,4,3)(11,ss,4,3)(12,fs,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function us(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function hs(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function xs(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Ts(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Ss(e,i){if(e&1&&(d(0,Ts,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function gs(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function ys(e,i){if(e&1&&(l(0,"div",9),g(1,gs,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Is(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function vs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,ys,3,0,"div",9)(2,Is,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function ws(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,vs,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Ds(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function bs(e,i){if(e&1&&(l(0,"div",9),g(1,Ds,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Es(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Ps(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,bs,3,0,"div",9)(2,Es,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ks(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Ps,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Bs(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Ns(e,i){if(e&1&&(l(0,"div",9),g(1,Bs,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Ms(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Fs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Ns,3,0,"div",9)(2,Ms,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Us(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Fs,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Hi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="tavern",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-tavern"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,us,1,1,"app-shop-item-process-data-details",1)(3,hs,1,1,"app-shop-item-data-details",2)(4,xs,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Ss,2,3),r(),d(10,ws,4,3)(11,ks,4,3)(12,Us,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();var Tt=[{name:"general-store",component:gi},{name:"blacksmith",component:Ti},{name:"lab",component:Si},{name:"carpenter",component:yi},{name:"bos",component:Mi},{name:"ranch",component:ki},{name:"pet-shop",component:Di},{name:"bens-caravan",component:Fi},{name:"socket-and-pan",component:Ui},{name:"beach-shack",component:Bi},{name:"concerned-monkey",component:Ni},{name:"merfolk-general-store",component:Ii},{name:"merfolk-oracle-tail-store",component:vi},{name:"tidal-threads",loadComponent:()=>import("./chunk-XJTDYWVS.js").then(e=>e.TidalThreadsComponent)},{name:"underwater-ranch",loadComponent:()=>import("./chunk-X6Q72XDI.js").then(e=>e.UnderwaterRanchComponent)},{name:"taco-truck",loadComponent:()=>import("./chunk-MQ5HZA2B.js").then(e=>e.TacoTruckComponent)},{name:"ramen-shop",loadComponent:()=>import("./chunk-CUAKORE3.js").then(e=>e.RamenShopComponent)},{name:"sales-cart-stall",loadComponent:()=>import("./chunk-MJ3WXX2W.js").then(e=>e.SalesCartStallComponent)},{name:"furniture-store",loadComponent:()=>import("./chunk-63GC2TFM.js").then(e=>e.FurnitureStoreComponent)},{name:"white-flamingo",component:Vi},{name:"tavern",component:Hi},{name:"coffee",component:$i}];function Vs(e,i){e&1&&(l(0,"div",1),c(1,"Enabled: "),l(2,"span",2),c(3,"NO"),r()())}function $s(e,i){if(e&1&&(l(0,"span",3),c(1),r()),e&2){let t=p();n(),b(t.festivalShopItemData.item.price)}}function Hs(e,i){if(e&1&&(l(0,"div"),c(1,"Discount: "),l(2,"span",2),c(3),f(4,"percent"),r()()),e&2){let t=p();n(3),h(" ",u(4,1,t.festivalShopItemData.festivalSetting.discount)," ")}}function As(e,i){if(e&1&&(l(0,"div"),c(1,"Item limit (all time): "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h(" ",t.festivalShopItemData.festivalSetting.itemLimit," ")}}function Ls(e,i){if(e&1&&(l(0,"div"),c(1,"Yearly limit: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h(" ",t.festivalShopItemData.festivalSetting.itemLimitPerYear," ")}}function Os(e,i){if(e&1&&(l(0,"div"),c(1,"Only at times: "),l(2,"span",6),c(3),f(4,"number"),f(5,"number"),f(6,"number"),f(7,"number"),r()()),e&2){let t=p();n(3),ce(" ",ne(4,2,t.festivalShopItemData.timeRange.fromTime.hours,"2.0")+":"+ne(5,5,t.festivalShopItemData.timeRange.fromTime.minutes,"2.0")," - ",ne(6,8,t.festivalShopItemData.timeRange.toTime.hours,"2.0")+":"+ne(7,11,t.festivalShopItemData.timeRange.toTime.minutes,"2.0")," ")}}function Ws(e,i){if(e&1&&(l(0,"div"),c(1,"Available since: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.festivalShopItemData.sinceDate)," ")}}function Rs(e,i){if(e&1&&(l(0,"div"),c(1,"Available until: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.festivalShopItemData.tillDate)," ")}}function qs(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenDays.join(", ")," ")}}function Gs(e,i){if(e&1&&(l(0,"div"),c(1,"Only on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.allowedDays.join(", ")," ")}}function Ys(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenDays.join(", ")," ")}}function js(e,i){if(e&1&&(l(0,"div"),c(1,"Only at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.allowedWeather.join(", ")," ")}}function zs(e,i){if(e&1&&(l(0,"div"),c(1,"Except at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenWeather.join(", ")," ")}}function Ks(e,i){if(e&1&&(l(0,"div"),c(1,"Only at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.allowedSeasons.join(", ")," ")}}function Qs(e,i){if(e&1&&(l(0,"div"),c(1,"Except at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenSeasons.join(", ")," ")}}function Zs(e,i){if(e&1&&C(0,"app-effect",8),e&2){let t=i.$implicit;_("effect",t)}}function Js(e,i){if(e&1&&(l(0,"div",5),c(1,"Effects when bought: "),l(2,"div",7),g(3,Zs,1,1,"app-effect",8,I),r()()),e&2){let t=p();n(3),y(t.festivalShopItemData.effects)}}function Xs(e,i){if(e&1&&c(0),e&2){let t=p(2);h(" Unlock requirements (",t.festivalShopItemData.requirements.type==="And"?"all":"any"," of them): ")}}function e0(e,i){e&1&&c(0," Unlock requirement: ")}function t0(e,i){if(e&1&&C(0,"app-requirements",9),e&2){let t=i.$implicit;_("requirement",t)}}function i0(e,i){if(e&1&&(l(0,"div",5),d(1,Xs,1,1)(2,e0,1,0),l(3,"div",7),g(4,t0,1,1,"app-requirements",9,I),r()()),e&2){let t=p();n(),s(t.festivalShopItemData.requirements.requirements.length>1?1:-1),n(),s(t.festivalShopItemData.requirements.requirements.length<2?2:-1),n(2),y(t.festivalShopItemData.requirements.requirements)}}var Ai=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-festival-shop-item-details"]],inputs:{festivalShopItemData:"festivalShopItemData"},decls:27,vars:22,consts:[[3,"item"],[1,"mb-3"],[1,"text-black"],[1,"line-through","mr-3"],[3,"amount"],[1,"my-2"],[1,"inline-flex"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0),d(1,Vs,4,0,"div",1),l(2,"div"),c(3,"Buy price: "),l(4,"span",2),d(5,$s,2,1,"span",3),C(6,"app-money",4),r()(),d(7,Hs,5,3,"div")(8,As,4,1,"div")(9,Ls,4,1,"div"),l(10,"div"),c(11,"Town rank: "),l(12,"span",2),c(13),f(14,"townrank"),r()(),d(15,Os,8,14,"div")(16,Ws,5,3,"div")(17,Rs,5,3,"div")(18,qs,4,1,"div")(19,Gs,4,1,"div")(20,Ys,4,1,"div")(21,js,4,1,"div")(22,zs,4,1,"div")(23,Ks,4,1,"div")(24,Qs,4,1,"div")(25,Js,5,0,"div",5)(26,i0,6,2,"div",5),r()),m&2&&(_("item",a.festivalShopItemData.item),n(),s(a.festivalShopItemData.enabled?-1:1),n(4),s(a.festivalShopItemData.festivalSetting.hasDiscount?5:-1),n(),_("amount",a.festivalShopItemData.item.price*(1-(a.festivalShopItemData.festivalSetting.hasDiscount?a.festivalShopItemData.festivalSetting.discount:0))),n(),s(a.festivalShopItemData.festivalSetting.hasDiscount?7:-1),n(),s(a.festivalShopItemData.festivalSetting.isLimitedItem?8:-1),n(),s(a.festivalShopItemData.festivalSetting.hasYearlyLimit?9:-1),n(4),h(" ",u(14,20,a.festivalShopItemData.townRank)," "),n(2),s(a.festivalShopItemData.availableDuringTime&&a.festivalShopItemData.timeRange?15:-1),n(),s(a.festivalShopItemData.availableSinceDate&&a.festivalShopItemData.sinceDate?16:-1),n(),s(a.festivalShopItemData.availableTillDate&&a.festivalShopItemData.tillDate?17:-1),n(),s(a.festivalShopItemData.forbiddenDays.length?18:-1),n(),s(a.festivalShopItemData.allowedDays.length&&a.festivalShopItemData.allowedDays.length!==7?19:-1),n(),s(a.festivalShopItemData.forbiddenDays.length?20:-1),n(),s(a.festivalShopItemData.allowedWeather.length?21:-1),n(),s(a.festivalShopItemData.forbiddenWeather.length?22:-1),n(),s(a.festivalShopItemData.allowedSeasons.length&&a.festivalShopItemData.allowedSeasons.length!==4?23:-1),n(),s(a.festivalShopItemData.forbiddenSeasons.length?24:-1),n(),s(a.festivalShopItemData.effects&&a.festivalShopItemData.effects.length?25:-1),n(),s(a.festivalShopItemData.requirements&&a.festivalShopItemData.requirements.requirements.length?26:-1))},dependencies:[ge,J,Qe,Ze,pt,mt,ut,ae],encapsulation:2});let e=i;return e})();var o0=e=>["/locations",e];function a0(e,i){if(e&1&&(l(0,"td",17),C(1,"app-item-icon",18),r()),e&2){let t=i.$implicit;n(),_("itemName",t.item.iconName)}}function l0(e,i){e&1&&(l(0,"th",19),c(1,"Item "),r()),e&2&&se("colspan",2)}function p0(e,i){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.item.displayName," ")}}function m0(e,i){e&1&&(l(0,"th",19),c(1,"Shop "),r())}function r0(e,i){if(e&1&&(l(0,"td",20)(1,"a",21),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,o0,t.festival.url)),n(),b(t.festival.displayName)}}function s0(e,i){e&1&&(l(0,"th",22),c(1,"Town Rank "),r())}function c0(e,i){if(e&1&&(l(0,"td",23),c(1),f(2,"townrank"),r()),e&2){let t=i.$implicit;n(),h(" ",u(2,1,t.townRank)," ")}}function d0(e,i){e&1&&(l(0,"th",22),c(1,"Amount limit "),r())}function _0(e,i){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=p().$implicit;n(),b(t.festivalSetting.itemLimit)}}function C0(e,i){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=p().$implicit;n(),h("",t.festivalSetting.itemLimitPerYear," per year")}}function f0(e,i){e&1&&(l(0,"span"),c(1,"-"),r())}function u0(e,i){if(e&1&&(l(0,"td",24),d(1,_0,2,1,"span")(2,C0,2,1,"span")(3,f0,2,0,"span"),r()),e&2){let t=i.$implicit;n(),s(t.festivalSetting.isLimitedItem?1:-1),n(),s(t.festivalSetting.hasYearlyLimit?2:-1),n(),s(!t.festivalSetting.isLimitedItem&&!t.festivalSetting.hasYearlyLimit?3:-1)}}function h0(e,i){e&1&&(l(0,"th",22),c(1," Discount "),r())}function x0(e,i){if(e&1&&(l(0,"span"),c(1),f(2,"percent"),r()),e&2){let t=p().$implicit;n(),b(u(2,1,t.festivalSetting.discount))}}function T0(e,i){e&1&&(l(0,"span"),c(1,"-"),r())}function S0(e,i){if(e&1&&(l(0,"td",24),d(1,x0,3,3,"span")(2,T0,2,0,"span"),r()),e&2){let t=i.$implicit;n(),s(t.festivalSetting.hasDiscount?1:-1),n(),s(t.festivalSetting.hasDiscount?-1:2)}}function g0(e,i){e&1&&(l(0,"th",22),c(1,"Price "),r())}function y0(e,i){if(e&1&&(l(0,"span",25),c(1),r()),e&2){let t=p().$implicit;n(),b(t.item.price)}}function I0(e,i){if(e&1&&(l(0,"td",24),d(1,y0,2,1,"span",25),C(2,"app-money",26),r()),e&2){let t=i.$implicit;n(),s(t.festivalSetting.hasDiscount?1:-1),n(),_("amount",t.item.price*(1-(t.festivalSetting.hasDiscount?t.festivalSetting.discount:0)))}}function v0(e,i){e&1&&(l(0,"th",22),c(1,"Sell price "),r())}function w0(e,i){if(e&1&&(l(0,"td",24),C(1,"app-money",26),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.sellPrice)}}function D0(e,i){e&1&&C(0,"tr",27)}function b0(e,i){e&1&&C(0,"tr",28)}function E0(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,a0,2,1,"td",2),w(),v(3,3),d(4,l0,2,1,"th",4)(5,p0,2,1,"td",5),w(),v(6,6),d(7,m0,2,0,"th",4)(8,r0,3,4,"td",5),w(),v(9,7),d(10,s0,2,0,"th",8)(11,c0,3,3,"td",9),w(),v(12,10),d(13,d0,2,0,"th",8)(14,u0,4,3,"td",11),w(),v(15,12),d(16,h0,2,0,"th",8)(17,S0,3,2,"td",11),w(),v(18,13),d(19,g0,2,0,"th",8)(20,I0,3,2,"td",11),w(),v(21,14),d(22,v0,2,0,"th",8)(23,w0,2,1,"td",11),w(),d(24,D0,1,0,"tr",15)(25,b0,1,0,"tr",16),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(24),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var Li=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","townRank","limit","discount","price","sellPrice"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].festival&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-festival-shop-item-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","townRank"],["class","backdrop-blur-xl whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","limit"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","discount"],["matColumnDef","price"],["matColumnDef","sellPrice"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl","whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[1,"line-through","mr-3"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,E0,26,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,J,ye,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve,mt,ae],encapsulation:2});let e=i;return e})();function k0(e,i){if(e&1&&C(0,"app-festival-shop-item-details",1),e&2){let t=p();_("festivalShopItemData",t.selectedEntity)}}function B0(e,i){e&1&&C(0,"app-opening-hours",5),e&2&&_("openingHours",i)}function N0(e,i){if(e&1&&(d(0,B0,1,1,"app-opening-hours",5),f(1,"async")),e&2){let t,o=p(3);s((t=u(1,1,o.openingHours$))?0:-1,t)}}function M0(e,i){if(e&1){let t=S();l(0,"app-item-icon",11),E("click",function(){let m=x(t).$implicit,a=p(6);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(6);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("amount",t.festivalSetting.hasYearlyLimit?t.festivalSetting.itemLimitPerYear:void 0)("itemName",t.item.iconName)}}function F0(e,i){if(e&1&&(l(0,"div",8),g(1,M0,1,4,"app-item-icon",10,I),r()),e&2){let t=p().$implicit;n(),y(t.shop)}}function U0(e,i){if(e&1&&C(0,"app-festival-shop-item-table",9),e&2){let t=p().$implicit;_("dataSource",t.shop)}}function V0(e,i){if(e&1){let t=S();l(0,"h2",6),c(1),r(),l(2,"app-data-filter",7),N("showTableChange",function(m){x(t);let a=p(4);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(3,F0,3,0,"div",8)(4,U0,1,1,"app-festival-shop-item-table",9)}if(e&2){let t=i.$implicit,o=p(4);n(),b(t.title),n(),k("showTable",o.showTable),n(),s(o.showTable?-1:3),n(),s(o.showTable?4:-1)}}function $0(e,i){if(e&1&&g(0,V0,5,4,null,null,I),e&2){let t=p(2);y(t.shops)}}function H0(e,i){if(e&1&&(l(0,"app-card")(1,"h1",3),C(2,"app-ui-icon",4),c(3),r(),d(4,N0,2,3),r(),d(5,$0,2,0)),e&2){let t=p(),o=p();n(2),_("uiIcon",o.FESTIVAL_ICONS[o.festivalName]),n(),h(" ",o.FESTIVAL_DISPLAY_NAMES[o.festivalName]," "),n(),s(o.openingHours$?4:-1),n(),s(t.shops?5:-1)}}function A0(e,i){e&1&&C(0,"mat-spinner",2)}function L0(e,i){if(e&1&&d(0,H0,6,4)(1,A0,1,0,"mat-spinner",2),e&2){let t=i,o=p();s(t!==null&&o.festivalName?0:-1),n(),s(t===null?1:-1)}}var Le=(()=>{var i;let t=class t{constructor(){bt(this,i);this.FESTIVAL_DISPLAY_NAMES=Oe,this.FESTIVAL_ICONS=rt,this.showTable=!1,this._router=he(Wt),this._database=he(_t),Et(this,i,he(Ct)),this.festivalData$=this._router.data.pipe(ai(),it(m=>{let a=m;return this.festivalName=a.name,a.hasNoOpeningHours||(this.openingHours$=this._database.fetchFestivalOpeningHours$(a.name)),this._database.fetchFestivalData$(a.name)}))}showDetails(m){this.selectedEntity=m,Dt(this,i).open()}};i=new WeakMap,t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=D({type:t,selectors:[["app-generic-festival"]],decls:5,vars:4,consts:[["listDetail",""],[3,"festivalShopItemData"],[1,"mx-auto"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(a,q){if(a&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,k0,1,1,"app-festival-shop-item-details",1),w(),d(3,L0,2,2),f(4,"async"),r()),a&2){let X;n(2),s(q.selectedEntity?2:-1),n(),s((X=u(4,2,q.festivalData$))?3:-1,X)}},dependencies:[M,V,A,L,Gt,$,R,Ai,Li,H],encapsulation:2});let e=t;return e})();var St=[{component:Le,data:{name:"winter-fair",hasNoOpeningHours:!0}},{component:Le,data:{name:"cherry-blossom"}},{component:Le,data:{name:"animal"}},{component:Le,data:{name:"beach-clean-up"}},{component:Le,data:{name:"harvest"}},{component:Le,data:{name:"spooky"}},{component:Le,data:{name:"new-year-eve"}},{component:Le,data:{name:"tree-planting"}}];function O0(e,i){if(e&1&&(l(0,"app-module-sidebar-item",3),c(1),r()),e&2){let t=i.$implicit,o=p();_("routerLink",t)("uiIcon",o.SHOP_ICONS[t]),n(),h("",o.SHOP_DISPLAY_NAMES[t]," ")}}function W0(e,i){if(e&1&&(l(0,"app-module-sidebar-item",3),c(1),r()),e&2){let t=i.$implicit,o=p();_("routerLink",t)("uiIcon",o.FESTIVAL_ICONS[t]),n(),h("",o.FESTIVAL_DISPLAY_NAMES[t]," ")}}var Oi=(()=>{let i=class i{constructor(){this.uiIcon=xe,this.SHOP_DISPLAY_NAMES=We,this.SHOP_ICONS=st,this.FESTIVAL_DISPLAY_NAMES=Oe,this.FESTIVAL_ICONS=rt,this.isBeta=he(dt).getSettings().useBeta,this.shops=Tt.filter(o=>this.isBeta?!0:!o.betaOnly).map(o=>o.name).sort((o,m)=>We[o].localeCompare(We[m])),this.festivals=St.map(o=>o.data.name).sort((o,m)=>Oe[o].localeCompare(Oe[m]))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-locations"]],decls:17,vars:3,consts:[["routerLink","lake-temple",3,"uiIcon"],["routerLink","orchestra-zones",3,"uiIcon"],["routerLink","merit-exchange",3,"uiIcon"],[3,"routerLink","uiIcon"],[1,"hidden"]],template:function(m,a){m&1&&(l(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),c(3,"Lake temple "),r(),l(4,"app-module-sidebar-item",1),c(5,"Orchestra Zones "),r(),l(6,"app-module-sidebar-item",2),c(7,"Merit Exchange "),r(),l(8,"app-module-sidebar-item"),c(9,"Shops"),r(),g(10,O0,2,3,"app-module-sidebar-item",3,I),l(12,"app-module-sidebar-item"),c(13,"Festivals"),r(),g(14,W0,2,3,"app-module-sidebar-item",3,I),r(),C(16,"router-outlet",4),r()),m&2&&(n(2),_("uiIcon",a.uiIcon.OFFERING),n(2),_("uiIcon",a.uiIcon.CORAL),n(2),_("uiIcon",a.uiIcon.STORE),n(4),y(a.shops),n(4),y(a.festivals))},dependencies:[Rt,Fe,zt,jt,Xt],encapsulation:2});let e=i;return e})();var It=e=>{let i=he(dt),t=he(qt);return i.getSettings().useBeta?!0:t.createUrlTree(["/only-in-beta"])};function R0(e,i){if(e&1&&C(0,"app-effect",5),e&2){let t=i.$implicit;_("effect",t)}}function q0(e,i){if(e&1&&(l(0,"div",3),c(1,"Effects when bought: "),l(2,"div",4),g(3,R0,1,1,"app-effect",5,I),r()()),e&2){let t=p();n(3),y(t)}}function G0(e,i){e&1&&d(0,q0,5,0,"div",3),e&2&&s(i.length?0:-1)}function Y0(e,i){if(e&1&&c(0),e&2){let t=p(2);h(" Unlock requirements (",t.type==="And"?"all":"any"," of them): ")}}function j0(e,i){e&1&&c(0," Unlock requirement: ")}function z0(e,i){if(e&1&&C(0,"app-requirements",6),e&2){let t=i.$implicit;_("requirement",t)}}function K0(e,i){if(e&1&&(l(0,"div",3),d(1,Y0,1,1)(2,j0,1,0),l(3,"div",4),g(4,z0,1,1,"app-requirements",6,I),r()()),e&2){let t=p();n(),s(t.requirements.length>1?1:-1),n(),s(t.requirements.length<2?2:-1),n(2),y(t.requirements)}}function Q0(e,i){e&1&&d(0,K0,6,2,"div",3),e&2&&s(i.requirements.length?0:-1)}var Wi=(()=>{let i=class i{constructor(){this.meritExchangeData=Me.required()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merit-shop-details"]],inputs:{meritExchangeData:[1,"meritExchangeData"]},decls:16,vars:8,consts:[[3,"item"],[1,"text-black"],[3,"amount"],[1,"my-2"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(m,a){if(m&1&&(l(0,"app-base-item-card",0)(1,"div"),c(2,"Buy price: "),l(3,"span",1),C(4,"app-merit-points",2),r()(),l(5,"div"),c(6,"Amount Limit: "),l(7,"span",1),c(8),r()(),l(9,"div"),c(10,"Town rank: "),l(11,"span",1),c(12),f(13,"townrank"),r()(),d(14,G0,1,1)(15,Q0,1,1),r()),m&2){let q,X;_("item",a.meritExchangeData().item),n(4),_("amount",a.meritExchangeData().priceOverride!==0?a.meritExchangeData().priceOverride:a.meritExchangeData().item.price),n(4),h(" ",a.meritExchangeData().isLimitedItem?"x"+a.meritExchangeData().itemLimit:"not limited"," "),n(4),h(" ",u(13,6,a.meritExchangeData().townRank)," "),n(2),s((q=a.meritExchangeData().effects)?14:-1,q),n(),s((X=a.meritExchangeData().requirements)?15:-1,X)}},dependencies:[ge,Qe,Ze,mi,ae],encapsulation:2});let e=i;return e})();function J0(e,i){if(e&1&&C(0,"app-merit-shop-details",1),e&2){let t=p();_("meritExchangeData",t.selectedEntity)}}function X0(e,i){if(e&1){let t=S();l(0,"app-item-icon",7),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function ec(e,i){if(e&1&&(l(0,"div",5),g(1,X0,1,3,"app-item-icon",6,I),r()),e&2){let t=p();n(),y(t)}}function tc(e,i){if(e&1&&d(0,ec,3,0,"div",5),e&2){let t=p(2);s(t.showTable?-1:0)}}function ic(e,i){if(e&1&&(l(0,"h2",4),c(1,"Stock list"),r(),d(2,tc,1,1),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}var Ri=(()=>{let i=class i extends ze{constructor(){super(),this.uiIcon=xe,this.shopItemData$=this._database.fetchMeritExchangeShopData$()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merit-shop"]],features:[F],decls:8,vars:3,consts:[["listDetail",""],[3,"meritExchangeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[1,"icon-grid"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,J0,1,1,"app-merit-shop-details",1),w(),l(3,"app-card")(4,"h1",2),C(5,"app-ui-icon",3),c(6," Merit Exchange "),r()(),d(7,ic,4,3),r()),m&2&&(n(2),s(a.selectedEntity?2:-1),n(3),_("uiIcon",a.uiIcon.STORE),n(2),s(a.shopItemData$?7:-1))},dependencies:[M,V,A,$,Wi,H],encapsulation:2});let e=i;return e})();var nc=[{path:"",pathMatch:"full",redirectTo:"lake-temple"},{path:"",component:Oi,children:[{path:"lake-temple",redirectTo:"lake-temple/",pathMatch:"full"},{path:"lake-temple/:tabName",loadComponent:()=>import("./chunk-LLAJLK2Q.js").then(e=>e.LakeTempleComponent),title:"Lake temple - Locations"},...Tt.map(e=>{let i="component"in e?{component:e.component}:{loadComponent:e.loadComponent};return Ye(Ge({path:e.name},i),{title:`${We[e.name]} - Locations`,canActivate:e.betaOnly?[It]:[]})}),...St.map(e=>({path:e.data.name,component:e.component,title:`${Oe[e.data.name]} - Locations`,canActivate:e.betaOnly?[It]:[],data:e.data})),{path:"merit-exchange",component:Ri,title:"Merit Exchange - Locations"},{path:"orchestra-zones",loadComponent:()=>import("./chunk-KIU6NDG3.js").then(e=>e.OrchestraZonesComponent),title:"Orchestra Zones - Locations"}]}],qi=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275mod=ot({type:i}),i.\u0275inj=nt({imports:[yt.forChild(nc),yt]});let e=i;return e})();function oc(e,i){if(e&1&&(l(0,"td",17),C(1,"img",18),r()),e&2){let t=i.$implicit;n(),gt("alt","",t.offerings[0].title," offering icon"),gt("src","assets/ui/images/offering/",t.offerings[0].imageName,".png",Nt)}}function ac(e,i){e&1&&(l(0,"th",19),c(1," Offering "),r()),e&2&&se("colspan",2)}function lc(e,i){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.offerings[0].title," ")}}function pc(e,i){e&1&&(l(0,"th",19),c(1,"Altar"),r())}function mc(e,i){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.offeringGroupTitle," ")}}function rc(e,i){e&1&&(l(0,"th",21),c(1," Number of required Items"),r())}function sc(e,i){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=i.$implicit;n(),h("",t.offerings[0].numOfItemRequired===-1?"All":t.offerings[0].numOfItemRequired," ")}}function cc(e,i){e&1&&(l(0,"th",23),c(1," Required Items"),r())}function dc(e,i){if(e&1&&(l(0,"td",24),C(1,"app-table-item-list",25),r()),e&2){let t=i.$implicit;n(),_("itemList",t.offerings[0].requiredItems)}}function _c(e,i){e&1&&(l(0,"th",23),c(1," Rewards"),r())}function Cc(e,i){if(e&1&&(l(0,"span",27),c(1," Recipes"),r(),C(2,"app-table-item-list",25)),e&2){let t=p().$implicit;n(2),_("itemList",t.offerings[0].rewards.recipes)}}function fc(e,i){if(e&1&&(l(0,"td",26),C(1,"app-table-item-list",25),d(2,Cc,3,1),r()),e&2){let t=i.$implicit;n(),_("itemList",t.offerings[0].rewards.items),n(),s(t.offerings[0].rewards.recipes.length?2:-1)}}function uc(e,i){e&1&&C(0,"tr",28)}function hc(e,i){e&1&&C(0,"tr",29)}function xc(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,oc,2,4,"td",2),w(),v(3,3),d(4,ac,2,1,"th",4)(5,lc,2,1,"td",5),w(),v(6,6),d(7,pc,2,0,"th",4)(8,mc,2,1,"td",5),w(),v(9,7),d(10,rc,2,0,"th",8)(11,sc,2,1,"td",9),w(),v(12,10),d(13,cc,2,0,"th",11)(14,dc,2,1,"td",12),w(),v(15,13),d(16,_c,2,0,"th",11)(17,fc,3,2,"td",14),w(),d(18,uc,1,0,"tr",15)(19,hc,1,0,"tr",16),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(18),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var T1=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.showAltar=Me(!1,{transform:at}),this.BASE_DISPLAY_COLUMNS=["icon","displayName","numOfItemRequired","requiredItems","rewards"],this._datasource=[]}get dataSource(){return this._datasource}set dataSource(o){let m=[];o.forEach(a=>{a.offerings.forEach(q=>{m.push(Ye(Ge({},a),{offerings:[q]}))})}),this._datasource=m}setupDataSource(o){super.setupDataSource(o);let m=this.displayedColumns.indexOf("altar");this.showAltar()&&m===-1?(this.displayedColumns.splice(2,0,"altar"),this.displayHeaderColumns=this.displayedColumns.filter(a=>a!=="icon")):!this.showAltar()&&m!==-1&&(this.displayedColumns.splice(m,1),this.displayHeaderColumns=this.displayedColumns.filter(a=>a!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-offerings-table"]],inputs:{showAltar:[1,"showAltar"],dataSource:"dataSource"},features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","altar"],["matColumnDef","numOfItemRequired"],["class","whitespace-nowrap","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","requiredItems"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","rewards"],["class","list-col w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],["height","32","width","32",3,"alt","src"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],["mat-cell","",1,"list-col","w-[1%]"],[1,"text-black","font-semibold","mt-2"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,xc,20,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[ye,ft,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve],encapsulation:2});let e=i;return e})();var Tc=e=>({$implicit:e});function Sc(e,i){if(e&1&&C(0,"app-base-item-card",0),e&2){let t=p(),o=p();_("item",t)("context",o.context())("quality",o.quality())("amount",o.amount())}}function gc(e,i){e&1&&Ut(0)}function yc(e,i){if(e&1&&d(0,gc,1,0,"ng-container",3),e&2){let t=i.$implicit,o=p(3);_("ngTemplateOutlet",o.databaseItemDetails)("ngTemplateOutletContext",Se(2,Tc,t))}}function Ic(e,i){if(e&1&&(l(0,"app-database-item-details",1),d(1,yc,1,4,"ng-template",2),r()),e&2){let t=p(),o=p();_("itemId",t.id)("context",o.context())("quality",o.quality())("amount",o.amount())}}function vc(e,i){if(e&1&&(d(0,Sc,1,4,"app-base-item-card",0),f(1,"isMinimalItem"),d(2,Ic,2,4,"app-database-item-details",1)),e&2){let t=p();s(t.isCustomEntry(t.item())||t.isTagBasedItem(t.item())?0:u(1,1,i)?2:-1)}}var Gi=(()=>{let i=class i{constructor(){this.item=Me.required(),this.databaseItemDetails=null,this.context=Me(),this.amount=Me(),this.quality=Me()}isTagBasedItem(o){return"key"in o}isCustomEntry(o){return"id"in o&&!o.id.toLowerCase().startsWith("item_")}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-item-card-switch"]],contentQueries:function(m,a,q){if(m&1&&Vt(q,Mt,5),m&2){let X;$t(X=Ht())&&(a.databaseItemDetails=X.first)}},inputs:{item:[1,"item"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"]},standalone:!0,features:[de],decls:1,vars:1,consts:[[3,"item","context","quality","amount"],[3,"itemId","context","quality","amount"],["appDatabaseItemDetails",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(m,a){if(m&1&&d(0,vc,3,3),m&2){let q;s((q=a.item())?0:-1,q)}},dependencies:[oe,Lt,He,ge,Ke,_i,di],encapsulation:2});let e=i;return e})();function wc(e,i){if(e&1&&(l(0,"div"),c(1,"Animal: "),l(2,"span",0),C(3,"app-item-icon",1),c(4),r()()),e&2){let t=p();n(3),_("itemName",t.animal.variants[0].icons.adult),n(),h(" ",t.animal.displayName," ")}}function Dc(e,i){if(e&1&&(l(0,"div"),c(1,"Drop location: "),l(2,"span",0),c(3),f(4,"addSpacesToPascalCase"),r()()),e&2){let t=p(2);n(3),h(" ",u(4,1,t.animal.produceDropLocation)," ")}}function bc(e,i){if(e&1&&(l(0,"div"),c(1,"Tool for harvesting: "),l(2,"span",0),C(3,"app-item-icon",1),c(4),r()()),e&2){let t=p(2);n(3),_("itemName",t.animal.itemHarvestTool.iconName),n(),h(" ",t.animal.itemHarvestTool.displayName," ")}}function Ec(e,i){if(e&1&&(l(0,"div",0),c(1),f(2,"addSpacesToPascalCase"),f(3,"titlecase"),C(4,"app-item-icon",1),c(5),r()),e&2){let t=p(2).$implicit;n(),h(" ",u(3,5,u(2,3,t.key)),": "),n(3),_("itemName",t.value.iconName),n(),h(" ",t.value.displayName," ")}}function Pc(e,i){if(e&1&&d(0,Ec,6,7,"div",0),e&2){let t=p().$implicit,o=p(3);s(!o.shownItemId||o.shownItemId===t.value.id?0:-1)}}function kc(e,i){if(e&1&&(d(0,Pc,1,1),f(1,"isMinimalItem")),e&2){let t=i.$implicit;s(u(1,1,t.value)?0:-1)}}function Bc(e,i){if(e&1&&(g(0,kc,2,3,null,null,I),f(2,"keyvalue")),e&2){let t=i.$implicit,o=p(2);y(ne(2,0,t,o.keyValueNoOrder))}}function Nc(e,i){if(e&1&&(d(0,Dc,5,3,"div"),l(1,"div"),c(2,"Type of producing: "),l(3,"span",0),c(4),f(5,"addSpacesToPascalCase"),r()(),d(6,bc,5,2,"div"),l(7,"div"),c(8,"Harvest cooldown: "),l(9,"span",0),c(10),r()(),l(11,"div",2),c(12,"Produces: "),g(13,Bc,3,3,null,null,I),r()),e&2){let t=p();s(t.animal.produceDropLocation!=="None"?0:-1),n(4),h(" ",u(5,5,t.animal.animalProduceType)," "),n(2),s(t.animal.itemHarvestTool?6:-1),n(4),ce(" ",t.animal.harvestCooldown," day",t.animal.harvestCooldown>1?"s":""," "),n(3),y(t.animal.produces)}}var Yi=(()=>{let i=class i{constructor(){this.hideAnimal=!1}keyValueNoOrder(){return 0}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-animal-produce"]],inputs:{animal:"animal",shownItemId:"shownItemId",hideAnimal:[2,"hideAnimal","hideAnimal",at]},standalone:!0,features:[Ft,de],decls:2,vars:2,consts:[[1,"text-black"],[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"],[1,"my-3"]],template:function(m,a){m&1&&d(0,wc,5,2,"div")(1,Nc,15,7),m&2&&(s(a.hideAnimal?-1:0),n(),s(a.animal.animalProduceType!=="None"?1:-1))},dependencies:[oe,lt,je,Re,He,M,Ke],encapsulation:2});let e=i;return e})();var Mc=e=>[1,e];function Fc(e,i){if(e&1&&(l(0,"div"),c(1,"Regrows: "),l(2,"span",4),c(3),f(4,"max"),r()()),e&2){let t=p(2);n(3),h("",u(4,1,Se(3,Mc,t.item.regrowableLength))," days")}}function Uc(e,i){if(e&1&&(l(0,"div"),c(1,"Can combine: "),l(2,"span",4),c(3),r()()),e&2){let t=p(3);n(3),h("",t.item.chanceToCombine.chance,"%")}}function Vc(e,i){e&1&&(l(0,"div",4),c(1,"Scythe required"),r())}function $c(e,i){e&1&&(l(0,"div",4),c(1,"Is trellis crop"),r())}function Hc(e,i){if(e&1&&d(0,Uc,4,1,"div")(1,Vc,2,0,"div",4)(2,$c,2,0,"div",4),e&2){let t=p(2);s(t.item.canCombine?0:-1),n(),s(t.item.isScytheRequired?1:-1),n(),s(t.item.isTrellisCrop?2:-1)}}function Ac(e,i){if(e&1&&(l(0,"div",0),C(1,"app-item-icon",1),l(2,"span",2),c(3),r(),C(4,"app-money",3),r(),l(5,"div"),c(6,"Season: "),l(7,"span",4),c(8),r()(),l(9,"div"),c(10,"Time to mature: "),l(11,"span",4),c(12),r()(),d(13,Fc,5,5,"div")(14,Hc,3,3),f(15,"isCrop"),l(16,"div"),c(17,"Size (WxL): "),l(18,"span",4),c(19),r()()),e&2){let t=p();n(),_("itemName",t.item.item.iconName),n(2),b(t.item.readableName),n(),_("amount",t.item.item.price),n(4),b(t.item.growableSeason.join(", ")),n(4),h("",t.item.growTime," days"),n(),s(t.item.isRegrowable?13:-1),n(),s(u(15,9,t.item)?14:-1),n(5),ce("",t.item.size.width,"x",t.item.size.length,"")}}var ji=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-crop"]],inputs:{item:"item"},standalone:!0,features:[de],decls:2,vars:3,consts:[[1,"flex","items-center","mb-2"],[1,"h-10","w-10","mr-1",3,"itemName"],[1,"text-black","mr-3"],[3,"amount"],[1,"text-black"]],template:function(m,a){m&1&&(d(0,Ac,20,11),f(1,"isBaseCrop")),m&2&&s(u(1,1,a.item)?0:-1)},dependencies:[oe,He,M,J,Jt,ii,oi],encapsulation:2});let e=i;return e})();var Lc=(e,i)=>i.key;function Oc(e,i){e&1&&(l(0,"div"),c(1,"Weather: "),l(2,"span",0),c(3),r()()),e&2&&(n(3),b(i))}function Wc(e,i){if(e&1&&(C(0,"hr"),l(1,"div"),c(2,"Time: "),l(3,"span",0),c(4),r()(),l(5,"div"),c(6," Season: "),l(7,"span",0),c(8),r()(),d(9,Oc,4,1,"div"),l(10,"div"),c(11," Location: "),l(12,"span",0),c(13),r()()),e&2){let t,o=i.$implicit,m=p();n(4),b(m.getTruthyValues(o.spawnTime)),n(4),b(o.isUsingSpecificDate?m.dateRangesToString(o.dateRangeList):m.getTruthyValues(o.spawnSeason)),n(),s((t=m.getTruthyValues(o.spawnWeather))?9:-1,t),n(4),b(o.spawnLocation.join(", "))}}var zi=(()=>{let i=class i{constructor(){this.getTruthyValues=ct}dateRangesToString(o){return o.map(m=>`From ${m.startsFrom.season} ${m.startsFrom.day} to ${m.lastsTill.season} ${m.lastsTill.day}`).join(", ")}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-fish"]],inputs:{fish:"fish"},standalone:!0,features:[de],decls:20,vars:8,consts:[[1,"text-black"]],template:function(m,a){m&1&&(l(0,"div"),c(1,"Rarity: "),l(2,"span",0),c(3),f(4,"addSpacesToPascalCase"),r()(),l(5,"div"),c(6,"Size: "),l(7,"span",0),c(8),r()(),l(9,"div"),c(10,"Pattern: "),l(11,"span",0),c(12),r()(),l(13,"div"),c(14,"Difficulty: "),l(15,"span",0),c(16),f(17,"addSpacesToPascalCase"),r()(),g(18,Wc,14,4,null,null,Lc)),m&2&&(n(3),b(u(4,4,a.fish.rarity)),n(5),b(a.fish.fishSize),n(4),b(a.fish.pattern),n(4),b(u(17,6,a.fish.difficulty)),n(2),y(a.fish.spawnSettings))},dependencies:[oe,Re],encapsulation:2});let e=i;return e})();function Rc(e,i){e&1&&(l(0,"div"),c(1,"Weather: "),l(2,"span",0),c(3),r()()),e&2&&(n(3),b(i))}function qc(e,i){if(e&1&&(l(0,"div",1)(1,"span"),c(2),r(),l(3,"span",0),c(4),r()()),e&2){let t=i.$implicit;n(2),b(t[0]),n(2),b(t[1])}}function Gc(e,i){if(e&1&&(l(0,"div"),c(1,"Spawn amount modifiers "),g(2,qc,5,2,"div",1,I),C(4,"hr"),r()),e&2){let t=p();n(2),y(t.critter.spawnAmountModifiers)}}var Ki=(()=>{let i=class i{constructor(){this.getTruthyValues=ct}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-insect"]],inputs:{critter:"critter"},standalone:!0,features:[de],decls:19,vars:8,consts:[[1,"text-black"],[1,"flex","justify-between"]],template:function(m,a){if(m&1&&(l(0,"div"),c(1,"Rarity: "),l(2,"span",0),c(3),f(4,"addSpacesToPascalCase"),r()(),l(5,"div"),c(6,"Time: "),l(7,"span",0),c(8),r()(),l(9,"div"),c(10," Season: "),l(11,"span",0),c(12),r()(),d(13,Rc,4,1,"div"),l(14,"div"),c(15," Location: "),l(16,"span",0),c(17),r()(),d(18,Gc,5,0,"div")),m&2){let q;n(3),b(u(4,6,a.critter.rarity)),n(5),b(a.getTruthyValues(a.critter.spawnTime)),n(4),b(a.getTruthyValues(a.critter.spawnSeason)),n(),s((q=a.getTruthyValues(a.critter.spawnWeather))?13:-1,q),n(4),b(a.critter.spawnLocation.join(", ")),n(),s(a.critter.spawnAmountModifiers&&a.critter.spawnAmountModifiers.length?18:-1)}},dependencies:[oe,Re],encapsulation:2});let e=i;return e})();var Yc=(e,i)=>i.input.id;function jc(e,i){if(e&1&&(l(0,"div",0)(1,"div",1),C(2,"app-item-icon",2),l(3,"span"),c(4),r()(),l(5,"div",3),c(6),r()(),C(7,"hr")),e&2){let t=i.$implicit;n(2),_("itemName",t.input.iconName),n(2),b(t.input.displayName),n(2),h("",t.outputChanges[0].chance,"%")}}var Qi=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-shop-processing-result"]],inputs:{itemProcessData:"itemProcessData"},standalone:!0,features:[de],decls:2,vars:0,consts:[[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"w-10",3,"itemName"],[1,"flex","items-center"]],template:function(m,a){m&1&&g(0,jc,8,3,null,null,Yc),m&2&&y(a.itemProcessData)},dependencies:[oe,He,M],encapsulation:2});let e=i;return e})();var Zi=(e,i)=>i.key;function zc(e,i){if(e&1&&C(0,"app-fish",0),e&2){let t=p();_("fish",t.details.fish)}}function Kc(e,i){if(e&1&&C(0,"app-insect",1),e&2){let t=p();_("critter",t.details.insect)}}function Qc(e,i){if(e&1&&C(0,"app-insect",1),e&2){let t=p();_("critter",t.details.oceanCritter)}}function Zc(e,i){if(e&1&&C(0,"app-crop",4),e&2){let t=i.$implicit;_("item",t)}}function Jc(e,i){if(e&1&&g(0,Zc,1,1,"app-crop",4,Zi),e&2){let t=p();y(t.details.isSeedFor)}}function Xc(e,i){if(e&1&&C(0,"app-animal-produce",2),e&2){let t=p();_("animal",t.details.producedByAnimal)("shownItemId",t.details.item.id)}}function ed(e,i){if(e&1&&C(0,"app-cooking-recipe",5),e&2){let t=i.$implicit;_("cookingRecipe",t)}}function td(e,i){if(e&1&&g(0,ed,1,1,"app-cooking-recipe",5,Zi),e&2){let t=p();y(t.details.cookedFrom)}}function id(e,i){if(e&1&&(l(0,"div"),c(1,"Possible drop from:"),r(),C(2,"app-shop-processing-result",6)),e&2){let t=p();n(2),_("itemProcessData",t.details.chanceAsProcessResult)}}function nd(e,i){if(e&1&&C(0,"app-processing",7),e&2){let t=i.$implicit,o=i.$index;P("mt-3",o!==0),_("itemProcessing",t)}}var Ji=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-offering"]],inputs:{details:"details"},standalone:!0,features:[de],decls:9,vars:2,consts:[[3,"fish"],[3,"critter"],[3,"animal","shownItemId"],[3,"mt-3","itemProcessing"],[3,"item"],["showUtensil","",3,"cookingRecipe"],[1,"mb-4",3,"itemProcessData"],[3,"itemProcessing"]],template:function(m,a){m&1&&(d(0,zc,1,1,"app-fish",0)(1,Kc,1,1,"app-insect",1)(2,Qc,1,1,"app-insect",1)(3,Jc,2,0)(4,Xc,1,2,"app-animal-produce",2)(5,td,2,0)(6,id,3,1),g(7,nd,1,3,"app-processing",3,I)),m&2&&(s(a.details.fish?0:a.details.insect?1:a.details.oceanCritter?2:a.details.isSeedFor?3:a.details.producedByAnimal?4:a.details.cookedFrom?5:-1),n(6),s(a.details.chanceAsProcessResult?6:-1),n(),y(a.details.artisanResult))},dependencies:[oe,Yi,fi,ji,zi,Ki,Ci,Qi],encapsulation:2});let e=i;return e})();var Rf=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275mod=ot({type:i}),i.\u0275inj=nt({imports:[oe,qi,He,ei,ti,ni,ui,Qt,Yt,Gi,Ji]});let e=i;return e})();export{zi as a,Ki as b,Qi as c,ji as d,Yi as e,G as f,O as g,W as h,Y as i,j,R as k,z as l,K as m,Ei as n,Pi as o,Li as p,Gi as q,Ji as r,T1 as s,Rf as t}; +`,u(23,12,a.mappedAnimalShopData().townRank)," "),n(2),s(a.mappedAnimalShopData().itemLimit>=0?24:-1),n(),s((X=a.mappedAnimalShopData().animal)?25:-1,X),n(),_("requirements",a.mappedAnimalShopData().requirements),n(3),_("amount",a.mappedAnimalShopData().sellPrice)}},dependencies:[M,V,J,ci,Kt,$,lt,je,ae,Ke,Re],encapsulation:2});let e=i;return e})();var np=()=>["hearts","bad","neutral","happy"];function op(e,i){e&1&&(l(0,"th",16),c(1,"Hearts / size per mood "),r()),e&2&&se("rowspan",2)}function ap(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.heartLevel," heart(s) ")}}function lp(e,i){e&1&&(l(0,"th",18),c(1,"Bad "),r()),e&2&&se("colspan",2)}function pp(e,i){e&1&&(l(0,"th",18),c(1,"Neutral "),r()),e&2&&se("colspan",2)}function mp(e,i){e&1&&(l(0,"th",18),c(1,"Happy "),r()),e&2&&se("colspan",2)}function rp(e,i){e&1&&(l(0,"th",16),c(1,"Small"),r())}function sp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.bad.small," % ")}}function cp(e,i){e&1&&(l(0,"th",16),c(1,"Large"),r())}function dp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.bad.large," % ")}}function _p(e,i){e&1&&(l(0,"th",16),c(1,"Small"),r())}function Cp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.neutral.small," % ")}}function fp(e,i){e&1&&(l(0,"th",16),c(1,"Large"),r())}function up(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.neutral.large," % ")}}function hp(e,i){e&1&&(l(0,"th",16),c(1,"Small"),r())}function xp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.happy.small," % ")}}function Tp(e,i){e&1&&(l(0,"th",16),c(1,"Large"),r())}function Sp(e,i){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.happy.large," % ")}}function gp(e,i){e&1&&C(0,"tr",19)}function yp(e,i){e&1&&C(0,"tr",19)}function Ip(e,i){e&1&&C(0,"tr",20)}var Pi=(()=>{let i=class i{constructor(){this.displayHeaderColumns=["hearts","badSmall","badLarge","neutralSmall","neutralLarge","happySmall","happyLarge"]}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-animal-mood-table"]],inputs:{productSizeByMood:"productSizeByMood"},decls:33,vars:10,consts:[["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","hearts"],["class","backdrop-blur-xl","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","bad"],["class","backdrop-blur-xl justify-center","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","neutral"],["matColumnDef","happy"],["matColumnDef","badSmall"],["matColumnDef","badLarge"],["matColumnDef","neutralSmall"],["matColumnDef","neutralLarge"],["matColumnDef","happySmall"],["matColumnDef","happyLarge"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","",1,"backdrop-blur-xl","justify-center"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table")(1,"table",0),v(2,1),d(3,op,2,1,"th",2)(4,ap,2,1,"td",3),w(),v(5,4),d(6,lp,2,1,"th",5),w(),v(7,6),d(8,pp,2,1,"th",5),w(),v(9,7),d(10,mp,2,1,"th",5),w(),v(11,8),d(12,rp,2,0,"th",2)(13,sp,2,1,"td",3),w(),v(14,9),d(15,cp,2,0,"th",2)(16,dp,2,1,"td",3),w(),v(17,10),d(18,_p,2,0,"th",2)(19,Cp,2,1,"td",3),w(),v(20,11),d(21,fp,2,0,"th",2)(22,up,2,1,"td",3),w(),v(23,12),d(24,hp,2,0,"th",2)(25,xp,2,1,"td",3),w(),v(26,13),d(27,Tp,2,0,"th",2)(28,Sp,2,1,"td",3),w(),d(29,gp,1,0,"tr",14)(30,yp,1,0,"tr",14),f(31,"slice"),d(32,Ip,1,0,"tr",15),r()()),m&2&&(n(),_("dataSource",a.productSizeByMood),n(28),_("matHeaderRowDef",At(9,np))("matHeaderRowDefSticky",!0),n(),_("matHeaderRowDef",ne(31,6,a.displayHeaderColumns,1))("matHeaderRowDefSticky",!0),n(2),_("matRowDefColumns",a.displayHeaderColumns))},dependencies:[ye,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ot],encapsulation:2});let e=i;return e})();function wp(e,i){if(e&1&&C(0,"app-shop-item-data-details",1),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Dp(e,i){if(e&1&&C(0,"app-animal-details",2),e&2){let t=p();_("mappedAnimalShopData",t.selectedAnimal)}}function bp(e,i){e&1&&C(0,"app-opening-hours",7),e&2&&_("openingHours",i)}function Ep(e,i){if(e&1&&(d(0,bp,1,1,"app-opening-hours",7),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Pp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function kp(e,i){if(e&1&&(l(0,"div",9),g(1,Pp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Bp(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Np(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,kp,3,0,"div",9)(2,Bp,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Mp(e,i){if(e&1&&(l(0,"h2",5),c(1,"Stock list"),r(),d(2,Np,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Fp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(3);return T(a.showAnimal(m))}),r()}if(e&2){let t,o=i.$implicit,m=p(3);P("selected-icon",(m.selectedAnimal==null?null:m.selectedAnimal.key)===o.key),_("itemName",(t=o.animal==null||o.animal.variants==null||o.animal.variants[0]==null||o.animal.variants[0].icons==null?null:o.animal.variants[0].icons.adult)!==null&&t!==void 0?t:null)}}function Up(e,i){if(e&1&&(l(0,"div",9),g(1,Fp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Vp(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p();return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Up,3,0,"div",9)}if(e&2){let t=p();k("showTable",t.showTable),n(),s(t.showTable?-1:1)}}function $p(e,i){e&1&&C(0,"app-animal-mood-table",6),e&2&&_("productSizeByMood",i)}var ki=(()=>{let i=class i extends G{constructor(){super(),this.shopName="ranch",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.sizeByMood$=this._database.fetchAnimalMoodData$(),this.animalData$=tt([this._database.fetchAnimals$(),this._database.fetchAnimalShopData$(this.shopName)]).pipe(it(([o,m])=>Pt(m.map(a=>{let vt=a,{animalKey:q}=vt,X=wt(vt,["animalKey"]);return Ye(Ge({},X),{animal:o.find(Xi=>Xi.key===q)})}))))}showDetails(o){super.showDetails(o),this.selectedAnimal=void 0}showAnimal(o){this.selectedAnimal=o,this.selectedEntity=void 0,this.listDetail.open()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-ranch"]],features:[F],decls:18,vars:12,consts:[["listDetail",""],[3,"shopItemData"],[3,"mappedAnimalShopData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"productSizeByMood"],[3,"openingHours"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(m,a){if(m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,wp,1,1,"app-shop-item-data-details",1)(3,Dp,1,1,"app-animal-details",2),w(),l(4,"app-card")(5,"h1",3),C(6,"app-ui-icon",4),c(7),r(),d(8,Ep,2,3),r(),d(9,Mp,4,3),l(10,"h2",5),c(11,"Animals"),r(),d(12,Vp,2,2),f(13,"async"),l(14,"h2",5),c(15,"Animal product size per mood and hearts"),r(),d(16,$p,1,1,"app-animal-mood-table",6),f(17,"async"),r()),m&2){let q,X;n(2),s(a.selectedEntity?2:-1),n(),s(a.selectedAnimal?3:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?8:-1),n(),s(a.shopItemData$?9:-1),n(3),s((q=u(13,8,a.animalData$))?12:-1,q),n(4),s((X=u(17,10,a.sizeByMood$))?16:-1,X)}},dependencies:[M,V,A,L,$,O,W,R,Ei,Pi,H],encapsulation:2});let e=i;return e})();function Hp(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Ap(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Lp(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Op(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Wp(e,i){if(e&1&&(d(0,Op,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Rp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function qp(e,i){if(e&1&&(l(0,"div",9),g(1,Rp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Gp(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Yp(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,qp,3,0,"div",9)(2,Gp,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function jp(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Yp,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function zp(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Kp(e,i){if(e&1&&(l(0,"div",9),g(1,zp,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Qp(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Zp(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Kp,3,0,"div",9)(2,Qp,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Jp(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Zp,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Xp(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function em(e,i){if(e&1&&(l(0,"div",9),g(1,Xp,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function tm(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function im(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,em,3,0,"div",9)(2,tm,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function nm(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,im,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Bi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="beach-shack",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.itemUpgrade$=this._database.fetchItemUpgradeData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-beach-shack"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Hp,1,1,"app-shop-item-process-data-details",1)(3,Ap,1,1,"app-shop-item-data-details",2)(4,Lp,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Wp,2,3),r(),d(10,jp,4,3)(11,Jp,4,3)(12,nm,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function om(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function am(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function lm(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function pm(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function mm(e,i){if(e&1&&(d(0,pm,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function rm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function sm(e,i){if(e&1&&(l(0,"div",9),g(1,rm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function cm(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function dm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,sm,3,0,"div",9)(2,cm,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function _m(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,dm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Cm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function fm(e,i){if(e&1&&(l(0,"div",9),g(1,Cm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function um(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function hm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,fm,3,0,"div",9)(2,um,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function xm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,hm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Tm(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Sm(e,i){if(e&1&&(l(0,"div",9),g(1,Tm,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function gm(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function ym(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Sm,3,0,"div",9)(2,gm,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Im(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,ym,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ni=(()=>{let i=class i extends G{constructor(){super(),this.shopName="concerned-monkey",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-concerned-monkey"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,om,1,1,"app-shop-item-process-data-details",1)(3,am,1,1,"app-shop-item-data-details",2)(4,lm,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,mm,2,3),r(),d(10,_m,4,3)(11,xm,4,3)(12,Im,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function vm(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function wm(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Dm(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function bm(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Em(e,i){if(e&1&&(d(0,bm,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Pm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function km(e,i){if(e&1&&(l(0,"div",9),g(1,Pm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Bm(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Nm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,km,3,0,"div",9)(2,Bm,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Mm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Nm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Fm(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Um(e,i){if(e&1&&(l(0,"div",9),g(1,Fm,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Vm(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function $m(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Um,3,0,"div",9)(2,Vm,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function Hm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,$m,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Am(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Lm(e,i){if(e&1&&(l(0,"div",9),g(1,Am,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Om(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Wm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Lm,3,0,"div",9)(2,Om,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Rm(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Wm,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Mi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="bos",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-bos"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,vm,1,1,"app-shop-item-process-data-details",1)(3,wm,1,1,"app-shop-item-data-details",2)(4,Dm,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Em,2,3),r(),d(10,Mm,4,3)(11,Hm,4,3)(12,Rm,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function qm(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Gm(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Ym(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function jm(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function zm(e,i){if(e&1&&(d(0,jm,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Km(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Qm(e,i){if(e&1&&(l(0,"div",9),g(1,Km,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Zm(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Jm(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Qm,3,0,"div",9)(2,Zm,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Xm(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Jm,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function er(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function tr(e,i){if(e&1&&(l(0,"div",9),g(1,er,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ir(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function nr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,tr,3,0,"div",9)(2,ir,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function or(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,nr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function ar(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function lr(e,i){if(e&1&&(l(0,"div",9),g(1,ar,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function pr(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function mr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,lr,3,0,"div",9)(2,pr,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function rr(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,mr,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Fi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="bens-caravan",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-bens-caravan"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,qm,1,1,"app-shop-item-process-data-details",1)(3,Gm,1,1,"app-shop-item-data-details",2)(4,Ym,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,zm,2,3),r(),d(10,Xm,4,3)(11,or,4,3)(12,rr,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function sr(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function cr(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function dr(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function _r(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Cr(e,i){if(e&1&&(d(0,_r,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function fr(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function ur(e,i){if(e&1&&(l(0,"div",9),g(1,fr,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function hr(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function xr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,ur,3,0,"div",9)(2,hr,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Tr(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,xr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Sr(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function gr(e,i){if(e&1&&(l(0,"div",9),g(1,Sr,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function yr(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Ir(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,gr,3,0,"div",9)(2,yr,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function vr(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Ir,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function wr(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Dr(e,i){if(e&1&&(l(0,"div",9),g(1,wr,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function br(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Er(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Dr,3,0,"div",9)(2,br,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Pr(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Er,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Ui=(()=>{let i=class i extends G{constructor(){super(),this.shopName="socket-and-pan",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-socket-and-pan"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,sr,1,1,"app-shop-item-process-data-details",1)(3,cr,1,1,"app-shop-item-data-details",2)(4,dr,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Cr,2,3),r(),d(10,Tr,4,3)(11,vr,4,3)(12,Pr,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function kr(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Br(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Nr(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Mr(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Fr(e,i){if(e&1&&(d(0,Mr,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function Ur(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function Vr(e,i){if(e&1&&(l(0,"div",9),g(1,Ur,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function $r(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function Hr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,Vr,3,0,"div",9)(2,$r,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function Ar(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,Hr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Lr(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function Or(e,i){if(e&1&&(l(0,"div",9),g(1,Lr,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Wr(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Rr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,Or,3,0,"div",9)(2,Wr,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function qr(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Rr,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Gr(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Yr(e,i){if(e&1&&(l(0,"div",9),g(1,Gr,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function jr(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function zr(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Yr,3,0,"div",9)(2,jr,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Kr(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,zr,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Vi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="white-flamingo",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-white-flamingo"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,kr,1,1,"app-shop-item-process-data-details",1)(3,Br,1,1,"app-shop-item-data-details",2)(4,Nr,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Fr,2,3),r(),d(10,Ar,4,3)(11,qr,4,3)(12,Kr,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function Qr(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function Zr(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function Jr(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Xr(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function es(e,i){if(e&1&&(d(0,Xr,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function ts(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function is(e,i){if(e&1&&(l(0,"div",9),g(1,ts,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ns(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function os(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,is,3,0,"div",9)(2,ns,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function as(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,os,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function ls(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function ps(e,i){if(e&1&&(l(0,"div",9),g(1,ls,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function ms(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function rs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,ps,3,0,"div",9)(2,ms,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ss(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,rs,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function cs(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function ds(e,i){if(e&1&&(l(0,"div",9),g(1,cs,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function _s(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Cs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,ds,3,0,"div",9)(2,_s,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function fs(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Cs,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var $i=(()=>{let i=class i extends G{constructor(){super(),this.shopName="coffee",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-coffee"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,Qr,1,1,"app-shop-item-process-data-details",1)(3,Zr,1,1,"app-shop-item-data-details",2)(4,Jr,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,es,2,3),r(),d(10,as,4,3)(11,ss,4,3)(12,fs,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();function us(e,i){if(e&1&&C(0,"app-shop-item-process-data-details",1),e&2){let t=p();_("itemProcessData",t.selectedProcessEntity)}}function hs(e,i){if(e&1&&C(0,"app-shop-item-data-details",2),e&2){let t=p();_("shopItemData",t.selectedEntity)}}function xs(e,i){if(e&1&&C(0,"app-item-upgrade-details",3),e&2){let t=p();_("itemUpgradeData",t.selectedItemUpgrade)}}function Ts(e,i){e&1&&C(0,"app-opening-hours",6),e&2&&_("openingHours",i)}function Ss(e,i){if(e&1&&(d(0,Ts,1,1,"app-opening-hours",6),f(1,"async")),e&2){let t,o=p();s((t=u(1,1,o.openingHours$))?0:-1,t)}}function gs(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function ys(e,i){if(e&1&&(l(0,"div",9),g(1,gs,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Is(e,i){if(e&1&&C(0,"app-shop-item-data-table",10),e&2){let t=p();_("dataSource",t)}}function vs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(1,ys,3,0,"div",9)(2,Is,1,1,"app-shop-item-data-table",10)}if(e&2){let t=p(2);k("showTable",t.showTable),n(),s(t.showTable?-1:1),n(),s(t.showTable?2:-1)}}function ws(e,i){if(e&1&&(l(0,"h2",7),c(1,"Stock list"),r(),d(2,vs,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}function Ds(e,i){if(e&1){let t=S();l(0,"app-item-icon",12),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showProcessDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedProcessEntity==null||o.selectedProcessEntity.input==null?null:o.selectedProcessEntity.input.id)===t.input.id),_("itemName",t.input.iconName)}}function bs(e,i){if(e&1&&(l(0,"div",9),g(1,Ds,1,3,"app-item-icon",11,I),r()),e&2){let t=p();n(),y(t)}}function Es(e,i){if(e&1&&C(0,"app-shop-item-process-table",10),e&2){let t=p();_("dataSource",t)}}function Ps(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showProcessingTable,m)||(a.showProcessingTable=m),T(m)}),r(),d(1,bs,3,0,"div",9)(2,Es,1,1,"app-shop-item-process-table",10)}if(e&2){let t=p(2);k("showTable",t.showProcessingTable),n(),s(t.showProcessingTable?-1:1),n(),s(t.showProcessingTable?2:-1)}}function ks(e,i){if(e&1&&(l(0,"h2",7),c(1,"Item processing"),r(),d(2,Ps,3,3),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.itemProcessing$))?2:-1,t)}}function Bs(e,i){if(e&1){let t=S();l(0,"app-item-icon",14),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showItemUpgradeDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedItemUpgrade==null||o.selectedItemUpgrade.item==null?null:o.selectedItemUpgrade.item.id)===t.item.id),_("itemName",t.item.iconName)("quality",t.level)}}function Ns(e,i){if(e&1&&(l(0,"div",9),g(1,Bs,1,4,"app-item-icon",13,I),r()),e&2){let t=p();n(),y(t)}}function Ms(e,i){if(e&1&&C(0,"app-item-upgrade-table",10),e&2){let t=p();_("dataSource",t)}}function Fs(e,i){if(e&1){let t=S();l(0,"app-data-filter",8),N("showTableChange",function(m){x(t);let a=p(2);return B(a.showPItemUpgradeTable,m)||(a.showPItemUpgradeTable=m),T(m)}),r(),d(1,Ns,3,0,"div",9)(2,Ms,1,1,"app-item-upgrade-table",10)}if(e&2){let t=p(2);k("showTable",t.showPItemUpgradeTable),n(),s(t.showPItemUpgradeTable?-1:1),n(),s(t.showPItemUpgradeTable?2:-1)}}function Us(e,i){if(e&1&&(l(0,"h2",7),c(1),r(),d(2,Fs,3,3),f(3,"async")),e&2){let t,o=p();n(),b(o.upgradeHeaderText),n(),s((t=u(3,2,o.itemUpgrade$))?2:-1,t)}}var Hi=(()=>{let i=class i extends G{constructor(){super(),this.shopName="tavern",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-tavern"]],features:[F],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,us,1,1,"app-shop-item-process-data-details",1)(3,hs,1,1,"app-shop-item-data-details",2)(4,xs,1,1,"app-item-upgrade-details",3),w(),l(5,"app-card")(6,"h1",4),C(7,"app-ui-icon",5),c(8),r(),d(9,Ss,2,3),r(),d(10,ws,4,3)(11,ks,4,3)(12,Us,4,4),r()),m&2&&(n(2),s(a.selectedProcessEntity?2:-1),n(),s(a.selectedEntity?3:-1),n(),s(a.selectedItemUpgrade?4:-1),n(3),_("uiIcon",a.SHOP_ICONS[a.shopName]),n(),h(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),n(),s(a.openingHours$?9:-1),n(),s(a.shopItemData$?10:-1),n(),s(a.itemProcessing$?11:-1),n(),s(a.itemUpgrade$?12:-1))},dependencies:[M,V,A,L,$,O,W,Y,j,R,z,K,H],encapsulation:2});let e=i;return e})();var Tt=[{name:"general-store",component:gi},{name:"blacksmith",component:Ti},{name:"lab",component:Si},{name:"carpenter",component:yi},{name:"bos",component:Mi},{name:"ranch",component:ki},{name:"pet-shop",component:Di},{name:"bens-caravan",component:Fi},{name:"socket-and-pan",component:Ui},{name:"beach-shack",component:Bi},{name:"concerned-monkey",component:Ni},{name:"merfolk-general-store",component:Ii},{name:"merfolk-oracle-tail-store",component:vi},{name:"tidal-threads",loadComponent:()=>import("./chunk-LMVNWVQ6.js").then(e=>e.TidalThreadsComponent)},{name:"underwater-ranch",loadComponent:()=>import("./chunk-OYNPJTXB.js").then(e=>e.UnderwaterRanchComponent)},{name:"taco-truck",loadComponent:()=>import("./chunk-TIKI6YA4.js").then(e=>e.TacoTruckComponent)},{name:"ramen-shop",loadComponent:()=>import("./chunk-2DMGPU4G.js").then(e=>e.RamenShopComponent)},{name:"sales-cart-stall",loadComponent:()=>import("./chunk-MS5UJFMU.js").then(e=>e.SalesCartStallComponent)},{name:"furniture-store",loadComponent:()=>import("./chunk-EBZ7CU56.js").then(e=>e.FurnitureStoreComponent)},{name:"white-flamingo",component:Vi},{name:"tavern",component:Hi},{name:"coffee",component:$i}];function Vs(e,i){e&1&&(l(0,"div",1),c(1,"Enabled: "),l(2,"span",2),c(3,"NO"),r()())}function $s(e,i){if(e&1&&(l(0,"span",3),c(1),r()),e&2){let t=p();n(),b(t.festivalShopItemData.item.price)}}function Hs(e,i){if(e&1&&(l(0,"div"),c(1,"Discount: "),l(2,"span",2),c(3),f(4,"percent"),r()()),e&2){let t=p();n(3),h(" ",u(4,1,t.festivalShopItemData.festivalSetting.discount)," ")}}function As(e,i){if(e&1&&(l(0,"div"),c(1,"Item limit (all time): "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h(" ",t.festivalShopItemData.festivalSetting.itemLimit," ")}}function Ls(e,i){if(e&1&&(l(0,"div"),c(1,"Yearly limit: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h(" ",t.festivalShopItemData.festivalSetting.itemLimitPerYear," ")}}function Os(e,i){if(e&1&&(l(0,"div"),c(1,"Only at times: "),l(2,"span",6),c(3),f(4,"number"),f(5,"number"),f(6,"number"),f(7,"number"),r()()),e&2){let t=p();n(3),ce(" ",ne(4,2,t.festivalShopItemData.timeRange.fromTime.hours,"2.0")+":"+ne(5,5,t.festivalShopItemData.timeRange.fromTime.minutes,"2.0")," - ",ne(6,8,t.festivalShopItemData.timeRange.toTime.hours,"2.0")+":"+ne(7,11,t.festivalShopItemData.timeRange.toTime.minutes,"2.0")," ")}}function Ws(e,i){if(e&1&&(l(0,"div"),c(1,"Available since: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.festivalShopItemData.sinceDate)," ")}}function Rs(e,i){if(e&1&&(l(0,"div"),c(1,"Available until: "),l(2,"span",2),c(3),f(4,"ingameDate"),r()()),e&2){let t=p();n(3),h("",u(4,1,t.festivalShopItemData.tillDate)," ")}}function qs(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenDays.join(", ")," ")}}function Gs(e,i){if(e&1&&(l(0,"div"),c(1,"Only on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.allowedDays.join(", ")," ")}}function Ys(e,i){if(e&1&&(l(0,"div"),c(1,"Except on days: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenDays.join(", ")," ")}}function js(e,i){if(e&1&&(l(0,"div"),c(1,"Only at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.allowedWeather.join(", ")," ")}}function zs(e,i){if(e&1&&(l(0,"div"),c(1,"Except at weather: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenWeather.join(", ")," ")}}function Ks(e,i){if(e&1&&(l(0,"div"),c(1,"Only at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.allowedSeasons.join(", ")," ")}}function Qs(e,i){if(e&1&&(l(0,"div"),c(1,"Except at seasons: "),l(2,"span",2),c(3),r()()),e&2){let t=p();n(3),h("",t.festivalShopItemData.forbiddenSeasons.join(", ")," ")}}function Zs(e,i){if(e&1&&C(0,"app-effect",8),e&2){let t=i.$implicit;_("effect",t)}}function Js(e,i){if(e&1&&(l(0,"div",5),c(1,"Effects when bought: "),l(2,"div",7),g(3,Zs,1,1,"app-effect",8,I),r()()),e&2){let t=p();n(3),y(t.festivalShopItemData.effects)}}function Xs(e,i){if(e&1&&c(0),e&2){let t=p(2);h(" Unlock requirements (",t.festivalShopItemData.requirements.type==="And"?"all":"any"," of them): ")}}function e0(e,i){e&1&&c(0," Unlock requirement: ")}function t0(e,i){if(e&1&&C(0,"app-requirements",9),e&2){let t=i.$implicit;_("requirement",t)}}function i0(e,i){if(e&1&&(l(0,"div",5),d(1,Xs,1,1)(2,e0,1,0),l(3,"div",7),g(4,t0,1,1,"app-requirements",9,I),r()()),e&2){let t=p();n(),s(t.festivalShopItemData.requirements.requirements.length>1?1:-1),n(),s(t.festivalShopItemData.requirements.requirements.length<2?2:-1),n(2),y(t.festivalShopItemData.requirements.requirements)}}var Ai=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-festival-shop-item-details"]],inputs:{festivalShopItemData:"festivalShopItemData"},decls:27,vars:22,consts:[[3,"item"],[1,"mb-3"],[1,"text-black"],[1,"line-through","mr-3"],[3,"amount"],[1,"my-2"],[1,"inline-flex"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(m,a){m&1&&(l(0,"app-base-item-card",0),d(1,Vs,4,0,"div",1),l(2,"div"),c(3,"Buy price: "),l(4,"span",2),d(5,$s,2,1,"span",3),C(6,"app-money",4),r()(),d(7,Hs,5,3,"div")(8,As,4,1,"div")(9,Ls,4,1,"div"),l(10,"div"),c(11,"Town rank: "),l(12,"span",2),c(13),f(14,"townrank"),r()(),d(15,Os,8,14,"div")(16,Ws,5,3,"div")(17,Rs,5,3,"div")(18,qs,4,1,"div")(19,Gs,4,1,"div")(20,Ys,4,1,"div")(21,js,4,1,"div")(22,zs,4,1,"div")(23,Ks,4,1,"div")(24,Qs,4,1,"div")(25,Js,5,0,"div",5)(26,i0,6,2,"div",5),r()),m&2&&(_("item",a.festivalShopItemData.item),n(),s(a.festivalShopItemData.enabled?-1:1),n(4),s(a.festivalShopItemData.festivalSetting.hasDiscount?5:-1),n(),_("amount",a.festivalShopItemData.item.price*(1-(a.festivalShopItemData.festivalSetting.hasDiscount?a.festivalShopItemData.festivalSetting.discount:0))),n(),s(a.festivalShopItemData.festivalSetting.hasDiscount?7:-1),n(),s(a.festivalShopItemData.festivalSetting.isLimitedItem?8:-1),n(),s(a.festivalShopItemData.festivalSetting.hasYearlyLimit?9:-1),n(4),h(" ",u(14,20,a.festivalShopItemData.townRank)," "),n(2),s(a.festivalShopItemData.availableDuringTime&&a.festivalShopItemData.timeRange?15:-1),n(),s(a.festivalShopItemData.availableSinceDate&&a.festivalShopItemData.sinceDate?16:-1),n(),s(a.festivalShopItemData.availableTillDate&&a.festivalShopItemData.tillDate?17:-1),n(),s(a.festivalShopItemData.forbiddenDays.length?18:-1),n(),s(a.festivalShopItemData.allowedDays.length&&a.festivalShopItemData.allowedDays.length!==7?19:-1),n(),s(a.festivalShopItemData.forbiddenDays.length?20:-1),n(),s(a.festivalShopItemData.allowedWeather.length?21:-1),n(),s(a.festivalShopItemData.forbiddenWeather.length?22:-1),n(),s(a.festivalShopItemData.allowedSeasons.length&&a.festivalShopItemData.allowedSeasons.length!==4?23:-1),n(),s(a.festivalShopItemData.forbiddenSeasons.length?24:-1),n(),s(a.festivalShopItemData.effects&&a.festivalShopItemData.effects.length?25:-1),n(),s(a.festivalShopItemData.requirements&&a.festivalShopItemData.requirements.requirements.length?26:-1))},dependencies:[ge,J,Qe,Ze,pt,mt,ut,ae],encapsulation:2});let e=i;return e})();var o0=e=>["/locations",e];function a0(e,i){if(e&1&&(l(0,"td",17),C(1,"app-item-icon",18),r()),e&2){let t=i.$implicit;n(),_("itemName",t.item.iconName)}}function l0(e,i){e&1&&(l(0,"th",19),c(1,"Item "),r()),e&2&&se("colspan",2)}function p0(e,i){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.item.displayName," ")}}function m0(e,i){e&1&&(l(0,"th",19),c(1,"Shop "),r())}function r0(e,i){if(e&1&&(l(0,"td",20)(1,"a",21),c(2),r()()),e&2){let t=i.$implicit;n(),_("routerLink",Se(2,o0,t.festival.url)),n(),b(t.festival.displayName)}}function s0(e,i){e&1&&(l(0,"th",22),c(1,"Town Rank "),r())}function c0(e,i){if(e&1&&(l(0,"td",23),c(1),f(2,"townrank"),r()),e&2){let t=i.$implicit;n(),h(" ",u(2,1,t.townRank)," ")}}function d0(e,i){e&1&&(l(0,"th",22),c(1,"Amount limit "),r())}function _0(e,i){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=p().$implicit;n(),b(t.festivalSetting.itemLimit)}}function C0(e,i){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=p().$implicit;n(),h("",t.festivalSetting.itemLimitPerYear," per year")}}function f0(e,i){e&1&&(l(0,"span"),c(1,"-"),r())}function u0(e,i){if(e&1&&(l(0,"td",24),d(1,_0,2,1,"span")(2,C0,2,1,"span")(3,f0,2,0,"span"),r()),e&2){let t=i.$implicit;n(),s(t.festivalSetting.isLimitedItem?1:-1),n(),s(t.festivalSetting.hasYearlyLimit?2:-1),n(),s(!t.festivalSetting.isLimitedItem&&!t.festivalSetting.hasYearlyLimit?3:-1)}}function h0(e,i){e&1&&(l(0,"th",22),c(1," Discount "),r())}function x0(e,i){if(e&1&&(l(0,"span"),c(1),f(2,"percent"),r()),e&2){let t=p().$implicit;n(),b(u(2,1,t.festivalSetting.discount))}}function T0(e,i){e&1&&(l(0,"span"),c(1,"-"),r())}function S0(e,i){if(e&1&&(l(0,"td",24),d(1,x0,3,3,"span")(2,T0,2,0,"span"),r()),e&2){let t=i.$implicit;n(),s(t.festivalSetting.hasDiscount?1:-1),n(),s(t.festivalSetting.hasDiscount?-1:2)}}function g0(e,i){e&1&&(l(0,"th",22),c(1,"Price "),r())}function y0(e,i){if(e&1&&(l(0,"span",25),c(1),r()),e&2){let t=p().$implicit;n(),b(t.item.price)}}function I0(e,i){if(e&1&&(l(0,"td",24),d(1,y0,2,1,"span",25),C(2,"app-money",26),r()),e&2){let t=i.$implicit;n(),s(t.festivalSetting.hasDiscount?1:-1),n(),_("amount",t.item.price*(1-(t.festivalSetting.hasDiscount?t.festivalSetting.discount:0)))}}function v0(e,i){e&1&&(l(0,"th",22),c(1,"Sell price "),r())}function w0(e,i){if(e&1&&(l(0,"td",24),C(1,"app-money",26),r()),e&2){let t=i.$implicit;n(),_("amount",t.item.sellPrice)}}function D0(e,i){e&1&&C(0,"tr",27)}function b0(e,i){e&1&&C(0,"tr",28)}function E0(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,a0,2,1,"td",2),w(),v(3,3),d(4,l0,2,1,"th",4)(5,p0,2,1,"td",5),w(),v(6,6),d(7,m0,2,0,"th",4)(8,r0,3,4,"td",5),w(),v(9,7),d(10,s0,2,0,"th",8)(11,c0,3,3,"td",9),w(),v(12,10),d(13,d0,2,0,"th",8)(14,u0,4,3,"td",11),w(),v(15,12),d(16,h0,2,0,"th",8)(17,S0,3,2,"td",11),w(),v(18,13),d(19,g0,2,0,"th",8)(20,I0,3,2,"td",11),w(),v(21,14),d(22,v0,2,0,"th",8)(23,w0,2,1,"td",11),w(),d(24,D0,1,0,"tr",15)(25,b0,1,0,"tr",16),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(24),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var Li=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","townRank","limit","discount","price","sellPrice"]}ngOnInit(){super.ngOnInit(),this.dataSource.length&&this.dataSource[0].festival&&(this.displayedColumns.splice(2,0,"shop"),this.displayHeaderColumns=this.displayedColumns.filter(o=>o!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-festival-shop-item-table"]],features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","shop"],["matColumnDef","townRank"],["class","backdrop-blur-xl whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","limit"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","discount"],["matColumnDef","price"],["matColumnDef","sellPrice"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"underline",3,"routerLink"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl","whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[1,"line-through","mr-3"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,E0,26,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[Fe,M,J,ye,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve,mt,ae],encapsulation:2});let e=i;return e})();function k0(e,i){if(e&1&&C(0,"app-festival-shop-item-details",1),e&2){let t=p();_("festivalShopItemData",t.selectedEntity)}}function B0(e,i){e&1&&C(0,"app-opening-hours",5),e&2&&_("openingHours",i)}function N0(e,i){if(e&1&&(d(0,B0,1,1,"app-opening-hours",5),f(1,"async")),e&2){let t,o=p(3);s((t=u(1,1,o.openingHours$))?0:-1,t)}}function M0(e,i){if(e&1){let t=S();l(0,"app-item-icon",11),E("click",function(){let m=x(t).$implicit,a=p(6);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(6);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("amount",t.festivalSetting.hasYearlyLimit?t.festivalSetting.itemLimitPerYear:void 0)("itemName",t.item.iconName)}}function F0(e,i){if(e&1&&(l(0,"div",8),g(1,M0,1,4,"app-item-icon",10,I),r()),e&2){let t=p().$implicit;n(),y(t.shop)}}function U0(e,i){if(e&1&&C(0,"app-festival-shop-item-table",9),e&2){let t=p().$implicit;_("dataSource",t.shop)}}function V0(e,i){if(e&1){let t=S();l(0,"h2",6),c(1),r(),l(2,"app-data-filter",7),N("showTableChange",function(m){x(t);let a=p(4);return B(a.showTable,m)||(a.showTable=m),T(m)}),r(),d(3,F0,3,0,"div",8)(4,U0,1,1,"app-festival-shop-item-table",9)}if(e&2){let t=i.$implicit,o=p(4);n(),b(t.title),n(),k("showTable",o.showTable),n(),s(o.showTable?-1:3),n(),s(o.showTable?4:-1)}}function $0(e,i){if(e&1&&g(0,V0,5,4,null,null,I),e&2){let t=p(2);y(t.shops)}}function H0(e,i){if(e&1&&(l(0,"app-card")(1,"h1",3),C(2,"app-ui-icon",4),c(3),r(),d(4,N0,2,3),r(),d(5,$0,2,0)),e&2){let t=p(),o=p();n(2),_("uiIcon",o.FESTIVAL_ICONS[o.festivalName]),n(),h(" ",o.FESTIVAL_DISPLAY_NAMES[o.festivalName]," "),n(),s(o.openingHours$?4:-1),n(),s(t.shops?5:-1)}}function A0(e,i){e&1&&C(0,"mat-spinner",2)}function L0(e,i){if(e&1&&d(0,H0,6,4)(1,A0,1,0,"mat-spinner",2),e&2){let t=i,o=p();s(t!==null&&o.festivalName?0:-1),n(),s(t===null?1:-1)}}var Le=(()=>{var i;let t=class t{constructor(){bt(this,i);this.FESTIVAL_DISPLAY_NAMES=Oe,this.FESTIVAL_ICONS=rt,this.showTable=!1,this._router=he(Wt),this._database=he(_t),Et(this,i,he(Ct)),this.festivalData$=this._router.data.pipe(ai(),it(m=>{let a=m;return this.festivalName=a.name,a.hasNoOpeningHours||(this.openingHours$=this._database.fetchFestivalOpeningHours$(a.name)),this._database.fetchFestivalData$(a.name)}))}showDetails(m){this.selectedEntity=m,Dt(this,i).open()}};i=new WeakMap,t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=D({type:t,selectors:[["app-generic-festival"]],decls:5,vars:4,consts:[["listDetail",""],[3,"festivalShopItemData"],[1,"mx-auto"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(a,q){if(a&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,k0,1,1,"app-festival-shop-item-details",1),w(),d(3,L0,2,2),f(4,"async"),r()),a&2){let X;n(2),s(q.selectedEntity?2:-1),n(),s((X=u(4,2,q.festivalData$))?3:-1,X)}},dependencies:[M,V,A,L,Gt,$,R,Ai,Li,H],encapsulation:2});let e=t;return e})();var St=[{component:Le,data:{name:"winter-fair",hasNoOpeningHours:!0}},{component:Le,data:{name:"cherry-blossom"}},{component:Le,data:{name:"animal"}},{component:Le,data:{name:"beach-clean-up"}},{component:Le,data:{name:"harvest"}},{component:Le,data:{name:"spooky"}},{component:Le,data:{name:"new-year-eve"}},{component:Le,data:{name:"tree-planting"}}];function O0(e,i){if(e&1&&(l(0,"app-module-sidebar-item",3),c(1),r()),e&2){let t=i.$implicit,o=p();_("routerLink",t)("uiIcon",o.SHOP_ICONS[t]),n(),h("",o.SHOP_DISPLAY_NAMES[t]," ")}}function W0(e,i){if(e&1&&(l(0,"app-module-sidebar-item",3),c(1),r()),e&2){let t=i.$implicit,o=p();_("routerLink",t)("uiIcon",o.FESTIVAL_ICONS[t]),n(),h("",o.FESTIVAL_DISPLAY_NAMES[t]," ")}}var Oi=(()=>{let i=class i{constructor(){this.uiIcon=xe,this.SHOP_DISPLAY_NAMES=We,this.SHOP_ICONS=st,this.FESTIVAL_DISPLAY_NAMES=Oe,this.FESTIVAL_ICONS=rt,this.isBeta=he(dt).getSettings().useBeta,this.shops=Tt.filter(o=>this.isBeta?!0:!o.betaOnly).map(o=>o.name).sort((o,m)=>We[o].localeCompare(We[m])),this.festivals=St.map(o=>o.data.name).sort((o,m)=>Oe[o].localeCompare(Oe[m]))}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-locations"]],decls:17,vars:3,consts:[["routerLink","lake-temple",3,"uiIcon"],["routerLink","orchestra-zones",3,"uiIcon"],["routerLink","merit-exchange",3,"uiIcon"],[3,"routerLink","uiIcon"],[1,"hidden"]],template:function(m,a){m&1&&(l(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),c(3,"Lake temple "),r(),l(4,"app-module-sidebar-item",1),c(5,"Orchestra Zones "),r(),l(6,"app-module-sidebar-item",2),c(7,"Merit Exchange "),r(),l(8,"app-module-sidebar-item"),c(9,"Shops"),r(),g(10,O0,2,3,"app-module-sidebar-item",3,I),l(12,"app-module-sidebar-item"),c(13,"Festivals"),r(),g(14,W0,2,3,"app-module-sidebar-item",3,I),r(),C(16,"router-outlet",4),r()),m&2&&(n(2),_("uiIcon",a.uiIcon.OFFERING),n(2),_("uiIcon",a.uiIcon.CORAL),n(2),_("uiIcon",a.uiIcon.STORE),n(4),y(a.shops),n(4),y(a.festivals))},dependencies:[Rt,Fe,zt,jt,Xt],encapsulation:2});let e=i;return e})();var It=e=>{let i=he(dt),t=he(qt);return i.getSettings().useBeta?!0:t.createUrlTree(["/only-in-beta"])};function R0(e,i){if(e&1&&C(0,"app-effect",5),e&2){let t=i.$implicit;_("effect",t)}}function q0(e,i){if(e&1&&(l(0,"div",3),c(1,"Effects when bought: "),l(2,"div",4),g(3,R0,1,1,"app-effect",5,I),r()()),e&2){let t=p();n(3),y(t)}}function G0(e,i){e&1&&d(0,q0,5,0,"div",3),e&2&&s(i.length?0:-1)}function Y0(e,i){if(e&1&&c(0),e&2){let t=p(2);h(" Unlock requirements (",t.type==="And"?"all":"any"," of them): ")}}function j0(e,i){e&1&&c(0," Unlock requirement: ")}function z0(e,i){if(e&1&&C(0,"app-requirements",6),e&2){let t=i.$implicit;_("requirement",t)}}function K0(e,i){if(e&1&&(l(0,"div",3),d(1,Y0,1,1)(2,j0,1,0),l(3,"div",4),g(4,z0,1,1,"app-requirements",6,I),r()()),e&2){let t=p();n(),s(t.requirements.length>1?1:-1),n(),s(t.requirements.length<2?2:-1),n(2),y(t.requirements)}}function Q0(e,i){e&1&&d(0,K0,6,2,"div",3),e&2&&s(i.requirements.length?0:-1)}var Wi=(()=>{let i=class i{constructor(){this.meritExchangeData=Me.required()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merit-shop-details"]],inputs:{meritExchangeData:[1,"meritExchangeData"]},decls:16,vars:8,consts:[[3,"item"],[1,"text-black"],[3,"amount"],[1,"my-2"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(m,a){if(m&1&&(l(0,"app-base-item-card",0)(1,"div"),c(2,"Buy price: "),l(3,"span",1),C(4,"app-merit-points",2),r()(),l(5,"div"),c(6,"Amount Limit: "),l(7,"span",1),c(8),r()(),l(9,"div"),c(10,"Town rank: "),l(11,"span",1),c(12),f(13,"townrank"),r()(),d(14,G0,1,1)(15,Q0,1,1),r()),m&2){let q,X;_("item",a.meritExchangeData().item),n(4),_("amount",a.meritExchangeData().priceOverride!==0?a.meritExchangeData().priceOverride:a.meritExchangeData().item.price),n(4),h(" ",a.meritExchangeData().isLimitedItem?"x"+a.meritExchangeData().itemLimit:"not limited"," "),n(4),h(" ",u(13,6,a.meritExchangeData().townRank)," "),n(2),s((q=a.meritExchangeData().effects)?14:-1,q),n(),s((X=a.meritExchangeData().requirements)?15:-1,X)}},dependencies:[ge,Qe,Ze,mi,ae],encapsulation:2});let e=i;return e})();function J0(e,i){if(e&1&&C(0,"app-merit-shop-details",1),e&2){let t=p();_("meritExchangeData",t.selectedEntity)}}function X0(e,i){if(e&1){let t=S();l(0,"app-item-icon",7),E("click",function(){let m=x(t).$implicit,a=p(4);return T(a.showDetails(m))}),r()}if(e&2){let t=i.$implicit,o=p(4);P("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),_("itemName",t.item.iconName)}}function ec(e,i){if(e&1&&(l(0,"div",5),g(1,X0,1,3,"app-item-icon",6,I),r()),e&2){let t=p();n(),y(t)}}function tc(e,i){if(e&1&&d(0,ec,3,0,"div",5),e&2){let t=p(2);s(t.showTable?-1:0)}}function ic(e,i){if(e&1&&(l(0,"h2",4),c(1,"Stock list"),r(),d(2,tc,1,1),f(3,"async")),e&2){let t,o=p();n(2),s((t=u(3,1,o.shopItemData$))?2:-1,t)}}var Ri=(()=>{let i=class i extends ze{constructor(){super(),this.uiIcon=xe,this.shopItemData$=this._database.fetchMeritExchangeShopData$()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-merit-shop"]],features:[F],decls:8,vars:3,consts:[["listDetail",""],[3,"meritExchangeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[1,"icon-grid"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(m,a){m&1&&(l(0,"app-list-detail-container"),v(1,0),d(2,J0,1,1,"app-merit-shop-details",1),w(),l(3,"app-card")(4,"h1",2),C(5,"app-ui-icon",3),c(6," Merit Exchange "),r()(),d(7,ic,4,3),r()),m&2&&(n(2),s(a.selectedEntity?2:-1),n(3),_("uiIcon",a.uiIcon.STORE),n(2),s(a.shopItemData$?7:-1))},dependencies:[M,V,A,$,Wi,H],encapsulation:2});let e=i;return e})();var nc=[{path:"",pathMatch:"full",redirectTo:"lake-temple"},{path:"",component:Oi,children:[{path:"lake-temple",redirectTo:"lake-temple/",pathMatch:"full"},{path:"lake-temple/:tabName",loadComponent:()=>import("./chunk-A3U5G3MY.js").then(e=>e.LakeTempleComponent),title:"Lake temple - Locations"},...Tt.map(e=>{let i="component"in e?{component:e.component}:{loadComponent:e.loadComponent};return Ye(Ge({path:e.name},i),{title:`${We[e.name]} - Locations`,canActivate:e.betaOnly?[It]:[]})}),...St.map(e=>({path:e.data.name,component:e.component,title:`${Oe[e.data.name]} - Locations`,canActivate:e.betaOnly?[It]:[],data:e.data})),{path:"merit-exchange",component:Ri,title:"Merit Exchange - Locations"},{path:"orchestra-zones",loadComponent:()=>import("./chunk-SWBKCEQI.js").then(e=>e.OrchestraZonesComponent),title:"Orchestra Zones - Locations"}]}],qi=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275mod=ot({type:i}),i.\u0275inj=nt({imports:[yt.forChild(nc),yt]});let e=i;return e})();function oc(e,i){if(e&1&&(l(0,"td",17),C(1,"img",18),r()),e&2){let t=i.$implicit;n(),gt("alt","",t.offerings[0].title," offering icon"),gt("src","assets/ui/images/offering/",t.offerings[0].imageName,".png",Nt)}}function ac(e,i){e&1&&(l(0,"th",19),c(1," Offering "),r()),e&2&&se("colspan",2)}function lc(e,i){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.offerings[0].title," ")}}function pc(e,i){e&1&&(l(0,"th",19),c(1,"Altar"),r())}function mc(e,i){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=i.$implicit;n(),h(" ",t.offeringGroupTitle," ")}}function rc(e,i){e&1&&(l(0,"th",21),c(1," Number of required Items"),r())}function sc(e,i){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=i.$implicit;n(),h("",t.offerings[0].numOfItemRequired===-1?"All":t.offerings[0].numOfItemRequired," ")}}function cc(e,i){e&1&&(l(0,"th",23),c(1," Required Items"),r())}function dc(e,i){if(e&1&&(l(0,"td",24),C(1,"app-table-item-list",25),r()),e&2){let t=i.$implicit;n(),_("itemList",t.offerings[0].requiredItems)}}function _c(e,i){e&1&&(l(0,"th",23),c(1," Rewards"),r())}function Cc(e,i){if(e&1&&(l(0,"span",27),c(1," Recipes"),r(),C(2,"app-table-item-list",25)),e&2){let t=p().$implicit;n(2),_("itemList",t.offerings[0].rewards.recipes)}}function fc(e,i){if(e&1&&(l(0,"td",26),C(1,"app-table-item-list",25),d(2,Cc,3,1),r()),e&2){let t=i.$implicit;n(),_("itemList",t.offerings[0].rewards.items),n(),s(t.offerings[0].rewards.recipes.length?2:-1)}}function uc(e,i){e&1&&C(0,"tr",28)}function hc(e,i){e&1&&C(0,"tr",29)}function xc(e,i){if(e&1&&(l(0,"table",0),v(1,1),d(2,oc,2,4,"td",2),w(),v(3,3),d(4,ac,2,1,"th",4)(5,lc,2,1,"td",5),w(),v(6,6),d(7,pc,2,0,"th",4)(8,mc,2,1,"td",5),w(),v(9,7),d(10,rc,2,0,"th",8)(11,sc,2,1,"td",9),w(),v(12,10),d(13,cc,2,0,"th",11)(14,dc,2,1,"td",12),w(),v(15,13),d(16,_c,2,0,"th",11)(17,fc,3,2,"td",14),w(),d(18,uc,1,0,"tr",15)(19,hc,1,0,"tr",16),r()),e&2){let t=p();_("dataSource",t.matDataSource),n(18),_("matHeaderRowDef",t.displayHeaderColumns)("matHeaderRowDefSticky",!0),n(),_("matRowDefColumns",t.displayedColumns)}}var T1=(()=>{let i=class i extends $e{constructor(){super(...arguments),this.showAltar=Me(!1,{transform:at}),this.BASE_DISPLAY_COLUMNS=["icon","displayName","numOfItemRequired","requiredItems","rewards"],this._datasource=[]}get dataSource(){return this._datasource}set dataSource(o){let m=[];o.forEach(a=>{a.offerings.forEach(q=>{m.push(Ye(Ge({},a),{offerings:[q]}))})}),this._datasource=m}setupDataSource(o){super.setupDataSource(o);let m=this.displayedColumns.indexOf("altar");this.showAltar()&&m===-1?(this.displayedColumns.splice(2,0,"altar"),this.displayHeaderColumns=this.displayedColumns.filter(a=>a!=="icon")):!this.showAltar()&&m!==-1&&(this.displayedColumns.splice(m,1),this.displayHeaderColumns=this.displayedColumns.filter(a=>a!=="icon"))}};i.\u0275fac=(()=>{let o;return function(a){return(o||(o=Te(i)))(a||i)}})(),i.\u0275cmp=D({type:i,selectors:[["app-offerings-table"]],inputs:{showAltar:[1,"showAltar"],dataSource:"dataSource"},features:[F],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","altar"],["matColumnDef","numOfItemRequired"],["class","whitespace-nowrap","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","requiredItems"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","rewards"],["class","list-col w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],["height","32","width","32",3,"alt","src"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],["mat-cell","",1,"list-col","w-[1%]"],[1,"text-black","font-semibold","mt-2"],["mat-header-row",""],["mat-row",""]],template:function(m,a){m&1&&(l(0,"app-responsive-table"),d(1,xc,20,4,"table",0),r()),m&2&&(n(),s(a.matDataSource?1:-1))},dependencies:[ye,ft,Ie,we,Pe,De,ve,ke,be,Ee,Be,Ne,Ue,Ve],encapsulation:2});let e=i;return e})();var Tc=e=>({$implicit:e});function Sc(e,i){if(e&1&&C(0,"app-base-item-card",0),e&2){let t=p(),o=p();_("item",t)("context",o.context())("quality",o.quality())("amount",o.amount())}}function gc(e,i){e&1&&Ut(0)}function yc(e,i){if(e&1&&d(0,gc,1,0,"ng-container",3),e&2){let t=i.$implicit,o=p(3);_("ngTemplateOutlet",o.databaseItemDetails)("ngTemplateOutletContext",Se(2,Tc,t))}}function Ic(e,i){if(e&1&&(l(0,"app-database-item-details",1),d(1,yc,1,4,"ng-template",2),r()),e&2){let t=p(),o=p();_("itemId",t.id)("context",o.context())("quality",o.quality())("amount",o.amount())}}function vc(e,i){if(e&1&&(d(0,Sc,1,4,"app-base-item-card",0),f(1,"isMinimalItem"),d(2,Ic,2,4,"app-database-item-details",1)),e&2){let t=p();s(t.isCustomEntry(t.item())||t.isTagBasedItem(t.item())?0:u(1,1,i)?2:-1)}}var Gi=(()=>{let i=class i{constructor(){this.item=Me.required(),this.databaseItemDetails=null,this.context=Me(),this.amount=Me(),this.quality=Me()}isTagBasedItem(o){return"key"in o}isCustomEntry(o){return"id"in o&&!o.id.toLowerCase().startsWith("item_")}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-item-card-switch"]],contentQueries:function(m,a,q){if(m&1&&Vt(q,Mt,5),m&2){let X;$t(X=Ht())&&(a.databaseItemDetails=X.first)}},inputs:{item:[1,"item"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"]},standalone:!0,features:[de],decls:1,vars:1,consts:[[3,"item","context","quality","amount"],[3,"itemId","context","quality","amount"],["appDatabaseItemDetails",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(m,a){if(m&1&&d(0,vc,3,3),m&2){let q;s((q=a.item())?0:-1,q)}},dependencies:[oe,Lt,He,ge,Ke,_i,di],encapsulation:2});let e=i;return e})();function wc(e,i){if(e&1&&(l(0,"div"),c(1,"Animal: "),l(2,"span",0),C(3,"app-item-icon",1),c(4),r()()),e&2){let t=p();n(3),_("itemName",t.animal.variants[0].icons.adult),n(),h(" ",t.animal.displayName," ")}}function Dc(e,i){if(e&1&&(l(0,"div"),c(1,"Drop location: "),l(2,"span",0),c(3),f(4,"addSpacesToPascalCase"),r()()),e&2){let t=p(2);n(3),h(" ",u(4,1,t.animal.produceDropLocation)," ")}}function bc(e,i){if(e&1&&(l(0,"div"),c(1,"Tool for harvesting: "),l(2,"span",0),C(3,"app-item-icon",1),c(4),r()()),e&2){let t=p(2);n(3),_("itemName",t.animal.itemHarvestTool.iconName),n(),h(" ",t.animal.itemHarvestTool.displayName," ")}}function Ec(e,i){if(e&1&&(l(0,"div",0),c(1),f(2,"addSpacesToPascalCase"),f(3,"titlecase"),C(4,"app-item-icon",1),c(5),r()),e&2){let t=p(2).$implicit;n(),h(" ",u(3,5,u(2,3,t.key)),": "),n(3),_("itemName",t.value.iconName),n(),h(" ",t.value.displayName," ")}}function Pc(e,i){if(e&1&&d(0,Ec,6,7,"div",0),e&2){let t=p().$implicit,o=p(3);s(!o.shownItemId||o.shownItemId===t.value.id?0:-1)}}function kc(e,i){if(e&1&&(d(0,Pc,1,1),f(1,"isMinimalItem")),e&2){let t=i.$implicit;s(u(1,1,t.value)?0:-1)}}function Bc(e,i){if(e&1&&(g(0,kc,2,3,null,null,I),f(2,"keyvalue")),e&2){let t=i.$implicit,o=p(2);y(ne(2,0,t,o.keyValueNoOrder))}}function Nc(e,i){if(e&1&&(d(0,Dc,5,3,"div"),l(1,"div"),c(2,"Type of producing: "),l(3,"span",0),c(4),f(5,"addSpacesToPascalCase"),r()(),d(6,bc,5,2,"div"),l(7,"div"),c(8,"Harvest cooldown: "),l(9,"span",0),c(10),r()(),l(11,"div",2),c(12,"Produces: "),g(13,Bc,3,3,null,null,I),r()),e&2){let t=p();s(t.animal.produceDropLocation!=="None"?0:-1),n(4),h(" ",u(5,5,t.animal.animalProduceType)," "),n(2),s(t.animal.itemHarvestTool?6:-1),n(4),ce(" ",t.animal.harvestCooldown," day",t.animal.harvestCooldown>1?"s":""," "),n(3),y(t.animal.produces)}}var Yi=(()=>{let i=class i{constructor(){this.hideAnimal=!1}keyValueNoOrder(){return 0}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-animal-produce"]],inputs:{animal:"animal",shownItemId:"shownItemId",hideAnimal:[2,"hideAnimal","hideAnimal",at]},standalone:!0,features:[Ft,de],decls:2,vars:2,consts:[[1,"text-black"],[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"],[1,"my-3"]],template:function(m,a){m&1&&d(0,wc,5,2,"div")(1,Nc,15,7),m&2&&(s(a.hideAnimal?-1:0),n(),s(a.animal.animalProduceType!=="None"?1:-1))},dependencies:[oe,lt,je,Re,He,M,Ke],encapsulation:2});let e=i;return e})();var Mc=e=>[1,e];function Fc(e,i){if(e&1&&(l(0,"div"),c(1,"Regrows: "),l(2,"span",4),c(3),f(4,"max"),r()()),e&2){let t=p(2);n(3),h("",u(4,1,Se(3,Mc,t.item.regrowableLength))," days")}}function Uc(e,i){if(e&1&&(l(0,"div"),c(1,"Can combine: "),l(2,"span",4),c(3),r()()),e&2){let t=p(3);n(3),h("",t.item.chanceToCombine.chance,"%")}}function Vc(e,i){e&1&&(l(0,"div",4),c(1,"Scythe required"),r())}function $c(e,i){e&1&&(l(0,"div",4),c(1,"Is trellis crop"),r())}function Hc(e,i){if(e&1&&d(0,Uc,4,1,"div")(1,Vc,2,0,"div",4)(2,$c,2,0,"div",4),e&2){let t=p(2);s(t.item.canCombine?0:-1),n(),s(t.item.isScytheRequired?1:-1),n(),s(t.item.isTrellisCrop?2:-1)}}function Ac(e,i){if(e&1&&(l(0,"div",0),C(1,"app-item-icon",1),l(2,"span",2),c(3),r(),C(4,"app-money",3),r(),l(5,"div"),c(6,"Season: "),l(7,"span",4),c(8),r()(),l(9,"div"),c(10,"Time to mature: "),l(11,"span",4),c(12),r()(),d(13,Fc,5,5,"div")(14,Hc,3,3),f(15,"isCrop"),l(16,"div"),c(17,"Size (WxL): "),l(18,"span",4),c(19),r()()),e&2){let t=p();n(),_("itemName",t.item.item.iconName),n(2),b(t.item.readableName),n(),_("amount",t.item.item.price),n(4),b(t.item.growableSeason.join(", ")),n(4),h("",t.item.growTime," days"),n(),s(t.item.isRegrowable?13:-1),n(),s(u(15,9,t.item)?14:-1),n(5),ce("",t.item.size.width,"x",t.item.size.length,"")}}var ji=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-crop"]],inputs:{item:"item"},standalone:!0,features:[de],decls:2,vars:3,consts:[[1,"flex","items-center","mb-2"],[1,"h-10","w-10","mr-1",3,"itemName"],[1,"text-black","mr-3"],[3,"amount"],[1,"text-black"]],template:function(m,a){m&1&&(d(0,Ac,20,11),f(1,"isBaseCrop")),m&2&&s(u(1,1,a.item)?0:-1)},dependencies:[oe,He,M,J,Jt,ii,oi],encapsulation:2});let e=i;return e})();var Lc=(e,i)=>i.key;function Oc(e,i){e&1&&(l(0,"div"),c(1,"Weather: "),l(2,"span",0),c(3),r()()),e&2&&(n(3),b(i))}function Wc(e,i){if(e&1&&(C(0,"hr"),l(1,"div"),c(2,"Time: "),l(3,"span",0),c(4),r()(),l(5,"div"),c(6," Season: "),l(7,"span",0),c(8),r()(),d(9,Oc,4,1,"div"),l(10,"div"),c(11," Location: "),l(12,"span",0),c(13),r()()),e&2){let t,o=i.$implicit,m=p();n(4),b(m.getTruthyValues(o.spawnTime)),n(4),b(o.isUsingSpecificDate?m.dateRangesToString(o.dateRangeList):m.getTruthyValues(o.spawnSeason)),n(),s((t=m.getTruthyValues(o.spawnWeather))?9:-1,t),n(4),b(o.spawnLocation.join(", "))}}var zi=(()=>{let i=class i{constructor(){this.getTruthyValues=ct}dateRangesToString(o){return o.map(m=>`From ${m.startsFrom.season} ${m.startsFrom.day} to ${m.lastsTill.season} ${m.lastsTill.day}`).join(", ")}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-fish"]],inputs:{fish:"fish"},standalone:!0,features:[de],decls:20,vars:8,consts:[[1,"text-black"]],template:function(m,a){m&1&&(l(0,"div"),c(1,"Rarity: "),l(2,"span",0),c(3),f(4,"addSpacesToPascalCase"),r()(),l(5,"div"),c(6,"Size: "),l(7,"span",0),c(8),r()(),l(9,"div"),c(10,"Pattern: "),l(11,"span",0),c(12),r()(),l(13,"div"),c(14,"Difficulty: "),l(15,"span",0),c(16),f(17,"addSpacesToPascalCase"),r()(),g(18,Wc,14,4,null,null,Lc)),m&2&&(n(3),b(u(4,4,a.fish.rarity)),n(5),b(a.fish.fishSize),n(4),b(a.fish.pattern),n(4),b(u(17,6,a.fish.difficulty)),n(2),y(a.fish.spawnSettings))},dependencies:[oe,Re],encapsulation:2});let e=i;return e})();function Rc(e,i){e&1&&(l(0,"div"),c(1,"Weather: "),l(2,"span",0),c(3),r()()),e&2&&(n(3),b(i))}function qc(e,i){if(e&1&&(l(0,"div",1)(1,"span"),c(2),r(),l(3,"span",0),c(4),r()()),e&2){let t=i.$implicit;n(2),b(t[0]),n(2),b(t[1])}}function Gc(e,i){if(e&1&&(l(0,"div"),c(1,"Spawn amount modifiers "),g(2,qc,5,2,"div",1,I),C(4,"hr"),r()),e&2){let t=p();n(2),y(t.critter.spawnAmountModifiers)}}var Ki=(()=>{let i=class i{constructor(){this.getTruthyValues=ct}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-insect"]],inputs:{critter:"critter"},standalone:!0,features:[de],decls:19,vars:8,consts:[[1,"text-black"],[1,"flex","justify-between"]],template:function(m,a){if(m&1&&(l(0,"div"),c(1,"Rarity: "),l(2,"span",0),c(3),f(4,"addSpacesToPascalCase"),r()(),l(5,"div"),c(6,"Time: "),l(7,"span",0),c(8),r()(),l(9,"div"),c(10," Season: "),l(11,"span",0),c(12),r()(),d(13,Rc,4,1,"div"),l(14,"div"),c(15," Location: "),l(16,"span",0),c(17),r()(),d(18,Gc,5,0,"div")),m&2){let q;n(3),b(u(4,6,a.critter.rarity)),n(5),b(a.getTruthyValues(a.critter.spawnTime)),n(4),b(a.getTruthyValues(a.critter.spawnSeason)),n(),s((q=a.getTruthyValues(a.critter.spawnWeather))?13:-1,q),n(4),b(a.critter.spawnLocation.join(", ")),n(),s(a.critter.spawnAmountModifiers&&a.critter.spawnAmountModifiers.length?18:-1)}},dependencies:[oe,Re],encapsulation:2});let e=i;return e})();var Yc=(e,i)=>i.input.id;function jc(e,i){if(e&1&&(l(0,"div",0)(1,"div",1),C(2,"app-item-icon",2),l(3,"span"),c(4),r()(),l(5,"div",3),c(6),r()(),C(7,"hr")),e&2){let t=i.$implicit;n(2),_("itemName",t.input.iconName),n(2),b(t.input.displayName),n(2),h("",t.outputChanges[0].chance,"%")}}var Qi=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-shop-processing-result"]],inputs:{itemProcessData:"itemProcessData"},standalone:!0,features:[de],decls:2,vars:0,consts:[[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"w-10",3,"itemName"],[1,"flex","items-center"]],template:function(m,a){m&1&&g(0,jc,8,3,null,null,Yc),m&2&&y(a.itemProcessData)},dependencies:[oe,He,M],encapsulation:2});let e=i;return e})();var Zi=(e,i)=>i.key;function zc(e,i){if(e&1&&C(0,"app-fish",0),e&2){let t=p();_("fish",t.details.fish)}}function Kc(e,i){if(e&1&&C(0,"app-insect",1),e&2){let t=p();_("critter",t.details.insect)}}function Qc(e,i){if(e&1&&C(0,"app-insect",1),e&2){let t=p();_("critter",t.details.oceanCritter)}}function Zc(e,i){if(e&1&&C(0,"app-crop",4),e&2){let t=i.$implicit;_("item",t)}}function Jc(e,i){if(e&1&&g(0,Zc,1,1,"app-crop",4,Zi),e&2){let t=p();y(t.details.isSeedFor)}}function Xc(e,i){if(e&1&&C(0,"app-animal-produce",2),e&2){let t=p();_("animal",t.details.producedByAnimal)("shownItemId",t.details.item.id)}}function ed(e,i){if(e&1&&C(0,"app-cooking-recipe",5),e&2){let t=i.$implicit;_("cookingRecipe",t)}}function td(e,i){if(e&1&&g(0,ed,1,1,"app-cooking-recipe",5,Zi),e&2){let t=p();y(t.details.cookedFrom)}}function id(e,i){if(e&1&&(l(0,"div"),c(1,"Possible drop from:"),r(),C(2,"app-shop-processing-result",6)),e&2){let t=p();n(2),_("itemProcessData",t.details.chanceAsProcessResult)}}function nd(e,i){if(e&1&&C(0,"app-processing",7),e&2){let t=i.$implicit,o=i.$index;P("mt-3",o!==0),_("itemProcessing",t)}}var Ji=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=D({type:i,selectors:[["app-offering"]],inputs:{details:"details"},standalone:!0,features:[de],decls:9,vars:2,consts:[[3,"fish"],[3,"critter"],[3,"animal","shownItemId"],[3,"mt-3","itemProcessing"],[3,"item"],["showUtensil","",3,"cookingRecipe"],[1,"mb-4",3,"itemProcessData"],[3,"itemProcessing"]],template:function(m,a){m&1&&(d(0,zc,1,1,"app-fish",0)(1,Kc,1,1,"app-insect",1)(2,Qc,1,1,"app-insect",1)(3,Jc,2,0)(4,Xc,1,2,"app-animal-produce",2)(5,td,2,0)(6,id,3,1),g(7,nd,1,3,"app-processing",3,I)),m&2&&(s(a.details.fish?0:a.details.insect?1:a.details.oceanCritter?2:a.details.isSeedFor?3:a.details.producedByAnimal?4:a.details.cookedFrom?5:-1),n(6),s(a.details.chanceAsProcessResult?6:-1),n(),y(a.details.artisanResult))},dependencies:[oe,Yi,fi,ji,zi,Ki,Ci,Qi],encapsulation:2});let e=i;return e})();var Rf=(()=>{let i=class i{};i.\u0275fac=function(m){return new(m||i)},i.\u0275mod=ot({type:i}),i.\u0275inj=nt({imports:[oe,qi,He,ei,ti,ni,ui,Qt,Yt,Gi,Ji]});let e=i;return e})();export{zi as a,Ki as b,Qi as c,ji as d,Yi as e,G as f,O as g,W as h,Y as i,j,R as k,z as l,K as m,Ei as n,Pi as o,Li as p,Gi as q,Ji as r,T1 as s,Rf as t}; diff --git a/chunk-CM2YVX4P.js b/chunk-CM2YVX4P.js new file mode 100644 index 0000000000..1ce62f9d87 --- /dev/null +++ b/chunk-CM2YVX4P.js @@ -0,0 +1 @@ +import{a as K,b as z,i as H}from"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as d,Da as k,Ga as l,Ha as C,Ia as x,Ja as f,Ka as a,Kb as N,La as p,Ma as _,Mb as L,N as R,P as v,Qa as b,Qe as G,Re as O,Sa as w,Ta as r,Vd as M,W as F,X as S,_ as D,af as q,da as E,eb as y,ee as V,fb as B,gb as P,la as n,nb as T,rb as u,sb as g,se as j,sf as I,ua as $,uc as A,xa as s}from"./chunk-PYTDIKHQ.js";function W(e,i){e&1&&_(0,"hr",2)}function X(e,i){if(e&1&&(_(0,"app-item-list",0),s(1,W,1,0,"hr",2)),e&2){let t=i.$implicit,o=i.$index,m=i.$count;d("itemList",t),n(),l(o!==m-1?1:-1)}}function Y(e,i){if(e&1&&(a(0,"span",1),y(1," Either of the following"),p(),x(2,X,2,2,null,null,C)),e&2){let t=r();n(2),f(t.mixingRecipe().eitherOrIngredients)}}function Z(e,i){if(e&1&&(a(0,"div",5),_(1,"app-item-icon",7),a(2,"span"),y(3),p()()),e&2){let t=r().$implicit;n(),d("itemName",t.iconName),n(2),B(t.displayName)}}function ee(e,i){if(e&1&&(a(0,"div",4),s(1,Z,4,2,"div",5),a(2,"div",6),y(3),p()(),_(4,"hr")),e&2){let t=i.$implicit,o=r().$implicit;n(),l(t?1:-1),n(2),P("as ",o.key,"")}}function ie(e,i){if(e&1&&(a(0,"div",3),x(1,ee,5,2,null,null,C),u(3,"castToMinimalItemArray"),p()),e&2){let t=i.$implicit;n(),f(g(3,0,t.value))}}function te(e,i){if(e&1&&(a(0,"span",1),y(1," The following counting as"),p(),x(2,ie,4,2,"div",3,C),u(4,"keyvalue")),e&2){let t=r();n(2),f(g(4,0,t.mixingRecipe().additionsToGenerics))}}var J=(()=>{let i=class i{constructor(){this.mixingRecipe=E.required()}};i.\u0275fac=function(m){return new(m||i)},i.\u0275cmp=v({type:i,selectors:[["app-mixing-recipe"]],inputs:{mixingRecipe:[1,"mixingRecipe"]},standalone:!0,features:[T],decls:4,vars:5,consts:[[1,"mb-3",3,"itemList"],[1,"text-black"],[1,"my-5"],[1,"mb-3"],[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"flex","items-center"],[1,"w-10",3,"itemName"]],template:function(m,c){m&1&&(_(0,"app-item-list",0),u(1,"cookingRecipeIngredients"),s(2,Y,4,0)(3,te,5,2)),m&2&&(d("itemList",g(1,3,c.mixingRecipe())),n(2),l(c.mixingRecipe().eitherOrIngredients.length?2:-1),n(),l(c.mixingRecipe().additionsToGenerics?3:-1))},dependencies:[L,I,M,V,G,O],encapsulation:2});let e=i;return e})();var ne=(e,i)=>i.key;function oe(e,i){if(e&1&&_(0,"app-mixing-recipe",2),e&2){let t=i.$implicit;d("mixingRecipe",t)}}function ae(e,i){if(e&1&&x(0,oe,1,1,"app-mixing-recipe",2,ne),e&2){let t=i.$implicit;f(t.mixedFrom)}}function me(e,i){if(e&1&&(a(0,"app-database-item-details",0),s(1,ae,2,0,"ng-template",1),p()),e&2){let t=r();d("itemId",t.selectedEntity.item.id)}}function pe(e,i){if(e&1){let t=b();a(0,"app-item-icon",5),w("click",function(){let m=F(t).$implicit,c=r(3);return S(c.showDetails(m))}),p()}if(e&2){let t=i.$implicit,o=r(3);k("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===t.item.id),d("amount",t.amount)("itemName",t.item.iconName)}}function re(e,i){if(e&1&&(a(0,"div",3),x(1,pe,1,4,"app-item-icon",4,C),p()),e&2){let t=r();n(),f(t)}}function ce(e,i){}function le(e,i){if(e&1&&s(0,re,3,0,"div",3)(1,ce,0,0),e&2){let t=r();l(t.showTable?-1:0),n(),l(t.showTable?1:-1)}}var we=(()=>{let i=class i extends q{constructor(){super(...arguments),this.itemMixingRecipes=R(A).fetchItemMixingRecipeData$()}};i.\u0275fac=(()=>{let o;return function(c){return(o||(o=D(i)))(c||i)}})(),i.\u0275cmp=v({type:i,selectors:[["app-mixing"]],standalone:!0,features:[$,T],decls:4,vars:4,consts:[["context","item_mixing","listDetail","",3,"itemId"],["appDatabaseItemDetails",""],[3,"mixingRecipe"],[1,"icon-grid"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(m,c){if(m&1&&(a(0,"app-list-detail-container"),s(1,me,2,1,"app-database-item-details",0)(2,le,2,2),u(3,"async"),p()),m&2){let h;n(),l(c.selectedEntity?1:-1),n(),l((h=g(3,2,c.itemMixingRecipes))?2:-1,h)}},dependencies:[H,I,M,j,z,N,K,J],encapsulation:2});let e=i;return e})();export{we as MixingComponent}; diff --git a/chunk-63GC2TFM.js b/chunk-EBZ7CU56.js similarity index 87% rename from chunk-63GC2TFM.js rename to chunk-EBZ7CU56.js index 32fef08e23..d3bfa34d5b 100644 --- a/chunk-63GC2TFM.js +++ b/chunk-EBZ7CU56.js @@ -1 +1 @@ -import{a as j}from"./chunk-NOVVTXMF.js";import{g as A,h as U,k as Y,t as q}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as _,Ca as w,Fa as p,Ga as T,Ha as I,Ia as y,Ib as H,Ja as s,Ka as m,La as d,Ma as N,Na as V,Nd as O,Ne as L,P as E,Pa as h,Pd as B,Ra as b,Sa as a,Sd as P,V as u,W as C,db as f,fb as $,ib as g,jb as D,ka as l,kb as F,mb as k,me as W,mf as M,qb as x,rb as S,ta as v,wa as c}from"./chunk-4KZEYPV3.js";function z(t,i){if(t&1&&d(0,"app-shop-item-data-details",1),t&2){let e=a();_("shopItemData",e.selectedEntity)}}function G(t,i){t&1&&d(0,"app-opening-hours",4),t&2&&_("openingHours",i)}function J(t,i){if(t&1&&(c(0,G,1,1,"app-opening-hours",4),x(1,"async")),t&2){let e,n=a();p((e=S(1,1,n.openingHours$))?0:-1,e)}}function K(t,i){if(t&1){let e=h();s(0,"app-item-icon",10),b("click",function(){let r=u(e).$implicit,o=a(4);return C(o.showDetails(r))}),m()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function Q(t,i){if(t&1&&(s(0,"div",7),I(1,K,1,3,"app-item-icon",9,T),m()),t&2){let e=a();l(),y(e)}}function R(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function X(t,i){if(t&1){let e=h();s(0,"app-data-filter",6),F("showTableChange",function(r){u(e);let o=a(2);return D(o.showTable,r)||(o.showTable=r),C(r)}),m(),c(1,Q,3,0,"div",7)(2,R,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),l(),p(e.showTable?-1:1),l(),p(e.showTable?2:-1)}}function Z(t,i){if(t&1&&(s(0,"h2",5),f(1,"Stock list Indoor"),m(),c(2,X,3,3),x(3,"async")),t&2){let e,n=a();l(2),p((e=S(3,1,n.shopItemDataIndoor$))?2:-1,e)}}function tt(t,i){if(t&1){let e=h();s(0,"app-item-icon",10),b("click",function(){let r=u(e).$implicit,o=a(4);return C(o.showDetails(r))}),m()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function et(t,i){if(t&1&&(s(0,"div",7),I(1,tt,1,3,"app-item-icon",9,T),m()),t&2){let e=a();l(),y(e)}}function it(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function nt(t,i){if(t&1){let e=h();s(0,"app-data-filter",6),F("showTableChange",function(r){u(e);let o=a(2);return D(o.showTable,r)||(o.showTable=r),C(r)}),m(),c(1,et,3,0,"div",7)(2,it,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),l(),p(e.showTable?-1:1),l(),p(e.showTable?2:-1)}}function ot(t,i){if(t&1&&(s(0,"h2",5),f(1,"Stock list Outdoor"),m(),c(2,nt,3,3),x(3,"async")),t&2){let e,n=a();l(2),p((e=S(3,1,n.shopItemDataOutdoor$))?2:-1,e)}}var xt=(()=>{let i=class i extends j{constructor(){super(),this.shopName="furniture-store",this.shopItemDataIndoor$=this._database.fetchShopItemData$(this.shopName+"-indoor"),this.shopItemDataOutdoor$=this._database.fetchShopItemData$(this.shopName+"-outdoor"),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=E({type:i,selectors:[["app-furniture-store"]],standalone:!0,features:[v,k],decls:10,vars:6,consts:[["listDetail",""],[3,"shopItemData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(r,o){r&1&&(s(0,"app-list-detail-container"),N(1,0),c(2,z,1,1,"app-shop-item-data-details",1),V(),s(3,"app-card")(4,"h1",2),d(5,"app-ui-icon",3),f(6),m(),c(7,J,2,3),m(),c(8,Z,4,3)(9,ot,4,3),m()),r&2&&(l(2),p(o.selectedEntity?2:-1),l(3),_("uiIcon",o.SHOP_ICONS[o.shopName]),l(),$(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),l(),p(o.openingHours$?7:-1),l(),p(o.shopItemDataIndoor$?8:-1),l(),p(o.shopItemDataOutdoor$?9:-1))},dependencies:[M,B,P,W,L,q,U,Y,A,H,O],encapsulation:2});let t=i;return t})();export{xt as FurnitureStoreComponent}; +import{a as j}from"./chunk-VBOZDBHI.js";import{g as A,h as U,k as Y,t as q}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as _,Da as w,Ga as p,Ha as T,Ia as I,Ja as y,Ka as s,Kb as H,La as m,Ma as d,Na as N,Oa as V,P as E,Qa as h,Sa as b,Ta as a,Td as O,Te as L,Vd as B,W as u,X as C,Yd as P,eb as f,gb as $,jb as g,kb as D,la as l,lb as F,nb as k,rb as x,sb as S,se as W,sf as M,ua as v,xa as c}from"./chunk-PYTDIKHQ.js";function z(t,i){if(t&1&&d(0,"app-shop-item-data-details",1),t&2){let e=a();_("shopItemData",e.selectedEntity)}}function G(t,i){t&1&&d(0,"app-opening-hours",4),t&2&&_("openingHours",i)}function J(t,i){if(t&1&&(c(0,G,1,1,"app-opening-hours",4),x(1,"async")),t&2){let e,n=a();p((e=S(1,1,n.openingHours$))?0:-1,e)}}function K(t,i){if(t&1){let e=h();s(0,"app-item-icon",10),b("click",function(){let r=u(e).$implicit,o=a(4);return C(o.showDetails(r))}),m()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function Q(t,i){if(t&1&&(s(0,"div",7),I(1,K,1,3,"app-item-icon",9,T),m()),t&2){let e=a();l(),y(e)}}function R(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function X(t,i){if(t&1){let e=h();s(0,"app-data-filter",6),F("showTableChange",function(r){u(e);let o=a(2);return D(o.showTable,r)||(o.showTable=r),C(r)}),m(),c(1,Q,3,0,"div",7)(2,R,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),l(),p(e.showTable?-1:1),l(),p(e.showTable?2:-1)}}function Z(t,i){if(t&1&&(s(0,"h2",5),f(1,"Stock list Indoor"),m(),c(2,X,3,3),x(3,"async")),t&2){let e,n=a();l(2),p((e=S(3,1,n.shopItemDataIndoor$))?2:-1,e)}}function tt(t,i){if(t&1){let e=h();s(0,"app-item-icon",10),b("click",function(){let r=u(e).$implicit,o=a(4);return C(o.showDetails(r))}),m()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function et(t,i){if(t&1&&(s(0,"div",7),I(1,tt,1,3,"app-item-icon",9,T),m()),t&2){let e=a();l(),y(e)}}function it(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function nt(t,i){if(t&1){let e=h();s(0,"app-data-filter",6),F("showTableChange",function(r){u(e);let o=a(2);return D(o.showTable,r)||(o.showTable=r),C(r)}),m(),c(1,et,3,0,"div",7)(2,it,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),l(),p(e.showTable?-1:1),l(),p(e.showTable?2:-1)}}function ot(t,i){if(t&1&&(s(0,"h2",5),f(1,"Stock list Outdoor"),m(),c(2,nt,3,3),x(3,"async")),t&2){let e,n=a();l(2),p((e=S(3,1,n.shopItemDataOutdoor$))?2:-1,e)}}var xt=(()=>{let i=class i extends j{constructor(){super(),this.shopName="furniture-store",this.shopItemDataIndoor$=this._database.fetchShopItemData$(this.shopName+"-indoor"),this.shopItemDataOutdoor$=this._database.fetchShopItemData$(this.shopName+"-outdoor"),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=E({type:i,selectors:[["app-furniture-store"]],standalone:!0,features:[v,k],decls:10,vars:6,consts:[["listDetail",""],[3,"shopItemData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(r,o){r&1&&(s(0,"app-list-detail-container"),N(1,0),c(2,z,1,1,"app-shop-item-data-details",1),V(),s(3,"app-card")(4,"h1",2),d(5,"app-ui-icon",3),f(6),m(),c(7,J,2,3),m(),c(8,Z,4,3)(9,ot,4,3),m()),r&2&&(l(2),p(o.selectedEntity?2:-1),l(3),_("uiIcon",o.SHOP_ICONS[o.shopName]),l(),$(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),l(),p(o.openingHours$?7:-1),l(),p(o.shopItemDataIndoor$?8:-1),l(),p(o.shopItemDataOutdoor$?9:-1))},dependencies:[M,B,P,W,L,q,U,Y,A,H,O],encapsulation:2});let t=i;return t})();export{xt as FurnitureStoreComponent}; diff --git a/chunk-MCNPD5L3.js b/chunk-EIRFO34V.js similarity index 96% rename from chunk-MCNPD5L3.js rename to chunk-EIRFO34V.js index ebfad6facc..62b984233c 100644 --- a/chunk-MCNPD5L3.js +++ b/chunk-EIRFO34V.js @@ -1,2 +1,2 @@ -import"./chunk-POXAUVM7.js";import{Ca as d,Ja as t,Ka as i,Ob as p,P as s,Sd as u,db as e,mb as m,mf as c}from"./chunk-4KZEYPV3.js";var b=(()=>{let a=class a{constructor(){this._setCssClass=!0}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=s({type:a,selectors:[["app-about"]],hostVars:2,hostBindings:function(n,l){n&2&&d("app-about",l._setCssClass)},standalone:!0,features:[m],decls:45,vars:0,consts:[[1,"prose","lg:prose-xl"],["id","contact"],["href","mailto:alex@coral.guide"],["href","https://discord.com/users/161955738690912257"],["href","http://discord.gg/stairway"],["id","support"],["href","https://paypal.me/niersmann"],["href","https://ko-fi.com/koenig"],["id","disclaimer"]],template:function(n,l){n&1&&(t(0,"app-card")(1,"div",0)(2,"h1"),e(3,"About Coral Guide"),i(),t(4,"p"),e(5," Coral Guide is a project based on Coral Island that started in October 2022, with its first publicly available version on 28th October 2022. It was intended as a playground for experimenting with new web and framework features, but it gained attention by players and turned into a real project. The guide includes many information directly data mined from the game to guarantee precision in shown information and fast updates if new versions of the game release. "),i(),t(6,"h2",1),e(7,"Contact"),i(),t(8,"p"),e(9," If you're interested in contacting me there are two ways: You can either send me an email or if you feel a little chatty, you can reach me via Discord. I usually hang around in the official Stairway Discord as well, feel free to ping me there. "),i(),t(10,"p")(11,"a",2),e(12,"alex@coral.guide"),i(),e(13," - "),t(14,"a",3),e(15,"koenig.gg on Discord"),i(),e(16," - "),t(17,"a",4),e(18,"Stairway Discord"),i()(),t(19,"h2",5),e(20,"Support Coral Guide"),i(),t(21,"p"),e(22," Coral Guide is made by a single person and all costs are paid out of pocket. If you feel like financially supporting Coral Guide, you can do so by using either Ko-Fi or Paypal. Every amount is much appreciated and helps availability and growth of Coral Guide. "),i(),t(23,"p"),e(24,"Note: Coral Guide "),t(25,"strong"),e(26,"does not depend on tips/donations"),i(),e(27,"! Only use money you can and want to give. Even without financial support, Coral Guide will stay available and development will continue until it is considered done. "),i(),t(28,"p")(29,"strong"),e(30," Coral Guide will not use ads and stays free. "),i()(),t(31,"p"),e(32," If you send a donation/tip, let me know that it's purpose is for Coral Guide. "),i(),t(33,"p")(34,"a",6),e(35,"PayPal"),i(),e(36," - "),t(37,"a",7),e(38,"Ko-Fi"),i()(),t(39,"h2",8),e(40,"Disclaimer"),i(),t(41,"p"),e(42," Coral Guide is not affiliated, associated, authorized, endorsed by or in any way officially connected with Coral Island/Stairway Games or any of its subsidiaries or its affiliates. "),i(),t(43,"p"),e(44," The name Coral Island, the Super Coral Logo as well as related names, marks, emblems and images are registered trademarks of their respective owners. "),i()()())},dependencies:[p,c,u],styles:[`.app-about{width:100%}@media (min-width: 640px){.app-about{max-width:640px}}@media (min-width: 768px){.app-about{max-width:768px}}@media (min-width: 1024px){.app-about{max-width:1024px}}@media (min-width: 1280px){.app-about{max-width:1280px}}@media (min-width: 1536px){.app-about{max-width:1536px}}.app-about{margin-left:auto;margin-right:auto;margin-top:2.5rem;margin-bottom:2.5rem;display:block} +import"./chunk-BJE36J3T.js";import{Da as d,Ka as t,La as i,P as s,Qb as p,Yd as u,eb as e,nb as m,sf as c}from"./chunk-PYTDIKHQ.js";var b=(()=>{let a=class a{constructor(){this._setCssClass=!0}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=s({type:a,selectors:[["app-about"]],hostVars:2,hostBindings:function(n,l){n&2&&d("app-about",l._setCssClass)},standalone:!0,features:[m],decls:45,vars:0,consts:[[1,"prose","lg:prose-xl"],["id","contact"],["href","mailto:alex@coral.guide"],["href","https://discord.com/users/161955738690912257"],["href","http://discord.gg/stairway"],["id","support"],["href","https://paypal.me/niersmann"],["href","https://ko-fi.com/koenig"],["id","disclaimer"]],template:function(n,l){n&1&&(t(0,"app-card")(1,"div",0)(2,"h1"),e(3,"About Coral Guide"),i(),t(4,"p"),e(5," Coral Guide is a project based on Coral Island that started in October 2022, with its first publicly available version on 28th October 2022. It was intended as a playground for experimenting with new web and framework features, but it gained attention by players and turned into a real project. The guide includes many information directly data mined from the game to guarantee precision in shown information and fast updates if new versions of the game release. "),i(),t(6,"h2",1),e(7,"Contact"),i(),t(8,"p"),e(9," If you're interested in contacting me there are two ways: You can either send me an email or if you feel a little chatty, you can reach me via Discord. I usually hang around in the official Stairway Discord as well, feel free to ping me there. "),i(),t(10,"p")(11,"a",2),e(12,"alex@coral.guide"),i(),e(13," - "),t(14,"a",3),e(15,"koenig.gg on Discord"),i(),e(16," - "),t(17,"a",4),e(18,"Stairway Discord"),i()(),t(19,"h2",5),e(20,"Support Coral Guide"),i(),t(21,"p"),e(22," Coral Guide is made by a single person and all costs are paid out of pocket. If you feel like financially supporting Coral Guide, you can do so by using either Ko-Fi or Paypal. Every amount is much appreciated and helps availability and growth of Coral Guide. "),i(),t(23,"p"),e(24,"Note: Coral Guide "),t(25,"strong"),e(26,"does not depend on tips/donations"),i(),e(27,"! Only use money you can and want to give. Even without financial support, Coral Guide will stay available and development will continue until it is considered done. "),i(),t(28,"p")(29,"strong"),e(30," Coral Guide will not use ads and stays free. "),i()(),t(31,"p"),e(32," If you send a donation/tip, let me know that it's purpose is for Coral Guide. "),i(),t(33,"p")(34,"a",6),e(35,"PayPal"),i(),e(36," - "),t(37,"a",7),e(38,"Ko-Fi"),i()(),t(39,"h2",8),e(40,"Disclaimer"),i(),t(41,"p"),e(42," Coral Guide is not affiliated, associated, authorized, endorsed by or in any way officially connected with Coral Island/Stairway Games or any of its subsidiaries or its affiliates. "),i(),t(43,"p"),e(44," The name Coral Island, the Super Coral Logo as well as related names, marks, emblems and images are registered trademarks of their respective owners. "),i()()())},dependencies:[p,c,u],styles:[`.app-about{width:100%}@media (min-width: 640px){.app-about{max-width:640px}}@media (min-width: 768px){.app-about{max-width:768px}}@media (min-width: 1024px){.app-about{max-width:1024px}}@media (min-width: 1280px){.app-about{max-width:1280px}}@media (min-width: 1536px){.app-about{max-width:1536px}}.app-about{margin-left:auto;margin-right:auto;margin-top:2.5rem;margin-bottom:2.5rem;display:block} `],encapsulation:2});let o=a;return o})();export{b as AboutComponent}; diff --git a/chunk-G7CQEMPJ.js b/chunk-G7CQEMPJ.js deleted file mode 100644 index a670621932..0000000000 --- a/chunk-G7CQEMPJ.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as Te,b as Vt,c as Rt}from"./chunk-A2PSOISD.js";import"./chunk-DJJM56ZO.js";import"./chunk-GPI7MHXO.js";import{a as Ot}from"./chunk-V7RKZLQ2.js";import{f as Gt}from"./chunk-7P5ZBEP4.js";import{a as N,b as _t}from"./chunk-M22KCL2Z.js";import{a as ve,b as Ie,c as Se,d as Et,e as $t,q as Z,r as ee,t as Pt}from"./chunk-QVSQOUAD.js";import{a as K,b as X,c as Nt,d as Fe,g as Bt}from"./chunk-OHRRW4BO.js";import{a as xe}from"./chunk-WFTBLPSZ.js";import{$d as J,Aa as l,Ab as fe,Ad as ut,Bd as ht,C as $e,Ca as G,Cd as Ce,Dd as Ct,Fa as h,G as V,Ga as v,Ha as _,Hd as yt,Ia as C,Ib as R,J as Ke,Ja as a,Jb as Xe,K as le,Ka as s,Kb as ue,Kd as ye,La as f,Md as Pe,N as D,Nd as xt,Ob as Ze,P as b,Pa as T,Pd as $,Q as ce,Qb as et,Qd as gt,Ra as y,Rd as kt,Sa as p,Sd as bt,Ue as ge,V as I,Va as Qe,Ve as Dt,W as S,Wa as x,Wc as mt,We as wt,Xb as he,Xe as ke,Yb as tt,Z as We,_b as ae,ba as ze,ca as He,ce as vt,d as w,db as d,dc as it,e as oe,eb as ne,f as je,fb as re,fe as It,gc as ot,he as St,j as Ne,jd as lt,ka as m,ke as Ft,kf as Mt,l as me,lc as nt,mb as pe,me as q,mf as be,nd as A,ne as Y,ob as Be,oc as rt,od as L,p as Ue,pc as at,pd as ct,pe as Q,qb as g,qc as st,qd as _e,qe as Tt,ra as W,rb as F,sb as de,sd as E,ta as M,ud as pt,wa as u,wd as j,x as qe,xa as Je,xd as U,ya as Ye,yd as dt,zd as ft}from"./chunk-4KZEYPV3.js";var At=(()=>{let t=class t{constructor(){this.uiIcon=ae}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["app-my-coral-guide"]],decls:15,vars:6,consts:[["exact","","routerLink",".",3,"uiIcon"],["routerLink","to-do",3,"uiIcon"],["routerLink","offerings-checklist",3,"uiIcon"],["routerLink","museum-checklist",3,"uiIcon"],["routerLink","cooking-recipes-checklist",3,"uiIcon"],["routerLink","settings",3,"uiIcon"],[1,"hidden"]],template:function(n,r){n&1&&(a(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),d(3,"Dashboard"),s(),a(4,"app-module-sidebar-item",1),d(5,"To-dos"),s(),a(6,"app-module-sidebar-item",2),d(7," Offerings checklist "),s(),a(8,"app-module-sidebar-item",3),d(9," Museum checklist "),s(),a(10,"app-module-sidebar-item",4),d(11," Cooking recipes checklist "),s(),a(12,"app-module-sidebar-item",5),d(13," Settings "),s()(),f(14,"router-outlet",6),s()),n&2&&(m(2),l("uiIcon",r.uiIcon.MY_CORAL),m(2),l("uiIcon",r.uiIcon.TO_DO),m(2),l("uiIcon",r.uiIcon.OFFERING),m(2),l("uiIcon",r.uiIcon.MUSEUM),m(2),l("uiIcon",r.uiIcon.COOKING),m(2),l("uiIcon",r.uiIcon.SETTINGS))},dependencies:[yt,ye,kt,gt,Ft],encapsulation:2});let e=t;return e})();var Lt=(()=>{var t,i;let o=class o extends at{constructor(){super(...arguments);oe(this,t,W([]));oe(this,i,W([]))}getFish$(){return w(this,t).call(this).length?Ne(w(this,t).asReadonly()()):this.http.get(`${this.BASE_PATH}/dashboards/fish.json`).pipe(V(c=>w(this,t).set(c)),$e(1))}getFish(){return w(this,t).asReadonly()}getBirthdays$(){return w(this,i).call(this).length?Ne(w(this,i).asReadonly()()):this.http.get(`${this.BASE_PATH}/dashboards/birthdays.json`).pipe(V(c=>w(this,i).set(c)),$e(1))}getBirthdays(){return w(this,i).asReadonly()}};t=new WeakMap,i=new WeakMap,o.\u0275fac=(()=>{let c;return function(O){return(c||(c=We(o)))(O||o)}})(),o.\u0275prov=Ke({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();function Yt(e,t){if(e&1&&(a(0,"mat-option",6),d(1),s()),e&2){let i=t.$implicit;l("value",i),m(),ne(i)}}function Qt(e,t){if(e&1&&(a(0,"mat-option",6),d(1),s()),e&2){let i=t.$implicit;l("value",i),m(),ne(i)}}var De=(()=>{let t=class t{constructor(){this.Weathers=ot,this.Seasons=it}increaseDay(o){this.parentFormGroup.patchValue(he(this.parentFormGroup.getRawValue(),o))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["app-dashboard-filter"]],inputs:{parentFormGroup:"parentFormGroup"},standalone:!0,features:[pe],decls:25,vars:1,consts:[[1,"flex","flex-wrap","gap-x-3","gap-y-4",3,"formGroup"],[1,"semi-transparent-form-field",2,"--mat-form-field-infix-width","3rem"],["formControlName","day","inputmode","number","matInput","","max","28","min","1","pattern","[0-9]","type","number"],[1,"btn","-ml-2","touch-manipulation",3,"click"],[1,"semi-transparent-form-field",2,"--mat-form-field-infix-width","5rem"],["disableOptionCentering","","formControlName","season"],[3,"value"],["formControlName","year","inputmode","number","matInput","","min","1","pattern","[0-9]","type","number"],["disableOptionCentering","","formControlName","weather"],["formControlName","hideCompleted",1,"text-white","self-center"]],template:function(n,r){n&1&&(a(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),d(3,"Day"),s(),f(4,"input",2),s(),a(5,"button",3),y("click",function(){return r.increaseDay(1)}),d(6,"+"),s(),a(7,"mat-form-field",4)(8,"mat-label"),d(9,"Season"),s(),a(10,"mat-select",5),_(11,Yt,2,2,"mat-option",6,v),s()(),a(13,"mat-form-field",1)(14,"mat-label"),d(15,"Year"),s(),f(16,"input",7),s(),a(17,"mat-form-field",4)(18,"mat-label"),d(19,"Weather"),s(),a(20,"mat-select",8),_(21,Qt,2,2,"mat-option",6,v),s()(),a(23,"mat-checkbox",9),d(24,"Hide completed"),s()()),n&2&&(l("formGroup",r.parentFormGroup),m(11),C(r.Seasons),m(10),C(r.Weathers))},dependencies:[ht,lt,pt,A,L,ut,ft,dt,It,vt,mt,St,Ce,j,U,N,Ot],encapsulation:2});let e=t;return e})();var jt=e=>["/npcs",e];function Zt(e,t){if(e&1){let i=T();a(0,"app-item-icon",11),y("click",function(){I(i);let n=p().$implicit,r=p(2);return S(r.itemClicked.emit(n.item))}),s()}if(e&2){let i=p().$implicit;l("itemName",i.item.iconName)}}function ei(e,t){if(e&1&&(a(0,"span"),d(1),g(2,"addSpacesToPascalCase"),s()),e&2){let i=p().$implicit;m(),re("All ",F(2,1,i.categoryName),"")}}function ti(e,t){if(e&1&&u(0,Zt,1,1,"app-item-icon",10)(1,ei,3,3,"span"),e&2){let i=t.$implicit;h(i.type==="item"?0:-1),m(),h(i.type==="category"?1:-1)}}function ii(e,t){e&1&&d(0," No individual loved gifts. ")}function oi(e,t){if(e&1&&(a(0,"div",0)(1,"div",1)(2,"a",2),f(3,"app-item-icon",3),s(),a(4,"div",4)(5,"a",5),d(6),s()()(),a(7,"div",6)(8,"div",7),f(9,"app-ui-icon",8),d(10," Loved "),s(),a(11,"div",9),_(12,ti,2,2,null,null,v,!1,ii,1,0),s()()()),e&2){let i=t.$implicit,o=p();m(2),l("routerLink",Be(6,jt,i.npcKey)),m(),l("itemName",i.iconName),m(2),l("routerLink",Be(8,jt,i.npcKey)),m(),re(" ",i.characterName," "),m(3),l("uiIcon",o.UiIcon.LOVE),m(3),C(i.lovedGifts)}}function ni(e,t){e&1&&(a(0,"p"),d(1,"No birthdays."),s())}var Me=(()=>{let t=class t{constructor(){this.birthdays=He.required(),this.itemClicked=ze(),this.UiIcon=ae,this.uiIcon=ae}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["app-birthday-dashboard"]],hostAttrs:[1,"flex","flex-col","gap-3"],inputs:{birthdays:[1,"birthdays"]},outputs:{itemClicked:"itemClicked"},standalone:!0,features:[pe],decls:3,vars:1,consts:[[1,"flex","gap-1","flex-col"],[1,"text-2xl","text-black","font-semibold","flex","gap-2","items-center","gifting-portrait"],[3,"routerLink"],[1,"h-12","birthday-npc-image",3,"itemName"],[1,"flex","flex-col"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"flex","gap-2"],[1,"font-semibold","flex","items-center","flex-col","shrink-0","basis-12","text-black"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon"],[1,"flex","items-center","gap-2.5","flex-wrap"],[1,"cursor-pointer","h-9","birthday-gift-icon",3,"itemName"],[1,"cursor-pointer","h-9","birthday-gift-icon",3,"click","itemName"]],template:function(n,r){n&1&&_(0,oi,15,10,"div",0,v,!1,ni,2,0,"p"),n&2&&C(r.birthdays())},dependencies:[be,$,J,xt,ye],styles:[`.birthday-npc-image.app-item-icon>img{width:100%;height:100%;object-fit:scale-down;object-position:center bottom}.birthday-gift-icon.app-item-icon>img{width:100%;height:100%;object-fit:scale-down;object-position:center} -`],encapsulation:2});let e=t;return e})();var mi=(e,t)=>t.entry.id+t.context,li=()=>[xe];function ci(e,t){if(e&1&&f(0,"app-offering",5),e&2){let i=t.$implicit;l("details",i)}}function pi(e,t){if(e&1&&(a(0,"app-item-card-switch",1),u(1,ci,1,1,"ng-template",4),s()),e&2){let i=p();l("item",i.selectedEntity)}}function di(e,t){if(e&1){let i=T();a(0,"div",15)(1,"app-item-icon",16),y("click",function(){let n=I(i).$implicit,r=p(2);return S(r.showDetails({id:n.entry.id,displayName:"",iconName:n.entry.iconName}))}),s(),a(2,"label",17)(3,"mat-checkbox",18),y("change",function(n){let r=I(i).$implicit;return p(2).updateChecklist(n,r.entry.id,r.context),S(r.completed=!r.completed)}),s()()()}if(e&2){let i=t.$implicit;G("checklist-checked",i.completed),m(),l("itemName",i.entry.iconName),m(),x("for","entry-",i.entry.id,"-input"),m(),x("id","entry-",i.entry.id,""),x("name","entry-",i.entry.id,""),l("checked",i.completed)}}function fi(e,t){e&1&&(a(0,"p",14),d(1,"No more fish to catch :)"),s())}function ui(e,t){if(e&1){let i=T();a(0,"section",6)(1,"h2",7),d(2," Birthdays "),s(),a(3,"app-card",8)(4,"div",9)(5,"div")(6,"h2",10),d(7," Today "),s(),a(8,"app-birthday-dashboard",11),y("itemClicked",function(n){I(i);let r=p();return S(r.showDetails(n))}),s()(),a(9,"div")(10,"h2",10),d(11," Tomorrow "),s(),a(12,"app-birthday-dashboard",11),y("itemClicked",function(n){I(i);let r=p();return S(r.showDetails(n))}),s()()()()(),a(13,"section",6)(14,"h2",7),d(15," Fish "),s(),a(16,"div",12),_(17,di,4,10,"div",13,mi,!1,fi,2,0,"p",14),s()()}if(e&2){let i=p();m(8),l("birthdays",i.birthdaysToday()),m(4),l("birthdays",i.birthdaysTomorrow()),m(5),C(i.fish())}}function hi(e,t){e&1&&f(0,"mat-spinner",19)}function _i(e,t){e&1&&(u(0,hi,1,0),Je(1,0,li),Ye())}var Ut=(()=>{var t;let i=class i extends wt{constructor(){super();oe(this,t);this.dashboards=D(Lt),this.museumChecklistService=D(Te),this.userData=D(Ct),je(this,t,D(st)),this.museumChecklistDefinition$=w(this,t).fetchMuseumChecklist$(),this.museuemDef=W({}),this.requests$=Ue({museumDefinition:this.museumChecklistDefinition$.pipe(V(c=>this.museuemDef.set(c))),fish:this.dashboards.getFish$(),birthdays:this.dashboards.getBirthdays$()}),this.filterFormGroup=new ct({season:new E("Spring",{nonNullable:!0}),weather:new E("Sunny",{nonNullable:!0}),day:new E(1,{nonNullable:!0}),year:new E(1,{nonNullable:!0}),hideCompleted:new E(!0,{nonNullable:!0})}),this.filterFormGroup.patchValue(this.userData.getCurrentData().myGuideFilter);let r=Dt(this.filterFormGroup.valueChanges.pipe(me(()=>this.filterFormGroup.getRawValue()),V(c=>{this.userData.getCurrentData().myGuideFilter=c,this.userData.save()})),{initialValue:this.filterFormGroup.getRawValue()});this.fish=fe(()=>{let c=this.dashboards.getFish(),k=r().season,O=r().weather,P=r().hideCompleted,se=c().filter(z=>{let ie=z.seasons.includes(k)&&z.weathers.includes(O),H={day:r().day,season:r().season,year:r().year},Jt=z.dateRanges.map(Le=>({from:Le.startsFrom,to:Le.lastsTill}));return ie&&(!z.dateRanges.length||tt(H,Jt,!0))}),te=[];return this.museuemDef().Fish.forEach(z=>{let ie=se.find(H=>H.id===z.id);if(ie){let H=this.museumChecklistService.isChecked(ie.id);H&&P||te.push({completed:H,context:"museum",entry:ie})}}),te}),this.birthdaysToday=fe(()=>{let c=this.dashboards.getBirthdays()(),k=r().season,O=r().day;return c.filter(P=>P.birthday.day===O&&P.birthday.season===k)}),this.birthdaysTomorrow=fe(()=>{let c=this.dashboards.getBirthdays()(),k=r().season,P={day:r().day,season:k,year:1},se=he(P,1);return c.filter(te=>te.birthday.day===se.day&&te.birthday.season===se.season)})}updateChecklist(r,c,k){this.museumChecklistService.isChecked(c)?this.museumChecklistService.remove(c):this.museumChecklistService.add(c)}};t=new WeakMap,i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=b({type:i,selectors:[["app-index"]],features:[M],decls:8,vars:6,consts:[[3,"removePlaceholder"],["listDetail","",3,"item"],[1,"mb-4","font-semibold","text-3xl","text-white","flex","items-center","gap-x-4"],[1,"my-5","block",3,"parentFormGroup"],["appDatabaseItemDetails",""],[3,"details"],[1,"my-2"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[1,"@container"],[1,"@3xl:grid-cols-2","grid","gap-x-3","gap-y-5"],[1,"mb-4","font-semibold","text-2xl","text-black"],[3,"itemClicked","birthdays"],[1,"icon-grid"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked"],[1,"col-span-full"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","itemName"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"change","id","checked","name"],[1,"mx-auto"]],template:function(c,k){c&1&&(a(0,"app-list-detail-container",0),u(1,pi,2,1,"app-item-card-switch",1),a(2,"h1",2),d(3," My Coral Guide "),s(),f(4,"app-dashboard-filter",3),u(5,ui,20,3),g(6,"async"),u(7,_i,3,0),s()),c&2&&(l("removePlaceholder",k.showTable),m(),h(k.selectedEntity?1:-1),m(3),l("parentFormGroup",k.filterFormGroup),m(),h(F(6,4,k.requests$)?5:7))},dependencies:[$,bt,q,N,K,Z,ee,De,Me,R],encapsulation:2});let e=i;return e})();var Ee=(()=>{let t=class t extends ke{constructor(){super(),this.checklistForm=new _e({}),this.checklistForm.valueChanges.pipe(ge()).subscribe({next:o=>{let n=[];Object.keys(o).forEach(r=>{o[r]&&n.push(r)}),this.checklistService.set(n)}})}ngOnInit(){this.checklistDefinition$=this.checklistDefinition$.pipe(qe(1),V(o=>{let n=Object.keys(o);n.forEach(r=>{o[r].forEach(c=>{this.checklistForm.addControl(c.id,new E(this.checklistService.isChecked(c.id),{nonNullable:!0}),{emitEvent:!1})})}),this.activateTabFromRoute(n)}))}keyValueNoOrder(){return 0}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["ng-component"]],features:[M],decls:0,vars:0,template:function(n,r){},encapsulation:2});let e=t;return e})();function yi(e,t){if(e&1&&f(0,"app-fish",4),e&2){let i=p().$implicit;l("fish",i.fish)}}function xi(e,t){if(e&1&&f(0,"app-insect",5),e&2){let i=p().$implicit;l("critter",i.insect)}}function gi(e,t){if(e&1&&f(0,"app-insect",5),e&2){let i=p().$implicit;l("critter",i.oceanCritter)}}function ki(e,t){if(e&1&&f(0,"app-shop-processing-result",6),e&2){let i=p().$implicit;l("itemProcessData",i.chanceAsProcessResult)}}function bi(e,t){if(e&1&&u(0,yi,1,1,"app-fish",4)(1,xi,1,1,"app-insect",5)(2,gi,1,1,"app-insect",5)(3,ki,1,1,"app-shop-processing-result",6),e&2){let i=t.$implicit;h(i.fish?0:i.insect?1:i.oceanCritter?2:i.chanceAsProcessResult?3:-1)}}function vi(e,t){if(e&1&&(a(0,"app-database-item-details",1),u(1,bi,4,1,"ng-template",3),s()),e&2){let i=p();l("itemId",i.selectedEntity.id)}}function Ii(e,t){if(e&1){let i=T();a(0,"div",11)(1,"app-item-icon",12),y("click",function(){let n=I(i).$implicit,r=p(4);return S(r.showDetails(n))}),s(),a(2,"label",13),f(3,"mat-checkbox",14),s()()}if(e&2){let i,o=t.$implicit,n=p(4);G("checklist-checked",(i=n.checklistForm.get(o.id))==null?null:i.value)("selected-icon",(n.selectedEntity==null?null:n.selectedEntity.id)===o.id),m(),l("itemName",o.iconName),m(),x("for","entry-",o.id,"-input"),m(),x("id","entry-",o.id,""),x("name","entry-",o.id,""),l("formControlName",o.id)}}function Si(e,t){if(e&1&&(a(0,"div",9),_(1,Ii,4,12,"div",10,v),s()),e&2){let i=p().$implicit;m(),C(i.value)}}function Fi(e,t){if(e&1&&(a(0,"mat-tab",8),u(1,Si,3,0,"div",9),s()),e&2){let i=t.$implicit,o=p(2);l("formGroup",o.checklistForm)("label",i.key),m(),h(o.showTable?-1:1)}}function Ti(e,t){if(e&1){let i=T();a(0,"mat-tab-group",7),y("selectedTabChange",function(n){I(i);let r=p();return S(r.updateUrl(n))}),_(1,Fi,2,3,"mat-tab",8,v),g(3,"keyvalue"),s()}if(e&2){let i=p();l("selectedIndex",i.selectedTabIndex()),m(),C(de(3,1,t,i.keyValueNoOrder))}}var Kt=(()=>{let t=class t extends Ee{constructor(){super(),this.checklistService=D(Te),this.checklistDefinition$=this._database.fetchMuseumChecklist$()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["app-museum-checklist"]],features:[M],decls:4,vars:5,consts:[[3,"removePlaceholder"],["listDetail","","context","museum",3,"itemId"],[3,"selectedIndex"],["appDatabaseItemDetails",""],[3,"fish"],[3,"critter"],[1,"mb-4",3,"itemProcessData"],[3,"selectedTabChange","selectedIndex"],[3,"formGroup","label"],[1,"icon-grid"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked","selected-icon"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","itemName"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"formControlName","id","name"]],template:function(n,r){if(n&1&&(a(0,"app-list-detail-container",0),u(1,vi,2,1,"app-database-item-details",1)(2,Ti,4,4,"mat-tab-group",2),g(3,"async"),s()),n&2){let c;l("removePlaceholder",r.showTable),m(),h(r.selectedEntity?1:-1),m(),h((c=F(3,3,r.checklistDefinition$))?2:-1,c)}},dependencies:[$,q,Y,Q,N,A,L,j,U,X,K,Se,ve,Ie,R,ue],encapsulation:2});let e=t;return e})();var wi=(e,t)=>t.key;function Mi(e,t){if(e&1&&f(0,"app-cooking-recipe",5),e&2){let i=t.$implicit;l("cookingRecipe",i)}}function Ei(e,t){if(e&1&&_(0,Mi,1,1,"app-cooking-recipe",5,wi),e&2){let i=t.$implicit;C(i.cookedFrom)}}function Ni(e,t){if(e&1&&(a(0,"app-database-item-details",1),u(1,Ei,2,0,"ng-template",4),s()),e&2){let i=p();l("itemId",i.selectedEntity.id)}}function $i(e,t){if(e&1){let i=T();a(0,"div",8)(1,"app-item-icon",9),y("click",function(){let n=I(i).$implicit,r=p(3);return S(r.showDetails(n))}),s(),a(2,"label",10),f(3,"mat-checkbox",11),s()()}if(e&2){let i,o=t.$implicit,n=p(3);G("checklist-checked",(i=n.checklistForm.get(o.id))==null?null:i.value)("selected-icon",(n.selectedEntity==null?null:n.selectedEntity.id)===o.id),m(),l("itemName",o.iconName),m(),x("for","entry-",o.id,"-input"),m(),x("id","entry-",o.id,""),x("name","entry-",o.id,""),l("formControlName",o.id)}}function Bi(e,t){if(e&1&&(a(0,"div",6),_(1,$i,4,12,"div",7,v),s()),e&2){let i=p().$implicit;m(),C(i.value)}}function Pi(e,t){if(e&1&&(a(0,"mat-tab",3),g(1,"addSpacesToPascalCase"),g(2,"titlecase"),u(3,Bi,3,0,"div",6),s()),e&2){let i=t.$implicit,o=p();l("formGroup",o.checklistForm)("label",o.cookingUtensilMapping[i.key.toLowerCase()]?o.cookingUtensilMapping[i.key.toLowerCase()].displayName:F(2,5,F(1,3,i.key))),m(3),h(o.showTable?-1:3)}}var Wt=(()=>{let t=class t extends Ee{constructor(){super(),this.checklistService=D(Vt),this.checklistDefinition$=this._database.fetchCookingRecipesChecklist$(),this.cookingUtensilMapping=this._database.getCookingUtensilMapping(),this.urlPathFromLabel=o=>{let n=Object.keys(this.cookingUtensilMapping).find(r=>this.cookingUtensilMapping[r].displayName===o);return n||o.toLowerCase().replaceAll(" ","")}}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["app-cooking-recipes-checklist"]],features:[M],decls:7,vars:8,consts:[[3,"removePlaceholder"],["listDetail","","hideQualityGrid","","context","cooking_recipes",3,"itemId"],[3,"selectedTabChange","selectedIndex"],[3,"formGroup","label"],["appDatabaseItemDetails",""],[1,"mb-4",3,"cookingRecipe"],[1,"icon-grid"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked","selected-icon"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","itemName"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"formControlName","id","name"]],template:function(n,r){n&1&&(a(0,"app-list-detail-container",0),u(1,Ni,2,1,"app-database-item-details",1),a(2,"mat-tab-group",2),y("selectedTabChange",function(k){return r.updateUrl(k)}),_(3,Pi,4,7,"mat-tab",3,v),g(5,"async"),g(6,"keyvalue"),s()()),n&2&&(l("removePlaceholder",r.showTable),m(),h(r.selectedEntity?1:-1),m(),l("selectedIndex",r.selectedTabIndex()),m(),C(de(6,5,F(5,3,r.checklistDefinition$),r.keyValueNoOrder)))},dependencies:[$,q,Y,Q,N,A,L,j,U,Fe,X,K,R,Xe,ue,J],encapsulation:2});let e=t;return e})();function Gi(e,t){if(e&1&&f(0,"app-offering",3),e&2){let i=t.$implicit;l("details",i)}}function Oi(e,t){if(e&1&&(a(0,"app-item-card-switch",0),u(1,Gi,1,1,"ng-template",2),s()),e&2){let i=p();l("item",i.selectedEntity)}}function Vi(e,t){if(e&1){let i=T();a(0,"div",13),g(1,"entityKey"),a(2,"app-item-icon",14),y("click",function(){I(i);let n=p().$implicit,r=p(5);return S(r.showDetails(n))}),s(),a(3,"label",15),f(4,"mat-checkbox",16),s()()}if(e&2){let i,o=t,n=p().$implicit,r=p(5);G("checklist-checked",(i=r.checklistForm.get(o))==null?null:i.value)("selected-icon",r.selectedEntity&&F(1,14,r.selectedEntity)===o),m(2),l("amount",n.amount)("itemName",n.item.iconName)("quality",n.quality),m(),x("for","entry-",o,"-input"),m(),x("id","entry-",o,""),x("name","entry-",o,""),l("formControlName",o)}}function Ri(e,t){if(e&1&&(u(0,Vi,5,16,"div",12),g(1,"entityKey")),e&2){let i,o=t.$implicit;h((i=F(1,1,o.item))?0:-1,i)}}function Ai(e,t){if(e&1&&(a(0,"div",7)(1,"div",8),f(2,"img",9),a(3,"div",10)(4,"div"),d(5),s(),a(6,"div"),d(7),s()()(),a(8,"div",11),_(9,Ri,2,3,null,null,v),s()()),e&2){let i=t.$implicit,o=p(4);m(),G("bg-merino-300",(o.activeOffering==null?null:o.activeOffering.title)===i.title),m(),x("alt","",i.title," offering icon"),x("ngSrc","",o.bundleAssetPath()+i.imageName,".webp"),m(3),ne(i.title),m(2),re(" ",i.numOfItemRequired===-1?"All":i.numOfItemRequired," required: "),m(2),C(i.requiredItems)}}function Li(e,t){if(e&1&&(a(0,"div",6),_(1,Ai,11,8,"div",7,v),s()),e&2){let i=p().$implicit;m(),C(i.offerings)}}function ji(e,t){if(e&1&&(a(0,"mat-tab",5),g(1,"addSpacesToPascalCase"),u(2,Li,3,0,"div",6),s()),e&2){let i=t.$implicit,o=p(2);Qe("label",F(1,2,i.offeringGroupTitle)),m(2),h(o.showTable?-1:2)}}function Ui(e,t){if(e&1){let i=T();a(0,"mat-tab-group",4),y("selectedTabChange",function(n){I(i);let r=p();return S(r.updateUrl(n))}),_(1,ji,3,4,"mat-tab",5,v),s()}if(e&2){let i=p();l("formGroup",i.checklistForm)("selectedIndex",i.selectedTabIndex()),m(),C(t)}}var zt=(()=>{let t=class t extends ke{constructor(){super(),this.checklistService=D(Rt),this.checklistForm=new _e({}),this.useBeta=D(rt).getSettings().useBeta,this.bundleAssetPath=W(`assets/${this.useBeta?"beta":"live"}/items/icons/`),this._altars=[],this.urlPathFromLabel=o=>{let n=o.toLowerCase().replaceAll(" ",""),r=this._altars.find(c=>c.offeringGroupTitle.toLowerCase().replaceAll(" ","")===n);return r?r.urlPath:o.toLowerCase().replaceAll(" ","")},this.checklistForm.valueChanges.pipe(ge()).subscribe({next:o=>{let n=[];Object.keys(o).forEach(r=>{o[r]&&n.push(r)}),this.checklistService.set(n)}}),this.offerings$=this._database.fetchOfferings$().pipe(me(o=>{let n=o.filter(c=>!c.customType),r=n.map(c=>c.urlPath);return this._altars=n,n.forEach(c=>{c.offerings.forEach(k=>{k.requiredItems.forEach(O=>{let P=nt(O.item);this.checklistForm.addControl(P,new E(this.checklistService.isChecked(P),{nonNullable:!0}),{emitEvent:!1})})})}),this.activateTabFromRoute(r),n}))}showDetails(o){this.entryForToDo=o,o&&"amount"in o?super.showDetails(o.item):super.showDetails(o)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=b({type:t,selectors:[["app-offerings-checklist"]],features:[M],decls:4,vars:4,consts:[["listDetail","","context","offerings",3,"item"],[3,"formGroup","selectedIndex"],["appDatabaseItemDetails",""],[3,"details"],[3,"selectedTabChange","formGroup","selectedIndex"],[3,"label"],[1,"grid","grid-cols-1","lg:grid-cols-2","gap-6"],[1,"flex","flex-col","gap-y-2"],[1,"rounded-lg","bg-merino","flex","items-center","gap-4","p-4"],["height","64","width","64",3,"alt","ngSrc"],[1,"flex","flex-col","text-lg","font-semibold"],[1,"icon-grid","w-full"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked","selected-icon"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","amount","itemName","quality"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"formControlName","id","name"]],template:function(n,r){if(n&1&&(a(0,"app-list-detail-container"),u(1,Oi,2,1,"app-item-card-switch",0)(2,Ui,3,2,"mat-tab-group",1),g(3,"async"),s()),n&2){let c;m(),h(r.selectedEntity?1:-1),m(),h((c=F(3,2,r.offerings$))?2:-1,c)}},dependencies:[$,q,Y,Q,N,A,L,j,U,K,Z,ee,et,R,Mt,J],encapsulation:2});let e=t;return e})();var qi=[{path:"",component:At,children:[{path:"",component:Ut},{path:"to-do",loadChildren:()=>import("./chunk-WAN5NSCB.js").then(e=>e.ToDoModule)},{path:"museum-checklist",redirectTo:"museum-checklist/",pathMatch:"full"},{path:"museum-checklist/:tabName",component:Kt,title:"Museum checklist - My Guide"},{path:"cooking-recipes-checklist",redirectTo:"cooking-recipes-checklist/",pathMatch:"full"},{path:"cooking-recipes-checklist/:tabName",component:Wt,title:"Cooking recipes checklist - My Guide"},{path:"offerings-checklist",redirectTo:"offerings-checklist/",pathMatch:"full"},{path:"offerings-checklist/:tabName",component:zt,title:"Offerings checklist - My Guide"},{path:"settings",loadChildren:()=>import("./chunk-X73TJLJO.js").then(e=>e.SettingsModule),title:"Settings - My Guide"}]}],Ht=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=le({imports:[Pe.forChild(qi),Pe]});let e=t;return e})();var sr=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=le({imports:[Ze,Ht,be,Gt,Tt,_t,Ce,Pt,Fe,X,Bt,Se,ve,Ie,Z,Et,$t,Nt,ee,xe,De,Me]});let e=t;return e})();export{sr as MyCoralGuideModule}; diff --git a/chunk-GEJY5HAK.js b/chunk-GEJY5HAK.js deleted file mode 100644 index 639724c390..0000000000 --- a/chunk-GEJY5HAK.js +++ /dev/null @@ -1 +0,0 @@ -import{L as o}from"./chunk-4KZEYPV3.js";var e=new o("BETA_CODE");export{e as a}; diff --git a/chunk-IBM5K5MG.js b/chunk-IBM5K5MG.js deleted file mode 100644 index 386f1f4c03..0000000000 --- a/chunk-IBM5K5MG.js +++ /dev/null @@ -1 +0,0 @@ -import{i as a}from"./chunk-OHRRW4BO.js";import"./chunk-4KZEYPV3.js";export{a as CraftingModule}; diff --git a/chunk-4Y6KDJTU.js b/chunk-IN6STCDH.js similarity index 96% rename from chunk-4Y6KDJTU.js rename to chunk-IN6STCDH.js index 7e181c75ba..f5df9e83c9 100644 --- a/chunk-4Y6KDJTU.js +++ b/chunk-IN6STCDH.js @@ -1,3 +1,3 @@ -import{a as Ft}from"./chunk-ZGSE3C3O.js";import{a as Rt,b as Bt}from"./chunk-V7RKZLQ2.js";import{a as L,b as bt,c as Ct,d as ht,e as xt,f as Mt}from"./chunk-7P5ZBEP4.js";import{h as _t,i as gt,m as yt,p as Dt,s as It,t as wt}from"./chunk-QVSQOUAD.js";import{e as vt,f as St,h as Tt,i as Et}from"./chunk-OHRRW4BO.js";import{a as Xe,b as et}from"./chunk-WFTBLPSZ.js";import{Aa as m,Ae as se,Be as le,Ca as N,Cb as $e,Cd as We,Ce as de,Da as Me,De as pt,Ea as Fe,Fa as u,G as Ce,Ga as $,Gb as Ae,Gd as Je,Ha as R,Ia as B,Ib as X,Ie as mt,Ja as s,Jd as Ye,K as z,Ka as p,Kb as Ve,Ke as st,La as d,Le as lt,Ma as M,Md as xe,N as E,Na as F,Nd as Ze,Oa as Re,Ob as Ge,Oe as dt,P as b,Pa as he,Pd as k,Pe as ct,Q as W,Qe as ft,Ra as q,Re as ut,Sa as f,Sd as ee,T as Ee,Ta as Be,Td as tt,Ua as Pe,Ud as at,V as J,Vb as Le,W as Y,Z as h,Zb as Oe,Zd as nt,a as ge,b as ye,ca as we,cb as C,ce as it,d as De,db as l,e as Ie,eb as A,f as ve,fb as j,fe as ot,gb as He,ge as rt,gf as g,jc as Ue,jd as je,ka as r,l as be,mb as ke,mf as ce,n as Se,nd as Qe,ob as V,qb as P,qc as G,rb as H,rc as qe,sd as Ke,se as te,ta as x,te as ae,ue as ne,vb as Ne,vd as ze,ve as ie,w as Te,wa as c,we as oe,x as K,xe as re,ye as pe,za as Z,ze as me}from"./chunk-4KZEYPV3.js";var _=(()=>{let t=class t{constructor(){this.database=E(G)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=b({type:t,selectors:[["ng-component"]],inputs:{databaseItem:"databaseItem"},decls:0,vars:0,template:function(i,n){},encapsulation:2});let e=t;return e})();var Zt=["*"],y=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=b({type:t,selectors:[["app-database-header-button"]],inputs:{templateRef:"templateRef"},ngContentSelectors:Zt,decls:4,vars:6,consts:[["mat-button","",1,"hover:bg-black/10",3,"click"],[1,"flex","gap-x-2","items-center"],[1,"arrow"]],template:function(i,n){i&1&&(Be(),s(0,"button",0),q("click",function(){return n.templateRef.toggle()}),s(1,"div",1),Pe(2),d(3,"i",2),p()()),i&2&&(r(3),N("down",!n.templateRef.open)("translate-y-[-3px]",n.templateRef.open)("up",n.templateRef.open))},dependencies:[Ct],encapsulation:2});let e=t;return e})();var Xt=e=>[e];function ea(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Fishing"),p()(),d(5,"app-caught-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",V(2,Xt,a.fish))}}var Ht=(()=>{let t=class t extends _{ngOnInit(){this.databaseItem.fish&&(this.fish=ye(ge({},this.databaseItem.fish),{item:this.databaseItem.item}))}};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-fishing"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ea,6,4,"app-expandable",1),i&2&&u(n.fish?0:-1)},dependencies:[g,L,y],encapsulation:2});let e=t;return e})();var aa=e=>[e];function na(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Bugs and insects "),p()(),d(5,"app-caught-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",V(2,aa,a.databaseItem.insect))}}var kt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-insects"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,na,6,4,"app-expandable",1),i&2&&u(n.databaseItem.insect?0:-1)},dependencies:[g,L,y],encapsulation:2});let e=t;return e})();var oa=e=>[e];function ra(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Ocean critters"),p()(),d(5,"app-caught-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",V(2,oa,a.databaseItem.oceanCritter))}}var Nt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-sea-critters"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ra,6,4,"app-expandable",1),i&2&&u(n.databaseItem.oceanCritter?0:-1)},dependencies:[g,L,y],encapsulation:2});let e=t;return e})();function ma(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Seed for"),p()(),d(5,"app-crop-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.comesFromSeed)}}function sa(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"From seed"),p()(),d(5,"app-crop-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.isSeedFor)}}var $t=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-crops"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ma,6,2,"app-expandable",1)(1,sa,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.comesFromSeed&&n.databaseItem.comesFromSeed.length?0:-1),r(),u(n.databaseItem.isSeedFor&&n.databaseItem.isSeedFor.length?1:-1))},dependencies:[g,bt,y],encapsulation:2});let e=t;return e})();function da(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Usage in processing "),p()(),d(5,"app-processor-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.artisanIngredient)}}function ca(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Processing"),p()(),d(5,"app-processor-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.artisanResult)}}var At=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-artisan"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["showProcessor","",3,"dataSource"]],template:function(i,n){i&1&&c(0,da,6,2,"app-expandable",1)(1,ca,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.artisanIngredient&&n.databaseItem.artisanIngredient.length?0:-1),r(),u(n.databaseItem.artisanResult&&n.databaseItem.artisanResult.length?1:-1))},dependencies:[g,St,y],encapsulation:2});let e=t;return e})();function ua(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Used to craft"),p()(),d(5,"app-inventory-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.usedToCraft)}}function ba(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Crafting recipe"),p()(),d(5,"app-inventory-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.craftedFrom)}}var Vt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-crafting"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ua,6,2,"app-expandable",1)(1,ba,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.usedToCraft&&n.databaseItem.usedToCraft.length?0:-1),r(),u(n.databaseItem.craftedFrom&&n.databaseItem.craftedFrom.length?1:-1))},dependencies:[g,vt,y],encapsulation:2});let e=t;return e})();function ha(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Usage in cooking "),p()(),d(5,"app-cooking-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.usedToCook)}}function xa(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Cooking recipe"),p()(),d(5,"app-cooking-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.cookedFrom)}}var Gt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-cooking"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["showUtensil","",3,"dataSource"]],template:function(i,n){i&1&&c(0,ha,6,2,"app-expandable",1)(1,xa,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.usedToCook&&n.databaseItem.usedToCook.length?0:-1),r(),u(n.databaseItem.cookedFrom&&n.databaseItem.cookedFrom.length?1:-1))},dependencies:[g,Tt,y],encapsulation:2});let e=t;return e})();function ya(e,t){if(e&1&&(s(0,"td",14),d(1,"app-ui-icon",15),p()),e&2){let o=t.$implicit;r(),m("uiIcon",o.pref.icon)}}function Da(e,t){e&1&&(s(0,"th",16),l(1,"Preference"),p()),e&2&&Z("colspan",2)}function Ia(e,t){if(e&1&&(s(0,"td",17),l(1),p()),e&2){let o=t.$implicit;r(),j(" ",o.pref.label," ")}}function va(e,t){e&1&&(s(0,"th",16),l(1,"NPCs"),p())}function Sa(e,t){if(e&1&&(s(0,"div",21),d(1,"app-item-icon",22),l(2),p()),e&2){let o=t.$implicit,a=t.$index,i=t.$count;N("mr-4",a!==i-1),r(),m("itemName",o.iconName),r(),j(" ",o.characterName," ")}}function Ta(e,t){if(e&1&&(s(0,"td",18)(1,"div",19),R(2,Sa,3,4,"div",20,$),p()()),e&2){let o=t.$implicit;r(2),B(o.npcs)}}function Ea(e,t){e&1&&d(0,"tr",23)}function wa(e,t){e&1&&d(0,"tr",24)}function Ma(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Gifting"),p()(),s(5,"app-responsive-table")(6,"table",4),M(7,5),c(8,ya,2,1,"td",6),F(),M(9,7),c(10,Da,2,1,"th",8)(11,Ia,2,1,"td",9),F(),M(12,10),c(13,va,2,0,"th",8)(14,Ta,4,0,"td",11),F(),c(15,Ea,1,0,"tr",12)(16,wa,1,0,"tr",13),p()()()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(3),m("dataSource",a.databaseItem.asGift),r(9),m("matHeaderRowDef",a.displayedHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",a.displayedColumns)}}var Lt=(()=>{let t=class t extends _{constructor(){super(...arguments),this.displayedHeaderColumns=["preference","npcs"],this.displayedColumns=["icon",...this.displayedHeaderColumns],this.favoritePreferences=[],this.lovePreferences=[],this.likePreferences=[],this.neutralPreferences=[],this.dislikePreferences=[],this.hatePreferences=[],this.dataSource=[],this.keys=["favoritePreferences","lovePreferences","likePreferences","neutralPreferences","dislikePreferences","hatePreferences"]}ngOnInit(){let a=this.databaseItem.item;if(!a)return;this.database.getGiftingPreferences().forEach(n=>{this.keys.forEach(D=>{n[D].findIndex(w=>w.type==="item"&&a.id===w.item.id)!==-1&&n.npc&&this[D].push(n.npc)})}),this.keys.forEach(n=>{let D=this[n];D.length&&this.dataSource.push({pref:Ft.find(T=>T.preferenceField===n),npcs:D})})}};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-gifts"]],hostVars:2,hostBindings:function(i,n){i&2&&N("database-gifts",n.displayedHeaderColumns)},features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["mat-table","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 !pt-3 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","preference"],["class","backdrop-blur-xl","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col !pl-0 whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","npcs"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","!pt-3","w-10","text-center","icon-col"],[1,"!text-gifting","mr-1","sm:mr-0","!h-6","!w-6",3,"uiIcon"],["mat-header-cell","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","!pl-0","whitespace-nowrap"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"whitespace-nowrap"],[1,"inline-flex","shrink-0","items-center",3,"mr-4"],[1,"inline-flex","shrink-0","items-center"],[1,"h-12","mr-2","!flex","items-center","shrink-0",3,"itemName"],["mat-header-row",""],["mat-row",""]],template:function(i,n){i&1&&c(0,Ma,17,5,"app-expandable",1),i&2&&u(n.databaseItem.asGift&&n.databaseItem.asGift.length?0:-1)},dependencies:[k,te,g,ae,ie,me,oe,ne,se,re,pe,le,de,Ze,y],styles:[`.database-gifts .app-responsive-table .app-item-icon>img{aspect-ratio:unset;width:auto;max-height:3rem} +import{a as Ft}from"./chunk-767JIGWH.js";import{a as Rt,b as Bt}from"./chunk-SPTPR4TH.js";import{a as L,b as bt,c as Ct,d as ht,e as xt,f as Mt}from"./chunk-Z4COKCZ7.js";import{h as _t,i as gt,m as yt,p as Dt,s as It,t as wt}from"./chunk-BPN5VRCO.js";import{e as vt,f as St,h as Tt,i as Et}from"./chunk-TL6KPAQW.js";import{a as Xe,b as et}from"./chunk-43NKEY2U.js";import{Aa as Z,Ae as ne,Ba as m,Be as ie,Ce as oe,Da as N,De as re,Ea as Me,Eb as $e,Ee as pe,Fa as Fe,Fe as me,G as Ce,Ga as u,Gd as We,Ge as se,Ha as $,He as le,Ia as R,Ib as Ae,Ie as de,Ja as B,Je as pt,K as z,Ka as s,Kb as X,Kd as Je,La as p,Ma as d,Mb as Ve,N as E,Na as M,Nd as Ye,Oa as F,Oe as mt,P as b,Pa as Re,Q as W,Qa as he,Qb as Ge,Qd as xe,Qe as st,Re as lt,Sa as q,Ta as f,Td as Ze,U as Ee,Ua as Be,Ue as dt,Va as Pe,Vd as k,Ve as ct,W as J,We as ft,X as Y,Xe as ut,Yd as ee,Zb as Le,Zd as tt,_ as h,_d as at,a as ge,b as ye,bc as Oe,d as De,da as we,db as C,de as nt,e as Ie,eb as l,f as ve,fb as A,gb as j,hb as He,ie as it,l as be,la as r,le as ot,me as rt,mf as g,n as Se,nb as ke,nc as Ue,nd as je,pb as V,rb as P,rd as Qe,sb as H,sf as ce,ua as x,uc as G,vc as qe,w as Te,wb as Ne,wd as Ke,x as K,xa as c,ye as te,zd as ze,ze as ae}from"./chunk-PYTDIKHQ.js";var _=(()=>{let t=class t{constructor(){this.database=E(G)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=b({type:t,selectors:[["ng-component"]],inputs:{databaseItem:"databaseItem"},decls:0,vars:0,template:function(i,n){},encapsulation:2});let e=t;return e})();var Zt=["*"],y=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=b({type:t,selectors:[["app-database-header-button"]],inputs:{templateRef:"templateRef"},ngContentSelectors:Zt,decls:4,vars:6,consts:[["mat-button","",1,"hover:bg-black/10",3,"click"],[1,"flex","gap-x-2","items-center"],[1,"arrow"]],template:function(i,n){i&1&&(Be(),s(0,"button",0),q("click",function(){return n.templateRef.toggle()}),s(1,"div",1),Pe(2),d(3,"i",2),p()()),i&2&&(r(3),N("down",!n.templateRef.open)("translate-y-[-3px]",n.templateRef.open)("up",n.templateRef.open))},dependencies:[Ct],encapsulation:2});let e=t;return e})();var Xt=e=>[e];function ea(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Fishing"),p()(),d(5,"app-caught-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",V(2,Xt,a.fish))}}var Ht=(()=>{let t=class t extends _{ngOnInit(){this.databaseItem.fish&&(this.fish=ye(ge({},this.databaseItem.fish),{item:this.databaseItem.item}))}};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-fishing"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ea,6,4,"app-expandable",1),i&2&&u(n.fish?0:-1)},dependencies:[g,L,y],encapsulation:2});let e=t;return e})();var aa=e=>[e];function na(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Bugs and insects "),p()(),d(5,"app-caught-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",V(2,aa,a.databaseItem.insect))}}var kt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-insects"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,na,6,4,"app-expandable",1),i&2&&u(n.databaseItem.insect?0:-1)},dependencies:[g,L,y],encapsulation:2});let e=t;return e})();var oa=e=>[e];function ra(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Ocean critters"),p()(),d(5,"app-caught-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",V(2,oa,a.databaseItem.oceanCritter))}}var Nt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-sea-critters"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ra,6,4,"app-expandable",1),i&2&&u(n.databaseItem.oceanCritter?0:-1)},dependencies:[g,L,y],encapsulation:2});let e=t;return e})();function ma(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Seed for"),p()(),d(5,"app-crop-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.comesFromSeed)}}function sa(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"From seed"),p()(),d(5,"app-crop-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.isSeedFor)}}var $t=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-crops"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ma,6,2,"app-expandable",1)(1,sa,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.comesFromSeed&&n.databaseItem.comesFromSeed.length?0:-1),r(),u(n.databaseItem.isSeedFor&&n.databaseItem.isSeedFor.length?1:-1))},dependencies:[g,bt,y],encapsulation:2});let e=t;return e})();function da(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Usage in processing "),p()(),d(5,"app-processor-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.artisanIngredient)}}function ca(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Processing"),p()(),d(5,"app-processor-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.artisanResult)}}var At=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-artisan"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["showProcessor","",3,"dataSource"]],template:function(i,n){i&1&&c(0,da,6,2,"app-expandable",1)(1,ca,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.artisanIngredient&&n.databaseItem.artisanIngredient.length?0:-1),r(),u(n.databaseItem.artisanResult&&n.databaseItem.artisanResult.length?1:-1))},dependencies:[g,St,y],encapsulation:2});let e=t;return e})();function ua(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Used to craft"),p()(),d(5,"app-inventory-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.usedToCraft)}}function ba(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Crafting recipe"),p()(),d(5,"app-inventory-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.craftedFrom)}}var Vt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-crafting"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,ua,6,2,"app-expandable",1)(1,ba,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.usedToCraft&&n.databaseItem.usedToCraft.length?0:-1),r(),u(n.databaseItem.craftedFrom&&n.databaseItem.craftedFrom.length?1:-1))},dependencies:[g,vt,y],encapsulation:2});let e=t;return e})();function ha(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Usage in cooking "),p()(),d(5,"app-cooking-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.usedToCook)}}function xa(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Cooking recipe"),p()(),d(5,"app-cooking-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.cookedFrom)}}var Gt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-cooking"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["showUtensil","",3,"dataSource"]],template:function(i,n){i&1&&c(0,ha,6,2,"app-expandable",1)(1,xa,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.usedToCook&&n.databaseItem.usedToCook.length?0:-1),r(),u(n.databaseItem.cookedFrom&&n.databaseItem.cookedFrom.length?1:-1))},dependencies:[g,Tt,y],encapsulation:2});let e=t;return e})();function ya(e,t){if(e&1&&(s(0,"td",14),d(1,"app-ui-icon",15),p()),e&2){let o=t.$implicit;r(),m("uiIcon",o.pref.icon)}}function Da(e,t){e&1&&(s(0,"th",16),l(1,"Preference"),p()),e&2&&Z("colspan",2)}function Ia(e,t){if(e&1&&(s(0,"td",17),l(1),p()),e&2){let o=t.$implicit;r(),j(" ",o.pref.label," ")}}function va(e,t){e&1&&(s(0,"th",16),l(1,"NPCs"),p())}function Sa(e,t){if(e&1&&(s(0,"div",21),d(1,"app-item-icon",22),l(2),p()),e&2){let o=t.$implicit,a=t.$index,i=t.$count;N("mr-4",a!==i-1),r(),m("itemName",o.iconName),r(),j(" ",o.characterName," ")}}function Ta(e,t){if(e&1&&(s(0,"td",18)(1,"div",19),R(2,Sa,3,4,"div",20,$),p()()),e&2){let o=t.$implicit;r(2),B(o.npcs)}}function Ea(e,t){e&1&&d(0,"tr",23)}function wa(e,t){e&1&&d(0,"tr",24)}function Ma(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Gifting"),p()(),s(5,"app-responsive-table")(6,"table",4),M(7,5),c(8,ya,2,1,"td",6),F(),M(9,7),c(10,Da,2,1,"th",8)(11,Ia,2,1,"td",9),F(),M(12,10),c(13,va,2,0,"th",8)(14,Ta,4,0,"td",11),F(),c(15,Ea,1,0,"tr",12)(16,wa,1,0,"tr",13),p()()()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(3),m("dataSource",a.databaseItem.asGift),r(9),m("matHeaderRowDef",a.displayedHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",a.displayedColumns)}}var Lt=(()=>{let t=class t extends _{constructor(){super(...arguments),this.displayedHeaderColumns=["preference","npcs"],this.displayedColumns=["icon",...this.displayedHeaderColumns],this.favoritePreferences=[],this.lovePreferences=[],this.likePreferences=[],this.neutralPreferences=[],this.dislikePreferences=[],this.hatePreferences=[],this.dataSource=[],this.keys=["favoritePreferences","lovePreferences","likePreferences","neutralPreferences","dislikePreferences","hatePreferences"]}ngOnInit(){let a=this.databaseItem.item;if(!a)return;this.database.getGiftingPreferences().forEach(n=>{this.keys.forEach(D=>{n[D].findIndex(w=>w.type==="item"&&a.id===w.item.id)!==-1&&n.npc&&this[D].push(n.npc)})}),this.keys.forEach(n=>{let D=this[n];D.length&&this.dataSource.push({pref:Ft.find(T=>T.preferenceField===n),npcs:D})})}};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-gifts"]],hostVars:2,hostBindings:function(i,n){i&2&&N("database-gifts",n.displayedHeaderColumns)},features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["mat-table","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 !pt-3 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","preference"],["class","backdrop-blur-xl","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col !pl-0 whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","npcs"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","!pt-3","w-10","text-center","icon-col"],[1,"!text-gifting","mr-1","sm:mr-0","!h-6","!w-6",3,"uiIcon"],["mat-header-cell","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","!pl-0","whitespace-nowrap"],["mat-cell","",1,"text-col","whitespace-nowrap"],[1,"whitespace-nowrap"],[1,"inline-flex","shrink-0","items-center",3,"mr-4"],[1,"inline-flex","shrink-0","items-center"],[1,"h-12","mr-2","!flex","items-center","shrink-0",3,"itemName"],["mat-header-row",""],["mat-row",""]],template:function(i,n){i&1&&c(0,Ma,17,5,"app-expandable",1),i&2&&u(n.databaseItem.asGift&&n.databaseItem.asGift.length?0:-1)},dependencies:[k,te,g,ae,ie,me,oe,ne,se,re,pe,le,de,Ze,y],styles:[`.database-gifts .app-responsive-table .app-item-icon>img{aspect-ratio:unset;width:auto;max-height:3rem} `],encapsulation:2});let e=t;return e})();function Ra(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Required for offering "),p()(),d(5,"app-offerings-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.requiredAsOffering)}}function Ba(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Offering reward"),p()(),d(5,"app-offerings-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.isBundleRewardIn)}}var Ot=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-offerings"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],["showAltar","",3,"dataSource"]],template:function(i,n){i&1&&c(0,Ra,6,2,"app-expandable",1)(1,Ba,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.requiredAsOffering&&n.databaseItem.requiredAsOffering.length?0:-1),r(),u(n.databaseItem.isBundleRewardIn&&n.databaseItem.isBundleRewardIn.length?1:-1))},dependencies:[g,It,y],encapsulation:2});let e=t;return e})();function Ha(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Buy at"),p()(),d(5,"app-shop-item-data-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.buyAt)}}var Ut=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-shop-data"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,Ha,6,2,"app-expandable",1),i&2&&u(n.databaseItem.buyAt&&n.databaseItem.buyAt.length?0:-1)},dependencies:[g,_t,y],encapsulation:2});let e=t;return e})();function Na(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Chance as processing result "),p()(),d(5,"app-shop-item-process-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.chanceAsProcessResult)}}function $a(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Can be processed at "),p()(),d(5,"app-shop-item-process-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.asProcessInput)}}var qt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-shop-item-process"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,Na,6,2,"app-expandable",1)(1,$a,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.chanceAsProcessResult&&n.databaseItem.chanceAsProcessResult.length?0:-1),r(),u(n.databaseItem.asProcessInput&&n.databaseItem.asProcessInput.length?1:-1))},dependencies:[g,gt,y],encapsulation:2});let e=t;return e})();function Va(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Is result of upgrade "),p()(),d(5,"app-item-upgrade-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.isUpgradeResult)}}function Ga(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Is used as requirement in "),p()(),d(5,"app-item-upgrade-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.isUpgradeRequirement)}}var jt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-item-upgrade"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,Va,6,2,"app-expandable",1)(1,Ga,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.isUpgradeResult&&n.databaseItem.isUpgradeResult.length?0:-1),r(),u(n.databaseItem.isUpgradeRequirement&&n.databaseItem.isUpgradeRequirement.length?1:-1))},dependencies:[g,yt,y],encapsulation:2});let e=t;return e})();function Oa(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Can be dropped from enemies "),p()(),d(5,"app-bestiary-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.fromEnemies)}}var Qt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-bestiary"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,Oa,6,2,"app-expandable",1),i&2&&u(n.databaseItem.fromEnemies&&n.databaseItem.fromEnemies.length?0:-1)},dependencies:[g,xt,y],encapsulation:2});let e=t;return e})();function qa(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Buy at festival"),p()(),d(5,"app-festival-shop-item-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.buyAtFestivalShop)}}var Kt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-festival-shop-data"]],features:[x],decls:1,vars:1,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,qa,6,2,"app-expandable",1),i&2&&u(n.databaseItem.buyAtFestivalShop&&n.databaseItem.buyAtFestivalShop.length?0:-1)},dependencies:[g,Dt,y],encapsulation:2});let e=t;return e})();function Qa(e,t){if(e&1&&(s(0,"td",14),d(1,"app-item-icon",15),p()),e&2){let o=t.$implicit;r(),m("itemName",o.item==null?null:o.item.iconName)}}function Ka(e,t){e&1&&(s(0,"th",16),l(1," Output "),p()),e&2&&Z("colspan",2)}function za(e,t){if(e&1&&(s(0,"td",17),l(1),p()),e&2){let o=t.$implicit;r(),He("",o.item==null?null:o.item.displayName," (",o.amount,") ")}}function Wa(e,t){e&1&&(s(0,"th",18),l(1," Ingredients"),p())}function Ja(e,t){e&1&&d(0,"hr",22)}function Ya(e,t){if(e&1&&(d(0,"app-table-item-list",20),c(1,Ja,1,0,"hr",22)),e&2){let o=t.$implicit,a=t.$index,i=t.$count;m("itemList",o),r(),u(a!==i-1?1:-1)}}function Za(e,t){if(e&1&&(s(0,"span",21),l(1," Either of the following"),p(),R(2,Ya,2,2,null,null,$)),e&2){let o=f().$implicit;r(2),B(o.eitherOrIngredients)}}function Xa(e,t){if(e&1&&(s(0,"div",24),d(1,"app-item-icon",26),s(2,"span",27),l(3),p()()),e&2){let o=f().$implicit;r(),m("itemName",o.iconName),r(2),A(o.displayName)}}function en(e,t){if(e&1&&(s(0,"div",23),c(1,Xa,4,2,"div",24),s(2,"div",25),l(3),p()()),e&2){let o=t.$implicit,a=f().$implicit;r(),u(o?1:-1),r(2),j("as ",a.key," ")}}function tn(e,t){if(e&1&&(R(0,en,4,2,"div",23,$),P(2,"castToMinimalItemArray")),e&2){let o=t.$implicit;B(H(2,0,o.value))}}function an(e,t){if(e&1&&(s(0,"span",21),l(1," The following counting as"),p(),R(2,tn,3,2,null,null,$),P(4,"keyvalue")),e&2){let o=f().$implicit;r(2),B(H(4,0,o.additionsToGenerics))}}function nn(e,t){if(e&1&&(s(0,"td",19),d(1,"app-table-item-list",20),P(2,"cookingRecipeIngredients"),c(3,Za,4,0)(4,an,5,2),p()),e&2){let o=t.$implicit;r(),m("itemList",H(2,3,o)),r(2),u(o.eitherOrIngredients.length?3:-1),r(),u(o.additionsToGenerics?4:-1)}}function on(e,t){e&1&&(s(0,"th",28),l(1," Sell price"),p())}function rn(e,t){if(e&1&&(s(0,"td",29),d(1,"app-money",30),p()),e&2){let o=t.$implicit;r(),m("amount",o.item.sellPrice)}}function pn(e,t){e&1&&d(0,"tr",31)}function mn(e,t){e&1&&d(0,"tr",32)}function sn(e,t){if(e&1&&(s(0,"table",0),M(1,1),c(2,Qa,2,1,"td",2),F(),M(3,3),c(4,Ka,2,1,"th",4)(5,za,2,2,"td",5),F(),M(6,6),c(7,Wa,2,0,"th",7)(8,nn,5,5,"td",8),F(),M(9,9),c(10,on,2,0,"th",10)(11,rn,2,1,"td",11),F(),c(12,pn,1,0,"tr",12)(13,mn,1,0,"tr",13),p()),e&2){let o=f();m("dataSource",o.matDataSource),r(12),m("matHeaderRowDef",o.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",o.displayedColumns)}}var fe=(()=>{let t=class t extends ut{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","sellPrice"],this.sortingDataAccessor=(a,i)=>{let n=this.sortHelper(a.item,i);return n!==null?n:0}}};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-mixing-table"]],standalone:!0,features:[x,ke],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],[1,"text-black","mt-1"],[1,"my-5"],[1,"flex","justify-between","mb-1"],[1,"flex","gap-x-3","items-center"],[1,"ml-2","flex","items-center","whitespace-nowrap"],[1,"!w-7",3,"itemName"],[1,"whitespace-nowrap"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(i,n){i&1&&(s(0,"app-responsive-table"),c(1,sn,14,4,"table",0),p()),i&2&&(r(),u(n.matDataSource?1:-1))},dependencies:[Ve,pe,ne,oe,re,le,me,de,se,dt,ct,ae,ce,k,tt,te,mt,st,lt,ie],encapsulation:2});let e=t;return e})();function dn(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Usage in mixing "),p()(),d(5,"app-mixing-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.usedToMix)}}function cn(e,t){if(e&1&&(s(0,"app-expandable",1,0)(2,"h3",2)(3,"app-database-header-button",3),l(4,"Mixing recipe"),p()(),d(5,"app-mixing-table",4),p()),e&2){let o=C(1),a=f();r(3),m("templateRef",o),r(2),m("dataSource",a.databaseItem.mixedFrom)}}var zt=(()=>{let t=class t extends _{};t.\u0275fac=(()=>{let a;return function(n){return(a||(a=h(t)))(n||t)}})(),t.\u0275cmp=b({type:t,selectors:[["app-database-mixing"]],features:[x],decls:2,vars:2,consts:[["expandableComponent",""],["open",""],["expandableHeader","",1,"database-header"],[3,"templateRef"],[3,"dataSource"]],template:function(i,n){i&1&&c(0,dn,6,2,"app-expandable",1)(1,cn,6,2,"app-expandable",1),i&2&&(u(n.databaseItem.usedToMix&&n.databaseItem.usedToMix.length?0:-1),r(),u(n.databaseItem.mixedFrom&&n.databaseItem.mixedFrom.length?1:-1))},dependencies:[g,fe,y],encapsulation:2});let e=t;return e})();function Cn(e,t){if(e&1&&(s(0,"app-card")(1,"header",0),d(2,"app-item-icon",1),s(3,"div",2)(4,"h2",3),l(5),p(),s(6,"span"),l(7),p()(),s(8,"div",4),d(9,"app-to-do-toggle",5),p(),d(10,"div",6)(11,"app-quality-grid",7),p(),s(12,"p",8),l(13),p(),s(14,"div",9),l(15,"There's currently no data for this item. :("),p(),d(16,"app-database-shop-item-process",10)(17,"app-database-shop-data",10)(18,"app-database-offerings",10)(19,"app-database-crops",10)(20,"app-database-fishing",10)(21,"app-database-insects",10)(22,"app-database-sea-critters",10)(23,"app-database-artisan",10)(24,"app-database-cooking",10)(25,"app-database-mixing",10)(26,"app-database-crafting",10)(27,"app-database-festival-shop-data",10)(28,"app-database-gifts",10)(29,"app-database-item-upgrade",10)(30,"app-database-bestiary",10),p()),e&2){let o=t;r(2),m("itemName",o.item.iconName),r(3),A(o.item.displayName),r(2),A(o.item.id),r(2),m("item",o.item),r(2),m("showOnlyBase",!o.item.qualities.bronze)("item",o.item),r(2),A(o.item.description),r(3),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o),r(),m("databaseItem",o)}}function hn(e,t){e&1&&(s(0,"app-card"),d(1,"mat-spinner",11),p())}function xn(e,t){if(e&1&&(c(0,Cn,31,22,"app-card"),P(1,"async"),c(2,hn,2,0,"app-card")),e&2){let o,a=f();u((o=H(1,1,a.databaseItem$))?0:2,o)}}var Wt=(()=>{var t;let o=class o{constructor(){Ie(this,t);this.item=we.required(),ve(this,t,E(G)),this._classes="col-span-full database-details"}ngOnInit(){this.databaseItem$=De(this,t).fetchDatabaseItem$(this.item().id)}};t=new WeakMap,o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=b({type:o,selectors:[["app-database-details"]],hostVars:2,hostBindings:function(n,D){n&2&&Me(D._classes)},inputs:{item:[1,"item"]},decls:1,vars:1,consts:[[1,"flex","items-center","flex-wrap","mb-5"],[1,"mr-3","w-14",3,"itemName"],[1,"flex","flex-col","gap-0.5"],[1,"!my-0","font-semibold","text-xl","text-black"],[1,"card-actions","ml-4"],["context","database",3,"item"],[1,"h-0","w-full","md:hidden"],["includePrices","",1,"md:ml-auto","mt-4","md:mt-0","quality-grid","inline-block","w-fit",3,"showOnlyBase","item"],[1,"text-lg"],[1,"empty-details","text-black","my-5","text-lg"],[3,"databaseItem"],[1,"mx-auto"]],template:function(n,D){n&1&&c(0,xn,3,3),n&2&&u(D.databaseItem$?0:-1)},dependencies:[k,ee,at,Xe,nt,Ht,kt,Nt,$t,At,Vt,Gt,Lt,Ot,Ut,qt,jt,Qt,Kt,zt,X],styles:[`.database-details .empty-details{display:none}.database-details:not(:has(.database-header)) .empty-details{display:block}.database-details .expandable-body{transition:none}.quality-grid .app-item-icon>img{height:3.5rem}.database-header{color:#000;font-weight:600;font-size:1.25em;margin-top:1.2em;line-height:1.6} `],encapsulation:2});let e=o;return e})();function _n(e,t){if(e&1){let o=he();s(0,"app-card",1)(1,"div",5)(2,"h2"),l(3,"Important note"),p(),s(4,"p"),l(5,"The item list loads a lot of stuff, this may take a while. The list below shows everything, that got not filtered beforehand. Some of those items will never be obtainable as they only provide a technical purpose. The information shown per item are as complete as the rest of this website. When new features get added, the details in here will expand as well."),p(),s(6,"button",6),q("click",function(){J(o);let i=f();return Y(i.hideImportantNote())}),l(7,"Got it!"),p()()()}}function gn(e,t){if(e&1){let o=he();s(0,"app-item-icon",9),q("mouseenter",function(){let i=J(o).$implicit,n=f(2);return Y(n.prefetchItem(i))})("click",function(){let i=J(o),n=i.$implicit,D=i.$index,T=f(2);return Y(T.showDetails(n,D))}),p()}if(e&2){let o=t.$implicit,a=f(2);N("selected-icon",(a.selectedItem==null?null:a.selectedItem.id)===o.id),m("itemName",o.iconName)}}function yn(e,t){e&1&&Re(0)}function Dn(e,t){if(e&1&&(R(0,gn,1,3,"app-item-icon",7,Fe().trackById,!0),c(2,yn,1,0,"ng-container",8)),e&2){let o=f();B(o.filteredItems),r(2),m("ngIf",o.initialItemLoad())}}var Jt=(()=>{let t=class t{constructor(){this.searchTermControl=new Ke("",{nonNullable:!0}),this.shouldHideImportantNote=!1,this.filteredItems=[],this._route=E(Je),this._router=E(Ye),this._database=E(G),this._appRef=E(Ne),this._injector=E(Ee),this._title=E(Le),this._localStorageHideNoteKey="databaseHideImportantNote",this._didInitialLoad=!1,this.shouldHideImportantNote=qe(localStorage.getItem(this._localStorageHideNoteKey)),this.items=this._database.getItems().filter(i=>Ue(i.id)===Oe.BASE);let a=be(i=>{let T=/tag:(?[a-zA-Z.]+)/gm.exec(i)?.groups?.tag.replace("tag:","").toLocaleLowerCase()??"",w=i.replace("tag:"+T,"").toLocaleLowerCase().trim(),Q=this.items.filter(O=>{let U=!0;return T&&(U=!!O.tags?.some(ue=>ue.toLocaleLowerCase().includes(T))),U?O.displayName.toLocaleLowerCase().includes(w)||w.startsWith("item_")&&O.id.startsWith(w):!1});return this.filteredItems=Q,Q});this.filteredItems$=Se(this._route.queryParams.pipe(be(i=>{let n=i.q??"";return this.searchTermControl.setValue(n,{emitEvent:!1}),n}),a,K(1)),this.searchTermControl.valueChanges.pipe(Te(300),Ce(i=>{this.updateQueryParam(i),document.getElementById("database-details")?.remove()}),a))}showDetails(a,i,n=!1){this.updateRouteParam(a.id),this.selectedItem=void 0,document.getElementById("database-details")?.remove();let D=document.getElementById("grid");if(!D)return;let w=window.getComputedStyle(D).getPropertyValue("grid-template-columns").split(" ").length,Q=Math.floor(i/w),O=Math.min(this.filteredItems.length,(Q+1)*w),U=document.querySelector(`#grid app-item-icon:nth-of-type(${O})`);if(!U)return;let ue=this.createComponent(a);this.insertAfter(ue,U),this.selectedItem=a,n&&setTimeout(()=>document.getElementById("database-details")?.scrollIntoView(!0),0)}insertAfter(a,i){i.parentNode?.insertBefore(a.location.nativeElement,i.nextSibling),this._appRef.attachView(a.hostView)}createComponent(a){let i=$e(Wt,{environmentInjector:this._injector});i.setInput("item",a);let n=i.location.nativeElement;return n.id="database-details",i}hideImportantNote(){this.shouldHideImportantNote=!0,localStorage.setItem(this._localStorageHideNoteKey,"true")}updateQueryParam(a){this._router.navigate([],{relativeTo:this._route,queryParams:{q:a},queryParamsHandling:"merge",replaceUrl:!0})}updateRouteParam(a){this._router.navigate(["..",a],{relativeTo:this._route,replaceUrl:!0,queryParamsHandling:"preserve"}).then(()=>!!this.selectedItem&&this.updateTitle(this.selectedItem.displayName))}initialItemLoad(){this._didInitialLoad||this._route.params.pipe(Ce(a=>{let i=a.itemId;if(this._didInitialLoad=!0,!i)return;let n=this.filteredItems.findIndex(D=>D.id===i);if(n>-1)this.showDetails(this.filteredItems[n],n,!0);else if(this.filteredItems.length===0){let D=this.items.findIndex(T=>T.id===i);if(D>-1){let T=this.items[D];this._setGridContent(T)}}}),K(1)).subscribe()}trackById(a,i){return i.id}prefetchItem(a){this._database.fetchDatabaseItem$(a.id).pipe(K(1)).subscribe()}updateTitle(a){let i=this._title.getTitle();i&&this._title.setTitle(`${a} - ${i}`)}_setGridContent(a){let i=this.createComponent(a);document.getElementById("grid")?.appendChild(i.location.nativeElement),this._appRef.attachView(i.hostView),this.selectedItem=a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=b({type:t,selectors:[["app-database"]],decls:9,vars:5,consts:[[1,"container","mx-auto","pb-6","database-grid","px-2"],[1,"my-3"],[1,"semi-transparent-form-field","my-3"],["matInput","",3,"formControl"],["id","grid",1,"icon-grid"],[1,"prose","lg:prose-xl"],[1,"btn","btn-secondary",3,"click"],[1,"icon-grid-item",3,"selected-icon","itemName"],[4,"ngIf"],[1,"icon-grid-item",3,"mouseenter","click","itemName"]],template:function(i,n){i&1&&(s(0,"div",0),c(1,_n,8,0,"app-card",1),s(2,"mat-form-field",2)(3,"mat-label"),l(4,"Search term"),p(),d(5,"input",3),p(),s(6,"div",4),c(7,Dn,3,1,"ng-container"),P(8,"async"),p()()),i&2&&(r(),u(n.shouldHideImportantNote?-1:1),r(4),m("formControl",n.searchTermControl),r(2),u(H(8,3,n.filteredItems$)?7:-1))},dependencies:[Ae,k,ee,ot,it,Rt,je,Qe,ze,X],encapsulation:2});let e=t;return e})();var In=[{path:"",component:Jt,title:"Database"}],Yt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=W({type:t}),t.\u0275inj=z({imports:[xe.forChild(In),xe]});let e=t;return e})();var Zo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=W({type:t}),t.\u0275inj=z({imports:[Ge,Yt,ce,rt,Bt,We,et,Mt,Et,wt,ht,ft,pt,fe]});let e=t;return e})();export{Zo as DatabaseModule}; diff --git a/chunk-AWBWSX6N.js b/chunk-IUAKQFVS.js similarity index 90% rename from chunk-AWBWSX6N.js rename to chunk-IUAKQFVS.js index ad53a55b22..2958f179bd 100644 --- a/chunk-AWBWSX6N.js +++ b/chunk-IUAKQFVS.js @@ -1 +1 @@ -import{s as j,t as z}from"./chunk-QVSQOUAD.js";import{Aa as u,Ca as g,Fa as p,Ga as _,Ha as x,Ia as C,Ja as a,Ka as l,La as O,N as E,Ne as M,P as G,Pa as h,Pd as K,Qb as P,Ra as w,Sa as m,V as f,W as d,Wa as S,ca as T,db as s,ea as k,eb as A,fb as I,ib as B,jb as N,ka as r,kb as V,kf as W,mb as D,mf as L,ob as R,oc as $,qb as v,ra as q,rb as y,wa as F}from"./chunk-4KZEYPV3.js";var H=t=>[t];function J(t,n){if(t&1&&(a(0,"div",1),s(1),l()),t&2){let e=m();r(),I(" Reward: ",e.offeringAltar().offeringGroupRewardText," ")}}function Q(t,n){if(t&1){let e=h();a(0,"div",5),w("click",function(){let c=f(e).$implicit,o=m(2);return d(o.activeOffering=c)}),O(1,"img",6),a(2,"div",7),s(3),l()()}if(t&2){let e=n.$implicit,i=m(2);g("bg-merino-300",(i.activeOffering==null?null:i.activeOffering.title)===e.title),r(),S("alt","",e.title," offering icon"),S("ngSrc","",i.bundleAssetPath()+e.imageName,".webp"),r(2),A(e.title)}}function U(t,n){if(t&1&&(a(0,"div",2),x(1,Q,4,7,"div",4,_),l()),t&2){let e=m();r(),C(e.offeringAltar().offerings)}}function X(t,n){if(t&1&&O(0,"app-offerings-table",3),t&2){let e=m();u("dataSource",R(1,H,e.offeringAltar()))}}function Y(t,n){if(t&1){let e=h();a(0,"app-item-icon",12),v(1,"entityKey"),w("click",function(){let c=f(e).$implicit,o=m(2);return d(o.showDetails(c.item))}),l()}if(t&2){let e=n.$implicit,i=m(2);g("selected-icon",i.selectedEntity()&&y(1,4,i.selectedEntity())===e.item.id),u("amount",e.amount)("itemName",e.item.iconName)}}function Z(t,n){if(t&1){let e=h();a(0,"app-item-icon",13),v(1,"entityKey"),v(2,"entityKey"),w("click",function(){let c=f(e).$implicit,o=m(2);return d(o.showDetails(c))}),l()}if(t&2){let e=n.$implicit,i=m(2);g("selected-icon",i.selectedEntity()&&y(1,5,i.selectedEntity())===y(2,7,e.item)),u("amount",e.amount)("itemName",e.item.iconName)("quality",e.quality)}}function ee(t,n){if(t&1&&(a(0,"div",8),s(1," Rewards: "),l(),a(2,"div",9),x(3,Y,2,6,"app-item-icon",10,_),l(),a(5,"div",8),s(6),l(),a(7,"div",9),x(8,Z,3,9,"app-item-icon",11,_),l()),t&2){let e=m();r(3),C(e.activeOffering.rewards.items),r(3),I(" ",e.activeOffering.numOfItemRequired===-1?"All":e.activeOffering.numOfItemRequired," of the following items are required: "),r(2),C(e.activeOffering.requiredItems)}}var ue=(()=>{let n=class n{constructor(){this.offeringAltar=T.required(),this.selectedEntity=T.required(),this.selected=new k,this.showTable=!1,this.useBeta=E($).getSettings().useBeta,this.bundleAssetPath=q(`assets/${this.useBeta?"beta":"live"}/items/icons/`)}showDetails(i){i?this.entryForToDo="item"in i?{itemEntry:i.item,amount:i.amount,quality:i.quality}:{itemEntry:i}:this.entryForToDo=void 0,i&&"amount"in i?this.selected.emit(i.item):this.selected.emit(i)}};n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=G({type:n,selectors:[["app-offering-group"]],inputs:{offeringAltar:[1,"offeringAltar"],selectedEntity:[1,"selectedEntity"]},outputs:{selected:"selected"},standalone:!0,features:[D],decls:5,vars:5,consts:[[3,"showTableChange","showTable"],[1,"bg-merino","rounded-lg","mb-4","text-lg","font-semibold","p-4"],[1,"grid","grid-cols-2","md:grid-cols-3","gap-4"],[3,"dataSource"],[1,"rounded-lg","bg-merino","flex","flex-col","items-center","gap-4","px-4","py-8","hover:bg-merino-200",3,"bg-merino-300"],[1,"rounded-lg","bg-merino","flex","flex-col","items-center","gap-4","px-4","py-8","hover:bg-merino-200",3,"click"],["height","128","width","128",3,"alt","ngSrc"],[1,"text-lg","font-semibold"],[1,"bg-merino","rounded-lg","mb-4","text-lg","font-semibold","p-4","my-8"],[1,"icon-grid","mt-8"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"amount","selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","amount","itemName"],[1,"icon-grid-item",3,"click","amount","itemName","quality"]],template:function(c,o){c&1&&(a(0,"app-data-filter",0),V("showTableChange",function(b){return N(o.showTable,b)||(o.showTable=b),b}),l(),F(1,J,2,1,"div",1)(2,U,3,0,"div",2)(3,X,1,3,"app-offerings-table",3)(4,ee,10,1)),c&2&&(B("showTable",o.showTable),r(),p(o.offeringAltar().offeringGroupRewardText?1:-1),r(),p(o.showTable?-1:2),r(),p(o.showTable?3:-1),r(),p(o.activeOffering&&!o.showTable?4:-1))},dependencies:[z,j,P,L,K,M,W],encapsulation:2});let t=n;return t})();export{ue as a}; +import{s as j,t as z}from"./chunk-BPN5VRCO.js";import{Ba as u,Da as g,Ga as p,Ha as _,Ia as x,Ja as C,Ka as a,La as l,Ma as O,N as E,P as G,Qa as h,Sa as w,Sb as P,Ta as m,Te as M,Vd as K,W as f,X as d,Xa as S,da as T,eb as s,fa as k,fb as A,gb as I,jb as B,kb as N,la as r,lb as V,nb as D,pb as R,qf as W,rb as v,sa as q,sb as y,sc as $,sf as L,xa as F}from"./chunk-PYTDIKHQ.js";var H=t=>[t];function J(t,n){if(t&1&&(a(0,"div",1),s(1),l()),t&2){let e=m();r(),I(" Reward: ",e.offeringAltar().offeringGroupRewardText," ")}}function Q(t,n){if(t&1){let e=h();a(0,"div",5),w("click",function(){let c=f(e).$implicit,o=m(2);return d(o.activeOffering=c)}),O(1,"img",6),a(2,"div",7),s(3),l()()}if(t&2){let e=n.$implicit,i=m(2);g("bg-merino-300",(i.activeOffering==null?null:i.activeOffering.title)===e.title),r(),S("alt","",e.title," offering icon"),S("ngSrc","",i.bundleAssetPath()+e.imageName,".webp"),r(2),A(e.title)}}function U(t,n){if(t&1&&(a(0,"div",2),x(1,Q,4,7,"div",4,_),l()),t&2){let e=m();r(),C(e.offeringAltar().offerings)}}function X(t,n){if(t&1&&O(0,"app-offerings-table",3),t&2){let e=m();u("dataSource",R(1,H,e.offeringAltar()))}}function Y(t,n){if(t&1){let e=h();a(0,"app-item-icon",12),v(1,"entityKey"),w("click",function(){let c=f(e).$implicit,o=m(2);return d(o.showDetails(c.item))}),l()}if(t&2){let e=n.$implicit,i=m(2);g("selected-icon",i.selectedEntity()&&y(1,4,i.selectedEntity())===e.item.id),u("amount",e.amount)("itemName",e.item.iconName)}}function Z(t,n){if(t&1){let e=h();a(0,"app-item-icon",13),v(1,"entityKey"),v(2,"entityKey"),w("click",function(){let c=f(e).$implicit,o=m(2);return d(o.showDetails(c))}),l()}if(t&2){let e=n.$implicit,i=m(2);g("selected-icon",i.selectedEntity()&&y(1,5,i.selectedEntity())===y(2,7,e.item)),u("amount",e.amount)("itemName",e.item.iconName)("quality",e.quality)}}function ee(t,n){if(t&1&&(a(0,"div",8),s(1," Rewards: "),l(),a(2,"div",9),x(3,Y,2,6,"app-item-icon",10,_),l(),a(5,"div",8),s(6),l(),a(7,"div",9),x(8,Z,3,9,"app-item-icon",11,_),l()),t&2){let e=m();r(3),C(e.activeOffering.rewards.items),r(3),I(" ",e.activeOffering.numOfItemRequired===-1?"All":e.activeOffering.numOfItemRequired," of the following items are required: "),r(2),C(e.activeOffering.requiredItems)}}var ue=(()=>{let n=class n{constructor(){this.offeringAltar=T.required(),this.selectedEntity=T.required(),this.selected=new k,this.showTable=!1,this.useBeta=E($).getSettings().useBeta,this.bundleAssetPath=q(`assets/${this.useBeta?"beta":"live"}/items/icons/`)}showDetails(i){i?this.entryForToDo="item"in i?{itemEntry:i.item,amount:i.amount,quality:i.quality}:{itemEntry:i}:this.entryForToDo=void 0,i&&"amount"in i?this.selected.emit(i.item):this.selected.emit(i)}};n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=G({type:n,selectors:[["app-offering-group"]],inputs:{offeringAltar:[1,"offeringAltar"],selectedEntity:[1,"selectedEntity"]},outputs:{selected:"selected"},standalone:!0,features:[D],decls:5,vars:5,consts:[[3,"showTableChange","showTable"],[1,"bg-merino","rounded-lg","mb-4","text-lg","font-semibold","p-4"],[1,"grid","grid-cols-2","md:grid-cols-3","gap-4"],[3,"dataSource"],[1,"rounded-lg","bg-merino","flex","flex-col","items-center","gap-4","px-4","py-8","hover:bg-merino-200",3,"bg-merino-300"],[1,"rounded-lg","bg-merino","flex","flex-col","items-center","gap-4","px-4","py-8","hover:bg-merino-200",3,"click"],["height","128","width","128",3,"alt","ngSrc"],[1,"text-lg","font-semibold"],[1,"bg-merino","rounded-lg","mb-4","text-lg","font-semibold","p-4","my-8"],[1,"icon-grid","mt-8"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"amount","selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","amount","itemName"],[1,"icon-grid-item",3,"click","amount","itemName","quality"]],template:function(c,o){c&1&&(a(0,"app-data-filter",0),V("showTableChange",function(b){return N(o.showTable,b)||(o.showTable=b),b}),l(),F(1,J,2,1,"div",1)(2,U,3,0,"div",2)(3,X,1,3,"app-offerings-table",3)(4,ee,10,1)),c&2&&(B("showTable",o.showTable),r(),p(o.offeringAltar().offeringGroupRewardText?1:-1),r(),p(o.showTable?-1:2),r(),p(o.showTable?3:-1),r(),p(o.activeOffering&&!o.showTable?4:-1))},dependencies:[z,j,P,L,K,M,W],encapsulation:2});let t=n;return t})();export{ue as a}; diff --git a/chunk-YTOGTTLZ.js b/chunk-JQAG4JSF.js similarity index 83% rename from chunk-YTOGTTLZ.js rename to chunk-JQAG4JSF.js index e8cc85a740..08b2f00932 100644 --- a/chunk-YTOGTTLZ.js +++ b/chunk-JQAG4JSF.js @@ -1 +1 @@ -import"./chunk-POXAUVM7.js";import{Ja as o,Ka as n,Kd as p,Ob as l,P as r,Sd as s,db as t,mb as m,mf as d}from"./chunk-4KZEYPV3.js";var b=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=r({type:e,selectors:[["app-only-in-beta"]],standalone:!0,features:[m],decls:10,vars:0,consts:[[1,"container","block","mx-auto","my-10"],[1,"prose","lg:prose-xl"],["routerLink","/my/settings"]],template:function(a,c){a&1&&(o(0,"div",0)(1,"app-card")(2,"div",1)(3,"h1"),t(4,"Beta only feature!"),n(),o(5,"p"),t(6," This feature is only available in beta! If you would like to check it out, go to "),o(7,"a",2),t(8,"settings"),n(),t(9," and turn on beta data. "),n()()()())},dependencies:[l,d,s,p],encapsulation:2});let i=e;return i})();export{b as OnlyInBetaComponent}; +import"./chunk-BJE36J3T.js";import{Ka as o,La as n,Od as p,P as r,Qb as l,Yd as s,eb as t,nb as m,sf as d}from"./chunk-PYTDIKHQ.js";var b=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=r({type:e,selectors:[["app-only-in-beta"]],standalone:!0,features:[m],decls:10,vars:0,consts:[[1,"container","block","mx-auto","my-10"],[1,"prose","lg:prose-xl"],["routerLink","/my/settings"]],template:function(a,c){a&1&&(o(0,"div",0)(1,"app-card")(2,"div",1)(3,"h1"),t(4,"Beta only feature!"),n(),o(5,"p"),t(6," This feature is only available in beta! If you would like to check it out, go to "),o(7,"a",2),t(8,"settings"),n(),t(9," and turn on beta data. "),n()()()())},dependencies:[l,d,s,p],encapsulation:2});let i=e;return i})();export{b as OnlyInBetaComponent}; diff --git a/chunk-KA3QWML2.js b/chunk-KA3QWML2.js new file mode 100644 index 0000000000..b4bbd8b992 --- /dev/null +++ b/chunk-KA3QWML2.js @@ -0,0 +1 @@ +import{t as a}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import"./chunk-PYTDIKHQ.js";export{a as LocationsModule}; diff --git a/chunk-JJGLUQYM.js b/chunk-KIVQXZUD.js similarity index 56% rename from chunk-JJGLUQYM.js rename to chunk-KIVQXZUD.js index e555244738..93f1aeee11 100644 --- a/chunk-JJGLUQYM.js +++ b/chunk-KIVQXZUD.js @@ -1 +1 @@ -import{a as o}from"./chunk-GPI7MHXO.js";import{J as e}from"./chunk-4KZEYPV3.js";var s=(()=>{let t=class t extends o{constructor(){super("heart-events")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{s as a}; +import{a as o}from"./chunk-QLCYA646.js";import{J as e}from"./chunk-PYTDIKHQ.js";var s=(()=>{let t=class t extends o{constructor(){super("heart-events")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{s as a}; diff --git a/chunk-XJTDYWVS.js b/chunk-LMVNWVQ6.js similarity index 92% rename from chunk-XJTDYWVS.js rename to chunk-LMVNWVQ6.js index fa1999a195..90731d6257 100644 --- a/chunk-XJTDYWVS.js +++ b/chunk-LMVNWVQ6.js @@ -1 +1 @@ -import{f as A,g as Y,h as j,i as z,j as G,k as J,l as K,m as Q,t as R}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as m,Ca as g,Fa as r,Ga as w,Ha as y,Ia as I,Ib as B,Ja as d,Ka as s,La as _,Ma as U,Na as V,Nd as H,Ne as O,Ob as F,P as v,Pa as T,Pd as W,Ra as b,Sa as a,Sd as L,V as C,W as h,db as u,eb as N,fb as k,ib as S,jb as D,ka as l,kb as P,mb as $,me as M,mf as q,qb as x,rb as f,ta as E,wa as c}from"./chunk-4KZEYPV3.js";function X(e,i){if(e&1&&_(0,"app-shop-item-process-data-details",1),e&2){let t=a();m("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&_(0,"app-shop-item-data-details",2),e&2){let t=a();m("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&_(0,"app-item-upgrade-details",3),e&2){let t=a();m("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&_(0,"app-opening-hours",6),e&2&&m("openingHours",i)}function ie(e,i){if(e&1&&(c(0,te,1,1,"app-opening-hours",6),x(1,"async")),e&2){let t,n=a();r((t=f(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=T();d(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),m("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(d(0,"div",9),y(1,ne,1,3,"app-item-icon",11,w),s()),e&2){let t=a();l(),I(t)}}function ae(e,i){if(e&1&&_(0,"app-shop-item-data-table",10),e&2){let t=a();m("dataSource",t)}}function le(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showTable,p)||(o.showTable=p),h(p)}),s(),c(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);S("showTable",t.showTable),l(),r(t.showTable?-1:1),l(),r(t.showTable?2:-1)}}function pe(e,i){if(e&1&&(d(0,"h2",7),u(1,"Stock list"),s(),c(2,le,3,3),x(3,"async")),e&2){let t,n=a();l(2),r((t=f(3,1,n.shopItemData$))?2:-1,t)}}function re(e,i){if(e&1){let t=T();d(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showProcessDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),m("itemName",t.input.iconName)}}function se(e,i){if(e&1&&(d(0,"div",9),y(1,re,1,3,"app-item-icon",11,w),s()),e&2){let t=a();l(),I(t)}}function de(e,i){if(e&1&&_(0,"app-shop-item-process-table",10),e&2){let t=a();m("dataSource",t)}}function me(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showProcessingTable,p)||(o.showProcessingTable=p),h(p)}),s(),c(1,se,3,0,"div",9)(2,de,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);S("showTable",t.showProcessingTable),l(),r(t.showProcessingTable?-1:1),l(),r(t.showProcessingTable?2:-1)}}function ce(e,i){if(e&1&&(d(0,"h2",7),u(1,"Item processing"),s(),c(2,me,3,3),x(3,"async")),e&2){let t,n=a();l(2),r((t=f(3,1,n.itemProcessing$))?2:-1,t)}}function _e(e,i){if(e&1){let t=T();d(0,"app-item-icon",14),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showItemUpgradeDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),m("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(d(0,"div",9),y(1,_e,1,4,"app-item-icon",13,w),s()),e&2){let t=a();l(),I(t)}}function he(e,i){if(e&1&&_(0,"app-item-upgrade-table",10),e&2){let t=a();m("dataSource",t)}}function Te(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showPItemUpgradeTable,p)||(o.showPItemUpgradeTable=p),h(p)}),s(),c(1,Ce,3,0,"div",9)(2,he,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);S("showTable",t.showPItemUpgradeTable),l(),r(t.showPItemUpgradeTable?-1:1),l(),r(t.showPItemUpgradeTable?2:-1)}}function ue(e,i){if(e&1&&(d(0,"h2",7),u(1),s(),c(2,Te,3,3),x(3,"async")),e&2){let t,n=a();l(),N(n.upgradeHeaderText),l(),r((t=f(3,2,n.itemUpgrade$))?2:-1,t)}}var Be=(()=>{let i=class i extends A{constructor(){super(),this.shopName="tidal-threads",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=v({type:i,selectors:[["app-tidal-threads"]],standalone:!0,features:[E,$],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(p,o){p&1&&(d(0,"app-list-detail-container"),U(1,0),c(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),V(),d(5,"app-card")(6,"h1",4),_(7,"app-ui-icon",5),u(8),s(),c(9,ie,2,3),s(),c(10,pe,4,3)(11,ce,4,3)(12,ue,4,4),s()),p&2&&(l(2),r(o.selectedProcessEntity?2:-1),l(),r(o.selectedEntity?3:-1),l(),r(o.selectedItemUpgrade?4:-1),l(3),m("uiIcon",o.SHOP_ICONS[o.shopName]),l(),k(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),l(),r(o.openingHours$?9:-1),l(),r(o.shopItemData$?10:-1),l(),r(o.itemProcessing$?11:-1),l(),r(o.itemUpgrade$?12:-1))},dependencies:[R,j,z,Q,J,Y,K,G,q,W,L,M,O,B,F,H],encapsulation:2});let e=i;return e})();export{Be as TidalThreadsComponent}; +import{f as A,g as Y,h as j,i as z,j as G,k as J,l as K,m as Q,t as R}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as m,Da as g,Ga as r,Ha as w,Ia as y,Ja as I,Ka as d,Kb as B,La as s,Ma as _,Na as U,Oa as V,P as v,Qa as T,Qb as F,Sa as b,Ta as a,Td as H,Te as O,Vd as W,W as C,X as h,Yd as L,eb as u,fb as N,gb as k,jb as S,kb as D,la as l,lb as P,nb as $,rb as x,sb as f,se as M,sf as q,ua as E,xa as c}from"./chunk-PYTDIKHQ.js";function X(e,i){if(e&1&&_(0,"app-shop-item-process-data-details",1),e&2){let t=a();m("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&_(0,"app-shop-item-data-details",2),e&2){let t=a();m("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&_(0,"app-item-upgrade-details",3),e&2){let t=a();m("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&_(0,"app-opening-hours",6),e&2&&m("openingHours",i)}function ie(e,i){if(e&1&&(c(0,te,1,1,"app-opening-hours",6),x(1,"async")),e&2){let t,n=a();r((t=f(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=T();d(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),m("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(d(0,"div",9),y(1,ne,1,3,"app-item-icon",11,w),s()),e&2){let t=a();l(),I(t)}}function ae(e,i){if(e&1&&_(0,"app-shop-item-data-table",10),e&2){let t=a();m("dataSource",t)}}function le(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showTable,p)||(o.showTable=p),h(p)}),s(),c(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);S("showTable",t.showTable),l(),r(t.showTable?-1:1),l(),r(t.showTable?2:-1)}}function pe(e,i){if(e&1&&(d(0,"h2",7),u(1,"Stock list"),s(),c(2,le,3,3),x(3,"async")),e&2){let t,n=a();l(2),r((t=f(3,1,n.shopItemData$))?2:-1,t)}}function re(e,i){if(e&1){let t=T();d(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showProcessDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),m("itemName",t.input.iconName)}}function se(e,i){if(e&1&&(d(0,"div",9),y(1,re,1,3,"app-item-icon",11,w),s()),e&2){let t=a();l(),I(t)}}function de(e,i){if(e&1&&_(0,"app-shop-item-process-table",10),e&2){let t=a();m("dataSource",t)}}function me(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showProcessingTable,p)||(o.showProcessingTable=p),h(p)}),s(),c(1,se,3,0,"div",9)(2,de,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);S("showTable",t.showProcessingTable),l(),r(t.showProcessingTable?-1:1),l(),r(t.showProcessingTable?2:-1)}}function ce(e,i){if(e&1&&(d(0,"h2",7),u(1,"Item processing"),s(),c(2,me,3,3),x(3,"async")),e&2){let t,n=a();l(2),r((t=f(3,1,n.itemProcessing$))?2:-1,t)}}function _e(e,i){if(e&1){let t=T();d(0,"app-item-icon",14),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showItemUpgradeDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),m("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(d(0,"div",9),y(1,_e,1,4,"app-item-icon",13,w),s()),e&2){let t=a();l(),I(t)}}function he(e,i){if(e&1&&_(0,"app-item-upgrade-table",10),e&2){let t=a();m("dataSource",t)}}function Te(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showPItemUpgradeTable,p)||(o.showPItemUpgradeTable=p),h(p)}),s(),c(1,Ce,3,0,"div",9)(2,he,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);S("showTable",t.showPItemUpgradeTable),l(),r(t.showPItemUpgradeTable?-1:1),l(),r(t.showPItemUpgradeTable?2:-1)}}function ue(e,i){if(e&1&&(d(0,"h2",7),u(1),s(),c(2,Te,3,3),x(3,"async")),e&2){let t,n=a();l(),N(n.upgradeHeaderText),l(),r((t=f(3,2,n.itemUpgrade$))?2:-1,t)}}var Be=(()=>{let i=class i extends A{constructor(){super(),this.shopName="tidal-threads",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=v({type:i,selectors:[["app-tidal-threads"]],standalone:!0,features:[E,$],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(p,o){p&1&&(d(0,"app-list-detail-container"),U(1,0),c(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),V(),d(5,"app-card")(6,"h1",4),_(7,"app-ui-icon",5),u(8),s(),c(9,ie,2,3),s(),c(10,pe,4,3)(11,ce,4,3)(12,ue,4,4),s()),p&2&&(l(2),r(o.selectedProcessEntity?2:-1),l(),r(o.selectedEntity?3:-1),l(),r(o.selectedItemUpgrade?4:-1),l(3),m("uiIcon",o.SHOP_ICONS[o.shopName]),l(),k(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),l(),r(o.openingHours$?9:-1),l(),r(o.shopItemData$?10:-1),l(),r(o.itemProcessing$?11:-1),l(),r(o.itemUpgrade$?12:-1))},dependencies:[R,j,z,Q,J,Y,K,G,q,W,L,M,O,B,F,H],encapsulation:2});let e=i;return e})();export{Be as TidalThreadsComponent}; diff --git a/chunk-MJ3WXX2W.js b/chunk-MS5UJFMU.js similarity index 87% rename from chunk-MJ3WXX2W.js rename to chunk-MS5UJFMU.js index 1692d35ad2..3c75cbe76f 100644 --- a/chunk-MJ3WXX2W.js +++ b/chunk-MS5UJFMU.js @@ -1 +1 @@ -import{a as j}from"./chunk-NOVVTXMF.js";import{g as A,h as U,k as Y,t as q}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as _,Ca as w,Fa as r,Ga as T,Ha as I,Ia as y,Ib as H,Ja as m,Ka as s,La as d,Ma as V,Na as $,Nd as O,Ne as L,P as v,Pa as u,Pd as B,Ra as b,Sa as a,Sd as P,V as C,W as h,db as S,fb as k,ib as g,jb as D,ka as p,kb as E,mb as F,me as W,mf as M,qb as f,rb as x,ta as N,wa as c}from"./chunk-4KZEYPV3.js";function z(t,i){if(t&1&&d(0,"app-shop-item-data-details",1),t&2){let e=a();_("shopItemData",e.selectedEntity)}}function G(t,i){t&1&&d(0,"app-opening-hours",4),t&2&&_("openingHours",i)}function J(t,i){if(t&1&&(c(0,G,1,1,"app-opening-hours",4),f(1,"async")),t&2){let e,n=a();r((e=x(1,1,n.openingHours$))?0:-1,e)}}function K(t,i){if(t&1){let e=u();m(0,"app-item-icon",10),b("click",function(){let l=C(e).$implicit,o=a(4);return h(o.showDetails(l))}),s()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function Q(t,i){if(t&1&&(m(0,"div",7),I(1,K,1,3,"app-item-icon",9,T),s()),t&2){let e=a();p(),y(e)}}function R(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function X(t,i){if(t&1){let e=u();m(0,"app-data-filter",6),E("showTableChange",function(l){C(e);let o=a(2);return D(o.showTable,l)||(o.showTable=l),h(l)}),s(),c(1,Q,3,0,"div",7)(2,R,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),p(),r(e.showTable?-1:1),p(),r(e.showTable?2:-1)}}function Z(t,i){if(t&1&&(m(0,"h2",5),S(1,"Stock list Indoor"),s(),c(2,X,3,3),f(3,"async")),t&2){let e,n=a();p(2),r((e=x(3,1,n.shopItemDataIndoor$))?2:-1,e)}}function tt(t,i){if(t&1){let e=u();m(0,"app-item-icon",10),b("click",function(){let l=C(e).$implicit,o=a(4);return h(o.showDetails(l))}),s()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function et(t,i){if(t&1&&(m(0,"div",7),I(1,tt,1,3,"app-item-icon",9,T),s()),t&2){let e=a();p(),y(e)}}function it(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function nt(t,i){if(t&1){let e=u();m(0,"app-data-filter",6),E("showTableChange",function(l){C(e);let o=a(2);return D(o.showTable,l)||(o.showTable=l),h(l)}),s(),c(1,et,3,0,"div",7)(2,it,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),p(),r(e.showTable?-1:1),p(),r(e.showTable?2:-1)}}function ot(t,i){if(t&1&&(m(0,"h2",5),S(1,"Stock list Outdoor"),s(),c(2,nt,3,3),f(3,"async")),t&2){let e,n=a();p(2),r((e=x(3,1,n.shopItemDataOutdoor$))?2:-1,e)}}var ft=(()=>{let i=class i extends j{constructor(){super(),this.shopName="sales-cart-stall",this.shopItemDataIndoor$=this._database.fetchShopItemData$(this.shopName+"-indoor"),this.shopItemDataOutdoor$=this._database.fetchShopItemData$(this.shopName+"-outdoor"),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=v({type:i,selectors:[["app-sales-cart-stall"]],standalone:!0,features:[N,F],decls:10,vars:6,consts:[["listDetail",""],[3,"shopItemData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(l,o){l&1&&(m(0,"app-list-detail-container"),V(1,0),c(2,z,1,1,"app-shop-item-data-details",1),$(),m(3,"app-card")(4,"h1",2),d(5,"app-ui-icon",3),S(6),s(),c(7,J,2,3),s(),c(8,Z,4,3)(9,ot,4,3),s()),l&2&&(p(2),r(o.selectedEntity?2:-1),p(3),_("uiIcon",o.SHOP_ICONS[o.shopName]),p(),k(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),p(),r(o.openingHours$?7:-1),p(),r(o.shopItemDataIndoor$?8:-1),p(),r(o.shopItemDataOutdoor$?9:-1))},dependencies:[M,B,P,W,L,q,U,Y,A,H,O],encapsulation:2});let t=i;return t})();export{ft as SalesCartStallComponent}; +import{a as j}from"./chunk-VBOZDBHI.js";import{g as A,h as U,k as Y,t as q}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as _,Da as w,Ga as r,Ha as T,Ia as I,Ja as y,Ka as m,Kb as H,La as s,Ma as d,Na as V,Oa as $,P as v,Qa as u,Sa as b,Ta as a,Td as O,Te as L,Vd as B,W as C,X as h,Yd as P,eb as S,gb as k,jb as g,kb as D,la as p,lb as E,nb as F,rb as f,sb as x,se as W,sf as M,ua as N,xa as c}from"./chunk-PYTDIKHQ.js";function z(t,i){if(t&1&&d(0,"app-shop-item-data-details",1),t&2){let e=a();_("shopItemData",e.selectedEntity)}}function G(t,i){t&1&&d(0,"app-opening-hours",4),t&2&&_("openingHours",i)}function J(t,i){if(t&1&&(c(0,G,1,1,"app-opening-hours",4),f(1,"async")),t&2){let e,n=a();r((e=x(1,1,n.openingHours$))?0:-1,e)}}function K(t,i){if(t&1){let e=u();m(0,"app-item-icon",10),b("click",function(){let l=C(e).$implicit,o=a(4);return h(o.showDetails(l))}),s()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function Q(t,i){if(t&1&&(m(0,"div",7),I(1,K,1,3,"app-item-icon",9,T),s()),t&2){let e=a();p(),y(e)}}function R(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function X(t,i){if(t&1){let e=u();m(0,"app-data-filter",6),E("showTableChange",function(l){C(e);let o=a(2);return D(o.showTable,l)||(o.showTable=l),h(l)}),s(),c(1,Q,3,0,"div",7)(2,R,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),p(),r(e.showTable?-1:1),p(),r(e.showTable?2:-1)}}function Z(t,i){if(t&1&&(m(0,"h2",5),S(1,"Stock list Indoor"),s(),c(2,X,3,3),f(3,"async")),t&2){let e,n=a();p(2),r((e=x(3,1,n.shopItemDataIndoor$))?2:-1,e)}}function tt(t,i){if(t&1){let e=u();m(0,"app-item-icon",10),b("click",function(){let l=C(e).$implicit,o=a(4);return h(o.showDetails(l))}),s()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function et(t,i){if(t&1&&(m(0,"div",7),I(1,tt,1,3,"app-item-icon",9,T),s()),t&2){let e=a();p(),y(e)}}function it(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function nt(t,i){if(t&1){let e=u();m(0,"app-data-filter",6),E("showTableChange",function(l){C(e);let o=a(2);return D(o.showTable,l)||(o.showTable=l),h(l)}),s(),c(1,et,3,0,"div",7)(2,it,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),p(),r(e.showTable?-1:1),p(),r(e.showTable?2:-1)}}function ot(t,i){if(t&1&&(m(0,"h2",5),S(1,"Stock list Outdoor"),s(),c(2,nt,3,3),f(3,"async")),t&2){let e,n=a();p(2),r((e=x(3,1,n.shopItemDataOutdoor$))?2:-1,e)}}var ft=(()=>{let i=class i extends j{constructor(){super(),this.shopName="sales-cart-stall",this.shopItemDataIndoor$=this._database.fetchShopItemData$(this.shopName+"-indoor"),this.shopItemDataOutdoor$=this._database.fetchShopItemData$(this.shopName+"-outdoor"),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=v({type:i,selectors:[["app-sales-cart-stall"]],standalone:!0,features:[N,F],decls:10,vars:6,consts:[["listDetail",""],[3,"shopItemData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(l,o){l&1&&(m(0,"app-list-detail-container"),V(1,0),c(2,z,1,1,"app-shop-item-data-details",1),$(),m(3,"app-card")(4,"h1",2),d(5,"app-ui-icon",3),S(6),s(),c(7,J,2,3),s(),c(8,Z,4,3)(9,ot,4,3),s()),l&2&&(p(2),r(o.selectedEntity?2:-1),p(3),_("uiIcon",o.SHOP_ICONS[o.shopName]),p(),k(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),p(),r(o.openingHours$?7:-1),p(),r(o.shopItemDataIndoor$?8:-1),p(),r(o.shopItemDataOutdoor$?9:-1))},dependencies:[M,B,P,W,L,q,U,Y,A,H,O],encapsulation:2});let t=i;return t})();export{ft as SalesCartStallComponent}; diff --git a/chunk-OHRRW4BO.js b/chunk-OHRRW4BO.js deleted file mode 100644 index 4a5a530b6d..0000000000 --- a/chunk-OHRRW4BO.js +++ /dev/null @@ -1 +0,0 @@ -import{$a as it,$d as S,Aa as p,Ae as xe,Bb as ot,Be as he,Ca as Q,Ce as ge,De as gt,Fa as _,Fe as Re,G as De,Ga as T,Ge as yt,Ha as y,Hb as at,Hd as lt,He as bt,Ia as b,Ib as W,Ie as ye,Ja as r,Jb as N,Je as Fe,K as Pe,Ka as m,Kb as oe,Kd as F,Ke as Le,La as u,Le as $e,Ma as h,Md as qe,Me as Be,N as D,Na as g,Nd as mt,Ne as be,Oa as Xe,Ob as j,Oe as Te,P as x,Pa as A,Pd as v,Pe as ve,Q as Me,Qd as pt,Qe as Tt,R as Ye,Ra as O,Rd as st,Re as Ie,Sa as s,Sd as ct,Td as K,Ud as dt,V as B,Va as Ze,Vd as ut,W as U,Wd as _t,We as vt,Xd as ft,Xe as Ue,Ya as et,Z,Zb as Ne,Zd as Ct,_a as tt,_b as we,_d as ae,ca as H,db as d,eb as I,fb as M,gb as E,hb as nt,ib as te,ic as rt,jb as ie,ka as a,kb as ne,ke as xt,l as ke,m as Ke,mb as V,me as re,mf as G,na as Je,ne as le,ob as L,pe as me,qb as f,qc as R,qe as ht,ra as ze,rb as C,se as pe,ta as P,te as se,ue as ce,va as Ee,ve as de,wa as c,we as ue,x as X,xe as _e,yb as q,ye as fe,za as ee,ze as Ce}from"./chunk-4KZEYPV3.js";function Vt(e,t){if(e&1&&(r(0,"app-module-sidebar-item",1),d(1,"Inventory-Crafting "),m(),r(2,"app-module-sidebar-item",2),d(3,"Processing "),m(),r(4,"app-module-sidebar-item",3),d(5,"Cooking "),m(),r(6,"app-module-sidebar-item",4),d(7,"Mixing "),m()),e&2){let i=s();p("uiIcon",i.UI_ICONS.CRAFTING),a(2),p("uiIcon",i.UI_ICONS.ARTISAN),a(2),p("uiIcon",i.UI_ICONS.COOKING),a(2),p("uiIcon",i.UI_ICONS.PLANT)}}var St=(()=>{let t=class t{constructor(){this.UI_ICONS=we,this.addSpacesToPascalCase=rt,this._databaseService=D(R),this.itemProcessingRecipes$=this._databaseService.fetchItemProcessingRecipes$()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-crafting"]],decls:5,vars:3,consts:[[1,"hidden"],["routerLink","inventory",3,"uiIcon"],["routerLink","artisan",3,"uiIcon"],["routerLink","cooking",3,"uiIcon"],["routerLink","mixing",3,"uiIcon"]],template:function(n,l){n&1&&(r(0,"app-sidebar-container")(1,"app-module-sidebar"),c(2,Vt,8,4),f(3,"async"),m(),u(4,"router-outlet",0),m()),n&2&&(a(2),_(C(3,1,l.itemProcessingRecipes$)?2:-1))},dependencies:[lt,F,st,pt,xt,W],encapsulation:2});let e=t;return e})();var Se=(()=>{let t=class t{static ngTemplateContextGuard(o,n){return!0}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Ye({type:t,selectors:[["","appDatabaseItemDetails",""]],standalone:!0});let e=t;return e})();var qt=e=>["/database",e],jt=e=>({$implicit:e});function Gt(e,t){e&1&&Xe(0)}function Qt(e,t){if(e&1&&u(0,"app-quality-grid",16),e&2){let i=s();p("item",i.item)}}function Wt(e,t){if(e&1&&(r(0,"div",17),d(1," Sells for: "),u(2,"app-money",18),m()),e&2){let i=s();a(2),p("amount",i.item.sellPrice)}}function Kt(e,t){if(e&1){let i=A();r(0,"app-card",0)(1,"div",1),u(2,"app-to-do-toggle",2),r(3,"button",3),O("click",function(){B(i);let n=s();return U(n.listDetails.close())}),u(4,"app-ui-icon",4),m()(),u(5,"app-item-icon",5),r(6,"div",6)(7,"div",7)(8,"div",8),d(9),m(),r(10,"span",9),d(11),f(12,"addSpacesToPascalCase"),m()(),r(13,"span",10)(14,"a",11),u(15,"app-ui-icon",12),m()()(),u(16,"hr",13),r(17,"span",14),d(18),m(),c(19,Gt,1,0,"ng-container",15)(20,Qt,1,1,"app-quality-grid",16),f(21,"keyvalue"),c(22,Wt,3,1,"div",17),m()}if(e&2){let i=t,o=s();a(2),p("item",i.item)("context",o.context())("amount",o.amount())("quality",o.quality()),a(2),p("uiIcon",o.uiIcon.CROSS),a(),Ze("itemName",i.item.iconName),p("amount",o.amount()),a(4),I(i.item.displayName),a(2),M(" ",C(12,15,i.item.displayKey),""),a(3),p("routerLink",L(19,qt,i.item.id)),a(),p("uiIcon",o.uiIcon.DATABASE),a(3),I(i.item.description),a(),p("ngTemplateOutlet",o.databaseItemDetails)("ngTemplateOutletContext",L(21,jt,i)),a(),_(C(21,17,i.item.qualities).length&&!o.hideQualityGrid()?20:22)}}var z=(()=>{let t=class t{constructor(){this.itemId=H.required(),this.hideQualityGrid=H(!1,{transform:q}),this.context=H(),this.amount=H(),this.quality=H(),this.databaseItemDetails=null,this.databaseItem=ze(void 0),this.UiIcon=we,this.uiIcon=we,this.listDetails=D(ut),this.database=D(R),ot(()=>{this.database.fetchDatabaseItem$(this.itemId()).pipe(X(1)).subscribe({next:o=>{this.databaseItem.set(o)}})},{allowSignalWrites:!0})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-database-item-details"]],contentQueries:function(n,l,k){if(n&1&&et(k,Je,5),n&2){let $;tt($=it())&&(l.databaseItemDetails=$.first)}},inputs:{itemId:[1,"itemId"],hideQualityGrid:[1,"hideQualityGrid"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"]},standalone:!0,features:[V],decls:1,vars:1,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],[3,"item","context","amount","quality"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["cardIcon","",3,"amount","itemName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"text-accent","text-2xl"],["matTooltip","Open in database","matTooltipPosition","before"],[3,"routerLink"],[1,"focus-visible:!text-black","hover:!text-black",3,"uiIcon"],[1,"my-5"],[1,"text-lg","mb-6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["includePrices","",1,"mt-6",3,"item"],[1,"flex"],[1,"ml-2","text-black",3,"amount"]],template:function(n,l){if(n&1&&c(0,Kt,23,23,"app-card",0),n&2){let k;_((k=l.databaseItem())?0:-1,k)}},dependencies:[j,at,oe,ft,_t,F,S,G,v,ct,dt,K,Ct,mt],encapsulation:2});let e=t;return e})();function Jt(e,t){if(e&1&&(r(0,"div"),d(1," Unlocked: "),r(2,"span",1),d(3),m()()),e&2){let i=s();a(3),E("Level ",i.craftingUnlock.masteryLevel," in ",i.craftingUnlock.masteryType,"")}}function zt(e,t){if(e&1&&(c(0,Jt,4,2,"div"),u(1,"app-item-list",0),f(2,"craftingRecipeIngredients")),e&2){let i=t;_(i.craftingUnlock?0:-1),a(),p("itemList",C(2,2,i))}}var He=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-inventory-crafting"]],inputs:{details:"details"},standalone:!0,features:[V],decls:1,vars:1,consts:[[1,"mb-3",3,"itemList"],[1,"text-black"]],template:function(n,l){if(n&1&&c(0,zt,3,4,"app-item-list",0),n&2){let k;_((k=l.details.craftedFrom==null?null:l.details.craftedFrom[0])?0:-1,k)}},dependencies:[G,ae,Fe],encapsulation:2});let e=t;return e})();function Zt(e,t){if(e&1&&u(0,"app-inventory-crafting",2),e&2){let i=t.$implicit;p("details",i)}}function ei(e,t){if(e&1&&(r(0,"app-database-item-details",0),c(1,Zt,1,1,"ng-template",1),m()),e&2){let i=s();p("amount",i.craftingRecipe.amount)("itemId",i.craftingRecipe.item.id)}}var kt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-inventory-details"]],inputs:{craftingRecipe:"craftingRecipe"},decls:1,vars:1,consts:[["context","crafting",3,"amount","itemId"],["appDatabaseItemDetails",""],[3,"details"]],template:function(n,l){n&1&&c(0,ei,2,2,"app-database-item-details",0),n&2&&_(l.craftingRecipe&&l.craftingRecipe.item?0:-1)},dependencies:[z,Se,He]});let e=t;return e})();function ii(e,t){if(e&1&&(r(0,"td",16),u(1,"app-item-icon",17),m()),e&2){let i=t.$implicit;a(),p("itemName",i.item==null?null:i.item.iconName)}}function ni(e,t){e&1&&(r(0,"th",18),d(1," Output "),m()),e&2&&ee("colspan",2)}function oi(e,t){if(e&1&&(r(0,"td",19),d(1),m()),e&2){let i=t.$implicit;a(),E("",i.item==null?null:i.item.displayName," (",i.amount,") ")}}function ai(e,t){e&1&&(r(0,"th",20),d(1," Ingredients"),m())}function ri(e,t){if(e&1&&(r(0,"td",21),u(1,"app-table-item-list",22),f(2,"craftingRecipeIngredients"),m()),e&2){let i=t.$implicit;a(),p("itemList",C(2,1,i))}}function li(e,t){e&1&&(r(0,"th",20),d(1," Unlocked by"),m())}function mi(e,t){if(e&1&&d(0),e&2){let i=s().$implicit;E(" Level ",i.craftingUnlock.masteryLevel," in ",i.craftingUnlock.masteryType," ")}}function pi(e,t){if(e&1&&(r(0,"td",23),c(1,mi,1,2),m()),e&2){let i=t.$implicit;a(),_(i.craftingUnlock?1:-1)}}function si(e,t){e&1&&(r(0,"th",24),d(1," Sell price"),m())}function ci(e,t){if(e&1&&(r(0,"td",25),u(1,"app-money",26),m()),e&2){let i=t.$implicit;a(),p("amount",i.item.sellPrice)}}function di(e,t){e&1&&u(0,"tr",27)}function ui(e,t){e&1&&u(0,"tr",28)}function _i(e,t){if(e&1&&(r(0,"table",0),h(1,1),c(2,ii,2,1,"td",2),g(),h(3,3),c(4,ni,2,1,"th",4)(5,oi,2,2,"td",5),g(),h(6,6),c(7,ai,2,0,"th",7)(8,ri,3,3,"td",8),g(),h(9,9),c(10,li,2,0,"th",7)(11,pi,2,1,"td",10),g(),h(12,11),c(13,si,2,0,"th",12)(14,ci,2,1,"td",13),g(),c(15,di,1,0,"tr",14)(16,ui,1,0,"tr",15),m()),e&2){let i=s();p("dataSource",i.matDataSource),a(15),p("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),a(),p("matRowDefColumns",i.displayedColumns)}}var Nt=(()=>{let t=class t extends Ie{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","sellPrice","unlock"],this.sortingDataAccessor=(o,n)=>{let l=this.sortHelper(o.item,n);return l!==null?l:0}}};t.\u0275fac=(()=>{let o;return function(l){return(o||(o=Z(t)))(l||t)}})(),t.\u0275cmp=x({type:t,selectors:[["app-inventory-table"]],features:[P],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","unlock"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[3,"itemList"],["mat-cell","",1,"text-col"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(n,l){n&1&&(r(0,"app-responsive-table"),c(1,_i,17,4,"table",0),m()),n&2&&(a(),_(l.matDataSource?1:-1))},dependencies:[v,K,pe,ye,se,de,Ce,ue,ce,xe,_e,fe,he,ge,Te,ve,Fe],encapsulation:2});let e=t;return e})();function Ci(e,t){if(e&1&&u(0,"app-inventory-details",0),e&2){let i=s();p("craftingRecipe",i.selectedEntity)}}function xi(e,t){if(e&1){let i=A();r(0,"app-item-icon",6),O("click",function(){let n=B(i).$implicit,l=s(3);return U(l.showDetails(n))}),m()}if(e&2){let i=t.$implicit,o=s(3);Q("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===(i.item==null?null:i.item.id)),p("amount",i.amount)("itemName",i.item==null?null:i.item.iconName)}}function hi(e,t){if(e&1&&(r(0,"div",3),y(1,xi,1,4,"app-item-icon",5,T),m()),e&2){let i=s();a(),b(i)}}function gi(e,t){if(e&1&&u(0,"app-inventory-table",4),e&2){let i=s();p("dataSource",i)}}function yi(e,t){if(e&1&&c(0,hi,3,0,"div",3)(1,gi,1,1,"app-inventory-table",4),e&2){let i=s();_(i.showTable?-1:0),a(),_(i.showTable?1:-1)}}var $t=(()=>{let t=class t extends vt{constructor(){super(),this.recipes$=this._database.fetchCraftingRecipes$()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-inventory"]],features:[P],decls:7,vars:5,consts:[["listDetail","",3,"craftingRecipe"],["label","All"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(n,l){if(n&1&&(r(0,"app-list-detail-container"),c(1,Ci,1,1,"app-inventory-details",0),r(2,"mat-tab-group")(3,"mat-tab",1)(4,"app-data-filter",2),ne("showTableChange",function($){return ie(l.showTable,$)||(l.showTable=$),$}),m(),c(5,yi,2,2),f(6,"async"),m()()()),n&2){let k;a(),_(l.selectedEntity?1:-1),a(3),te("showTable",l.showTable),a(),_((k=C(6,3,l.recipes$))?5:-1,k)}},dependencies:[v,re,be,le,me,kt,Nt,W],encapsulation:2});let e=t;return e})();var vi=e=>["/crafting/artisan",e];function Ii(e,t){if(e&1&&(r(0,"a",4),u(1,"app-item-icon",5),r(2,"span",6),d(3),m()()),e&2){let i=t,o=s(2);p("routerLink",L(3,vi,o.itemProcessing.machine.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function Si(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=s(2);M(" ",C(2,3,C(1,1,i.itemProcessing.machine))," ")}}function wi(e,t){if(e&1&&(r(0,"div",0),d(1,"Processor: "),r(2,"span",3),c(3,Ii,4,5,"a",4)(4,Si,3,5),m()()),e&2){let i,o=s();a(3),_((i=o.processorMapping[o.itemProcessing.machine.toLowerCase()])?3:-1,i),a(),_(o.processorMapping[o.itemProcessing.machine.toLowerCase()]?-1:4)}}function ki(e,t){if(e&1&&(r(0,"div",1),d(1,"Processing time: "),r(2,"span",3),u(3,"app-processing-time",7),m()()),e&2){let i=s();a(3),p("processingTime",i.itemProcessing)}}function Di(e,t){if(e&1&&(r(0,"div",1),d(1,"Time per input quality "),u(2,"app-processing-time-per-quality",8),m()),e&2){let i=s();a(2),p("baseProcessingTime",i.itemProcessing)("processingTimePerQualities",i.itemProcessing.qualities)}}function Pi(e,t){if(e&1&&(r(0,"div",1),d(1,"Time to improve quality "),u(2,"app-refinements-list",9),m()),e&2){let i=s();a(2),p("refinements",i.itemProcessing.refinements)}}var Ae=(()=>{let t=class t{constructor(){this.hideMaschine=!1,this.processorMapping=D(R).getProcessorMapping()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-processing"]],inputs:{itemProcessing:"itemProcessing",hideMaschine:[2,"hideMaschine","hideMaschine",q]},standalone:!0,features:[Ee,V],decls:6,vars:7,consts:[[1,"mb-3","inline-flex","gap-2","items-center"],[1,"mb-3"],[1,"mb-3",3,"itemList"],[1,"text-black"],[3,"routerLink"],[1,"!w-7","ml-1","-my-1","translate-y-1","!inline-block",3,"itemName"],[1,"ml-1","whitespace-nowrap","underline"],[3,"processingTime"],[3,"baseProcessingTime","processingTimePerQualities"],[3,"refinements"]],template:function(n,l){n&1&&(c(0,wi,5,2,"div",0)(1,ki,4,1,"div",1),u(2,"app-item-list",2),f(3,"itemProcessingIngredients"),c(4,Di,3,2,"div",1)(5,Pi,3,1,"div",1)),n&2&&(_(!l.hideMaschine&&l.itemProcessing.machine?0:-1),a(),_(l.itemProcessing.qualities?-1:1),a(),p("itemList",C(3,5,l.itemProcessing)),a(2),_(l.itemProcessing.qualities?4:-1),a(),_(l.itemProcessing.refinements?5:-1))},dependencies:[j,N,G,v,ae,yt,Re,bt,Be,S,F],encapsulation:2});let e=t;return e})();var Ei=e=>["crafting/artisan",e];function Ni(e,t){if(e&1&&(r(0,"td",18),u(1,"app-item-icon",19),m()),e&2){let i=t.$implicit;a(),p("itemName",i.output.item==null?null:i.output.item.iconName)}}function Ri(e,t){e&1&&(r(0,"th",20),d(1," Output "),m()),e&2&&ee("colspan",2)}function Fi(e,t){if(e&1&&(r(0,"td",21),d(1),m()),e&2){let i=t.$implicit;a(),E("",i.output.item==null?null:i.output.item.displayName," (",i.output.amount,") ")}}function Li(e,t){e&1&&(r(0,"th",22),d(1," Ingredients"),m())}function $i(e,t){if(e&1&&(r(0,"td",23),u(1,"app-table-item-list",24),f(2,"itemProcessingIngredients"),m()),e&2){let i=t.$implicit;a(),p("itemList",C(2,1,i))}}function Bi(e,t){e&1&&(r(0,"th",25),d(1," Sell price"),m())}function Ui(e,t){if(e&1&&(r(0,"td",26),u(1,"app-money",27),m()),e&2){let i=t.$implicit;a(),p("amount",i.output.item.sellPrice)}}function Hi(e,t){e&1&&(r(0,"th",22),d(1,"Processor"),m())}function Ai(e,t){if(e&1&&(r(0,"a",29),u(1,"app-item-icon",30),r(2,"span",31),d(3),m()()),e&2){let i=t,o=s().$implicit;p("routerLink",L(3,Ei,o.machine.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function Oi(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=s().$implicit;M(" ",C(2,3,C(1,1,i.machine))," ")}}function Vi(e,t){if(e&1&&(r(0,"td",28),c(1,Ai,4,5,"a",29)(2,Oi,3,5),m()),e&2){let i,o=t.$implicit,n=s(2);a(),_((i=n.processorMapping[o.machine.toLowerCase()])?1:-1,i),a(),_(n.processorMapping[o.machine.toLowerCase()]?-1:2)}}function qi(e,t){e&1&&(r(0,"th",32),d(1," Time"),m())}function ji(e,t){if(e&1&&(r(0,"td",28),u(1,"app-processing-time",33),m()),e&2){let i=t.$implicit;a(),p("processingTime",i)}}function Gi(e,t){e&1&&u(0,"tr",34)}function Qi(e,t){e&1&&u(0,"tr",35)}function Wi(e,t){if(e&1&&(r(0,"table",0),h(1,1),c(2,Ni,2,1,"td",2),g(),h(3,3),c(4,Ri,2,1,"th",4)(5,Fi,2,2,"td",5),g(),h(6,6),c(7,Li,2,0,"th",7)(8,$i,3,3,"td",8),g(),h(9,9),c(10,Bi,2,0,"th",10)(11,Ui,2,1,"td",11),g(),h(12,12),c(13,Hi,2,0,"th",7)(14,Vi,3,2,"td",13),g(),h(15,14),c(16,qi,2,0,"th",15)(17,ji,2,1,"td",13),g(),c(18,Gi,1,0,"tr",16)(19,Qi,1,0,"tr",17),m()),e&2){let i=s();p("dataSource",i.matDataSource),a(18),p("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),a(),p("matRowDefColumns",i.displayedColumns)}}var Bt=(()=>{let t=class t extends Ie{constructor(){super(...arguments),this.showProcessor=H(!1,{transform:q}),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","processingTime","sellPrice"],this.processorMapping=D(R).getProcessorMapping(),this.sortingDataAccessor=(o,n)=>{let l=this.sortHelper(o.output.item,n);return l!==null?l:n==="processingTime"?o.day*24*60+o.time.hours*60+o.time.minutes:0}}setupDataSource(o){super.setupDataSource(o);let n=this.displayedColumns.indexOf("processor");this.showProcessor()&&n===-1?(this.displayedColumns.splice(3,0,"processor"),this.displayHeaderColumns=this.displayedColumns.filter(l=>l!=="icon")):!this.showProcessor()&&n!==-1&&(this.displayedColumns.splice(n,1),this.displayHeaderColumns=this.displayedColumns.filter(l=>l!=="icon"))}};t.\u0275fac=(()=>{let o;return function(l){return(o||(o=Z(t)))(l||t)}})(),t.\u0275cmp=x({type:t,selectors:[["app-processor-table"]],inputs:{showProcessor:[1,"showProcessor"]},features:[P],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","processor"],["class","text-col w-[1%] whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","processingTime"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-cell","",1,"text-col","w-[1%]","whitespace-nowrap"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap","underline"],["mat-header-cell","","mat-sort-header",""],[3,"processingTime"],["mat-header-row",""],["mat-row",""]],template:function(n,l){n&1&&(r(0,"app-responsive-table"),c(1,Wi,20,4,"table",0),m()),n&2&&(a(),_(l.matDataSource?1:-1))},dependencies:[F,v,K,pe,Re,ye,se,de,Ce,ue,ce,xe,_e,fe,he,ge,Te,ve,N,Be,S],encapsulation:2});let e=t;return e})();function Yi(e,t){if(e&1&&u(0,"app-processing",4),e&2){let i=s(2);p("itemProcessing",i.selectedEntity)}}function Ji(e,t){if(e&1&&(r(0,"app-database-item-details",0),c(1,Yi,1,1,"ng-template",3),m()),e&2){let i=s();p("itemId",i.selectedEntity.output.item.id)("amount",i.selectedEntity.output.amount)}}function zi(e,t){if(e&1){let i=A();r(0,"app-item-icon",9),O("click",function(){let n=B(i).$implicit,l=s(4);return U(l.showDetails(n))}),m()}if(e&2){let i,o,n=t.$implicit,l=s(4);Q("selected-icon",(l.selectedEntity==null||l.selectedEntity.output==null||l.selectedEntity.output.item==null?null:l.selectedEntity.output.item.id)===n.output.item.id&&(l.reusedImages.includes((i=n.output.item.iconName)!==null&&i!==void 0?i:"")?n.input.item.iconName===(l.selectedEntity==null||l.selectedEntity.input==null||l.selectedEntity.input.item==null?null:l.selectedEntity.input.item.iconName):!0)&&n.output.amount===(l.selectedEntity==null||l.selectedEntity.output==null?null:l.selectedEntity.output.amount)),p("amount",n.output.amount)("itemName",n.output.item.iconName)("subIconName",l.reusedImages.includes((o=n.output.item.iconName)!==null&&o!==void 0?o:"")?n.input.item.iconName:void 0)}}function Xi(e,t){if(e&1&&(r(0,"div",6),y(1,zi,1,5,"app-item-icon",8,T),m()),e&2){let i=s();a(),b(i)}}function Zi(e,t){if(e&1&&u(0,"app-processor-table",7),e&2){let i=s();p("dataSource",i)}}function en(e,t){if(e&1&&c(0,Xi,3,0,"div",6)(1,Zi,1,1,"app-processor-table",7),e&2){let i=s(2);_(i.showTable?-1:0),a(),_(i.showTable?1:-1)}}function tn(e,t){if(e&1){let i=A();r(0,"mat-tab",2),f(1,"addSpacesToPascalCase"),f(2,"titlecase"),r(3,"app-data-filter",5),ne("showTableChange",function(n){B(i);let l=s();return ie(l.showTable,n)||(l.showTable=n),U(n)}),m(),c(4,en,2,2),f(5,"async"),m()}if(e&2){let i,o=t.$implicit,n=s();p("label",n.processorMapping[o.toLowerCase()]?n.processorMapping[o.toLowerCase()].displayName:C(2,5,C(1,3,o))),a(3),te("showTable",n.showTable),a(),_((i=C(5,7,n.filteredData$(o)))?4:-1,i)}}var Ut=(()=>{let t=class t extends Ue{constructor(){super(),this.quality=Ne,this.machineNames=[],this.processorMapping=this._database.getProcessorMapping(),this.urlPathFromLabel=o=>{let n=Object.keys(this.processorMapping).find(l=>this.processorMapping[l].displayName===o);return n||o.toLowerCase().replaceAll(" ","")},this._database.fetchItemProcessingRecipes$().pipe(X(1)).subscribe({next:o=>{this.machineNames=Object.keys(o),this.activateTabFromRoute(this.machineNames)}})}filteredData$(o){return this._database.fetchItemProcessingRecipes$().pipe(ke(n=>n[o]),De(n=>{this.reusedImages=this.getMultipleIconNames(n.map(l=>l.output.item.iconName??""))}))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-processor"]],features:[P],decls:5,vars:2,consts:[["listDetail","","context","artisan",3,"itemId","amount"],[3,"selectedTabChange","selectedIndex"],[3,"label"],["appDatabaseItemDetails",""],["hideMaschine","",3,"itemProcessing"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","itemName","subIconName","selected-icon"],[1,"icon-grid-item",3,"click","amount","itemName","subIconName"]],template:function(n,l){n&1&&(r(0,"app-list-detail-container"),c(1,Ji,2,2,"app-database-item-details",0),r(2,"mat-tab-group",1),O("selectedTabChange",function($){return l.updateUrl($)}),y(3,tn,6,9,"mat-tab",2,T),m()()),n&2&&(a(),_(l.selectedEntity?1:-1),a(),p("selectedIndex",l.selectedTabIndex()),a(),b(l.machineNames))},dependencies:[v,re,be,le,me,z,Se,Ae,Bt,W,N,S],encapsulation:2});let e=t;return e})();var an=e=>["crafting/cooking",e];function rn(e,t){if(e&1&&(r(0,"a",5),u(1,"app-item-icon",6),r(2,"span",7),d(3),m()()),e&2){let i=t,o=s().$implicit;p("routerLink",L(3,an,o.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function ln(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=s().$implicit;M(" ",C(2,3,C(1,1,i))," ")}}function mn(e,t){if(e&1&&(r(0,"div",4),c(1,rn,4,5,"a",5)(2,ln,3,5),m()),e&2){let i,o=t.$implicit,n=s(2);a(),_((i=n.cookingUtensilMapping[o.toLowerCase()])?1:-1,i),a(),_(n.cookingUtensilMapping[o.toLowerCase()]?-1:2)}}function pn(e,t){if(e&1&&(r(0,"div",0),d(1,"Utensil(s): "),r(2,"span",3),y(3,mn,3,2,"div",4,T),m()()),e&2){let i=s();a(3),b(i.cookingRecipe.utensils)}}function sn(e,t){if(e&1&&(r(0,"div",1),d(1," Unlocked: "),r(2,"span",3),d(3),m()()),e&2){let i=s();a(3),E("Level ",i.cookingRecipe.craftingUnlock.masteryLevel," in ",i.cookingRecipe.craftingUnlock.masteryType,"")}}function cn(e,t){e&1&&u(0,"hr",8)}function dn(e,t){if(e&1&&(u(0,"app-item-list",2),c(1,cn,1,0,"hr",8)),e&2){let i=t.$implicit,o=t.$index,n=t.$count;p("itemList",i),a(),_(o!==n-1?1:-1)}}function un(e,t){if(e&1&&(r(0,"span",3),d(1," Either of the following"),m(),y(2,dn,2,2,null,null,T)),e&2){let i=s();a(2),b(i.cookingRecipe.eitherOrIngredients)}}function _n(e,t){if(e&1&&(r(0,"div",10),u(1,"app-item-icon",12),r(2,"span"),d(3),m()()),e&2){let i=s().$implicit;a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function fn(e,t){if(e&1&&(r(0,"div",9),c(1,_n,4,2,"div",10),r(2,"div",11),d(3),m()(),u(4,"hr")),e&2){let i=t.$implicit,o=s().$implicit;a(),_(i?1:-1),a(2),M("as ",o.key,"")}}function Cn(e,t){if(e&1&&(r(0,"div",1),y(1,fn,5,2,null,null,T),f(3,"castToMinimalItemArray"),m()),e&2){let i=t.$implicit;a(),b(C(3,0,i.value))}}function xn(e,t){if(e&1&&(r(0,"span",3),d(1," The following counting as"),m(),y(2,Cn,4,2,"div",1,T),f(4,"keyvalue")),e&2){let i=s();a(2),b(C(4,0,i.cookingRecipe.additionsToGenerics))}}var Oe=(()=>{let t=class t{constructor(){this.showUtensil=!1,this.cookingUtensilMapping=D(R).getCookingUtensilMapping()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-cooking-recipe"]],inputs:{cookingRecipe:"cookingRecipe",showUtensil:[2,"showUtensil","showUtensil",q]},standalone:!0,features:[Ee,V],decls:6,vars:7,consts:[[1,"mb-3","inline-flex","gap-2","items-center"],[1,"mb-3"],[1,"mb-3",3,"itemList"],[1,"text-black"],[1,"whitespace-nowrap"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap","underline"],[1,"my-5"],[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"flex","items-center"],[1,"w-10",3,"itemName"]],template:function(n,l){n&1&&(c(0,pn,5,0,"div",0)(1,sn,4,2,"div",1),u(2,"app-item-list",2),f(3,"cookingRecipeIngredients"),c(4,un,4,0)(5,xn,5,2)),n&2&&(_(l.showUtensil?0:-1),a(),_(l.cookingRecipe.craftingUnlock?1:-1),a(),p("itemList",C(3,5,l.cookingRecipe)),a(2),_(l.cookingRecipe.eitherOrIngredients.length?4:-1),a(),_(l.cookingRecipe.additionsToGenerics?5:-1))},dependencies:[j,N,oe,G,v,ae,Le,$e,S,F],encapsulation:2});let e=t;return e})();function gn(e,t){if(e&1&&(r(0,"div",1),d(1,"Buff: "),r(2,"span",0),d(3),f(4,"addSpacesToPascalCase"),m()()),e&2){let i=s();a(3),nt(" ",C(4,3,i.consumable.buff),", Level ",i.consumable.level," for ",i.consumable.duration," seconds ")}}var Ve=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-consumable"]],inputs:{consumable:"consumable"},standalone:!0,features:[V],decls:9,vars:5,consts:[[1,"text-black"],[1,"mb-3"]],template:function(n,l){n&1&&(r(0,"div"),d(1,"Health: "),r(2,"span",0),d(3),m()(),r(4,"div"),d(5,"Energy: "),r(6,"span",0),d(7),m()(),c(8,gn,5,5,"div",1)),n&2&&(a(3),I(l.consumable.healthDelta),a(),Q("mb-3",l.consumable.buff==="None"),a(3),I(l.consumable.staminaDelta),a(),_(l.consumable.buff!=="None"?8:-1))},dependencies:[j,S],encapsulation:2});let e=t;return e})();var bn=e=>["crafting/cooking",e];function Tn(e,t){if(e&1&&(r(0,"td",19),u(1,"app-item-icon",20),m()),e&2){let i=t.$implicit;a(),p("itemName",i.item==null?null:i.item.iconName)}}function vn(e,t){e&1&&(r(0,"th",21),d(1," Output "),m()),e&2&&ee("colspan",2)}function In(e,t){if(e&1&&(r(0,"td",22),d(1),m()),e&2){let i=t.$implicit;a(),E("",i.item==null?null:i.item.displayName," (",i.amount,") ")}}function Sn(e,t){e&1&&(r(0,"th",23),d(1," Ingredients"),m())}function wn(e,t){e&1&&u(0,"hr",27)}function kn(e,t){if(e&1&&(u(0,"app-table-item-list",25),c(1,wn,1,0,"hr",27)),e&2){let i=t.$implicit,o=t.$index,n=t.$count;p("itemList",i),a(),_(o!==n-1?1:-1)}}function Dn(e,t){if(e&1&&(r(0,"span",26),d(1," Either of the following"),m(),y(2,kn,2,2,null,null,T)),e&2){let i=s().$implicit;a(2),b(i.eitherOrIngredients)}}function Pn(e,t){if(e&1&&(r(0,"div",29),u(1,"app-item-icon",31),r(2,"span",32),d(3),m()()),e&2){let i=s().$implicit;a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function Mn(e,t){if(e&1&&(r(0,"div",28),c(1,Pn,4,2,"div",29),r(2,"div",30),d(3),m()()),e&2){let i=t.$implicit,o=s().$implicit;a(),_(i?1:-1),a(2),M("as ",o.key," ")}}function En(e,t){if(e&1&&(y(0,Mn,4,2,"div",28,T),f(2,"castToMinimalItemArray")),e&2){let i=t.$implicit;b(C(2,0,i.value))}}function Nn(e,t){if(e&1&&(r(0,"span",26),d(1," The following counting as"),m(),y(2,En,3,2,null,null,T),f(4,"keyvalue")),e&2){let i=s().$implicit;a(2),b(C(4,0,i.additionsToGenerics))}}function Rn(e,t){if(e&1&&(r(0,"td",24),u(1,"app-table-item-list",25),f(2,"cookingRecipeIngredients"),c(3,Dn,4,0)(4,Nn,5,2),m()),e&2){let i=t.$implicit;a(),p("itemList",C(2,3,i)),a(2),_(i.eitherOrIngredients.length?3:-1),a(),_(i.additionsToGenerics?4:-1)}}function Fn(e,t){e&1&&(r(0,"th",23),d(1," Unlocked by"),m())}function Ln(e,t){if(e&1&&d(0),e&2){let i=s().$implicit;E(" Level ",i.craftingUnlock.masteryLevel," in ",i.craftingUnlock.masteryType," ")}}function $n(e,t){if(e&1&&(r(0,"td",33),c(1,Ln,1,2),m()),e&2){let i=t.$implicit;a(),_(i.craftingUnlock?1:-1)}}function Bn(e,t){e&1&&(r(0,"th",34),d(1," Sell price"),m())}function Un(e,t){if(e&1&&(r(0,"td",35),u(1,"app-money",36),m()),e&2){let i=t.$implicit;a(),p("amount",i.item.sellPrice)}}function Hn(e,t){e&1&&(r(0,"th",37),d(1," Utensil"),m())}function An(e,t){if(e&1&&(r(0,"a",39),u(1,"app-item-icon",31),r(2,"span",40),d(3),m()()),e&2){let i=t,o=s().$implicit;p("routerLink",L(3,bn,o.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function On(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=s().$implicit;M(" ",C(2,3,C(1,1,i))," ")}}function Vn(e,t){if(e&1&&(r(0,"div",32),c(1,An,4,5,"a",39)(2,On,3,5),m()),e&2){let i,o=t.$implicit,n=s(3);a(),_((i=n.cookingUtensilMapping[o.toLowerCase()])?1:-1,i),a(),_(n.cookingUtensilMapping[o.toLowerCase()]?-1:2)}}function qn(e,t){if(e&1&&(r(0,"td",38),y(1,Vn,3,2,"div",32,T),m()),e&2){let i=t.$implicit;a(),b(i.utensils)}}function jn(e,t){e&1&&u(0,"tr",41)}function Gn(e,t){e&1&&u(0,"tr",42)}function Qn(e,t){if(e&1&&(r(0,"table",0),h(1,1),c(2,Tn,2,1,"td",2),g(),h(3,3),c(4,vn,2,1,"th",4)(5,In,2,2,"td",5),g(),h(6,6),c(7,Sn,2,0,"th",7)(8,Rn,5,5,"td",8),g(),h(9,9),c(10,Fn,2,0,"th",7)(11,$n,2,1,"td",10),g(),h(12,11),c(13,Bn,2,0,"th",12)(14,Un,2,1,"td",13),g(),h(15,14),c(16,Hn,2,0,"th",15)(17,qn,3,0,"td",16),g(),c(18,jn,1,0,"tr",17)(19,Gn,1,0,"tr",18),m()),e&2){let i=s();p("dataSource",i.matDataSource),a(18),p("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),a(),p("matRowDefColumns",i.displayedColumns)}}var Ht=(()=>{let t=class t extends Ie{constructor(){super(...arguments),this.showUtensil=H(!1,{transform:q}),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","sellPrice","unlock"],this.cookingUtensilMapping=D(R).getCookingUtensilMapping(),this.sortingDataAccessor=(o,n)=>{let l=this.sortHelper(o.item,n);return l!==null?l:0}}setupDataSource(o){super.setupDataSource(o);let n=this.displayedColumns.indexOf("utensil");this.showUtensil()&&n===-1?(this.displayedColumns.splice(3,0,"utensil"),this.displayHeaderColumns=this.displayedColumns.filter(l=>l!=="icon")):!this.showUtensil()&&n!==-1&&(this.displayedColumns.splice(n,1),this.displayHeaderColumns=this.displayedColumns.filter(l=>l!=="icon"))}};t.\u0275fac=(()=>{let o;return function(l){return(o||(o=Z(t)))(l||t)}})(),t.\u0275cmp=x({type:t,selectors:[["app-cooking-table"]],inputs:{showUtensil:[1,"showUtensil"]},features:[P],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","unlock"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","utensil"],["class","whitespace-nowrap","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],[1,"text-black","mt-1"],[1,"my-5"],[1,"flex","justify-between","mb-1"],[1,"flex","gap-x-3","items-center"],[1,"ml-2","flex","items-center","whitespace-nowrap"],[1,"!w-7",3,"itemName"],[1,"whitespace-nowrap"],["mat-cell","",1,"text-col"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-cell","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"ml-1","whitespace-nowrap","underline"],["mat-header-row",""],["mat-row",""]],template:function(n,l){n&1&&(r(0,"app-responsive-table"),c(1,Qn,20,4,"table",0),m()),n&2&&(a(),_(l.matDataSource?1:-1))},dependencies:[F,v,K,pe,ye,se,de,Ce,ue,ce,xe,_e,fe,he,ge,Te,ve,N,oe,Le,$e,S],encapsulation:2});let e=t;return e})();var Kn=(e,t)=>t.key;function Yn(e,t){e&1&&u(0,"app-consumable",4),e&2&&p("consumable",t)}function Jn(e,t){if(e&1&&u(0,"app-cooking-recipe",5),e&2){let i=t.$implicit;p("cookingRecipe",i)}}function zn(e,t){if(e&1&&(c(0,Yn,1,1,"app-consumable",4),y(1,Jn,1,1,"app-cooking-recipe",5,Kn)),e&2){let i,o=t.$implicit;_((i=o.consumables==null?null:o.consumables.base)?0:-1,i),a(),b(o.cookedFrom)}}function Xn(e,t){if(e&1&&(r(0,"app-database-item-details",0),c(1,zn,3,1,"ng-template",3),m()),e&2){let i=s();p("itemId",i.selectedEntity.item.id)}}function Zn(e,t){if(e&1){let i=A();r(0,"app-item-icon",10),O("click",function(){let n=B(i).$implicit,l=s(4);return U(l.showDetails(n))}),m()}if(e&2){let i=t.$implicit,o=s(4);Q("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===i.item.id),p("amount",i.amount)("itemName",i.item.iconName)}}function eo(e,t){if(e&1&&(r(0,"div",7),y(1,Zn,1,4,"app-item-icon",9,T),m()),e&2){let i=s();a(),b(i)}}function to(e,t){if(e&1&&u(0,"app-cooking-table",8),e&2){let i=s();p("dataSource",i)}}function io(e,t){if(e&1&&c(0,eo,3,0,"div",7)(1,to,1,1,"app-cooking-table",8),e&2){let i=s(2);_(i.showTable?-1:0),a(),_(i.showTable?1:-1)}}function no(e,t){if(e&1){let i=A();r(0,"mat-tab",2),f(1,"addSpacesToPascalCase"),f(2,"titlecase"),r(3,"app-data-filter",6),ne("showTableChange",function(n){B(i);let l=s();return ie(l.showTable,n)||(l.showTable=n),U(n)}),m(),c(4,io,2,2),f(5,"async"),m()}if(e&2){let i,o=t.$implicit,n=s();p("label",n.cookingUtensilMapping[o.toLowerCase()]?n.cookingUtensilMapping[o.toLowerCase()].displayName:C(2,5,C(1,3,o))),a(3),te("showTable",n.showTable),a(),_((i=C(5,7,n.filteredData$(o)))?4:-1,i)}}var At=(()=>{let t=class t extends Ue{constructor(){super(),this.utensilNames=[],this.quality=Ne,this.cookingUtensilMapping=this._database.getCookingUtensilMapping(),this._consumables=[],this.urlPathFromLabel=o=>{let n=Object.keys(this.cookingUtensilMapping).find(l=>this.cookingUtensilMapping[l].displayName===o);return n||o.toLowerCase().replaceAll(" ","")},Ke([this._database.fetchCookingRecipes$(),this._database.fetchConsumables$()]).pipe(X(1)).subscribe({next:([o,n])=>{this._consumables=n,this.utensilNames=Object.keys(o),this.activateTabFromRoute(this.utensilNames)}})}filteredData$(o){return this._database.fetchCookingRecipes$().pipe(ke(n=>n[o]),De(n=>{this.reusedImages=this.getMultipleIconNames(n.map(l=>l.item?.iconName??""))}))}showDetails(o){super.showDetails(o),this.selectedEntityConsumable=this._consumables.find(n=>n.key===o?.item?.id)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=x({type:t,selectors:[["app-cooking"]],features:[P],decls:5,vars:2,consts:[["context","cooking_recipes","listDetail","",3,"itemId"],["mat-stretch-tabs","false",1,"w-full",3,"selectedTabChange","selectedIndex"],[3,"label"],["appDatabaseItemDetails",""],[3,"consumable"],[1,"mb-4",3,"cookingRecipe"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(n,l){n&1&&(r(0,"app-list-detail-container"),c(1,Xn,2,1,"app-database-item-details",0),r(2,"mat-tab-group",1),O("selectedTabChange",function($){return l.updateUrl($)}),y(3,no,6,9,"mat-tab",2,T),m()()),n&2&&(a(),_(l.selectedEntity?1:-1),a(),p("selectedIndex",l.selectedTabIndex()),a(),b(l.utensilNames))},dependencies:[v,re,be,le,me,z,Se,Oe,Ve,Ht,W,N,S],encapsulation:2});let e=t;return e})();var oo=[{path:"",pathMatch:"full",redirectTo:"inventory"},{path:"",component:St,children:[{path:"inventory",component:$t,title:"Inventory - Crafting"},{path:"artisan",redirectTo:"artisan/",pathMatch:"full"},{path:"artisan/:tabName",component:Ut,title:"Artisan - Crafting"},{path:"cooking",redirectTo:"cooking/",pathMatch:"full"},{path:"cooking/:tabName",component:At,title:"Cooking - Crafting"},{path:"mixing",loadComponent:()=>import("./chunk-7FKT42WR.js").then(e=>e.MixingComponent),title:"Mixing - Crafting"}]}],Ot=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Me({type:t}),t.\u0275inj=Pe({imports:[qe.forChild(oo),qe]});let e=t;return e})();var or=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Me({type:t}),t.\u0275inj=Pe({imports:[j,Ot,G,ht,gt,Tt,z,Oe,Ve,Ae,He]});let e=t;return e})();export{Se as a,z as b,Ae as c,Oe as d,Nt as e,Bt as f,Ve as g,Ht as h,or as i}; diff --git a/chunk-X6Q72XDI.js b/chunk-OYNPJTXB.js similarity index 90% rename from chunk-X6Q72XDI.js rename to chunk-OYNPJTXB.js index 5db4daf9ee..4620d3bd5e 100644 --- a/chunk-X6Q72XDI.js +++ b/chunk-OYNPJTXB.js @@ -1 +1 @@ -import{f as J,g as Q,h as X,k as Z,n as ee,o as te,t as ie}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as d,Ca as b,E as N,Fa as m,Ga as S,Ha as D,Ia as g,Ib as z,Ja as s,Ka as r,La as _,Ma as F,Na as P,Nd as O,Ne as q,P as V,Pa as u,Pd as K,Ra as I,Sa as l,Sd as Y,V as h,W as C,a as R,b as B,c as $,db as f,fb as L,ib as v,j as k,jb as A,ka as p,kb as E,m as M,mb as W,me as j,mf as G,qb as w,rb as x,ta as H,wa as c}from"./chunk-4KZEYPV3.js";function ae(e,n){if(e&1&&_(0,"app-shop-item-data-details",1),e&2){let t=l();d("shopItemData",t.selectedEntity)}}function oe(e,n){if(e&1&&_(0,"app-animal-details",2),e&2){let t=l();d("mappedAnimalShopData",t.selectedAnimal)}}function le(e,n){e&1&&_(0,"app-opening-hours",7),e&2&&d("openingHours",n)}function pe(e,n){if(e&1&&(c(0,le,1,1,"app-opening-hours",7),w(1,"async")),e&2){let t,i=l();m((t=x(1,1,i.openingHours$))?0:-1,t)}}function re(e,n){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let o=h(t).$implicit,a=l(4);return C(a.showDetails(o))}),r()}if(e&2){let t=n.$implicit,i=l(4);b("selected-icon",(i.selectedEntity==null||i.selectedEntity.item==null?null:i.selectedEntity.item.id)===t.item.id),d("itemName",t.item.iconName)}}function me(e,n){if(e&1&&(s(0,"div",9),D(1,re,1,3,"app-item-icon",11,S),r()),e&2){let t=l();p(),g(t)}}function se(e,n){if(e&1&&_(0,"app-shop-item-data-table",10),e&2){let t=l();d("dataSource",t)}}function ce(e,n){if(e&1){let t=u();s(0,"app-data-filter",8),E("showTableChange",function(o){h(t);let a=l(2);return A(a.showTable,o)||(a.showTable=o),C(o)}),r(),c(1,me,3,0,"div",9)(2,se,1,1,"app-shop-item-data-table",10)}if(e&2){let t=l(2);v("showTable",t.showTable),p(),m(t.showTable?-1:1),p(),m(t.showTable?2:-1)}}function de(e,n){if(e&1&&(s(0,"h2",5),f(1,"Stock list"),r(),c(2,ce,3,3),w(3,"async")),e&2){let t,i=l();p(2),m((t=x(3,1,i.shopItemData$))?2:-1,t)}}function _e(e,n){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let o=h(t).$implicit,a=l(3);return C(a.showAnimal(o))}),r()}if(e&2){let t,i=n.$implicit,o=l(3);b("selected-icon",(o.selectedAnimal==null?null:o.selectedAnimal.key)===i.key),d("itemName",(t=i.animal==null||i.animal.variants==null||i.animal.variants[0]==null||i.animal.variants[0].icons==null?null:i.animal.variants[0].icons.adult)!==null&&t!==void 0?t:null)}}function he(e,n){if(e&1&&(s(0,"div",9),D(1,_e,1,3,"app-item-icon",11,S),r()),e&2){let t=l();p(),g(t)}}function Ce(e,n){if(e&1){let t=u();s(0,"app-data-filter",8),E("showTableChange",function(o){h(t);let a=l();return A(a.showTable,o)||(a.showTable=o),C(o)}),r(),c(1,he,3,0,"div",9)}if(e&2){let t=l();v("showTable",t.showTable),p(),m(t.showTable?-1:1)}}function ue(e,n){e&1&&_(0,"app-animal-mood-table",6),e&2&&d("productSizeByMood",n)}var $e=(()=>{let n=class n extends J{constructor(){super(),this.shopName="underwater-ranch",this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.sizeByMood$=this._database.fetchAnimalMoodData$(),this.animalData$=M([this._database.fetchAnimals$(),this._database.fetchAnimalShopData$(this.shopName)]).pipe(N(([i,o])=>k(o.map(a=>{let U=a,{animalKey:y}=U,T=$(U,["animalKey"]);return B(R({},T),{animal:i.find(ne=>ne.key===y)})}))))}showDetails(i){super.showDetails(i),this.selectedAnimal=void 0}showAnimal(i){this.selectedAnimal=i,this.selectedEntity=void 0,this.listDetail.open()}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=V({type:n,selectors:[["app-underwater-ranch"]],standalone:!0,features:[H,W],decls:18,vars:12,consts:[["listDetail",""],[3,"shopItemData"],[3,"mappedAnimalShopData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"productSizeByMood"],[3,"openingHours"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(o,a){if(o&1&&(s(0,"app-list-detail-container"),F(1,0),c(2,ae,1,1,"app-shop-item-data-details",1)(3,oe,1,1,"app-animal-details",2),P(),s(4,"app-card")(5,"h1",3),_(6,"app-ui-icon",4),f(7),r(),c(8,pe,2,3),r(),c(9,de,4,3),s(10,"h2",5),f(11,"Animals"),r(),c(12,Ce,2,2),w(13,"async"),s(14,"h2",5),f(15,"Animal product size per mood and hearts"),r(),c(16,ue,1,1,"app-animal-mood-table",6),w(17,"async"),r()),o&2){let y,T;p(2),m(a.selectedEntity?2:-1),p(),m(a.selectedAnimal?3:-1),p(3),d("uiIcon",a.SHOP_ICONS[a.shopName]),p(),L(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),p(),m(a.openingHours$?8:-1),p(),m(a.shopItemData$?9:-1),p(3),m((y=x(13,8,a.animalData$))?12:-1,y),p(4),m((T=x(17,10,a.sizeByMood$))?16:-1,T)}},dependencies:[ie,X,Z,Q,te,ee,G,K,Y,j,q,z,O],encapsulation:2});let e=n;return e})();export{$e as UnderwaterRanchComponent}; +import{f as J,g as Q,h as X,k as Z,n as ee,o as te,t as ie}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as d,Da as b,E as N,Ga as m,Ha as S,Ia as D,Ja as g,Ka as s,Kb as z,La as r,Ma as _,Na as F,Oa as P,P as V,Qa as u,Sa as I,Ta as l,Td as O,Te as q,Vd as K,W as h,X as C,Yd as Y,a as R,b as B,c as $,eb as f,gb as L,j as k,jb as v,kb as A,la as p,lb as E,m as M,nb as W,rb as w,sb as x,se as j,sf as G,ua as H,xa as c}from"./chunk-PYTDIKHQ.js";function ae(e,n){if(e&1&&_(0,"app-shop-item-data-details",1),e&2){let t=l();d("shopItemData",t.selectedEntity)}}function oe(e,n){if(e&1&&_(0,"app-animal-details",2),e&2){let t=l();d("mappedAnimalShopData",t.selectedAnimal)}}function le(e,n){e&1&&_(0,"app-opening-hours",7),e&2&&d("openingHours",n)}function pe(e,n){if(e&1&&(c(0,le,1,1,"app-opening-hours",7),w(1,"async")),e&2){let t,i=l();m((t=x(1,1,i.openingHours$))?0:-1,t)}}function re(e,n){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let o=h(t).$implicit,a=l(4);return C(a.showDetails(o))}),r()}if(e&2){let t=n.$implicit,i=l(4);b("selected-icon",(i.selectedEntity==null||i.selectedEntity.item==null?null:i.selectedEntity.item.id)===t.item.id),d("itemName",t.item.iconName)}}function me(e,n){if(e&1&&(s(0,"div",9),D(1,re,1,3,"app-item-icon",11,S),r()),e&2){let t=l();p(),g(t)}}function se(e,n){if(e&1&&_(0,"app-shop-item-data-table",10),e&2){let t=l();d("dataSource",t)}}function ce(e,n){if(e&1){let t=u();s(0,"app-data-filter",8),E("showTableChange",function(o){h(t);let a=l(2);return A(a.showTable,o)||(a.showTable=o),C(o)}),r(),c(1,me,3,0,"div",9)(2,se,1,1,"app-shop-item-data-table",10)}if(e&2){let t=l(2);v("showTable",t.showTable),p(),m(t.showTable?-1:1),p(),m(t.showTable?2:-1)}}function de(e,n){if(e&1&&(s(0,"h2",5),f(1,"Stock list"),r(),c(2,ce,3,3),w(3,"async")),e&2){let t,i=l();p(2),m((t=x(3,1,i.shopItemData$))?2:-1,t)}}function _e(e,n){if(e&1){let t=u();s(0,"app-item-icon",12),I("click",function(){let o=h(t).$implicit,a=l(3);return C(a.showAnimal(o))}),r()}if(e&2){let t,i=n.$implicit,o=l(3);b("selected-icon",(o.selectedAnimal==null?null:o.selectedAnimal.key)===i.key),d("itemName",(t=i.animal==null||i.animal.variants==null||i.animal.variants[0]==null||i.animal.variants[0].icons==null?null:i.animal.variants[0].icons.adult)!==null&&t!==void 0?t:null)}}function he(e,n){if(e&1&&(s(0,"div",9),D(1,_e,1,3,"app-item-icon",11,S),r()),e&2){let t=l();p(),g(t)}}function Ce(e,n){if(e&1){let t=u();s(0,"app-data-filter",8),E("showTableChange",function(o){h(t);let a=l();return A(a.showTable,o)||(a.showTable=o),C(o)}),r(),c(1,he,3,0,"div",9)}if(e&2){let t=l();v("showTable",t.showTable),p(),m(t.showTable?-1:1)}}function ue(e,n){e&1&&_(0,"app-animal-mood-table",6),e&2&&d("productSizeByMood",n)}var $e=(()=>{let n=class n extends J{constructor(){super(),this.shopName="underwater-ranch",this.openingHours$=this._database.fetchOpeningHours$(this.shopName),this.sizeByMood$=this._database.fetchAnimalMoodData$(),this.animalData$=M([this._database.fetchAnimals$(),this._database.fetchAnimalShopData$(this.shopName)]).pipe(N(([i,o])=>k(o.map(a=>{let U=a,{animalKey:y}=U,T=$(U,["animalKey"]);return B(R({},T),{animal:i.find(ne=>ne.key===y)})}))))}showDetails(i){super.showDetails(i),this.selectedAnimal=void 0}showAnimal(i){this.selectedAnimal=i,this.selectedEntity=void 0,this.listDetail.open()}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=V({type:n,selectors:[["app-underwater-ranch"]],standalone:!0,features:[H,W],decls:18,vars:12,consts:[["listDetail",""],[3,"shopItemData"],[3,"mappedAnimalShopData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"productSizeByMood"],[3,"openingHours"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(o,a){if(o&1&&(s(0,"app-list-detail-container"),F(1,0),c(2,ae,1,1,"app-shop-item-data-details",1)(3,oe,1,1,"app-animal-details",2),P(),s(4,"app-card")(5,"h1",3),_(6,"app-ui-icon",4),f(7),r(),c(8,pe,2,3),r(),c(9,de,4,3),s(10,"h2",5),f(11,"Animals"),r(),c(12,Ce,2,2),w(13,"async"),s(14,"h2",5),f(15,"Animal product size per mood and hearts"),r(),c(16,ue,1,1,"app-animal-mood-table",6),w(17,"async"),r()),o&2){let y,T;p(2),m(a.selectedEntity?2:-1),p(),m(a.selectedAnimal?3:-1),p(3),d("uiIcon",a.SHOP_ICONS[a.shopName]),p(),L(" ",a.SHOP_DISPLAY_NAMES[a.shopName]," "),p(),m(a.openingHours$?8:-1),p(),m(a.shopItemData$?9:-1),p(3),m((y=x(13,8,a.animalData$))?12:-1,y),p(4),m((T=x(17,10,a.sizeByMood$))?16:-1,T)}},dependencies:[ie,X,Z,Q,te,ee,G,K,Y,j,q,z,O],encapsulation:2});let e=n;return e})();export{$e as UnderwaterRanchComponent}; diff --git a/chunk-PYTDIKHQ.js b/chunk-PYTDIKHQ.js new file mode 100644 index 0000000000..b67662f2e0 --- /dev/null +++ b/chunk-PYTDIKHQ.js @@ -0,0 +1,24 @@ +var mI=Object.defineProperty,gI=Object.defineProperties;var _I=Object.getOwnPropertyDescriptors;var ec=Object.getOwnPropertySymbols;var A_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable;var k_=t=>{throw TypeError(t)};var M_=(t,e,r)=>e in t?mI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||={})A_.call(e,r)&&M_(t,r,e[r]);if(ec)for(var r of ec(e))R_.call(e,r)&&M_(t,r,e[r]);return t},ue=(t,e)=>gI(t,_I(e));var vI=(t,e)=>{var r={};for(var n in t)A_.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&ec)for(var n of ec(t))e.indexOf(n)<0&&R_.call(t,n)&&(r[n]=t[n]);return r};var Xu=(t,e,r)=>e.has(t)||k_("Cannot "+r);var yt=(t,e,r)=>(Xu(t,e,"read from private field"),r?r.call(t):e.get(t)),tn=(t,e,r)=>e.has(t)?k_("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),yr=(t,e,r,n)=>(Xu(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Ju=(t,e,r)=>(Xu(t,e,"access private method"),r);var vs=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(l){i(l)}},s=c=>{try{a(r.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function X(t){return typeof t=="function"}function tc(t){return t&&X(t.schedule)}function ef(t){return t[t.length-1]}function nc(t){return X(ef(t))?t.pop():void 0}function jn(t){return tc(ef(t))?t.pop():void 0}function O_(t,e){return typeof ef(t)=="number"?t.pop():e}function F_(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(d){try{l(n.next(d))}catch(u){s(u)}}function c(d){try{l(n.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):i(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})}function N_(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function br(t){return this instanceof br?(this.v=t,this):new br(t)}function P_(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(m){return new Promise(function(y,A){o.push([f,m,y,A])>1||a(f,m)})})}function a(f,m){try{c(n[f](m))}catch(y){u(o[0][3],y)}}function c(f){f.value instanceof br?Promise.resolve(f.value.v).then(l,d):u(o[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function u(f,m){f(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function L_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof N_=="function"?N_(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var so=t=>t&&typeof t.length=="number"&&typeof t!="function";function ic(t){return X(t?.then)}function ao(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var rc=ao(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function wr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Ce=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(X(n))try{n()}catch(o){e=o instanceof rc?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{j_(o)}catch(s){e=e??[],s instanceof rc?e=[...e,...s.errors]:e.push(s)}}if(e)throw new rc(e)}}add(e){var r;if(e&&e!==this)if(this.closed)j_(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&wr(r,e)}remove(e){let{_finalizers:r}=this;r&&wr(r,e),e instanceof t&&e._removeParent(this)}};Ce.EMPTY=(()=>{let t=new Ce;return t.closed=!0,t})();var tf=Ce.EMPTY;function oc(t){return t instanceof Ce||t&&"closed"in t&&X(t.remove)&&X(t.add)&&X(t.unsubscribe)}function j_(t){X(t)?t():t.unsubscribe()}var Cn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var co={setTimeout(t,e,...r){let{delegate:n}=co;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=co;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function sc(t){co.setTimeout(()=>{let{onUnhandledError:e}=Cn;if(e)e(t);else throw t})}function fi(){}var V_=nf("C",void 0,void 0);function B_(t){return nf("E",void 0,t)}function H_(t){return nf("N",t,void 0)}function nf(t,e,r){return{kind:t,value:e,error:r}}var Cr=null;function lo(t){if(Cn.useDeprecatedSynchronousErrorHandling){let e=!Cr;if(e&&(Cr={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Cr;if(Cr=null,r)throw n}}else t()}function $_(t){Cn.useDeprecatedSynchronousErrorHandling&&Cr&&(Cr.errorThrown=!0,Cr.error=t)}var xr=class extends Ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,oc(e)&&e.add(this)):this.destination=wI}static create(e,r,n){return new hi(e,r,n)}next(e){this.isStopped?of(H_(e),this):this._next(e)}error(e){this.isStopped?of(B_(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?of(V_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},yI=Function.prototype.bind;function rf(t,e){return yI.call(t,e)}var sf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){ac(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){ac(n)}else ac(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){ac(r)}}},hi=class extends xr{constructor(e,r,n){super();let i;if(X(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Cn.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&rf(e.next,o),error:e.error&&rf(e.error,o),complete:e.complete&&rf(e.complete,o)}):i=e}this.destination=new sf(i)}};function ac(t){Cn.useDeprecatedSynchronousErrorHandling?$_(t):sc(t)}function bI(t){throw t}function of(t,e){let{onStoppedNotification:r}=Cn;r&&co.setTimeout(()=>r(t,e))}var wI={closed:!0,next:fi,error:bI,complete:fi};var uo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Pt(t){return t}function af(...t){return cf(t)}function cf(t){return t.length===0?Pt:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var Z=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=xI(r)?r:new hi(r,n,i);return lo(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=U_(n),new n((i,o)=>{let s=new hi({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[uo](){return this}pipe(...r){return cf(r)(this)}toPromise(r){return r=U_(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function U_(t){var e;return(e=t??Cn.Promise)!==null&&e!==void 0?e:Promise}function CI(t){return t&&X(t.next)&&X(t.error)&&X(t.complete)}function xI(t){return t&&t instanceof xr||CI(t)&&oc(t)}function cc(t){return X(t[uo])}function lc(t){return Symbol.asyncIterator&&X(t?.[Symbol.asyncIterator])}function dc(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function DI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var uc=DI();function fc(t){return X(t?.[uc])}function hc(t){return P_(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield br(r.read());if(i)return yield br(void 0);yield yield br(n)}}finally{r.releaseLock()}})}function pc(t){return X(t?.getReader)}function Ne(t){if(t instanceof Z)return t;if(t!=null){if(cc(t))return EI(t);if(so(t))return II(t);if(ic(t))return SI(t);if(lc(t))return z_(t);if(fc(t))return TI(t);if(pc(t))return MI(t)}throw dc(t)}function EI(t){return new Z(e=>{let r=t[uo]();if(X(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function II(t){return new Z(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,sc)})}function TI(t){return new Z(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function z_(t){return new Z(e=>{AI(t,e).catch(r=>e.error(r))})}function MI(t){return z_(hc(t))}function AI(t,e){var r,n,i,o;return F_(this,void 0,void 0,function*(){try{for(r=L_(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ut(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function lf(t){return X(t?.lift)}function oe(t){return e=>{if(lf(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function se(t,e,r,n,i){return new df(t,e,r,n,i)}var df=class extends xr{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function mc(t,e=0){return oe((r,n)=>{r.subscribe(se(n,i=>Ut(n,t,()=>n.next(i),e),()=>Ut(n,t,()=>n.complete(),e),i=>Ut(n,t,()=>n.error(i),e)))})}function gc(t,e=0){return oe((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function G_(t,e){return Ne(t).pipe(gc(e),mc(e))}function q_(t,e){return Ne(t).pipe(gc(e),mc(e))}function W_(t,e){return new Z(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Y_(t,e){return new Z(r=>{let n;return Ut(r,e,()=>{n=t[uc](),Ut(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>X(n?.return)&&n.return()})}function _c(t,e){if(!t)throw new Error("Iterable cannot be null");return new Z(r=>{Ut(r,e,()=>{let n=t[Symbol.asyncIterator]();Ut(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Q_(t,e){return _c(hc(t),e)}function Z_(t,e){if(t!=null){if(cc(t))return G_(t,e);if(so(t))return W_(t,e);if(ic(t))return q_(t,e);if(lc(t))return _c(t,e);if(fc(t))return Y_(t,e);if(pc(t))return Q_(t,e)}throw dc(t)}function $e(t,e){return e?Z_(t,e):Ne(t)}function B(...t){let e=jn(t);return $e(t,e)}function j(t,e){return oe((r,n)=>{let i=0;r.subscribe(se(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:RI}=Array,{getPrototypeOf:kI,prototype:OI,keys:NI}=Object;function vc(t){if(t.length===1){let e=t[0];if(RI(e))return{args:e,keys:null};if(FI(e)){let r=NI(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function FI(t){return t&&typeof t=="object"&&kI(t)===OI}var{isArray:PI}=Array;function LI(t,e){return PI(e)?t(...e):t(e)}function fo(t){return j(e=>LI(t,e))}function yc(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function zt(...t){let e=jn(t),r=nc(t),{args:n,keys:i}=vc(t);if(n.length===0)return $e([],e);let o=new Z(jI(n,e,i?s=>yc(i,s):Pt));return r?o.pipe(fo(r)):o}function jI(t,e,r=Pt){return n=>{K_(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let l=$e(t[c],e),d=!1;l.subscribe(se(n,u=>{o[c]=u,d||(d=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function K_(t,e,r){t?Ut(r,t,e):e()}function rt(t,e){return oe((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(se(n,c=>{i?.unsubscribe();let l=0,d=o++;Ne(t(c,d)).subscribe(i=se(n,u=>n.next(e?e(c,u,d,l++):u),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ho(){return oe((t,e)=>{let r=null;t._refCount++;let n=se(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Vn=class extends Z{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,lf(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ce;let r=this.getSubject();e.add(this.source.subscribe(se(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ce.EMPTY)}return e}refCount(){return ho()(this)}};var X_=ao(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var N=(()=>{class t extends Z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new bc(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new X_}next(r){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?tf:(this.currentObservers=null,o.push(r),new Ce(()=>{this.currentObservers=null,wr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new Z;return r.source=this,r}}return t.create=(e,r)=>new bc(e,r),t})(),bc=class extends N{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:tf}};var Ze=class extends N{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ys={now(){return(ys.delegate||Date).now()},delegate:void 0};var Bi=class extends N{constructor(e=1/0,r=1/0,n=ys){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;r||(n.push(e),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function mo(t,e){let r=X(t)?t:()=>t,n=i=>i.error(r());return new Z(e?i=>e.schedule(n,0,i):n)}function Er(t){return!!t&&(t instanceof Z||X(t.lift)&&X(t.subscribe))}var pi=ao(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ev(t){return t instanceof Date&&!isNaN(t)}function tv(t,e,r,n,i,o,s,a){let c=[],l=0,d=0,u=!1,f=()=>{u&&!c.length&&!l&&e.complete()},m=A=>l{o&&e.next(A),l++;let k=!1;Ne(r(A,d++)).subscribe(se(e,O=>{i?.(O),o?m(O):e.next(O)},()=>{k=!0},void 0,()=>{if(k)try{for(l--;c.length&&ly(O)):y(O)}f()}catch(O){e.error(O)}}))};return t.subscribe(se(e,m,()=>{u=!0,f()})),()=>{a?.()}}function nt(t,e,r=1/0){return X(e)?nt((n,i)=>j((o,s)=>e(n,o,i,s))(Ne(t(n,i))),r):(typeof e=="number"&&(r=e),oe((n,i)=>tv(n,i,t,r)))}function Bn(t=1/0){return nt(Pt,t)}function nv(){return Bn(1)}function Hn(...t){return nv()($e(t,jn(t)))}function go(t){return new Z(e=>{Ne(t()).subscribe(e)})}function uf(...t){let e=nc(t),{args:r,keys:n}=vc(t),i=new Z(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=f},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?yc(n,a):a),o.complete())}))}});return e?i.pipe(fo(e)):i}var VI=["addListener","removeListener"],BI=["addEventListener","removeEventListener"],HI=["on","off"];function pn(t,e,r,n){if(X(r)&&(n=r,r=void 0),n)return pn(t,e,r).pipe(fo(n));let[i,o]=zI(t)?BI.map(s=>a=>t[s](e,a,r)):$I(t)?VI.map(iv(t,e)):UI(t)?HI.map(iv(t,e)):[];if(!i&&so(t))return nt(s=>pn(s,e,r))(Ne(t));if(!i)throw new TypeError("Invalid event target");return new Z(s=>{let a=(...c)=>s.next(1o(a)})}function iv(t,e){return r=>n=>t[r](e,n)}function $I(t){return X(t.addListener)&&X(t.removeListener)}function UI(t){return X(t.on)&&X(t.off)}function zI(t){return X(t.addEventListener)&&X(t.removeEventListener)}function Ir(t=0,e,r=J_){let n=-1;return e!=null&&(tc(e)?r=e:n=e),new Z(i=>{let o=ev(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function at(...t){let e=jn(t),r=O_(t,1/0),n=t;return n.length?n.length===1?Ne(n[0]):Bn(r)($e(n,e)):It}var GI=new Z(fi);function xe(t,e){return oe((r,n)=>{let i=0;r.subscribe(se(n,o=>t.call(e,o,i++)&&n.next(o)))})}function rv(t){return oe((e,r)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let l=i;i=null,r.next(l)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(se(r,l=>{n=!0,i=l,o||Ne(t(l)).subscribe(o=se(r,a,c))},()=>{s=!0,(!n||!o||o.closed)&&r.complete()}))})}function Dc(t,e=Dr){return rv(()=>Ir(t,e))}function mi(t){return oe((e,r)=>{let n=null,i=!1,o;n=e.subscribe(se(r,void 0,void 0,s=>{o=Ne(t(s,mi(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function ov(t,e,r,n,i){return(o,s)=>{let a=r,c=e,l=0;o.subscribe(se(s,d=>{let u=l++;c=a?t(c,d,u):(a=!0,d),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function gi(t,e){return X(e)?nt(t,e,1):nt(t,1)}function sv(t){return new Z(e=>t.subscribe(e))}var qI={connector:()=>new N};function Ec(t,e=qI){let{connector:r}=e;return oe((n,i)=>{let o=r();Ne(t(sv(o))).subscribe(i),i.add(n.subscribe(o))})}function mn(t,e=Dr){return oe((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let l=o;o=null,n.next(l)}};function c(){let l=s+t,d=e.now();if(d{o=l,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Hi(t){return oe((e,r)=>{let n=!1;e.subscribe(se(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Je(t){return t<=0?()=>It:oe((e,r)=>{let n=0;e.subscribe(se(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function av(){return oe((t,e)=>{t.subscribe(se(e,fi))})}function $i(t){return j(()=>t)}function ff(t,e){return e?r=>Hn(e.pipe(Je(1),av()),r.pipe(ff(t))):nt((r,n)=>Ne(t(r,n)).pipe(Je(1),$i(r)))}function WI(t,e=Dr){let r=Ir(t,e);return ff(()=>r)}function $n(t,e=Pt){return t=t??YI,oe((r,n)=>{let i,o=!0;r.subscribe(se(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function YI(t,e){return t===e}function Ic(t=QI){return oe((e,r)=>{let n=!1;e.subscribe(se(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function QI(){return new pi}function Ui(t){return oe((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Un(t,e){let r=arguments.length>=2;return n=>n.pipe(t?xe((i,o)=>t(i,o,n)):Pt,Je(1),r?Hi(e):Ic(()=>new pi))}function _o(t){return t<=0?()=>It:oe((e,r)=>{let n=[];e.subscribe(se(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function hf(t,e){let r=arguments.length>=2;return n=>n.pipe(t?xe((i,o)=>t(i,o,n)):Pt,_o(1),r?Hi(e):Ic(()=>new pi))}function cv(t,e){let r=X(t)?t:()=>t;return X(e)?Ec(e,{connector:r}):n=>new Vn(n,r)}function ZI(t){return t?e=>Ec(t)(e):e=>cv(new N)(e)}function pf(t,e){return oe(ov(t,e,arguments.length>=2,!0))}function lv(t={}){let{connector:e=()=>new N,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},m=()=>{f(),s=c=void 0,d=u=!1},y=()=>{let A=s;m(),A?.unsubscribe()};return oe((A,k)=>{l++,!u&&!d&&f();let O=c=c??e();k.add(()=>{l--,l===0&&!u&&!d&&(a=mf(y,i))}),O.subscribe(k),!s&&l>0&&(s=new hi({next:le=>O.next(le),error:le=>{u=!0,f(),a=mf(m,r,le),O.error(le)},complete:()=>{d=!0,f(),a=mf(m,n),O.complete()}}),Ne(A).subscribe(s))})(o)}}function mf(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new hi({next:()=>{n.unsubscribe(),t()}});return Ne(e(...r)).subscribe(n)}function de(t,e,r){let n,i=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:r}=t:n=t??1/0,lv({connector:()=>new Bi(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Sr(t){return xe((e,r)=>t<=r)}function St(...t){let e=jn(t);return oe((r,n)=>{(e?Hn(t,r,e):Hn(t,r)).subscribe(n)})}function K(t){return oe((e,r)=>{Ne(t).subscribe(se(r,()=>r.complete(),fi)),!r.closed&&e.subscribe(r)})}function gf(t,e=!1){return oe((r,n)=>{let i=0;r.subscribe(se(n,o=>{let s=t(o,i++);(s||e)&&n.next(o),!s&&n.complete()}))})}function Ie(t,e,r){let n=X(t)||e||r?{next:t,error:e,complete:r}:t;return n?oe((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(se(o,c=>{var l;(l=n.next)===null||l===void 0||l.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var l;a=!1,(l=n.error)===null||l===void 0||l.call(n,c),o.error(c)},()=>{var c,l;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Pt}function dv(t,e){return Object.is(t,e)}var bt=null,ws=!1,Sc=1,nn=Symbol("SIGNAL");function De(t){let e=bt;return bt=t,e}function KI(){return ws}var xs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Mc(t){if(ws)throw new Error("");if(bt===null)return;bt.consumerOnSignalRead(t);let e=bt.nextProducerIndex++;if(vo(bt),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function kc(t){vo(t);for(let e=0;e0}function vo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function gv(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function wf(t){let e=Object.create(JI);e.computation=t;let r=()=>{if(uv(e),Mc(e),e.value===Tc)throw e.error;return e.value};return r[nn]=e,r}var _f=Symbol("UNSET"),vf=Symbol("COMPUTING"),Tc=Symbol("ERRORED"),JI=ue(S({},xs),{value:_f,dirty:!0,error:null,equal:dv,producerMustRecompute(t){return t.value===_f||t.value===vf},producerRecomputeValue(t){if(t.value===vf)throw new Error("Detected cycle in computations.");let e=t.value;t.value=vf;let r=Ac(t),n;try{n=t.computation()}catch(i){n=Tc,t.error=i}finally{Rc(t,r)}if(e!==_f&&e!==Tc&&n!==Tc&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function eS(){throw new Error}var _v=eS;function vv(){_v()}function yv(t){_v=t}var tS=null;function bv(t){let e=Object.create(Cf);e.value=t;let r=()=>(Mc(e),e.value);return r[nn]=e,r}function Nc(t,e){hv()||vv(),t.equal(t.value,e)||(t.value=e,nS(t))}function wv(t,e){hv()||vv(),Nc(t,e(t.value))}var Cf=ue(S({},xs),{equal:dv,value:void 0});function nS(t){t.version++,XI(),fv(t),tS?.()}function Cv(t,e,r){let n=Object.create(iS);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(bf(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=yf)}let a=()=>{if(n.fn===null)return;if(KI())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!kc(n))return;n.hasRun=!0;let c=Ac(n);try{n.cleanupFn(),n.cleanupFn=yf,n.fn(i)}finally{Rc(n,c)}};return n.ref={notify:()=>pv(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[nn]:n},n.ref}var yf=()=>{},iS=ue(S({},xs),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:yf});var Dy="https://g.co/ng/security#xss",V=class extends Error{constructor(e,r){super(xl(e,r)),this.code=e}};function xl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Ey=Symbol("InputSignalNode#UNSET"),rS=ue(S({},Cf),{transformFn:void 0,applyValueToInputSignal(t,e){Nc(t,e)}});function Iy(t,e){let r=Object.create(rS);r.value=t,r.transformFn=e?.transform;function n(){if(Mc(r),r.value===Ey)throw new V(-950,!1);return r.value}return n[nn]=r,n}function js(t){return{toString:t}.toString()}var Fc="__parameters__";function oS(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Sy(t,e,r){return js(()=>{let n=oS(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,d){let u=c.hasOwnProperty(Fc)?c[Fc]:Object.defineProperty(c,Fc,{value:[]})[Fc];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ht=globalThis;function qe(t){for(let e in t)if(t[e]===qe)return e;throw Error("Could not find renamed property on target object.")}function sS(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function jt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(jt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function jf(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var aS=qe({__forward_ref__:qe});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return jt(this())},t}function Tt(t){return Ty(t)?t():t}function Ty(t){return typeof t=="function"&&t.hasOwnProperty(aS)&&t.__forward_ref__===Ct}function My(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function I(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function Dl(t){return xv(t,Ry)||xv(t,ky)}function Ay(t){return Dl(t)!==null}function xv(t,e){return t.hasOwnProperty(e)?t[e]:null}function cS(t){let e=t&&(t[Ry]||t[ky]);return e||null}function Dv(t){return t&&(t.hasOwnProperty(Ev)||t.hasOwnProperty(lS))?t[Ev]:null}var Ry=qe({\u0275prov:qe}),Ev=qe({\u0275inj:qe}),ky=qe({ngInjectableDef:qe}),lS=qe({ngInjectorDef:qe}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=I({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Oy(t){return t&&!!t.\u0275providers}var dS=qe({\u0275cmp:qe}),uS=qe({\u0275dir:qe}),fS=qe({\u0275pipe:qe}),hS=qe({\u0275mod:qe}),Qc=qe({\u0275fac:qe}),Ds=qe({__NG_ELEMENT_ID__:qe}),Iv=qe({__NG_ENV_ID__:qe});function Wt(t){return typeof t=="string"?t:t==null?"":String(t)}function pS(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Wt(t)}function mS(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new V(-200,t)}function Wh(t,e){throw new V(-201,!1)}var Ee=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ee||{}),Vf;function Ny(){return Vf}function Gt(t){let e=Vf;return Vf=t,e}function Fy(t,e,r){let n=Dl(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&Ee.Optional)return null;if(e!==void 0)return e;Wh(t,"Injector")}var gS={},Is=gS,Bf="__NG_DI_FLAG__",Zc="ngTempTokenPath",_S="ngTokenPath",vS=/\n/gm,yS="\u0275",Sv="__source",Co;function bS(){return Co}function zi(t){let e=Co;return Co=t,e}function wS(t,e=Ee.Default){if(Co===void 0)throw new V(-203,!1);return Co===null?Fy(t,void 0,e):Co.get(t,e&Ee.Optional?null:void 0,e)}function C(t,e=Ee.Default){return(Ny()||wS)(Tt(t),e)}function g(t,e=Ee.Default){return C(t,El(e))}function El(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Hf(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):jt(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(vS,` + `)}`}var zr=Py(Sy("Optional"),8);var Oo=Py(Sy("SkipSelf"),4);function kr(t,e){let r=t.hasOwnProperty(Qc);return r?t[Qc]:null}function ES(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Yh(r,e):e(r))}function Ly(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Kc(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function SS(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Vs(t,e,r){let n=Bs(t,e);return n>=0?t[n|1]=r:(n=~n,TS(t,n,e,r)),n}function xf(t,e){let r=Bs(t,e);if(r>=0)return t[r|1]}function Bs(t,e){return MS(t,e,1)}function MS(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?u="":u=i[d+1].toLowerCase(),n&2&&l!==u){if(xn(n))return!1;s=!0}}}}return xn(n)||s}function xn(t){return(t&1)===0}function FS(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!xn(s)&&(e+=Mv(o,i),i=""),n=s,o=o||!xn(n);r++}return i!==""&&(e+=Mv(o,i)),e}function HS(t){return t.map(BS).join(",")}function $S(t){let e=[],r=[],n=1,i=2;for(;n{let e=qy(t),r=ue(S({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===By.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qn.Emulated,styles:t.styles||Lt,_:null,schemas:t.schemas||null,tView:null,id:""});Wy(r);let n=t.dependencies;return r.directiveDefs=Rv(n,!1),r.pipeDefs=Rv(n,!0),r.id=GS(r),r})}function US(t){return En(t)||Il(t)}function zS(t){return t!==null}function ee(t){return js(()=>({type:t.type,bootstrap:t.bootstrap||Lt,declarations:t.declarations||Lt,imports:t.imports||Lt,exports:t.exports||Lt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Av(t,e){if(t==null)return vi;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=Eo.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==Eo.None?[n,a]:n,e[o]=s):r[o]=n}return r}function F(t){return js(()=>{let e=qy(t);return Wy(e),e})}function ae(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function En(t){return t[dS]||null}function Il(t){return t[uS]||null}function Zh(t){return t[fS]||null}function zy(t){let e=En(t)||Il(t)||Zh(t);return e!==null?e.standalone:!1}function Gy(t,e){let r=t[hS]||null;if(!r&&e===!0)throw new Error(`Type ${jt(t)} does not have '\u0275mod' property.`);return r}function qy(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||vi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Lt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Av(t.inputs,e),outputs:Av(t.outputs),debugInfo:null}}function Wy(t){t.features?.forEach(e=>e(t))}function Rv(t,e){if(!t)return null;let r=e?Zh:US;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(zS)}function GS(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Sl(t){return{\u0275providers:t}}function qS(...t){return{\u0275providers:Kh(!0,t),\u0275fromNgModule:!0}}function Kh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Yh(e,s=>{let a=s;Uf(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Yy(i,o),r}function Yy(t,e){for(let r=0;r{e(o,n)})}}function Uf(t,e,r,n){if(t=Tt(t),!t)return!1;let i=null,o=Dv(t),s=!o&&En(t);if(!o&&!s){let c=t.ngModule;if(o=Dv(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Uf(l,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let l;try{Yh(o.imports,d=>{Uf(d,e,r,n)&&(l||=[],l.push(d))})}finally{}l!==void 0&&Yy(l,e)}if(!a){let l=kr(i)||(()=>new i);e({provide:i,useFactory:l,deps:Lt},i),e({provide:Vy,useValue:i,multi:!0},i),e({provide:Do,useValue:()=>C(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=t;Xh(c,d=>{e(d,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Xh(t,e){for(let r of t)Oy(r)&&(r=r.\u0275providers),Array.isArray(r)?Xh(r,e):e(r)}var WS=qe({provide:String,useValue:qe});function Qy(t){return t!==null&&typeof t=="object"&&WS in t}function YS(t){return!!(t&&t.useExisting)}function QS(t){return!!(t&&t.useFactory)}function Io(t){return typeof t=="function"}function ZS(t){return!!t.useClass}var Tl=new E(""),$c={},KS={},Df;function Ml(){return Df===void 0&&(Df=new Xc),Df}var pt=class{},Ts=class extends pt{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gf(e,s=>this.processProvider(s)),this.records.set(jy,yo(void 0,this)),i.has("environment")&&this.records.set(pt,yo(void 0,this));let o=this.records.get(Tl);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Vy,Lt,Ee.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=De(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),De(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=zi(this),n=Gt(void 0),i;try{return e()}finally{zi(r),Gt(n)}}get(e,r=Is,n=Ee.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Iv))return e[Iv](this);n=El(n);let i,o=zi(this),s=Gt(void 0);try{if(!(n&Ee.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=nT(e)&&Dl(e);l&&this.injectableDefInScope(l)?c=yo(zf(e),$c):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&Ee.Self?Ml():this.parent;return r=n&Ee.Optional&&r===Is?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Zc]=a[Zc]||[]).unshift(jt(e)),o)throw a;return xS(a,e,"R3InjectorError",this.source)}else throw a}finally{Gt(s),zi(o)}}resolveInjectorInitializers(){let e=De(null),r=zi(this),n=Gt(void 0),i;try{let o=this.get(Do,Lt,Ee.Self);for(let s of o)s()}finally{zi(r),Gt(n),De(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(jt(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new V(205,!1)}processProvider(e){e=Tt(e);let r=Io(e)?e:Tt(e&&e.provide),n=JS(e);if(!Io(e)&&e.multi===!0){let i=this.records.get(r);i||(i=yo(void 0,$c,!0),i.factory=()=>Hf(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=De(null);try{return r.value===$c&&(r.value=KS,r.value=r.factory()),typeof r.value=="object"&&r.value&&tT(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{De(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Tt(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function zf(t){let e=Dl(t),r=e!==null?e.factory:kr(t);if(r!==null)return r;if(t instanceof E)throw new V(204,!1);if(t instanceof Function)return XS(t);throw new V(204,!1)}function XS(t){if(t.length>0)throw new V(204,!1);let r=cS(t);return r!==null?()=>r.factory(t):()=>new t}function JS(t){if(Qy(t))return yo(void 0,t.useValue);{let e=Zy(t);return yo(e,$c)}}function Zy(t,e,r){let n;if(Io(t)){let i=Tt(t);return kr(i)||zf(i)}else if(Qy(t))n=()=>Tt(t.useValue);else if(QS(t))n=()=>t.useFactory(...Hf(t.deps||[]));else if(YS(t))n=()=>C(Tt(t.useExisting));else{let i=Tt(t&&(t.useClass||t.provide));if(eT(t))n=()=>new i(...Hf(t.deps));else return kr(i)||zf(i)}return n}function yo(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function eT(t){return!!t.deps}function tT(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function nT(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Gf(t,e){for(let r of t)Array.isArray(r)?Gf(r,e):r&&Oy(r)?Gf(r.\u0275providers,e):e(r)}function Qt(t,e){t instanceof Ts&&t.assertNotDestroyed();let r,n=zi(t),i=Gt(void 0);try{return e()}finally{zi(n),Gt(i)}}function Ky(){return Ny()!==void 0||bS()!=null}function No(t){if(!Ky())throw new V(-203,!1)}function iT(t){let e=ht.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function rT(t){return typeof t=="function"}var Qn=0,ne=1,re=2,At=3,Dn=4,Zt=5,So=6,Ms=7,wt=8,In=9,Wn=10,Ue=11,As=12,kv=13,Fo=14,Vt=15,Or=16,bo=17,yi=18,Al=19,Xy=20,Gi=21,Uc=22,Nr=23,ot=25,Jh=1;var Fr=7,Jc=8,To=9,kt=10,el=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(el||{});function qi(t){return Array.isArray(t)&&typeof t[Jh]=="object"}function xi(t){return Array.isArray(t)&&t[Jh]===!0}function ep(t){return(t.flags&4)!==0}function Rl(t){return t.componentOffset>-1}function kl(t){return(t.flags&1)===1}function bi(t){return!!t.template}function qf(t){return(t[re]&512)!==0}function oT(t){return(t[re]&256)===256}var Wf=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Jy(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Be(){return eb}function eb(t){return t.type.prototype.ngOnChanges&&(t.setInput=aT),sT}Be.ngInherit=!0;function sT(){let t=nb(this),e=t?.current;if(e){let r=t.previous;if(r===vi)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function aT(t,e,r,n,i){let o=this.declaredInputs[n],s=nb(t)||cT(t,{previous:vi,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Wf(l&&l.currentValue,r,c===vi),Jy(t,e,i,r)}var tb="__ngSimpleChanges__";function nb(t){return t[tb]||null}function cT(t,e){return t[tb]=e}var Ov=null;var zn=function(t,e,r){Ov?.(t,e,r)},ib="svg",lT="math";function Yn(t){for(;Array.isArray(t);)t=t[Qn];return t}function dT(t){for(;Array.isArray(t);){if(typeof t[Jh]=="object")return t;t=t[Qn]}return null}function rb(t,e){return Yn(e[t])}function _n(t,e){return Yn(e[t.index])}function Hs(t,e){return t.data[e]}function tp(t,e){return t[e]}function Zi(t,e){let r=e[t];return qi(r)?r:r[Qn]}function uT(t){return(t[re]&4)===4}function np(t){return(t[re]&128)===128}function fT(t){return xi(t[At])}function Wi(t,e){return e==null?null:t[e]}function ob(t){t[bo]=0}function hT(t){t[re]&1024||(t[re]|=1024,np(t)&&Ol(t))}function pT(t,e){for(;t>0;)e=e[Fo],t--;return e}function Rs(t){return!!(t[re]&9216||t[Nr]?.dirty)}function Yf(t){t[Wn].changeDetectionScheduler?.notify(7),t[re]&64&&(t[re]|=1024),Rs(t)&&Ol(t)}function Ol(t){t[Wn].changeDetectionScheduler?.notify(0);let e=ks(t);for(;e!==null&&!(e[re]&8192||(e[re]|=8192,!np(e)));)e=ks(e)}function ip(t,e){if((t[re]&256)===256)throw new V(911,!1);t[Gi]===null&&(t[Gi]=[]),t[Gi].push(e)}function sb(t,e){if(t[Gi]===null)return;let r=t[Gi].indexOf(e);r!==-1&&t[Gi].splice(r,1)}function ks(t){let e=t[At];return xi(e)?e[At]:e}var ve={lFrame:pb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ab=!1;function mT(){return ve.lFrame.elementDepthCount}function gT(){ve.lFrame.elementDepthCount++}function _T(){ve.lFrame.elementDepthCount--}function cb(){return ve.bindingsEnabled}function lb(){return ve.skipHydrationRootTNode!==null}function vT(t){return ve.skipHydrationRootTNode===t}function yT(){ve.skipHydrationRootTNode=null}function Q(){return ve.lFrame.lView}function Pe(){return ve.lFrame.tView}function he(t){return ve.lFrame.contextLView=t,t[wt]}function pe(t){return ve.lFrame.contextLView=null,t}function mt(){let t=db();for(;t!==null&&t.type===64;)t=t.parent;return t}function db(){return ve.lFrame.currentTNode}function bT(){let t=ve.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Gr(t,e){let r=ve.lFrame;r.currentTNode=t,r.isParent=e}function rp(){return ve.lFrame.isParent}function op(){ve.lFrame.isParent=!1}function wT(){return ve.lFrame.contextLView}function ub(){return ab}function Nv(t){ab=t}function $s(){let t=ve.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sp(){return ve.lFrame.bindingIndex}function CT(t){return ve.lFrame.bindingIndex=t}function Ki(){return ve.lFrame.bindingIndex++}function Us(t){let e=ve.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function xT(){return ve.lFrame.inI18n}function DT(t,e){let r=ve.lFrame;r.bindingIndex=r.bindingRootIndex=t,Qf(e)}function ET(){return ve.lFrame.currentDirectiveIndex}function Qf(t){ve.lFrame.currentDirectiveIndex=t}function ap(t){let e=ve.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function cp(){return ve.lFrame.currentQueryIndex}function Nl(t){ve.lFrame.currentQueryIndex=t}function IT(t){let e=t[ne];return e.type===2?e.declTNode:e.type===1?t[Zt]:null}function fb(t,e,r){if(r&Ee.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&Ee.Host);)if(i=IT(o),i===null||(o=o[Fo],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=ve.lFrame=hb();return n.currentTNode=e,n.lView=t,!0}function lp(t){let e=hb(),r=t[ne];ve.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function hb(){let t=ve.lFrame,e=t===null?null:t.child;return e===null?pb(t):e}function pb(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function mb(){let t=ve.lFrame;return ve.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var gb=mb;function dp(){let t=mb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ST(t){return(ve.lFrame.contextLView=pT(t,ve.lFrame.contextLView))[wt]}function Zn(){return ve.lFrame.selectedIndex}function Pr(t){ve.lFrame.selectedIndex=t}function Di(){let t=ve.lFrame;return Hs(t.tView,t.selectedIndex)}function up(){ve.lFrame.currentNamespace=ib}function yq(){TT()}function TT(){ve.lFrame.currentNamespace=null}function MT(){return ve.lFrame.currentNamespace}var _b=!0;function Fl(){return _b}function Pl(t){_b=t}function AT(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=eb(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Ll(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[bo]+=65536),(a>14>16&&(t[re]&3)===e&&(t[re]+=16384,Fv(a,o)):Fv(a,o)}var xo=-1,Lr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function kT(t){return t instanceof Lr}function OT(t){return(t.flags&8)!==0}function NT(t){return(t.flags&16)!==0}function yb(t){return t!==xo}function tl(t){return t&32767}function FT(t){return t>>16}function nl(t,e){let r=FT(t),n=e;for(;r>0;)n=n[Fo],r--;return n}var Zf=!0;function il(t){let e=Zf;return Zf=t,e}var PT=256,bb=PT-1,wb=5,LT=0,Gn={};function jT(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ds)&&(n=r[Ds]),n==null&&(n=r[Ds]=LT++);let i=n&bb,o=1<>wb)]|=o}function rl(t,e){let r=Cb(t,e);if(r!==-1)return r;let n=e[ne];n.firstCreatePass&&(t.injectorIndex=e.length,If(n.data,t),If(e,null),If(n.blueprint,null));let i=fp(t,e),o=t.injectorIndex;if(yb(i)){let s=tl(i),a=nl(i,e),c=a[ne].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=i,o}function If(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Cb(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function fp(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Sb(i),n===null)return xo;if(r++,i=i[Fo],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return xo}function Kf(t,e,r){jT(t,e,r)}function VT(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,u=n?a:a+d,f=i?a+d:l;for(let m=u;m=c&&y.type===r)return m}if(i){let m=s[c];if(m&&bi(m)&&m.type===r)return c}return null}function jr(t,e,r,n){let i=t[r],o=e.data;if(kT(i)){let s=i;s.resolving&&mS(pS(o[r]));let a=il(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?Gt(s.injectImpl):null,d=fb(t,n,Ee.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&AT(r,o[r],e)}finally{l!==null&&Gt(l),il(a),s.resolving=!1,gb()}}return i}function HT(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ds)?t[Ds]:void 0;return typeof e=="number"?e>=0?e&bb:$T:e}function Pv(t,e,r){let n=1<>wb)]&n)}function Lv(t,e){return!(t&Ee.Self)&&!(t&Ee.Host&&e)}var Rr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Eb(this._tNode,this._lView,e,El(n),r)}};function $T(){return new Rr(mt(),Q())}function Re(t){return js(()=>{let e=t.prototype.constructor,r=e[Qc]||Xf(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Qc]||Xf(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Xf(t){return Ty(t)?()=>{let e=Xf(Tt(t));return e&&e()}:kr(t)}function UT(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[re]&2048&&!(s[re]&512);){let a=Ib(o,s,r,n|Ee.Self,Gn);if(a!==Gn)return a;let c=o.parent;if(!c){let l=s[Xy];if(l){let d=l.get(r,Gn,n);if(d!==Gn)return d}c=Sb(s),s=s[Fo]}o=c}return i}function Sb(t){let e=t[ne],r=e.type;return r===2?e.declTNode:r===1?t[Zt]:null}function Ei(t){return VT(mt(),t)}function jv(t,e=null,r=null,n){let i=Tb(t,e,r,n);return i.resolveInjectorInitializers(),i}function Tb(t,e=null,r=null,n,i=new Set){let o=[r||Lt,qS(t)];return n=n||(typeof t=="object"?void 0:jt(t)),new Ts(o,e||Ml(),n||null,i)}var Mr=class Mr{static create(e,r){if(Array.isArray(e))return jv({name:""},r,e,"");{let n=e.name??"";return jv({name:n},e.parent,e.providers,n)}}};Mr.THROW_IF_NOT_FOUND=Is,Mr.NULL=new Xc,Mr.\u0275prov=I({token:Mr,providedIn:"any",factory:()=>C(jy)}),Mr.__NG_ELEMENT_ID__=-1;var Te=Mr;var zT=new E("");zT.__NG_ELEMENT_ID__=t=>{let e=mt();if(e===null)throw new V(204,!1);if(e.type&2)return e.value;if(t&Ee.Optional)return null;throw new V(204,!1)};var GT="ngOriginalError";function Sf(t){return t[GT]}var gn=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Sf(e);for(;r&&Sf(r);)r=Sf(r);return r||null}},Mb=new E("",{providedIn:"root",factory:()=>g(gn).handleError.bind(void 0)}),vn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=qT,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Jf=class extends vn{constructor(e){super(),this._lView=e}onDestroy(e){return ip(this._lView,e),()=>sb(this._lView,e)}};function qT(){return new Jf(Q())}var eh=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=g(gn,{optional:!0}),this.destroyRef=g(vn),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new V(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let r=this.listeners?.indexOf(e);r!==void 0&&r!==-1&&this.listeners?.splice(r,1)}}}emit(e){if(this.destroyed)throw new V(953,!1);if(this.listeners===null)return;let r=De(null);try{for(let n of this.listeners)try{n(e)}catch(i){this.errorHandler?.handleError(i)}}finally{De(r)}}};function bq(t){return new eh}function Vv(t,e){return Iy(t,e)}function WT(t){return Iy(Ey,t)}var He=(Vv.required=WT,Vv);function YT(){return Po(mt(),Q())}function Po(t,e){return new $(_n(t,e))}var $=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=YT;let t=e;return t})();function Ab(t){return t instanceof $?t.nativeElement:t}var th=class extends N{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Ky()&&(this.destroyRef=g(vn,{optional:!0})??void 0)}emit(e){let r=De(null);try{super.next(e)}finally{De(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=Tf(o),i&&(i=Tf(i)),s&&(s=Tf(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof Ce&&e.add(a),a}};function Tf(t){return e=>{setTimeout(t,void 0,e)}}var q=th;function QT(){return this._results[Symbol.iterator]()}var Sn=class t{get changes(){return this._changes??=new q}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=QT)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=IS(e);(this._changesDetected=!ES(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Rb(t){return(t.flags&128)===128}var kb=new Map,ZT=0;function KT(){return ZT++}function XT(t){kb.set(t[Al],t)}function JT(t){kb.delete(t[Al])}var Bv="__ngContext__";function Yi(t,e){qi(e)?(t[Bv]=e[Al],XT(e)):t[Bv]=e}function Ob(t){return Fb(t[As])}function Nb(t){return Fb(t[Dn])}function Fb(t){for(;t!==null&&!xi(t);)t=t[Dn];return t}var nh;function Pb(t){nh=t}function Lb(){if(nh!==void 0)return nh;if(typeof document<"u")return document;throw new V(210,!1)}var Lo=new E("",{providedIn:"root",factory:()=>eM}),eM="ng",hp=new E(""),on=new E("",{providedIn:"platform",factory:()=>"unknown"});var Ot=new E(""),zs=new E("",{providedIn:"root",factory:()=>Lb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),pp={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},jb=new E("",{providedIn:"root",factory:()=>pp});var tM="h",nM="b";var iM=()=>null;function mp(t,e,r=!1){return iM(t,e,r)}var Vb=!1,rM=new E("",{providedIn:"root",factory:()=>Vb});var Pc;function oM(){if(Pc===void 0&&(Pc=null,ht.trustedTypes))try{Pc=ht.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Pc}function jl(t){return oM()?.createHTML(t)||t}var Lc;function Bb(){if(Lc===void 0&&(Lc=null,ht.trustedTypes))try{Lc=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Lc}function Hv(t){return Bb()?.createHTML(t)||t}function $v(t){return Bb()?.createScriptURL(t)||t}var wi=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Dy})`}},ih=class extends wi{getTypeName(){return"HTML"}},rh=class extends wi{getTypeName(){return"Style"}},oh=class extends wi{getTypeName(){return"Script"}},sh=class extends wi{getTypeName(){return"URL"}},ah=class extends wi{getTypeName(){return"ResourceURL"}};function Kt(t){return t instanceof wi?t.changingThisBreaksApplicationSecurity:t}function Ii(t,e){let r=sM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Dy})`)}return r===e}function sM(t){return t instanceof wi&&t.getTypeName()||null}function Hb(t){return new ih(t)}function $b(t){return new rh(t)}function Ub(t){return new oh(t)}function zb(t){return new sh(t)}function Gb(t){return new ah(t)}function aM(t){let e=new lh(t);return cM()?new ch(e):e}var ch=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(jl(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},lh=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=jl(e),r}};function cM(){try{return!!new window.DOMParser().parseFromString(jl(""),"text/html")}catch{return!1}}var lM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vl(t){return t=String(t),t.match(lM)?t:"unsafe:"+t}function Si(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Gs(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var qb=Si("area,br,col,hr,img,wbr"),Wb=Si("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Yb=Si("rp,rt"),dM=Gs(Yb,Wb),uM=Gs(Wb,Si("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")),fM=Gs(Yb,Si("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")),Uv=Gs(qb,uM,fM,dM),Qb=Si("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hM=Si("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"),pM=Si("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"),mM=Gs(Qb,hM,pM),gM=Si("script,style,template"),dh=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=yM(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=vM(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=zv(e).toLowerCase();if(!Uv.hasOwnProperty(r))return this.sanitizedSomething=!0,!gM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=zv(e).toLowerCase();Uv.hasOwnProperty(r)&&!qb.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Gv(e))}};function _M(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function vM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Zb(e);return e}function yM(t){let e=t.firstChild;if(e&&_M(t,e))throw Zb(e);return e}function zv(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Zb(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var bM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wM=/([^\#-~ |!])/g;function Gv(t){return t.replace(/&/g,"&").replace(bM,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(wM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var jc;function gp(t,e){let r=null;try{jc=jc||aM(t);let n=e?String(e):"";r=jc.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=jc.getInertBodyElement(n)}while(n!==o);let a=new dh().sanitizeChildren(qv(r)||r);return jl(a)}finally{if(r){let n=qv(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function qv(t){return"content"in t&&CM(t)?t.content:null}function CM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Tn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Tn||{});function wq(t){let e=_p();return e?Hv(e.sanitize(Tn.HTML,t)||""):Ii(t,"HTML")?Hv(Kt(t)):gp(Lb(),Wt(t))}function Ti(t){let e=_p();return e?e.sanitize(Tn.URL,t)||"":Ii(t,"URL")?Kt(t):Vl(Wt(t))}function xM(t){let e=_p();if(e)return $v(e.sanitize(Tn.RESOURCE_URL,t)||"");if(Ii(t,"ResourceURL"))return $v(Kt(t));throw new V(904,!1)}function DM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?xM:Ti}function Kb(t,e,r){return DM(e,r)(t)}function _p(){let t=Q();return t&&t[Wn].sanitizer}var EM=/^>|^->||--!>|)/g,SM="\u200B$1\u200B";function TM(t){return t.replace(EM,e=>e.replace(IM,SM))}function MM(t){My("Must never be called in production mode");let r=t[Vt][wt];return r&&r.constructor?En(r.constructor):null}function AM(t){My("Must never be called in production mode");let r=MM(t)?.type?.name;return r?` (used in the '${r}' component template)`:""}function Xb(t){return t instanceof Function?t():t}function Bl(t){return(t??g(Te)).get(on)==="browser"}var Ci=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ci||{}),RM;function vp(t,e){return RM(t,e)}function wo(t,e,r,n,i){if(n!=null){let o,s=!1;xi(n)?o=n:qi(n)&&(s=!0,n=n[Qn]);let a=Yn(n);t===0&&r!==null?i==null?i0(e,r,a):ol(e,r,a,i||null,!0):t===1&&r!==null?ol(e,r,a,i||null,!0):t===2?qM(e,a,s):t===3&&e.destroyNode(a),o!=null&&YM(e,t,o,r,i)}}function kM(t,e){return t.createText(e)}function OM(t,e,r){t.setValue(e,r)}function NM(t,e){return t.createComment(TM(e))}function Jb(t,e,r){return t.createElement(e,r)}function FM(t,e){e0(t,e),e[Qn]=null,e[Zt]=null}function PM(t,e,r,n,i,o){n[Qn]=i,n[Zt]=e,Ul(t,n,r,1,i,o)}function e0(t,e){e[Wn].changeDetectionScheduler?.notify(8),Ul(t,e,e[Ue],2,null,null)}function LM(t){let e=t[As];if(!e)return Mf(t[ne],t);for(;e;){let r=null;if(qi(e))r=e[As];else{let n=e[kt];n&&(r=n)}if(!r){for(;e&&!e[Dn]&&e!==t;)qi(e)&&Mf(e[ne],e),e=e[At];e===null&&(e=t),qi(e)&&Mf(e[ne],e),r=e&&e[Dn]}e=r}}function jM(t,e,r,n){let i=kt+n,o=r.length;n>0&&(r[i-1][Dn]=e),n0&&(t[r-1][Dn]=n[Dn]);let o=Kc(t,kt+e);FM(n[ne],n);let s=o[yi];s!==null&&s.detachView(o[ne]),n[At]=null,n[Dn]=null,n[re]&=-129}return n}function Hl(t,e){if(!(e[re]&256)){let r=e[Ue];r.destroyNode&&Ul(t,e,r,3,null,null),LM(e)}}function Mf(t,e){if(e[re]&256)return;let r=De(null);try{e[re]&=-129,e[re]|=256,e[Nr]&&bf(e[Nr]),BM(t,e),VM(t,e),e[ne].type===1&&e[Ue].destroy();let n=e[Or];if(n!==null&&xi(e[At])){n!==e[At]&&yp(n,e);let i=e[yi];i!==null&&i.detachView(t)}JT(e)}finally{De(r)}}function VM(t,e){let r=t.cleanup,n=e[Ms];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ms]=null);let i=e[Gi];if(i!==null){e[Gi]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===qn.None||o===qn.Emulated)return null}return _n(n,r)}}function ol(t,e,r,n,i){t.insertBefore(e,r,n,i)}function i0(t,e,r){t.appendChild(e,r)}function Wv(t,e,r,n,i){n!==null?ol(t,e,r,n,i):i0(t,e,r)}function $M(t,e,r,n){t.removeChild(e,r,n)}function bp(t,e){return t.parentNode(e)}function UM(t,e){return t.nextSibling(e)}function r0(t,e,r){return GM(t,e,r)}function zM(t,e,r){return t.type&40?_n(t,r):null}var GM=zM,Yv;function $l(t,e,r,n){let i=n0(t,n,e),o=e[Ue],s=n.parent||e[Zt],a=r0(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;cot&&l0(t,e,ot,!1),zn(s?2:0,i),r(n,i)}finally{Pr(o),zn(s?3:1,i)}}function Cp(t,e,r){if(ep(e)){let n=De(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function iA(t,e,r,n){let i=y0(e);i.push(r),t.firstCreatePass&&b0(t).push(n,i.length-1)}function rA(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return lb()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Qv(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=Eo.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?Zv(n,r,l,a,c):Zv(n,r,l,a)}return n}function Zv(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function oA(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let d=n;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function dA(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Rl(r)&&_A(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||rl(r,e),Yi(n,e);let s=r.initialInputs;for(let a=i;a{Ol(t.lView)},consumerOnSignalRead(){this.lView[Nr]=this}}),AA=100;function D0(t,e=!0,r=0){let n=t[Wn],i=n.rendererFactory,o=!1;o||i.begin?.();try{RA(t,r)}catch(s){throw e&&ql(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function RA(t,e){let r=ub();try{Nv(!0),ph(t,e);let n=0;for(;Rs(t);){if(n===AA)throw new V(103,!1);n++,ph(t,1)}}finally{Nv(r)}}function kA(t,e,r,n){let i=e[re];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Wn].inlineEffectRunner?.flush(),lp(e);let a=null,c=null;!o&&OA(t)&&(c=IA(e),a=Ac(c));try{ob(e),CT(t.bindingStartIndex),r!==null&&h0(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let f=t.preOrderCheckHooks;f!==null&&zc(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Gc(e,f,0,null),Ef(e,0)}if(s||NA(e),E0(e,0),t.contentQueries!==null&&v0(t,e),!o)if(l){let f=t.contentCheckHooks;f!==null&&zc(e,f)}else{let f=t.contentHooks;f!==null&&Gc(e,f,1),Ef(e,1)}KM(t,e);let d=t.components;d!==null&&S0(e,d,0);let u=t.viewQuery;if(u!==null&&hh(2,u,n),!o)if(l){let f=t.viewCheckHooks;f!==null&&zc(e,f)}else{let f=t.viewHooks;f!==null&&Gc(e,f,2),Ef(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Uc]){for(let f of e[Uc])f();e[Uc]=null}o||(e[re]&=-73)}catch(l){throw o||Ol(e),l}finally{c!==null&&(Rc(c,a),TA(c)),dp()}}function OA(t){return t.type!==2}function E0(t,e){for(let r=Ob(t);r!==null;r=Nb(r))for(let n=kt;n-1&&(Os(e,n),Kc(r,n))}this._attachedToViewContainer=!1}Hl(this._lView[ne],this._lView)}onDestroy(e){ip(this._lView,e)}markForCheck(){Wl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[re]&=-129}reattach(){Yf(this._lView),this._lView[re]|=128}detectChanges(){this._lView[re]|=1024,D0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new V(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=qf(this._lView),r=this._lView[Or];r!==null&&!e&&yp(r,this._lView),e0(this._lView[ne],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new V(902,!1);this._appRef=e;let r=qf(this._lView),n=this._lView[Or];n!==null&&!r&&t0(n,this._lView),Yf(this._lView)}},ze=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=jA;let t=e;return t})(),PA=ze,LA=class extends PA{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Br(i)}};function jA(){return Yl(mt(),Q())}function Yl(t,e){return t.type&4?new LA(e,t,Po(t,e)):null}var xq=new RegExp(`^(\\d+)*(${nM}|${tM})*(.*)`);var VA=()=>null;function Hr(t,e){return VA(t,e)}var Mo=class{},T0=new E("",{providedIn:"root",factory:()=>!1});var M0=new E(""),mh=class{},al=class{};function BA(t){let e=Error(`No component factory found for ${jt(t)}.`);return e[HA]=t,e}var HA="ngComponent";var gh=class{resolveComponentFactory(e){throw BA(e)}},Kp=class Kp{};Kp.NULL=new gh;var rn=Kp,Ao=class{},Kn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>$A();let t=e;return t})();function $A(){let t=Q(),e=mt(),r=Zi(e.index,t);return(qi(r)?r:t)[Ue]}var UA=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Af={};var Kv=new Set;function yn(t){Kv.has(t)||(Kv.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function A0(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ht.requestAnimationFrame=="function"&&ht.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function Xv(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Jv(...t){}var L=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),typeof Zone>"u")throw new V(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,qA(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new V(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new V(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,zA,Jv,Jv);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},zA={};function Rp(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function GA(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{A0(()=>{t.callbackScheduled=!1,_h(t),t.isCheckStableRunning=!0,Rp(t),t.isCheckStableRunning=!1})}),_h(t))}function qA(t){let e=()=>{GA(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(WA(a))return r.invokeTask(i,o,s,a);try{return ey(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),ty(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return ey(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!YA(a)&&e(),ty(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,_h(t),Rp(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function _h(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function ey(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ty(t){t._nesting--,Rp(t)}var cl=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function WA(t){return R0(t,"__ignore_ng_zone__")}function YA(t){return R0(t,"__scheduler_tick__")}function R0(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function QA(t="zone.js",e){return t==="noop"?new cl:t==="zone.js"?new L(e):t}var _i=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(_i||{}),k0={destroy(){}};function qs(t,e){!e&&No(qs);let r=e?.injector??g(Te);if(!Bl(r))return k0;yn("NgAfterRender");let n=r.get(Ql),i=n.handler??=new dl,o=e?.phase??_i.MixedReadWrite,s=()=>{i.unregister(c),a()},a=r.get(vn).onDestroy(s),c=Qt(r,()=>new ll(o,t));return i.register(c),{destroy:s}}function xt(t,e){!e&&No(xt);let r=e?.injector??g(Te);if(!Bl(r))return k0;yn("NgAfterNextRender");let n=r.get(Ql),i=n.handler??=new dl,o=e?.phase??_i.MixedReadWrite,s=()=>{i.unregister(c),a()},a=r.get(vn).onDestroy(s),c=Qt(r,()=>new ll(o,()=>{s(),t()}));return i.register(c),{destroy:s}}var ll=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=g(L),this.errorHandler=g(gn,{optional:!0}),g(Mo,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},dl=class{constructor(){this.executingCallbacks=!1,this.buckets={[_i.EarlyRead]:new Set,[_i.Write]:new Set,[_i.MixedReadWrite]:new Set,[_i.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Ql=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ul(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&a0(t,r,o.join(" "))}}function n1(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=r1;let t=e;return t})();function r1(){let t=mt();return N0(t,Q())}var o1=We,O0=class extends o1{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Po(this._hostTNode,this._hostLView)}get injector(){return new Rr(this._hostTNode,this._hostLView)}get parentInjector(){let e=fp(this._hostTNode,this._hostLView);if(yb(e)){let r=nl(e,this._hostLView),n=tl(e),i=r[ne].data[n+8];return new Rr(i,r)}else return new Rr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=iy(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-kt}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Hr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Vr(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!rT(e),a;if(s)a=r;else{let y=r||{};a=y.index,n=y.injector,i=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}let c=s?e:new $r(En(e)),l=n||this.parentInjector;if(!o&&c.ngModule==null){let A=(s?l:this.parentInjector).get(pt,null);A&&(o=A)}let d=En(c.componentType??{}),u=Hr(this._lContainer,d?.id??null),f=u?.firstChild??null,m=c.create(l,i,f,o);return this.insertImpl(m.hostView,a,Vr(this._hostTNode,u)),m}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(fT(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[At],l=new O0(c,c[Zt],c[At]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Bo(s,i,o,n),e.attachToViewContainerRef(),Ly(Rf(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=iy(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Os(this._lContainer,r);n&&(Kc(Rf(this._lContainer),r),Hl(n[ne],n))}detach(e){let r=this._adjustIndex(e,-1),n=Os(this._lContainer,r);return n&&Kc(Rf(this._lContainer),r)!=null?new Br(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function iy(t){return t[Jc]}function Rf(t){return t[Jc]||(t[Jc]=[])}function N0(t,e){let r,n=e[t.index];return xi(n)?r=n:(r=_0(n,e,null,t),e[t.index]=r,Gl(e,r)),a1(r,e,t,n),new O0(r,t,e)}function s1(t,e){let r=t[Ue],n=r.createComment(""),i=_n(e,t),o=bp(r,i);return ol(r,o,n,UM(r,i),!1),n}var a1=l1,c1=()=>!1;function F0(t,e,r){return c1(t,e,r)}function l1(t,e,r,n){if(t[Fr])return;let i;r.type&8?i=Yn(n):i=s1(e,r),t[Fr]=i}var yh=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},bh=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let l=o[a+1],d=e[-c];for(let u=kt;ue.trim())}function V0(t,e,r){t.queries===null&&(t.queries=new wh),t.queries.track(new Ch(e,r))}function g1(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function Op(t,e){return t.queries.getByIndex(e)}function B0(t,e){let r=t[ne],n=Op(r,e);return n.crossesNgTemplate?xh(r,t,e,[]):P0(r,t,n,e)}function Zl(t){return typeof t=="function"&&t[nn]!==void 0}function Xn(t,e){yn("NgSignals");let r=bv(t),n=r[nn];return e?.equal&&(n.equal=e.equal),r.set=i=>Nc(n,i),r.update=i=>wv(n,i),r.asReadonly=_1.bind(r),r}function _1(){let t=this[nn];if(t.readonlyFn===void 0){let e=()=>this();e[nn]=t,t.readonlyFn=e}return t.readonlyFn}function H0(t){return Zl(t)&&typeof t.set=="function"}function $0(t,e){let r,n=wf(()=>{r._dirtyCounter();let i=w1(r,t);if(e&&i===void 0)throw new V(-951,!1);return i});return r=n[nn],r._dirtyCounter=Xn(0),r._flatValue=void 0,n}function v1(){return $0(!0,!1)}function y1(){return $0(!0,!0)}function b1(t,e){let r=t[nn];r._lView=Q(),r._queryIndex=e,r._queryList=kp(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(n=>n+1))}function w1(t,e){let r=t._lView,n=t._queryIndex;if(r===void 0||n===void 0||r[re]&4)return e?void 0:Lt;let i=kp(r,n),o=B0(r,n);return i.reset(o,Ab),e?i.first:i._changesDetected||t._flatValue===void 0?t._flatValue=i.toArray():t._flatValue}function ry(t,e){return v1()}function C1(t,e){return y1()}var U0=(ry.required=C1,ry);function x1(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(S1))}return o}return ml.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(l=>{i.template=l}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let l=i.styles.length,d=i.styleUrls;i.styleUrls.forEach((u,f)=>{a.push(""),s.push(n(u).then(m=>{a[l+f]=m,d.splice(d.indexOf(u),1),d.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(l=>{a.push(l),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>T1(o));e.push(c)}),E1(),Promise.all(e).then(()=>{})}var ml=new Map,D1=new Set;function E1(){let t=ml;return ml=new Map,t}function I1(){return ml.size===0}function S1(t){return typeof t=="string"?t:t.text()}function T1(t){D1.delete(t)}function M1(t){return Object.getPrototypeOf(t.prototype).constructor}function ie(t){let e=M1(t.type),r=!0,n=[t];for(;e;){let i;if(bi(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new V(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=Vc(t.inputs),s.inputTransforms=Vc(t.inputTransforms),s.declaredInputs=Vc(t.declaredInputs),s.outputs=Vc(t.outputs);let a=i.hostBindings;a&&N1(t,a);let c=i.viewQuery,l=i.contentQueries;if(c&&k1(t,c),l&&O1(t,l),A1(t,i),sS(t.outputs,i.outputs),bi(i)&&i.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Ss(i.hostAttrs,r=Ss(r,i.hostAttrs))}}function Vc(t){return t===vi?{}:t===Lt?[]:t}function k1(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function O1(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function N1(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function Eq(t){let e=r=>{let n=(Array.isArray(t)?t:t()).map(i=>typeof i=="function"?{directive:Tt(i),inputs:vi,outputs:vi}:{directive:Tt(i.directive),inputs:oy(i.inputs),outputs:oy(i.outputs)});r.hostDirectives===null?(r.findHostDirectiveDefs=z0,r.hostDirectives=n):r.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function z0(t,e,r){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let i=Il(n.directive);F1(i.declaredInputs,n.inputs),z0(i,e,r),r.set(i,n),e.push(i)}}function oy(t){if(t===void 0||t.length===0)return vi;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},_l=class extends Ns{constructor(e){super(),this.moduleType=e}create(e){return new gl(this.moduleType,e,[])}};function P1(t,e,r){return new gl(t,e,r)}var Dh=class extends Qi{constructor(e){super(),this.componentFactoryResolver=new fl(this),this.instance=null;let r=new Ts([...e.providers,{provide:Qi,useValue:this},{provide:rn,useValue:this.componentFactoryResolver}],e.parent||Ml(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ws(t,e,r=null){return new Dh({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var L1=(()=>{let e=class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(n,i,o,s){if(!this.cachedInjectors.has(n)){let a=o.length>0?Ws(o,i,s):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=I({token:e,providedIn:"environment",factory:()=>new e});let t=e;return t})();var Jn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ze(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function G0(t){return Np(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function j1(t,e){if(Array.isArray(t))for(let r=0;rK0(y);Y1(0,y,()=>sb(l,A)),ip(l,A)}function Sq(){let t=Q(),e=mt(),r=t[ne],n=t[In],i=Ys(r,e);(!X0(n)||i.loadingTmplIndex===null)&&sR(t,e),aR(t,e)}function Ar(t,e,r,n=!1){let i=r[At],o=i[ne];if(oT(i))return;let s=Pp(i,e),a=s[W0];if(ly(a,t)&&ly(s[W1]??-1,t)){let c=i[In],l=Ys(o,e),u=!n&&Bl(c)&&(X1(l)!==null||ay(l,Mt.Loading)!==null||ay(l,Mt.Placeholder))?tR:rR;try{u(t,s,r,e,i)}catch(f){ql(i,f)}}}function nR(t){return t instanceof hl&&typeof t.injector.__ngOutletInjector=="function"}function iR(t,e){return t.injector.__ngOutletInjector(e)}function rR(t,e,r,n,i){let o=K1(t,i,n);if(o!==null){e[W0]=t;let s=i[ne],a=o+ot,c=Hs(s,a),l=0;Ap(r,l);let d;if(t===Mt.Complete){let m=Ys(s,n),y=m.providers;if(y&&y.length>0){let A=i[In],k=nR(A),O=k?A:A.get(pt);d=O.get(L1).getOrCreateInjector(m,O,y,""),k&&(d=iR(A,d))}}let u=Hr(r,c.tView.ssrId),f=Vo(i,c,null,{dehydratedView:u,injector:d});Bo(r,f,l,Vr(c,u)),Wl(f,2)}}function ly(t,e){return t{let u=!1,f=[],m=[];for(let y of d)if(y.status==="fulfilled"){let A=y.value,k=En(A)||Il(A);if(k)f.push(k);else{let O=Zh(A);O&&m.push(O)}}else{u=!0;break}if(t.loadingPromise=null,c.remove(l),u){if(t.loadingState=qt.FAILED,t.errorTmplIndex===null){let y=AM(e),A=new V(750,!1);ql(e,A)}}else{t.loadingState=qt.COMPLETE;let y=s.tView;if(f.length>0){y.directiveRegistry=cy(y.directiveRegistry,f);let A=f.map(O=>O.type),k=Kh(!1,...A);t.providers=k}m.length>0&&(y.pipeRegistry=cy(y.pipeRegistry,m))}}),t.loadingPromise):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=qt.COMPLETE,c.remove(l)}),t.loadingPromise)}function sR(t,e){let r=t[e.index];Ar(Mt.Placeholder,e,r)}function dy(t,e,r){t.loadingPromise.then(()=>{t.loadingState===qt.COMPLETE?Ar(Mt.Complete,e,r):t.loadingState===qt.FAILED&&Ar(Mt.Error,e,r)})}function aR(t,e){let r=t[ne],n=t[e.index],i=t[In];if(!X0(i))return;let o=Pp(t,e),s=Ys(r,e);switch(K0(o),s.loadingState){case qt.NOT_STARTED:Ar(Mt.Loading,e,n),oR(s,t,e),s.loadingState===qt.IN_PROGRESS&&dy(s,e,n);break;case qt.IN_PROGRESS:Ar(Mt.Loading,e,n),dy(s,e,n);break;case qt.COMPLETE:Ar(Mt.Complete,e,n);break;case qt.FAILED:Ar(Mt.Error,e,n);break;default:}}function Le(t,e,r,n){let i=Q(),o=Ki();if(Yt(i,o,e)){let s=Pe(),a=Di();vA(a,i,t,e,r,n)}return Le}function Lp(t,e,r,n){return Yt(t,Ki(),r)?e+Wt(r)+n:ct}function J0(t,e,r,n,i,o){let s=sp(),a=Fs(t,s,r,i);return Us(2),a?e+Wt(r)+n+Wt(i)+o:ct}function ew(t,e,r,n,i,o,s,a){let c=sp(),l=B1(t,c,r,i,s);return Us(3),l?e+Wt(r)+n+Wt(i)+o+Wt(s)+a:ct}function tw(t,e,r,n,i,o,s,a,c,l){let d=sp(),u=H1(t,d,r,i,s,c);return Us(4),u?e+Wt(r)+n+Wt(i)+o+Wt(s)+a+Wt(c)+l:ct}function Bc(t,e){return t<<17|e<<2}function Ur(t){return t>>17&32767}function cR(t){return(t&2)==2}function lR(t,e){return t&131071|e<<17}function Ih(t){return t|2}function Ro(t){return(t&131068)>>2}function kf(t,e){return t&-131069|e<<2}function dR(t){return(t&1)===1}function Sh(t){return t|1}function uR(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Ur(s),c=Ro(s);t[n]=r;let l=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||Bs(u,d)>0)&&(l=!0)}else d=r;if(i)if(c!==0){let f=Ur(t[a+1]);t[n+1]=Bc(f,a),f!==0&&(t[f+1]=kf(t[f+1],n)),t[a+1]=lR(t[a+1],n)}else t[n+1]=Bc(a,0),a!==0&&(t[a+1]=kf(t[a+1],n)),a=n;else t[n+1]=Bc(c,0),a===0?a=n:t[c+1]=kf(t[c+1],n),c=n;l&&(t[n+1]=Ih(t[n+1])),uy(t,d,n,!0),uy(t,d,n,!1),fR(e,d,t,n,o),s=Bc(a,c),o?e.classBindings=s:e.styleBindings=s}function fR(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Bs(o,e)>=0&&(r[n+1]=Sh(r[n+1]))}function uy(t,e,r,n){let i=t[r+1],o=e===null,s=n?Ur(i):Ro(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];hR(c,e)&&(a=!0,t[s+1]=n?Sh(l):Ih(l)),s=n?Ur(l):Ro(l)}a&&(t[r+1]=n?Ih(i):Sh(i))}function hR(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Bs(t,e)>=0:!1}var ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nw(t){return t.substring(ft.key,ft.keyEnd)}function pR(t){return t.substring(ft.value,ft.valueEnd)}function mR(t){return ow(t),iw(t,ko(t,0,ft.textEnd))}function iw(t,e){let r=ft.textEnd;return r===e?-1:(e=ft.keyEnd=_R(t,ft.key=e,r),ko(t,e,r))}function gR(t){return ow(t),rw(t,ko(t,0,ft.textEnd))}function rw(t,e){let r=ft.textEnd,n=ft.key=ko(t,e,r);return r===n?-1:(n=ft.keyEnd=vR(t,n,r),n=fy(t,n,r,58),n=ft.value=ko(t,n,r),n=ft.valueEnd=yR(t,n,r),fy(t,n,r,59))}function ow(t){ft.key=0,ft.keyEnd=0,ft.value=0,ft.valueEnd=0,ft.textEnd=t.length}function ko(t,e,r){for(;e32;)e++;return e}function vR(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function fy(t,e,r,n){return e=ko(t,e,r),e32&&(a=s),o=i,i=n,n=c&-33}return a}function hy(t,e,r,n){let i=-1,o=r;for(;o=0;r=rw(e,r))dw(t,nw(e),pR(e))}function qr(t){jp(SR,sw,t,!0)}function sw(t,e){for(let r=mR(e);r>=0;r=iw(e,r))Vs(t,nw(e),!0)}function aw(t,e,r,n){let i=Q(),o=Pe(),s=Us(2);if(o.firstUpdatePass&&lw(o,t,s,n),e!==ct&&Yt(i,s,e)){let a=o.data[Zn()];uw(o,a,i,i[Ue],t,i[s+1]=MR(e,r),n,s)}}function jp(t,e,r,n){let i=Pe(),o=Us(2);i.firstUpdatePass&&lw(i,null,o,n);let s=Q();if(r!==ct&&Yt(s,o,r)){let a=i.data[Zn()];if(fw(a,n)&&!cw(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=jf(c,r||"")),Th(i,a,s,r,n)}else TR(i,a,s,s[Ue],s[o+1],s[o+1]=IR(t,e,r),n,o)}}function cw(t,e){return e>=t.expandoStartIndex}function lw(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Zn()],s=cw(t,r);fw(o,n)&&e===null&&!s&&(e=!1),e=CR(i,o,e,n),uR(i,o,e,r,s,n)}}function CR(t,e,r,n){let i=ap(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Of(null,t,e,r,n),r=Ls(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Of(i,t,e,r,n),o===null){let c=xR(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Of(null,t,e,c[1],n),c=Ls(c,e.attrs,n),DR(t,e,n,c))}else o=ER(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function xR(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Ro(n)!==0)return t[Ur(n)]}function DR(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Ur(i)]=n}function ER(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],l=Array.isArray(c),d=l?c[1]:c,u=d===null,f=r[i+1];f===ct&&(f=u?Lt:void 0);let m=u?xf(f,n):d===n?f:void 0;if(l&&!vl(m)&&(m=xf(c,n)),vl(m)&&(a=m,s))return a;let y=t[i+1];i=s?Ur(y):Ro(y)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=xf(c,n))}return a}function vl(t){return t!==void 0}function MR(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=jt(Kt(t)))),t}function fw(t,e){return(t.flags&(e?8:16))!==0}function hw(t,e,r){let n=Q(),i=Lp(n,t,e,r);jp(Vs,sw,i,!0)}function Tq(){return Q()[Vt][wt]}var Mh=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function Nf(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function AR(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let l=t.at(o),d=e[o],u=Nf(o,l,o,d,r);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let f=t.at(s),m=e[c],y=Nf(s,f,c,m,r);if(y!==0){y<0&&t.updateValue(s,m),s--,c--;continue}let A=r(o,l),k=r(s,f),O=r(o,d);if(Object.is(O,k)){let le=r(c,m);Object.is(le,A)?(t.swap(o,s),t.updateValue(s,m),c--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(n??=new yl,i??=gy(t,o,s,r),Ah(t,n,o,O))t.updateValue(o,d),o++,s++;else if(i.has(O))n.set(A,t.detach(o)),s--;else{let le=t.create(o,e[o]);t.attach(o,le),o++,s++}}for(;o<=c;)my(t,n,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let d=t.at(o),u=l.value,f=Nf(o,d,o,u,r);if(f!==0)f<0&&t.updateValue(o,u),o++,l=c.next();else{n??=new yl,i??=gy(t,o,s,r);let m=r(o,u);if(Ah(t,n,o,m))t.updateValue(o,u),o++,s++,l=c.next();else if(!i.has(m))t.attach(o,t.create(o,u)),o++,s++,l=c.next();else{let y=r(o,d);n.set(y,t.detach(o)),s--}}}for(;!l.done;)my(t,n,r,t.length,l.value),l=c.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(c=>{t.destroy(c)})}function Ah(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function my(t,e,r,n,i){if(Ah(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function gy(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var yl=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function b(t,e){yn("NgControlFlow");let r=Q(),n=Ki(),i=r[n]!==ct?r[n]:-1,o=i!==-1?bl(r,ot+i):void 0,s=0;if(Yt(r,n,t)){let a=De(null);try{if(o!==void 0&&Ap(o,s),t!==-1){let c=ot+t,l=bl(r,c),d=Nh(r[ne],c),u=Hr(l,d.tView.ssrId),f=Vo(r,d,e,{dehydratedView:u});Bo(l,f,s,Vr(d,u))}}finally{De(a)}}else if(o!==void 0){let a=C0(o,s);a!==void 0&&(a[wt]=e)}}var Rh=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-kt}};function it(t,e){return e}var kh=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function et(t,e,r,n,i,o,s,a,c,l,d,u,f){yn("NgControlFlow");let m=Q(),y=Pe(),A=c!==void 0,k=Q(),O=a?s.bind(k[Vt][wt]):s,le=new kh(A,O);k[ot+t]=le,Ps(m,y,t+1,e,r,n,i,Wi(y.consts,o)),A&&Ps(m,y,t+2,c,l,d,u,Wi(y.consts,f))}var Oh=class extends Mh{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-kt}at(e){return this.getLView(e)[wt].$implicit}attach(e,r){let n=r[So];this.needsIndexUpdate||=e!==this.length,Bo(this.lContainer,r,e,Vr(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,RR(this.lContainer,e)}create(e,r){let n=Hr(this.lContainer,this.templateTNode.tView.ssrId),i=Vo(this.hostLView,this.templateTNode,new Rh(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Hl(e[ne],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[wt].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Pl(!0),Jb(n,i,MT()));function FR(t,e,r,n,i){let o=e.consts,s=Wi(o,n),a=jo(e,t,8,"ng-container",s);s!==null&&ul(a,s,!0);let c=Wi(o,i);return Ip(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function ei(t,e,r){let n=Q(),i=Pe(),o=t+ot,s=i.firstCreatePass?FR(o,i,n,e,r):i.data[o];Gr(s,!0);let a=PR(i,n,s,t);return n[o]=a,Fl()&&$l(i,n,a,s),Yi(a,n),kl(s)&&(xp(i,n,s),Cp(i,s,n)),r!=null&&Dp(n,s),ei}function ti(){let t=mt(),e=Pe();return rp()?op():(t=t.parent,Gr(t,!1)),e.firstCreatePass&&(Ll(e,t),ep(t)&&e.queries.elementEnd(t)),ti}function Bt(t,e,r){return ei(t,e,r),ti(),Bt}var PR=(t,e,r,n)=>(Pl(!0),NM(e[Ue],""));function Ke(){return Q()}function Qs(t,e,r){let n=Q(),i=Ki();if(Yt(n,i,e)){let o=Pe(),s=Di();Xi(o,s,n,t,e,n[Ue],r,!0)}return Qs}function Vp(t,e,r){let n=Q(),i=Ki();if(Yt(n,i,e)){let o=Pe(),s=Di(),a=ap(o.data),c=w0(a,s,n);Xi(o,s,n,t,e,c,r,!0)}return Vp}var Tr=void 0;function LR(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var jR=["en",[["a","p"],["AM","PM"],Tr],[["AM","PM"],Tr,Tr],[["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"]],Tr,[["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"]],Tr,[["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}",Tr,"{1} 'at' {0}",Tr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",LR],Ff={};function Bp(t){let e=VR(t),r=_y(e);if(r)return r;let n=e.split("-")[0];if(r=_y(n),r)return r;if(n==="en")return jR;throw new V(701,!1)}function _y(t){return t in Ff||(Ff[t]=ht.ng&&ht.ng.common&&ht.ng.common.locales&&ht.ng.common.locales[t]),Ff[t]}var Ho=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ho||{});function VR(t){return t.toLowerCase().replace(/_/g,"-")}var wl="en-US";var BR=wl;function HR(t){typeof t=="string"&&(BR=t.toLowerCase().replace(/_/g,"-"))}var $R=(t,e,r)=>{};function ce(t,e,r,n){let i=Q(),o=Pe(),s=mt();return $p(o,i,i[Ue],s,t,e,n),ce}function Hp(t,e){let r=mt(),n=Q(),i=Pe(),o=ap(i.data),s=w0(o,r,n);return $p(i,n,s,r,t,e),Hp}function UR(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function $p(t,e,r,n,i,o,s){let a=kl(n),l=t.firstCreatePass&&b0(t),d=e[wt],u=y0(e),f=!0;if(n.type&3||s){let A=_n(n,e),k=s?s(A):A,O=u.length,le=s?Fe=>s(Yn(Fe[n.index])):n.index;$R(A,i,o);let Ve=null;if(!s&&a&&(Ve=UR(t,e,i,n.index)),Ve!==null){let Fe=Ve.__ngLastListenerFn__||Ve;Fe.__ngNextListenerFn__=o,Ve.__ngLastListenerFn__=o,f=!1}else{o=yy(n,e,d,o,!1);let Fe=r.listen(k,i,o);u.push(o,Fe),l&&l.push(i,le,O,O+1)}}else o=yy(n,e,d,o,!1);let m=n.outputs,y;if(f&&m!==null&&(y=m[i])){let A=y.length;if(A)for(let k=0;k-1?Zi(t.index,e):e;Wl(a,5);let c=vy(e,r,n,s),l=o.__ngNextListenerFn__;for(;l;)c=vy(e,r,l,s)&&c,l=l.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function _(t=1){return ST(t)}function zR(t,e){let r=null,n=PS(t);for(let i=0;i=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Ji(t){let e=wT();return tp(e,ot+t)}function gw(t,e,r,n,i,o,s,a,c){let l=Q(),d=tw(l,t,e,r,n,i,o,s,a,c);bR(d)}function x(t,e=""){let r=Q(),n=Pe(),i=t+ot,o=n.firstCreatePass?jo(n,i,1,e,null):n.data[i],s=YR(n,r,o,e,t);r[i]=s,Fl()&&$l(n,r,s,o),Gr(o,!1)}var YR=(t,e,r,n,i)=>(Pl(!0),kM(e[Ue],n));function ke(t){return Y("",t,""),ke}function Y(t,e,r){let n=Q(),i=Lp(n,t,e,r);return i!==ct&&Tp(n,Zn(),i),Y}function Dt(t,e,r,n,i){let o=Q(),s=J0(o,t,e,r,n,i);return s!==ct&&Tp(o,Zn(),s),Dt}function Gp(t,e,r,n,i,o,s){let a=Q(),c=ew(a,t,e,r,n,i,o,s);return c!==ct&&Tp(a,Zn(),c),Gp}function QR(t,e,r){H0(e)&&(e=e());let n=Q(),i=Ki();if(Yt(n,i,e)){let o=Pe(),s=Di();Xi(o,s,n,t,e,n[Ue],r,!1)}return QR}function Mq(t,e){let r=H0(t);return r&&t.set(e),r}function ZR(t,e){let r=Q(),n=Pe(),i=mt();return $p(n,r,r[Ue],i,t,e),ZR}function KR(t,e,r){let n=Pe();if(n.firstCreatePass){let i=bi(t);Fh(r,n.data,n.blueprint,i,!0),Fh(e,n.data,n.blueprint,i,!1)}}function Fh(t,e,r,n,i){if(t=Tt(t),Array.isArray(t))for(let o=0;o>20;if(Io(t)||!t.multi){let m=new Lr(l,i,p),y=Lf(c,e,i?d:d+f,u);y===-1?(Kf(rl(a,s),o,c),Pf(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(m),s.push(m)):(r[y]=m,s[y]=m)}else{let m=Lf(c,e,d+f,u),y=Lf(c,e,d,d+f),A=m>=0&&r[m],k=y>=0&&r[y];if(i&&!k||!i&&!A){Kf(rl(a,s),o,c);let O=ek(i?JR:XR,r.length,i,n,l);!i&&k&&(r[y].providerFactory=O),Pf(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(O),s.push(O)}else{let O=_w(r[i?y:m],l,!i&&n);Pf(o,t,m>-1?m:y,O)}!i&&n&&k&&r[y].componentProviders++}}}function Pf(t,e,r,n){let i=Io(e),o=ZS(e);if(i||o){let c=(o?Tt(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let d=l.indexOf(r);d===-1?l.push(r,[n,c]):l[d+1].push(n,c)}else l.push(r,c)}}}function _w(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Lf(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>KR(n,i?i(t):t,e)}}var tk=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Kh(!1,n.type),o=i.length>0?Ws([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(C(pt))});let t=e;return t})();function ge(t){yn("NgStandalone"),t.getStandaloneInjector=e=>e.get(tk).getOrCreateStandaloneInjector(t)}function Mi(t,e,r){let n=$s()+t,i=Q();return i[n]===ct?Fp(i,n,r?e.call(r):e()):V1(i,n)}function ni(t,e,r,n){return bw(Q(),$s(),t,e,r,n)}function vw(t,e,r,n,i){return ww(Q(),$s(),t,e,r,n,i)}function yw(t,e){let r=t[e];return r===ct?void 0:r}function bw(t,e,r,n,i,o){let s=e+r;return Yt(t,s,i)?Fp(t,s+1,o?n.call(o,i):n(i)):yw(t,s+1)}function ww(t,e,r,n,i,o,s){let a=e+r;return Fs(t,a,i,o)?Fp(t,a+2,s?n.call(s,i,o):n(i,o)):yw(t,a+2)}function lt(t,e){let r=Pe(),n,i=t+ot;r.firstCreatePass?(n=nk(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=kr(n.type,!0)),s,a=Gt(p);try{let c=il(!1),l=o();return il(c),WR(r,Q(),i,l),l}finally{Gt(a)}}function nk(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function gt(t,e,r){let n=t+ot,i=Q(),o=tp(i,n);return xw(i,n)?bw(i,$s(),e,o.transform,r,o):o.transform(r)}function Cw(t,e,r,n){let i=t+ot,o=Q(),s=tp(o,i);return xw(o,i)?ww(o,$s(),e,s.transform,r,n,s):s.transform(r,n)}function xw(t,e){return t[ne].data[e].pure}function Jl(t,e){return Yl(t,e)}var Hc=null;function ik(t){Hc!==null&&(t.defaultEncapsulation!==Hc.defaultEncapsulation||t.preserveWhitespaces!==Hc.preserveWhitespaces)||(Hc=t)}var ed=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var qp=new E(""),Ks=new E(""),td=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Wp||(rk(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{L.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,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,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(C(L),C(nd),C(Ks))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),nd=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return Wp?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function rk(t){Wp=t}var Wp;function er(t){return!!t&&typeof t.then=="function"}function Yp(t){return!!t&&typeof t.subscribe=="function"}var $o=new E(""),Dw=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g($o,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(er(s))n.push(s);else if(Yp(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),id=new E("");function ok(){yv(()=>{throw new V(600,!1)})}function sk(t){return t.isBoundToModule}var ak=10;function ck(t,e,r){try{let n=r();return er(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Ew(t,e){return Array.isArray(e)?e.reduce(Ew,t):S(S({},t),e)}var Mn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Mb),this.afterRenderEffectManager=g(Ql),this.zonelessEnabled=g(T0),this.externalTestViews=new Set,this.beforeRender=new N,this.afterTick=new N,this.componentTypes=[],this.components=[],this.isStable=g(Jn).hasPendingTasks.pipe(j(n=>!n)),this._injector=g(pt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof al;if(!this._injector.get(Dw).done){let m=!o&&zy(n),y=!1;throw new V(405,y)}let a;o?a=n:a=this._injector.get(rn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=sk(a)?void 0:this._injector.get(Qi),l=i||a.selector,d=a.create(Te.NULL,[],l,c),u=d.location.nativeElement,f=d.injector.get(qp,null);return f?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),Yc(this.components,d),f?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new V(101,!1);let i=De(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,De(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(Ao,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oRs(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Rs(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;Yc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(id,[]);[...this._bootstrapListeners,...i].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),()=>Yc(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new V(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Yc(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function lk(t,e,r,n){if(!r&&!Rs(t))return;D0(t,e,r&&!n?0:1)}var Lh=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},rd=(()=>{let e=class e{compileModuleSync(n){return new _l(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Gy(n),s=Xb(o.declarations).reduce((a,c)=>{let l=En(c);return l&&a.push(new $r(l)),a},[]);return new Lh(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dk=new E("");function uk(t,e,r){let n=new _l(r);return Promise.resolve(n)}function by(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var fk=!0;var hk=(()=>{let e=class e{constructor(){this.appRef=g(Mn),this.taskService=g(Jn),this.ngZone=g(L),this.zonelessEnabled=g(T0),this.disableScheduling=g(M0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ce,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof cl||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Xv:A0;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&L.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Xv(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var pk=(()=>{let e=class e{constructor(){this.zone=g(L),this.changeDetectionScheduler=g(Mo,{optional:!0}),this.applicationRef=g(Mn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler?.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mk({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new L(Iw()),[{provide:L,useFactory:t},{provide:Do,multi:!0,useFactory:()=>{let r=g(pk,{optional:!0});return()=>r.initialize()}},{provide:Do,multi:!0,useFactory:()=>{let r=g(_k);return()=>{r.initialize()}}},{provide:Mb,useFactory:gk},e===!0?{provide:M0,useValue:!0}:[],fk||e===!1?{provide:Mo,useExisting:hk}:[]]}function gk(){let t=g(L),e=g(gn);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Iw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _k=(()=>{let e=class e{constructor(){this.subscription=new Ce,this.initialized=!1,this.zone=g(L),this.pendingTasks=g(Jn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{L.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{L.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vk(){return typeof $localize<"u"&&$localize.locale||wl}var Uo=new E("",{providedIn:"root",factory:()=>g(Uo,Ee.Optional|Ee.SkipSelf)||vk()});var Sw=new E(""),Tw=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=QA(i?.ngZone,Iw({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=i?.ignoreChangesOutsideZone,a=P1(n.moduleType,this.injector,mk({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s})),c=a.injector.get(gn,null);return o.runOutsideAngular(()=>{let l=o.onError.subscribe({next:d=>{c.handleError(d)}});a.onDestroy(()=>{Yc(this._modules,a),l.unsubscribe()})}),ck(c,o,()=>{let l=a.injector.get(Dw);return l.runInitializers(),l.donePromise.then(()=>{let d=a.injector.get(Uo,wl);return HR(d||wl),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,i=[]){let o=Ew({},i);return uk(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(Mn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new V(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new V(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(Sw,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(C(Te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Es=null,Mw=new E("");function yk(t){if(Es&&!Es.get(Mw,!1))throw new V(400,!1);ok(),Es=t;let e=t.get(Tw);return Ck(t),e}function Qp(t,e,r=[]){let n=`Platform: ${e}`,i=new E(n);return(o=[])=>{let s=Aw();if(!s||s.injector.get(Mw,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):yk(bk(a,n))}return wk(i)}}function bk(t=[],e){return Te.create({name:e,providers:[{provide:Tl,useValue:"platform"},{provide:Sw,useValue:new Set([()=>Es=null])},...t]})}function wk(t){let e=Aw();if(!e)throw new V(401,!1);return e}function Aw(){return Es?.get(Tw)??null}function Ck(t){t.get(hp,null)?.forEach(r=>r())}function Aq(){return!1}var Ae=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xk;let t=e;return t})();function xk(t){return Dk(mt(),Q(),(t&16)===16)}function Dk(t,e,r){if(Rl(t)&&!r){let n=Zi(t.index,e);return new Br(n,n)}else if(t.type&47){let n=e[Vt];return new Br(n,e)}return null}var jh=class{constructor(){}supports(e){return G0(e)}create(e){return new Vh(e)}},Ek=(t,e)=>e,Vh=class{constructor(e){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=e||Ek}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Bh(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Cl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Cl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Bh=class{constructor(e,r){this.item=e,this.trackById=r,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}},Hh=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Cl=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Hh,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function wy(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;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(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new zh(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},zh=class{constructor(e){this.key=e,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 Cy(){return new Ai([new jh])}var Ai=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Cy()),deps:[[e,new Oo,new zr]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new V(901,!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:Cy});let t=e;return t})();function xy(){return new Zp([new $h])}var Zp=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xy()),deps:[[e,new Oo,new zr]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new V(901,!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:xy});let t=e;return t})();var Rw=Qp(null,"core",[]),kw=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(C(Mn))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})();function G(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Nt(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function od(t,e){yn("NgSignals");let r=wf(t);return e?.equal&&(r[nn].equal=e.equal),r}function zo(t){let e=De(null);try{return t()}finally{De(e)}}var Ik=new E("",{providedIn:"root",factory:()=>g(Sk)}),Sk=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new Gh});let t=e;return t})(),Gh=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(Jn),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},qh=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=Cv(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(gn,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function tr(t,e){yn("NgSignals"),!e?.injector&&No(tr);let r=e?.injector??g(Te),n=e?.manualCleanup!==!0?r.get(vn):null,i=new qh(r.get(Ik),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(Ae,null,{optional:!0});return!o||!(o._lView[re]&8)?i.watcher.notify():(o._lView[Uc]??=[]).push(i.watcher.notify),i}function Rq(t,e){let r=En(t),n=e.elementInjector||Ml();return new $r(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}function Ow(t){let e=En(t);if(!e)return null;let r=new $r(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Bw=null;function ii(){return Bw}function Hw(t){Bw??=t}var sd=class{};var te=new E(""),sm=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(Tk),providedIn:"platform"});let t=e;return t})(),$w=new E(""),Tk=(()=>{let e=class e extends sm{constructor(){super(),this._doc=g(te),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ii().getBaseHref(this._doc)}onPopState(n){let i=ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function am(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Nw(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Ri(t){return t&&t[0]!=="?"?"?"+t:t}var ki=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(cm),providedIn:"root"});let t=e;return t})(),Uw=new E(""),cm=(()=>{let e=class e extends ki{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(te).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 am(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Ri(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Ri(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Ri(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(sm),C(Uw,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zw=(()=>{let e=class e extends ki{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=am(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Ri(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Ri(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(sm),C(Uw,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),nr=(()=>{let e=class e{constructor(n){this._subject=new q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Rk(Nw(Fw(i))),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,i=""){return this.path()==this.normalize(n+Ri(i))}normalize(n){return e.stripTrailingSlash(Ak(this._basePath,Fw(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ri(i)),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.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Ri,e.joinWithSlash=am,e.stripTrailingSlash=Nw,e.\u0275fac=function(i){return new(i||e)(C(ki))},e.\u0275prov=I({token:e,factory:()=>Mk(),providedIn:"root"});let t=e;return t})();function Mk(){return new nr(C(ki))}function Ak(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Fw(t){return t.replace(/\/index.html$/,"")}function Rk(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var lm=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(lm||{});var sn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Wr(t,e){let r=Bp(t),n=r[Ho.NumberSymbols][e];if(typeof n>"u"){if(e===sn.CurrencyDecimal)return r[Ho.NumberSymbols][sn.Decimal];if(e===sn.CurrencyGroup)return r[Ho.NumberSymbols][sn.Group]}return n}function Gw(t,e){return Bp(t)[Ho.NumberFormats][e]}var kk=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Pw=22,ad=".",Xs="0",Ok=";",Nk=",",Xp="#";var Fk="%";function qw(t,e,r,n,i,o,s=!1){let a="",c=!1;if(!isFinite(t))a=Wr(r,sn.Infinity);else{let l=Vk(t);s&&(l=jk(l));let d=e.minInt,u=e.minFrac,f=e.maxFrac;if(o){let le=o.match(kk);if(le===null)throw new Error(`${o} is not a valid digit info`);let Ve=le[1],Fe=le[3],Ft=le[5];Ve!=null&&(d=Jp(Ve)),Fe!=null&&(u=Jp(Fe)),Ft!=null?f=Jp(Ft):Fe!=null&&u>f&&(f=u)}Bk(l,u,f);let m=l.digits,y=l.integerLen,A=l.exponent,k=[];for(c=m.every(le=>!le);y0?k=m.splice(y,m.length):(k=m,m=[0]);let O=[];for(m.length>=e.lgSize&&O.unshift(m.splice(-e.lgSize,m.length).join(""));m.length>e.gSize;)O.unshift(m.splice(-e.gSize,m.length).join(""));m.length&&O.unshift(m.join("")),a=O.join(Wr(r,n)),k.length&&(a+=Wr(r,i)+k.join("")),A&&(a+=Wr(r,sn.Exponential)+"+"+A)}return t<0&&!c?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function Pk(t,e,r){let n=Gw(e,lm.Percent),i=Ww(n,Wr(e,sn.MinusSign));return qw(t,i,e,sn.Group,sn.Decimal,r,!0).replace(new RegExp(Fk,"g"),Wr(e,sn.PercentSign))}function Lk(t,e,r){let n=Gw(e,lm.Decimal),i=Ww(n,Wr(e,sn.MinusSign));return qw(t,i,e,sn.Group,sn.Decimal,r)}function Ww(t,e="-"){let r={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(Ok),i=n[0],o=n[1],s=i.indexOf(ad)!==-1?i.split(ad):[i.substring(0,i.lastIndexOf(Xs)+1),i.substring(i.lastIndexOf(Xs)+1)],a=s[0],c=s[1]||"";r.posPre=a.substring(0,a.indexOf(Xp));for(let d=0;d-1&&(e=e.replace(ad,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===Xs;o++);if(o===(a=e.length))n=[0],i=1;else{for(a--;e.charAt(a)===Xs;)a--;for(i-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(e.charAt(o))}return i>Pw&&(n=n.splice(0,Pw-1),r=i-1,i=1),{digits:n,exponent:r,integerLen:i}}function Bk(t,e,r){if(e>r)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${r}).`);let n=t.digits,i=n.length-t.integerLen,o=Math.min(Math.max(e,i),r),s=o+t.integerLen,a=n[s];if(s>0){n.splice(Math.max(t.integerLen,s));for(let u=s;u=5)if(s-1<0){for(let u=0;u>s;u--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[s-1]++;for(;i=l?y.pop():c=!1),f>=10?1:0},0);d&&(n.unshift(d),t.integerLen++)}function Jp(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ld(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var em=/\s+/,Lw=[],dd=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=Lw,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(em):Lw}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(em):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(em).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(p($),p(Kn))},e.\u0275dir=F({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Yq=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new tm,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jw("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jw("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(p(We),p(ze))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),tm=class{constructor(){this.$implicit=null,this.ngIf=null}};function jw(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${jt(e)}'.`)}var ud=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(p(We))},e.\u0275dir=F({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Be]});let t=e;return t})();function Js(t,e){return new V(2100,!1)}var nm=class{createSubscription(e,r){return zo(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){zo(()=>e.unsubscribe())}},im=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},Hk=new im,$k=new nm,Qq=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(er(n))return Hk;if(Yp(n))return $k;throw Js(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(p(Ae,16))},e.\u0275pipe=ae({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var Uk=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Yw=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw Js(e,n);return n.replace(Uk,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();function zk(t,e){return{key:t,value:e}}var Qw=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=Vw}transform(n,i=Vw){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(zk(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}};e.\u0275fac=function(i){return new(i||e)(p(Zp,16))},e.\u0275pipe=ae({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function Vw(t,e){let r=t.key,n=e.key;if(r===n)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(r===null)return 1;if(n===null)return-1;if(typeof r=="string"&&typeof n=="string")return r{let e=class e{constructor(n){this._locale=n}transform(n,i,o){if(!Zw(n))return null;o||=this._locale;try{let s=Kw(n);return Lk(s,o,i)}catch(s){throw Js(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(p(Uo,16))},e.\u0275pipe=ae({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})(),Zq=(()=>{let e=class e{constructor(n){this._locale=n}transform(n,i,o){if(!Zw(n))return null;o||=this._locale;try{let s=Kw(n);return Pk(s,o,i)}catch(s){throw Js(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(p(Uo,16))},e.\u0275pipe=ae({name:"percent",type:e,pure:!0,standalone:!0});let t=e;return t})();function Zw(t){return!(t==null||t===""||t!==t)}function Kw(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var Kq=(()=>{let e=class e{transform(n,i,o){if(n==null)return null;if(!this.supports(n))throw Js(e,n);return n.slice(i,o)}supports(n){return typeof n=="string"||Array.isArray(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"slice",type:e,pure:!1,standalone:!0});let t=e;return t})();var Jt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})(),dm="browser",Gk="server";function um(t){return t===dm}function ea(t){return t===Gk}var Xw=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>um(g(on))?new rm(g(te),window):new om});let t=e;return t})(),rm=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=qk(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function qk(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var om=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Go=class{};var Jw=t=>t.src,Wk=new E("",{providedIn:"root",factory:()=>Jw});var Yk=new E("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),Qk=(()=>{let e=class e{constructor(){this.preloadedImages=g(Yk),this.document=g(te)}createPreloadLinkTag(n,i,o,s){if(this.preloadedImages.has(i))return;this.preloadedImages.add(i);let a=n.createElement("link");n.setAttribute(a,"as","image"),n.setAttribute(a,"href",i),n.setAttribute(a,"rel","preload"),n.setAttribute(a,"fetchpriority","high"),s&&n.setAttribute(a,"imageSizes",s),o&&n.setAttribute(a,"imageSrcset",o),n.appendChild(this.document.head,a)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Zk=/^((\s*\d+w\s*(,|$)){1,})$/;var Kk=[1,2],Xk=640;var Jk=1920,eO=1080;var Xq=(()=>{let e=class e{constructor(){this.imageLoader=g(Wk),this.config=tO(g(jb)),this.renderer=g(Kn),this.imgElement=g($).nativeElement,this.injector=g(Te),this.isServer=ea(g(on)),this.preloadLinkCreator=g(Qk),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){yn("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let n=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),n,this.sizes)}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){let i=this._renderedSrc;this.updateSrcAndSrcset(!0);let o=this._renderedSrc;this.lcpObserver!==null&&i&&o&&i!==o&&this.injector.get(L).runOutsideAngular(()=>{this.lcpObserver?.updateImage(i,o)})}}callImageLoader(n){let i=n;return this.loaderParams&&(i.loaderParams=this.loaderParams),this.imageLoader(i)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n)}return this._renderedSrc}getRewrittenSrcset(){let n=Zk.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let s=n?parseFloat(o):parseFloat(o)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,i=n;return this.sizes?.trim()==="100vw"&&(i=n.filter(s=>s>=Xk)),i.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(n=!1){n&&(this._renderedSrc=null);let i=this.getRewrittenSrc();this.setHostAttribute("src",i);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return Kk.map(i=>`${this.callImageLoader({src:this.ngSrc,width:this.width*i})} ${i}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=!1;return this.sizes||(n=this.width>Jk||this.height>eO),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Jw&&!n}generatePlaceholder(n){let{placeholderResolution:i}=this.config;return n===!0?`url(${this.callImageLoader({src:this.ngSrc,width:i,isPlaceholder:!0})})`:typeof n=="string"&&n.startsWith("data:")?`url(${n})`:null}shouldBlurPlaceholder(n){return!n||!n.hasOwnProperty("blur")?!0:!!n.blur}removePlaceholderOnLoad(n){let i=()=>{let a=this.injector.get(Ae);o(),s(),this.placeholder=!1,a.markForCheck()},o=this.renderer.listen(n,"load",i),s=this.renderer.listen(n,"error",i)}ngOnDestroy(){}setHostAttribute(n,i){this.renderer.setAttribute(this.imgElement,n,i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(i,o){i&2&&Xt("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",nO],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Nt],height:[2,"height","height",Nt],loading:"loading",priority:[2,"priority","priority",G],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",G],fill:[2,"fill","fill",G],placeholder:[2,"placeholder","placeholder",iO],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[ye,Be]});let t=e;return t})();function tO(t){let e={};return t.breakpoints&&(e.breakpoints=t.breakpoints.sort((r,n)=>r-n)),Object.assign({},pp,t,e)}function nO(t){return typeof t=="string"?t:Kt(t)}function iO(t){return typeof t=="string"&&t.startsWith("data:")?t:G(t)}var na=class{},qo=class{},Oi=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var hm=class{encodeKey(e){return eC(e)}encodeValue(e){return eC(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function rO(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var oO=/%(\d[a-f0-9])/gi,sO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eC(t){return encodeURIComponent(t).replace(oO,(e,r)=>sO[r]??e)}function hd(t){return`${t}`}var or=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new hm,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=rO(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(hd):[hd(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(hd(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(hd(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var pm=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function aO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function tC(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nC(t){return typeof Blob<"u"&&t instanceof Blob}function iC(t){return typeof FormData<"u"&&t instanceof FormData}function cO(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ta=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(aO(this.method)||i?(this.body=n!==void 0?n:null,o=i):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.transferCache=o.transferCache),this.headers??=new Oi,this.context??=new pm,!this.params)this.params=new or,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(m,e.setHeaders[m]),l)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,m)=>f.set(m,e.setParams[m]),d)),new t(r,n,s,{params:d,headers:l,context:u,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},sr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(sr||{}),ia=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Oi,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},pd=class t extends ia{constructor(e={}){super(e),this.type=sr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ra=class t extends ia{constructor(e={}){super(e),this.type=sr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},rr=class extends ia{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},cC=200,lO=204;function fm(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var oa=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof ta)s=n;else{let l;o.headers instanceof Oi?l=o.headers:l=new Oi(o.headers);let d;o.params&&(o.params instanceof or?d=o.params:d=new or({fromObject:o.params})),s=new ta(n,i,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=B(s).pipe(gi(l=>this.handler.handle(l)));if(n instanceof ta||o.observe==="events")return a;let c=a.pipe(xe(l=>l instanceof ra));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(j(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(j(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(j(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(j(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new or().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,fm(o,i))}post(n,i,o={}){return this.request("POST",n,fm(o,i))}put(n,i,o={}){return this.request("PUT",n,fm(o,i))}};e.\u0275fac=function(i){return new(i||e)(C(na))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),dO=/^\)\]\}',?\n/,uO="X-Request-URL";function rC(t){if(t.url)return t.url;let e=uO.toLocaleLowerCase();return t.headers.get(e)}var fO=(()=>{let e=class e{constructor(){this.fetchImpl=g(mm,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(L)}handle(n){return new Z(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(gm,s=>i.error(new rr({error:s}))),()=>o.abort()})}doRequest(n,i,o){return vs(this,null,function*(){let s=this.createRequestInit(n),a;try{let y=this.fetchImpl(n.urlWithParams,S({signal:i},s));hO(y),o.next({type:sr.Sent}),a=yield y}catch(y){o.error(new rr({error:y,status:y.status??0,statusText:y.statusText,url:n.urlWithParams,headers:y.headers}));return}let c=new Oi(a.headers),l=a.statusText,d=rC(a)??n.urlWithParams,u=a.status,f=null;if(n.reportProgress&&o.next(new pd({headers:c,status:u,statusText:l,url:d})),a.body){let y=a.headers.get("content-length"),A=[],k=a.body.getReader(),O=0,le,Ve,Fe=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>vs(this,null,function*(){for(;;){let{done:ut,value:hn}=yield k.read();if(ut)break;if(A.push(hn),O+=hn.length,n.reportProgress){Ve=n.responseType==="text"?(Ve??"")+(le??=new TextDecoder).decode(hn,{stream:!0}):void 0;let oo=()=>o.next({type:sr.DownloadProgress,total:y?+y:void 0,loaded:O,partialText:Ve});Fe?Fe.run(oo):oo()}}}));let Ft=this.concatChunks(A,O);try{let ut=a.headers.get("Content-Type")??"";f=this.parseBody(n,Ft,ut)}catch(ut){o.error(new rr({error:ut,headers:new Oi(a.headers),status:a.status,statusText:a.statusText,url:rC(a)??n.urlWithParams}));return}}u===0&&(u=f?cC:0),u>=200&&u<300?(o.next(new ra({body:f,headers:c,status:u,statusText:l,url:d})),o.complete()):o.error(new rr({error:f,headers:c,status:u,statusText:l,url:d}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(dO,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),mm=class{};function gm(){}function hO(t){t.then(gm,gm)}function lC(t,e){return e(t)}function pO(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function mO(t,e,r){return(n,i)=>Qt(r,()=>e(n,o=>t(o,i)))}var gO=new E(""),gd=new E(""),_O=new E(""),dC=new E("",{providedIn:"root",factory:()=>!0});function vO(){let t=null;return(e,r)=>{t===null&&(t=(g(gO,{optional:!0})??[]).reduceRight(pO,lC));let n=g(Jn);if(g(dC)){let o=n.add();return t(e,r).pipe(Ui(()=>n.remove(o)))}else return t(e,r)}}var oC=(()=>{let e=class e extends na{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Jn),this.contributeToStability=g(dC)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(gd),...this.injector.get(_O,[])]));this.chain=i.reduceRight((o,s)=>mO(o,s,this.injector),lC)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ui(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(C(qo),C(pt))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();var yO=/^\)\]\}',?\n/;function bO(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var sC=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new V(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?$e(i.\u0275loadImpl()):B(null)).pipe(rt(()=>new Z(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((k,O)=>a.setRequestHeader(k,O.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let k=n.detectContentTypeHeader();k!==null&&a.setRequestHeader("Content-Type",k)}if(n.responseType){let k=n.responseType.toLowerCase();a.responseType=k!=="json"?k:"text"}let c=n.serializeBody(),l=null,d=()=>{if(l!==null)return l;let k=a.statusText||"OK",O=new Oi(a.getAllResponseHeaders()),le=bO(a)||n.url;return l=new pd({headers:O,status:a.status,statusText:k,url:le}),l},u=()=>{let{headers:k,status:O,statusText:le,url:Ve}=d(),Fe=null;O!==lO&&(Fe=typeof a.response>"u"?a.responseText:a.response),O===0&&(O=Fe?cC:0);let Ft=O>=200&&O<300;if(n.responseType==="json"&&typeof Fe=="string"){let ut=Fe;Fe=Fe.replace(yO,"");try{Fe=Fe!==""?JSON.parse(Fe):null}catch(hn){Fe=ut,Ft&&(Ft=!1,Fe={error:hn,text:Fe})}}Ft?(s.next(new ra({body:Fe,headers:k,status:O,statusText:le,url:Ve||void 0})),s.complete()):s.error(new rr({error:Fe,headers:k,status:O,statusText:le,url:Ve||void 0}))},f=k=>{let{url:O}=d(),le=new rr({error:k,status:a.status||0,statusText:a.statusText||"Unknown Error",url:O||void 0});s.error(le)},m=!1,y=k=>{m||(s.next(d()),m=!0);let O={type:sr.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(O.total=k.total),n.responseType==="text"&&a.responseText&&(O.partialText=a.responseText),s.next(O)},A=k=>{let O={type:sr.UploadProgress,loaded:k.loaded};k.lengthComputable&&(O.total=k.total),s.next(O)};return a.addEventListener("load",u),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",y),c!==null&&a.upload&&a.upload.addEventListener("progress",A)),a.send(c),s.next({type:sr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",u),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",y),c!==null&&a.upload&&a.upload.removeEventListener("progress",A)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(C(Go))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),uC=new E(""),wO="XSRF-TOKEN",CO=new E("",{providedIn:"root",factory:()=>wO}),xO="X-XSRF-TOKEN",DO=new E("",{providedIn:"root",factory:()=>xO}),md=class{},EO=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ld(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(C(te),C(on),C(CO))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function IO(t,e){let r=t.url.toLowerCase();if(!g(uC)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(md).getToken(),i=g(DO);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var _m=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(_m||{});function fC(t,e){return{\u0275kind:t,\u0275providers:e}}function _d(...t){let e=[oa,sC,oC,{provide:na,useExisting:oC},{provide:qo,useFactory:()=>g(fO,{optional:!0})??g(sC)},{provide:gd,useValue:IO,multi:!0},{provide:uC,useValue:!0},{provide:md,useClass:EO}];for(let r of t)e.push(...r.\u0275providers);return Sl(e)}function fW(t){return fC(_m.Interceptors,t.map(e=>({provide:gd,useValue:e,multi:!0})))}var aC=new E("");function hC(){return fC(_m.LegacyInterceptors,[{provide:aC,useFactory:vO},{provide:gd,useExisting:aC,multi:!0}])}var bm=class extends sd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},wm=class t extends bm{static makeCurrent(){Hw(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=SO();return r==null?null:TO(r)}resetBaseElement(){sa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ld(document.cookie,e)}},sa=null;function SO(){return sa=sa||document.querySelector("base"),sa?sa.getAttribute("href"):null}function TO(t){return new URL(t,document.baseURI).pathname}var Cm=class{addToWindow(e){ht.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new V(5103,!1);return o},ht.getAllAngularTestabilities=()=>e.getAllTestabilities(),ht.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ht.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ht.frameworkStabilizers||(ht.frameworkStabilizers=[]),ht.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?ii().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},MO=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),xm=new E(""),_C=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new V(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(C(xm),C(L))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),vd=class{constructor(e){this._doc=e}},vm="ng-app-id",vC=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ea(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${vm}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(vm),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(vm,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(C(te),C(Lo),C(zs,8),C(on))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),ym={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/Math/MathML"},Em=/%COMP%/g,yC="%COMP%",AO=`_nghost-${yC}`,RO=`_ngcontent-${yC}`,kO=!0,OO=new E("",{providedIn:"root",factory:()=>kO});function NO(t){return RO.replace(Em,t)}function FO(t){return AO.replace(Em,t)}function bC(t,e){return e.map(r=>r.replace(Em,t))}var pC=(()=>{let e=class e{constructor(n,i,o,s,a,c,l,d=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=ea(c),this.defaultRenderer=new aa(n,a,l,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===qn.ShadowDom&&(i=ue(S({},i),{encapsulation:qn.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof yd?o.applyToHost(n):o instanceof ca&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case qn.Emulated:s=new yd(l,d,i,this.appId,u,a,c,f);break;case qn.ShadowDom:return new Dm(l,d,n,i,a,c,this.nonce,f);default:s=new ca(l,d,i,u,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(C(_C),C(vC),C(Lo),C(OO),C(te),C(on),C(L),C(zs))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),aa=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(ym[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(mC(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(mC(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new V(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=ym[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=ym[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Ci.DashCase|Ci.Important)?e.style.setProperty(r,n,i&Ci.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Ci.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=ii().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function mC(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Dm=class extends aa{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=bC(i.id,i.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ca=class extends aa{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?bC(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},yd=class extends ca{constructor(e,r,n,i,o,s,a,c){let l=i+"-"+n.id;super(e,r,n,o,s,a,c,l),this.contentAttr=NO(l),this.hostAttr=FO(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},PO=(()=>{let e=class e extends vd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),gC=["alt","control","meta","shift"],LO={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},VO=(()=>{let e=class e extends vd{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ii().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),gC.forEach(d=>{let u=i.indexOf(d);u>-1&&(i.splice(u,1),a+=d+".")}),a+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(n,i){let o=LO[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),gC.forEach(a=>{if(a!==o){let c=jO[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function BO(){wm.makeCurrent()}function HO(){return new gn}function $O(){return Pb(document),document}var UO=[{provide:on,useValue:dm},{provide:hp,useValue:BO,multi:!0},{provide:te,useFactory:$O,deps:[]}],SW=Qp(Rw,"browser",UO),zO=new E(""),GO=[{provide:Ks,useClass:Cm,deps:[]},{provide:qp,useClass:td,deps:[L,nd,Ks]},{provide:td,useClass:td,deps:[L,nd,Ks]}],qO=[{provide:Tl,useValue:"root"},{provide:gn,useFactory:HO,deps:[]},{provide:xm,useClass:PO,multi:!0,deps:[te,L,on]},{provide:xm,useClass:VO,multi:!0,deps:[te]},pC,vC,_C,{provide:Ao,useExisting:pC},{provide:Go,useClass:MO,deps:[]},[]],TW=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Lo,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(C(zO,12))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[...qO,...GO],imports:[Jt,kw]});let t=e;return t})();var bd=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var WO=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=C(YO),o},providedIn:"root"});let t=e;return t})(),YO=(()=>{let e=class e extends WO{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Tn.NONE:return i;case Tn.HTML:return Ii(i,"HTML")?Kt(i):gp(this._doc,String(i)).toString();case Tn.STYLE:return Ii(i,"Style")?Kt(i):i;case Tn.SCRIPT:if(Ii(i,"Script"))return Kt(i);throw new V(5200,!1);case Tn.URL:return Ii(i,"URL")?Kt(i):Vl(String(i));case Tn.RESOURCE_URL:if(Ii(i,"ResourceURL"))return Kt(i);throw new V(5201,!1);default:throw new V(5202,!1)}}bypassSecurityTrustHtml(n){return Hb(n)}bypassSecurityTrustStyle(n){return $b(n)}bypassSecurityTrustScript(n){return Ub(n)}bypassSecurityTrustUrl(n){return zb(n)}bypassSecurityTrustResourceUrl(n){return Gb(n)}};e.\u0275fac=function(i){return new(i||e)(C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RW(t,e){let r=wd(t);return r+=e,ZO(r)}function wd(t){return t.day+((wC.get(t.season)??0)-1)*28+(t.year-1)*112}function kW(t,e,r=!1){let n=[e].flat();if(!n.length)return!1;let i=wd(t);return r&&(i=Math.floor(i-1)%112),n.some(o=>{let s=wd(o.from);r&&(s=Math.floor(s-1)%112);let a=wd(o.to);return r&&(a=Math.floor(a-1)%112),s<=i&&a>=i})}function ZO(t){let e=Math.floor((t-1)/112)+1,r=(t-1)%28+1,n=Math.floor((t-1)%112/28)+1;return{day:r,season:n===1?"Spring":n===2?"Summer":n===3?"Fall":"Winter",year:e}}var Rt=function(t){return t.BASE="base",t.BRONZE="bronze",t.SILVER="silver",t.GOLD="gold",t.OSMIUM="osmium",t}(Rt||{});var fe=function(t){return t.CROSS="T_Icon_Cross",t.EMPTY_STAR="T_Icon_Styles",t.ARROW_RIGHT="T_BoxArrowRight",t.CORAL="T_Icon_GoldMinimal",t.WARNING="Exclamation_Warning",t.FESTIVAL="T_Icon_Festivals",t.BIRTHDAY="T_Icon_Birthday",t.JOURNAL="T_Icon_Journal",t.CRAFTING="T_Icon_Crafting",t.PEOPLE="T_Icon_People",t.DATABASE="T_Icon_AllQuest",t.MAP="T_Icon_Map",t.TO_DO="T_Icon_Errands",t.TO_DO_ON_LIST="T_Icon_Checklist_Checked",t.BURGER_MENU="T_Icon_BurgerMenu",t.SETTINGS="T_Icon_GameSettings",t.MY_CORAL="T_icon_coral",t.MISC="T_Icon_ShipmentMedium",t.CATCHING="T_Icon_CatchingM",t.FARMING="T_Icon_FarmingM",t.ARTISAN="T_Icon_ArtisanM",t.COOKING="T_Icon_ConsumablesM",t.OFFERING="T_Icon_Offering",t.BESTIARY="T_Icon_Bestiary",t.NOTES="T_Icon_Notes",t.ACHIEVEMENT="T_Icon_Achievement",t.BADGES="T_Icon_Badges",t.PLANT="T_Icon_Plant",t.BLACKSMITH="T_Icon_Blacksmith",t.COFFEE="T_Icon_Coffee",t.INN="T_Icon_Inn",t.LAB="T_Icon_Lab",t.MUSEUM="T_Icon_Museum",t.RANCH="T_Icon_Ranch",t.SALON="T_Icon_Salon",t.ANIMAL_SHELTER="T_Icons_AnimalShelter",t.BEACH_SHACK="T_Icons_BeachShack",t.CARAVAN="T_Icons_Caravan",t.CARPENTER="T_Icons_Carpenter",t.CLOTHING_STORE="T_Icons_ClothingStore",t.STORE="T_Icons_Store",t.TAVERN="T_Icons_Tavern",t.RAMEN="T_Icons_Ramen",t.GIFTING="Icons_Gift",t.LOVE="T_Icon_Love",t.LIKE="T_Icon_Like",t.NEUTRAL="T_Icon_Expression",t.DISLIKE="T_Icon_Dislike",t.HATE="T_Icon_Hate",t.ANIMAL_DAY="T_Icon_AnimalDay",t.CHERRY_BLOSSOM="T_Icon_CherryBlossom",t.OCEAN_CLEAN_UP="T_Icon_Cleanup",t.EARTH="T_Icon_Earth",t.MOONCAKE="T_Icon_Mooncake",t.NEW_YEAR="T_Icon_NewYear",t.SPOOKY="T_Icon_Spooky",t.WINTER_FAIR="T_Icon_WinterFair",t}(fe||{});var LW=["de","en","es","fr","id","ja","zh-CN","ko","pt-BR"],jW={de:"german",en:"english",id:"indonesian",fr:"french",es:"spanish",ja:"japanese","zh-CN":"chinese simplified",ko:"korean","pt-BR":"brazilian portuguese"};var HW={"cherry-blossom":"Cherry blossom","earth-day":"Earth Day","tree-planting":"Tree Planting",animal:"Animal","beach-clean-up":"Beach Clean Up",spooky:"Spooky",harvest:"Harvest","new-year-eve":"New Year Eve Feast","winter-fair":"Winter Fair"},$W={"winter-fair":fe.WINTER_FAIR,"tree-planting":fe.EARTH,animal:fe.ANIMAL_DAY,"beach-clean-up":fe.OCEAN_CLEAN_UP,spooky:fe.SPOOKY,harvest:fe.MOONCAKE,"new-year-eve":fe.NEW_YEAR,"cherry-blossom":fe.CHERRY_BLOSSOM};var CC=["Spring","Summer","Fall","Winter"];var WW={blacksmith:"Blacksmith",lab:"Lab","general-store":"Sams general store",carpenter:"Carpenter","merfolk-general-store":"Merfolk general store","merfolk-oracle-tail-store":"Merfolk tail store","pet-shop":"Pet Shop",ranch:"Ranch","beach-shack":"Beach Shack","concerned-monkey":"Concerned Monkey","bens-caravan":"Bens Caravan",bos:"Band of Smiles","socket-and-pan":"Socket & Pan",tavern:"Fishensips",coffee:"Raj's Coffee Corner","white-flamingo":"White Flamingo","tidal-threads":"Tidal Threads","underwater-ranch":"Underwater Ranch","taco-truck":"Taco Truck","sales-cart-stall":"Sales Cart Stall","furniture-store":"Furniture Store","ramen-shop":"Ramen Shop"},YW={blacksmith:fe.BLACKSMITH,lab:fe.LAB,"general-store":fe.STORE,carpenter:fe.CARPENTER,"merfolk-general-store":fe.CORAL,"merfolk-oracle-tail-store":fe.CORAL,"pet-shop":fe.ANIMAL_SHELTER,ranch:fe.RANCH,"beach-shack":fe.BEACH_SHACK,"concerned-monkey":fe.ACHIEVEMENT,"bens-caravan":fe.CARAVAN,bos:fe.BESTIARY,"socket-and-pan":fe.COOKING,coffee:fe.COFFEE,"white-flamingo":fe.CLOTHING_STORE,tavern:fe.TAVERN,"tidal-threads":fe.CLOTHING_STORE,"underwater-ranch":fe.RANCH,"taco-truck":fe.STORE,"sales-cart-stall":fe.STORE,"furniture-store":fe.STORE,"ramen-shop":fe.RAMEN};var xC=["Sunny","Rain","Storm","Windy","Snow","Blizzard"];function KO(t){let e=Object.keys(t);return e.map(n=>t[n]).filter(n=>n).length===e.length}function n7(t,e="Any"){return KO(t)?e:Object.keys(t).filter(r=>t[r]).map(XO).map(Im).join(", ")}function XO(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Im(t){return(t??"").replaceAll(/([A-Z])/g," $1").trim()}function i7(t){return t.endsWith("-a")||t.endsWith("-2")?Rt.BRONZE:t.endsWith("-b")||t.endsWith("-3")?Rt.SILVER:t.endsWith("-c")||t.endsWith("-4")?Rt.GOLD:t.endsWith("-d")||t.endsWith("-5")?Rt.OSMIUM:Rt.BASE}function r7(t){return t!=null}function an(t){return"id"in t?t.id:t.key}function DC(t){return t.map(e=>{let r=Object.keys(e)[0];return ue(S({},e[r]),{mapKey:r})})}var a7=new Map([["Common",10],["Uncommon",20],["Rare",30],["Super Rare",40],["SuperRare",40],["Legendary",50]]),c7=new Map([["Small",10],["Medium",20],["Large",30],["Gigantic",40]]),wC=new Map([["Spring",1],["Summer",2],["Fall",3],["Winter",4]]);var en=(()=>{let e=class e{constructor(){this.CURRENT_SETTINGS_VERSION=1,this.SETTINGS_STORAGE_KEY="coral-guide-settings",this.DEFAULT_SETTINGS={version:this.CURRENT_SETTINGS_VERSION,useBeta:!1,language:"en"}}saveSettings(n){let i=S(S({},this.DEFAULT_SETTINGS),n);localStorage.setItem(this.SETTINGS_STORAGE_KEY,JSON.stringify(i)),this._settings=i}getSettings(){let n=localStorage.getItem(this.SETTINGS_STORAGE_KEY);if(!n)this.saveSettings(this.DEFAULT_SETTINGS);else if(!this._settings){let i=JSON.parse(n);this._settings=this._migrate(i)}return this._settings}_migrate(n){if(!n.version){let i=ue(S({},this.DEFAULT_SETTINGS),{useBeta:!!n.useBeta});return this.saveSettings(i),i}return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var EC=(()=>{let e=class e{constructor(){this.settings=g(en).getSettings(),this.http=g(oa);let n=this.settings.useBeta?"beta":"live",i=this.settings.language??"en";this.BASE_PATH=`assets/${n}/database`,this.BASE_PATH_WITH_LANG=`assets/${n}/database/${i}`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Cd=(()=>{let e=class e extends EC{constructor(){super(...arguments),this._ITEMS=[],this._JOURNAL_ORDERS=new Map,this._TAG_BASED_ITEMS=[],this._GIFT_PREFERENCES=[],this._SHOP_ITEMS=new Map,this._FESTIVAL_DATA=new Map,this._SHOP_PROCESS_ITEMS=new Map,this._OPENING_HOURS=new Map,this._ITEM_UPGRADE=new Map,this._NPCS=[],this._PROCESSOR_MAPPING={},this._COOKING_UTENSIL_MAPPING={},this._ANIMAL_SHOP_DATA=new Map,this._DATABASE_ITEMS=new Map}fetchDatabaseItem$(n){return this._DATABASE_ITEMS.has(n)?B(this._DATABASE_ITEMS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/items/${n}.json`).pipe(Ie(i=>this._DATABASE_ITEMS.set(n,i)),de(1))}getItems(){return this._ITEMS}fetchItems$(){return this._ITEMS$||(this._ITEMS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/items.json`).pipe(Ie(n=>this._ITEMS=n),de(1))),this._ITEMS$}fetchMailData$(){return this._MAIL_DATA$||(this._MAIL_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/mail-data.json`).pipe(de(1))),this._MAIL_DATA$}fetchBestiary$(){return this._BESTIARY$||(this._BESTIARY$=this.http.get(`${this.BASE_PATH_WITH_LANG}/bestiary.json`).pipe(de(1))),this._BESTIARY$}fetchAnimals$(){return this._ANIMAL_DATA$||(this._ANIMAL_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/animal-data.json`).pipe(de(1))),this._ANIMAL_DATA$}fetchAnimalMoodData$(){return this._ANIMAL_MOOD_DATA$||(this._ANIMAL_MOOD_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/animal-mood-size.json`).pipe(de(1))),this._ANIMAL_MOOD_DATA$}fetchAnimalShopData$(n){return this._ANIMAL_SHOP_DATA.has(n)?B(this._ANIMAL_SHOP_DATA.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-animal-shop-data.json`).pipe(Ie(i=>this._ANIMAL_SHOP_DATA.set(n,i)),de(1))}fetchTornPagesData$(){return this._TORN_PAGES_DATA$||(this._TORN_PAGES_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/torn-pages.json`).pipe(de(1))),this._TORN_PAGES_DATA$}getCookingUtensilMapping(){return this._COOKING_UTENSIL_MAPPING}fetchCookingUtensilMapping$(){return this._COOKING_UTENSIL_MAPPING$||(this._COOKING_UTENSIL_MAPPING$=this.http.get(`${this.BASE_PATH_WITH_LANG}/cooking-utensil-mapping.json`).pipe(j(n=>n[0]),Ie(n=>this._COOKING_UTENSIL_MAPPING=n),de(1))),this._COOKING_UTENSIL_MAPPING$}getProcessorMapping(){return this._PROCESSOR_MAPPING}fetchProcessorMapping$(){return this._PROCESSOR_MAPPING$||(this._PROCESSOR_MAPPING$=this.http.get(`${this.BASE_PATH_WITH_LANG}/processor-mapping.json`).pipe(j(n=>n[0]),Ie(n=>this._PROCESSOR_MAPPING=n),de(1))),this._PROCESSOR_MAPPING$}getNPCs(){return this._NPCS}fetchNPCs$(){return this._NPCS$||(this._NPCS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/npcs.json`).pipe(Ie(n=>this._NPCS=n),de(1))),this._NPCS$}fetchHeartEvents$(){return this._HEART_EVENTS$||(this._HEART_EVENTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/heart-events.json`).pipe(j(n=>n[0]),de(1))),this._HEART_EVENTS$}fetchMuseumChecklist$(){return this._MUSEUM_CHECKLIST$||(this._MUSEUM_CHECKLIST$=this.http.get(`${this.BASE_PATH_WITH_LANG}/museum-checklist.json`).pipe(j(n=>n[0]),de(1))),this._MUSEUM_CHECKLIST$}fetchCookingRecipesChecklist$(){return this._COOKING_RECIPES_CHECKLIST$||(this._COOKING_RECIPES_CHECKLIST$=this.http.get(`${this.BASE_PATH_WITH_LANG}/cooking-recipes-checklist.json`).pipe(j(n=>n[0]),de(1))),this._COOKING_RECIPES_CHECKLIST$}fetchAchievements$(){return this._ACHHIEVEMENTS$||(this._ACHHIEVEMENTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/achievements.json`).pipe(de(1))),this._ACHHIEVEMENTS$}fetchOfferings$(){return this._OFFERINGS$||(this._OFFERINGS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/offerings.json`).pipe(de(1))),this._OFFERINGS$}fetchConsumables$(){return this._CONSUMABLES$||(this._CONSUMABLES$=this.http.get(`${this.BASE_PATH_WITH_LANG}/consumables.json`).pipe(de(1))),this._CONSUMABLES$}fetchItemMixingRecipeData$(){return this._ITEM_MIXING_RECIPE$||(this._ITEM_MIXING_RECIPE$=this.http.get(`${this.BASE_PATH_WITH_LANG}/underwater-seeds-item-mixing-data.json`).pipe(de(1))),this._ITEM_MIXING_RECIPE$}fetchFish$(){return this._FISH$||(this._FISH$=this.http.get(`${this.BASE_PATH_WITH_LANG}/fish.json`).pipe(de(1))),this._FISH$}fetchCraftingRecipes$(){return this._CRAFTING_RECIPE$||(this._CRAFTING_RECIPE$=zt([this.http.get(`${this.BASE_PATH_WITH_LANG}/crafting-recipes.json`),this.fetchItems$(),this.fetchTagBasedItems$()]).pipe(j(([n,i,o])=>(n.forEach(s=>{s.item=i.find(a=>a.id===s.key.toLowerCase()),s.genericIngredients.forEach(a=>a.genericItem=o.find(c=>c.key===a.key))}),n))).pipe(de(1))),this._CRAFTING_RECIPE$}fetchItemProcessingRecipes$(){return this._ITEM_PROCESSING_RECIPE$||(this._ITEM_PROCESSING_RECIPE$=zt([this.http.get(`${this.BASE_PATH_WITH_LANG}/item-processing.json`),this.fetchTagBasedItems$(),this.fetchItems$()]).pipe(j(([n,i,o])=>{let s=n[0];return Object.keys(s).forEach(a=>{s[a].forEach(c=>{c.machine=a,c.genericInput&&(c.genericInput.genericItem=i.find(l=>l.key===c.genericInput?.key)),c.output.item.sellPrice=o.find(l=>l.id===c.output.item.id)?.sellPrice})}),s}),de(1))),this._ITEM_PROCESSING_RECIPE$}fetchCookingRecipes$(){return this._COOKING_RECIPE$||(this._COOKING_RECIPE$=this.http.get(`${this.BASE_PATH_WITH_LANG}/cooking-recipes.json`).pipe(j(n=>n[0]),de(1))),this._COOKING_RECIPE$}fetchTreasureHunts$(){return this._TREASURE_HUNTS$||(this._TREASURE_HUNTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/treasure-hunt-maps.json`).pipe(de(1))),this._TREASURE_HUNTS$}fetchTagBasedItems$(){return this._TAG_BASED_ITEMS$||(this._TAG_BASED_ITEMS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/tag-based-items.json`).pipe(Ie(n=>this._TAG_BASED_ITEMS=n),de(1))),this._TAG_BASED_ITEMS$}getTagBasedItems(){return this._TAG_BASED_ITEMS}fetchOceanCritters$(){return this._OCEAN_CRITTERS$||(this._OCEAN_CRITTERS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/ocean-critters.json`).pipe(de(1))),this._OCEAN_CRITTERS$}fetchBugsAndInsects$(){return this._BUGS_AND_INSECTS$||(this._BUGS_AND_INSECTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/bugs-and-insects.json`).pipe(de(1))),this._BUGS_AND_INSECTS$}fetchCrops$(){return this._CROPS$||(this._CROPS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/crops.json`).pipe(de(1))),this._CROPS$}fetchFruitTrees$(){return this._FRUIT_TREES$||(this._FRUIT_TREES$=this.http.get(`${this.BASE_PATH_WITH_LANG}/fruit-trees.json`).pipe(de(1))),this._FRUIT_TREES$}fetchFruitPlants$(){return this._FRUIT_PLANTS$||(this._FRUIT_PLANTS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/fruit-plants.json`).pipe(de(1))),this._FRUIT_PLANTS$}fetchJournalOrder$(n){return this._JOURNAL_ORDERS.get(n)||this._JOURNAL_ORDERS.set(n,this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}.json`).pipe(de(1))),this._JOURNAL_ORDERS.get(n)}fetchGiftingPreferences$(){return this._GIFT_PREFERENCES$||(this._GIFT_PREFERENCES$=this.http.get(`${this.BASE_PATH_WITH_LANG}/gift-preferences.json`).pipe(j(n=>DC(n)),Ie(n=>this._GIFT_PREFERENCES=n),de(1))),this._GIFT_PREFERENCES$}getGiftingPreferences(){return this._GIFT_PREFERENCES}fetchPetShopAdoptions$(){return this._PET_SHOP_ADOPTIONS$||(this._PET_SHOP_ADOPTIONS$=this.http.get(`${this.BASE_PATH_WITH_LANG}/pet-shop-adoptions.json`).pipe(de(1))),this._PET_SHOP_ADOPTIONS$}fetchShopProcessItems$(n){return this._SHOP_PROCESS_ITEMS.has(n)?B(this._SHOP_PROCESS_ITEMS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-shop-process-items.json`).pipe(Ie(i=>this._SHOP_PROCESS_ITEMS.set(n,i)),de(1))}fetchItemUpgradeData$(n){return this._ITEM_UPGRADE.has(n)?B(this._ITEM_UPGRADE.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-item-upgrade.json`).pipe(Ie(i=>this._ITEM_UPGRADE.set(n,i)),de(1))}fetchOpeningHours$(n){return this._OPENING_HOURS.has(n)?B(this._OPENING_HOURS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-opening-hours.json`).pipe(j(i=>i[0]),Ie(i=>this._OPENING_HOURS.set(n,i)),de(1))}fetchShopItemData$(n){return this._SHOP_ITEMS.has(n)?B(this._SHOP_ITEMS.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-shop-items.json`).pipe(Ie(i=>this._SHOP_ITEMS.set(n,i)),de(1))}fetchFestivalData$(n){return this._FESTIVAL_DATA.has(n)?B(this._FESTIVAL_DATA.get(n)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-festival-data.json`).pipe(j(i=>i[0]),Ie(i=>this._FESTIVAL_DATA.set(n,i)),de(1))}fetchFestivalOpeningHours$(n){let i="festival_"+n;return this._OPENING_HOURS.has(i)?B(this._OPENING_HOURS.get(i)):this.http.get(`${this.BASE_PATH_WITH_LANG}/${n}-festival-opening-hours.json`).pipe(j(o=>o[0]),Ie(o=>this._OPENING_HOURS.set(i,o)),de(1))}fetchMeritExchangeShopData$(){return this._MERIT_EXCHANGE_SHOP_DATA$||(this._MERIT_EXCHANGE_SHOP_DATA$=this.http.get(`${this.BASE_PATH_WITH_LANG}/merit-exchange-shop-items.json`).pipe(de(1))),this._MERIT_EXCHANGE_SHOP_DATA$}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Tm;try{Tm=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Tm=!1}var Oe=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?um(this._platformId):typeof document=="object"&&!!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||Tm)&&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}};e.\u0275fac=function(i){return new(i||e)(C(on))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Wo,IC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function k7(){if(Wo)return Wo;if(typeof document!="object"||!document)return Wo=new Set(IC),Wo;let t=document.createElement("input");return Wo=new Set(IC.filter(e=>(t.setAttribute("type",e),t.type===e))),Wo}var la;function JO(){if(la==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>la=!0}))}finally{la=la||!1}return la}function ri(t){return JO()?t:!!t.capture}var An=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(An||{}),xd,Yr;function Dd(){if(Yr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Yr=!1,Yr;if("scrollBehavior"in document.documentElement.style)Yr=!0;else{let t=Element.prototype.scrollTo;t?Yr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Yr=!1}}return Yr}function Yo(){if(typeof document!="object"||!document)return An.NORMAL;if(xd==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),n=r.style;n.width="2px",n.height="1px",t.appendChild(r),document.body.appendChild(t),xd=An.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,xd=t.scrollLeft===0?An.NEGATED:An.INVERTED),t.remove()}return xd}var Sm;function eN(){if(Sm==null){let t=typeof document<"u"?document.head:null;Sm=!!(t&&(t.createShadowRoot||t.attachShadow))}return Sm}function SC(t){if(eN()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function tN(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function cn(t){return t.composedPath?t.composedPath()[0]:t.target}function da(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Ht(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function ln(t){return t!=null&&`${t}`!="false"}function si(t,e=0){return Mm(t)?Number(t):e}function Mm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Qo(t){return Array.isArray(t)?t:[t]}function st(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Rn(t){return t instanceof $?t.nativeElement:t}function nN(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),iN=(()=>{let e=class e{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map,this._ngZone=g(L)}ngOnDestroy(){this._observedElements.forEach((n,i)=>this._cleanupObserver(i))}observe(n){let i=Rn(n);return new Z(o=>{let a=this._observeElement(i).pipe(j(c=>c.filter(l=>!nN(l))),xe(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{o.next(c)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let i=new N,o=this._mutationObserverFactory.create(s=>i.next(s));o&&o.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:o,stream:i,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)){let{observer:i,stream:o}=this._observedElements.get(n);i&&i.disconnect(),o.complete(),this._observedElements.delete(n)}}};e.\u0275fac=function(i){return new(i||e)(C(TC))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),MC=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=si(n),this._subscribe()}constructor(n,i){this._contentObserver=n,this._elementRef=i,this.event=new q,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let n=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?n.pipe(mn(this.debounce)):n).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(p(iN),p($))},e.\u0275dir=F({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",G],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ye]});let t=e;return t})(),Ed=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[TC]});let t=e;return t})();var AC=new Set,Qr,Am=(()=>{let e=class e{constructor(n,i){this._platform=n,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):oN}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&rN(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(zs,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function rN(t,e){if(!AC.has(t))try{Qr||(Qr=document.createElement("style"),e&&Qr.setAttribute("nonce",e),Qr.setAttribute("type","text/css"),document.head.appendChild(Qr)),Qr.sheet&&(Qr.sheet.insertRule(`@media ${t} {body{ }}`,0),AC.add(t))}catch(r){console.error(r)}}function oN(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var kC=(()=>{let e=class e{constructor(n,i){this._mediaMatcher=n,this._zone=i,this._queries=new Map,this._destroySubject=new N}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return RC(Qo(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=RC(Qo(n)).map(a=>this._registerQuery(a).observable),s=zt(o);return s=Hn(s.pipe(Je(1)),s.pipe(Sr(1),mn(0))),s.pipe(j(a=>{let 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);let i=this._mediaMatcher.matchMedia(n),s={observable:new Z(a=>{let c=l=>this._zone.run(()=>a.next(l));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(St(i),j(({matches:a})=>({query:n,matches:a})),K(this._destroySubject)),mql:i};return this._queries.set(n,s),s}};e.\u0275fac=function(i){return new(i||e)(C(Am),C(L))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RC(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var LC=" ";function jm(t,e,r){let n=Md(t,e);r=r.trim(),!n.some(i=>i.trim()===r)&&(n.push(r),t.setAttribute(e,n.join(LC)))}function Fd(t,e,r){let n=Md(t,e);r=r.trim();let i=n.filter(o=>o!==r);i.length?t.setAttribute(e,i.join(LC)):t.removeAttribute(e)}function Md(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var jC="cdk-describedby-message",Id="cdk-describedby-host",Om=0,Pd=(()=>{let e=class e{constructor(n,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Om++}`,this._document=n,this._id=g(Lo)+"-"+Om++}describe(n,i,o){if(!this._canBeDescribed(n,i))return;let s=Rm(i,o);typeof i!="string"?(OC(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,i,o){if(!i||!this._isElementNode(n))return;let s=Rm(i,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),typeof i=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${Id}="${this._id}"]`);for(let i=0;io.indexOf(jC)!=0);n.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(n,i){let o=this._messageRegistry.get(i);jm(n,"aria-describedby",o.messageElement.id),n.setAttribute(Id,this._id),o.referenceCount++}_removeMessageReference(n,i){let o=this._messageRegistry.get(i);o.referenceCount--,Fd(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Id)}_isElementDescribedByMessage(n,i){let o=Md(n,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(n,i){if(!this._isElementNode(n))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),s=n.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(C(te),C(Oe))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Rm(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function OC(t,e){t.id||(t.id=`${jC}-${e}-${Om++}`)}var Ad=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new N,this._typeaheadSubscription=Ce.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new N,this.change=new N,e instanceof Sn?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Zl(e)&&(this._effectRef=tr(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ie(r=>this._pressedLetters.push(r)),mn(e),xe(()=>this._pressedLetters.length>0),j(()=>this._pressedLetters.join(""))).subscribe(r=>{let n=this._getItemsArray();for(let i=1;i!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),n=typeof e=="number"?e:r.indexOf(e),i=r[n];this._activeItem=i??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let n=1;n<=r.length;n++){let i=(this._activeItemIndex+e*n+r.length)%r.length,o=r[i];if(!this._skipPredicateFn(o)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=r,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Zl(this._items)?this._items():this._items instanceof Sn?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},Rd=class extends Ad{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},kd=class extends Ad{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Vm=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return bN(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let i=yN(TN(n));if(i&&(NC(i)===-1||!this.isVisible(i)))return!1;let o=n.nodeName.toLowerCase(),s=NC(n);return n.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IN(n)?!1:o==="audio"?n.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,i){return SN(n)&&!this.isDisabled(n)&&(i?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(i){return new(i||e)(C(Oe))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function yN(t){try{return t.frameElement}catch{return null}}function bN(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function wN(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function CN(t){return DN(t)&&t.type=="hidden"}function xN(t){return EN(t)&&t.hasAttribute("href")}function DN(t){return t.nodeName.toLowerCase()=="input"}function EN(t){return t.nodeName.toLowerCase()=="a"}function VC(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function NC(t){if(!VC(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function IN(t){let e=t.nodeName.toLowerCase(),r=e==="input"&&t.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function SN(t){return CN(t)?!1:wN(t)||xN(t)||t.hasAttribute("contenteditable")||VC(t)}function TN(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Nm=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,r,n,i,o=!1,s){this._element=e,this._checker=r,this._ngZone=n,this._document=i,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let n=this._getFirstTabbableElement(r);return n?.focus(e),!!n}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let n=0;n=0;n--){let i=r[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[n]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?xt(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(Je(1)).subscribe(e)}},BC=(()=>{let e=class e{constructor(n,i,o){this._checker=n,this._ngZone=i,this._injector=g(Te),this._document=o}create(n,i=!1){return new Nm(n,this._checker,this._ngZone,this._document,i,this._injector)}};e.\u0275fac=function(i){return new(i||e)(C(Vm),C(L),C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Bm(t){return t.buttons===0||t.detail===0}function Hm(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var MN=new E("cdk-input-modality-detector-options"),AN={ignoreKeys:[18,17,224,91,16]},HC=650,Zo=ri({passive:!0,capture:!0}),RN=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,i,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new Ze(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=cn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(Hm(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=cn(a)},this._options=S(S({},AN),s),this.modalityDetected=this._modality.pipe(Sr(1)),this.modalityChanged=this.modalityDetected.pipe($n()),n.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Zo),o.addEventListener("mousedown",this._onMousedown,Zo),o.addEventListener("touchstart",this._onTouchstart,Zo)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Zo),document.removeEventListener("mousedown",this._onMousedown,Zo),document.removeEventListener("touchstart",this._onTouchstart,Zo))}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(L),C(te),C(MN,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kN=new E("liveAnnouncerElement",{providedIn:"root",factory:ON});function ON(){return null}var NN=new E("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),FN=0,$C=(()=>{let e=class e{constructor(n,i,o,s){this._ngZone=i,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...i){let o=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&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,typeof a=="number"&&(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(){let n="cdk-live-announcer-element",i=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{let e=class e{constructor(n,i,o,s,a){this._ngZone=n,this._platform=i,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 N,this._rootNodeFocusAndBlurListener=c=>{let l=cn(c);for(let d=l;d;d=d.parentElement)c.type==="focus"?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||Td.IMMEDIATE}monitor(n,i=!1){let o=Rn(n);if(!this._platform.isBrowser||o.nodeType!==1)return B();let s=SC(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new N,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let i=Rn(n),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(n,i,o){let s=Rn(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,i,l)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,i)=>this.stopMonitoring(i))}_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 this._detectionMode===Td.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused",i==="touch"),n.classList.toggle("cdk-keyboard-focused",i==="keyboard"),n.classList.toggle("cdk-mouse-focused",i==="mouse"),n.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(n,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&i,this._detectionMode===Td.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?HC:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,i){let o=this._elementInfo.get(i),s=cn(n);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(n,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(n,i){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(i))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let i=n.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Sd),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sd)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(K(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sd),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sd),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,i,o){this._setClasses(n,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(n){let i=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,i){this._elementRef=n,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new q}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(p($),p(Kr))},e.\u0275dir=F({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),Zr=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Zr||{}),FC="cdk-high-contrast-black-on-white",PC="cdk-high-contrast-white-on-black",km="cdk-high-contrast-active",$m=(()=>{let e=class e{constructor(n,i){this._platform=n,this._document=i,this._breakpointSubscription=g(kC).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Zr.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.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 Zr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Zr.BLACK_ON_WHITE}return Zr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(km,FC,PC),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Zr.BLACK_ON_WHITE?n.add(km,FC):i===Zr.WHITE_ON_BLACK&&n.add(km,PC)}}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zC=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(C($m))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ed]});let t=e;return t})();var LN=new E("cdk-dir-doc",{providedIn:"root",factory:jN});function jN(){return g(te)}var VN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function BN(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?VN.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var _t=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new q,n){let i=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=BN(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(C(LN,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ar=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})();var HN=["text"],$N=[[["mat-icon"]],"*"],UN=["mat-icon","*"];function zN(t,e){if(t&1&&M(0,"mat-pseudo-checkbox",1),t&2){let r=_();D("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function GN(t,e){if(t&1&&M(0,"mat-pseudo-checkbox",3),t&2){let r=_();D("disabled",r.disabled)}}function qN(t,e){if(t&1&&(v(0,"span",4),x(1),w()),t&2){let r=_();h(),Y("(",r.group.label,")")}}var WN=["mat-internal-form-field",""],YN=["*"];var JC=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),ex=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function QN(){return!0}var ZN=new E("mat-sanity-checks",{providedIn:"root",factory:QN}),Ye=(()=>{let e=class e{constructor(n,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return da()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(i){return new(i||e)(C($m),C(ZN,8),C(te))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[ar,ar]});let t=e;return t})();var jd=class{constructor(e,r,n,i,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(i,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var tx=(()=>{let e=class e{isErrorState(n,i){return!!(n&&n.invalid&&(n.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bn=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(bn||{}),Gm=class{constructor(e,r,n,i=!1){this._renderer=e,this.element=r,this.config=n,this._animationForciblyDisabledThroughCss=i,this.state=bn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},GC=ri({passive:!0,capture:!0}),qm=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=cn(e);r&&this._events.get(e.type)?.forEach((n,i)=>{(i===r||i.contains(r))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,n,i){let o=this._events.get(r);if(o){let s=o.get(n);s?s.add(i):o.set(n,new Set([i]))}else this._events.set(r,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,GC)})}removeHandler(e,r,n){let i=this._events.get(e);if(!i)return;let o=i.get(r);o&&(o.delete(n),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,GC)))}},qC={enterDuration:225,exitDuration:150},KN=800,WC=ri({passive:!0,capture:!0}),YC=["mousedown","touchstart"],QC=["mouseup","mouseleave","touchend","touchcancel"],fa=class fa{constructor(e,r,n,i){this._target=e,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Rn(n))}fadeInRipple(e,r,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=S(S({},qC),n.animation);n.centered&&(e=i.left+i.width/2,r=i.top+i.height/2);let s=n.radius||XN(e,r,i),a=e-i.left,c=r-i.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=`${s*2}px`,d.style.width=`${s*2}px`,n.color!=null&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,m=u.transitionDuration,y=f==="none"||m==="0s"||m==="0s, 0s"||i.width===0&&i.height===0,A=new Gm(this,d,n,y);d.style.transform="scale3d(1, 1, 1)",A.state=bn.FADING_IN,n.persistent||(this._mostRecentTransientRipple=A);let k=null;return!y&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let O=()=>this._finishRippleTransition(A),le=()=>this._destroyRipple(A);d.addEventListener("transitionend",O),d.addEventListener("transitioncancel",le),k={onTransitionEnd:O,onTransitionCancel:le}}),this._activeRipples.set(A,k),(y||!l)&&this._finishRippleTransition(A),A}fadeOutRipple(e){if(e.state===bn.FADING_OUT||e.state===bn.HIDDEN)return;let r=e.element,n=S(S({},qC),e.config.animation);r.style.transitionDuration=`${n.exitDuration}ms`,r.style.opacity="0",e.state=bn.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=Rn(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,YC.forEach(n=>{fa._eventManager.addHandler(this._ngZone,n,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{QC.forEach(r=>{this._triggerElement.addEventListener(r,this,WC)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===bn.FADING_IN?this._startFadeOutTransition(e):e.state===bn.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=bn.VISIBLE,!n&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=bn.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel)),e.element.remove()}_onMousedown(e){let r=Bm(e),n=this._lastTouchStartEvent&&Date.now(){let r=e.state===bn.VISIBLE||e.config.terminateOnPointerUp&&e.state===bn.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(YC.forEach(r=>fa._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(QC.forEach(r=>e.removeEventListener(r,this,WC)),this._pointerUpEventsRegistered=!1))}};fa._eventManager=new qm;var Wm=fa;function XN(t,e,r){let n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),i=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+i*i)}var Qm=new E("mat-ripple-global-options"),Ko=(()=>{let e=class e{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,i,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Wm(this,i,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:S(S(S({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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,i=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,i,S(S({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,S(S({},this.rippleConfig),n))}};e.\u0275fac=function(i){return new(i||e)(p($),p(L),p(Oe),p(Qm,8),p(Ot,8))},e.\u0275dir=F({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),Zm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ye,Ye]});let t=e;return t})(),JN=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(p(Ot,8))},e.\u0275cmp=R({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&H("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ge],decls:0,vars:0,template:function(i,o){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.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});let t=e;return t})(),eF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ye]});let t=e;return t})(),Km=new E("MAT_OPTION_PARENT_COMPONENT");var Xm=new E("MatOptgroup");var tF=0,Ym=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},Vd=(()=>{let e=class e{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=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,i,o,s){this._element=n,this._changeDetectorRef=i,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${tF++}`,this.onSelectionChange=new q,this._stateChanges=new N}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,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!Ht(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let 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 Ym(this,n))}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(Km,8),p(Xm,8))},e.\u0275cmp=R({type:e,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&Se(HN,7),i&2){let s;U(s=z())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&ce("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),i&2&&(Qs("id",o.id),Le("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),H("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",G]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ye,ge],ngContentSelectors:UN,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){i&1&&(be($N),T(0,zN,1,2,"mat-pseudo-checkbox",1),W(1),v(2,"span",2,0),W(4,1),w(),T(5,GN,1,1,"mat-pseudo-checkbox",3)(6,qN,2,1,"span",4),M(7,"div",5)),i&2&&(b(o.multiple?0:-1),h(5),b(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),h(),b(o.group&&o.group._inert?6:-1),h(),D("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[JN,Ko],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;background:rgba(0,0,0,0)}.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-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function nx(t,e,r){if(r.length){let n=e.toArray(),i=r.toArray(),o=0;for(let s=0;sr+n?Math.max(0,t-n+e):r}var Jm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Zm,Ye,eF]});let t=e;return t})(),ZC={capture:!0},KC=["focus","mousedown","mouseenter","touchstart"],Um="mat-ripple-loader-uninitialized",zm="mat-ripple-loader-class-name",XC="mat-ripple-loader-centered",Ld="mat-ripple-loader-disabled",q9=(()=>{let e=class e{constructor(){this._document=g(te,{optional:!0}),this._animationMode=g(Ot,{optional:!0}),this._globalRippleOptions=g(Qm,{optional:!0}),this._platform=g(Oe),this._ngZone=g(L),this._hosts=new Map,this._onInteraction=n=>{let i=cn(n);if(i instanceof HTMLElement){let o=i.closest(`[${Um}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let n of KC)this._document?.addEventListener(n,this._onInteraction,ZC)})}ngOnDestroy(){let n=this._hosts.keys();for(let i of n)this.destroyRipple(i);for(let i of KC)this._document?.removeEventListener(i,this._onInteraction,ZC)}configureRipple(n,i){n.setAttribute(Um,this._globalRippleOptions?.namespace??""),(i.className||!n.hasAttribute(zm))&&n.setAttribute(zm,i.className||""),i.centered&&n.setAttribute(XC,""),i.disabled&&n.setAttribute(Ld,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,i){let o=this._hosts.get(n);if(o){o.disabled=i;return}i?n.setAttribute(Ld,""):n.removeAttribute(Ld)}_createRipple(n){if(!this._document)return;let i=this._hosts.get(n);if(i)return i;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute(zm)),n.append(o);let s=new Ko(new $(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(XC),s.disabled=n.hasAttribute(Ld),this.attachRipple(n,s),s}attachRipple(n,i){n.removeAttribute(Um),this._hosts.set(n,i)}destroyRipple(n){let i=this._hosts.get(n);i&&(i.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),W9=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ge],attrs:WN,ngContentSelectors:YN,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},styles:[".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-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var ux=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(p(Kn),p($))},e.\u0275dir=F({type:e});let t=e;return t})(),ig=(()=>{let e=class e extends ux{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,features:[ie]});let t=e;return t})(),ya=new E(""),nF={provide:ya,useExisting:Ct(()=>iF),multi:!0},iF=(()=>{let e=class e extends ig{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&ce("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[me([nF]),ie]});let t=e;return t})(),rF={provide:ya,useExisting:Ct(()=>fx),multi:!0};function oF(){let t=ii()?ii().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var sF=new E(""),fx=(()=>{let e=class e extends ux{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!oF())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};e.\u0275fac=function(i){return new(i||e)(p(Kn),p($),p(sF,8))},e.\u0275dir=F({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(i,o){i&1&&ce("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[me([rF]),ie]});let t=e;return t})();function lr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function hx(t){return t!=null&&typeof t.length=="number"}var eo=new E(""),Xd=new E(""),aF=/^(?=.{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])?)*$/,Hd=class{static min(e){return px(e)}static max(e){return mx(e)}static required(e){return cF(e)}static requiredTrue(e){return lF(e)}static email(e){return dF(e)}static minLength(e){return uF(e)}static maxLength(e){return fF(e)}static pattern(e){return gx(e)}static nullValidator(e){return $d(e)}static compose(e){return Cx(e)}static composeAsync(e){return xx(e)}};function px(t){return e=>{if(lr(e.value)||lr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(lr(e.value)||lr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function cF(t){return lr(t.value)?{required:!0}:null}function lF(t){return t.value===!0?null:{required:!0}}function dF(t){return lr(t.value)||aF.test(t.value)?null:{email:!0}}function uF(t){return e=>lr(e.value)||!hx(e.value)?null:e.value.lengthhx(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function gx(t){if(!t)return $d;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(lr(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function $d(t){return null}function _x(t){return t!=null}function vx(t){return er(t)?$e(t):t}function yx(t){let e={};return t.forEach(r=>{e=r!=null?S(S({},e),r):e}),Object.keys(e).length===0?null:e}function bx(t,e){return e.map(r=>r(t))}function hF(t){return!t.validate}function wx(t){return t.map(e=>hF(e)?e:r=>e.validate(r))}function Cx(t){if(!t)return null;let e=t.filter(_x);return e.length==0?null:function(r){return yx(bx(r,e))}}function rg(t){return t!=null?Cx(wx(t)):null}function xx(t){if(!t)return null;let e=t.filter(_x);return e.length==0?null:function(r){let n=bx(r,e).map(vx);return uf(n).pipe(j(yx))}}function og(t){return t!=null?xx(wx(t)):null}function ox(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Dx(t){return t._rawValidators}function Ex(t){return t._rawAsyncValidators}function eg(t){return t?Array.isArray(t)?t:[t]:[]}function Ud(t,e){return Array.isArray(t)?t.includes(e):t===e}function sx(t,e){let r=eg(e);return eg(t).forEach(i=>{Ud(r,i)||r.push(i)}),r}function ax(t,e){return eg(e).filter(r=>!Ud(t,r))}var zd=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=rg(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=og(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},dr=class extends zd{get formDirective(){return null}get path(){return null}},Ni=class extends zd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Gd=class{constructor(e){this._cd=e}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}},pF={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},dQ=ue(S({},pF),{"[class.ng-submitted]":"isSubmitted"}),Ix=(()=>{let e=class e extends Gd{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ni,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ie]});let t=e;return t})(),Sx=(()=>{let e=class e extends Gd{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(p(dr,10))},e.\u0275dir=F({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ie]});let t=e;return t})();var ha="VALID",Bd="INVALID",Xo="PENDING",pa="DISABLED",ur=class{},qd=class extends ur{constructor(e,r){super(),this.value=e,this.source=r}},ga=class extends ur{constructor(e,r){super(),this.pristine=e,this.source=r}},_a=class extends ur{constructor(e,r){super(),this.touched=e,this.source=r}},Jo=class extends ur{constructor(e,r){super(),this.status=e,this.source=r}},tg=class extends ur{constructor(e){super(),this.source=e}},ng=class extends ur{constructor(e){super(),this.source=e}};function Tx(t){return(Jd(t)?t.validators:t)||null}function mF(t){return Array.isArray(t)?rg(t):t||null}function Mx(t,e){return(Jd(e)?e.asyncValidators:t)||null}function gF(t){return Array.isArray(t)?og(t):t||null}function Jd(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _F(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new V(1e3,"");if(!n[r])throw new V(1001,"")}function vF(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new V(1002,"")})}var Wd=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new N,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ha}get invalid(){return this.status===Bd}get pending(){return this.status==Xo}get disabled(){return this.status===pa}get enabled(){return this.status!==pa}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(sx(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(sx(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ax(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ax(e,this._rawAsyncValidators))}hasValidator(e){return Ud(this._rawValidators,e)}hasAsyncValidator(e){return Ud(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ue(S({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new _a(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new _a(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ue(S({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new ga(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new ga(!0,n))}markAsPending(e={}){this.status=Xo;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jo(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ue(S({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=pa,this.errors=null,this._forEachChild(i=>{i.disable(ue(S({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new qd(this.value,n)),this._events.next(new Jo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ue(S({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ha,this._forEachChild(n=>{n.enable(ue(S({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ue(S({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ha||this.status===Xo)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new qd(this.value,r)),this._events.next(new Jo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ue(S({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pa:ha}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Xo,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=vx(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Jo(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?pa:this.errors?Bd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xo)?Xo:this._anyControlsHaveStatus(Bd)?Bd:ha}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new ga(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new _a(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Jd(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=mF(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gF(this._rawAsyncValidators)}},va=class extends Wd{constructor(e,r,n){super(Tx(r),Mx(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){vF(this,!0,e),Object.keys(e).forEach(n=>{_F(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var cx=class extends va{};var ba=new E("CallSetDisabledState",{providedIn:"root",factory:()=>eu}),eu="always";function yF(t,e){return[...e.path,t]}function Yd(t,e,r=eu){sg(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),wF(t,e),xF(t,e),CF(t,e),bF(t,e)}function Qd(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Kd(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Zd(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function bF(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function sg(t,e){let r=Dx(t);e.validator!==null?t.setValidators(ox(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Ex(t);e.asyncValidator!==null?t.setAsyncValidators(ox(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Zd(e._rawValidators,i),Zd(e._rawAsyncValidators,i)}function Kd(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Dx(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Ex(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Zd(e._rawValidators,n),Zd(e._rawAsyncValidators,n),r}function wF(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Ax(t,e)})}function CF(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Ax(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Ax(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function xF(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function Rx(t,e){t==null,sg(t,e)}function DF(t,e){return Kd(t,e)}function kx(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function EF(t){return Object.getPrototypeOf(t.constructor)===ig}function Ox(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Nx(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===fx?r=o:EF(o)?n=o:i=o}),i||n||r||null}function IF(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var SF={provide:dr,useExisting:Ct(()=>ag)},ma=Promise.resolve(),ag=(()=>{let e=class e extends dr{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new q,this.form=new va({},rg(n),og(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ma.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),Yd(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ma.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ma.then(()=>{let i=this._findContainer(n.path),o=new va({});Rx(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ma.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){ma.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,Ox(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(i){return new(i||e)(p(eo,10),p(Xd,10),p(ba,8))},e.\u0275dir=F({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&ce("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([SF]),ie]});let t=e;return t})();function lx(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function dx(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var TF=class extends Wd{constructor(e=null,r,n){super(Tx(r),Mx(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jd(r)&&(r.nonNullable||r.initialValueIsDefault)&&(dx(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){lx(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){lx(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){dx(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var MF=t=>t instanceof TF;var fQ=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),AF={provide:ya,useExisting:Ct(()=>RF),multi:!0},RF=(()=>{let e=class e extends ig{writeValue(n){let i=n??"";this.setProperty("value",i)}registerOnChange(n){this.onChange=i=>{n(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&ce("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[me([AF]),ie]});let t=e;return t})();var cg=new E(""),kF={provide:Ni,useExisting:Ct(()=>OF)},OF=(()=>{let e=class e extends Ni{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new q,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Nx(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&Qd(i,this,!1),Yd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}kx(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Qd(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")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(p(eo,10),p(Xd,10),p(ya,10),p(cg,8),p(ba,8))},e.\u0275dir=F({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[me([kF]),ie,Be]});let t=e;return t})(),NF={provide:dr,useExisting:Ct(()=>wa)},wa=(()=>{let e=class e extends dr{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new q,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kd(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){let i=this.form.get(n.path);return Yd(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Qd(n.control||null,n,!1),IF(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,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,Ox(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new tg(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1,this.form._events.next(new ng(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Qd(i||null,n),MF(o)&&(Yd(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);Rx(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&DF(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){sg(this.form,this),this._oldForm&&Kd(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(p(eo,10),p(Xd,10),p(ba,8))},e.\u0275dir=F({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&ce("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([NF]),ie,Be]});let t=e;return t})();var FF={provide:Ni,useExisting:Ct(()=>lg)},lg=(()=>{let e=class e extends Ni{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new q,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Nx(this,s)}ngOnChanges(n){this._added||this._setUpControl(),kx(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return yF(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(p(dr,13),p(eo,10),p(Xd,10),p(ya,10),p(cg,8))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[me([FF]),ie,Be]});let t=e;return t})();function Fx(t){return typeof t=="number"?t:parseFloat(t)}var dg=(()=>{let e=class e{constructor(){this._validator=$d}ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):$d,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,features:[Be]});let t=e;return t})(),PF={provide:eo,useExisting:Ct(()=>LF),multi:!0},LF=(()=>{let e=class e extends dg{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>Fx(n),this.createValidator=n=>mx(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Le("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[me([PF]),ie]});let t=e;return t})(),jF={provide:eo,useExisting:Ct(()=>VF),multi:!0},VF=(()=>{let e=class e extends dg{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>Fx(n),this.createValidator=n=>px(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Le("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[me([jF]),ie]});let t=e;return t})();var BF={provide:eo,useExisting:Ct(()=>HF),multi:!0},HF=(()=>{let e=class e extends dg{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=n=>n,this.createValidator=n=>gx(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Le("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[me([BF]),ie]});let t=e;return t})();var Px=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})();var hQ=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:ba,useValue:n.callSetDisabledState??eu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Px]});let t=e;return t})(),Lx=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:cg,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ba,useValue:n.callSetDisabledState??eu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Px]});let t=e;return t})();var we="primary",Pa=Symbol("RouteTitle"),mg=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function os(t){return new mg(t)}function $F(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function Zx(t){return t.length>0?t[t.length-1]:null}function pr(t){return Er(t)?t:er(t)?$e(Promise.resolve(t)):B(t)}var zF={exact:Xx,subset:Jx},Kx={exact:GF,subset:qF,ignored:()=>!0};function Vx(t,e,r){return zF[r.paths](t.root,e.root,r.matrixParams)&&Kx[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function GF(t,e){return ai(t,e)}function Xx(t,e,r){if(!no(t.segments,e.segments)||!iu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Xx(t.children[n],e.children[n],r))return!1;return!0}function qF(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Qx(t[r],e[r]))}function Jx(t,e,r){return eD(t,e,e.segments,r)}function eD(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!no(i,r)||e.hasChildren()||!iu(i,r,n))}else if(t.segments.length===r.length){if(!no(t.segments,r)||!iu(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Jx(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!no(t.segments,i)||!iu(t.segments,i,n)||!t.children[we]?!1:eD(t.children[we],e,o,n)}}function iu(t,e,r){return e.every((n,i)=>Kx[r](t[i].parameters,n.parameters))}var fr=class{constructor(e=new je([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=os(this.queryParams),this._queryParamMap}toString(){return QF.serialize(this)}},je=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ru(this)}},to=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=os(this.parameters),this._parameterMap}toString(){return nD(this)}};function WF(t,e){return no(t,e)&&t.every((r,n)=>ai(r.parameters,e[n].parameters))}function no(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function YF(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===we&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==we&&(r=r.concat(e(i,n)))}),r}var La=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new ss,providedIn:"root"});let t=e;return t})(),ss=class{parse(e){let r=new vg(e);return new fr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Ca(e.root,!0)}`,n=XF(e.queryParams),i=typeof e.fragment=="string"?`#${ZF(e.fragment)}`:"";return`${r}${n}${i}`}},QF=new ss;function ru(t){return t.segments.map(e=>nD(e)).join("/")}function Ca(t,e){if(!t.hasChildren())return ru(t);if(e){let r=t.children[we]?Ca(t.children[we],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==we&&n.push(`${i}:${Ca(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=YF(t,(n,i)=>i===we?[Ca(t.children[we],!1)]:[`${i}:${Ca(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[we]!=null?`${ru(t)}/${r[0]}`:`${ru(t)}/(${r.join("//")})`}}function tD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tu(t){return tD(t).replace(/%3B/gi,";")}function ZF(t){return encodeURI(t)}function _g(t){return tD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ou(t){return decodeURIComponent(t)}function Bx(t){return ou(t.replace(/\+/g,"%20"))}function nD(t){return`${_g(t.path)}${KF(t.parameters)}`}function KF(t){return Object.entries(t).map(([e,r])=>`;${_g(e)}=${_g(r)}`).join("")}function XF(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${tu(r)}=${tu(i)}`).join("&"):`${tu(r)}=${tu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var JF=/^[^\/()?;#]+/;function ug(t){let e=t.match(JF);return e?e[0]:""}var eP=/^[^\/()?;=#]+/;function tP(t){let e=t.match(eP);return e?e[0]:""}var nP=/^[^=?&#]+/;function iP(t){let e=t.match(nP);return e?e[0]:""}var rP=/^[^&#]+/;function oP(t){let e=t.match(rP);return e?e[0]:""}var vg=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new je([],{}):new je([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[we]=new je(e,r)),n}parseSegment(){let e=ug(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new V(4009,!1);return this.capture(e),new to(ou(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=tP(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=ug(this.remaining);i&&(n=i,this.capture(n))}e[ou(r)]=ou(n)}parseQueryParam(e){let r=iP(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=oP(this.remaining);s&&(n=s,this.capture(n))}let i=Bx(r),o=Bx(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ug(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new V(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=we);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[we]:new je([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new V(4011,!1)}};function iD(t){return t.segments.length>0?new je([],{[we]:t}):t}function rD(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=rD(i);if(n===we&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new je(t.segments,e);return sP(r)}function sP(t){if(t.numberOfChildren===1&&t.children[we]){let e=t.children[we];return new je(t.segments.concat(e.segments),e.children)}return t}function Ta(t){return t instanceof fr}function aP(t,e,r=null,n=null){let i=oD(t);return sD(i,e,r,n)}function oD(t){let e;function r(o){let s={};for(let c of o.children){let l=r(c);s[c.outlet]=l}let a=new je(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=iD(n);return e??i}function sD(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return fg(i,i,i,r,n);let o=cP(e);if(o.toRoot())return fg(i,i,new je([],{}),r,n);let s=lP(o,i,t),a=s.processChildren?Ea(s.segmentGroup,s.index,o.commands):cD(s.segmentGroup,s.index,o.commands);return fg(i,s.segmentGroup,a,r,n)}function su(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ma(t){return typeof t=="object"&&t!=null&&t.outlets}function fg(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;t===e?s=r:s=aD(t,e,r);let a=iD(rD(s));return new fr(a,o,i)}function aD(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=aD(o,e,r)}),new je(t.segments,n)}var au=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&su(n[0]))throw new V(4003,!1);let i=n.find(Ma);if(i&&i!==Zx(n))throw new V(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function cP(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new au(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new au(r,e,n)}var ns=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function lP(t,e,r){if(t.isAbsolute)return new ns(e,!0,0);if(!r)return new ns(e,!1,NaN);if(r.parent===null)return new ns(r,!0,0);let n=su(t.commands[0])?0:1,i=r.segments.length-1+n;return dP(r,i,t.numberOfDoubleDots)}function dP(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new V(4005,!1);i=n.segments.length}return new ns(n,!1,i-o)}function uP(t){return Ma(t[0])?t[0].outlets:{[we]:t}}function cD(t,e,r){if(t??=new je([],{}),t.segments.length===0&&t.hasChildren())return Ea(t,e,r);let n=fP(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==we)&&t.children[we]&&t.numberOfChildren===1&&t.children[we].segments.length===0){let o=Ea(t.children[we],e,r);return new je(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=cD(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new je(t.segments,i)}}function fP(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(Ma(a))break;let c=`${a}`,l=n0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!$x(c,l,s))return o;n+=2}else{if(!$x(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function yg(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=yg(new je([],{}),0,n))}),e}function Hx(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function $x(t,e,r){return t==r.path&&ai(e,r.parameters)}var Ia="imperative",Et=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Et||{}),wn=class{constructor(e,r){this.id=e,this.url=r}},as=class extends wn{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Et.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},On=class extends wn{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Et.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(un||{}),cu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(cu||{}),Fi=class extends wn{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Et.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},hr=class extends wn{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Et.NavigationSkipped}},Aa=class extends wn{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Et.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},lu=class extends wn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Et.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bg=class extends wn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Et.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wg=class extends wn{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Et.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Cg=class extends wn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Et.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xg=class extends wn{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Et.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dg=class{constructor(e){this.route=e,this.type=Et.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Eg=class{constructor(e){this.route=e,this.type=Et.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ig=class{constructor(e){this.snapshot=e,this.type=Et.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sg=class{constructor(e){this.snapshot=e,this.type=Et.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tg=class{constructor(e){this.snapshot=e,this.type=Et.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mg=class{constructor(e){this.snapshot=e,this.type=Et.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},du=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Et.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ra=class{},cs=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var Ag=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ja(this.injector),this.attachRef=null}},ja=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Ag(this.parentInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(C(pt))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uu=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Rg(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Rg(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=kg(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return kg(e,this._root).map(r=>r.value)}};function Rg(t,e){if(t===e.value)return e;for(let r of e.children){let n=Rg(t,r);if(n)return n}return null}function kg(t,e){if(t===e.value)return[e];for(let r of e.children){let n=kg(t,r);if(n.length)return n.unshift(e),n}return[]}var dn=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ts(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var fu=class extends uu{constructor(e,r){super(e),this.snapshot=r,Hg(this,e)}toString(){return this.snapshot.toString()}};function lD(t){let e=pP(t),r=new Ze([new to("",{})]),n=new Ze({}),i=new Ze({}),o=new Ze({}),s=new Ze(""),a=new Pi(r,n,o,s,i,we,t,e.root);return a.snapshot=e.root,new fu(new dn(a,[]),e)}function pP(t){let e={},r={},n={},i="",o=new is([],e,n,i,r,we,t,null,{});return new pu("",new dn(o,[]))}var Pi=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(j(l=>l[Pa]))??B(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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.params.pipe(j(e=>os(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(e=>os(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function hu(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:S(S({},e.params),t.params),data:S(S({},e.data),t.data),resolve:S(S(S(S({},t.data),e.data),i?.data),t._resolvedData)}:n={params:S({},t.params),data:S({},t.data),resolve:S(S({},t.data),t._resolvedData??{})},i&&uD(i)&&(n.resolve[Pa]=i.title),n}var is=class{get title(){return this.data?.[Pa]}constructor(e,r,n,i,o,s,a,c,l){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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??=os(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=os(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},pu=class extends uu{constructor(e,r){super(r),this.url=e,Hg(this,r)}toString(){return dD(this._root)}};function Hg(t,e){e.value._routerState=t,e.children.forEach(r=>Hg(t,r))}function dD(t){let e=t.children.length>0?` { ${t.children.map(dD).join(", ")} } `:"";return`${t.value}${e}`}function hg(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,ai(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),ai(e.params,r.params)||t.paramsSubject.next(r.params),UF(e.url,r.url)||t.urlSubject.next(r.url),ai(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Og(t,e){let r=ai(t.params,e.params)&&WF(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Og(t.parent,e.parent))}function uD(t){return typeof t.title=="string"||t.title===null}var mP=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=we,this.activateEvents=new q,this.deactivateEvents=new q,this.attachEvents=new q,this.detachEvents=new q,this.parentContexts=g(ja),this.location=g(We),this.changeDetector=g(Ae),this.inputBinder=g(yu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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;let 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 V(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new V(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new V(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new V(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new Ng(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Be]});let t=e;return t})(),Ng=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Pi?this.route:e===ja?this.childContexts:this.parent.get(e,r)}},yu=new E(""),Ux=(()=>{let e=class e{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){let{activatedRoute:i}=n,o=zt([i.queryParams,i.params,i.data]).pipe(rt(([s,a,c],l)=>(c=S(S(S({},s),a),c),l===0?B(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=Ow(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function gP(t,e,r){let n=ka(t,e._root,r?r._root:void 0);return new fu(n,e)}function ka(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=_P(t,e,r);return new dn(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ka(t,a)),s}}let n=vP(e.value),i=e.children.map(o=>ka(t,o));return new dn(n,i)}}function _P(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return ka(t,n,i);return ka(t,n)})}function vP(t){return new Pi(new Ze(t.url),new Ze(t.params),new Ze(t.queryParams),new Ze(t.fragment),new Ze(t.data),t.outlet,t.component,t)}var Oa=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},fD="ngNavigationCancelingError";function mu(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Ta(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=hD(!1,un.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function hD(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[fD]=!0,r.cancellationCode=e,r}function yP(t){return pD(t)&&Ta(t.url)}function pD(t){return!!t&&t[fD]}var bP=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["ng-component"]],standalone:!0,features:[ge],decls:1,vars:0,template:function(i,o){i&1&&M(0,"router-outlet")},dependencies:[mP],encapsulation:2});let t=e;return t})();function wP(t,e){return t.providers&&!t._injector&&(t._injector=Ws(t.providers,e,`Route: ${t.path}`)),t._injector??e}function $g(t){let e=t.children&&t.children.map($g),r=e?ue(S({},t),{children:e}):S({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==we&&(r.component=bP),r}function kn(t){return t.outlet||we}function CP(t,e){let r=t.filter(n=>kn(n)===e);return r.push(...t.filter(n=>kn(n)!==e)),r}function Va(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var xP=(t,e,r,n)=>j(i=>(new Fg(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Fg=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),hg(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=ts(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=ts(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=ts(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=ts(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Mg(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Sg(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(hg(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),hg(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Va(i.snapshot);s.attachRef=null,s.route=i,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},gu=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},rs=class{constructor(e,r){this.component=e,this.route=r}};function DP(t,e,r){let n=t._root,i=e?e._root:null;return xa(n,i,r,[n.value])}function EP(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function ds(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Ay(t)?t:e.get(t):n}function xa(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ts(e);return t.children.forEach(s=>{IP(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Sa(a,r.getContext(s),i)),i}function IP(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=SP(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new gu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xa(t,e,a?a.children:null,n,i):xa(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new rs(a.outlet.component,s))}else s&&Sa(e,a,i),i.canActivateChecks.push(new gu(n)),o.component?xa(t,null,a?a.children:null,n,i):xa(t,null,r,n,i);return i}function SP(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!no(t.url,e.url);case"pathParamsOrQueryParamsChange":return!no(t.url,e.url)||!ai(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Og(t,e)||!ai(t.queryParams,e.queryParams);case"paramsChange":default:return!Og(t,e)}}function Sa(t,e,r){let n=ts(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Sa(s,e.children.getContext(o),r):Sa(s,null,r):Sa(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new rs(e.outlet.component,i)):r.canDeactivateChecks.push(new rs(null,i)):r.canDeactivateChecks.push(new rs(null,i))}function Ba(t){return typeof t=="function"}function TP(t){return typeof t=="boolean"}function MP(t){return t&&Ba(t.canLoad)}function AP(t){return t&&Ba(t.canActivate)}function RP(t){return t&&Ba(t.canActivateChild)}function kP(t){return t&&Ba(t.canDeactivate)}function OP(t){return t&&Ba(t.canMatch)}function mD(t){return t instanceof pi||t?.name==="EmptyError"}var nu=Symbol("INITIAL_VALUE");function ls(){return rt(t=>zt(t.map(e=>e.pipe(Je(1),St(nu)))).pipe(j(e=>{for(let r of e)if(r!==!0){if(r===nu)return nu;if(r===!1||NP(r))return r}return!0}),xe(e=>e!==nu),Je(1)))}function NP(t){return Ta(t)||t instanceof Oa}function FP(t,e){return nt(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?B(ue(S({},r),{guardsResult:!0})):PP(s,n,i,t).pipe(nt(a=>a&&TP(a)?LP(n,o,t,e):B(a)),j(a=>ue(S({},r),{guardsResult:a})))})}function PP(t,e,r,n){return $e(t).pipe(nt(i=>$P(i.component,i.route,r,e,n)),Un(i=>i!==!0,!0))}function LP(t,e,r,n){return $e(e).pipe(gi(i=>Hn(VP(i.route.parent,n),jP(i.route,n),HP(t,i.path,r),BP(t,i.route,r))),Un(i=>i!==!0,!0))}function jP(t,e){return t!==null&&e&&e(new Tg(t)),B(!0)}function VP(t,e){return t!==null&&e&&e(new Ig(t)),B(!0)}function BP(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return B(!0);let i=n.map(o=>go(()=>{let s=Va(e)??r,a=ds(o,s),c=AP(a)?a.canActivate(e,t):Qt(s,()=>a(e,t));return pr(c).pipe(Un())}));return B(i).pipe(ls())}function HP(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>EP(s)).filter(s=>s!==null).map(s=>go(()=>{let a=s.guards.map(c=>{let l=Va(s.node)??r,d=ds(c,l),u=RP(d)?d.canActivateChild(n,t):Qt(l,()=>d(n,t));return pr(u).pipe(Un())});return B(a).pipe(ls())}));return B(o).pipe(ls())}function $P(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return B(!0);let s=o.map(a=>{let c=Va(e)??i,l=ds(a,c),d=kP(l)?l.canDeactivate(t,e,r,n):Qt(c,()=>l(t,e,r,n));return pr(d).pipe(Un())});return B(s).pipe(ls())}function UP(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return B(!0);let o=i.map(s=>{let a=ds(s,t),c=MP(a)?a.canLoad(e,r):Qt(t,()=>a(e,r));return pr(c)});return B(o).pipe(ls(),gD(n))}function gD(t){return af(Ie(e=>{if(typeof e!="boolean")throw mu(t,e)}),j(e=>e===!0))}function zP(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return B(!0);let o=i.map(s=>{let a=ds(s,t),c=OP(a)?a.canMatch(e,r):Qt(t,()=>a(e,r));return pr(c)});return B(o).pipe(ls(),gD(n))}var Na=class{constructor(e){this.segmentGroup=e||null}},Fa=class extends Error{constructor(e){super(),this.urlTree=e}};function es(t){return mo(new Na(t))}function GP(t){return mo(new V(4e3,!1))}function qP(t){return mo(hD(!1,un.GuardRejected))}var Pg=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return B(n);if(i.numberOfChildren>1||!i.children[we])return GP(`${e.redirectTo}`);i=i.children[we]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,params:m,data:y,title:A}=i,k=Qt(o,()=>a({params:m,data:y,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,title:A}));if(k instanceof fr)throw new Fa(k);r=k}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new Fa(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new fr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new je(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new V(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Lg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function WP(t,e,r,n,i){let o=Ug(t,e,r);return o.matched?(n=wP(e,n),zP(n,e,r,i).pipe(j(s=>s===!0?o:S({},Lg)))):B(o)}function Ug(t,e,r){if(e.path==="**")return YP(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?S({},Lg):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||$F)(r,t,e);if(!i)return S({},Lg);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?S(S({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function YP(t){return{matched:!0,parameters:t.length>0?Zx(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function zx(t,e,r,n){return r.length>0&&KP(t,r,n)?{segmentGroup:new je(e,ZP(n,new je(r,t.children))),slicedSegments:[]}:r.length===0&&XP(t,r,n)?{segmentGroup:new je(t.segments,QP(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new je(t.segments,t.children),slicedSegments:r}}function QP(t,e,r,n){let i={};for(let o of r)if(bu(t,e,o)&&!n[kn(o)]){let s=new je([],{});i[kn(o)]=s}return S(S({},n),i)}function ZP(t,e){let r={};r[we]=e;for(let n of t)if(n.path===""&&kn(n)!==we){let i=new je([],{});r[kn(n)]=i}return r}function KP(t,e,r){return r.some(n=>bu(t,e,n)&&kn(n)!==we)}function XP(t,e,r){return r.some(n=>bu(t,e,n))}function bu(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function JP(t,e,r,n){return kn(t)!==n&&(n===we||!bu(e,r,t))?!1:Ug(e,t,r).matched}function eL(t,e,r){return e.length===0&&!t.children[r]}var jg=class{};function tL(t,e,r,n,i,o,s="emptyOnly"){return new Vg(t,e,r,n,i,s,o).recognize()}var nL=31,Vg=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Pg(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new V(4002,`'${e.segmentGroup}'`)}recognize(){let e=zx(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(j(({children:r,rootSnapshot:n})=>{let i=new dn(n,r),o=new pu("",i),s=aP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new is([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),we,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,we,r).pipe(j(n=>({children:n,rootSnapshot:r})),mi(n=>{if(n instanceof Fa)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Na?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(j(s=>s instanceof dn?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return $e(o).pipe(gi(s=>{let a=n.children[s],c=CP(r,s);return this.processSegmentGroup(e,c,a,s,i)}),pf((s,a)=>(s.push(...a),s)),Hi(null),hf(),nt(s=>{if(s===null)return es(n);let a=_D(s);return iL(a),B(a)}))}processSegment(e,r,n,i,o,s,a){return $e(r).pipe(gi(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(mi(l=>{if(l instanceof Na)return B(null);throw l}))),Un(c=>!!c),mi(c=>{if(mD(c))return eL(n,i,o)?B(new jg):es(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return JP(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):es(i):es(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=Ug(r,i,o);if(!c)return es(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>nL&&(this.allowRedirects=!1));let m=new is(o,l,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Gx(i),kn(i),i.component??i._loadedComponent??null,i,qx(i)),y=hu(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(y.params),m.data=Object.freeze(y.data);let A=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,u,m,e);return this.applyRedirects.lineralizeSegments(i,A).pipe(nt(k=>this.processSegment(e,n,r,k.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=WP(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(rt(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(rt(({routes:l})=>{let d=n._loadedInjector??e,{parameters:u,consumedSegments:f,remainingSegments:m}=c,y=new is(f,u,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Gx(n),kn(n),n.component??n._loadedComponent??null,n,qx(n)),A=hu(y,s,this.paramsInheritanceStrategy);y.params=Object.freeze(A.params),y.data=Object.freeze(A.data);let{segmentGroup:k,slicedSegments:O}=zx(r,f,m,l);if(O.length===0&&k.hasChildren())return this.processChildren(d,l,k,y).pipe(j(Ve=>new dn(y,Ve)));if(l.length===0&&O.length===0)return B(new dn(y,[]));let le=kn(n)===o;return this.processSegment(d,l,k,O,le?we:o,!0,y).pipe(j(Ve=>new dn(y,Ve instanceof dn?[Ve]:[])))}))):es(r)))}getChildConfig(e,r,n){return r.children?B({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?B({routes:r._loadedRoutes,injector:r._loadedInjector}):UP(e,r,n,this.urlSerializer).pipe(nt(i=>i?this.configLoader.loadChildren(e,r).pipe(Ie(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):qP(r))):B({routes:[],injector:e})}};function iL(t){t.sort((e,r)=>e.value.outlet===we?-1:r.value.outlet===we?1:e.value.outlet.localeCompare(r.value.outlet))}function rL(t){let e=t.value.routeConfig;return e&&e.path===""}function _D(t){let e=[],r=new Set;for(let n of t){if(!rL(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=_D(n.children);e.push(new dn(n.value,i))}return e.filter(n=>!r.has(n))}function Gx(t){return t.data||{}}function qx(t){return t.resolve||{}}function oL(t,e,r,n,i,o){return nt(s=>tL(t,e,r,n,s.extractedUrl,i,o).pipe(j(({state:a,tree:c})=>ue(S({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function sL(t,e){return nt(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return B(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of vD(c))s.add(l);let a=0;return $e(s).pipe(gi(c=>o.has(c)?aL(c,n,t,e):(c.data=hu(c,c.parent,t).resolve,B(void 0))),Ie(()=>a++),_o(1),nt(c=>a===s.size?B(r):It))})}function vD(t){let e=t.children.map(r=>vD(r)).flat();return[t,...e]}function aL(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!uD(i)&&(o[Pa]=i.title),cL(o,t,e,n).pipe(j(s=>(t._resolvedData=s,t.data=hu(t,t.parent,r).resolve,null)))}function cL(t,e,r,n){let i=gg(t);if(i.length===0)return B({});let o={};return $e(i).pipe(nt(s=>lL(t[s],e,r,n).pipe(Un(),Ie(a=>{if(a instanceof Oa)throw mu(new ss,a);o[s]=a}))),_o(1),$i(o),mi(s=>mD(s)?It:mo(s)))}function lL(t,e,r,n){let i=Va(e)??n,o=ds(t,i),s=o.resolve?o.resolve(e,r):Qt(i,()=>o(e,r));return pr(s)}function pg(t){return rt(e=>{let r=t(e);return r?$e(r).pipe(j(()=>e)):B(e)})}var yD=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===we);return i}getResolvedTitleForRoute(n){return n.data[Pa]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(dL),providedIn:"root"});let t=e;return t})(),dL=(()=>{let e=class e extends yD{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(C(bd))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ha=new E("",{providedIn:"root",factory:()=>({})}),_u=new E(""),zg=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(rd)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return B(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=pr(n.loadComponent()).pipe(j(bD),Ie(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Ui(()=>{this.componentLoaders.delete(n)})),o=new Vn(i,()=>new N).pipe(ho());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return B({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=uL(i,this.compiler,n,this.onLoadEndListener).pipe(Ui(()=>{this.childrenLoaders.delete(i)})),a=new Vn(s,()=>new N).pipe(ho());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function uL(t,e,r,n){return pr(t.loadChildren()).pipe(j(bD),nt(i=>i instanceof Ns||Array.isArray(i)?B(i):$e(e.compileModuleAsync(i))),j(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(_u,[],{optional:!0,self:!0}).flat()),{routes:s.map($g),injector:o}}))}function fL(t){return t&&typeof t=="object"&&"default"in t}function bD(t){return fL(t)?t.default:t}var Gg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(hL),providedIn:"root"});let t=e;return t})(),hL=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wD=new E(""),CD=new E("");function pL(t,e,r){let n=t.get(CD),i=t.get(te);return t.get(L).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),mL(t))),{onViewTransitionCreated:c}=n;return c&&Qt(t,()=>c({transition:a,from:e,to:r})),s})}function mL(t){return new Promise(e=>{xt(e,{injector:t})})}var gL=new E(""),qg=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new N,this.transitionAbortSubject=new N,this.configLoader=g(zg),this.environmentInjector=g(pt),this.urlSerializer=g(La),this.rootContexts=g(ja),this.location=g(nr),this.inputBindingEnabled=g(yu,{optional:!0})!==null,this.titleStrategy=g(yD),this.options=g(Ha,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Gg),this.createViewTransition=g(wD,{optional:!0}),this.navigationErrorHandler=g(gL,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>B(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Dg(o)),i=o=>this.events.next(new Eg(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(ue(S(S({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new Ze({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ia,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(xe(s=>s.id!==0),j(s=>ue(S({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),rt(s=>{let a=!1,c=!1;return B(s).pipe(rt(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",un.SupersededByNewNavigation),It;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ue(S({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!d&&u!=="reload"){let f="";return this.events.next(new hr(l.id,this.urlSerializer.serialize(l.rawUrl),f,cu.IgnoredSameUrlNavigation)),l.resolve(!1),It}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return B(l).pipe(rt(f=>{let m=this.transitions?.getValue();return this.events.next(new as(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),m!==this.transitions?.getValue()?It:Promise.resolve(f)}),oL(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Ie(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=ue(S({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let m=new lu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(m)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:m,source:y,restoredState:A,extras:k}=l,O=new as(f,this.urlSerializer.serialize(m),y,A);this.events.next(O);let le=lD(this.rootComponentType).snapshot;return this.currentTransition=s=ue(S({},l),{targetSnapshot:le,urlAfterRedirects:m,extras:ue(S({},k),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,B(s)}else{let f="";return this.events.next(new hr(l.id,this.urlSerializer.serialize(l.extractedUrl),f,cu.IgnoredByUrlHandlingStrategy)),l.resolve(!1),It}}),Ie(l=>{let d=new bg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),j(l=>(this.currentTransition=s=ue(S({},l),{guards:DP(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),FP(this.environmentInjector,l=>this.events.next(l)),Ie(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw mu(this.urlSerializer,l.guardsResult);let d=new wg(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),xe(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",un.GuardRejected),!1)),pg(l=>{if(l.guards.canActivateChecks.length)return B(l).pipe(Ie(d=>{let u=new Cg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),rt(d=>{let u=!1;return B(d).pipe(sL(this.paramsInheritanceStrategy,this.environmentInjector),Ie({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",un.NoDataFromResolver)}}))}),Ie(d=>{let u=new xg(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),pg(l=>{let d=u=>{let f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ie(m=>{u.component=m}),j(()=>{})));for(let m of u.children)f.push(...d(m));return f};return zt(d(l.targetSnapshot.root)).pipe(Hi(null),Je(1))}),pg(()=>this.afterPreactivation()),rt(()=>{let{currentSnapshot:l,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return u?$e(u).pipe(j(()=>s)):B(s)}),j(l=>{let d=gP(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=ue(S({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),Ie(()=>{this.events.next(new Ra)}),xP(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Je(1),Ie({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new On(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),K(this.transitionAbortSubject.pipe(Ie(l=>{throw l}))),Ui(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",un.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),mi(l=>{if(c=!0,pD(l))this.events.next(new Fi(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),yP(l)?this.events.next(new cs(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let d=new Aa(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=Qt(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(u instanceof Oa){let{message:f,cancellationCode:m}=mu(this.urlSerializer,u);this.events.next(new Fi(s.id,this.urlSerializer.serialize(s.extractedUrl),f,m)),this.events.next(new cs(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(d);let f=n.errorHandler(l);s.resolve(!!f)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return It}))}))}cancelNavigationTransition(n,i,o){let s=new Fi(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _L(t){return t!==Ia}var vL=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(yL),providedIn:"root"});let t=e;return t})(),Bg=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},yL=(()=>{let e=class e extends Bg{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>g(bL),providedIn:"root"});let t=e;return t})(),bL=(()=>{let e=class e extends xD{constructor(){super(...arguments),this.location=g(nr),this.urlSerializer=g(La),this.options=g(Ha,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Gg),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=lD(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof as)this.stateMemento=this.createStateMemento();else if(n instanceof hr)this.rawUrlTree=i.initialUrl;else if(n instanceof lu){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Ra?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Fi&&(n.code===un.GuardRejected||n.code===un.NoDataFromResolver)?this.restoreHistory(i):n instanceof Aa?this.restoreHistory(i,!0):n instanceof On&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=S(S({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=S(S({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Da=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Da||{});function DD(t,e){t.events.pipe(xe(r=>r instanceof On||r instanceof Fi||r instanceof Aa||r instanceof hr),j(r=>r instanceof On||r instanceof hr?Da.COMPLETE:(r instanceof Fi?r.code===un.Redirect||r.code===un.SupersededByNewNavigation:!1)?Da.REDIRECTING:Da.FAILED),xe(r=>r!==Da.REDIRECTING),Je(1)).subscribe(()=>{e()})}function wL(t){throw t}var CL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Nn=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(ed),this.stateManager=g(xD),this.options=g(Ha,{optional:!0})||{},this.pendingTasks=g(Jn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(qg),this.urlSerializer=g(La),this.location=g(nr),this.urlHandlingStrategy=g(Gg),this._events=new N,this.errorHandler=this.options.errorHandler||wL,this.navigated=!1,this.routeReuseStrategy=g(vL),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(_u,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(yu,{optional:!0}),this.eventsSubscription=new Ce,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Fi&&i.code!==un.Redirect&&i.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof On)this.navigated=!0;else if(i instanceof cs){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l=S({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_L(o.source)},a);this.scheduleNavigation(c,Ia,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}EL(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ia,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=S({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,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($g),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=i,d=l?this.currentUrlTree.fragment:a,u=null;switch(c){case"merge":u=S(S({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let f;try{let m=o?o.snapshot:this.routerState.snapshot.root;f=oD(m)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return sD(f,n,u,d??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Ta(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Ia,null,i)}navigate(n,i={skipLocationChange:!1}){return DL(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=S({},CL):i===!1?o=S({},xL):o=i,Ta(n))return Vx(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Vx(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,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((f,m)=>{c=f,l=m});let u=this.pendingTasks.add();return DD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DL(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new N,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=n.events.subscribe(d=>{d instanceof On&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:Kb(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(p(Nn),p(Pi),Ei("tabindex"),p(Kn),p($),p(ki))},e.\u0275dir=F({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&ce("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Le("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",G],skipLocationChange:[2,"skipLocationChange","skipLocationChange",G],replaceUrl:[2,"replaceUrl","replaceUrl",G],routerLink:"routerLink"},standalone:!0,features:[ye,Be]});let t=e;return t})(),ED=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new q,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof On&&this.update()})}ngAfterContentInit(){B(this.links.changes,B(null)).pipe(Bn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=$e(n).pipe(Bn()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=IL(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(p(Nn),p($),p(Kn),p(Ae),p(ci,8))},e.\u0275dir=F({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&Me(s,ci,5),i&2){let a;U(a=z())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Be]});let t=e;return t})();function IL(t){return!!t.paths}var vu=class{};var SL=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(xe(n=>n instanceof On),gi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Ws(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return $e(o).pipe(Bn())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=B(null);let s=o.pipe(nt(a=>a===null?B(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return $e([s,a]).pipe(Bn())}else return s})}};e.\u0275fac=function(i){return new(i||e)(C(Nn),C(rd),C(pt),C(vu),C(zg))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ID=new E(""),TL=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(pt),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof as?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof On?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof hr&&n.code===cu.IgnoredSameUrlNavigation&&(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 du&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>vs(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),xt(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new du(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){d0()},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function ML(t){return t.routerState.root}function $a(t,e){return{\u0275kind:t,\u0275providers:e}}function AL(){let t=g(Te);return e=>{let r=t.get(Mn);if(e!==r.components[0])return;let n=t.get(Nn),i=t.get(SD);t.get(Wg)===1&&n.initialNavigation(),t.get(TD,null,Ee.Optional)?.setUpPreloading(),t.get(ID,null,Ee.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var SD=new E("",{factory:()=>new N}),Wg=new E("",{providedIn:"root",factory:()=>1});function RL(){return $a(2,[{provide:Wg,useValue:0},{provide:$o,multi:!0,deps:[Te],useFactory:e=>{let r=e.get($w,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Nn),o=e.get(SD);DD(i,()=>{n(!0)}),e.get(qg).afterPreactivation=()=>(n(!0),o.closed?B(void 0):o),i.initialNavigation()}))}}])}function kL(){return $a(3,[{provide:$o,multi:!0,useFactory:()=>{let e=g(Nn);return()=>{e.setUpLocationChangeListener()}}},{provide:Wg,useValue:2}])}var TD=new E("");function OL(t){return $a(0,[{provide:TD,useExisting:SL},{provide:vu,useExisting:t}])}function NL(){return $a(8,[Ux,{provide:yu,useExisting:Ux}])}function FL(t){let e=[{provide:wD,useValue:pL},{provide:CD,useValue:S({skipNextTransition:!!t?.skipInitialTransition},t)}];return $a(9,e)}var Wx=new E("ROUTER_FORROOT_GUARD"),PL=[nr,{provide:La,useClass:ss},Nn,ja,{provide:Pi,useFactory:ML,deps:[Nn]},zg,[]],MD=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[PL,[],{provide:_u,multi:!0,useValue:n},{provide:Wx,useFactory:BL,deps:[[Nn,new zr,new Oo]]},{provide:Ha,useValue:i||{}},i?.useHash?jL():VL(),LL(),i?.preloadingStrategy?OL(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?HL(i):[],i?.bindToComponentInputs?NL().\u0275providers:[],i?.enableViewTransitions?FL().\u0275providers:[],$L()]}}static forChild(n){return{ngModule:e,providers:[{provide:_u,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(C(Wx,8))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})();function LL(){return{provide:ID,useFactory:()=>{let t=g(Xw),e=g(L),r=g(Ha),n=g(qg),i=g(La);return r.scrollOffset&&t.setOffset(r.scrollOffset),new TL(i,n,t,e,r)}}}function jL(){return{provide:ki,useClass:zw}}function VL(){return{provide:ki,useClass:cm}}function BL(t){return"guarded"}function HL(t){return[t.initialNavigation==="disabled"?kL().\u0275providers:[],t.initialNavigation==="enabledBlocking"?RL().\u0275providers:[]]}var Yx=new E("");function $L(){return[{provide:Yx,useFactory:AL},{provide:id,multi:!0,useExisting:Yx}]}var Li=new E("GAME_VERSION"),jQ=(()=>{var e,r;let n=class n{constructor(){tn(this,e,g(qo));tn(this,r,g(en).getSettings().useBeta?"beta":"live");let o=new oa(yt(this,e));n._loading=o.get(`assets/${yt(this,r)}/version.json?t=${new Date().toISOString()}`).pipe(j(s=>(n._value=s.version,s.version)))}};e=new WeakMap,r=new WeakMap,n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=J({providers:[_d(),{provide:$o,useValue:()=>n._loading,multi:!0},{provide:Li,useFactory:()=>n._value||{}}],imports:[Jt]});let t=n;return t})();var li=(()=>{let e=class e{constructor(){this.version=g(Li),this.uiIcon=He.required(),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-ui-icon"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-ui-icon",o._setClass)},inputs:{uiIcon:[1,"uiIcon"]},standalone:!0,features:[ge],decls:1,vars:6,consts:[[1,"size-full"]],template:function(i,o){i&1&&M(0,"div",0),i&2&&gw("-webkit-mask:url('assets/ui/images/icons/",o.uiIcon(),".png?v=",o.version,"') no-repeat center/contain; mask:url('assets/ui/images/icons/",o.uiIcon(),".png?v=",o.version,"') no-repeat center/contain;")},styles:[`.app-ui-icon{display:block;height:2.5rem;width:2.5rem;color:inherit}.app-ui-icon div{display:inline-block;background:currentColor no-repeat;mask-size:contain;-webkit-mask-size:contain}[disabled] .app-ui-icon{opacity:.5}[disabled] .app-ui-icon:hover,[disabled] .app-ui-icon:focus-visible{color:inherit!important} +`],encapsulation:2});let t=e;return t})();function UL(t,e){if(t&1&&(M(0,"img",0),lt(1,"titlecase")),t&2){let r=_();Xl("src","assets/ui/images/icons/quality-stars/T_Icon_Star",gt(1,2,r.quality),"B.png",Ti)}}var mr=(()=>{let e=class e{constructor(){this.QUALITY=Rt}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-rarity-icon"]],inputs:{quality:"quality"},decls:1,vars:1,consts:[["onerror","this.onerror=null;this.src='/assets/ui/images/spacer.gif'","alt","",3,"src"]],template:function(i,o){i&1&&T(0,UL,2,4,"img",0),i&2&&b(o.quality&&o.quality!==o.QUALITY.BASE?0:-1)},dependencies:[Yw],styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();function zL(t,e){if(t&1&&M(0,"app-item-icon",1),t&2){let r=_();D("itemName",r.subIconName)}}function GL(t,e){if(t&1&&M(0,"app-rarity-icon",2),t&2){let r=_();D("quality",r.quality)}}function qL(t,e){if(t&1&&(v(0,"div",3),x(1),w()),t&2){let r=_();h(),Y("",r.amount," ")}}var dt=(()=>{let e=class e{constructor(){this.amount=0,this.environment=g(en).getSettings().useBeta?"beta":"live",this.version=g(Li),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-item-icon"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-item-icon",o._setClass)},inputs:{itemName:"itemName",subIconName:"subIconName",quality:"quality",amount:[2,"amount","amount",Nt]},features:[ye],decls:4,vars:7,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/placeholder.png'",3,"src"],[1,"!absolute","bottom-[5px]","left-[5px]","w-[50%]",3,"itemName"],[1,"absolute","top-[5px]","left-[5px]","w-[35%]",3,"quality"],[1,"bg-[#F1D9B5]","absolute","bottom-0","right-0","py-1","px-2","text-black","font-semibold","text-lg","rounded-lg"]],template:function(i,o){i&1&&(M(0,"img",0),T(1,zL,1,1,"app-item-icon",1)(2,GL,1,1,"app-rarity-icon",2)(3,qL,2,1,"div",3)),i&2&&(zp("src","assets/",o.environment,"/items/icons/",o.itemName,".webp?v=",o.version,"",Ti),h(),b(o.subIconName?1:-1),h(),b(o.quality?2:-1),h(),b(o.amount>1?3:-1))},dependencies:[e,mr],styles:[`.app-item-icon{position:relative;display:block}.app-item-icon>img{max-width:100%;height:auto;aspect-ratio:1/1} +`],encapsulation:2});let t=e;return t})();var WL=[[["","cardActions",""]],[["","cardIcon",""]],"*"],YL=["[cardActions]","[cardIcon]","*"],AD=(()=>{let e=class e{constructor(){this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-card"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-card",o._setClass)},ngContentSelectors:YL,decls:3,vars:0,template:function(i,o){i&1&&(be(WL),W(0),W(1,1),W(2,2))},styles:[`.app-card{background-color:#f7f2e8;border-radius:var(--cg-card-radius);padding:var(--cg-card-padding);display:flex;flex-direction:column}.app-card [cardIcon]{height:var(--cg-card-icon-height);margin-left:auto;margin-right:auto;display:flex;justify-content:center}.app-card [cardIcon]>img{height:var(--cg-card-icon-height);width:auto}@media (min-width: 1280px){.app-card{--cg-card-padding: 36px;--cg-card-icon-height: 180px}} +`],encapsulation:2});let t=e;return t})();var Du=class{};function Eu(t){return t&&typeof t.connect=="function"&&!(t instanceof Vn)}var us=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(us||{}),Ua=new E("_ViewRepeater"),fs=class{applyChanges(e,r,n,i,o){e.forEachOperation((s,a,c)=>{let l,d;if(s.previousIndex==null){let u=n(s,a,c);l=r.createEmbeddedView(u.templateRef,u.context,u.index),d=us.INSERTED}else c==null?(r.remove(a),d=us.REMOVED):(l=r.get(a),r.move(l,c),d=us.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}};var hs=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,n=!0,i){this._multiple=e,this._emitChanges=n,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new N,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,n=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let n of r)if(this.compareWith(e,n))return n;return e}else return e}};var ZL=20,ji=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this._platform=i,this._scrolled=new N,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){let i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=ZL){return this._platform.isBrowser?new Z(i=>{this._globalSubscription||this._addGlobalListener();let o=n>0?this._scrolled.pipe(Dc(n)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):B()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(n,i){let o=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(xe(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(n){let i=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,n)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,i){let o=Rn(i),s=n.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let n=this._getWindow();return pn(n.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(C(L),C(Oe),C(te,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Vi=(()=>{let e=class e{constructor(n,i,o,s){this.elementRef=n,this.scrollDispatcher=i,this.ngZone=o,this.dir=s,this._destroyed=new N,this._elementScrolled=new Z(a=>this.ngZone.runOutsideAngular(()=>pn(this.elementRef.nativeElement,"scroll").pipe(K(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){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=o?n.end:n.start),n.right==null&&(n.right=o?n.start:n.end),n.bottom!=null&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),o&&Yo()!=An.NORMAL?(n.left!=null&&(n.right=i.scrollWidth-i.clientWidth-n.left),Yo()==An.INVERTED?n.left=n.right:Yo()==An.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let i=this.elementRef.nativeElement;Dd()?i.scrollTo(n):(n.top!=null&&(i.scrollTop=n.top),n.left!=null&&(i.scrollLeft=n.left))}measureScrollOffset(n){let i="left",o="right",s=this.elementRef.nativeElement;if(n=="top")return s.scrollTop;if(n=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return n=="start"?n=a?o:i:n=="end"&&(n=a?i:o),a&&Yo()==An.INVERTED?n==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&Yo()==An.NEGATED?n==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:n==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(p($),p(ji),p(L),p(_t,8))},e.\u0275dir=F({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let t=e;return t})(),KL=20,fn=(()=>{let e=class e{constructor(n,i,o){this._platform=n,this._change=new N,this._changeListener=s=>{this._change.next(s)},this._document=o,i.runOutsideAngular(()=>{if(n.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,i=this._getWindow(),o=n.documentElement,s=o.getBoundingClientRect(),a=-s.top||n.body.scrollTop||i.scrollY||o.scrollTop||0,c=-s.left||n.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(n=KL){return n>0?this._change.pipe(Dc(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(C(Oe),C(L),C(te,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Fn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})(),za=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[ar,Fn,ar,Fn]});let t=e;return t})();var qa=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Wa=class extends qa{constructor(e,r,n,i,o){super(),this.component=e,this.viewContainerRef=r,this.injector=n,this.componentFactoryResolver=i,this.projectableNodes=o}},gr=class extends qa{constructor(e,r,n,i){super(),this.templateRef=e,this.viewContainerRef=r,this.context=n,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Yg=class extends qa{constructor(e){super(),this.element=e instanceof $?e.nativeElement:e}},Iu=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Wa)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof gr)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Yg)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Su=class extends Iu{constructor(e,r,n,i,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let 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(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=n.create(e.injector||this._defaultInjector||Te.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let r=e.viewContainerRef,n=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(i=>this.outletElement.appendChild(i)),n.detectChanges(),this.setDisposeFn(()=>{let i=r.indexOf(n);i!==-1&&r.remove(i)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var RD=(()=>{let e=class e extends gr{constructor(n,i){super(n,i)}};e.\u0275fac=function(i){return new(i||e)(p(ze),p(We))},e.\u0275dir=F({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[ie]});let t=e;return t})();var Tu=(()=>{let e=class e extends Iu{constructor(n,i,o){super(),this._componentFactoryResolver=n,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new q,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let 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);let i=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,s=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=i.createComponent(s,i.length,n.injector||i.injector,n.projectableNodes||void 0);return i!==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);let i=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(i){return new(i||e)(p(rn),p(We),p(te))},e.\u0275dir=F({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ie]});let t=e;return t})();var kD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let t=e;return t})();var OD=Dd(),Qg=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=st(-this._previousScrollPosition.left),e.style.top=st(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,n=e.style,i=r.style,o=n.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),OD&&(n.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),OD&&(n.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,n=this._viewportRuler.getViewportSize();return r.scrollHeight>n.height||r.scrollWidth>n.width}};var Zg=class{constructor(e,r,n,i){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(xe(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Mu=class{enable(){}disable(){}attach(){}};function Kg(t,e){return e.some(r=>{let n=t.bottomr.bottom,o=t.rightr.right;return n||i||o||s})}function ND(t,e){return e.some(r=>{let n=t.topr.bottom,o=t.leftr.right;return n||i||o||s})}var Xg=class{constructor(e,r,n,i){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:i}=this._viewportRuler.getViewportSize();Kg(r,[{width:n,height:i,bottom:i,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}},XL=(()=>{let e=class e{constructor(n,i,o,s){this._scrollDispatcher=n,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new Mu,this.close=a=>new Zg(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Qg(this._viewportRuler,this._document),this.reposition=a=>new Xg(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(i){return new(i||e)(C(ji),C(fn),C(L),C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ya=class{constructor(e){if(this.scrollStrategy=new Mu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let n of r)e[n]!==void 0&&(this[n]=e[n])}}};var Jg=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var VD=(()=>{let e=class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(i){return new(i||e)(C(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JL=(()=>{let e=class e extends VD{constructor(n,i){super(n),this._ngZone=i,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let 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)}};e.\u0275fac=function(i){return new(i||e)(C(te),C(L,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),e2=(()=>{let e=class e extends VD{constructor(n,i,o){super(n),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=cn(s)},this._clickListener=s=>{let a=cn(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){let u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(c))break;let f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(s)):f.next(s)}}}add(n){if(super.add(n),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let 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)}};e.\u0275fac=function(i){return new(i||e)(C(te),C(Oe),C(L,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BD=(()=>{let e=class e{constructor(n,i){this._platform=i,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||da()){let o=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;sthis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new N,this._outsidePointerEvents=new N,this._renders=new N,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=zo(()=>qs(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),xt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=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,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=S(S({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ue(S({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=st(this._config.width),e.height=st(this._config.height),e.minWidth=st(this._config.minWidth),e.minHeight=st(this._config.minHeight),e.maxWidth=st(this._config.maxWidth),e.maxHeight=st(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,n){let i=Qo(r||[]).filter(o=>!!o);i.length&&(n?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(K(at(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},FD="cdk-overlay-connected-position-bounding-box",t2=/([A-Za-z%]+)$/,t_=class{get positions(){return this._preferredPositions}constructor(e,r,n,i,o){this._viewportRuler=r,this._document=n,this._platform=i,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 N,this._resizeSubscription=Ce.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(FD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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){this.reapplyLastPosition();return}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();let e=this._originRect,r=this._overlayRect,n=this._viewportRect,i=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,i,a),l=this._getOverlayPoint(c,r,a),d=this._getOverlayFit(l,r,n,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,n)){o.push({position:a,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&io(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(FD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,n){let i;if(n.originX=="center")i=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;i=n.originX=="start"?s:a}r.left<0&&(i-=r.left);let o;return n.originY=="center"?o=e.top+e.height/2:o=n.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:i,y:o}}_getOverlayPoint(e,r,n){let i;n.overlayX=="center"?i=-r.width/2:n.overlayX==="start"?i=this._isRtl()?-r.width:0:i=this._isRtl()?0:-r.width;let o;return n.overlayY=="center"?o=-r.height/2:o=n.overlayY=="top"?0:-r.height,{x:e.x+i,y:e.y+o}}_getOverlayFit(e,r,n,i){let o=LD(r),{x:s,y:a}=e,c=this._getOffset(i,"x"),l=this._getOffset(i,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-n.width,f=0-a,m=a+o.height-n.height,y=this._subtractOverflows(o.width,d,u),A=this._subtractOverflows(o.height,f,m),k=y*A;return{visibleArea:k,isCompletelyWithinViewport:o.width*o.height===k,fitsInViewportVertically:A===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(e,r,n){if(this._hasFlexibleDimensions){let i=n.bottom-r.y,o=n.right-r.x,s=PD(this._overlayRef.getConfig().minHeight),a=PD(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||s!=null&&s<=i,l=e.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(e,r,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let i=LD(r),o=this._viewportRect,s=Math.max(e.x+i.width-o.width,0),a=Math.max(e.y+i.height-o.height,0),c=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0),d=0,u=0;return i.width<=o.width?d=l||-s:d=e.xy&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-y/2)}let c=r.overlayX==="start"&&!i||r.overlayX==="end"&&i,l=r.overlayX==="end"&&!i||r.overlayX==="start"&&i,d,u,f;if(l)f=n.width-e.x+this._viewportMargin*2,d=e.x-this._viewportMargin;else if(c)u=e.x,d=n.right-e.x;else{let m=Math.min(n.right-e.x+n.left,e.x),y=this._lastBoundingBoxSize.width;d=m*2,u=e.x-m,d>y&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-y/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(e,r){let n=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=st(n.height),i.top=st(n.top),i.bottom=st(n.bottom),i.width=st(n.width),i.left=st(n.left),i.right=st(n.right),r.overlayX==="center"?i.alignItems="center":i.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?i.justifyContent="center":i.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(i.maxHeight=st(o)),s&&(i.maxWidth=st(s))}this._lastBoundingBoxSize=n,io(this._boundingBox.style,i)}_resetBoundingBoxStyles(){io(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){io(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let n={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){let d=this._viewportRuler.getViewportScrollPosition();io(n,this._getExactOverlayY(r,e,d)),io(n,this._getExactOverlayX(r,e,d))}else n.position="static";let a="",c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(i?n.maxHeight=st(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=st(s.maxWidth):o&&(n.maxWidth="")),io(this._pane.style,n)}_getExactOverlayY(e,r,n){let i={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;i.bottom=`${s-(o.y+this._overlayRect.height)}px`}else i.top=st(o.y);return i}_getExactOverlayX(e,r,n){let i={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(o.x+this._overlayRect.width)}px`}else i.left=st(o.x);return i}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),n=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ND(e,n),isOriginOutsideView:Kg(e,n),isOverlayClipped:ND(r,n),isOverlayOutsideView:Kg(r,n)}}_subtractOverflows(e,...r){return r.reduce((n,i)=>n-Math.max(i,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Qo(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof $)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+r,height:n,width:r}}};function io(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function PD(t){if(typeof t!="number"&&t!=null){let[e,r]=t.split(t2);return!r||r==="px"?parseFloat(e):null}return t||null}function LD(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function n2(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var jD="cdk-global-overlay-wrapper",n_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(jD),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=n,c=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",m="",y="",A="";c?A="flex-start":d==="center"?(A="center",f?y=u:m=u):f?d==="left"||d==="end"?(A="flex-end",m=u):(d==="right"||d==="start")&&(A="flex-start",y=u):d==="left"||d==="start"?(A="flex-start",m=u):(d==="right"||d==="end")&&(A="flex-end",y=u),e.position=this._cssPosition,e.marginLeft=c?"0":m,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":y,r.justifyContent=A,r.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,n=r.style;r.classList.remove(jD),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},i2=(()=>{let e=class e{constructor(n,i,o,s){this._viewportRuler=n,this._document=i,this._platform=o,this._overlayContainer=s}global(){return new n_}flexibleConnectedTo(n){return new t_(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(i){return new(i||e)(C(fn),C(te),C(Oe),C(BD))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),r2=0,$t=(()=>{let e=class e{constructor(n,i,o,s,a,c,l,d,u,f,m,y){this.scrollStrategies=n,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=f,this._outsideClickDispatcher=m,this._animationsModuleType=y}create(n){let i=this._createHostElement(),o=this._createPaneElement(i),s=this._createPortalOutlet(o),a=new Ya(n);return a.direction=a.direction||this._directionality.value,new e_(s,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(pt))}position(){return this._positionBuilder}_createPaneElement(n){let i=this._document.createElement("div");return i.id=`cdk-overlay-${r2++}`,i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Mn)),new Su(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(i){return new(i||e)(C(XL),C(BD),C(rn),C(i2),C(JL),C(Te),C(L),C(te),C(_t),C(nr),C(e2),C(Ot,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),o2=[{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"}],HD=new E("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition()}}),Qa=(()=>{let e=class e{constructor(n){this.elementRef=n}};e.\u0275fac=function(i){return new(i||e)(p($))},e.\u0275dir=F({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),i_=(()=>{let e=class e{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 disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(n){this._disposeOnNavigation=n}constructor(n,i,o,s,a){this._overlay=n,this._dir=a,this._backdropSubscription=Ce.EMPTY,this._attachSubscription=Ce.EMPTY,this._detachSubscription=Ce.EMPTY,this._positionSubscription=Ce.EMPTY,this._disposeOnNavigation=!1,this._ngZone=g(L),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new q,this.positionChange=new q,this.attach=new q,this.detach=new q,this.overlayKeydown=new q,this.overlayOutsideClick=new q,this._templatePortal=new gr(i,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=o2);let 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(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ht(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),s=cn(i);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let n=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Ya({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(n){let i=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._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let n=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(n),n}_getOrigin(){return this.origin instanceof Qa?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Qa?this.origin.elementRef.nativeElement:this.origin instanceof $?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(gf(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(p($t),p(ze),p(We),p(HD),p(_t,8))},e.\u0275dir=F({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",G],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",G],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",G],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",G],push:[2,"cdkConnectedOverlayPush","push",G],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",G]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ye,Be]});let t=e;return t})();function s2(t){return()=>t.scrollStrategies.reposition()}var a2={provide:HD,deps:[$t],useFactory:s2},ps=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[$t,a2],imports:[ar,kD,za,za]});let t=e;return t})();var ui=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ui||{}),BZ="*";function vt(t,e){return{type:ui.Trigger,name:t,definitions:e,options:{}}}function Xe(t,e=null){return{type:ui.Animate,styles:e,timings:t}}function HZ(t,e=null){return{type:ui.Sequence,steps:t,options:e}}function _e(t){return{type:ui.Style,styles:t,offset:null}}function Qe(t,e,r){return{type:ui.State,name:t,styles:e,options:r}}function Ka(t){return{type:ui.Keyframes,steps:t}}function Ge(t,e,r=null){return{type:ui.Transition,expr:t,animation:e,options:r}}function Au(t=null){return{type:ui.AnimateChild,options:t}}function Ru(t,e,r=null){return{type:ui.Query,selector:t,animation:e,options:r}}var $D=class{constructor(e=0,r=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=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},UD=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},$Z="!";var l2=["tooltip"],qD=20;var WD=new E("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition({scrollThrottle:qD})}});function d2(t){return()=>t.scrollStrategies.reposition({scrollThrottle:qD})}var u2={provide:WD,deps:[$t],useFactory:d2};function f2(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var h2=new E("mat-tooltip-default-options",{providedIn:"root",factory:f2});var zD="tooltip-panel",GD=ri({passive:!0}),p2=8,m2=8,g2=24,_2=200,ku=(()=>{let e=class e{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=ln(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=ln(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=si(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=si(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=n!=null?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,i,o,s,a,c,l,d,u,f,m,y){this._overlay=n,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=c,this._ariaDescriber=l,this._focusMonitor=d,this._dir=f,this._defaultOptions=m,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=v2,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new N,this._injector=g(Te),this._scrollStrategy=u,this._document=y,m&&(this._showDelay=m.showDelay,this._hideDelay=m.hideDelay,m.position&&(this.position=m.position),m.positionAtOrigin&&(this.positionAtOrigin=m.positionAtOrigin),m.touchGestures&&(this.touchGestures=m.touchGestures)),f.change.pipe(K(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=p2}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(K(this._destroyed)).subscribe(n=>{n?n==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{n.removeEventListener(i,o,GD)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Wa(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(K(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(n)}hide(n=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(n):(i._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){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&s._origin instanceof $)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?n||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(K(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}-${zD}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(K(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(K(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(K(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Ht(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){let i=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(S(S({},o.main),s.main)),this._addOffset(S(S({},o.fallback),s.fallback))])}_addOffset(n){let i=m2,o=!this._dir||this._dir.value=="ltr";return n.originY==="top"?n.offsetY=-i:n.originY==="bottom"?n.offsetY=i:n.originX==="start"?n.offsetX=o?-i:i:n.originX==="end"&&(n.offsetX=o?i:-i),n}_getOrigin(){let n=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"||i=="below"?o={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&n||i=="right"&&!n?o={originX:"start",originY:"center"}:(i=="after"||i=="right"&&n||i=="left"&&!n)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let n=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"?o={overlayX:"center",overlayY:"bottom"}:i=="below"?o={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&n||i=="right"&&!n?o={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&n||i=="left"&&!n)&&(o={overlayX:"start",overlayY:"center"});let{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(),xt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):n==="end"?n="start":n==="start"&&(n="end"),{x:n,y:i}}_updateCurrentPositionClass(n){let{overlayY:i,originX:o,originY:s}=n,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=i==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let c=this._overlayRef;if(c){let l=`${this._cssClassPrefix}-${zD}-`;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=>{this._setupPointerExitEventsIfNeeded();let i;n.x!==void 0&&n.y!==void 0&&(i=n),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{let i=n.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",i=>{let o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,GD)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let n=this.touchGestures;if(n!=="off"){let i=this._elementRef.nativeElement,o=i.style;(n==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(n==="on"||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(i){return new(i||e)(p($t),p($),p(ji),p(We),p(L),p(Oe),p(Pd),p(Kr),p(WD),p(_t),p(h2,8),p(te))},e.\u0275dir=F({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),v2=(()=>{let e=class e{constructor(n,i,o){this._changeDetectorRef=n,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new N,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(n){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){this._showTimeoutId!=null&&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(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>g2&&n.width>=_2}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){let i=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(n?s:o),i.classList.add(n?o:s),this._isVisible!==n&&(this._isVisible=n,this._changeDetectorRef.markForCheck()),n&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}};e.\u0275fac=function(i){return new(i||e)(p(Ae),p($),p(Ot,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(i&1&&Se(l2,7),i&2){let s;U(s=z())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){i&1&&ce("mouseleave",function(a){return o._handleMouseLeave(a)}),i&2&&Xt("zoom",o.isVisible()?1:null)},standalone:!0,features:[ge],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){if(i&1){let s=Ke();v(0,"div",1,0),ce("animationend",function(c){return he(s),pe(o._handleAnimationEnd(c))}),v(2,"div",2),x(3),w()()}i&2&&(H("mdc-tooltip--multiline",o._isMultiline),D("ngClass",o.tooltipClass),h(3),ke(o.message))},dependencies:[dd],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let t=e;return t})();var YD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[u2],imports:[zC,Jt,ps,Ye,Ye,Fn]});let t=e;return t})();var Pn,r_=(()=>{var e,r,QD,ZD;let o=class o{constructor(){tn(this,r);tn(this,e);this.userData=Xn({version:Pn._CURRENT_USER_DATA_VERSION,currentIndex:-1,data:[]}),yr(this,e,g(en).getSettings().useBeta?"_beta":"_live")}save(){localStorage.setItem(Pn._USER_DATA_STORE_KEY+yt(this,e),JSON.stringify(this.userData()))}read(){let a=localStorage.getItem(Pn._USER_DATA_STORE_KEY+yt(this,e));if(a){let c=JSON.parse(a),l=Ju(this,r,QD).call(this,c);this.userData.set(l),c.version!==l.version&&this.save()}else this.userData.set({version:Pn._CURRENT_USER_DATA_VERSION,currentIndex:0,data:[this.createEmptyUserData()]}),this.save()}createEmptyUserData(){return{name:Ju(this,r,ZD).call(this),myGuideFilter:{year:1,day:1,season:"Spring",weather:"Sunny",hideCompleted:!0},todos:[],checklists:{}}}getCurrentData(){return this.userData().data[this.userData().currentIndex]}};e=new WeakMap,r=new WeakSet,QD=function(a){let c=a.data??[],l=a.version;for(;l!==Pn._CURRENT_USER_DATA_VERSION;)l?l===1&&(c=c.map((d,u)=>(d.myGuideFilter={year:1,day:1,season:"Spring",weather:"Sunny",hideCompleted:!0},d.name=Pn._SAVE_GAME_NAME_PREFIX+(u+1),d.checklists={},d)),l=2):(c=[this.createEmptyUserData()],l=Pn._CURRENT_USER_DATA_VERSION);return{version:Pn._CURRENT_USER_DATA_VERSION,currentIndex:a.currentIndex??0,data:c}},ZD=function(){let a=new Set(this.userData().data.map(l=>l.name)),c=this.userData().data.length+1;for(;a.has(Pn._SAVE_GAME_NAME_PREFIX+c);)c++;return Pn._SAVE_GAME_NAME_PREFIX+c},o._CURRENT_USER_DATA_VERSION=2,o._USER_DATA_STORE_KEY="user-data",o._SAVE_GAME_NAME_PREFIX="Save game ",o.\u0275fac=function(c){return new(c||o)},o.\u0275prov=I({token:o,factory:o.\u0275fac,providedIn:"root"});let t=o;return t})();Pn=r_;var KD=(()=>{let e=class e{constructor(){this.clearTimeout=3e3,this.userDataService=g(r_),this._settings=g(en),this._completedCategory$=new N,this._markedAsCompleted=new hs(!0,[]),this.versionSuffix=this._settings.getSettings().useBeta?"_beta":"_live",this.read(),this._markedAsCompleted.compareWith=(n,i)=>n.category===i.category&&an(n.item)===an(i.item)}get currentToDoAmount(){return this.getCurrentToDo().length}get currentIsEmpty(){return this.currentToDoAmount===0}add(n){this.getCurrentToDo().push(n),this.save()}getCurrentToDo(){return this.userDataService.getCurrentData().todos}save(){this.userDataService.save()}read(){let n=localStorage.getItem(e._LEGACY_TO_DO_STORE_KEY+this.versionSuffix);n&&this._migrate(JSON.parse(n))}updateStatus(n,i,o,s=!1){let a={category:n,item:i};o?this._markedAsCompleted.select(a):this._markedAsCompleted.deselect(a),s?this._completeEntries():this._resetClearTimer()}resetLiveToDo(){localStorage.setItem(e._LEGACY_TO_DO_STORE_KEY+"_live",JSON.stringify([this._createEmptyToDo()])),this.read()}resetBetaToDo(){localStorage.setItem(e._LEGACY_TO_DO_STORE_KEY+"_beta",JSON.stringify([this._createEmptyToDo()])),this.read()}alreadyInList(n,i){let o=this.getCategoryList(n);if(o.length===0)return!1;let s=an(i);return!!o.find(a=>an(a.itemEntry)===s)}getCategoryList(n){return this.getCurrentToDo().filter(o=>o.context===n)}categoryCompleted$(){return this._completedCategory$.asObservable()}completeCategory(n){this._completedCategory$.next(n)}_resetClearTimer(){clearTimeout(this.clearTimer),this.clearTimer=setTimeout(()=>{this._completeEntries()},this.clearTimeout)}_createEmptyToDo(){return{version:e._CURRENT_TO_DO_VERSION,offerings:[],cookingRecipes:[],journal:{critter:[],fish:[],gems:[],artifacts:[],fossils:[],insects:[]},uncategorized:[]}}_completeEntries(){let n=this._markedAsCompleted.selected;this._markedAsCompleted.clear();let i=-1;n.forEach(o=>{let s=an(o.item);i=this.getCurrentToDo().findIndex(a=>an(a.itemEntry)===s&&a.context===o.category),i>=0&&this.getCurrentToDo().splice(i,1)}),this.save()}_migrate(n){return n.length?("version"in n[0]&&(n.forEach((i,o)=>{let s=[];i.cookingRecipes.forEach(c=>s.push({context:"cooking_recipes",itemEntry:c.item})),i.offerings.forEach(c=>s.push({context:"offerings",itemEntry:c.item,amount:c.amount,quality:c.quality})),i.uncategorized.forEach(c=>s.push({itemEntry:c})),i.journal.artifacts.forEach(c=>s.push({context:"journal_artifacts",itemEntry:c})),i.journal.gems.forEach(c=>s.push({context:"journal_gems",itemEntry:c})),i.journal.fossils.forEach(c=>s.push({context:"journal_fossils",itemEntry:c})),i.journal.critter.forEach(c=>s.push({context:"journal_critter",itemEntry:c.item})),i.journal.fish.forEach(c=>s.push({context:"journal_fish",itemEntry:c.item})),i.journal.insects.forEach(c=>s.push({context:"journal_insects",itemEntry:c.item}));let a=this.userDataService.userData().data[o];a&&(a.todos=s)}),localStorage.removeItem(e._LEGACY_TO_DO_STORE_KEY+this.versionSuffix),this.userDataService.save()),n):[]}};e._CURRENT_TO_DO_VERSION=1,e._LEGACY_TO_DO_STORE_KEY="checklist",e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function b2(t,e){if(t&1){let r=Ke();v(0,"button",2),ce("click",function(){he(r);let i=_();return pe(i.toDoService.updateStatus(i.context(),i.item(),!0,!0))}),M(1,"app-ui-icon",3),w()}if(t&2){let r=_();h(),D("uiIcon",r.UiIcon.TO_DO_ON_LIST)}}function w2(t,e){if(t&1){let r=Ke();v(0,"button",4),ce("click",function(){he(r);let i=_();return pe(i.toDoService.add({context:i.context(),itemEntry:i.item(),quality:i.quality(),amount:i.amount()}))}),M(1,"app-ui-icon",5),w()}if(t&2){let r=_();h(),D("uiIcon",r.UiIcon.TO_DO)}}var XD=(()=>{let e=class e{constructor(){this.item=He.required(),this.context=He(),this.amount=He(),this.quality=He(),this.UiIcon=fe,this.toDoService=g(KD)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-to-do-toggle"]],inputs:{item:[1,"item"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"]},standalone:!0,features:[ge],decls:2,vars:1,consts:[["matTooltip","Remove from to-do"],["matTooltip"," Add to to-do"],["matTooltip","Remove from to-do",3,"click"],[1,"!text-green-600","!w-8","!h-8","hover:!text-green-800","focus-visible:!text-green-800",3,"uiIcon"],["matTooltip"," Add to to-do",3,"click"],[1,"!w-8","!h-8","hover:!text-black","focus-visible:!text-black",3,"uiIcon"]],template:function(i,o){i&1&&T(0,b2,2,1,"button",0)(1,w2,2,1,"button",1),i&2&&b(o.toDoService.alreadyInList(o.context(),o.item())?0:1)},dependencies:[ku,li],encapsulation:2});let t=e;return t})();var JD=(()=>{let e=class e{transform(n){return n?Im(n):""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"addSpacesToPascalCase",type:e,pure:!0,standalone:!0});let t=e;return t})();var o_=class{constructor(e){this._box=e,this._destroyed=new N,this._resizeSubject=new N,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Z(r=>{let n=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(xe(r=>r.some(n=>n.target===e)),de({bufferSize:1,refCount:!0}),K(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Ou=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=g(L),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,i){let o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new o_(o)),this._observers.get(o).observe(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var D2=["notch"],E2=["matFormFieldNotchedOutline",""],I2=["*"],S2=["textField"],T2=["iconPrefixContainer"],M2=["textPrefixContainer"],A2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R2=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function k2(t,e){t&1&&M(0,"span",19)}function O2(t,e){if(t&1&&(v(0,"label",18),W(1,1),T(2,k2,1,0,"span",19),w()),t&2){let r=_(2);D("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),Le("for",r._control.disableAutomaticLabeling?null:r._control.id),h(2),b(!r.hideRequiredMarker&&r._control.required?2:-1)}}function N2(t,e){if(t&1&&T(0,O2,3,5,"label",18),t&2){let r=_();b(r._hasFloatingLabel()?0:-1)}}function F2(t,e){t&1&&M(0,"div",5)}function P2(t,e){}function L2(t,e){if(t&1&&T(0,P2,0,0,"ng-template",11),t&2){_(2);let r=Ji(1);D("ngTemplateOutlet",r)}}function j2(t,e){if(t&1&&(v(0,"div",7),T(1,L2,1,1,null,11),w()),t&2){let r=_();D("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),h(),b(r._forceDisplayInfixLabel()?-1:1)}}function V2(t,e){t&1&&(v(0,"div",8,2),W(2,2),w())}function B2(t,e){t&1&&(v(0,"div",9,3),W(2,3),w())}function H2(t,e){}function $2(t,e){if(t&1&&T(0,H2,0,0,"ng-template",11),t&2){_();let r=Ji(1);D("ngTemplateOutlet",r)}}function U2(t,e){t&1&&(v(0,"div",12),W(1,4),w())}function z2(t,e){t&1&&(v(0,"div",13),W(1,5),w())}function G2(t,e){t&1&&M(0,"div",14)}function q2(t,e){if(t&1&&(v(0,"div",16),W(1,6),w()),t&2){let r=_();D("@transitionMessages",r._subscriptAnimationState)}}function W2(t,e){if(t&1&&(v(0,"mat-hint",20),x(1),w()),t&2){let r=_(2);D("id",r._hintLabelId),h(),ke(r.hintLabel)}}function Y2(t,e){if(t&1&&(v(0,"div",17),T(1,W2,2,2,"mat-hint",20),W(2,7),M(3,"div",21),W(4,8),w()),t&2){let r=_();D("@transitionMessages",r._subscriptAnimationState),h(),b(r.hintLabel?1:-1)}}var Fu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})();var Q2=new E("MatError");var Z2=0,eE=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${Z2++}`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){i&2&&(Qs("id",o.id),Le("align",null),H("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),K2=new E("MatPrefix");var X2=new E("MatSuffix");var cE=new E("FloatingLabelParent"),tE=(()=>{let e=class e{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=g(Ou),this._ngZone=g(L),this._parent=g(cE),this._resizeSubscription=new Ce}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return J2(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())})}};e.\u0275fac=function(i){return new(i||e)(p($))},e.\u0275dir=F({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function J2(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let n=r.scrollWidth;return r.remove(),n}var nE="mdc-line-ripple--active",Nu="mdc-line-ripple--deactivating",iE=(()=>{let e=class e{constructor(n,i){this._elementRef=n,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(Nu);o.propertyName==="opacity"&&a&&s.remove(nE,Nu)},i.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let n=this._elementRef.nativeElement.classList;n.remove(Nu),n.add(nE)}deactivate(){this._elementRef.nativeElement.classList.add(Nu)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(i){return new(i||e)(p($),p(L))},e.\u0275dir=F({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),rE=(()=>{let e=class e{constructor(n,i){this._elementRef=n,this._ngZone=i,this.open=!1}ngAfterViewInit(){let n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){!this.open||!n?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(i){return new(i||e)(p($),p(L))},e.\u0275cmp=R({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(i&1&&Se(D2,5),i&2){let s;U(s=z())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[ge],attrs:E2,ngContentSelectors:I2,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(i,o){i&1&&(be(),M(0,"div",1),v(1,"div",2,0),W(3),w(),M(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),ej={transitionMessages:vt("transitionMessages",[Qe("enter",_e({opacity:1,transform:"translateY(0%)"})),Ge("void => enter",[_e({opacity:0,transform:"translateY(-5px)"}),Xe("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},s_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e});let t=e;return t})();var a_=new E("MatFormField"),tj=new E("MAT_FORM_FIELD_DEFAULT_OPTIONS"),oE=0,sE="fill",nj="auto",aE="fixed",ij="translateY(-50%)",lE=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=ln(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||nj}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){let i=this._appearance,o=n||this._defaults?.appearance||sE;this._appearance=o,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||aE}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||aE}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,i,o,s,a,c,l,d){this._elementRef=n,this._changeDetectorRef=i,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance=sE,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${oE++}`,this._hintLabelId=`mat-mdc-hint-${oE++}`,this._subscriptAnimationState="",this._destroyed=new N,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=g(Te),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(){let 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(K(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(),at(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),qs(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(K(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_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){let i=this._control?this._control.ngControl:null;return i&&i[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(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&n.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;i?n.push(i.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let n=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){n.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",l=`${s+a}px`,u=`calc(${c} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;n.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${ij} translateX(${u}) + )`}_isAttachedToDom(){let n=this._elementRef.nativeElement;if(n.getRootNode){let i=n.getRootNode();return i&&i!==n}return document.documentElement.contains(n)}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(L),p(_t),p(Oe),p(tj,8),p(Ot,8),p(te))},e.\u0275cmp=R({type:e,selectors:[["mat-form-field"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Fu,5),Me(s,Fu,7),Me(s,s_,5),Me(s,K2,5),Me(s,X2,5),Me(s,Q2,5),Me(s,eE,5)),i&2){let a;U(a=z())&&(o._labelChildNonStatic=a.first),U(a=z())&&(o._labelChildStatic=a.first),U(a=z())&&(o._formFieldControl=a.first),U(a=z())&&(o._prefixChildren=a),U(a=z())&&(o._suffixChildren=a),U(a=z())&&(o._errorChildren=a),U(a=z())&&(o._hintChildren=a)}},viewQuery:function(i,o){if(i&1&&(Se(S2,5),Se(T2,5),Se(M2,5),Se(tE,5),Se(rE,5),Se(iE,5)),i&2){let s;U(s=z())&&(o._textField=s.first),U(s=z())&&(o._iconPrefixContainer=s.first),U(s=z())&&(o._textPrefixContainer=s.first),U(s=z())&&(o._floatingLabel=s.first),U(s=z())&&(o._notchedOutline=s.first),U(s=z())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){i&2&&H("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[me([{provide:a_,useExisting:e},{provide:cE,useExisting:e}]),ge],ngContentSelectors:R2,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,o){if(i&1){let s=Ke();be(A2),T(0,N2,1,1,"ng-template",null,0,Jl),v(2,"div",4,1),ce("click",function(c){return he(s),pe(o._control.onContainerClick(c))}),T(4,F2,1,0,"div",5),v(5,"div",6),T(6,j2,2,2,"div",7)(7,V2,3,0,"div",8)(8,B2,3,0,"div",9),v(9,"div",10),T(10,$2,1,1,null,11),W(11),w(),T(12,U2,2,0,"div",12)(13,z2,2,0,"div",13),w(),T(14,G2,1,0,"div",14),w(),v(15,"div",15),T(16,q2,2,1,"div",16)(17,Y2,5,2,"div",17),w()}if(i&2){let s;h(2),H("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),h(2),b(!o._hasOutline()&&!o._control.disabled?4:-1),h(2),b(o._hasOutline()?6:-1),h(),b(o._hasIconPrefix?7:-1),h(),b(o._hasTextPrefix?8:-1),h(2),b(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),h(2),b(o._hasTextSuffix?12:-1),h(),b(o._hasIconSuffix?13:-1),h(),b(o._hasOutline()?-1:14),h(),H("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),h(),b((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[tE,rE,ud,iE,eE],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-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-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{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-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-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{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-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-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{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{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:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-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-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-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: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:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-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-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-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-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.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;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.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;color:var(--mat-form-field-enabled-select-arrow-color)}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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%;z-index:0}.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>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.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-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:[ej.transitionMessages]},changeDetection:0});let t=e;return t})(),dE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ye,Jt,Ed,Ye]});let t=e;return t})();var oj=["trigger"],sj=["panel"],aj=[[["mat-select-trigger"]],"*"],cj=["mat-select-trigger","*"];function lj(t,e){if(t&1&&(v(0,"span",4),x(1),w()),t&2){let r=_();h(),ke(r.placeholder)}}function dj(t,e){t&1&&W(0)}function uj(t,e){if(t&1&&(v(0,"span",11),x(1),w()),t&2){let r=_(2);h(),ke(r.triggerValue)}}function fj(t,e){if(t&1&&(v(0,"span",5),T(1,dj,1,0)(2,uj,2,1,"span",11),w()),t&2){let r=_();h(),b(r.customTrigger?1:2)}}function hj(t,e){if(t&1){let r=Ke();v(0,"div",12,1),ce("@transformPanel.done",function(i){he(r);let o=_();return pe(o._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){he(r);let o=_();return pe(o._handleKeydown(i))}),W(2,1),w()}if(t&2){let r=_();hw("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),D("ngClass",r.panelClass)("@transformPanel","showing"),Le("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var pj={transformPanelWrap:vt("transformPanelWrap",[Ge("* => void",Ru("@transformPanel",[Au()],{optional:!0}))]),transformPanel:vt("transformPanel",[Qe("void",_e({opacity:0,transform:"scale(1, 0.8)"})),Ge("void => showing",Xe("120ms cubic-bezier(0, 0, 0.2, 1)",_e({opacity:1,transform:"scale(1, 1)"}))),Ge("* => void",Xe("100ms linear",_e({opacity:0})))])};var uE=0,fE=new E("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition()}});function mj(t){return()=>t.scrollStrategies.reposition()}var gj=new E("MAT_SELECT_CONFIG"),_j={provide:fE,deps:[$t],useFactory:mj},hE=new E("MatSelectTrigger"),c_=class{constructor(e,r){this.source=e,this.value=r}},pE=(()=>{let e=class e{_scrollOptionIntoView(n){let i=this.options.toArray()[n];if(i){let o=this.panel.nativeElement,s=nx(n,this.options,this.optionGroups),a=i._getHostElement();n===0&&s===1?o.scrollTop=0:o.scrollTop=ix(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(n){return new c_(this,n)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=n,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(n){this._placeholder=n,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Hd.required)??!1}set required(n){this._required=n,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(n){this._selectionModel,this._multiple=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 errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(n){this._errorStateTracker.matcher=n}get id(){return this._id}set id(n){this._id=n||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(n){this._errorStateTracker.errorState=n}constructor(n,i,o,s,a,c,l,d,u,f,m,y,A,k){this._viewportRuler=n,this._changeDetectorRef=i,this._elementRef=a,this._dir=c,this._parentFormField=u,this.ngControl=f,this._liveAnnouncer=A,this._defaultOptions=k,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._panelOpen=!1,this._compareWith=(O,le)=>O===le,this._uid=`mat-select-${uE++}`,this._triggerAriaLabelledBy=null,this._destroy=new N,this.stateChanges=new N,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${uE++}`,this._panelDoneAnimatingStream=new N,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new N,this.optionSelectionChanges=go(()=>{let O=this.options;return O?O.changes.pipe(St(O),rt(()=>at(...O.map(le=>le.onSelectionChange)))):this._initialized.pipe(rt(()=>this.optionSelectionChanges))}),this.openedChange=new q,this._openedStream=this.openedChange.pipe(xe(O=>O),j(()=>{})),this._closedStream=this.openedChange.pipe(xe(O=>!O),j(()=>{})),this.selectionChange=new q,this.valueChange=new q,this._trackedModal=null,this._skipPredicate=O=>this.panelOpen?!1:O.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),k?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=k.typeaheadDebounceInterval),this._errorStateTracker=new jd(s,f,d,l,this.stateChanges),this._scrollStrategyFactory=y,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||0,this.id=this.id}ngOnInit(){this._selectionModel=new hs(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($n(),K(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(K(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(K(this._destroy)).subscribe(n=>{n.added.forEach(i=>i.select()),n.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(St(null),K(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let n=this._getTriggerAriaLabelledby(),i=this.ngControl;if(n!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=n,n?o.setAttribute("aria-labelledby",n):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.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._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let n=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!n)return;let i=`${this.id}-panel`;this._trackedModal&&Fd(this._trackedModal,"aria-owns",i),jm(n,"aria-owns",i),this._trackedModal=n}_clearFromModal(){if(!this._trackedModal)return;let n=`${this.id}-panel`;Fd(this._trackedModal,"aria-owns",n),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}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){let n=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&n.reverse(),n.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(n){this.disabled||(this.panelOpen?this._handleOpenKeydown(n):this._handleClosedKeydown(n))}_handleClosedKeydown(n){let i=n.keyCode,o=i===40||i===38||i===37||i===39,s=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&s&&!Ht(n)||(this.multiple||n.altKey)&&o)n.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(n);let l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(n){let i=this._keyManager,o=n.keyCode,s=o===40||o===38,a=i.isTyping();if(s&&n.altKey)n.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&i.activeItem&&!Ht(n))n.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&n.ctrlKey){n.preventDefault();let c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{let c=i.activeItemIndex;i.onKeydown(n),this._multiple&&s&&n.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&i.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(Je(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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&n)Array.isArray(n),n.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(n);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(n){let i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,n)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(n){return n!==this._value||this._multiple&&Array.isArray(n)?(this.options&&this._setSelectionByValue(n),this._value=n,!0):!1}_getOverlayWidth(n){return this.panelWidth==="auto"?(n instanceof Qa?n.elementRef:n||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let n of this.options)n._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Rd(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(){let n=at(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(K(n)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),at(...this.options.map(i=>i._stateChanges)).pipe(K(n)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(n,i){let o=this._selectionModel.isSelected(n);n.value==null&&!this._multiple?(n.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(n.value)):(o!==n.selected&&(n.selected?this._selectionModel.select(n):this._selectionModel.deselect(n)),i&&this._keyManager.setActiveItem(n),this.multiple&&(this._sortValues(),i&&this.focus())),o!==this._selectionModel.isSelected(n)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let n=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,n):n.indexOf(i)-n.indexOf(o)),this.stateChanges.next()}}_propagateChanges(n){let i;this.multiple?i=this.selected.map(o=>o.value):i=this.selected?this.selected.value:n,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let n=-1;for(let i=0;i0}focus(n){this._elementRef.nativeElement.focus(n)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let n=this._parentFormField?.getLabelId(),i=n?n+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:n}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let n=this._parentFormField?.getLabelId(),i=(n?n+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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}};e.\u0275fac=function(i){return new(i||e)(p(fn),p(Ae),p(L),p(tx),p($),p(_t,8),p(ag,8),p(wa,8),p(a_,8),p(Ni,10),Ei("tabindex"),p(fE),p($C),p(gj,8))},e.\u0275cmp=R({type:e,selectors:[["mat-select"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,hE,5),Me(s,Vd,5),Me(s,Xm,5)),i&2){let a;U(a=z())&&(o.customTrigger=a.first),U(a=z())&&(o.options=a),U(a=z())&&(o.optionGroups=a)}},viewQuery:function(i,o){if(i&1&&(Se(oj,5),Se(sj,5),Se(i_,5)),i&2){let s;U(s=z())&&(o.trigger=s.first),U(s=z())&&(o.panel=s.first),U(s=z())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){i&1&&ce("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),i&2&&(Le("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),H("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",G],disableRipple:[2,"disableRipple","disableRipple",G],tabIndex:[2,"tabIndex","tabIndex",n=>n==null?0:Nt(n)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",G],placeholder:"placeholder",required:[2,"required","required",G],multiple:[2,"multiple","multiple",G],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",G],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Nt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[me([{provide:s_,useExisting:e},{provide:Km,useExisting:e}]),ye,Be,ge],ngContentSelectors:cj,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[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,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,o){if(i&1){let s=Ke();be(aj),v(0,"div",2,0),ce("click",function(){return he(s),pe(o.open())}),v(3,"div",3),T(4,lj,2,1,"span",4)(5,fj,3,1,"span",5),w(),v(6,"div",6)(7,"div",7),up(),v(8,"svg",8),M(9,"path",9),w()()()(),T(10,hj,3,9,"ng-template",10),ce("backdropClick",function(){return he(s),pe(o.close())})("attach",function(){return he(s),pe(o._onAttached())})("detach",function(){return he(s),pe(o.close())})}if(i&2){let s=Ji(1);h(3),Le("id",o._valueId),h(),b(o.empty?4:5),h(6),D("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Qa,i_,dd],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)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.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-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{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}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[pj.transformPanel]},changeDetection:0});let t=e;return t})(),mE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["mat-select-trigger"]],standalone:!0,features:[me([{provide:hE,useExisting:e}])]});let t=e;return t})(),gE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[_j],imports:[Jt,ps,Jm,Ye,Fn,dE,Jm,Ye]});let t=e;return t})();var ju=["*"],yj=["content"],bj=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],wj=["mat-drawer","mat-drawer-content","*"];function Cj(t,e){if(t&1){let r=Ke();v(0,"div",1),ce("click",function(){he(r);let i=_();return pe(i._onBackdropClicked())}),w()}if(t&2){let r=_();H("mat-drawer-shown",r._isShowingBackdrop())}}function xj(t,e){t&1&&(v(0,"mat-drawer-content"),W(1,2),w())}var Dj=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ej=["mat-sidenav","mat-sidenav-content","*"];function Ij(t,e){if(t&1){let r=Ke();v(0,"div",1),ce("click",function(){he(r);let i=_();return pe(i._onBackdropClicked())}),w()}if(t&2){let r=_();H("mat-drawer-shown",r._isShowingBackdrop())}}function Sj(t,e){t&1&&(v(0,"mat-sidenav-content"),W(1,2),w())}var Tj='.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{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);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);width:var(--mat-sidenav-container-width);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}',_E={transformDrawer:vt("transform",[Qe("open, open-instant",_e({transform:"none",visibility:"visible"})),Qe("void",_e({"box-shadow":"none",visibility:"hidden"})),Ge("void => open-instant",Xe("0ms")),Ge("void <=> open, open-instant => void",Xe("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var Mj=new E("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Aj}),l_=new E("MAT_DRAWER_CONTAINER");function Aj(){return!1}var Pu=(()=>{let e=class e extends Vi{constructor(n,i,o,s,a){super(o,s,a),this._changeDetectorRef=n,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(p(Ae),p(Ct(()=>yE)),p($),p(ji),p(L))},e.\u0275cmp=R({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,o){i&2&&Xt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[me([{provide:Vi,useExisting:e}]),ie,ge],ngContentSelectors:ju,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),vE=(()=>{let e=class e{get position(){return this._position}set position(n){n=n==="end"?"end":"start",n!==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=ln(n)}get autoFocus(){let n=this._autoFocus;return n??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(n){(n==="true"||n==="false"||n==null)&&(n=ln(n)),this._autoFocus=n}get opened(){return this._opened}set opened(n){this.toggle(ln(n))}constructor(n,i,o,s,a,c,l,d){this._elementRef=n,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=c,this._doc=l,this._container=d,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N,this._animationEnd=new N,this._animationState="void",this.openedChange=new q(!0),this._openedStream=this.openedChange.pipe(xe(u=>u),j(()=>{})),this.openedStart=this._animationStarted.pipe(xe(u=>u.fromState!==u.toState&&u.toState.indexOf("open")===0),$i(void 0)),this._closedStream=this.openedChange.pipe(xe(u=>!u),j(()=>{})),this.closedStart=this._animationStarted.pipe(xe(u=>u.fromState!==u.toState&&u.toState==="void"),$i(void 0)),this._destroyed=new N,this.onPositionChanged=new q,this._modeChanged=new N,this._injector=g(Te),this.openedChange.pipe(K(this._destroyed)).subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{pn(this._elementRef.nativeElement,"keydown").pipe(xe(u=>u.keyCode===27&&!this.disableClose&&!Ht(u)),K(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe($n((u,f)=>u.fromState===f.fromState&&u.toState===f.toState)).subscribe(u=>{let{fromState:f,toState:m}=u;(m.indexOf("open")===0&&f==="void"||m==="void"&&f.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{n.removeEventListener("blur",o),n.removeEventListener("mousedown",o),n.removeAttribute("tabindex")};n.addEventListener("blur",o),n.addEventListener("mousedown",o)})),n.focus(i)}_focusByCssSelector(n,i){let o=this._elementRef.nativeElement.querySelector(n);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;let n=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":xt(()=>{!this._focusTrap.focusInitialElement()&&typeof n.focus=="function"&&n.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(n){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){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,i){n&&i&&(this._openedVia=i);let o=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),o}_setOpen(n,i,o){return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(Je(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){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,o=i.parentNode;n==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}};e.\u0275fac=function(i){return new(i||e)(p($),p(BC),p(Kr),p(Oe),p(L),p(Vm),p(te,8),p(l_,8))},e.\u0275cmp=R({type:e,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(i&1&&Se(yj,5),i&2){let s;U(s=z())&&(o._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){i&1&&Hp("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),i&2&&(Vp("@transform",o._animationState),Le("align",null),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.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"],standalone:!0,features:[ge],ngContentSelectors:ju,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(be(),v(0,"div",1,0),W(2),w())},dependencies:[Vi],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0});let t=e;return t})(),yE=(()=>{let e=class e{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(n){this._autosize=ln(n)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(n){this._backdropOverride=n==null?null:ln(n)}get scrollable(){return this._userContent||this._content}constructor(n,i,o,s,a,c=!1,l){this._dir=n,this._element=i,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=l,this._drawers=new Sn,this.backdropClick=new q,this._destroyed=new N,this._doCheckSubject=new N,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N,this._injector=g(Te),n&&n.change.pipe(K(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(K(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}ngAfterContentInit(){this._allDrawers.changes.pipe(St(this._allDrawers),K(this._destroyed)).subscribe(n=>{this._drawers.reset(n.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(St(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(mn(10),K(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,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")n+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();n+=o,i-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();i+=o,n-=o}}n=n||null,i=i||null,(n!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:n,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(n){n._animationStarted.pipe(xe(i=>i.fromState!==i.toState),K(this._drawers.changes)).subscribe(i=>{i.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),n.mode!=="side"&&n.openedChange.pipe(K(this._drawers.changes)).subscribe(()=>this._setContainerClass(n.opened))}_watchDrawerPosition(n){n&&n.onPositionChanged.pipe(K(this._drawers.changes)).subscribe(()=>{xt(()=>{this._validateDrawers()},{injector:this._injector,phase:_i.Read})})}_watchDrawerMode(n){n&&n._modeChanged.pipe(K(at(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(n){let i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";n?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(n=>{n.position=="end"?(this._end!=null,this._end=n):(this._start!=null,this._start=n)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_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 n!=null&&n.opened}_drawerHasBackdrop(n){return this._backdropOverride==null?!!n&&n.mode!=="side":this._backdropOverride}};e.\u0275fac=function(i){return new(i||e)(p(_t,8),p($),p(L),p(Ae),p(fn),p(Mj),p(Ot,8))},e.\u0275cmp=R({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Pu,5),Me(s,vE,5)),i&2){let a;U(a=z())&&(o._content=a.first),U(a=z())&&(o._allDrawers=a)}},viewQuery:function(i,o){if(i&1&&Se(Pu,5),i&2){let s;U(s=z())&&(o._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[me([{provide:l_,useExisting:e}]),ge],ngContentSelectors:wj,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(be(bj),T(0,Cj,1,2,"div",0),W(1),W(2,1),T(3,xj,2,0,"mat-drawer-content")),i&2&&(b(o.hasBackdrop?0:-1),h(3),b(o._content?-1:3))},dependencies:[Pu],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{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);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);width:var(--mat-sidenav-container-width);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});let t=e;return t})(),Lu=(()=>{let e=class e extends Pu{constructor(n,i,o,s,a){super(n,i,o,s,a)}};e.\u0275fac=function(i){return new(i||e)(p(Ae),p(Ct(()=>u_)),p($),p(ji),p(L))},e.\u0275cmp=R({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,o){i&2&&Xt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[me([{provide:Vi,useExisting:e}]),ie,ge],ngContentSelectors:ju,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),d_=(()=>{let e=class e extends vE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(n){this._fixedInViewport=ln(n)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(n){this._fixedTopGap=si(n)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(n){this._fixedBottomGap=si(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,o){i&2&&(Le("align",null),Xt("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[ie,ge],ngContentSelectors:ju,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(be(),v(0,"div",1,0),W(2),w())},dependencies:[Vi],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0});let t=e;return t})(),u_=(()=>{let e=class e extends yE{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,Lu,5),Me(s,d_,5)),i&2){let a;U(a=z())&&(o._content=a.first),U(a=z())&&(o._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[me([{provide:l_,useExisting:e}]),ie,ge],ngContentSelectors:Ej,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(be(Dj),T(0,Ij,1,2,"div",0),W(1),W(2,1),T(3,Sj,2,0,"mat-sidenav-content")),i&2&&(b(o.hasBackdrop?0:-1),h(3),b(o._content?-1:3))},dependencies:[Lu],styles:[Tj],encapsulation:2,changeDetection:0});let t=e;return t})(),bE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ye,Fn,Fn,Ye]});let t=e;return t})();var ms=(()=>{var e;let r=class r{constructor(){tn(this,e,Xn(!1))}toggle(){yt(this,e).update(i=>!i)}open(){yt(this,e).set(!0)}close(){yt(this,e).set(!1)}get(){return yt(this,e).asReadonly()}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275prov=I({token:r,factory:r.\u0275fac,providedIn:"root"});let t=r;return t})();var kj=["drawer"],Oj=[[["","listDetail",""]],"*"],Nj=["[listDetail]","*"],f_=(()=>{var e,r;let n=class n{constructor(){tn(this,e);tn(this,r);this.removePlaceholder=He(!1,{transform:G}),this.uiIcon=fe,this.media=g(Am),this.changeDetectorRef=g(Ae),yr(this,e,g(ms)),yr(this,r,()=>this.changeDetectorRef.detectChanges()),this.mobileQuery=this.media.matchMedia("(max-width: calc(600px - 1.5rem))"),this.mobileQuery.addListener(yt(this,r)),tr(()=>{yt(this,e).get()()?this.drawer?.open():this.drawer?.close()})}ngOnDestroy(){this.mobileQuery.removeListener(yt(this,r))}};e=new WeakMap,r=new WeakMap,n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=R({type:n,selectors:[["app-list-detail-container"]],viewQuery:function(s,a){if(s&1&&Se(kj,5),s&2){let c;U(c=z())&&(a.drawer=c.first)}},inputs:{removePlaceholder:[1,"removePlaceholder"]},ngContentSelectors:Nj,decls:6,vars:5,consts:[["drawer",""],[3,"hasBackdrop"],["position","end",1,"list-detail-drawer",3,"fixedInViewport","mode"],[1,"p-main-content","w-full"]],template:function(s,a){s&1&&(be(Oj),v(0,"mat-sidenav-container",1)(1,"mat-sidenav",2,0),W(3),w(),v(4,"mat-sidenav-content",3),W(5,1),w()()),s&2&&(D("hasBackdrop",!1),h(),D("fixedInViewport",a.mobileQuery.matches)("mode","over"),h(3),H("remove-placeholder-padding",a.removePlaceholder()))},dependencies:[d_,u_,Lu],styles:[".list-detail-drawer[_ngcontent-%COMP%]{--mat-sidenav-container-width: 100%}@media (min-width: 1280px){.list-detail-drawer[_ngcontent-%COMP%]{--mat-sidenav-container-width: var(--cg-main-space-card-placeholder-width)}}"]});let t=n;return t})();var g_=["*"];function Fj(t,e){t&1&&W(0)}var Pj=["tabListContainer"],Lj=["tabList"],jj=["tabListInner"],Vj=["nextPaginator"],Bj=["previousPaginator"],Hj=t=>({animationDuration:t}),$j=(t,e)=>({value:t,params:e});function Uj(t,e){}var zj=["tabBodyWrapper"],Gj=["tabHeader"];function qj(t,e){}function Wj(t,e){if(t&1&&T(0,qj,0,0,"ng-template",12),t&2){let r=_().$implicit;D("cdkPortalOutlet",r.templateLabel)}}function Yj(t,e){if(t&1&&x(0),t&2){let r=_().$implicit;ke(r.textLabel)}}function Qj(t,e){if(t&1){let r=Ke();v(0,"div",7,2),ce("click",function(){let i=he(r),o=i.$implicit,s=i.$index,a=_(),c=Ji(1);return pe(a._handleClick(o,c,s))})("cdkFocusChange",function(i){let o=he(r).$index,s=_();return pe(s._tabFocusChanged(i,o))}),M(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),T(6,Wj,1,1,null,12)(7,Yj,1,1),w()()()}if(t&2){let r=e.$implicit,n=e.$index,i=Ji(1),o=_();qr(r.labelClass),H("mdc-tab--active",o.selectedIndex===n),D("id",o._getTabLabelId(n))("disabled",r.disabled)("fitInkBarToContent",o.fitInkBarToContent),Le("tabIndex",o._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),h(3),D("matRippleTrigger",i)("matRippleDisabled",r.disabled||o.disableRipple),h(3),b(r.templateLabel?6:7)}}function Zj(t,e){t&1&&W(0)}function Kj(t,e){if(t&1){let r=Ke();v(0,"mat-tab-body",13),ce("_onCentered",function(){he(r);let i=_();return pe(i._removeTabBodyWrapperHeight())})("_onCentering",function(i){he(r);let o=_();return pe(o._setTabBodyWrapperHeight(i))}),w()}if(t&2){let r=e.$implicit,n=e.$index,i=_();qr(r.bodyClass),H("mat-mdc-tab-body-active",i.selectedIndex===n),D("id",i._getTabContentId(n))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",i.animationDuration)("preserveContent",i.preserveContent),Le("tabindex",i.contentTabIndex!=null&&i.selectedIndex===n?i.contentTabIndex:null)("aria-labelledby",i._getTabLabelId(n))("aria-hidden",i.selectedIndex!==n)}}var Xj=new E("MatTabContent"),Jj=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(ze))},e.\u0275dir=F({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[me([{provide:Xj,useExisting:e}])]});let t=e;return t})(),eV=new E("MatTabLabel"),xE=new E("MAT_TAB"),tV=(()=>{let e=class e extends RD{constructor(n,i,o){super(n,i),this._closestTab=o}};e.\u0275fac=function(i){return new(i||e)(p(ze),p(We),p(xE,8))},e.\u0275dir=F({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[me([{provide:eV,useExisting:e}]),ie]});let t=e;return t})(),DE=new E("MAT_TAB_GROUP"),nV=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(n){this._setTemplateLabelInput(n)}get content(){return this._contentPortal}constructor(n,i){this._viewContainerRef=n,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new N,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 gr(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(n){n&&n._closestTab===this&&(this._templateLabel=n)}};e.\u0275fac=function(i){return new(i||e)(p(We),p(DE,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tab"]],contentQueries:function(i,o,s){if(i&1&&(Me(s,tV,5),Me(s,Jj,7,ze)),i&2){let a;U(a=z())&&(o.templateLabel=a.first),U(a=z())&&(o._explicitContent=a.first)}},viewQuery:function(i,o){if(i&1&&Se(ze,7),i&2){let s;U(s=z())&&(o._implicitContent=s.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",G],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[me([{provide:xE,useExisting:e}]),ye,Be,ge],ngContentSelectors:g_,decls:1,vars:0,template:function(i,o){i&1&&(be(),T(0,Fj,1,0,"ng-template"))},encapsulation:2});let t=e;return t})(),h_="mdc-tab-indicator--active",wE="mdc-tab-indicator--no-transition",p_=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let r=this._items.find(i=>i.elementRef.nativeElement===e),n=this._currentItem;if(r!==n&&(n?.deactivateInkBar(),r)){let i=n?.elementRef.nativeElement.getBoundingClientRect?.();r.activateInkBar(i),this._currentItem=r}}},iV=(()=>{let e=class e{constructor(){this._elementRef=g($),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){this._fitToContent!==n&&(this._fitToContent=n,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){let i=this._elementRef.nativeElement;if(!n||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(h_);return}let o=i.getBoundingClientRect(),s=n.width/o.width,a=n.left-o.left;i.classList.add(wE),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${s})`),i.getBoundingClientRect(),i.classList.remove(wE),i.classList.add(h_),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(h_)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let n=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=n.createElement("span"),o=this._inkBarContentElement=n.createElement("span");i.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let n=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;n.appendChild(this._inkBarElement)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",G]},features:[ye]});let t=e;return t})();var EE=(()=>{let e=class e extends iV{constructor(n){super(),this.elementRef=n,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(i){return new(i||e)(p($))},e.\u0275dir=F({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){i&2&&(Le("aria-disabled",!!o.disabled),H("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",G]},standalone:!0,features:[ye,ie]});let t=e;return t})(),CE=ri({passive:!0}),rV=650,oV=100,sV=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(n){let i=isNaN(n)?0:n;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(n,i,o,s,a,c,l){this._elementRef=n,this._changeDetectorRef=i,this._viewportRuler=o,this._dir=s,this._ngZone=a,this._platform=c,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new q,this.indexFocused=new q,this._sharedResizeObserver=g(Ou),this._injector=g(Te),a.runOutsideAngular(()=>{pn(n.nativeElement,"mouseleave").pipe(K(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){pn(this._previousPaginator.nativeElement,"touchstart",CE).pipe(K(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),pn(this._nextPaginator.nativeElement,"touchstart",CE).pipe(K(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let n=this._dir?this._dir.change:B("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(mn(32),K(this._destroyed)),o=this._viewportRuler.change(150).pipe(K(this._destroyed)),s=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new kd(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),xt(s,{injector:this._injector}),at(n,o,i,this._items.changes,this._itemsResized()).pipe(K(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),s()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?It:this._items.changes.pipe(St(this._items),rt(n=>new Z(i=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(s=>i.next(s));return n.forEach(s=>o.observe(s.elementRef.nativeElement)),()=>{o.disconnect()}}))),Sr(1),xe(n=>n.some(i=>i.contentRect.width>0&&i.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(!Ht(n))switch(n.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n))}break;default:this._keyManager.onKeydown(n)}}_onContentChanges(){let 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]:!0}_setTabFocus(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let n=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-n:n;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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){let i=this._tabListContainer.nativeElement.offsetWidth,o=(n=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(n){this._stopInterval(),this._scrollHeader(n)}_scrollToLabel(n){if(this.disablePagination)return;let i=this._items?this._items.toArray()[n]:null;if(!i)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:a}=i.elementRef.nativeElement,c,l;this._getLayoutDirection()=="ltr"?(c=s,l=c+a):(l=this._tabListInner.nativeElement.offsetWidth-s,c=l-a);let d=this.scrollDistance,u=this.scrollDistance+o;cu&&(this.scrollDistance+=Math.min(l-u,c-d))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let 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=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let n=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return n-i||0}_alignInkBarToSelectedTab(){let n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=n?n.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(n,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Ir(rV,oV).pipe(K(at(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:s}=this._scrollHeader(n);(s===0||s>=o)&&this._stopInterval()}))}_scrollTo(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(fn),p(_t,8),p(L),p(Oe),p(Ot,8))},e.\u0275dir=F({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",G],selectedIndex:[2,"selectedIndex","selectedIndex",Nt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ye]});let t=e;return t})(),aV=(()=>{let e=class e extends sV{constructor(n,i,o,s,a,c,l){super(n,i,o,s,a,c,l),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new p_(this._items),super.ngAfterContentInit()}_itemSelected(n){n.preventDefault()}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(fn),p(_t,8),p(L),p(Oe),p(Ot,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tab-header"]],contentQueries:function(i,o,s){if(i&1&&Me(s,EE,4),i&2){let a;U(a=z())&&(o._items=a)}},viewQuery:function(i,o){if(i&1&&(Se(Pj,7),Se(Lj,7),Se(jj,7),Se(Vj,5),Se(Bj,5)),i&2){let s;U(s=z())&&(o._tabListContainer=s.first),U(s=z())&&(o._tabList=s.first),U(s=z())&&(o._tabListInner=s.first),U(s=z())&&(o._nextPaginator=s.first),U(s=z())&&(o._previousPaginator=s.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){i&2&&H("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{disableRipple:[2,"disableRipple","disableRipple",G]},standalone:!0,features:[ye,ie,ge],ngContentSelectors:g_,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(i,o){if(i&1){let s=Ke();be(),v(0,"button",5,0),ce("click",function(){return he(s),pe(o._handlePaginatorClick("before"))})("mousedown",function(c){return he(s),pe(o._handlePaginatorPress("before",c))})("touchend",function(){return he(s),pe(o._stopInterval())}),M(2,"div",6),w(),v(3,"div",7,1),ce("keydown",function(c){return he(s),pe(o._handleKeydown(c))}),v(5,"div",8,2),ce("cdkObserveContent",function(){return he(s),pe(o._onContentChanges())}),v(7,"div",9,3),W(9),w()()(),v(10,"button",10,4),ce("mousedown",function(c){return he(s),pe(o._handlePaginatorPress("after",c))})("click",function(){return he(s),pe(o._handlePaginatorClick("after"))})("touchend",function(){return he(s),pe(o._stopInterval())}),M(12,"div",6),w()}i&2&&(H("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),D("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),h(3),H("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(7),H("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),D("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[Ko,MC],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let t=e;return t})(),cV=new E("MAT_TABS_CONFIG"),lV={translateTab:vt("translateTab",[Qe("center, void, left-origin-center, right-origin-center",_e({transform:"none"})),Qe("left",_e({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Qe("right",_e({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Ge("* => left, * => right, left => center, right => center",Xe("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ge("void => left-origin-center",[_e({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Xe("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ge("void => right-origin-center",[_e({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Xe("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},dV=(()=>{let e=class e extends Tu{constructor(n,i,o,s){super(n,i,s),this._host=o,this._centeringSub=Ce.EMPTY,this._leavingSub=Ce.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(St(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()}};e.\u0275fac=function(i){return new(i||e)(p(rn),p(We),p(Ct(()=>IE)),p(te))},e.\u0275dir=F({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[ie]});let t=e;return t})(),IE=(()=>{let e=class e{set position(n){this._positionIndex=n,this._computePositionAnimationState()}constructor(n,i,o){this._elementRef=n,this._dir=i,this._dirChangeSubscription=Ce.EMPTY,this._translateTabComplete=new N,this._onCentering=new q,this._beforeCentering=new q,this._afterLeavingCenter=new q,this._onCentered=new q(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe($n((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(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(n){let i=this._isCenterPosition(n.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(n){return n=="center"||n=="left-origin-center"||n=="right-origin-center"}_computePositionAnimationState(n=this._getLayoutDirection()){this._positionIndex<0?this._position=n=="ltr"?"left":"right":this._positionIndex>0?this._position=n=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(n){let i=this._getLayoutDirection();return i=="ltr"&&n<=0||i=="rtl"&&n>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(i){return new(i||e)(p($),p(_t,8),p(Ae))},e.\u0275cmp=R({type:e,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(i&1&&Se(Tu,5),i&2){let s;U(s=z())&&(o._portalHost=s.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[ge],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,o){if(i&1){let s=Ke();v(0,"div",1,0),ce("@translateTab.start",function(c){return he(s),pe(o._onTranslateTabStarted(c))})("@translateTab.done",function(c){return he(s),pe(o._translateTabComplete.next(c))}),T(2,Uj,0,0,"ng-template",2),w()}i&2&&D("@translateTab",vw(3,$j,o._position,ni(1,Hj,o.animationDuration)))},dependencies:[dV,Vi],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:[lV.translateTab]}});let t=e;return t})(),uV=0,fV=!0,FJ=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(n){this._fitInkBarToContent=n,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){this._indexToSelect=isNaN(n)?null:n}get animationDuration(){return this._animationDuration}set animationDuration(n){let i=n+"";this._animationDuration=/^\d+$/.test(i)?n+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(n){this._contentTabIndex=isNaN(n)?null:n}get backgroundColor(){return this._backgroundColor}set backgroundColor(n){if(!fV)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),n&&i.add("mat-tabs-with-background",`mat-background-${n}`),this._backgroundColor=n}constructor(n,i,o,s){this._elementRef=n,this._changeDetectorRef=i,this._animationMode=s,this._tabs=new Sn,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ce.EMPTY,this._tabLabelSubscription=Ce.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new q,this.focusChange=new q,this.animationDone=new q,this.selectedTabChange=new q(!0),this._isServer=!g(Oe).isBrowser,this._groupId=uV++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let n=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=n){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(n));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===n),i||(this.selectedIndexChange.emit(n),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-n,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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(()=>{let n=this._clampTabIndex(this._indexToSelect);if(n===this._selectedIndex){let i=this._tabs.toArray(),o;for(let s=0;s{i[n].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(n))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(St(this._allTabs)).subscribe(n=>{this._tabs.reset(n.filter(i=>i._closestTabGroup===this||!i._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){let i=this._tabHeader;i&&(i.focusIndex=n)}_focusChanged(n){this._lastFocusedTabIndex=n,this.focusChange.emit(this._createChangeEvent(n))}_createChangeEvent(n){let i=new m_;return i.index=n,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[n]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=at(...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;let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=n+"px")}_removeTabBodyWrapperHeight(){let n=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=n.clientHeight,n.style.height="",this.animationDone.emit()}_handleClick(n,i,o){i.focusIndex=o,n.disabled||(this.selectedIndex=o)}_getTabIndex(n){let i=this._lastFocusedTabIndex??this.selectedIndex;return n===i?0:-1}_tabFocusChanged(n,i){n&&n!=="mouse"&&n!=="touch"&&(this._tabHeader.focusIndex=i)}};e.\u0275fac=function(i){return new(i||e)(p($),p(Ae),p(cV,8),p(Ot,8))},e.\u0275cmp=R({type:e,selectors:[["mat-tab-group"]],contentQueries:function(i,o,s){if(i&1&&Me(s,nV,5),i&2){let a;U(a=z())&&(o._allTabs=a)}},viewQuery:function(i,o){if(i&1&&(Se(zj,5),Se(Gj,5)),i&2){let s;U(s=z())&&(o._tabBodyWrapper=s.first),U(s=z())&&(o._tabHeader=s.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,o){i&2&&(qr("mat-"+(o.color||"primary")),Xt("--mat-tab-animation-duration",o.animationDuration),H("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",G],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",G],dynamicHeight:[2,"dynamicHeight","dynamicHeight",G],selectedIndex:[2,"selectedIndex","selectedIndex",Nt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Nt],disablePagination:[2,"disablePagination","disablePagination",G],disableRipple:[2,"disableRipple","disableRipple",G],preserveContent:[2,"preserveContent","preserveContent",G],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[me([{provide:DE,useExisting:e}]),ye,ge],ngContentSelectors:g_,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(i,o){if(i&1){let s=Ke();be(),v(0,"mat-tab-header",3,0),ce("indexFocused",function(c){return he(s),pe(o._focusChanged(c))})("selectFocusedIndex",function(c){return he(s),pe(o.selectedIndex=c)}),et(2,Qj,8,17,"div",4,it),w(),T(4,Zj,1,0),v(5,"div",5,1),et(7,Kj,1,13,"mat-tab-body",6,it),w()}i&2&&(D("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),h(2),tt(o._tabs),h(2),b(o._isServer?4:-1),h(),H("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(2),tt(o._tabs))},dependencies:[aV,EE,UC,Ko,Tu,IE],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});let t=e;return t})(),m_=class{};var SE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ye,Ye]});let t=e;return t})();var pV=[[["caption"]],[["colgroup"],["col"]],"*"],mV=["caption","colgroup, col","*"];function gV(t,e){t&1&&W(0,2)}function _V(t,e){t&1&&(v(0,"thead",0),Bt(1,1),w(),v(2,"tbody",0),Bt(3,2)(4,3),w(),v(5,"tfoot",0),Bt(6,4),w())}function vV(t,e){t&1&&Bt(0,1)(1,2)(2,3)(3,4)}var Ln=new E("CDK_TABLE");var zu=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(ze))},e.\u0275dir=F({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Gu=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(ze))},e.\u0275dir=F({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),AE=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(i){return new(i||e)(p(ze))},e.\u0275dir=F({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),gs=(()=>{let e=class e{get name(){return this._name}set name(n){this._setNameInput(n)}get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(n){n!==this._stickyEnd&&(this._stickyEnd=n,this._hasStickyChanged=!0)}constructor(n){this._table=n,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(n){n&&(this._name=n,this.cssClassFriendlyName=n.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(p(Ln,8))},e.\u0275dir=F({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,s){if(i&1&&(Me(s,zu,5),Me(s,Gu,5),Me(s,AE,5)),i&2){let a;U(a=z())&&(o.cell=a.first),U(a=z())&&(o.headerCell=a.first),U(a=z())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",G],stickyEnd:[2,"stickyEnd","stickyEnd",G]},standalone:!0,features:[me([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ye]});let t=e;return t})(),Bu=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},RE=(()=>{let e=class e extends Bu{constructor(n,i){super(n,i)}};e.\u0275fac=function(i){return new(i||e)(p(gs),p($))},e.\u0275dir=F({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ie]});let t=e;return t})();var kE=(()=>{let e=class e extends Bu{constructor(n,i){super(n,i);let o=n._table?._getCellRole();o&&i.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(i){return new(i||e)(p(gs),p($))},e.\u0275dir=F({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ie]});let t=e;return t})(),Hu=class{constructor(){this.tasks=[],this.endTasks=[]}},$u=new E("_COALESCED_STYLE_SCHEDULER"),v_=(()=>{let e=class e{constructor(n){this._currentSchedule=null,this._ngZone=g(L)}schedule(n){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(n)}scheduleEnd(n){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(n)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Hu,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let n=this._currentSchedule;this._currentSchedule=new Hu;for(let i of n.tasks)i();for(let i of n.endTasks)i()}this._currentSchedule=null})))}};e.\u0275fac=function(i){return new(i||e)(C(L))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();var y_=(()=>{let e=class e{constructor(n,i){this.template=n,this._differs=i}ngOnChanges(n){if(!this._columnsDiffer){let i=n.columns&&n.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(n){return this instanceof Xa?n.headerCell.template:this instanceof b_?n.footerCell.template:n.cell.template}};e.\u0275fac=function(i){return new(i||e)(p(ze),p(Ai))},e.\u0275dir=F({type:e,features:[Be]});let t=e;return t})(),Xa=(()=>{let e=class e extends y_{get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}constructor(n,i,o){super(n,i),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(n){super.ngOnChanges(n)}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(p(ze),p(Ai),p(Ln,8))},e.\u0275dir=F({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",G]},standalone:!0,features:[ye,ie,Be]});let t=e;return t})(),b_=(()=>{let e=class e extends y_{get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}constructor(n,i,o){super(n,i),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(n){super.ngOnChanges(n)}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(p(ze),p(Ai),p(Ln,8))},e.\u0275dir=F({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",G]},standalone:!0,features:[ye,ie,Be]});let t=e;return t})(),qu=(()=>{let e=class e extends y_{constructor(n,i,o){super(n,i),this._table=o}};e.\u0275fac=function(i){return new(i||e)(p(ze),p(Ai),p(Ln,8))},e.\u0275dir=F({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ie]});let t=e;return t})(),ro=(()=>{let e=class e{constructor(n){this._viewContainer=n,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(p(We))},e.\u0275dir=F({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),w_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[ro],encapsulation:2});let t=e;return t})();var C_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[ro],encapsulation:2});let t=e;return t})(),OE=(()=>{let e=class e{constructor(n){this.templateRef=n,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(p(ze))},e.\u0275dir=F({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),TE=["top","bottom","left","right"],__=class{constructor(e,r,n,i,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let n=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let o=0;o{for(let i of n)this._removeStickyStyle(i,r)})}updateStickyColumns(e,r,n,i=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||n.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,i),c=this._getStickyStartColumnPositions(a,r),l=this._getStickyEndColumnPositions(a,n),d=r.lastIndexOf(!0),u=n.indexOf(!0),f=this.direction==="rtl",m=f?"right":"left",y=f?"left":"right";for(let A of e)for(let k=0;kr[k]?A:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:u===-1?[]:a.slice(u).map((A,k)=>n[k+u]?A:null).reverse()}))})}stickRows(e,r,n){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=n==="bottom"?e.slice().reverse():e,o=n==="bottom"?r.slice().reverse():r,s=[],a=[],c=[];for(let d=0,u=0;d{let n=e.querySelector("tfoot");n&&(r.some(i=>!i)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let i of r)e.style[i]="",e.classList.remove(this._borderCellCss[i]);TE.some(i=>r.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,n,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${n}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},n=0;for(let i of TE)e.style[i]&&(n+=r[i]);return n?`${n}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],i=e.children;for(let o=0;o0;o--)r[o]&&(n[o]=i,i+=e[o]);return n}};var Uu=new E("CDK_SPL");var x_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Ln);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),D_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Ln);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),E_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Ln);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),I_=(()=>{let e=class e{constructor(n,i){this.viewContainer=n,this.elementRef=i;let o=g(Ln);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(p(We),p($))},e.\u0275dir=F({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var S_=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let n=this._elementRef.nativeElement.getAttribute("role"),i=n==="grid"||n==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}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=n,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(n){this._fixedLayout=n,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(n,i,o,s,a,c,l,d,u,f,m,y){this._differs=n,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=f,this._stickyPositioningListener=m,this._onDestroy=new N,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new q,this.viewChange=new Ze({start:0,end:Number.MAX_VALUE}),this._injector=g(Te),s||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!l.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((n,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(K(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}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(),Eu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let n=this._dataDiffer.diff(this._renderRows);if(!n){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(n,i,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===us.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),n.forEachIdentityChange(o=>{let s=i.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),xt(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),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(){let n=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=ME(this._headerRowOutlet,"thead");o&&(o.style.display=n.length?"":"none")}let i=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,i,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let n=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=ME(this._footerRowOutlet,"tfoot");o&&(o.style.display=n.length?"":"none")}let i=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...n,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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()}_getAllRenderRows(){let n=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(a)?o.get(a):[];if(c.length){let l=c.shift();return l.dataIndex=i,l}else return{data:n,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Vu(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Vu(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Vu(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Vu(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let n=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&n.length>1,this._defaultRowDef=n[0]}_renderUpdatedColumns(){let n=(a,c)=>a||!!c.getColumnsDiff(),i=this._rowDefs.reduce(n,!1);i&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(n,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(n,!1);return s&&this._forceRenderFooterRows(),i||o||s}_switchDataSource(n){this._data=[],Eu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),n||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=n}_observeRenderChanges(){if(!this.dataSource)return;let n;Eu(this.dataSource)?n=this.dataSource.connect(this):Er(this.dataSource)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=B(this.dataSource)),this._renderChangeSubscription=n.pipe(K(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((n,i)=>this._renderRow(this._headerRowOutlet,n,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((n,i)=>this._renderRow(this._footerRowOutlet,n,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(n,i){let o=Array.from(i.columns||[]).map(c=>{let l=this._columnDefsByName.get(c);return l}),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(n,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(n){let i=[];for(let o=0;o!s.when||s.when(i,n));else{let s=this._rowDefs.find(a=>a.when&&a.when(i,n))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(n,i){let o=n.rowDef,s={$implicit:n.data};return{templateRef:o.template,context:s,index:i}}_renderRow(n,i,o,s={}){let a=n.viewContainer.createEmbeddedView(i.template,s,o);return this._renderCellTemplateForItem(i,s),a}_renderCellTemplateForItem(n,i){for(let o of this._getCellTemplates(n))ro.mostRecentCellOutlet&&ro.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let n=this._rowOutlet.viewContainer;for(let i=0,o=n.length;i{let o=this._columnDefsByName.get(i);return n.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let n=(i,o)=>i||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(){let n=this._dir?this._dir.value:"ltr";this._stickyStyler=new __(this._isNativeHtmlTable,this.stickyCssClass,n,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:B()).pipe(K(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(n){return n.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let n=this._customNoDataRow||this._noDataRow;if(!n)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(i){let s=o.createEmbeddedView(n.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(n._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(p(Ai),p(Ae),p($),Ei("role"),p(_t,8),p(te),p(Oe),p(Ua),p($u),p(fn),p(Uu,12),p(L,8))},e.\u0275cmp=R({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,s){if(i&1&&(Me(s,OE,5),Me(s,gs,5),Me(s,qu,5),Me(s,Xa,5),Me(s,b_,5)),i&2){let a;U(a=z())&&(o._noDataRow=a.first),U(a=z())&&(o._contentColumnDefs=a),U(a=z())&&(o._contentRowDefs=a),U(a=z())&&(o._contentHeaderRowDefs=a),U(a=z())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,o){i&2&&H("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",G],fixedLayout:[2,"fixedLayout","fixedLayout",G]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[me([{provide:Ln,useExisting:e},{provide:Ua,useClass:fs},{provide:$u,useClass:v_},{provide:Uu,useValue:null}]),ye,ge],ngContentSelectors:mV,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(be(pV),W(0),W(1,1),T(2,gV,1,0)(3,_V,7,0)(4,vV,4,0)),i&2&&(h(2),b(o._isServer?2:-1),h(),b(o._isNativeHtmlTable?3:4))},dependencies:[D_,x_,I_,E_],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function Vu(t,e){return t.concat(Array.from(e))}function ME(t,e){let r=e.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let i=n.nodeType===1?n.nodeName:null;if(i===r)return n;if(i==="TABLE")break;n=n.parentNode}return null}var NE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[za]});let t=e;return t})();var yV=[[["caption"]],[["colgroup"],["col"]],"*"],bV=["caption","colgroup, col","*"];function wV(t,e){t&1&&W(0,2)}function CV(t,e){t&1&&(v(0,"thead",0),Bt(1,1),w(),v(2,"tbody",2),Bt(3,3)(4,4),w(),v(5,"tfoot",0),Bt(6,5),w())}function xV(t,e){t&1&&Bt(0,1)(1,3)(2,4)(3,5)}var FE=(()=>{let e=class e extends S_{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){i&2&&H("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[me([{provide:S_,useExisting:e},{provide:Ln,useExisting:e},{provide:$u,useClass:v_},{provide:Ua,useClass:fs},{provide:Uu,useValue:null}]),ie,ge],ngContentSelectors:bV,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(be(yV),W(0),W(1,1),T(2,wV,1,0)(3,CV,7,0)(4,xV,4,0)),i&2&&(h(2),b(o._isServer?2:-1),h(),b(o._isNativeHtmlTable?3:4))},dependencies:[D_,x_,I_,E_],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{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});let t=e;return t})(),PE=(()=>{let e=class e extends zu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[me([{provide:zu,useExisting:e}]),ie]});let t=e;return t})(),LE=(()=>{let e=class e extends Gu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[me([{provide:Gu,useExisting:e}]),ie]});let t=e;return t})();var jE=(()=>{let e=class e extends gs{get name(){return this._name}set name(n){this._setNameInput(n)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[me([{provide:gs,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ie]});let t=e;return t})(),VE=(()=>{let e=class e extends RE{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ie]});let t=e;return t})();var BE=(()=>{let e=class e extends kE{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ie]});let t=e;return t})();var HE=(()=>{let e=class e extends Xa{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",G]},standalone:!0,features:[me([{provide:Xa,useExisting:e}]),ye,ie]});let t=e;return t})();var $E=(()=>{let e=class e extends qu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[me([{provide:qu,useExisting:e}]),ie]});let t=e;return t})(),UE=(()=>{let e=class e extends w_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({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"],standalone:!0,features:[me([{provide:w_,useExisting:e}]),ie,ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[ro],encapsulation:2});let t=e;return t})();var zE=(()=>{let e=class e extends C_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[me([{provide:C_,useExisting:e}]),ie,ge],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Bt(0,0)},dependencies:[ro],encapsulation:2});let t=e;return t})();var GE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ye,NE,Ye]});let t=e;return t})(),DV=9007199254740991,Wu=class extends Du{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Ze([]),this._filter=new Ze(""),this._internalPageChanges=new N,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,n)=>{let i=r[n];if(Mm(i)){let o=Number(i);return o{let i=n.active,o=n.direction;return!i||o==""?r:r.sort((s,a)=>{let c=this.sortingDataAccessor(s,i),l=this.sortingDataAccessor(a,i),d=typeof c,u=typeof l;d!==u&&(d==="number"&&(c+=""),u==="number"&&(l+=""));let f=0;return c!=null&&l!=null?c>l?f=1:c{let i=Object.keys(r).reduce((s,a)=>s+r[a]+"\u25EC","").toLowerCase(),o=n.trim().toLowerCase();return i.indexOf(o)!=-1},this._data=new Ze(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?at(this._sort.sortChange,this._sort.initialized):B(null),r=this._paginator?at(this._paginator.page,this._internalPageChanges,this._paginator.initialized):B(null),n=this._data,i=zt([n,this._filter]).pipe(j(([a])=>this._filterData(a))),o=zt([i,e]).pipe(j(([a])=>this._orderData(a))),s=zt([o,r]).pipe(j(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let n=Math.ceil(r.length/r.pageSize)-1||0,i=Math.min(r.pageIndex,n);i!==r.pageIndex&&(r.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};function IV(t,e){if(t&1&&(v(0,"span",0),x(1),w()),t&2){let r=_();h(),Dt(" (+",(r.values.length||0)-1," ",r.values.length===2?"other":"others",") ")}}var qE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-multi-select-trigger"]],inputs:{values:"values"},standalone:!0,features:[ge],decls:2,vars:2,consts:[[1,"text-sm","opacity-80"]],template:function(i,o){i&1&&(x(0),T(1,IV,2,2,"span",0)),i&2&&(Y("",o.values[0]||"Filter",` +`),h(),b((o.values.length||0)>1?1:-1))},encapsulation:2});let t=e;return t})();var WE=()=>[];function TV(t,e){if(t&1&&(v(0,"mat-option",5),x(1),w()),t&2){let r=e.$implicit;D("value",r),h(),ke(r)}}function MV(t,e){if(t&1&&(v(0,"mat-form-field",2)(1,"mat-label"),x(2,"Season"),w(),v(3,"mat-select",3)(4,"mat-select-trigger"),M(5,"app-multi-select-trigger",4),w(),et(6,TV,2,2,"mat-option",5,it),w()()),t&2){let r,n=_(2);h(5),D("values",(r=n.parentFormGroup.value.season)!==null&&r!==void 0?r:Mi(1,WE)),h(),tt(n.Seasons)}}function AV(t,e){if(t&1&&(v(0,"mat-option",5),x(1),w()),t&2){let r=e.$implicit;D("value",r),h(),ke(r)}}function RV(t,e){if(t&1&&(v(0,"mat-form-field",2)(1,"mat-label"),x(2,"Weather"),w(),v(3,"mat-select",6)(4,"mat-select-trigger"),M(5,"app-multi-select-trigger",4),w(),et(6,AV,2,2,"mat-option",5,it),w()()),t&2){let r,n=_(2);h(5),D("values",(r=n.parentFormGroup.value.weather)!==null&&r!==void 0?r:Mi(1,WE)),h(),tt(n.Weathers)}}function kV(t,e){if(t&1&&(v(0,"mat-option",5),x(1),w()),t&2){let r=e.$implicit;D("value",r),h(),ke(r)}}function OV(t,e){if(t&1&&(v(0,"mat-form-field",2)(1,"mat-label"),x(2,"Location"),w(),v(3,"mat-select",7)(4,"mat-option",5),x(5,"No filter"),w(),et(6,kV,2,2,"mat-option",5,it),w()()),t&2){let r=_(2);h(4),D("value",null),h(2),tt(r.locations)}}function NV(t,e){if(t&1&&(ei(0,1),T(1,MV,8,2,"mat-form-field",2)(2,RV,8,2,"mat-form-field",2)(3,OV,8,1,"mat-form-field",2),ti()),t&2){let r=_();D("formGroup",r.parentFormGroup),h(),b(r.parentFormGroup.contains("season")?1:-1),h(),b(r.parentFormGroup.contains("weather")?2:-1),h(),b(r.parentFormGroup.contains("location")&&r.locations.length?3:-1)}}var Tee=(()=>{let e=class e{constructor(){this.locations=[],this.showTableChange=new q,this.Seasons=CC,this.Weathers=xC,this.classes="my-3 flex gap-x-3 gap-y-4 flex-wrap"}setShowTable(n){this.showTable=n,this.showTableChange.emit(this.showTable)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-data-filter"]],hostVars:2,hostBindings:function(i,o){i&2&&qr(o.classes)},inputs:{parentFormGroup:"parentFormGroup",locations:"locations",showTable:"showTable"},outputs:{showTableChange:"showTableChange"},decls:3,vars:2,consts:[["type","button",1,"btn",3,"click"],[3,"formGroup"],[1,"semi-transparent-form-field","grow","lg:grow-0","shrink-0","basis-auto"],["disableOptionCentering","","formControlName","season","multiple",""],[3,"values"],[3,"value"],["disableOptionCentering","","formControlName","weather","multiple",""],["disableOptionCentering","","formControlName","location"]],template:function(i,o){i&1&&(v(0,"button",0),ce("click",function(){return o.setShowTable(!o.showTable)}),x(1),w(),T(2,NV,4,4,"ng-container",1)),i&2&&(h(),Y("",o.showTable?"Show grid":"Show table",` +`),h(),b(o.parentFormGroup?2:-1))},dependencies:[lE,Fu,pE,mE,Vd,Ix,Sx,wa,lg,qE],encapsulation:2});let t=e;return t})();var FV=["mat-sort-header",""],PV=["*"];function LV(t,e){if(t&1){let r=Ke();v(0,"div",2),ce("@arrowPosition.start",function(){he(r);let i=_();return pe(i._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){he(r);let i=_();return pe(i._disableViewStateAnimation=!1)}),M(1,"div",3),v(2,"div",4),M(3,"div",5)(4,"div",6)(5,"div",7),w()()}if(t&2){let r=_();D("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),h(2),D("@indicator",r._getArrowDirectionState()),h(),D("@leftPointer",r._getArrowDirectionState()),h(),D("@rightPointer",r._getArrowDirectionState())}}var YE=new E("MAT_SORT_DEFAULT_OPTIONS"),Ja=(()=>{let e=class e{get direction(){return this._direction}set direction(n){this._direction=n}constructor(n){this._defaultOptions=n,this._initializedStream=new Bi(1),this.sortables=new Map,this._stateChanges=new N,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new q,this.initialized=this._initializedStream}register(n){this.sortables.set(n.id,n)}deregister(n){this.sortables.delete(n.id)}sort(n){this.active!=n.id?(this.active=n.id,this.direction=n.start?n.start:this.start):this.direction=this.getNextSortDirection(n),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(n){if(!n)return"";let i=n?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=jV(n.start||this.start,i),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(i){return new(i||e)(p(YE,8))},e.\u0275dir=F({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",G],disabled:[2,"matSortDisabled","disabled",G]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ye,Be]});let t=e;return t})();function jV(t,e){let r=["asc","desc"];return t=="desc"&&r.reverse(),e||r.push(""),r}var _r=ex.ENTERING+" "+JC.STANDARD_CURVE,_s={indicator:vt("indicator",[Qe("active-asc, asc",_e({transform:"translateY(0px)"})),Qe("active-desc, desc",_e({transform:"translateY(10px)"})),Ge("active-asc <=> active-desc",Xe(_r))]),leftPointer:vt("leftPointer",[Qe("active-asc, asc",_e({transform:"rotate(-45deg)"})),Qe("active-desc, desc",_e({transform:"rotate(45deg)"})),Ge("active-asc <=> active-desc",Xe(_r))]),rightPointer:vt("rightPointer",[Qe("active-asc, asc",_e({transform:"rotate(45deg)"})),Qe("active-desc, desc",_e({transform:"rotate(-45deg)"})),Ge("active-asc <=> active-desc",Xe(_r))]),arrowOpacity:vt("arrowOpacity",[Qe("desc-to-active, asc-to-active, active",_e({opacity:1})),Qe("desc-to-hint, asc-to-hint, hint",_e({opacity:.54})),Qe("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_e({opacity:0})),Ge("* => asc, * => desc, * => active, * => hint, * => void",Xe("0ms")),Ge("* <=> *",Xe(_r))]),arrowPosition:vt("arrowPosition",[Ge("* => desc-to-hint, * => desc-to-active",Xe(_r,Ka([_e({transform:"translateY(-25%)"}),_e({transform:"translateY(0)"})]))),Ge("* => hint-to-desc, * => active-to-desc",Xe(_r,Ka([_e({transform:"translateY(0)"}),_e({transform:"translateY(25%)"})]))),Ge("* => asc-to-hint, * => asc-to-active",Xe(_r,Ka([_e({transform:"translateY(25%)"}),_e({transform:"translateY(0)"})]))),Ge("* => hint-to-asc, * => active-to-asc",Xe(_r,Ka([_e({transform:"translateY(0)"}),_e({transform:"translateY(-25%)"})]))),Qe("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_e({transform:"translateY(0)"})),Qe("hint-to-desc, active-to-desc, desc",_e({transform:"translateY(-25%)"})),Qe("hint-to-asc, active-to-asc, asc",_e({transform:"translateY(25%)"}))]),allowChildren:vt("allowChildren",[Ge("* <=> *",[Ru("@*",Au(),{optional:!0})])])},Yu=(()=>{let e=class e{constructor(){this.changes=new N}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function VV(t){return t||new Yu}var BV={provide:Yu,deps:[[new zr,new Oo,Yu]],useFactory:VV},QE=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(n){this._updateSortActionDescription(n)}constructor(n,i,o,s,a,c,l,d){this._intl=n,this._changeDetectorRef=i,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=c,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{let i=!!n;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(n){this._isDisabled()&&n||(this._showIndicatorHint=n,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(n){this._viewState=n||{},this._disableViewStateAnimation&&(this._viewState={toState:n.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(n){!this._isDisabled()&&(n.keyCode===32||n.keyCode===13)&&(n.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let n=this._viewState.fromState;return(n?`${n}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(n){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,n)),this._sortActionDescription=n}_handleStateChanges(){this._rerenderSubscription=at(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(p(Yu),p(Ae),p(Ja,8),p("MAT_SORT_HEADER_COLUMN_DEF",8),p(Kr),p($),p(Pd,8),p(YE,8))},e.\u0275cmp=R({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,o){i&1&&ce("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),i&2&&(Le("aria-sort",o._getAriaSortAttribute()),H("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",G],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",G]},exportAs:["matSortHeader"],standalone:!0,features:[ye,ge],attrs:FV,ngContentSelectors:PV,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,o){i&1&&(be(),v(0,"div",0)(1,"div",1),W(2),w(),T(3,LV,6,6,"div",2),w()),i&2&&(H("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),Le("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),h(3),b(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[_s.indicator,_s.leftPointer,_s.rightPointer,_s.arrowOpacity,_s.arrowPosition,_s.allowChildren]},changeDetection:0});let t=e;return t})(),ZE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[BV],imports:[Ye]});let t=e;return t})();function T_(t){t||(No(T_),t=g(vn));let e=new Z(r=>t.onDestroy(r.next.bind(r)));return r=>r.pipe(K(e))}function $V(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&No($V);let n=r?e?.injector?.get(vn)??g(vn):null,i;e?.requireSync?i=Xn({kind:0}):i=Xn({kind:1,value:e?.initialValue});let o=t.subscribe({next:s=>i.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;i.set({kind:2,error:s})}});return n?.onDestroy(o.unsubscribe.bind(o)),od(()=>{let s=i();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new V(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}var KE=(()=>{let e=class e{constructor(){this.showTable=!1,this.listDetailComponent=U0.required(f_),this._database=g(Cd),this._route=g(Pi),this.listDetail=g(ms),this.destroyRef=g(vn),this._route.queryParams.pipe(Je(1)).subscribe({next:n=>{this.selectedId=n.selectedId,this.onIdSelected&&this.selectedId&&this.onIdSelected(this.selectedId)}}),tr(()=>{this.listDetailComponent().drawer?._closedStream.pipe(T_(this.destroyRef)).subscribe({next:()=>{this.selectedEntity=void 0}})})}showDetails(n){this.selectedEntity=n,this.listDetail.open()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["ng-component"]],viewQuery:function(i,o){i&1&&pw(o.listDetailComponent,f_,5),i&2&&mw()},decls:0,vars:0,template:function(i,o){},encapsulation:2});let t=e;return t})();var dte=(()=>{let e=class e extends KE{constructor(){super(...arguments),this.reusedImages=[],this.selectedTabIndex=Xn(-1),this._router=g(Nn),this._title=g(bd)}updateUrl(n){typeof n!="string"&&this.selectedTabIndex.set(n.index);let i=typeof n=="string"?n:n.tab.textLabel,o=this.urlPathFromLabel?.(i)??i.toLowerCase().replaceAll(" ","");this._router.navigate(["..",o],{relativeTo:this._route}).then(()=>{this.updateTitle(i)})}activateTabFromRoute(n){this._route.paramMap.pipe(Je(1),Ie(i=>{let o=i.get("tabName");if(o){let s=n.map(a=>a.toLowerCase().replaceAll(" ","")).indexOf(o);this.selectedTabIndex.set(s),this.updateTitle(n[s])}else n[0]&&this.updateUrl(n[0])})).subscribe()}getMultipleIconNames(n){let i=n.filter((o,s)=>n.indexOf(o)!==s);return[...new Set(i)]}updateTitle(n){let i=this._title.getTitle();i&&this._title.setTitle(`${n} - ${i}`)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["ng-component"]],features:[ie],decls:0,vars:0,template:function(i,o){},encapsulation:2});let t=e;return t})();var UV=["innerTemplate"],zV=["*"];function GV(t,e){t&1&&W(0)}var XE=(()=>{let e=class e{constructor(){this.innerTemplate=null,this.active=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-module-sidebar-item"]],viewQuery:function(i,o){if(i&1&&Se(UV,5),i&2){let s;U(s=z())&&(o.innerTemplate=s.first)}},inputs:{uiIcon:"uiIcon",routerLink:"routerLink",exact:[2,"exact","exact",G],active:[2,"active","active",G]},features:[ye],ngContentSelectors:zV,decls:2,vars:0,consts:[["innerTemplate",""]],template:function(i,o){i&1&&(be(),T(0,GV,1,0,"ng-template",null,0,Jl))},encapsulation:2});let t=e;return t})();var qV=()=>[],WV=t=>({exact:t});function YV(t,e){if(t&1&&M(0,"app-ui-icon",2),t&2){let r=_(2).$implicit;D("uiIcon",r.uiIcon)}}function QV(t,e){}function ZV(t,e){if(t&1){let r=Ke();v(0,"li")(1,"a",1),ce("click",function(){he(r);let i=_(2);return pe(i.showMenu=!1)}),T(2,YV,1,1,"app-ui-icon",2)(3,QV,0,0,"ng-template",3),v(4,"button",4),ce("click",function(i){he(r);let o=_(2);return pe(o.toggleMenu(i))}),x(5,"Menu "),w()()()}if(t&2){let r=_(),n=r.$implicit,i=r.$index,o=r.$count;h(),H("custom-active",n.active)("mb-4",i!==o-1),D("routerLink",n.routerLink)("routerLinkActive","active")("routerLinkActiveOptions",ni(9,WV,!!n.exact)),h(),b(n.uiIcon?2:-1),h(),D("ngTemplateOutlet",n.innerTemplate)}}function KV(t,e){}function XV(t,e){if(t&1&&(v(0,"li",0),T(1,KV,0,0,"ng-template",3),w()),t&2){let r=_().$implicit;h(),D("ngTemplateOutlet",r.innerTemplate)}}function JV(t,e){if(t&1&&T(0,ZV,6,11,"li")(1,XV,2,1,"li",0),t&2){let r=e.$implicit;b(r.routerLink?0:-1),h(),b(r.routerLink?-1:1)}}var yte=(()=>{let e=class e{constructor(){this.showMenu=!1,this._setClass=!0}toggleMenu(n){n.preventDefault(),n.stopPropagation(),this.showMenu=!this.showMenu}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-module-sidebar"]],contentQueries:function(i,o,s){if(i&1&&Me(s,XE,4),i&2){let a;U(a=z())&&(o.viewChildren=a)}},hostVars:2,hostBindings:function(i,o){i&2&&H("app-module-sidebar",o._setClass)},decls:5,vars:3,consts:[[1,"module-sidebar-list-divider","mb-3","mt-9","text-xl","text-white/70","font-semibold"],[1,"app-module-sidebar-list-item",3,"click","routerLink","routerLinkActive","routerLinkActiveOptions"],[1,"!h-6",3,"uiIcon"],[3,"ngTemplateOutlet"],[1,"xl:hidden","block","ml-auto","m-[-18px]","border-l-2","px-5","h-[45px]",3,"click"]],template:function(i,o){if(i&1&&(v(0,"aside")(1,"nav")(2,"ul"),et(3,JV,2,2,null,null,it),w()()()),i&2){let s;h(2),H("hide-menu",!o.showMenu),h(),tt((s=o.viewChildren==null?null:o.viewChildren.toArray())!==null&&s!==void 0?s:Mi(2,qV))}},dependencies:[ud,ci,ED,li],styles:[`.app-module-sidebar{overflow:auto;display:block;padding-top:.5rem;padding-bottom:.5rem;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}@media (min-width: 1280px){.app-module-sidebar{height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}}.app-module-sidebar{background-color:#000000bf;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.app-module-sidebar .hide-menu .app-module-sidebar-list-item:not(.active):not(.custom-active),.app-module-sidebar .hide-menu .module-sidebar-list-divider{display:none}.app-module-sidebar{scrollbar-width:thin;scrollbar-color:#a1a1a1 #000000}.app-module-sidebar::-webkit-scrollbar{width:18px}.app-module-sidebar::-webkit-scrollbar-track{background:#000}.app-module-sidebar::-webkit-scrollbar-thumb{background-color:#a1a1a1;border-radius:10px;border:3px solid #000000}@media (min-width: 1280px){.module-sidebar-list-divider{display:block!important}}@media (min-width: 1536px){.app-module-sidebar{padding:60px 40px 60px 60px}}.app-module-sidebar-list-item{padding:8px;border-radius:30px;height:46px;border:3px solid #191919;display:flex;align-items:center;justify-content:center;column-gap:.5rem;--tw-border-opacity: 1;border-color:rgb(115 115 115 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.app-module-sidebar-list-item:hover{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.app-module-sidebar-list-item:hover .app-ui-icon{color:#645a54}.app-module-sidebar-list-item .app-ui-icon{color:#3f3834}.app-module-sidebar-list-item.active,.app-module-sidebar-list-item.custom-active{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.app-module-sidebar-list-item.active .app-ui-icon,.app-module-sidebar-list-item.custom-active .app-ui-icon{color:#e4b07e}.app-module-sidebar-list-item:not(.active):not(.custom-active) button{display:none}@media (min-width: 1280px){.app-module-sidebar-list-item{display:flex!important;height:50px}} +`],encapsulation:2});let t=e;return t})();var vr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-money"]],inputs:{amount:[2,"amount","amount",Nt]},features:[ye],decls:3,vars:3,consts:[["src","assets/ui/images/icons/T_IconCoin.png",1,"app-money-icon"]],template:function(i,o){i&1&&(x(0),lt(1,"number"),M(2,"img",0)),i&2&&ke(gt(1,1,o.amount))},dependencies:[fd],styles:["[_nghost-%COMP%]{white-space:nowrap}.app-money-icon[_ngcontent-%COMP%]{height:1em;display:inline-block;vertical-align:text-top;margin-left:2px}"]});let t=e;return t})();function eB(t,e){if(t&1&&M(0,"app-money",1)(1,"app-money",1)(2,"app-money",1)(3,"app-money",1)(4,"app-money",1),t&2){let r,n,i,o,s=_(2);D("amount",s.item().sellPrice),h(),D("amount",(r=s.item().qualities.bronze)==null?null:r.sellPrice),h(),D("amount",(n=s.item().qualities.silver)==null?null:n.sellPrice),h(),D("amount",(i=s.item().qualities.gold)==null?null:i.sellPrice),h(),D("amount",(o=s.item().qualities.osmium)==null?null:o.sellPrice)}}function tB(t,e){if(t&1&&(M(0,"app-item-icon",0)(1,"app-item-icon",0)(2,"app-item-icon",0)(3,"app-item-icon",0)(4,"app-item-icon",0),T(5,eB,5,5)),t&2){let r=_();D("itemName",r.item().iconName)("quality",r.QUALITY.BASE),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.BRONZE),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.SILVER),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.GOLD),h(),D("itemName",r.item().iconName)("quality",r.QUALITY.OSMIUM),h(),b(r.includePrices()?5:-1)}}function nB(t,e){if(t&1&&M(0,"app-money",1),t&2){let r=_(2);D("amount",r.item().sellPrice)}}function iB(t,e){if(t&1&&(M(0,"app-item-icon",0),T(1,nB,1,1,"app-money",1)),t&2){let r=_();D("itemName",r.item().iconName)("quality",r.QUALITY.BASE),h(),b(r.includePrices()?1:-1)}}var JE=(()=>{let e=class e{constructor(){this.QUALITY=Rt,this.item=He.required(),this.includePrices=He(!1,{transform:G}),this.showOnlyBase=He(!1,{transform:G})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-quality-grid"]],hostAttrs:[1,"app-quality-grid"],hostVars:2,hostBindings:function(i,o){i&2&&H("!grid-cols-1",o.showOnlyBase())},inputs:{item:[1,"item"],includePrices:[1,"includePrices"],showOnlyBase:[1,"showOnlyBase"]},decls:2,vars:2,consts:[[3,"itemName","quality"],[1,"text-black",3,"amount"]],template:function(i,o){i&1&&T(0,tB,6,11)(1,iB,2,3),i&2&&(b(o.showOnlyBase()?-1:0),h(),b(o.showOnlyBase()?1:-1))},dependencies:[dt,vr],styles:[`.app-quality-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:center;column-gap:.75rem}.app-quality-grid .app-item-icon{background:#7f7f7f4d;border-radius:16px;padding:3px} +`],encapsulation:2});let t=e;return t})();function oB(t,e){if(t&1&&(v(0,"div",2),M(1,"app-item-icon",3),v(2,"span"),x(3),w()()),t&2){let r=_(2).$implicit;h(),D("itemName",r.item.iconName),h(2),ke(r.item.displayName)}}function sB(t,e){if(t&1&&T(0,oB,4,2,"div",2),t&2){let r=_().$implicit;b(r.item?0:-1)}}function aB(t,e){t&1&&x(0," (all the same) ")}function cB(t,e){if(t&1&&(v(0,"div",2),M(1,"app-item-icon",4),v(2,"span"),x(3),T(4,aB,1,0),w()()),t&2){let r=_(2).$implicit;h(),D("itemName",r.genericItem.iconName),h(2),Y("",r.genericItem.displayName," "),h(),b(r.shouldBeSameItem?4:-1)}}function lB(t,e){if(t&1&&T(0,cB,5,3,"div",2),t&2){let r=_().$implicit;b(r.genericItem?0:-1)}}function dB(t,e){if(t&1&&(v(0,"div",0),T(1,sB,1,1)(2,lB,1,1),v(3,"div",1),x(4),w()(),M(5,"hr")),t&2){let r=e.$implicit,n=_();h(),b(n.isGenericEntry(r)?-1:1),h(),b(n.isGenericEntry(r)?2:-1),h(2),ke(r.amount)}}var Zu=(()=>{let e=class e{constructor(){this.itemList=He.required()}isGenericEntry(n){return"genericItem"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-item-list"]],inputs:{itemList:[1,"itemList"]},decls:2,vars:0,consts:[[1,"flex","justify-between","py-1"],[1,"flex","items-center"],[1,"flex","gap-x-3","items-center"],[1,"size-10",3,"itemName"],[1,"w-10",3,"itemName"]],template:function(i,o){i&1&&et(0,dB,6,3,null,null,it),i&2&&tt(o.itemList())},dependencies:[dt]});let t=e;return t})();var eI=(()=>{let e=class e{transform(n){return!!n&&"id"in n&&"displayName"in n&&"price"in n&&"sellPrice"in n&&n.id.toLowerCase().startsWith("item_")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isItem",type:e,pure:!0});let t=e;return t})();var tI=(()=>{let e=class e{transform(n,i){return i in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"has",type:e,pure:!0});let t=e;return t})();var nI=(()=>{let e=class e{transform(n){return!!n&&"key"in n&&"displayName"in n&&"iconName"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isMinimalTagBasedItem",type:e,pure:!0});let t=e;return t})();var iI=(()=>{let e=class e extends nI{transform(n){return super.transform(n)&&"items"in n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275pipe=ae({name:"isTagBasedItem",type:e,pure:!0});let t=e;return t})();var rI=(()=>{let e=class e{transform(n){return n.map(i=>({item:i,amount:1}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"toItemListEntries",type:e,pure:!0});let t=e;return t})();var gB=["*"],_B=t=>["/database",t];function vB(t,e){if(t&1&&(v(0,"span",9),x(1),lt(2,"addSpacesToPascalCase"),w()),t&2){let r=_();h(),ke(gt(2,1,r.displayKey))}}function yB(t,e){if(t&1&&(v(0,"span",10)(1,"a",14),M(2,"app-ui-icon",15),w()()),t&2){let r=_(),n=_();h(),D("routerLink",ni(2,_B,r.id)),h(),D("uiIcon",n.uiIcon.DATABASE)}}function bB(t,e){if(t&1&&(v(0,"span",12),x(1),w()),t&2){let r=_();h(),ke(r.description)}}function wB(t,e){if(t&1&&(M(0,"app-item-list",13),lt(1,"toItemListEntries")),t&2){let r=_();D("itemList",gt(1,1,r.items))}}function CB(t,e){if(t&1&&M(0,"app-quality-grid",16),t&2){let r=_(2);D("item",r)}}function xB(t,e){if(t&1&&M(0,"app-money",18),t&2){let r=_(3);D("amount",r.sellPrice)}}function DB(t,e){if(t&1&&(v(0,"div",17),x(1," Sells for: "),T(2,xB,1,1,"app-money",18),lt(3,"has"),w()),t&2){let r=_(2);h(2),b(r&&Cw(3,1,r,"sellPrice")?2:-1)}}function EB(t,e){if(t&1&&(T(0,CB,1,1,"app-quality-grid",16),lt(1,"isItem"),lt(2,"keyvalue"),T(3,DB,4,4,"div",17)),t&2){let r=_(),n=_();b(gt(1,1,r)&>(2,3,r.qualities).length&&!n.hideQualityGrid()?0:3)}}function IB(t,e){if(t&1){let r=Ke();v(0,"app-card",0)(1,"div",1),M(2,"app-to-do-toggle",2),v(3,"button",3),ce("click",function(){he(r);let i=_();return pe(i.listDetails.close())}),M(4,"app-ui-icon",4),w()(),M(5,"app-item-icon",5),v(6,"div",6)(7,"div",7)(8,"div",8),x(9),w(),T(10,vB,3,3,"span",9),lt(11,"isTagBasedItem"),w(),T(12,yB,3,4,"span",10),lt(13,"isTagBasedItem"),w(),M(14,"hr",11),T(15,bB,2,1,"span",12),lt(16,"isTagBasedItem"),W(17),T(18,wB,2,3,"app-item-list",13),lt(19,"isTagBasedItem"),T(20,EB,4,5),lt(21,"isTagBasedItem"),w()}if(t&2){let r=e,n=_();h(2),D("amount",n.amount())("quality",n.quality())("item",n.item())("context",n.context()),h(2),D("uiIcon",n.uiIcon.CROSS),h(),Up("itemName",r.iconName),D("amount",n.amount()),h(4),ke(r.displayName),h(),b(gt(11,13,r)?-1:10),h(2),b(gt(13,15,r)?-1:12),h(3),b(gt(16,17,r)?-1:15),h(3),b(gt(19,19,r)?18:-1),h(2),b(gt(21,21,r)?-1:20)}}var jte=(()=>{var e;let r=class r{constructor(){tn(this,e);this.item=He.required(),this.context=He(),this.amount=He(),this.quality=He(),this.hideQualityGrid=He(!1,{transform:G}),this.uiIcon=fe,this.UiIcon=fe,this.listDetails=g(ms),yr(this,e,g(Cd)),this.computedItem=od(()=>{let i=this.item();if(this.isItem(i))return i;{let o=yt(this,e).getItems().find(s=>s.id===an(i));if(o)return o;if(this.isCustomEntry(i))return i;if(this.isTagBasedItem(i))return yt(this,e).getTagBasedItems().find(s=>s.key===an(i));console.error(`couldn't find ${an(i)} in base-card`);return}})}isTagBasedItem(i){return"key"in i}isCustomEntry(i){return"id"in i&&!i.id.toLowerCase().startsWith("item_")}isItem(i){return"sellPrice"in i&&"price"in i&&"description"in i&&i.id.toLowerCase().startsWith("item_")}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=R({type:r,selectors:[["app-base-item-card"]],inputs:{item:[1,"item"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"],hideQualityGrid:[1,"hideQualityGrid"]},ngContentSelectors:gB,decls:1,vars:1,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],[3,"amount","quality","item","context"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["cardIcon","",3,"amount","itemName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"text-accent","text-2xl"],["matTooltip","Open in database","matTooltipPosition","before"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"mt-6",3,"itemList"],[3,"routerLink"],[1,"focus-visible:!text-black","hover:!text-black",3,"uiIcon"],["includePrices","",1,"mt-6",3,"item"],[1,"flex"],[1,"ml-2","text-black",3,"amount"]],template:function(o,s){if(o&1&&(be(),T(0,IB,22,23,"app-card",0)),o&2){let a;b((a=s.computedItem())?0:-1,a)}},dependencies:[ci,ku,XD,li,dt,AD,JE,vr,Zu,Qw,JD,eI,tI,iI,rI],encapsulation:2});let t=r;return t})();var Hte=(()=>{let e=class e{transform(n){return Math.max(...n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"max",type:e,pure:!0});let t=e;return t})();var oI={transformMenu:vt("transformMenu",[Qe("void",_e({opacity:0,transform:"scale(0.8)"})),Ge("void => enter",Xe("120ms cubic-bezier(0, 0, 0.2, 1)",_e({opacity:1,transform:"scale(1)"}))),Ge("* => void",Xe("100ms 25ms linear",_e({opacity:0})))]),fadeInItems:vt("fadeInItems",[Qe("showing",_e({opacity:1})),Ge("void => *",[_e({opacity:0}),Xe("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cne=oI.fadeInItems,lne=oI.transformMenu;var SB=new E("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=g($t);return()=>t.scrollStrategies.reposition()}});function TB(t){return()=>t.scrollStrategies.reposition()}var MB={provide:SB,deps:[$t],useFactory:TB};var sI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[MB],imports:[Jt,Zm,Ye,ps,Fn,Ye]});let t=e;return t})();var AB=[[["app-module-sidebar"]],"*"],RB=["app-module-sidebar","*"],fne=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-sidebar-container"]],ngContentSelectors:RB,decls:4,vars:0,consts:[[1,"h-full","grid","module-grid"],[1,"px-safe","xl:h-main","scrollbar-w-thin","xl:overflow-auto"]],template:function(i,o){i&1&&(be(AB),v(0,"div",0),W(1),v(2,"div",1),W(3,1),w()())},styles:[`.module-grid{grid-template-columns:1fr;grid-auto-rows:min-content}.module-grid .app-module-sidebar{width:100%}@media (min-width: 1280px){.module-grid .app-module-sidebar{width:300px}}@media (min-width: 1536px){.module-grid .app-module-sidebar{width:400px}}@media (min-width: 1280px){.module-grid{grid-template-columns:300px calc(100% - 300px);grid-auto-rows:auto}.app-module-sidebar{min-height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}}@media (min-width: 1536px){.module-grid{grid-template-columns:400px calc(100% - 400px)}} +`],encapsulation:2});let t=e;return t})();var aI=(()=>{let e=class e{constructor(){this.minimalItem=He.required(),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-inline-minimal-item"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-inline-minimal-item",o._setClass)},inputs:{minimalItem:[1,"minimalItem"]},decls:2,vars:2,consts:[[3,"itemName"]],template:function(i,o){i&1&&(M(0,"app-item-icon",0),x(1)),i&2&&(D("itemName",o.minimalItem().iconName),h(),Y(" ",o.minimalItem().displayName,` +`))},dependencies:[dt],styles:[`.app-inline-minimal-item{display:inline-flex;column-gap:3px}.app-inline-minimal-item .app-item-icon img{height:1.4em;width:auto;display:inline-block;vertical-align:text-bottom;margin:-2px 2px -2px 0} +`],encapsulation:2});let t=e;return t})();var OB=["*"],cI=(()=>{let e=class e{constructor(){this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-responsive-table"]],hostVars:2,hostBindings:function(i,o){i&2&&H("app-responsive-table",o._setClass)},ngContentSelectors:OB,decls:1,vars:0,template:function(i,o){i&1&&(be(),W(0))},styles:[`.app-responsive-table{display:block;table-layout:fixed;overflow:auto;max-height:100vh;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity));background:#f7f2e8;border-radius:5px}@media (pointer: coarse){.app-responsive-table{max-width:calc(100% - 24px)}}.app-responsive-table table{width:100%}.app-responsive-table tr:nth-child(odd) td{background:#fcfbf8}.app-responsive-table tr:nth-child(2n) td{background:#fcfbf8}.app-responsive-table .can-expand tr:nth-child(4n+1) td,.app-responsive-table .can-expand tr:nth-child(4n+2) td{background:#fcfbf8}.app-responsive-table .can-expand tr:nth-child(4n+3) td,.app-responsive-table .can-expand tr:nth-child(4n+4) td{background:#f7f2e8}.app-responsive-table .app-item-icon{width:40px}.app-responsive-table th{background:#f7f2e8!important}.app-responsive-table th.mat-header-cell,.app-responsive-table td.mat-cell,.app-responsive-table td.mat-footer-cell{padding-right:16px}.app-responsive-table .icon-col,.app-responsive-table .text-col,.app-responsive-table .list-col{vertical-align:top}.app-responsive-table .icon-col{padding-top:6px}.app-responsive-table .text-col{padding-top:14px}.app-responsive-table .list-col{padding-top:12px}@media (min-width: 640px){.app-responsive-table{max-height:unset}}@media (min-width: 1024px){.app-responsive-table{margin-left:0;max-width:100%}} +`],encapsulation:2});let t=e;return t})();var vne=(()=>{let e=class e{transform(n){return"pickupableItem"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isCrop",type:e,pure:!0});let t=e;return t})();function FB(t,e){if(t&1&&x(0),t&2){let r=_(2);Dt(" ",r.processingTime.day," day",r.processingTime.day>1?"s":""," ")}}function PB(t,e){if(t&1&&x(0),t&2){let r=_(2);Dt(" ",r.processingTime.time.hours," hour",r.processingTime.time.hours>1?"s":""," ")}}function LB(t,e){if(t&1&&x(0),t&2){let r=_(2);Dt(" ",r.processingTime.time.minutes," minute",r.processingTime.time.minutes>1?"s":""," ")}}function jB(t,e){t&1&&x(0," instant ")}function VB(t,e){if(t&1&&T(0,FB,1,2)(1,PB,1,2)(2,LB,1,2)(3,jB,1,0),t&2){let r=_();b(r.processingTime.day?0:-1),h(),b(r.processingTime.time.hours?1:-1),h(),b(r.processingTime.time.minutes?2:-1),h(),b(r.processingTime.day===0&&r.processingTime.time.hours===0&&r.processingTime.time.minutes===0?3:-1)}}var Ku=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-processing-time"]],inputs:{processingTime:"processingTime"},decls:1,vars:1,template:function(i,o){i&1&&T(0,VB,4,4),i&2&&b(o.processingTime?0:-1)},encapsulation:2});let t=e;return t})();function BB(t,e){if(t&1&&M(0,"app-rarity-icon",1),t&2){let r=_().$implicit;D("quality",r.from)}}function HB(t,e){if(t&1&&M(0,"app-ui-icon",2),t&2){let r=_(3);D("uiIcon",r.uiIcon.EMPTY_STAR)}}function $B(t,e){if(t&1&&(T(0,BB,1,1,"app-rarity-icon",1)(1,HB,1,1,"app-ui-icon",2),M(2,"app-ui-icon",3)(3,"app-rarity-icon",4),v(4,"div",5)(5,"span",6),M(6,"app-processing-time",7),w()()),t&2){let r=e.$implicit,n=_(2);b(r.from!==n.quality.BASE?0:-1),h(),b(r.from===n.quality.BASE?1:-1),h(),D("uiIcon",n.uiIcon.ARROW_RIGHT),h(),D("quality",r.to),h(3),D("processingTime",r)}}function UB(t,e){if(t&1&&(v(0,"div",0),et(1,$B,7,5,null,null,it),w()),t&2){let r=_();h(),tt(r.refinements)}}var wne=(()=>{let e=class e{constructor(){this.quality=Rt,this.uiIcon=fe}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-refinements-list"]],inputs:{refinements:"refinements"},decls:1,vars:1,consts:[[1,"refinement-list"],[1,"size-6",3,"quality"],[1,"!size-6","!flex",3,"uiIcon"],[1,"!size-4","!flex","my-1","mx-2",3,"uiIcon"],[1,"w-6",3,"quality"],[1,"text-right"],[1,"text-black"],[3,"processingTime"]],template:function(i,o){i&1&&T(0,UB,3,0,"div",0),i&2&&b(o.refinements?0:-1)},dependencies:[li,mr,Ku],styles:["[_nghost-%COMP%]{display:block}.refinement-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:max-content max-content max-content 1fr}"]});let t=e;return t})();function zB(t,e){if(t&1&&(M(0,"app-ui-icon",0),v(1,"span",1),M(2,"app-processing-time",2),w()),t&2){let r=_(2);D("uiIcon",r.uiIcon.EMPTY_STAR),h(2),D("processingTime",r.baseProcessingTime)}}function GB(t,e){if(t&1&&(M(0,"app-rarity-icon",3),v(1,"span",1),M(2,"app-processing-time",2),w()),t&2){let r=_().$implicit,n=_();D("quality",r),h(2),D("processingTime",n.baseProcessingTime)}}function qB(t,e){if(t&1&&(M(0,"app-rarity-icon",3),v(1,"span",1),M(2,"app-processing-time",2),w()),t&2){let r=_().$implicit;D("quality",r),h(2),D("processingTime",e)}}function WB(t,e){if(t&1&&T(0,zB,3,2)(1,GB,3,2)(2,qB,3,2),t&2){let r,n=e.$implicit,i=_();b(n===i.quality.BASE&&i.baseProcessingTime?0:-1),h(),b(n!==i.quality.BASE&&i.baseProcessingTime&&!(i.processingTimePerQualities!=null&&i.processingTimePerQualities[n])?1:-1),h(),b((r=i.processingTimePerQualities==null?null:i.processingTimePerQualities[n])?2:-1,r)}}var Ine=(()=>{let e=class e{constructor(){this.qualityValues=Object.values(Rt),this.quality=Rt,this.uiIcon=fe}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-processing-time-per-quality"]],inputs:{baseProcessingTime:"baseProcessingTime",processingTimePerQualities:"processingTimePerQualities"},decls:2,vars:0,consts:[[1,"!w-6","!h-6","!flex",3,"uiIcon"],[1,"text-black","text-right"],[3,"processingTime"],[1,"!w-6","!h-6",3,"quality"]],template:function(i,o){i&1&&et(0,WB,3,3,null,null,it),i&2&&tt(o.qualityValues)},dependencies:[li,mr,Ku],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}"]});let t=e;return t})();function YB(t,e){if(t&1&&M(0,"app-rarity-icon",5),t&2){let r=_(3).$implicit;D("quality",r.quality)}}function QB(t,e){if(t&1&&(v(0,"div",2),M(1,"app-item-icon",3),v(2,"span",4),x(3),w(),T(4,YB,1,1,"app-rarity-icon",5),w()),t&2){let r=_(2).$implicit;h(),D("itemName",r.item.iconName),h(2),ke(r.item.displayName),h(),b(r.quality?4:-1)}}function ZB(t,e){if(t&1&&T(0,QB,5,3,"div",2),t&2){let r=_().$implicit;b(r.item?0:-1)}}function KB(t,e){t&1&&x(0," (all the same) ")}function XB(t,e){if(t&1&&(v(0,"div",6),M(1,"app-item-icon",3),v(2,"span",7),x(3),T(4,KB,1,0),w()()),t&2){let r=_(2).$implicit;h(),D("itemName",r.genericItem.iconName),h(2),Y("",r.genericItem.displayName," "),h(),b(r.shouldBeSameItem?4:-1)}}function JB(t,e){if(t&1&&T(0,XB,5,3,"div",6),t&2){let r=_().$implicit;b(r.genericItem?0:-1)}}function eH(t,e){if(t&1&&(v(0,"div",0),T(1,ZB,1,1)(2,JB,1,1),v(3,"div",1),x(4),w()()),t&2){let r=e.$implicit,n=_();h(),b(n.isGenericEntry(r)?-1:1),h(),b(n.isGenericEntry(r)?2:-1),h(2),ke(r.amount)}}var Mne=(()=>{let e=class e extends Zu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["app-table-item-list"]],features:[ie],decls:2,vars:0,consts:[[1,"flex","justify-between","mb-1"],[1,"ml-2","flex","items-center"],[1,"flex","gap-2","items-center"],[1,"!size-7",3,"itemName"],[1,"ml-1","whitespace-nowrap"],[1,"!size-4",3,"quality"],[1,"flex","gap-x-3","items-center"],[1,"whitespace-nowrap"]],template:function(i,o){i&1&&et(0,eH,5,3,"div",0,it),i&2&&tt(o.itemList())},dependencies:[dt,mr]});let t=e;return t})();var Rne=(()=>{let e=class e{transform(n){return[...n.ingredients,...n.genericIngredients]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"craftingRecipeIngredients",type:e,pure:!0});let t=e;return t})();var One=(()=>{let e=class e{transform(n){let i=[...n.ingredients];return n.genericIngredients.length&&n.genericIngredients.forEach(o=>{let s={shouldBeSameItem:!1,amount:o.amount,genericItem:o.genericItem};i.push(s)}),i}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"cookingRecipeIngredients",type:e,pure:!0});let t=e;return t})();var Fne=(()=>{let e=class e{transform(n){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"castToMinimalItemArray",type:e,pure:!0});let t=e;return t})();var Lne=(()=>{let e=class e{transform(n){let i=[n.input,...n.additionalInput];if(n.genericInput){let o=ue(S({},n.genericInput),{shouldBeSameItem:!0});i.push(o)}return i}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"itemProcessingIngredients",type:e,pure:!0});let t=e;return t})();var dI=(()=>{let e=class e{constructor(){this.displayedColumns=[],this.displayHeaderColumns=[],this._dataSource=[],this.sortingDataAccessor=this.sortingDataAccessor?.bind(this),this.sortHelper=this.sortHelper.bind(this)}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource=n}ngAfterViewInit(){this.matDataSource&&this.sort&&(this.matDataSource.sort=this.sort,this.sortingDataAccessor&&(this.matDataSource.sortingDataAccessor=this.sortingDataAccessor))}ngOnChanges(n){let i=n.dataSource.currentValue;i&&this.setupDataSource(i)}ngOnInit(){this.setupDataSource(this.dataSource)}setupDataSource(n){this.matDataSource=new Wu(n),this.displayedColumns=[...this.BASE_DISPLAY_COLUMNS],this.displayHeaderColumns=this.displayedColumns.filter(i=>i!=="icon")}sortHelper(n,i){if(!n)return null;if(Array.isArray(n))return n.includes("Spring")?1:n.includes("Summer")?2:n.includes("Fall")?3:n.includes("Fall")?4:5;switch(i){case"outputName":case"displayName":return n.displayName;case"sellPrice":return n.sellPrice??-1;default:return null}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["ng-component"]],viewQuery:function(i,o){if(i&1&&Se(Ja,5),i&2){let s;U(s=z())&&(o.sort=s.first)}},inputs:{dataSource:"dataSource"},features:[Be],decls:0,vars:0,template:function(i,o){},encapsulation:2});let t=e;return t})();function tH(t,e){if(t&1&&(v(0,"td",11),M(1,"app-item-icon",12),w()),t&2){let r=e.$implicit;h(),D("itemName",r.iconName)}}function nH(t,e){t&1&&(v(0,"th",13),x(1," Output "),w()),t&2&&Le("colspan",2)}function iH(t,e){if(t&1&&(v(0,"td",14),x(1),w()),t&2){let r=e.$implicit;h(),Y("",r.displayName," ")}}function rH(t,e){t&1&&(v(0,"th",15),x(1," Sell price"),w())}function oH(t,e){if(t&1&&(v(0,"td",16),M(1,"app-money",17),w()),t&2){let r=e.$implicit;h(),D("amount",r.sellPrice)}}function sH(t,e){t&1&&M(0,"tr",18)}function aH(t,e){t&1&&M(0,"tr",19)}function cH(t,e){if(t&1&&(v(0,"table",0),ei(1,1),T(2,tH,2,1,"td",2),ti(),ei(3,3),T(4,nH,2,1,"th",4)(5,iH,2,1,"td",5),ti(),ei(6,6),T(7,rH,2,0,"th",7)(8,oH,2,1,"td",8),ti(),T(9,sH,1,0,"tr",9)(10,aH,1,0,"tr",10),w()),t&2){let r=_();D("dataSource",r.matDataSource),h(9),D("matHeaderRowDef",r.displayHeaderColumns)("matHeaderRowDefSticky",!0),h(),D("matRowDefColumns",r.displayedColumns)}}var zne=(()=>{let e=class e extends dI{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","sellPrice"],this.sortingDataAccessor=(n,i)=>this.sortHelper(n,i)??0}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Re(e)))(o||e)}})(),e.\u0275cmp=R({type:e,selectors:[["app-non-specialized-table"]],features:[ie],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(i,o){i&1&&(v(0,"app-responsive-table"),T(1,cH,11,4,"table",0),w()),i&2&&(h(),b(o.matDataSource?1:-1))},dependencies:[FE,LE,HE,jE,PE,$E,VE,BE,UE,zE,Ja,QE,dt,vr,cI],encapsulation:2});let t=e;return t})();var qne=(()=>{let e=class e{transform(n){return"dropData"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isBaseCrop",type:e,pure:!0});let t=e;return t})();var Yne=(()=>{let e=class e{transform(n){return"fishName"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isFish",type:e,pure:!0});let t=e;return t})();var uI=(()=>{let e=class e{transform(n){return`${n.day} ${n.season}`+(n.year<0?"":`, Year ${n.year}`)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"ingameDate",type:e,pure:!0});let t=e;return t})();var Zne=(()=>{let e=class e{transform(n){return`${n.hours.toString().padStart(2,"0")}:${n.minutes.toString().padStart(2,"0")}`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"ingameTime",type:e,pure:!0});let t=e;return t})();var Xne=(()=>{let e=class e{transform(n){return["F","E","D","C","B","A","S","SS"][n]??"unknown"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"townrank",type:e,pure:!0});let t=e;return t})();var eie=(()=>{let e=class e{transform(n){return!!n&&"id"in n&&"displayName"in n&&"iconName"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"isMinimalItem",type:e,pure:!0});let t=e;return t})();var cie=(()=>{let e=class e{constructor(){this.portraitName=He.required(),this.npcKey=He.required(),this.environment=g(en).getSettings().useBeta?"beta":"live",this.version=g(Li),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-npc-portrait"]],hostVars:2,hostBindings:function(i,o){i&2&&H("npc-portrait",o._setClass)},inputs:{portraitName:[1,"portraitName"],npcKey:[1,"npcKey"]},decls:1,vars:5,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/placeholder.png'",3,"src"]],template:function(i,o){i&1&&M(0,"img",0),i&2&&Zs("src","assets/",o.environment,"/portraits/",o.npcKey(),"/thumbs/",o.portraitName(),".webp?v=",o.version,"",Ti)},encapsulation:2});let t=e;return t})();var gie=(()=>{let e=class e{constructor(){this.portraitName=He.required(),this.npcKey=He.required(),this.environment=g(en).getSettings().useBeta?"beta":"live",this.version=g(Li),this._setClass=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-npc-head-portrait"]],hostVars:2,hostBindings:function(i,o){i&2&&H("npc-head-portrait",o._setClass)},inputs:{portraitName:[1,"portraitName"],npcKey:[1,"npcKey"]},decls:1,vars:5,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/no-head-portrait.webp'",3,"src"]],template:function(i,o){i&1&&M(0,"img",0),i&2&&Zs("src","assets/",o.environment,"/head-portraits/",o.npcKey(),"/",o.portraitName(),".webp?v=",o.version,"",Ti)},encapsulation:2});let t=e;return t})();var dH=t=>({selectedId:t}),uH=()=>["/journal","notes","letters"];function fH(t,e){t&1&&x(0,` Increases max stamina +`)}function hH(t,e){t&1&&x(0,` Increases max health +`)}function pH(t,e){if(t&1&&(x(0),M(1,"app-item-icon",0),x(2)),t&2){let r,n=_();Y(" Adds ",((r=n.effect.meta.quantity)!==null&&r!==void 0?r:1)>1?n.effect.meta.quantity+"x ":""," "),h(),D("itemName",n.effect.meta.item.iconName),h(),Y(" ",n.effect.meta.item.displayName," to inventory ")}}function mH(t,e){if(t&1&&(v(0,"div"),x(1," Unlocks "),M(2,"app-item-icon",1),x(3),w()),t&2){let r=_();h(2),D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," crafting recipe ")}}function gH(t,e){if(t&1&&(v(0,"div"),x(1," Unlocks "),M(2,"app-item-icon",1),x(3),w()),t&2){let r=_();h(2),D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," cooking recipe ")}}function _H(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Unlocks ",r.effect.meta.utensil," utensil ")}}function vH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Sets quests fact '",r.effect.meta.factName,"' ")}}function yH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Unlocks 1 skill point for ",r.effect.meta.mastery," mastery ")}}function bH(t,e){if(t&1&&(v(0,"div"),x(1," Adds "),M(2,"app-money",2),w()),t&2){let r=_();h(2),D("amount",r.effect.meta.amount)}}function wH(t,e){if(t&1&&(M(0,"app-item-icon",1),x(1)),t&2){let r=_(2);D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," ")}}function CH(t,e){if(t&1&&x(0),t&2){let r=_(2);Y(" items of category ",r.effect.meta.category," ")}}function xH(t,e){if(t&1&&(v(0,"div"),x(1),T(2,wH,2,2)(3,CH,1,1),w()),t&2){let r=_();h(),Y(" Removes ",r.effect.meta.amount,"x "),h(),b(r.hasMinimalItem(r.effect.meta)?2:-1),h(),b(r.hasMinimalItem(r.effect.meta)?-1:3)}}function DH(t,e){if(t&1&&(x(0," Sends mail '"),v(1,"a",3),x(2),w(),x(3)),t&2){let r=_();h(),D("queryParams",ni(4,dH,r.effect.meta.mail.mailId))("routerLink",Mi(6,uH)),h(),ke(r.effect.meta.mail.title),h(),Y("' ",r.effect.meta.dayDelay>0?" after "+r.effect.meta.dayDelay+" day(s)":""," ")}}function EH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Activates quest '",r.effect.meta.questId,"' ")}}function IH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Completes quest '",r.effect.meta.questId,"' ")}}function SH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Updates schedules of NPCs: '",r.effect.meta.npcIds.join(", "),"' ")}}function TH(t,e){if(t&1&&x(0),t&2){let r,n=_();Dt(" Sets state of '",(r=n.effect.meta.customName)!==null&&r!==void 0?r:n.effect.meta.id,"' to '",n.effect.meta.state,"' ")}}function MH(t,e){if(t&1&&(v(0,"div"),x(1," Unlocks special item "),M(2,"app-item-icon",4),x(3),w()),t&2){let r=_();h(2),D("itemName",r.effect.meta.item.iconName),h(),Y(" ",r.effect.meta.item.displayName," ")}}var vie=(()=>{let e=class e{hasMinimalItem(n){return"item"in n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-effect"]],inputs:{effect:"effect"},decls:16,vars:16,consts:[[1,"!w-7","-my-1","translate-y-1","!inline-block",3,"itemName"],[1,"!w-7","ml-1","-my-1","translate-y-1","!inline-block",3,"itemName"],[1,"!w-7","-my-1","translate-y-1","ml-1","!inline-block",3,"amount"],[1,"underline",3,"queryParams","routerLink"],[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"]],template:function(i,o){i&1&&T(0,fH,1,0)(1,hH,1,0)(2,pH,3,3)(3,mH,4,2,"div")(4,gH,4,2,"div")(5,_H,1,1)(6,vH,1,1)(7,yH,1,1)(8,bH,3,1,"div")(9,xH,4,3,"div")(10,DH,4,7)(11,EH,1,1)(12,IH,1,1)(13,SH,1,1)(14,TH,1,2)(15,MH,4,2,"div"),i&2&&(b(o.effect.type==="BoostMaxStamina"?0:-1),h(),b(o.effect.type==="BoostMaxHealth"?1:-1),h(),b(o.effect.type==="AddItemToInventory"?2:-1),h(),b(o.effect.type==="UnlockCraftingRecipe"?3:-1),h(),b(o.effect.type==="UnlockCookingRecipe"?4:-1),h(),b(o.effect.type==="UnlockCookingUtensil"?5:-1),h(),b(o.effect.type==="SetQuestFactValue"?6:-1),h(),b(o.effect.type==="ConsumeItemMastery"?7:-1),h(),b(o.effect.type==="VaryMoney"?8:-1),h(),b(o.effect.type==="RemoveItemFromInventory"?9:-1),h(),b(o.effect.type==="SendMailToPlayer"?10:-1),h(),b(o.effect.type==="SetQuestActive"?11:-1),h(),b(o.effect.type==="SetQuestCompleted"?12:-1),h(),b(o.effect.type==="UpdateNpcSchedule"?13:-1),h(),b(o.effect.type==="ChangeObjectState"?14:-1),h(),b(o.effect.type==="UnlockSpecialItem"?15:-1))},dependencies:[ci,dt,vr],encapsulation:2});let t=e;return t})();var AH=(t,e)=>e.id,RH=t=>({selectedId:t}),kH=()=>["/journal","notes","letters"];function OH(t,e){if(t&1&&(v(0,"div"),x(1," Achievement "),M(2,"app-item-icon",0),x(3),w()),t&2){let r=_();h(2),D("itemName",r.requirement.meta.achievement.iconName),h(),Y(" ",r.requirement.meta.achievement.title," unlocked ")}}function NH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Mount ",r.requirement.meta.inverted?"not ":""," acquired ")}}function FH(t,e){t&1&&x(0," Game in developer editor ")}function PH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Reached ",r.requirement.meta.expectedHeartLevel," hearts with any NPC ")}}function LH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Viewed ",r.requirement.meta.cutsceneTopic," cutscene ")}}function jH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Marriage ",r.requirement.meta.inverted?"hasn't been ":"","proposed ")}}function VH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Unlocked ",r.requirement.meta.types," giants ")}}function BH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Quest fact ",r.requirement.meta.factName," set ")}}function HH(t,e){if(t&1&&(v(0,"div"),x(1," Acquired special item "),M(2,"app-item-icon",0),x(3),w()),t&2){let r=_();h(2),D("itemName",r.requirement.meta.item.iconName),h(),Y(" ",r.requirement.meta.item.displayName," ")}}function $H(t,e){if(t&1&&(x(0),lt(1,"ingameDate"),lt(2,"ingameDate")),t&2){let r=_();Gp(" Date is ",r.requirement.meta.inverted?"not ":"","between ",gt(1,3,r.requirement.meta.from)," and ",gt(2,5,r.requirement.meta.to)," ")}}function UH(t,e){if(t&1&&(v(0,"div"),x(1),M(2,"app-item-icon",1),x(3),w()),t&2){let r=_();h(),Y(" Has ",r.requirement.meta.amount,"x "),h(),D("itemName",r.requirement.meta.item.iconName),h(),Dt(" ",r.requirement.meta.item.displayName,"",r.requirement.meta.requiredQuality?" of "+r.requirement.meta.requiredQuality+" quality":""," in inventory ")}}function zH(t,e){if(t&1&&x(0),t&2){let r=_();Dt(" Has ",r.requirement.meta.amount,"x items of category ",r.requirement.meta.categoryName," in inventory ")}}function GH(t,e){if(t&1&&x(0),t&2){let r,n=_();Dt(" State of '",(r=n.requirement.meta.customName)!==null&&r!==void 0?r:n.requirement.meta.id,"' is '",n.requirement.meta.state,"' ")}}function qH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Quest '",r.requirement.meta.questId,"' is active ")}}function WH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Temple has reached level ",r.requirement.meta.level," ")}}function YH(t,e){if(t&1&&x(0),t&2){let r=_();Dt(" Has reached level ",r.requirement.meta.level," in ",r.requirement.meta.mine," mine ")}}function QH(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Has upgraded farm house to level ",r.requirement.meta.level," ")}}function ZH(t,e){t&1&&(v(0,"span",2),x(1," not"),w())}function KH(t,e){if(t&1&&(x(0," Has"),T(1,ZH,2,0,"span",2),x(2)),t&2){let r=_();h(),b(r.requirement.meta.inverted?1:-1),h(),Y(" unlocked cooking utensil ",r.requirement.meta.utensil," ")}}function XH(t,e){if(t&1&&x(0),t&2){let r=_();Dt(" Has reached level ",r.requirement.meta.level," in ",r.requirement.meta.mastery," mastery ")}}function JH(t,e){if(t&1&&x(0),t&2){let r=_();Dt(" Has reached ",r.requirement.meta.expectedHeartLevel," hearts with ",r.requirement.meta.npcKey," ")}}function e$(t,e){t&1&&x(0," at least ")}function t$(t,e){if(t&1&&(x(0),T(1,e$,1,0),x(2)),t&2){let r=_();Y(" Quest fact '",r.requirement.meta.factName,"' has "),h(),b(r.requirement.meta.comparator==="MoreEqual"?1:-1),h(),Y(" a value of ",r.requirement.meta.value," ")}}function n$(t,e){if(t&1&&(x(0," Player has read '"),v(1,"a",3),x(2),w(),x(3,"' ")),t&2){let r=_();h(),D("queryParams",ni(3,RH,r.requirement.meta.mailId))("routerLink",Mi(5,kH)),h(),ke(r.requirement.meta.title)}}function i$(t,e){if(t&1&&x(0),t&2){let r=_();Y(" Player received dinosaur hologram reward for ",r.requirement.meta.dinosaursName," ")}}function r$(t,e){if(t&1&&(M(0,"app-inline-minimal-item",4),x(1)),t&2){let r=e.$implicit,n=e.$index,i=e.$count;D("minimalItem",r),h(),Y("",n!==i-1?", ":""," ")}}function o$(t,e){if(t&1&&(x(0),et(1,r$,2,2,null,null,AH)),t&2){let r=_();Y(" Player shipped the following item(s) 50x",r.requirement.meta.includeAllQualities?" (any quality)":"",": "),h(),tt(r.requirement.meta.itemsToShip)}}var fI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-requirements"]],inputs:{requirement:"requirement"},decls:24,vars:24,consts:[[1,"!w-7","-my-1","translate-y-1","ml-1","mr-0.5","!inline-block",3,"itemName"],[1,"!w-7","ml-1","-my-1","translate-y-1","mr-0.5","!inline-block",3,"itemName"],[1,"font-bold"],[1,"underline",3,"queryParams","routerLink"],[3,"minimalItem"]],template:function(i,o){i&1&&T(0,OH,4,2,"div")(1,NH,1,1)(2,FH,1,0)(3,PH,1,1)(4,LH,1,1)(5,jH,1,1)(6,VH,1,1)(7,BH,1,1)(8,HH,4,2,"div")(9,$H,3,7)(10,UH,4,4,"div")(11,zH,1,2)(12,GH,1,2)(13,qH,1,1)(14,WH,1,1)(15,YH,1,2)(16,QH,1,1)(17,KH,3,2)(18,XH,1,2)(19,JH,1,2)(20,t$,3,3)(21,n$,4,6)(22,i$,1,1)(23,o$,3,1),i&2&&(b(o.requirement.type==="IsAchievementCompleted"?0:-1),h(),b(o.requirement.type==="MountAcquired"?1:-1),h(),b(o.requirement.type==="EditorOnly"?2:-1),h(),b(o.requirement.type==="CountNPCHeartLevel"?3:-1),h(),b(o.requirement.type==="IsCutsceneTriggered"?4:-1),h(),b(o.requirement.type==="MarriageHasProposed"?5:-1),h(),b(o.requirement.type==="IsGiantUnlocked"?6:-1),h(),b(o.requirement.type==="QuestFact"?7:-1),h(),b(o.requirement.type==="SpecialItem"?8:-1),h(),b(o.requirement.type==="DateSeasonRange"?9:-1),h(),b(o.requirement.type==="ItemInInventory"?10:-1),h(),b(o.requirement.type==="ItemWithCategoryInInventory"?11:-1),h(),b(o.requirement.type==="ObjectState"?12:-1),h(),b(o.requirement.type==="QuestActive"?13:-1),h(),b(o.requirement.type==="TempleLevel"?14:-1),h(),b(o.requirement.type==="CompleteMining"?15:-1),h(),b(o.requirement.type==="FarmHouseLevel"?16:-1),h(),b(o.requirement.type==="HasCookingUtensil"?17:-1),h(),b(o.requirement.type==="MasteryLevel"?18:-1),h(),b(o.requirement.type==="NPCHeartLevel"?19:-1),h(),b(o.requirement.type==="QuestFactCompare"?20:-1),h(),b(o.requirement.type==="IsMailRead"?21:-1),h(),b(o.requirement.type==="DinoHologramItemRewardClaimed"?22:-1),h(),b(o.requirement.type==="ShipToUnlock"?23:-1))},dependencies:[ci,dt,aI,uI],encapsulation:2});let t=e;return t})();var xie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-merit-points"]],inputs:{amount:[2,"amount","amount",Nt]},features:[ye],decls:3,vars:3,consts:[["src","assets/ui/images/icons/T_Icon_Merit.png",1,"app-merit-points-icon"]],template:function(i,o){i&1&&(x(0),lt(1,"number"),M(2,"img",0)),i&2&&ke(gt(1,1,o.amount))},dependencies:[fd],styles:["[_nghost-%COMP%]{white-space:nowrap}.app-merit-points-icon[_ngcontent-%COMP%]{height:1em;display:inline-block;vertical-align:text-top;margin-left:2px}"]});let t=e;return t})();var a$=[[["","expandableHeader",""]],"*"],c$=["[expandableHeader]","*"],Tie=(()=>{let e=class e{constructor(){this.open=!1}toggle(){this.open=!this.open}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-expandable"]],inputs:{open:[2,"open","open",G]},features:[ye],ngContentSelectors:c$,decls:5,vars:4,consts:[[1,"expandable-header"],[1,"expandable-body","grid","transition-all","duration-500","ease-in-out"],[1,"overflow-hidden"]],template:function(i,o){i&1&&(be(a$),v(0,"div",0),W(1),w(),v(2,"div",1)(3,"div",2),W(4,1),w()()),i&2&&(h(2),H("grid-rows-0fr",!o.open)("grid-rows-1fr",o.open))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();var Aie=(()=>{let e=class e{transform(n){return n&&n.replace(/<[^>]+>/ig,"")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"removeTags",type:e,pure:!0});let t=e;return t})();function l$(t,e){if(t&1&&(v(0,"div",1),M(1,"app-item-icon",3),v(2,"span"),x(3),w(),v(4,"span"),x(5),w()()),t&2){let r=_().$implicit;h(),D("itemName",r.item.iconName),h(2),ke(r.item.displayName),h(2),Y("x",r.amount,"")}}function d$(t,e){if(t&1&&(v(0,"div",0),T(1,l$,6,3,"div",1),v(2,"div",2),x(3),w()(),M(4,"hr")),t&2){let r=e.$implicit;h(),b(r.item?1:-1),h(2),Y("",r.chance,"%")}}var kie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-chance-per-item-list"]],inputs:{chances:"chances"},decls:2,vars:0,consts:[[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"flex","items-center"],[1,"size-10",3,"itemName"]],template:function(i,o){i&1&&et(0,d$,5,2,null,null,it),i&2&&tt(o.chances)},dependencies:[dt],encapsulation:2});let t=e;return t})();function u$(t,e){if(t&1&&(v(0,"div",1),M(1,"app-item-icon",3),v(2,"span",4),x(3),w()()),t&2){let r=_().$implicit;h(),D("itemName",r.item.iconName),h(2),Dt("",r.item.displayName,"\xA0x",r.amount,"")}}function f$(t,e){if(t&1&&(v(0,"div",0),T(1,u$,4,3,"div",1),v(2,"div",2),x(3),w()()),t&2){let r=e.$implicit;h(),b(r.item?1:-1),h(2),Y("",r.chance,"%")}}var Nie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-chance-per-item-table-list"]],inputs:{chances:"chances"},decls:2,vars:0,consts:[[1,"flex","justify-between","mb-1"],[1,"flex","gap-2","items-center"],[1,"ml-2","flex","items-center"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap"]],template:function(i,o){i&1&&et(0,f$,4,2,"div",0,it),i&2&&tt(o.chances)},dependencies:[dt],encapsulation:2});let t=e;return t})();var Lie=(()=>{let e=class e{transform(n){return n&&an(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ae({name:"entityKey",type:e,pure:!0});let t=e;return t})();function h$(t,e){if(t&1&&x(0),t&2){let r=_(2);Y(" Unlock requirements (",r.requirements.type==="And"?"all":"any"," of them): ")}}function p$(t,e){t&1&&x(0," Unlock requirement: ")}function m$(t,e){if(t&1&&M(0,"app-requirements",2),t&2){let r=e.$implicit;D("requirement",r)}}function g$(t,e){if(t&1&&(v(0,"div",0),T(1,h$,1,1)(2,p$,1,0),v(3,"div",1),et(4,m$,1,1,"app-requirements",2,it),w()()),t&2){let r=_();h(),b(r.requirements.requirements.length>1?1:-1),h(),b(r.requirements.requirements.length<2?2:-1),h(2),tt(r.requirements.requirements)}}var Vie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=R({type:e,selectors:[["app-requirements-list"]],inputs:{requirements:"requirements"},decls:1,vars:1,consts:[[1,"my-2"],[1,"flex","flex-col","text-black"],[3,"requirement"]],template:function(i,o){i&1&&T(0,g$,6,2,"div",0),i&2&&b(o.requirements&&o.requirements.requirements.length?0:-1)},dependencies:[fI],encapsulation:2});let t=e;return t})();var Xoe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[_d(hC())],imports:[Jt,MD,gE,sI,SE,bE,GE,YD,Lx,ZE]});let t=e;return t})();export{S as a,ue as b,vI as c,yt as d,tn as e,yr as f,vs as g,N as h,It as i,B as j,mo as k,j as l,zt as m,Hn as n,go as o,uf as p,pn as q,Ir as r,at as s,GI as t,xe as u,mi as v,mn as w,Je as x,$i as y,WI as z,$n as A,ZI as B,de as C,St as D,rt as E,K as F,Ie as G,V as H,Ct as I,I as J,J as K,E as L,C as M,g as N,zr as O,R as P,ee as Q,F as R,Sl as S,qS as T,pt as U,Be as V,he as W,pe as X,up as Y,yq as Z,Re as _,Ei as $,Te as aa,vn as ba,bq as ca,He as da,$ as ea,q as fa,on as ga,Ot as ha,Tn as ia,wq as ja,Ti as ka,h as la,p as ma,d0 as na,ze as oa,Ao as pa,L as qa,We as ra,Xn as sa,U0 as ta,ie as ua,Eq as va,ye as wa,T as xa,Iq as ya,Sq as za,Le as Aa,D as Ba,Xt as Ca,H as Da,qr as Ea,Tq as Fa,b as Ga,it as Ha,et as Ia,tt as Ja,v as Ka,w as La,M as Ma,ei as Na,ti as Oa,Bt as Pa,Ke as Qa,Qs as Ra,ce as Sa,_ as Ta,be as Ua,W as Va,Up as Wa,Xl as Xa,qR as Ya,Me as Za,Se as _a,U as $a,z as ab,pw as bb,mw as cb,Ji as db,x as eb,ke as fb,Y as gb,Dt as hb,Gp as ib,QR as jb,Mq as kb,ZR as lb,me as mb,ge as nb,Mi as ob,ni as pb,vw as qb,lt as rb,gt as sb,Cw as tb,Jl as ub,$o as vb,Mn as wb,Aq as xb,Ae as yb,G as zb,Nt as Ab,od as Bb,zo as Cb,tr as Db,Rq as Eb,te as Fb,nr as Gb,dd as Hb,Yq as Ib,ud as Jb,Qq as Kb,Yw as Lb,Qw as Mb,fd as Nb,Zq as Ob,Kq as Pb,Jt as Qb,um as Rb,Xq as Sb,oa as Tb,_d as Ub,fW as Vb,pC as Wb,SW as Xb,TW as Yb,bd as Zb,WO as _b,RW as $b,kW as ac,Rt as bc,fe as cc,LW as dc,jW as ec,HW as fc,$W as gc,CC as hc,WW as ic,YW as jc,xC as kc,n7 as lc,Im as mc,i7 as nc,r7 as oc,an as pc,a7 as qc,c7 as rc,en as sc,EC as tc,Cd as uc,ln as vc,si as wc,Rn as xc,Oe as yc,k7 as zc,ri as Ac,tN as Bc,_t as Cc,hs as Dc,Vi as Ec,Wa as Fc,gr as Gc,Iu as Hc,Tu as Ic,Ht as Jc,Ya as Kc,BD as Lc,e_ as Mc,$t as Nc,Qa as Oc,i_ as Pc,Am as Qc,Vm as Rc,BC as Sc,Kr as Tc,Ye as Uc,jd as Vc,tx as Wc,Qm as Xc,Ko as Yc,Zm as Zc,Vd as _c,q9 as $c,W9 as ad,ui as bd,BZ as cd,vt as dd,Xe as ed,HZ as fd,_e as gd,Ge as hd,$D as id,UD as jd,$Z as kd,ya as ld,iF as md,fx as nd,eo as od,Hd as pd,Ni as qd,Ix as rd,Sx as sd,va as td,cx as ud,ag as vd,TF as wd,fQ as xd,RF as yd,OF as zd,wa as Ad,lg as Bd,LF as Cd,VF as Dd,HF as Ed,hQ as Fd,Lx as Gd,r_ as Hd,as as Id,On as Jd,Pi as Kd,mP as Ld,yD as Md,Nn as Nd,ci as Od,ED as Pd,MD as Qd,Li as Rd,jQ as Sd,li as Td,mr as Ud,dt as Vd,XE as Wd,yte as Xd,AD as Yd,vr as Zd,JE as _d,ms as $d,ku as ae,YD as be,KD as ce,XD as de,Zu as ee,JD as fe,jte as ge,Hte as he,Fu as ie,s_ as je,a_ as ke,lE as le,dE as me,pE as ne,mE as oe,gE as pe,fne as qe,bE as re,f_ as se,nV as te,cV as ue,FJ as ve,SE as we,aI as xe,cI as ye,FE as ze,PE as Ae,LE as Be,jE as Ce,VE as De,BE as Ee,HE as Fe,$E as Ge,UE as He,zE as Ie,GE as Je,vne as Ke,Ku as Le,wne as Me,Ine as Ne,Mne as Oe,Rne as Pe,One as Qe,Fne as Re,Lne as Se,Tee as Te,Ja as Ue,QE as Ve,ZE as We,dI as Xe,zne as Ye,qne as Ze,T_ as _e,$V as $e,KE as af,dte as bf,Yne as cf,uI as df,Zne as ef,Xne as ff,eie as gf,cie as hf,gie as if,vie as jf,fI as kf,xie as lf,Tie as mf,Aie as nf,kie as of,Nie as pf,Lie as qf,Vie as rf,Xoe as sf}; diff --git a/chunk-GPI7MHXO.js b/chunk-QLCYA646.js similarity index 93% rename from chunk-GPI7MHXO.js rename to chunk-QLCYA646.js index b962e6285b..5b0a87a445 100644 --- a/chunk-GPI7MHXO.js +++ b/chunk-QLCYA646.js @@ -1 +1 @@ -import{Dd as l,J as a,N as r,ma as c,oc as h}from"./chunk-4KZEYPV3.js";var g=(()=>{let e=class e{constructor(t){if(this.checklistName=t,this.versionSuffix=r(h).getSettings().useBeta?"_beta":"_live",this.userData=r(l),t.trim()==="")throw new Error("checklistName can't be empty!");this.read()}read(){let t=localStorage.getItem(this.getChecklistStorageKey());if(t&&!this.userData.getCurrentData().checklists[this.checklistName]){let s=JSON.parse(t);this.userData.getCurrentData().checklists[this.checklistName]=s[0]??[],this.userData.save(),localStorage.removeItem(this.getChecklistStorageKey())}}save(){this.userData.save()}getCurrentChecklist(){let t=this.userData.getCurrentData().checklists[this.checklistName];return t||(this.userData.getCurrentData().checklists[this.checklistName]=this._createEmptyChecklist(),t=this.userData.getCurrentData().checklists[this.checklistName]),t}set(t){this.getCurrentChecklist().entries=[...new Set([...Array.isArray(t)?t:[t]])],this.save()}add(t){this.getCurrentChecklist().entries=[...new Set([...this.getCurrentChecklist().entries,...Array.isArray(t)?t:[t]])],this.save()}remove(t){Array.isArray(t)||(t=[t]),this.getCurrentChecklist().entries=this.getCurrentChecklist().entries.filter(s=>!t.includes(s)),this.save()}isChecked(t){return this.getCurrentChecklist().entries.includes(t)}getChecklistStorageKey(){return e._TO_DO_STORE_KEY+this.checklistName+this.versionSuffix}resetLiveChecklist(){localStorage.setItem(e._TO_DO_STORE_KEY+this.checklistName+"_live",JSON.stringify([this._createEmptyChecklist()])),this.read()}resetBetaChecklist(){localStorage.setItem(e._TO_DO_STORE_KEY+this.checklistName+"_beta",JSON.stringify([this._createEmptyChecklist()])),this.read()}_createEmptyChecklist(){return{version:1,entries:[]}}};e._TO_DO_STORE_KEY="checklist_",e.\u0275fac=function(s){c()},e.\u0275prov=a({token:e,factory:e.\u0275fac});let i=e;return i})();export{g as a}; +import{Hd as l,J as a,N as r,na as c,sc as h}from"./chunk-PYTDIKHQ.js";var g=(()=>{let e=class e{constructor(t){if(this.checklistName=t,this.versionSuffix=r(h).getSettings().useBeta?"_beta":"_live",this.userData=r(l),t.trim()==="")throw new Error("checklistName can't be empty!");this.read()}read(){let t=localStorage.getItem(this.getChecklistStorageKey());if(t&&!this.userData.getCurrentData().checklists[this.checklistName]){let s=JSON.parse(t);this.userData.getCurrentData().checklists[this.checklistName]=s[0]??[],this.userData.save(),localStorage.removeItem(this.getChecklistStorageKey())}}save(){this.userData.save()}getCurrentChecklist(){let t=this.userData.getCurrentData().checklists[this.checklistName];return t||(this.userData.getCurrentData().checklists[this.checklistName]=this._createEmptyChecklist(),t=this.userData.getCurrentData().checklists[this.checklistName]),t}set(t){this.getCurrentChecklist().entries=[...new Set([...Array.isArray(t)?t:[t]])],this.save()}add(t){this.getCurrentChecklist().entries=[...new Set([...this.getCurrentChecklist().entries,...Array.isArray(t)?t:[t]])],this.save()}remove(t){Array.isArray(t)||(t=[t]),this.getCurrentChecklist().entries=this.getCurrentChecklist().entries.filter(s=>!t.includes(s)),this.save()}isChecked(t){return this.getCurrentChecklist().entries.includes(t)}getChecklistStorageKey(){return e._TO_DO_STORE_KEY+this.checklistName+this.versionSuffix}resetLiveChecklist(){localStorage.setItem(e._TO_DO_STORE_KEY+this.checklistName+"_live",JSON.stringify([this._createEmptyChecklist()])),this.read()}resetBetaChecklist(){localStorage.setItem(e._TO_DO_STORE_KEY+this.checklistName+"_beta",JSON.stringify([this._createEmptyChecklist()])),this.read()}_createEmptyChecklist(){return{version:1,entries:[]}}};e._TO_DO_STORE_KEY="checklist_",e.\u0275fac=function(s){c()},e.\u0275prov=a({token:e,factory:e.\u0275fac});let i=e;return i})();export{g as a}; diff --git a/chunk-X73TJLJO.js b/chunk-QSI43SYB.js similarity index 92% rename from chunk-X73TJLJO.js rename to chunk-QSI43SYB.js index fa4d6ae18c..bb6f7c04a4 100644 --- a/chunk-X73TJLJO.js +++ b/chunk-QSI43SYB.js @@ -1 +1 @@ -import{a as Z,b as ee,c as te}from"./chunk-A2PSOISD.js";import{a as X}from"./chunk-JJGLUQYM.js";import"./chunk-GPI7MHXO.js";import{a as Q}from"./chunk-GEJY5HAK.js";import{$b as R,Aa as h,Ca as S,Cd as z,Fa as C,Ga as y,Ha as F,Ia as x,Ja as e,K as g,Ka as t,La as l,Md as W,N as m,Nd as $,Ob as T,P as v,Q as p,Qc as b,Ra as k,Sa as I,Sd as V,Wc as D,Yd as q,_b as N,a as w,ac as L,db as i,fb as E,fe as G,he as Y,id as M,je as J,ka as a,mf as K,nd as B,oc as A,od as O,pd as U,sd as d,td as P,wa as _,wd as j,xd as H}from"./chunk-4KZEYPV3.js";function re(o,n){if(o&1&&(e(0,"mat-option",10),i(1),t()),o&2){let u=n.$implicit,r=I();h("value",u),a(),E("",r.availableLanguageDisplayName[u]," ")}}function se(o,n){if(o&1&&(e(0,"p",18),l(1,"app-ui-icon",12),i(2," Currently there's no beta. "),t()),o&2){let u=I();a(),h("uiIcon",u.uiIcon.WARNING)}}function ae(o,n){o&1&&(e(0,"p",31),i(1,"Changes that require a reload were made. Saving will reload automatically."),t())}var ne=(()=>{let n=class n{constructor(){this.reloadRequired=!1,this.uiIcon=N,this.availableLanguages=R,this.availableLanguageDisplayName=L,this.BETA_CODE=m(Q,{optional:!0}),this._settingsService=m(A),this._toDo=m(q),this._checklistOfferings=m(te),this._checklistCooking=m(ee),this._checklistMuseum=m(Z),this._checklistHeartEvents=m(X),this.settingsForm=new U({useBeta:new d(!1,{nonNullable:!0}),resetLiveToDo:new d(!1,{nonNullable:!0}),resetBetaToDo:new d(!1,{nonNullable:!0}),resetLiveChecklists:new d(!1,{nonNullable:!0}),resetBetaChecklists:new d(!1,{nonNullable:!0}),language:new d("en",{nonNullable:!0}),disableChangelogs:new d(!1,{nonNullable:!0})}),this.BETA_CODE||this.settingsForm.get("useBeta")?.disable();let r=this._settingsService.getSettings();this.settingsForm.patchValue(r),this.settingsForm.valueChanges.subscribe({next:s=>{this.reloadRequired=r.useBeta!==s.useBeta||r.language!==s.language}})}saveSettings(){let r=w({},this.settingsForm.value);r.resetLiveChecklists&&(this._checklistMuseum.resetLiveChecklist(),this._checklistOfferings.resetLiveChecklist(),this._checklistCooking.resetLiveChecklist(),this._checklistHeartEvents.resetLiveChecklist()),r.resetBetaChecklists&&(this._checklistMuseum.resetBetaChecklist(),this._checklistOfferings.resetBetaChecklist(),this._checklistCooking.resetBetaChecklist(),this._checklistHeartEvents.resetBetaChecklist()),r.resetLiveToDo&&this._toDo.resetLiveToDo(),r.resetBetaToDo&&this._toDo.resetBetaToDo(),delete r.resetBetaToDo,delete r.resetLiveToDo,delete r.resetBetaChecklists,delete r.resetLiveChecklists,this._settingsService.saveSettings(r),this.reloadRequired&&location.reload()}};n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=v({type:n,selectors:[["app-settings"]],decls:101,vars:7,consts:[[1,"px-main-hz","py-main-vt"],[1,"text-black","container"],[3,"submit","formGroup"],[1,"grid","md:grid-cols-3","pb-12","gap-y-10","gap-x-8","border-b","border-accent/50","mb-8"],[1,"leading-7","font-bold","text-lg"],[1,"bg-amber-50/70","md:col-span-2","px-4","py-6","sm:p-8","sm:rounded-lg"],[1,"flex","flex-col","gap-1","items-start"],["for","language",1,"font-bold","leading-6"],[1,"btn","btn-secondary"],["formControlName","language","id","language"],[3,"value"],[1,"flex","gap-2","text-black","font-bold","leading-6","items-center","mt-2"],[1,"!w-6","shrink-0",3,"uiIcon"],[1,"flex","gap-x-3"],[1,"flex","h-6","items-center"],["formControlName","useBeta","id","useBeta","name","useBeta","type","checkbox"],["for","useBeta",1,"font-bold","leading-6"],[1,"leading-6"],[1,"flex","gap-2","text-black","font-bold","leading-6","items-center"],[1,"bg-amber-50/70","md:col-span-2","px-4","py-6","sm:p-8","sm:rounded-lg","flex","flex-col","gap-6"],["formControlName","resetLiveToDo","id","resetLiveToDo","name","resetLiveToDo","type","checkbox"],["for","resetLiveToDo",1,"font-bold","leading-6"],["formControlName","resetBetaToDo","id","resetBetaToDo","name","resetBetaToDo","type","checkbox"],["for","resetBetaToDo",1,"font-bold","leading-6"],["formControlName","disableChangelogs","id","disableChangelogs","name","disableChangelogs","type","checkbox"],["for","disableChangelogs",1,"font-bold","leading-6"],["formControlName","resetLiveChecklists","id","resetLiveChecklists","name","resetLiveChecklists","type","checkbox"],["for","resetLiveChecklists",1,"font-bold","leading-6"],["formControlName","resetBetaChecklists","id","resetBetaChecklists","name","resetBetaChecklists","type","checkbox"],["for","resetBetaChecklists",1,"font-bold","leading-6"],[1,"mt-6","sm:mt-8","flex","justify-between","items-center"],[1,"font-bold"],["type","submit",1,"btn-amber","ml-auto"]],template:function(s,c){if(s&1&&(e(0,"div",0)(1,"app-card",1)(2,"form",2),k("submit",function(){return c.saveSettings()}),e(3,"div",3)(4,"div")(5,"h3",4),i(6,"Language"),t(),e(7,"p"),i(8,"Change the language of Coral Guide"),t()(),e(9,"div",5)(10,"div",6)(11,"label",7),i(12,"Language"),t(),e(13,"mat-form-field",8)(14,"mat-select",9),F(15,re,2,2,"mat-option",10,y),t()()(),e(17,"p",11),l(18,"app-ui-icon",12),i(19," Work in progress: Currently only in-game data has translations, the app itself will stay in english. Translations are pulled from game files and will be shown as is. "),t()()(),e(20,"div",3)(21,"div")(22,"h3",4),i(23,"Beta data"),t(),e(24,"p"),i(25),t()(),e(26,"div",5)(27,"div",13)(28,"div",14),l(29,"input",15),t(),e(30,"div")(31,"label",16),i(32,"Use beta data"),t(),e(33,"p",17),i(34,"Switches app data to beta data. Change requires reload."),t()()(),_(35,se,3,1,"p",18),t()(),e(36,"div",3)(37,"div")(38,"h3",4),i(39,"To-Dos"),t(),e(40,"p"),i(41,"Options for to-dos. Reset your to-dos data if they behave in unwanted behavior and set defaults for viewing. "),t()(),e(42,"div",19)(43,"div",13)(44,"div",14),l(45,"input",20),t(),e(46,"div")(47,"label",21),i(48,"Reset live to-dos"),t(),e(49,"p",17),i(50,"Reset all to-dos which were created while using live data."),t()()(),e(51,"div",13)(52,"div",14),l(53,"input",22),t(),e(54,"div")(55,"label",23),i(56,"Reset beta to-dos"),t(),e(57,"p",17),i(58,"Reset all to-dos which were created while using beta data."),t()()()()(),e(59,"div",3)(60,"div")(61,"h3",4),i(62,"Changelogs"),t(),e(63,"p"),i(64,"Options for latest changelogs. If you disabled them you can reactivate them here. "),t()(),e(65,"div",19)(66,"div",13)(67,"div",14),l(68,"input",24),t(),e(69,"div")(70,"label",25),i(71,"Disable latest changelogs"),t(),e(72,"p",17),i(73,"When disabled, latest changes will not be displayed once per update."),t()()()()(),e(74,"div",3)(75,"div")(76,"h3",4),i(77,"Checklists"),t(),e(78,"p"),i(79,"Options for checklists. Reset your checklists data. "),t()(),e(80,"div",19)(81,"div",13)(82,"div",14),l(83,"input",26),t(),e(84,"div")(85,"label",27),i(86,"Reset live checklists"),t(),e(87,"p",17),i(88,"Reset all checklists which were created while using live data."),t()()(),e(89,"div",13)(90,"div",14),l(91,"input",28),t(),e(92,"div")(93,"label",29),i(94,"Reset beta checklists"),t(),e(95,"p",17),i(96,"Reset all checklists which were created while using beta data."),t()()()()(),e(97,"div",30),_(98,ae,2,0,"p",31),e(99,"button",32),i(100,"Save"),t()()()()()),s&2){let f;a(2),h("formGroup",c.settingsForm),a(13),x(c.availableLanguages),a(3),h("uiIcon",c.uiIcon.WARNING),a(7),E("Options for latest beta build. Current beta code: ",(f=c.BETA_CODE)!==null&&f!==void 0?f:"no ongoing beta"," "),a(5),S("opacity-50",!c.BETA_CODE),a(5),C(c.BETA_CODE?-1:35),a(63),C(c.reloadRequired?98:-1)}},dependencies:[V,P,M,B,O,j,H,G,Y,D,$],encapsulation:2});let o=n;return o})();var oe=(()=>{let n=class n{};n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=p({type:n}),n.\u0275inj=g({imports:[b,b]});let o=n;return o})();var le=[{path:"",component:ne}],Qe=(()=>{let n=class n{};n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=p({type:n}),n.\u0275inj=g({imports:[T,W.forChild(le),K,z,oe,J]});let o=n;return o})();export{Qe as SettingsModule}; +import{a as Z,b as ee,c as te}from"./chunk-XIW35ZB7.js";import{a as X}from"./chunk-KIVQXZUD.js";import"./chunk-QLCYA646.js";import{a as Q}from"./chunk-YKSJU422.js";import{Ad as j,Ba as h,Bd as H,Da as S,Ga as C,Gd as z,Ha as y,Ia as F,Ja as x,K as g,Ka as e,La as t,Ma as l,N as m,P as v,Q as p,Qb as T,Qd as W,Sa as k,Ta as I,Td as $,Uc as b,Yd as V,_c as D,a as w,cc as N,ce as q,dc as R,eb as i,ec as L,gb as E,la as a,le as G,md as M,ne as Y,pe as J,rd as B,sc as A,sd as O,sf as K,td as U,wd as d,xa as _,xd as P}from"./chunk-PYTDIKHQ.js";function re(o,n){if(o&1&&(e(0,"mat-option",10),i(1),t()),o&2){let u=n.$implicit,r=I();h("value",u),a(),E("",r.availableLanguageDisplayName[u]," ")}}function se(o,n){if(o&1&&(e(0,"p",18),l(1,"app-ui-icon",12),i(2," Currently there's no beta. "),t()),o&2){let u=I();a(),h("uiIcon",u.uiIcon.WARNING)}}function ae(o,n){o&1&&(e(0,"p",31),i(1,"Changes that require a reload were made. Saving will reload automatically."),t())}var ne=(()=>{let n=class n{constructor(){this.reloadRequired=!1,this.uiIcon=N,this.availableLanguages=R,this.availableLanguageDisplayName=L,this.BETA_CODE=m(Q,{optional:!0}),this._settingsService=m(A),this._toDo=m(q),this._checklistOfferings=m(te),this._checklistCooking=m(ee),this._checklistMuseum=m(Z),this._checklistHeartEvents=m(X),this.settingsForm=new U({useBeta:new d(!1,{nonNullable:!0}),resetLiveToDo:new d(!1,{nonNullable:!0}),resetBetaToDo:new d(!1,{nonNullable:!0}),resetLiveChecklists:new d(!1,{nonNullable:!0}),resetBetaChecklists:new d(!1,{nonNullable:!0}),language:new d("en",{nonNullable:!0}),disableChangelogs:new d(!1,{nonNullable:!0})}),this.BETA_CODE||this.settingsForm.get("useBeta")?.disable();let r=this._settingsService.getSettings();this.settingsForm.patchValue(r),this.settingsForm.valueChanges.subscribe({next:s=>{this.reloadRequired=r.useBeta!==s.useBeta||r.language!==s.language}})}saveSettings(){let r=w({},this.settingsForm.value);r.resetLiveChecklists&&(this._checklistMuseum.resetLiveChecklist(),this._checklistOfferings.resetLiveChecklist(),this._checklistCooking.resetLiveChecklist(),this._checklistHeartEvents.resetLiveChecklist()),r.resetBetaChecklists&&(this._checklistMuseum.resetBetaChecklist(),this._checklistOfferings.resetBetaChecklist(),this._checklistCooking.resetBetaChecklist(),this._checklistHeartEvents.resetBetaChecklist()),r.resetLiveToDo&&this._toDo.resetLiveToDo(),r.resetBetaToDo&&this._toDo.resetBetaToDo(),delete r.resetBetaToDo,delete r.resetLiveToDo,delete r.resetBetaChecklists,delete r.resetLiveChecklists,this._settingsService.saveSettings(r),this.reloadRequired&&location.reload()}};n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=v({type:n,selectors:[["app-settings"]],decls:101,vars:7,consts:[[1,"px-main-hz","py-main-vt"],[1,"text-black","container"],[3,"submit","formGroup"],[1,"grid","md:grid-cols-3","pb-12","gap-y-10","gap-x-8","border-b","border-accent/50","mb-8"],[1,"leading-7","font-bold","text-lg"],[1,"bg-amber-50/70","md:col-span-2","px-4","py-6","sm:p-8","sm:rounded-lg"],[1,"flex","flex-col","gap-1","items-start"],["for","language",1,"font-bold","leading-6"],[1,"btn","btn-secondary"],["formControlName","language","id","language"],[3,"value"],[1,"flex","gap-2","text-black","font-bold","leading-6","items-center","mt-2"],[1,"!w-6","shrink-0",3,"uiIcon"],[1,"flex","gap-x-3"],[1,"flex","h-6","items-center"],["formControlName","useBeta","id","useBeta","name","useBeta","type","checkbox"],["for","useBeta",1,"font-bold","leading-6"],[1,"leading-6"],[1,"flex","gap-2","text-black","font-bold","leading-6","items-center"],[1,"bg-amber-50/70","md:col-span-2","px-4","py-6","sm:p-8","sm:rounded-lg","flex","flex-col","gap-6"],["formControlName","resetLiveToDo","id","resetLiveToDo","name","resetLiveToDo","type","checkbox"],["for","resetLiveToDo",1,"font-bold","leading-6"],["formControlName","resetBetaToDo","id","resetBetaToDo","name","resetBetaToDo","type","checkbox"],["for","resetBetaToDo",1,"font-bold","leading-6"],["formControlName","disableChangelogs","id","disableChangelogs","name","disableChangelogs","type","checkbox"],["for","disableChangelogs",1,"font-bold","leading-6"],["formControlName","resetLiveChecklists","id","resetLiveChecklists","name","resetLiveChecklists","type","checkbox"],["for","resetLiveChecklists",1,"font-bold","leading-6"],["formControlName","resetBetaChecklists","id","resetBetaChecklists","name","resetBetaChecklists","type","checkbox"],["for","resetBetaChecklists",1,"font-bold","leading-6"],[1,"mt-6","sm:mt-8","flex","justify-between","items-center"],[1,"font-bold"],["type","submit",1,"btn-amber","ml-auto"]],template:function(s,c){if(s&1&&(e(0,"div",0)(1,"app-card",1)(2,"form",2),k("submit",function(){return c.saveSettings()}),e(3,"div",3)(4,"div")(5,"h3",4),i(6,"Language"),t(),e(7,"p"),i(8,"Change the language of Coral Guide"),t()(),e(9,"div",5)(10,"div",6)(11,"label",7),i(12,"Language"),t(),e(13,"mat-form-field",8)(14,"mat-select",9),F(15,re,2,2,"mat-option",10,y),t()()(),e(17,"p",11),l(18,"app-ui-icon",12),i(19," Work in progress: Currently only in-game data has translations, the app itself will stay in english. Translations are pulled from game files and will be shown as is. "),t()()(),e(20,"div",3)(21,"div")(22,"h3",4),i(23,"Beta data"),t(),e(24,"p"),i(25),t()(),e(26,"div",5)(27,"div",13)(28,"div",14),l(29,"input",15),t(),e(30,"div")(31,"label",16),i(32,"Use beta data"),t(),e(33,"p",17),i(34,"Switches app data to beta data. Change requires reload."),t()()(),_(35,se,3,1,"p",18),t()(),e(36,"div",3)(37,"div")(38,"h3",4),i(39,"To-Dos"),t(),e(40,"p"),i(41,"Options for to-dos. Reset your to-dos data if they behave in unwanted behavior and set defaults for viewing. "),t()(),e(42,"div",19)(43,"div",13)(44,"div",14),l(45,"input",20),t(),e(46,"div")(47,"label",21),i(48,"Reset live to-dos"),t(),e(49,"p",17),i(50,"Reset all to-dos which were created while using live data."),t()()(),e(51,"div",13)(52,"div",14),l(53,"input",22),t(),e(54,"div")(55,"label",23),i(56,"Reset beta to-dos"),t(),e(57,"p",17),i(58,"Reset all to-dos which were created while using beta data."),t()()()()(),e(59,"div",3)(60,"div")(61,"h3",4),i(62,"Changelogs"),t(),e(63,"p"),i(64,"Options for latest changelogs. If you disabled them you can reactivate them here. "),t()(),e(65,"div",19)(66,"div",13)(67,"div",14),l(68,"input",24),t(),e(69,"div")(70,"label",25),i(71,"Disable latest changelogs"),t(),e(72,"p",17),i(73,"When disabled, latest changes will not be displayed once per update."),t()()()()(),e(74,"div",3)(75,"div")(76,"h3",4),i(77,"Checklists"),t(),e(78,"p"),i(79,"Options for checklists. Reset your checklists data. "),t()(),e(80,"div",19)(81,"div",13)(82,"div",14),l(83,"input",26),t(),e(84,"div")(85,"label",27),i(86,"Reset live checklists"),t(),e(87,"p",17),i(88,"Reset all checklists which were created while using live data."),t()()(),e(89,"div",13)(90,"div",14),l(91,"input",28),t(),e(92,"div")(93,"label",29),i(94,"Reset beta checklists"),t(),e(95,"p",17),i(96,"Reset all checklists which were created while using beta data."),t()()()()(),e(97,"div",30),_(98,ae,2,0,"p",31),e(99,"button",32),i(100,"Save"),t()()()()()),s&2){let f;a(2),h("formGroup",c.settingsForm),a(13),x(c.availableLanguages),a(3),h("uiIcon",c.uiIcon.WARNING),a(7),E("Options for latest beta build. Current beta code: ",(f=c.BETA_CODE)!==null&&f!==void 0?f:"no ongoing beta"," "),a(5),S("opacity-50",!c.BETA_CODE),a(5),C(c.BETA_CODE?-1:35),a(63),C(c.reloadRequired?98:-1)}},dependencies:[V,P,M,B,O,j,H,G,Y,D,$],encapsulation:2});let o=n;return o})();var oe=(()=>{let n=class n{};n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=p({type:n}),n.\u0275inj=g({imports:[b,b]});let o=n;return o})();var le=[{path:"",component:ne}],Qe=(()=>{let n=class n{};n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=p({type:n}),n.\u0275inj=g({imports:[T,W.forChild(le),K,z,oe,J]});let o=n;return o})();export{Qe as SettingsModule}; diff --git a/chunk-AQDICVYK.js b/chunk-QYNWALMD.js similarity index 83% rename from chunk-AQDICVYK.js rename to chunk-QYNWALMD.js index 8e1f7b3549..32d216dfaf 100644 --- a/chunk-AQDICVYK.js +++ b/chunk-QYNWALMD.js @@ -1,6 +1,6 @@ -import{a as dt}from"./chunk-JJGLUQYM.js";import"./chunk-DJJM56ZO.js";import"./chunk-GPI7MHXO.js";import{a as lt}from"./chunk-ZGSE3C3O.js";import{a as st}from"./chunk-V7RKZLQ2.js";import{f as mt}from"./chunk-7P5ZBEP4.js";import{a as le}from"./chunk-M22KCL2Z.js";import{q as Q,r as W}from"./chunk-QVSQOUAD.js";import{a as ve}from"./chunk-OHRRW4BO.js";import{a as de,b as Qe}from"./chunk-WFTBLPSZ.js";import{$d as Xe,Aa as d,Ab as O,Ca as q,Cd as me,E as Me,Fa as s,Fb as Oe,Fd as Ue,Ga as g,Ha as C,Hd as Re,Ia as h,Ib as Ae,Ja as a,Jd as ze,K as X,Ka as r,Kb as oe,Kd as se,La as f,Md as be,N as B,Nd as A,Ob as re,P as b,Pa as $,Pd as fe,Q as Z,Qd as We,Ra as M,Rd as Ye,Sa as l,Sd as ue,Ue as it,V as L,Ve as R,W as V,Wa as j,Wc as pe,Wd as U,We as he,Xd as Je,Z as Pe,Ze as z,_b as G,_e as nt,ab as ie,bb as ne,bf as ot,ca as Le,cb as K,ce as Ze,cf as rt,d as E,db as m,df as at,e as F,ea as Ve,eb as T,ef as pt,f as k,fb as x,fe as _e,gb as Te,gf as xe,he as ge,j as J,jd as qe,ka as n,ke as et,m as we,mb as He,me as Ce,mf as ct,nd as je,ob as Be,p as Fe,pb as $e,qb as I,qc as ae,ra as Ge,rb as N,re as tt,sa as ee,sd as ce,ta as te,u as ke,v as De,vd as Ke,wa as u}from"./chunk-4KZEYPV3.js";var ft=(()=>{let i=class i{constructor(){this.uiIcons=G,this.isNPCListActive=!1,this.router=B(ze),this.updateIsNPCListActive(this.router.url),this.router.events.pipe(it(),ke(o=>o instanceof Ue)).subscribe({next:o=>{this.updateIsNPCListActive(o.urlAfterRedirects)}})}updateIsNPCListActive(o){this.isNPCListActive=o.startsWith("/npcs/")&&!o.includes("overview")&&!o.includes("gifting")}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-people"]],decls:7,vars:3,consts:[["routerLink","overview",3,"active","uiIcon"],["routerLink","gifting",3,"uiIcon"],[1,"hidden"]],template:function(p,c){p&1&&(a(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),m(3,"NPC List "),r(),a(4,"app-module-sidebar-item",1),m(5,"Gifting"),r()(),f(6,"router-outlet",2),r()),p&2&&(n(2),d("active",c.isNPCListActive)("uiIcon",c.uiIcons.NEUTRAL),n(2),d("uiIcon",c.uiIcons.GIFTING))},dependencies:[Re,se,Ye,We,et],encapsulation:2});let e=i;return e})();var Ie=[{displayName:"Default",value:"default"},{displayName:"Alphabetical",value:"alphabetical"},{displayName:"Birthdate",value:"birthdate"}],Yi=Ie.map(e=>e.value);function St(e,i){if(e&1&&(a(0,"mat-option",4),m(1),r()),e&2){let t=i.$implicit;d("value",t.value),n(),T(t.displayName)}}var D=(()=>{let i=class i{constructor(){this.searchControl=new ce("",{nonNullable:!0}),this.sortControl=new ce("default",{nonNullable:!0}),this.sortOrderControl=new ce("asc",{nonNullable:!0}),this.searchValueChanges=R(this.searchControl.valueChanges,{initialValue:""}),this.sortValueChanges=R(this.sortControl.valueChanges,{initialValue:"default"}),this.sortOrderValueChanges=R(this.sortOrderControl.valueChanges,{initialValue:"asc"}),this.npcSortOptions=Ie}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-npc-filter"]],standalone:!0,features:[He],decls:11,vars:2,consts:[[1,"mb-5","flex","gap-x-3","gap-y-4","flex-wrap"],[1,"semi-transparent-form-field","grow","lg:grow-0","shrink-0","basis-auto"],["matInput","",3,"formControl"],["disableOptionCentering","",3,"formControl"],[3,"value"]],template:function(p,c){p&1&&(a(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),m(3,"Search term"),r(),f(4,"input",2),r(),a(5,"mat-form-field",1)(6,"mat-label"),m(7,"Sorting"),r(),a(8,"mat-select",3),C(9,St,2,2,"mat-option",4,g),r()()()),p&2&&(n(4),d("formControl",c.searchControl),n(4),d("formControl",c.sortControl),n(),h(c.npcSortOptions))},dependencies:[re,_e,st,Ze,pe,ge,me,qe,je,Ke],encapsulation:2});let e=i;return e})();var _t=new Map([["Spring",100],["Summer",200],["Fall",300],["Winter",400]]);function ye(e,i,t){switch(t){case"alphabetical":e=[...e].sort((o,p)=>{let c="characterName"in o?o.characterName:o.npc?.characterName??"",_="characterName"in p?p.characterName:p.npc?.characterName??"";return c.toLowerCase()==="universal"?1:_.toLowerCase()==="universal"?-1:c.localeCompare(_)});break;case"birthdate":e=[...e].sort((o,p)=>{let c="characterName"in o?o.characterName:o.npc?.characterName??"",_="characterName"in p?p.characterName:p.npc?.characterName??"";if(c.toLowerCase()==="universal")return 1;if(_.toLowerCase()==="universal")return-1;let P="npc"in o?o.npc?.birthday:o.birthday,S="npc"in p?p.npc?.birthday:p.birthday;if(!P&&S)return 1;if(P&&!S)return-1;if(!P&&!S)return 0;P=P,S=S;let v=(_t.get(P.season)??0)+P.day,y=(_t.get(S.season)??0)+S.day;return v-y});break}return i?e.filter(o=>("characterName"in o?o.characterName:o.npc?.characterName??"").toLowerCase().includes(i)):e}function wt(e,i){if(e&1){let t=$();a(0,"app-inline-minimal-item",4),M("click",function(){L(t);let p=l().$implicit,c=l(3);return V(c.itemClicked.emit(p.item))}),r()}if(e&2){let t=l().$implicit;d("minimalItem",t.item)}}function Ft(e,i){if(e&1&&(a(0,"span"),m(1),I(2,"addSpacesToPascalCase"),r()),e&2){let t=l().$implicit;n(),x("All ",N(2,1,t.categoryName),"")}}function kt(e,i){if(e&1&&u(0,wt,1,1,"app-inline-minimal-item",3)(1,Ft,3,3,"span"),e&2){let t=i.$implicit;s(t.type==="item"?0:-1),n(),s(t.type==="category"?1:-1)}}function Dt(e,i){if(e&1&&(a(0,"div",0),f(1,"app-ui-icon",1),m(2),r(),a(3,"div",2),C(4,kt,2,2,null,null,g),r()),e&2){let t=l().$implicit,o=l();n(),d("uiIcon",t.icon),n(),x(" ",t.label," "),n(2),h(o.preferences[t.preferenceField])}}function Mt(e,i){if(e&1&&u(0,Dt,6,2),e&2){let t=i.$implicit,o=l();s(o.preferences[t.preferenceField].length?0:-1)}}var Ee=(()=>{let i=class i{constructor(){this.setCssClass=!0,this.itemClicked=new Ve,this.preferencesMap=lt}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-gifting-grid"]],hostVars:2,hostBindings:function(p,c){p&2&&q("gifting-preference-grid",c.setCssClass)},inputs:{preferences:"preferences"},outputs:{itemClicked:"itemClicked"},decls:2,vars:0,consts:[[1,"font-semibold","flex","items-center","sm:flex-col","sm:pr-10","mb-1","text-black"],[1,"!text-gifting","mr-1","sm:mr-0","!h-6","!w-6",3,"uiIcon"],[1,"gifting-gifts-grid"],[1,"cursor-pointer",3,"minimalItem"],[1,"cursor-pointer",3,"click","minimalItem"]],template:function(p,c){p&1&&C(0,Mt,1,1,null,null,g),p&2&&h(c.preferencesMap)},dependencies:[tt,A,Xe],styles:[`.gifting-preference-grid{margin-top:.25rem;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));font-size:1.25rem;line-height:1.75rem}@media (min-width: 640px){.gifting-preference-grid{row-gap:.75rem}}.gifting-gifts-grid{margin-top:.25rem;margin-bottom:1rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:.5rem}@media (min-width: 640px){.gifting-preference-grid{grid-template-columns:min-content 1fr}.gifting-gifts-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}} +import{a as dt}from"./chunk-KIVQXZUD.js";import"./chunk-DJJM56ZO.js";import"./chunk-QLCYA646.js";import{a as lt}from"./chunk-767JIGWH.js";import{a as st}from"./chunk-SPTPR4TH.js";import{f as mt}from"./chunk-Z4COKCZ7.js";import{a as le}from"./chunk-5Y7JXUU2.js";import{q as Q,r as W}from"./chunk-BPN5VRCO.js";import{a as ve}from"./chunk-TL6KPAQW.js";import{a as de,b as Qe}from"./chunk-43NKEY2U.js";import{$e as R,Ba as d,Bb as O,Da as q,E as Me,Ga as s,Gd as me,Ha as g,Hb as Oe,Ia as C,Ja as h,Jd as Ue,K as X,Ka as a,Kb as Ae,La as r,Ld as Re,Ma as f,Mb as oe,N as B,Nd as ze,Od as se,P as b,Q as Z,Qa as $,Qb as re,Qd as be,Sa as M,Ta as l,Td as A,Vd as fe,W as L,Wd as We,X as V,Xa as j,Xd as Ye,Yd as ue,_ as Pe,_c as pe,_e as it,ae as U,af as he,bb as ie,be as Je,cb as ne,cc as G,d as E,da as Le,db as K,df as z,e as F,eb as m,ef as nt,f as k,fa as Ve,fb as T,fe as Xe,gb as x,hb as Te,hf as ot,ie as Ze,if as rt,j as J,jf as at,kf as pt,la as n,le as _e,m as we,mf as xe,nb as He,nd as qe,ne as ge,p as Fe,pb as Be,qb as $e,qe as et,rb as I,rd as je,sa as Ge,sb as N,se as Ce,sf as ct,ta as ee,u as ke,ua as te,uc as ae,v as De,wd as ce,xa as u,xe as tt,zd as Ke}from"./chunk-PYTDIKHQ.js";var ft=(()=>{let i=class i{constructor(){this.uiIcons=G,this.isNPCListActive=!1,this.router=B(ze),this.updateIsNPCListActive(this.router.url),this.router.events.pipe(it(),ke(o=>o instanceof Ue)).subscribe({next:o=>{this.updateIsNPCListActive(o.urlAfterRedirects)}})}updateIsNPCListActive(o){this.isNPCListActive=o.startsWith("/npcs/")&&!o.includes("overview")&&!o.includes("gifting")}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-people"]],decls:7,vars:3,consts:[["routerLink","overview",3,"active","uiIcon"],["routerLink","gifting",3,"uiIcon"],[1,"hidden"]],template:function(p,c){p&1&&(a(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),m(3,"NPC List "),r(),a(4,"app-module-sidebar-item",1),m(5,"Gifting"),r()(),f(6,"router-outlet",2),r()),p&2&&(n(2),d("active",c.isNPCListActive)("uiIcon",c.uiIcons.NEUTRAL),n(2),d("uiIcon",c.uiIcons.GIFTING))},dependencies:[Re,se,Ye,We,et],encapsulation:2});let e=i;return e})();var Ie=[{displayName:"Default",value:"default"},{displayName:"Alphabetical",value:"alphabetical"},{displayName:"Birthdate",value:"birthdate"}],Yi=Ie.map(e=>e.value);function St(e,i){if(e&1&&(a(0,"mat-option",4),m(1),r()),e&2){let t=i.$implicit;d("value",t.value),n(),T(t.displayName)}}var D=(()=>{let i=class i{constructor(){this.searchControl=new ce("",{nonNullable:!0}),this.sortControl=new ce("default",{nonNullable:!0}),this.sortOrderControl=new ce("asc",{nonNullable:!0}),this.searchValueChanges=R(this.searchControl.valueChanges,{initialValue:""}),this.sortValueChanges=R(this.sortControl.valueChanges,{initialValue:"default"}),this.sortOrderValueChanges=R(this.sortOrderControl.valueChanges,{initialValue:"asc"}),this.npcSortOptions=Ie}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-npc-filter"]],standalone:!0,features:[He],decls:11,vars:2,consts:[[1,"mb-5","flex","gap-x-3","gap-y-4","flex-wrap"],[1,"semi-transparent-form-field","grow","lg:grow-0","shrink-0","basis-auto"],["matInput","",3,"formControl"],["disableOptionCentering","",3,"formControl"],[3,"value"]],template:function(p,c){p&1&&(a(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),m(3,"Search term"),r(),f(4,"input",2),r(),a(5,"mat-form-field",1)(6,"mat-label"),m(7,"Sorting"),r(),a(8,"mat-select",3),C(9,St,2,2,"mat-option",4,g),r()()()),p&2&&(n(4),d("formControl",c.searchControl),n(4),d("formControl",c.sortControl),n(),h(c.npcSortOptions))},dependencies:[re,_e,st,Ze,pe,ge,me,qe,je,Ke],encapsulation:2});let e=i;return e})();var _t=new Map([["Spring",100],["Summer",200],["Fall",300],["Winter",400]]);function ye(e,i,t){switch(t){case"alphabetical":e=[...e].sort((o,p)=>{let c="characterName"in o?o.characterName:o.npc?.characterName??"",_="characterName"in p?p.characterName:p.npc?.characterName??"";return c.toLowerCase()==="universal"?1:_.toLowerCase()==="universal"?-1:c.localeCompare(_)});break;case"birthdate":e=[...e].sort((o,p)=>{let c="characterName"in o?o.characterName:o.npc?.characterName??"",_="characterName"in p?p.characterName:p.npc?.characterName??"";if(c.toLowerCase()==="universal")return 1;if(_.toLowerCase()==="universal")return-1;let P="npc"in o?o.npc?.birthday:o.birthday,S="npc"in p?p.npc?.birthday:p.birthday;if(!P&&S)return 1;if(P&&!S)return-1;if(!P&&!S)return 0;P=P,S=S;let v=(_t.get(P.season)??0)+P.day,y=(_t.get(S.season)??0)+S.day;return v-y});break}return i?e.filter(o=>("characterName"in o?o.characterName:o.npc?.characterName??"").toLowerCase().includes(i)):e}function wt(e,i){if(e&1){let t=$();a(0,"app-inline-minimal-item",4),M("click",function(){L(t);let p=l().$implicit,c=l(3);return V(c.itemClicked.emit(p.item))}),r()}if(e&2){let t=l().$implicit;d("minimalItem",t.item)}}function Ft(e,i){if(e&1&&(a(0,"span"),m(1),I(2,"addSpacesToPascalCase"),r()),e&2){let t=l().$implicit;n(),x("All ",N(2,1,t.categoryName),"")}}function kt(e,i){if(e&1&&u(0,wt,1,1,"app-inline-minimal-item",3)(1,Ft,3,3,"span"),e&2){let t=i.$implicit;s(t.type==="item"?0:-1),n(),s(t.type==="category"?1:-1)}}function Dt(e,i){if(e&1&&(a(0,"div",0),f(1,"app-ui-icon",1),m(2),r(),a(3,"div",2),C(4,kt,2,2,null,null,g),r()),e&2){let t=l().$implicit,o=l();n(),d("uiIcon",t.icon),n(),x(" ",t.label," "),n(2),h(o.preferences[t.preferenceField])}}function Mt(e,i){if(e&1&&u(0,Dt,6,2),e&2){let t=i.$implicit,o=l();s(o.preferences[t.preferenceField].length?0:-1)}}var Ee=(()=>{let i=class i{constructor(){this.setCssClass=!0,this.itemClicked=new Ve,this.preferencesMap=lt}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-gifting-grid"]],hostVars:2,hostBindings:function(p,c){p&2&&q("gifting-preference-grid",c.setCssClass)},inputs:{preferences:"preferences"},outputs:{itemClicked:"itemClicked"},decls:2,vars:0,consts:[[1,"font-semibold","flex","items-center","sm:flex-col","sm:pr-10","mb-1","text-black"],[1,"!text-gifting","mr-1","sm:mr-0","!h-6","!w-6",3,"uiIcon"],[1,"gifting-gifts-grid"],[1,"cursor-pointer",3,"minimalItem"],[1,"cursor-pointer",3,"click","minimalItem"]],template:function(p,c){p&1&&C(0,Mt,1,1,null,null,g),p&2&&h(c.preferencesMap)},dependencies:[tt,A,Xe],styles:[`.gifting-preference-grid{margin-top:.25rem;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));font-size:1.25rem;line-height:1.75rem}@media (min-width: 640px){.gifting-preference-grid{row-gap:.75rem}}.gifting-gifts-grid{margin-top:.25rem;margin-bottom:1rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:.5rem}@media (min-width: 640px){.gifting-preference-grid{grid-template-columns:min-content 1fr}.gifting-gifts-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}} `],encapsulation:2});let e=i;return e})();function Ot(e,i){if(e&1&&f(0,"app-offering",4),e&2){let t=i.$implicit;d("details",t)}}function At(e,i){if(e&1&&(a(0,"app-item-card-switch",1),u(1,Ot,1,1,"ng-template",3),r()),e&2){let t=l();d("item",t.selectedEntity)}}function qt(e,i){if(e&1&&f(0,"app-ui-icon",13),e&2){let t=l(2).$implicit,o=l(2);j("matTooltip","",t.npc==null?null:t.npc.characterName," is dateable"),d("uiIcon",o.uiIcon.LOVE)}}function jt(e,i){if(e&1&&(a(0,"div",14),f(1,"app-ui-icon",15),m(2),I(3,"ingameDate"),r()),e&2){let t=l(2).$implicit,o=l(2);n(),d("uiIcon",o.uiIcon.BIRTHDAY),n(),x(" ",N(3,2,t.npc.birthday)," ")}}function Kt(e,i){if(e&1&&(f(0,"app-item-icon",10),a(1,"div",11)(2,"div",12),m(3),u(4,qt,1,3,"app-ui-icon",13),r(),u(5,jt,4,4,"div",14),r()),e&2){let t=l().$implicit;d("itemName",t.preferences.npc.iconName),n(3),x(" ",t.preferences.npc.characterName," "),n(),s(t.npc!=null&&t.npc.isDateable?4:-1),n(),s(t.npc&&t.npc.birthday?5:-1)}}function Ut(e,i){e&1&&m(0," Universal ")}function Rt(e,i){if(e&1){let t=$();a(0,"app-expandable",5,0)(2,"div",6),M("click",function(){L(t);let p=K(1);return V(p.toggle())}),a(3,"div",7),u(4,Kt,6,4)(5,Ut,1,0),r(),f(6,"i",8),r(),a(7,"app-gifting-grid",9),M("itemClicked",function(p){L(t);let c=l(2);return V(c.showDetails(p))}),r()()}if(e&2){let t=i.$implicit,o=K(1);n(4),s(t.preferences.npc?4:-1),n(),s(t.preferences.mapKey==="ci_universal"?5:-1),n(),q("down",!o.open)("translate-y-[-3px]",o.open)("up",o.open),n(),d("preferences",t.preferences)}}function zt(e,i){if(e&1&&(a(0,"app-card",2),C(1,Rt,8,9,"app-expandable",5,g),r()),e&2){let t=l();n(),h(t.filteredAndSortedNpcs())}}var xt=(()=>{var i,t,o,p,c;let _=class _ extends he{constructor(){super();F(this,i);F(this,t);F(this,o);F(this,p);F(this,c);this.npcFilter=ee(D),this.uiIcon=G,k(this,i,O(()=>this.npcFilter()?.searchValueChanges()??"")),k(this,t,O(()=>this.npcFilter()?.sortValueChanges()??"default")),k(this,o,ye),k(this,p,Ge(void 0)),this.filteredAndSortedNpcs=O(()=>{let v=E(this,p).call(this)??[];if(!E(this,i)||!E(this,t))return v;let y=E(this,i).call(this).toLowerCase(),w=E(this,t).call(this);return E(this,o).call(this,v,y,w)}),k(this,c,B(ae)),this.gifting$=Fe({gifts:E(this,c).fetchGiftingPreferences$(),npcs:E(this,c).fetchNPCs$()}).pipe(Me(({gifts:v,npcs:y})=>{let w=v.map(Y=>({preferences:Y,npc:y.find(It=>It.key===Y.mapKey)}));return E(this,p)?.set(w),J(w)}))}};i=new WeakMap,t=new WeakMap,o=new WeakMap,p=new WeakMap,c=new WeakMap,_.\u0275fac=function(y){return new(y||_)},_.\u0275cmp=b({type:_,selectors:[["app-gifting"]],viewQuery:function(y,w){y&1&&ie(w.npcFilter,D,5),y&2&&ne()},features:[te],decls:5,vars:4,consts:[["expandableComponent",""],["listDetail","",3,"item"],[1,"text-xl"],["appDatabaseItemDetails",""],[3,"details"],["open","",1,"mb-8"],["expandableHeader","",1,"flex","justify-between","items-center","cursor-pointer",3,"click"],[1,"text-2xl","text-black","font-semibold","flex","items-center","gifting-portrait"],[1,"arrow"],[3,"itemClicked","preferences"],[1,"h-16","mr-3",3,"itemName"],[1,"flex","flex-col"],[1,"flex","gap-2","items-center"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon","matTooltip"],[1,"text-lg","flex","gap-2"],[1,"!h-6","!w-6",3,"uiIcon"]],template:function(y,w){if(y&1&&(a(0,"app-list-detail-container"),u(1,At,2,1,"app-item-card-switch",1),f(2,"app-npc-filter"),u(3,zt,3,0,"app-card",2),I(4,"async"),r()),y&2){let Y;n(),s(w.selectedEntity?1:-1),n(2),s((Y=N(4,2,w.gifting$))?3:-1,Y)}},dependencies:[fe,ue,Ce,xe,U,D,ve,Q,W,A,Ee,Ae,z],styles:[`.gifting-portrait .app-item-icon>img{width:auto;height:100%;aspect-ratio:unset} -`],encapsulation:2});let e=_;return e})();var Wt=e=>["..",e],Yt=(e,i)=>({"line-clamp-2":e,"line-clamp-1":i});function Jt(e,i){if(e&1&&f(0,"app-ui-icon",11),e&2){let t=l().$implicit,o=l(2);j("matTooltip","",t.characterName," is dateable"),d("uiIcon",o.uiIcon.LOVE)}}function Xt(e,i){if(e&1&&(a(0,"div",12),f(1,"app-ui-icon",15),m(2),I(3,"ingameDate"),r()),e&2){let t=l().$implicit,o=l(2);n(),d("uiIcon",o.uiIcon.BIRTHDAY),n(),x(" ",N(3,2,t.birthday)," ")}}function Zt(e,i){e&1&&(a(0,"div",14),m(1,"unofficial head portrait"),r())}function ei(e,i){if(e&1&&(a(0,"a",4),f(1,"div",5),a(2,"div",6),f(3,"app-npc-head-portrait",7),r(),a(4,"div",8)(5,"div",9)(6,"span",10),m(7),r(),u(8,Jt,1,3,"app-ui-icon",11),r(),u(9,Xt,4,4,"div",12),a(10,"div",13),m(11),r(),u(12,Zt,2,0,"div",14),r()()),e&2){let t=i.$implicit;d("routerLink",Be(9,Wt,t.key)),n(3),d("npcKey",t.key)("portraitName",t.headerPortraitFileName),n(4),T(t.characterName),n(),s(t.isDateable?8:-1),n(),s(t.birthday?9:-1),n(),d("ngClass",$e(11,Yt,!t.customHead,t.customHead)),n(),T(t.description),n(),s(t.customHead?12:-1)}}function ti(e,i){e&1&&(a(0,"div",2),C(1,ei,13,14,"a",4,g),r()),e&2&&(n(),h(i))}function ii(e,i){e&1&&f(0,"mat-spinner",3)}var vt=(()=>{var i,t,o,p,c;let _=class _{constructor(){F(this,i);F(this,t);F(this,o);F(this,p);F(this,c);this.npcFilter=ee(D),this.uiIcon=G,k(this,i,O(()=>this.npcFilter()?.searchValueChanges()??"")),k(this,t,O(()=>this.npcFilter()?.sortValueChanges()??"default")),k(this,o,ye),this.filteredAndSortedNpcs=O(()=>{let S=E(this,p).call(this)??[];if(!E(this,i)||!E(this,t))return S;let v=E(this,i).call(this).toLowerCase(),y=E(this,t).call(this);return E(this,o).call(this,S,v,y)}),k(this,c,B(ae)),k(this,p,R(E(this,c).fetchNPCs$().pipe(De(()=>J([])))))}};i=new WeakMap,t=new WeakMap,o=new WeakMap,p=new WeakMap,c=new WeakMap,_.\u0275fac=function(v){return new(v||_)},_.\u0275cmp=b({type:_,selectors:[["app-npc-list"]],viewQuery:function(v,y){v&1&&ie(y.npcFilter,D,5),v&2&&ne()},decls:4,vars:1,consts:[[1,"px-main-hz","py-main-vt"],[1,"z-30","relative"],[1,"grid","npc-list-grid","gap-x-4","gap-y-10"],[1,"mx-auto"],[1,"flex","bg-[#F5F1E6]","rounded-[30px]","npc-list-entry","group","relative",3,"routerLink"],[1,"frame","absolute","inset-0","rounded-[30px]","z-10","pointer-events-none"],[1,"basis-2/5","aspect-square","bg-[#F1E1CC]","rounded-l-[30px]","group-hover:bg-[#F2DBB7]"],[1,"z-20","flex","h-full","relative","rounded-l-[30px]",3,"npcKey","portraitName"],[1,"basis-3/5","p-2","flex","flex-col"],[1,"inline-flex","gap-2","mt-3","items-center"],[1,"text-black","font-semibold","text-2xl"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon","matTooltip"],[1,"text-lg","flex","gap-2","items-center"],[3,"ngClass"],["clasS","mt-auto"],[1,"!w-5","!h-5",3,"uiIcon"]],template:function(v,y){if(v&1&&(a(0,"div",0),f(1,"app-npc-filter",1),u(2,ti,3,0,"div",2)(3,ii,1,0,"mat-spinner",3),r()),v&2){let w;n(2),s((w=y.filteredAndSortedNpcs())?2:3,w)}},dependencies:[Oe,se,rt,U,de,D,A,z],styles:[`.npc-list-entry .npc-head-portrait{display:flex;align-items:flex-end}.npc-list-entry .npc-head-portrait img{object-fit:cover;object-position:bottom;border-top-left-radius:30px;border-bottom-left-radius:30px;height:110%;margin-top:-9.0909090909%}.frame{box-shadow:inset 0 0 1px #e4b383;transition:box-shadow .2s ease-out}.npc-list-entry:hover .frame{box-shadow:inset 0 0 1px 10px #e4b383}.npc-list-entry:hover .npc-head-portrait img{height:120%;margin-top:-18.1818181818%}.npc-list-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))} +`],encapsulation:2});let e=_;return e})();var Wt=e=>["..",e],Yt=(e,i)=>({"line-clamp-2":e,"line-clamp-1":i});function Jt(e,i){if(e&1&&f(0,"app-ui-icon",11),e&2){let t=l().$implicit,o=l(2);j("matTooltip","",t.characterName," is dateable"),d("uiIcon",o.uiIcon.LOVE)}}function Xt(e,i){if(e&1&&(a(0,"div",12),f(1,"app-ui-icon",15),m(2),I(3,"ingameDate"),r()),e&2){let t=l().$implicit,o=l(2);n(),d("uiIcon",o.uiIcon.BIRTHDAY),n(),x(" ",N(3,2,t.birthday)," ")}}function Zt(e,i){e&1&&(a(0,"div",14),m(1,"unofficial head portrait"),r())}function ei(e,i){if(e&1&&(a(0,"a",4),f(1,"div",5),a(2,"div",6),f(3,"app-npc-head-portrait",7),r(),a(4,"div",8)(5,"div",9)(6,"span",10),m(7),r(),u(8,Jt,1,3,"app-ui-icon",11),r(),u(9,Xt,4,4,"div",12),a(10,"div",13),m(11),r(),u(12,Zt,2,0,"div",14),r()()),e&2){let t=i.$implicit;d("routerLink",Be(9,Wt,t.key)),n(3),d("npcKey",t.key)("portraitName",t.headerPortraitFileName),n(4),T(t.characterName),n(),s(t.isDateable?8:-1),n(),s(t.birthday?9:-1),n(),d("ngClass",$e(11,Yt,!t.customHead,t.customHead)),n(),T(t.description),n(),s(t.customHead?12:-1)}}function ti(e,i){e&1&&(a(0,"div",2),C(1,ei,13,14,"a",4,g),r()),e&2&&(n(),h(i))}function ii(e,i){e&1&&f(0,"mat-spinner",3)}var vt=(()=>{var i,t,o,p,c;let _=class _{constructor(){F(this,i);F(this,t);F(this,o);F(this,p);F(this,c);this.npcFilter=ee(D),this.uiIcon=G,k(this,i,O(()=>this.npcFilter()?.searchValueChanges()??"")),k(this,t,O(()=>this.npcFilter()?.sortValueChanges()??"default")),k(this,o,ye),this.filteredAndSortedNpcs=O(()=>{let S=E(this,p).call(this)??[];if(!E(this,i)||!E(this,t))return S;let v=E(this,i).call(this).toLowerCase(),y=E(this,t).call(this);return E(this,o).call(this,S,v,y)}),k(this,c,B(ae)),k(this,p,R(E(this,c).fetchNPCs$().pipe(De(()=>J([])))))}};i=new WeakMap,t=new WeakMap,o=new WeakMap,p=new WeakMap,c=new WeakMap,_.\u0275fac=function(v){return new(v||_)},_.\u0275cmp=b({type:_,selectors:[["app-npc-list"]],viewQuery:function(v,y){v&1&&ie(y.npcFilter,D,5),v&2&&ne()},decls:4,vars:1,consts:[[1,"px-main-hz","py-main-vt"],[1,"z-30","relative"],[1,"grid","npc-list-grid","gap-x-4","gap-y-10"],[1,"mx-auto","text-white"],[1,"flex","bg-[#F5F1E6]","rounded-[30px]","npc-list-entry","group","relative",3,"routerLink"],[1,"frame","absolute","inset-0","rounded-[30px]","z-10","pointer-events-none"],[1,"basis-2/5","aspect-square","bg-[#F1E1CC]","rounded-l-[30px]","group-hover:bg-[#F2DBB7]"],[1,"z-20","flex","h-full","relative","rounded-l-[30px]",3,"npcKey","portraitName"],[1,"basis-3/5","p-2","flex","flex-col"],[1,"inline-flex","gap-2","mt-3","items-center"],[1,"text-black","font-semibold","text-2xl"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon","matTooltip"],[1,"text-lg","flex","gap-2","items-center"],[3,"ngClass"],["clasS","mt-auto"],[1,"!w-5","!h-5",3,"uiIcon"]],template:function(v,y){if(v&1&&(a(0,"div",0),f(1,"app-npc-filter",1),u(2,ti,3,0,"div",2)(3,ii,1,0,"mat-spinner",3),r()),v&2){let w;n(2),s((w=y.filteredAndSortedNpcs())?2:3,w)}},dependencies:[Oe,se,rt,U,de,D,A,z],styles:[`.npc-list-entry .npc-head-portrait{display:flex;align-items:flex-end}.npc-list-entry .npc-head-portrait img{object-fit:cover;object-position:bottom;border-top-left-radius:30px;border-bottom-left-radius:30px;height:110%;margin-top:-9.0909090909%}.frame{box-shadow:inset 0 0 1px #e4b383;transition:box-shadow .2s ease-out}.npc-list-entry:hover .frame{box-shadow:inset 0 0 1px 10px #e4b383}.npc-list-entry:hover .npc-head-portrait img{height:120%;margin-top:-18.1818181818%}.npc-list-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))} `],encapsulation:2});let e=_;return e})();function ni(e,i){if(e&1&&(a(0,"div",3),m(1),r()),e&2){let t=i.$implicit;n(),Te("",t.key," : ",t.value?"Has to be seen":"Has to be unseen"," ")}}function oi(e,i){if(e&1&&(C(0,ni,2,2,"div",3,g),I(2,"keyvalue")),e&2){let t=i.$implicit;h(N(2,0,t))}}function ri(e,i){if(e&1&&(a(0,"div"),m(1,"Other cutscenes requirements: "),C(2,oi,3,2,null,null,g),r()),e&2){let t=l();n(2),h(t.heartEventTrigger.otherCutscenesState)}}function ai(e,i){if(e&1&&(a(0,"div"),m(1,"Only on days: "),a(2,"span",3),m(3),r()()),e&2){let t=l();n(3),T(t.heartEventTrigger.specificDay.join(", "))}}function pi(e,i){if(e&1&&(a(0,"div"),m(1,"Only in seasons: "),a(2,"span",3),m(3),r()()),e&2){let t=l();n(3),T(t.heartEventTrigger.specificMonth.join(", "))}}function ci(e,i){if(e&1&&(a(0,"div"),m(1,"Only with weather: "),a(2,"span",3),m(3),r()()),e&2){let t=l();n(3),T(t.heartEventTrigger.specificWeather.join(", "))}}function mi(e,i){if(e&1&&f(0,"app-effect",7),e&2){let t=i.$implicit;d("effect",t)}}function li(e,i){if(e&1&&(a(0,"div",4)(1,"span",5),m(2,"Effects when seen"),r(),a(3,"div",6),C(4,mi,1,1,"app-effect",7,g),r()()),e&2){let t=l();n(4),h(t.heartEventTrigger.effects)}}function si(e,i){if(e&1&&m(0),e&2){let t=l(2);x(" Unlock requirements (",t.heartEventTrigger.requirements.type==="And"?"all":"any"," of them): ")}}function di(e,i){e&1&&m(0," Unlock requirement: ")}function fi(e,i){if(e&1&&f(0,"app-requirements",8),e&2){let t=i.$implicit;d("requirement",t)}}function ui(e,i){if(e&1&&(a(0,"div",4)(1,"span",5),u(2,si,1,1)(3,di,1,0),r(),a(4,"div",6),C(5,fi,1,1,"app-requirements",8,g),r()()),e&2){let t=l();n(2),s(t.heartEventTrigger.requirements.requirements.length>1?2:-1),n(),s(t.heartEventTrigger.requirements.requirements.length<2?3:-1),n(2),h(t.heartEventTrigger.requirements.requirements)}}var yt=(()=>{let i=class i{constructor(){this.heartEventChecklist=B(dt)}toggleHeartEvent(o){o?this.heartEventChecklist.add(this.heartEventTrigger.cutscene):this.heartEventChecklist.remove(this.heartEventTrigger.cutscene)}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-heart-event-trigger"]],inputs:{heartEventTrigger:"heartEventTrigger"},decls:32,vars:18,consts:[[1,"flex","justify-between","text-black","mb-1"],[1,"flex","flex-col"],[3,"change","checked"],[1,"text-black"],[1,"my-4"],[1,"text-lg","text-black"],[1,"flex","flex-col","text-black"],[3,"effect"],[3,"requirement"]],template:function(p,c){p&1&&(a(0,"header",0)(1,"div",1)(2,"h4"),m(3),r(),a(4,"span"),m(5),r()(),a(6,"mat-checkbox",2),M("change",function(P){return c.toggleHeartEvent(P.checked)}),m(7,"Cutscene seen "),r()(),a(8,"div"),m(9,"Enabled: "),a(10,"span",3),m(11),r()(),a(12,"div"),m(13,"Location: "),a(14,"span",3),m(15),r()(),a(16,"div"),m(17,"Day Time of day: "),a(18,"span",3),m(19),I(20,"ingameTime"),I(21,"ingameTime"),r()(),a(22,"div"),m(23,"Can trigger on the same day: "),a(24,"span",3),m(25),r()(),u(26,ri,4,0,"div")(27,ai,4,1,"div")(28,pi,4,1,"div")(29,ci,4,1,"div")(30,li,6,0,"div",4)(31,ui,7,2,"div",4)),p&2&&(n(3),T(c.heartEventTrigger.cutscene),n(2),x("Id: ",c.heartEventTrigger.id," "),n(),d("checked",c.heartEventChecklist.isChecked(c.heartEventTrigger.cutscene)),n(5),T(c.heartEventTrigger.enabled?"Yes":"No"),n(4),T(c.heartEventTrigger.location),n(4),Te(" ",N(20,14,c.heartEventTrigger.time.fromTime),"-",N(21,16,c.heartEventTrigger.time.toTime),` -`),n(6),T(c.heartEventTrigger.canTriggerSameDay?"Yes":"No"),n(),s(c.heartEventTrigger.otherCutscenesState.length?26:-1),n(),s(c.heartEventTrigger.specificDay.length?27:-1),n(),s(c.heartEventTrigger.specificMonth.length?28:-1),n(),s(c.heartEventTrigger.specificWeather.length?29:-1),n(),s(c.heartEventTrigger.effects&&c.heartEventTrigger.effects.length?30:-1),n(),s(c.heartEventTrigger.requirements&&c.heartEventTrigger.requirements.requirements.length?31:-1))},dependencies:[at,pt,le,oe,nt],styles:["[_nghost-%COMP%]{display:block}"]});let e=i;return e})();function gi(e,i){e&1&&f(0,"hr",5)}function Ci(e,i){if(e&1&&(f(0,"app-heart-event-trigger",4),u(1,gi,1,0,"hr",5)),e&2){let t=i.$implicit,o=i.$index,p=i.$count;q("mb-3",o===p-1),d("heartEventTrigger",t),n(),s(o!==p-1?1:-1)}}function hi(e,i){if(e&1){let t=$();a(0,"app-expandable",1,0)(2,"h3",2),M("click",function(){L(t);let p=K(1);return V(p.toggle())}),m(3),f(4,"i",3),r(),C(5,Ci,2,4,null,null,g),r()}if(e&2){let t=i.$implicit,o=K(1);n(3),x(" ",t.heartLevel," hearts event "),n(),q("down",!o.open)("up",o.open),n(),h(t.trigger)}}var Et=(()=>{let i=class i{};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-heart-events"]],inputs:{heartEvents:"heartEvents"},decls:2,vars:0,consts:[["expandable",""],[1,"bg-amber-50/70","px-4","rounded-lg","mb-3","shadow-sm"],["expandableHeader","",1,"text-xl","text-black","flex","items-center","justify-between","cursor-pointer","py-4",3,"click"],[1,"arrow"],[3,"heartEventTrigger"],[1,"my-3"]],template:function(p,c){p&1&&C(0,hi,7,5,"app-expandable",1,g),p&2&&h(c.heartEvents)},dependencies:[xe,yt],encapsulation:2});let e=i;return e})();function vi(e,i){if(e&1&&f(0,"app-offering",3),e&2){let t=i.$implicit;d("details",t)}}function yi(e,i){if(e&1&&(a(0,"app-item-card-switch",0),u(1,vi,1,1,"ng-template",2),r()),e&2){let t=l();d("item",t.selectedEntity)}}function Ei(e,i){if(e&1&&f(0,"app-ui-icon",8),e&2){let t=l(2);j("matTooltip","",t.npc.characterName," is dateable"),d("uiIcon",t.uiIcon.LOVE)}}function Ti(e,i){if(e&1&&(a(0,"div",9),f(1,"app-ui-icon",16),m(2),I(3,"ingameDate"),r()),e&2){let t=l(2);n(),d("uiIcon",t.uiIcon.BIRTHDAY),n(),x(" ",N(3,2,t.npc.birthday)," ")}}function bi(e,i){if(e&1&&(a(0,"p",10),m(1),r()),e&2){let t=l(2);n(),T(t.npc.description)}}function Ii(e,i){if(e&1){let t=$();a(0,"app-gifting-grid",17),M("itemClicked",function(p){L(t);let c=l(2);return V(c.showDetails(p))}),r()}if(e&2){let t=l(2);d("preferences",t.giftingPreferences)}}function Ni(e,i){if(e&1&&(a(0,"p",14),m(1),r()),e&2){let t=l(2);n(),x(" ",t.npc.characterName," has no specialized preferences. ")}}function Si(e,i){if(e&1&&f(0,"app-heart-events",15),e&2){let t=l(2);d("heartEvents",t.heartEvents)}}function wi(e,i){if(e&1&&(a(0,"p",14),m(1),r()),e&2){let t=l(2);n(),x(" ",t.npc.characterName," has no heart events. ")}}function Fi(e,i){if(e&1&&(a(0,"h3",18),m(1),r()),e&2){let t=l().$implicit;n(),x(" ",t.appearanceCategory," ")}}function ki(e,i){if(e&1&&(a(0,"div",22),f(1,"app-npc-portrait",23),a(2,"span",24),m(3),r()()),e&2){let t=i.$implicit,o=l(6);n(),d("npcKey",o.npc.key)("portraitName",t.value),n(2),T(t.key)}}function Di(e,i){if(e&1&&(a(0,"div",19)(1,"h4",20),m(2),r(),a(3,"div",21),C(4,ki,4,3,"div",22,g),I(6,"keyvalue"),r()()),e&2){let t=i.$implicit;n(2),T(t.key),n(2),h(N(6,1,t.value))}}function Mi(e,i){if(e&1&&C(0,Di,7,3,"div",19,g),e&2){let t=l();h(t)}}function Pi(e,i){if(e&1&&(a(0,"p",14),m(1),r()),e&2){let t=l(4);n(),x(" ",t.npc.characterName," has no appearances. ")}}function Li(e,i){if(e&1&&u(0,Mi,2,0)(1,Pi,2,1,"p",14),e&2){let t=i;s(t.length?0:-1),n(),s(t.length?-1:1)}}function Vi(e,i){if(e&1&&(u(0,Fi,2,1,"h3",18)(1,Li,2,2),I(2,"keyvalue")),e&2){let t,o=i.$implicit;s(o.appearanceCategory?0:-1),n(),s((t=N(2,2,o.appearances))?1:-1,t)}}function Gi(e,i){if(e&1&&(a(0,"app-card")(1,"div",4),f(2,"app-item-icon",5),a(3,"div",6)(4,"div",7),m(5),u(6,Ei,1,3,"app-ui-icon",8),r(),u(7,Ti,4,4,"div",9),r()(),u(8,bi,2,1,"p",10),r(),a(9,"app-card",11)(10,"h2",12),m(11," Gifting "),r(),u(12,Ii,1,1,"app-gifting-grid",13)(13,Ni,2,1,"p",14),r(),a(14,"app-card",11)(15,"h2",12),m(16," Heart events "),r(),u(17,Si,1,1,"app-heart-events",15)(18,wi,2,1,"p",14),r(),a(19,"app-card",11)(20,"h2",12),m(21," Appearances "),r(),C(22,Vi,3,4,null,null,g),r()),e&2){let t=l();n(2),d("itemName",t.npc.iconName),n(3),x(" ",t.npc.characterName," "),n(),s(t.npc.isDateable?6:-1),n(),s(t.npc.birthday?7:-1),n(),s(t.npc.description?8:-1),n(4),s(t.giftingPreferences?12:-1),n(),s(t.giftingPreferences?-1:13),n(4),s(t.heartEvents.length?17:-1),n(),s(t.heartEvents.length?-1:18),n(4),h(t.npc.appearances)}}function Hi(e,i){e&1&&(a(0,"app-card")(1,"h1",25),m(2," NPC not found. "),r()())}function Bi(e,i){e&1&&f(0,"mat-spinner",1)}var Tt=(()=>{let i=class i extends he{constructor(){super(...arguments),this.npcKey=Le.required(),this.npc=null,this.heartEvents=[],this.UiIcon=G,this.uiIcon=G}ngOnInit(){we([this._database.fetchNPCs$(),this._database.fetchHeartEvents$(),this._database.fetchGiftingPreferences$()]).subscribe({next:([o,p,c])=>{this.npc=o.find(_=>_.key.toLowerCase()===this.npcKey().toLowerCase()),this.heartEvents=p[this.npcKey().toLowerCase()]??[],this.giftingPreferences=c.find(_=>_.mapKey.toLowerCase()===this.npc?.key.toLowerCase())}})}};i.\u0275fac=(()=>{let o;return function(c){return(o||(o=Pe(i)))(c||i)}})(),i.\u0275cmp=b({type:i,selectors:[["app-npc"]],inputs:{npcKey:[1,"npcKey"]},features:[te],decls:5,vars:2,consts:[["listDetail","",3,"item"],[1,"mx-auto"],["appDatabaseItemDetails",""],[3,"details"],[1,"text-2xl","text-black","font-semibold","flex","items-center","gifting-portrait"],[1,"h-16","mr-3",3,"itemName"],[1,"flex","flex-col"],[1,"flex","gap-2","items-center"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon","matTooltip"],[1,"text-lg","flex","gap-2"],[1,"mt-2"],[1,"mt-6"],[1,"mb-4","font-semibold","text-2xl","text-black"],[3,"preferences"],[1,"text-black","text-lg"],[3,"heartEvents"],[1,"!h-6","!w-6",3,"uiIcon"],[3,"itemClicked","preferences"],[1,"mb-4","font-semibold","text-xl","text-black"],[1,"font-semibold","text-black","mb-6"],[1,"text-lg"],[1,"grid","portrait-grid","gap-4"],[1,"flex","flex-col","shadow-lg","p-2"],[1,"h-[400px]","flex","items-end","justify-center",3,"npcKey","portraitName"],[1,""],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"]],template:function(p,c){p&1&&(a(0,"app-list-detail-container"),u(1,yi,2,1,"app-item-card-switch",0)(2,Gi,24,9)(3,Hi,3,0,"app-card")(4,Bi,1,0,"mat-spinner",1),r()),p&2&&(n(),s(c.selectedEntity?1:-1),n(),s(c.npc?2:c.npc===void 0?3:c.npc===null?4:-1))},dependencies:[fe,ue,Ce,ot,U,de,ve,Q,W,A,Et,Ee,oe,z],styles:[`.gifting-portrait .app-item-icon>img{width:auto;height:100%;aspect-ratio:unset}.portrait-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.portrait-grid .npc-portrait img{max-height:400px}@media (min-width: 1280px){.portrait-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}} +`),n(6),T(c.heartEventTrigger.canTriggerSameDay?"Yes":"No"),n(),s(c.heartEventTrigger.otherCutscenesState.length?26:-1),n(),s(c.heartEventTrigger.specificDay.length?27:-1),n(),s(c.heartEventTrigger.specificMonth.length?28:-1),n(),s(c.heartEventTrigger.specificWeather.length?29:-1),n(),s(c.heartEventTrigger.effects&&c.heartEventTrigger.effects.length?30:-1),n(),s(c.heartEventTrigger.requirements&&c.heartEventTrigger.requirements.requirements.length?31:-1))},dependencies:[at,pt,le,oe,nt],styles:["[_nghost-%COMP%]{display:block}"]});let e=i;return e})();function gi(e,i){e&1&&f(0,"hr",5)}function Ci(e,i){if(e&1&&(f(0,"app-heart-event-trigger",4),u(1,gi,1,0,"hr",5)),e&2){let t=i.$implicit,o=i.$index,p=i.$count;q("mb-3",o===p-1),d("heartEventTrigger",t),n(),s(o!==p-1?1:-1)}}function hi(e,i){if(e&1){let t=$();a(0,"app-expandable",1,0)(2,"h3",2),M("click",function(){L(t);let p=K(1);return V(p.toggle())}),m(3),f(4,"i",3),r(),C(5,Ci,2,4,null,null,g),r()}if(e&2){let t=i.$implicit,o=K(1);n(3),x(" ",t.heartLevel," hearts event "),n(),q("down",!o.open)("up",o.open),n(),h(t.trigger)}}var Et=(()=>{let i=class i{};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=b({type:i,selectors:[["app-heart-events"]],inputs:{heartEvents:"heartEvents"},decls:2,vars:0,consts:[["expandable",""],[1,"bg-amber-50/70","px-4","rounded-lg","mb-3","shadow-sm"],["expandableHeader","",1,"text-xl","text-black","flex","items-center","justify-between","cursor-pointer","py-4",3,"click"],[1,"arrow"],[3,"heartEventTrigger"],[1,"my-3"]],template:function(p,c){p&1&&C(0,hi,7,5,"app-expandable",1,g),p&2&&h(c.heartEvents)},dependencies:[xe,yt],encapsulation:2});let e=i;return e})();function vi(e,i){if(e&1&&f(0,"app-offering",3),e&2){let t=i.$implicit;d("details",t)}}function yi(e,i){if(e&1&&(a(0,"app-item-card-switch",0),u(1,vi,1,1,"ng-template",2),r()),e&2){let t=l();d("item",t.selectedEntity)}}function Ei(e,i){if(e&1&&f(0,"app-ui-icon",8),e&2){let t=l(2);j("matTooltip","",t.npc.characterName," is dateable"),d("uiIcon",t.uiIcon.LOVE)}}function Ti(e,i){if(e&1&&(a(0,"div",9),f(1,"app-ui-icon",16),m(2),I(3,"ingameDate"),r()),e&2){let t=l(2);n(),d("uiIcon",t.uiIcon.BIRTHDAY),n(),x(" ",N(3,2,t.npc.birthday)," ")}}function bi(e,i){if(e&1&&(a(0,"p",10),m(1),r()),e&2){let t=l(2);n(),T(t.npc.description)}}function Ii(e,i){if(e&1){let t=$();a(0,"app-gifting-grid",17),M("itemClicked",function(p){L(t);let c=l(2);return V(c.showDetails(p))}),r()}if(e&2){let t=l(2);d("preferences",t.giftingPreferences)}}function Ni(e,i){if(e&1&&(a(0,"p",14),m(1),r()),e&2){let t=l(2);n(),x(" ",t.npc.characterName," has no specialized preferences. ")}}function Si(e,i){if(e&1&&f(0,"app-heart-events",15),e&2){let t=l(2);d("heartEvents",t.heartEvents)}}function wi(e,i){if(e&1&&(a(0,"p",14),m(1),r()),e&2){let t=l(2);n(),x(" ",t.npc.characterName," has no heart events. ")}}function Fi(e,i){if(e&1&&(a(0,"h3",18),m(1),r()),e&2){let t=l().$implicit;n(),x(" ",t.appearanceCategory," ")}}function ki(e,i){if(e&1&&(a(0,"div",22),f(1,"app-npc-portrait",23),a(2,"span",24),m(3),r()()),e&2){let t=i.$implicit,o=l(6);n(),d("npcKey",o.npc.key)("portraitName",t.value),n(2),T(t.key)}}function Di(e,i){if(e&1&&(a(0,"div",19)(1,"h4",20),m(2),r(),a(3,"div",21),C(4,ki,4,3,"div",22,g),I(6,"keyvalue"),r()()),e&2){let t=i.$implicit;n(2),T(t.key),n(2),h(N(6,1,t.value))}}function Mi(e,i){if(e&1&&C(0,Di,7,3,"div",19,g),e&2){let t=l();h(t)}}function Pi(e,i){if(e&1&&(a(0,"p",14),m(1),r()),e&2){let t=l(4);n(),x(" ",t.npc.characterName," has no appearances. ")}}function Li(e,i){if(e&1&&u(0,Mi,2,0)(1,Pi,2,1,"p",14),e&2){let t=i;s(t.length?0:-1),n(),s(t.length?-1:1)}}function Vi(e,i){if(e&1&&(u(0,Fi,2,1,"h3",18)(1,Li,2,2),I(2,"keyvalue")),e&2){let t,o=i.$implicit;s(o.appearanceCategory?0:-1),n(),s((t=N(2,2,o.appearances))?1:-1,t)}}function Gi(e,i){if(e&1&&(a(0,"app-card")(1,"div",4),f(2,"app-item-icon",5),a(3,"div",6)(4,"div",7),m(5),u(6,Ei,1,3,"app-ui-icon",8),r(),u(7,Ti,4,4,"div",9),r()(),u(8,bi,2,1,"p",10),r(),a(9,"app-card",11)(10,"h2",12),m(11," Gifting "),r(),u(12,Ii,1,1,"app-gifting-grid",13)(13,Ni,2,1,"p",14),r(),a(14,"app-card",11)(15,"h2",12),m(16," Heart events "),r(),u(17,Si,1,1,"app-heart-events",15)(18,wi,2,1,"p",14),r(),a(19,"app-card",11)(20,"h2",12),m(21," Appearances "),r(),C(22,Vi,3,4,null,null,g),r()),e&2){let t=l();n(2),d("itemName",t.npc.iconName),n(3),x(" ",t.npc.characterName," "),n(),s(t.npc.isDateable?6:-1),n(),s(t.npc.birthday?7:-1),n(),s(t.npc.description?8:-1),n(4),s(t.giftingPreferences?12:-1),n(),s(t.giftingPreferences?-1:13),n(4),s(t.heartEvents.length?17:-1),n(),s(t.heartEvents.length?-1:18),n(4),h(t.npc.appearances)}}function Hi(e,i){e&1&&(a(0,"app-card")(1,"h1",25),m(2," NPC not found. "),r()())}function Bi(e,i){e&1&&f(0,"mat-spinner",1)}var Tt=(()=>{let i=class i extends he{constructor(){super(...arguments),this.npcKey=Le.required(),this.npc=null,this.heartEvents=[],this.UiIcon=G,this.uiIcon=G}ngOnInit(){we([this._database.fetchNPCs$(),this._database.fetchHeartEvents$(),this._database.fetchGiftingPreferences$()]).subscribe({next:([o,p,c])=>{this.npc=o.find(_=>_.key.toLowerCase()===this.npcKey().toLowerCase()),this.heartEvents=p[this.npcKey().toLowerCase()]??[],this.giftingPreferences=c.find(_=>_.mapKey.toLowerCase()===this.npc?.key.toLowerCase())}})}};i.\u0275fac=(()=>{let o;return function(c){return(o||(o=Pe(i)))(c||i)}})(),i.\u0275cmp=b({type:i,selectors:[["app-npc"]],inputs:{npcKey:[1,"npcKey"]},features:[te],decls:5,vars:2,consts:[["listDetail","",3,"item"],[1,"mx-auto","text-white"],["appDatabaseItemDetails",""],[3,"details"],[1,"text-2xl","text-black","font-semibold","flex","items-center","gifting-portrait"],[1,"h-16","mr-3",3,"itemName"],[1,"flex","flex-col"],[1,"flex","gap-2","items-center"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon","matTooltip"],[1,"text-lg","flex","gap-2"],[1,"mt-2"],[1,"mt-6"],[1,"mb-4","font-semibold","text-2xl","text-black"],[3,"preferences"],[1,"text-black","text-lg"],[3,"heartEvents"],[1,"!h-6","!w-6",3,"uiIcon"],[3,"itemClicked","preferences"],[1,"mb-4","font-semibold","text-xl","text-black"],[1,"font-semibold","text-black","mb-6"],[1,"text-lg"],[1,"grid","portrait-grid","gap-4"],[1,"flex","flex-col","shadow-lg","p-2"],[1,"h-[400px]","flex","items-end","justify-center",3,"npcKey","portraitName"],[1,""],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"]],template:function(p,c){p&1&&(a(0,"app-list-detail-container"),u(1,yi,2,1,"app-item-card-switch",0)(2,Gi,24,9)(3,Hi,3,0,"app-card")(4,Bi,1,0,"mat-spinner",1),r()),p&2&&(n(),s(c.selectedEntity?1:-1),n(),s(c.npc?2:c.npc===void 0?3:c.npc===null?4:-1))},dependencies:[fe,ue,Ce,ot,U,de,ve,Q,W,A,Et,Ee,oe,z],styles:[`.gifting-portrait .app-item-icon>img{width:auto;height:100%;aspect-ratio:unset}.portrait-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.portrait-grid .npc-portrait img{max-height:400px}@media (min-width: 1280px){.portrait-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}} `],encapsulation:2});let e=i;return e})();var $i=[{path:"",pathMatch:"full",redirectTo:"overview"},{path:"",component:ft,children:[{path:"gifting",component:xt,title:"Gifting - NPCs"},{path:"overview",component:vt,title:"Overview - NPCs"},{path:":npcKey",component:Tt}]}],bt=(()=>{let i=class i{};i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=Z({type:i}),i.\u0275inj=X({imports:[be.forChild($i),be]});let e=i;return e})();var Uo=(()=>{let i=class i{};i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=Z({type:i}),i.\u0275inj=X({imports:[re,bt,ct,Je,Qe,_e,me,pe,ge,le,D,mt,Q,W]});let e=i;return e})();export{Uo as NPCsModule}; diff --git a/chunk-R4DTAK4N.js b/chunk-R4DTAK4N.js deleted file mode 100644 index 99480ce0a4..0000000000 --- a/chunk-R4DTAK4N.js +++ /dev/null @@ -1 +0,0 @@ -import{f as a}from"./chunk-7P5ZBEP4.js";import"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import"./chunk-4KZEYPV3.js";export{a as JournalModule}; diff --git a/chunk-V7RKZLQ2.js b/chunk-SPTPR4TH.js similarity index 95% rename from chunk-V7RKZLQ2.js rename to chunk-SPTPR4TH.js index 4c94157676..02810ca6b9 100644 --- a/chunk-V7RKZLQ2.js +++ b/chunk-SPTPR4TH.js @@ -1 +1 @@ -import{Ca as L,J as T,K as u,L as A,M as y,Q as m,Qa as N,Qc as w,R as E,Ra as b,Rc as P,Sc as O,U as F,da as x,de as U,ee as Z,ge as C,h as c,i as S,la as r,lb as D,ld as B,md as V,pa as f,rc as _,rd as z,tc as I,uc as p,vc as M,wc as j,wd as q,za as k}from"./chunk-4KZEYPV3.js";var $=j({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(B.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,this.focused=!1,this.stateChanges=new c,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(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new P(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(V,10),r(z,8),r(q,8),r(O),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{we as a,Ce as b}; +import{Aa as k,Ac as j,Ad as q,Da as L,J as T,K as u,L as A,M as y,Q as m,R as E,Ra as N,Sa as b,Uc as w,V as F,Vc as P,Wc as O,ea as x,h as c,i as S,je as U,ke as Z,ma as r,mb as D,me as C,pd as B,qa as f,qd as V,vc as _,vd as z,xc as I,yc as p,zc as M}from"./chunk-PYTDIKHQ.js";var $=j({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(B.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,this.focused=!1,this.stateChanges=new c,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(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new P(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(V,10),r(z,8),r(q,8),r(O),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{we as a,Ce as b}; diff --git a/chunk-KIU6NDG3.js b/chunk-SWBKCEQI.js similarity index 76% rename from chunk-KIU6NDG3.js rename to chunk-SWBKCEQI.js index 6f08ca1493..874870ce09 100644 --- a/chunk-KIU6NDG3.js +++ b/chunk-SWBKCEQI.js @@ -1 +1 @@ -import{a as Z}from"./chunk-AWBWSX6N.js";import{q as A,r as I,t as $}from"./chunk-QVSQOUAD.js";import{a as M}from"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as a,Fa as f,Ib as v,Ja as p,Ka as s,La as y,P as _,Pa as x,Ra as D,Sa as m,V as g,W as C,Xe as O,ka as c,l as u,mb as T,me as w,mf as S,qb as E,rb as b,ta as h,wa as l}from"./chunk-4KZEYPV3.js";function F(e,t){if(e&1&&y(0,"app-offering",3),e&2){let n=t.$implicit;a("details",n)}}function P(e,t){if(e&1&&(p(0,"app-item-card-switch",0),l(1,F,1,1,"ng-template",2),s()),e&2){let n=m();a("item",n.selectedEntity)}}function V(e,t){if(e&1){let n=x();p(0,"app-offering-group",4),D("selected",function(i){g(n);let r=m();return C(r.showDetails(i))}),s()}if(e&2){let n=m();a("offeringAltar",t)("selectedEntity",n.selectedEntity)}}var W=(()=>{let t=class t extends O{constructor(){super(),this.offerings$=this._database.fetchOfferings$().pipe(u(o=>o.find(i=>i.customType==="diving")))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=_({type:t,selectors:[["app-orchestra-zones"]],standalone:!0,features:[h,T],decls:4,vars:4,consts:[["listDetail","","context","offerings",3,"item"],[3,"offeringAltar","selectedEntity"],["appDatabaseItemDetails",""],[3,"details"],[3,"selected","offeringAltar","selectedEntity"]],template:function(i,r){if(i&1&&(p(0,"app-list-detail-container"),l(1,P,2,1,"app-item-card-switch",0)(2,V,1,2,"app-offering-group",1),E(3,"async"),s()),i&2){let d;c(),f(r.selectedEntity?1:-1),c(),f((d=b(3,2,r.offerings$))?2:-1,d)}},dependencies:[v,M,A,$,I,S,w,Z],encapsulation:2});let e=t;return e})();export{W as OrchestraZonesComponent}; +import{a as Z}from"./chunk-IUAKQFVS.js";import{q as A,r as I,t as $}from"./chunk-BPN5VRCO.js";import{a as M}from"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as a,Ga as f,Ka as p,Kb as v,La as s,Ma as y,P as _,Qa as x,Sa as D,Ta as m,W as g,X as C,bf as O,l as u,la as c,nb as T,rb as E,sb as b,se as w,sf as S,ua as h,xa as l}from"./chunk-PYTDIKHQ.js";function F(e,t){if(e&1&&y(0,"app-offering",3),e&2){let n=t.$implicit;a("details",n)}}function P(e,t){if(e&1&&(p(0,"app-item-card-switch",0),l(1,F,1,1,"ng-template",2),s()),e&2){let n=m();a("item",n.selectedEntity)}}function V(e,t){if(e&1){let n=x();p(0,"app-offering-group",4),D("selected",function(i){g(n);let r=m();return C(r.showDetails(i))}),s()}if(e&2){let n=m();a("offeringAltar",t)("selectedEntity",n.selectedEntity)}}var W=(()=>{let t=class t extends O{constructor(){super(),this.offerings$=this._database.fetchOfferings$().pipe(u(o=>o.find(i=>i.customType==="diving")))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=_({type:t,selectors:[["app-orchestra-zones"]],standalone:!0,features:[h,T],decls:4,vars:4,consts:[["listDetail","","context","offerings",3,"item"],[3,"offeringAltar","selectedEntity"],["appDatabaseItemDetails",""],[3,"details"],[3,"selected","offeringAltar","selectedEntity"]],template:function(i,r){if(i&1&&(p(0,"app-list-detail-container"),l(1,P,2,1,"app-item-card-switch",0)(2,V,1,2,"app-offering-group",1),E(3,"async"),s()),i&2){let d;c(),f(r.selectedEntity?1:-1),c(),f((d=b(3,2,r.offerings$))?2:-1,d)}},dependencies:[v,M,A,$,I,S,w,Z],encapsulation:2});let e=t;return e})();export{W as OrchestraZonesComponent}; diff --git a/chunk-MQ5HZA2B.js b/chunk-TIKI6YA4.js similarity index 92% rename from chunk-MQ5HZA2B.js rename to chunk-TIKI6YA4.js index 6776d80ffe..d9a91b09da 100644 --- a/chunk-MQ5HZA2B.js +++ b/chunk-TIKI6YA4.js @@ -1 +1 @@ -import{f as A,g as Y,h as j,i as z,j as G,k as J,l as K,m as Q,t as R}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import{Aa as s,Ca as g,Fa as l,Ga as w,Ha as y,Ia as I,Ib as F,Ja as m,Ka as r,La as d,Ma as E,Na as U,Nd as W,Ne as O,Ob as $,P,Pa as T,Pd as H,Ra as b,Sa as a,Sd as L,V as C,W as u,db as x,eb as V,fb as N,ib as k,jb as S,ka as c,kb as D,mb as B,me as M,mf as q,qb as h,rb as f,ta as v,wa as _}from"./chunk-4KZEYPV3.js";function X(e,i){if(e&1&&d(0,"app-shop-item-process-data-details",1),e&2){let t=a();s("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&d(0,"app-shop-item-data-details",2),e&2){let t=a();s("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&d(0,"app-item-upgrade-details",3),e&2){let t=a();s("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&d(0,"app-opening-hours",6),e&2&&s("openingHours",i)}function ie(e,i){if(e&1&&(_(0,te,1,1,"app-opening-hours",6),h(1,"async")),e&2){let t,n=a();l((t=f(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=T();m(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return u(o.showDetails(p))}),r()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),s("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(m(0,"div",9),y(1,ne,1,3,"app-item-icon",11,w),r()),e&2){let t=a();c(),I(t)}}function ae(e,i){if(e&1&&d(0,"app-shop-item-data-table",10),e&2){let t=a();s("dataSource",t)}}function ce(e,i){if(e&1){let t=T();m(0,"app-data-filter",8),D("showTableChange",function(p){C(t);let o=a(2);return S(o.showTable,p)||(o.showTable=p),u(p)}),r(),_(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);k("showTable",t.showTable),c(),l(t.showTable?-1:1),c(),l(t.showTable?2:-1)}}function pe(e,i){if(e&1&&(m(0,"h2",7),x(1,"Stock list"),r(),_(2,ce,3,3),h(3,"async")),e&2){let t,n=a();c(2),l((t=f(3,1,n.shopItemData$))?2:-1,t)}}function le(e,i){if(e&1){let t=T();m(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return u(o.showProcessDetails(p))}),r()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),s("itemName",t.input.iconName)}}function re(e,i){if(e&1&&(m(0,"div",9),y(1,le,1,3,"app-item-icon",11,w),r()),e&2){let t=a();c(),I(t)}}function me(e,i){if(e&1&&d(0,"app-shop-item-process-table",10),e&2){let t=a();s("dataSource",t)}}function se(e,i){if(e&1){let t=T();m(0,"app-data-filter",8),D("showTableChange",function(p){C(t);let o=a(2);return S(o.showProcessingTable,p)||(o.showProcessingTable=p),u(p)}),r(),_(1,re,3,0,"div",9)(2,me,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);k("showTable",t.showProcessingTable),c(),l(t.showProcessingTable?-1:1),c(),l(t.showProcessingTable?2:-1)}}function _e(e,i){if(e&1&&(m(0,"h2",7),x(1,"Item processing"),r(),_(2,se,3,3),h(3,"async")),e&2){let t,n=a();c(2),l((t=f(3,1,n.itemProcessing$))?2:-1,t)}}function de(e,i){if(e&1){let t=T();m(0,"app-item-icon",14),b("click",function(){let p=C(t).$implicit,o=a(4);return u(o.showItemUpgradeDetails(p))}),r()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),s("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(m(0,"div",9),y(1,de,1,4,"app-item-icon",13,w),r()),e&2){let t=a();c(),I(t)}}function ue(e,i){if(e&1&&d(0,"app-item-upgrade-table",10),e&2){let t=a();s("dataSource",t)}}function Te(e,i){if(e&1){let t=T();m(0,"app-data-filter",8),D("showTableChange",function(p){C(t);let o=a(2);return S(o.showPItemUpgradeTable,p)||(o.showPItemUpgradeTable=p),u(p)}),r(),_(1,Ce,3,0,"div",9)(2,ue,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);k("showTable",t.showPItemUpgradeTable),c(),l(t.showPItemUpgradeTable?-1:1),c(),l(t.showPItemUpgradeTable?2:-1)}}function xe(e,i){if(e&1&&(m(0,"h2",7),x(1),r(),_(2,Te,3,3),h(3,"async")),e&2){let t,n=a();c(),V(n.upgradeHeaderText),c(),l((t=f(3,2,n.itemUpgrade$))?2:-1,t)}}var Fe=(()=>{let i=class i extends A{constructor(){super(),this.shopName="taco-truck",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=P({type:i,selectors:[["app-taco-truck"]],standalone:!0,features:[v,B],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(p,o){p&1&&(m(0,"app-list-detail-container"),E(1,0),_(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),U(),m(5,"app-card")(6,"h1",4),d(7,"app-ui-icon",5),x(8),r(),_(9,ie,2,3),r(),_(10,pe,4,3)(11,_e,4,3)(12,xe,4,4),r()),p&2&&(c(2),l(o.selectedProcessEntity?2:-1),c(),l(o.selectedEntity?3:-1),c(),l(o.selectedItemUpgrade?4:-1),c(3),s("uiIcon",o.SHOP_ICONS[o.shopName]),c(),N(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),c(),l(o.openingHours$?9:-1),c(),l(o.shopItemData$?10:-1),c(),l(o.itemProcessing$?11:-1),c(),l(o.itemUpgrade$?12:-1))},dependencies:[R,j,z,Q,J,Y,K,G,q,H,L,M,O,F,$,W],encapsulation:2});let e=i;return e})();export{Fe as TacoTruckComponent}; +import{f as A,g as Y,h as j,i as z,j as G,k as J,l as K,m as Q,t as R}from"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import{Ba as s,Da as g,Ga as l,Ha as w,Ia as y,Ja as I,Ka as m,Kb as F,La as r,Ma as d,Na as E,Oa as U,P,Qa as T,Qb as $,Sa as b,Ta as a,Td as W,Te as O,Vd as H,W as C,X as u,Yd as L,eb as x,fb as V,gb as N,jb as k,kb as S,la as c,lb as D,nb as B,rb as h,sb as f,se as M,sf as q,ua as v,xa as _}from"./chunk-PYTDIKHQ.js";function X(e,i){if(e&1&&d(0,"app-shop-item-process-data-details",1),e&2){let t=a();s("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&d(0,"app-shop-item-data-details",2),e&2){let t=a();s("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&d(0,"app-item-upgrade-details",3),e&2){let t=a();s("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&d(0,"app-opening-hours",6),e&2&&s("openingHours",i)}function ie(e,i){if(e&1&&(_(0,te,1,1,"app-opening-hours",6),h(1,"async")),e&2){let t,n=a();l((t=f(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=T();m(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return u(o.showDetails(p))}),r()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),s("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(m(0,"div",9),y(1,ne,1,3,"app-item-icon",11,w),r()),e&2){let t=a();c(),I(t)}}function ae(e,i){if(e&1&&d(0,"app-shop-item-data-table",10),e&2){let t=a();s("dataSource",t)}}function ce(e,i){if(e&1){let t=T();m(0,"app-data-filter",8),D("showTableChange",function(p){C(t);let o=a(2);return S(o.showTable,p)||(o.showTable=p),u(p)}),r(),_(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);k("showTable",t.showTable),c(),l(t.showTable?-1:1),c(),l(t.showTable?2:-1)}}function pe(e,i){if(e&1&&(m(0,"h2",7),x(1,"Stock list"),r(),_(2,ce,3,3),h(3,"async")),e&2){let t,n=a();c(2),l((t=f(3,1,n.shopItemData$))?2:-1,t)}}function le(e,i){if(e&1){let t=T();m(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return u(o.showProcessDetails(p))}),r()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),s("itemName",t.input.iconName)}}function re(e,i){if(e&1&&(m(0,"div",9),y(1,le,1,3,"app-item-icon",11,w),r()),e&2){let t=a();c(),I(t)}}function me(e,i){if(e&1&&d(0,"app-shop-item-process-table",10),e&2){let t=a();s("dataSource",t)}}function se(e,i){if(e&1){let t=T();m(0,"app-data-filter",8),D("showTableChange",function(p){C(t);let o=a(2);return S(o.showProcessingTable,p)||(o.showProcessingTable=p),u(p)}),r(),_(1,re,3,0,"div",9)(2,me,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);k("showTable",t.showProcessingTable),c(),l(t.showProcessingTable?-1:1),c(),l(t.showProcessingTable?2:-1)}}function _e(e,i){if(e&1&&(m(0,"h2",7),x(1,"Item processing"),r(),_(2,se,3,3),h(3,"async")),e&2){let t,n=a();c(2),l((t=f(3,1,n.itemProcessing$))?2:-1,t)}}function de(e,i){if(e&1){let t=T();m(0,"app-item-icon",14),b("click",function(){let p=C(t).$implicit,o=a(4);return u(o.showItemUpgradeDetails(p))}),r()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),s("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(m(0,"div",9),y(1,de,1,4,"app-item-icon",13,w),r()),e&2){let t=a();c(),I(t)}}function ue(e,i){if(e&1&&d(0,"app-item-upgrade-table",10),e&2){let t=a();s("dataSource",t)}}function Te(e,i){if(e&1){let t=T();m(0,"app-data-filter",8),D("showTableChange",function(p){C(t);let o=a(2);return S(o.showPItemUpgradeTable,p)||(o.showPItemUpgradeTable=p),u(p)}),r(),_(1,Ce,3,0,"div",9)(2,ue,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);k("showTable",t.showPItemUpgradeTable),c(),l(t.showPItemUpgradeTable?-1:1),c(),l(t.showPItemUpgradeTable?2:-1)}}function xe(e,i){if(e&1&&(m(0,"h2",7),x(1),r(),_(2,Te,3,3),h(3,"async")),e&2){let t,n=a();c(),V(n.upgradeHeaderText),c(),l((t=f(3,2,n.itemUpgrade$))?2:-1,t)}}var Fe=(()=>{let i=class i extends A{constructor(){super(),this.shopName="taco-truck",this.shopItemData$=this._database.fetchShopItemData$(this.shopName)}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=P({type:i,selectors:[["app-taco-truck"]],standalone:!0,features:[v,B],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(p,o){p&1&&(m(0,"app-list-detail-container"),E(1,0),_(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),U(),m(5,"app-card")(6,"h1",4),d(7,"app-ui-icon",5),x(8),r(),_(9,ie,2,3),r(),_(10,pe,4,3)(11,_e,4,3)(12,xe,4,4),r()),p&2&&(c(2),l(o.selectedProcessEntity?2:-1),c(),l(o.selectedEntity?3:-1),c(),l(o.selectedItemUpgrade?4:-1),c(3),s("uiIcon",o.SHOP_ICONS[o.shopName]),c(),N(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),c(),l(o.openingHours$?9:-1),c(),l(o.shopItemData$?10:-1),c(),l(o.itemProcessing$?11:-1),c(),l(o.itemUpgrade$?12:-1))},dependencies:[R,j,z,Q,J,Y,K,G,q,H,L,M,O,F,$,W],encapsulation:2});let e=i;return e})();export{Fe as TacoTruckComponent}; diff --git a/chunk-TL6KPAQW.js b/chunk-TL6KPAQW.js new file mode 100644 index 0000000000..9001fbc612 --- /dev/null +++ b/chunk-TL6KPAQW.js @@ -0,0 +1 @@ +import{a as _t}from"./chunk-43NKEY2U.js";import{$a as lt,$d as gt,Aa as ee,Ae as ce,Ba as p,Be as de,Cb as Re,Ce as ue,Da as G,Db as pt,De as _e,Ee as fe,Fe as Ce,G as Pe,Ga as u,Ge as he,Ha as b,He as xe,Ia as y,Ie as ge,Ja as T,Jb as st,Je as St,K as Me,Ka as l,Kb as W,La as m,Lb as R,Ld as dt,Le,Ma as _,Mb as oe,Me as wt,N as P,Na as x,Ne as Dt,Oa as g,Od as L,Oe as ye,P as h,Pa as nt,Pe as $e,Q as Ee,Qa as Q,Qb as O,Qd as We,Qe as Be,R as tt,Re as Ue,Sa as U,Se as He,Ta as c,Td as ut,Te,Ue as be,Vd as v,Ve as ve,W as q,Wa as ot,Wd as ft,We as kt,X as j,Xd as Ct,Xe as Ie,Yd as ht,Za as at,Zd as K,_ as Z,_d as xt,ab as rt,ae as yt,af as Pt,bc as Fe,be as Tt,bf as Ae,cc as De,d as Ge,da as B,de as bt,e as Xe,eb as d,ee as ae,f as Ze,fb as I,fe as S,gb as E,hb as N,ib as mt,jb as te,kb as ie,l as ke,la as a,lb as ne,m as et,mc as ct,nb as H,oa as it,pb as $,qe as vt,rb as f,sa as Qe,sb as C,se as le,sf as V,te as re,ua as M,uc as F,ve as me,wa as Ne,we as It,x as X,xa as s,ye as pe,zb as A,ze as se}from"./chunk-PYTDIKHQ.js";function Kt(e,t){if(e&1&&(l(0,"app-module-sidebar-item",1),d(1,"Inventory-Crafting "),m(),l(2,"app-module-sidebar-item",2),d(3,"Processing "),m(),l(4,"app-module-sidebar-item",3),d(5,"Cooking "),m(),l(6,"app-module-sidebar-item",4),d(7,"Mixing "),m()),e&2){let i=c();p("uiIcon",i.UI_ICONS.CRAFTING),a(2),p("uiIcon",i.UI_ICONS.ARTISAN),a(2),p("uiIcon",i.UI_ICONS.COOKING),a(2),p("uiIcon",i.UI_ICONS.PLANT)}}var Et=(()=>{let t=class t{constructor(){this.UI_ICONS=De,this.addSpacesToPascalCase=ct,this._databaseService=P(F),this.itemProcessingRecipes$=this._databaseService.fetchItemProcessingRecipes$()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-crafting"]],decls:5,vars:3,consts:[[1,"hidden"],["routerLink","inventory",3,"uiIcon"],["routerLink","artisan",3,"uiIcon"],["routerLink","cooking",3,"uiIcon"],["routerLink","mixing",3,"uiIcon"]],template:function(n,r){n&1&&(l(0,"app-sidebar-container")(1,"app-module-sidebar"),s(2,Kt,8,4),f(3,"async"),m(),_(4,"router-outlet",0),m()),n&2&&(a(2),u(C(3,1,r.itemProcessingRecipes$)?2:-1))},dependencies:[dt,L,Ct,ft,vt,W],encapsulation:2});let e=t;return e})();var Se=(()=>{let t=class t{static ngTemplateContextGuard(o,n){return!0}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=tt({type:t,selectors:[["","appDatabaseItemDetails",""]],standalone:!0});let e=t;return e})();var Yt=e=>["/database",e],Jt=e=>({$implicit:e});function zt(e,t){e&1&&_(0,"mat-spinner",5)}function Xt(e,t){if(e&1&&(s(0,zt,1,0,"mat-spinner",5),_(1,"app-to-do-toggle",2)),e&2){let i=c();u(i.isFetching()?0:-1),a(),p("item",t.item)("context",i.context())("amount",i.amount())("quality",i.quality())}}function Zt(e,t){e&1&&nt(0)}function ei(e,t){if(e&1&&_(0,"app-quality-grid",17),e&2){let i=c();p("item",i.item)}}function ti(e,t){if(e&1&&(l(0,"div",18),d(1," Sells for: "),_(2,"app-money",19),m()),e&2){let i=c();a(2),p("amount",i.item.sellPrice)}}function ii(e,t){if(e&1&&(_(0,"app-item-icon",6),l(1,"div",7)(2,"div",8)(3,"div",9),d(4),m(),l(5,"span",10),d(6),f(7,"addSpacesToPascalCase"),m()(),l(8,"span",11)(9,"a",12),_(10,"app-ui-icon",13),m()()(),_(11,"hr",14),l(12,"span",15),d(13),m(),s(14,Zt,1,0,"ng-container",16)(15,ei,1,1,"app-quality-grid",17),f(16,"keyvalue"),s(17,ti,3,1,"div",18)),e&2){let i=t,o=c();ot("itemName",i.item.iconName),p("amount",o.amount()),a(4),I(i.item.displayName),a(2),E(" ",C(7,10,i.item.displayKey),""),a(3),p("routerLink",$(14,Yt,i.item.id)),a(),p("uiIcon",o.uiIcon.DATABASE),a(3),I(i.item.description),a(),p("ngTemplateOutlet",o.databaseItemDetails)("ngTemplateOutletContext",$(16,Jt,i)),a(),u(C(16,12,i.item.qualities).length&&!o.hideQualityGrid()?15:17)}}function ni(e,t){e&1&&_(0,"mat-spinner",20)}function oi(e,t){if(e&1&&s(0,ni,1,0,"mat-spinner",20),e&2){let i=c();u(i.isFetching()?0:-1)}}var z=(()=>{var t;let i=class i{constructor(){Xe(this,t);this.itemId=B.required(),this.hideQualityGrid=B(!1,{transform:A}),this.context=B(),this.amount=B(),this.quality=B(),this.databaseItemDetails=null,this.databaseItem=Qe(void 0),this.isFetching=Qe(!1),this.UiIcon=De,this.uiIcon=De,this.listDetails=P(gt),this.database=P(F),pt(()=>{Ze(this,t,setTimeout(()=>Re(()=>this.isFetching.set(!0)),150)),this.database.fetchDatabaseItem$(this.itemId()).pipe(X(1)).subscribe({next:n=>{Re(()=>{clearTimeout(Ge(this,t)),this.isFetching.set(!1),this.databaseItem.set(n)})},error:()=>{clearTimeout(Ge(this,t)),Re(()=>this.isFetching.set(!1))}})},{allowSignalWrites:!0})}};t=new WeakMap,i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=h({type:i,selectors:[["app-database-item-details"]],contentQueries:function(r,w,k){if(r&1&&at(k,it,5),r&2){let we;lt(we=rt())&&(w.databaseItemDetails=we.first)}},inputs:{itemId:[1,"itemId"],hideQualityGrid:[1,"hideQualityGrid"],context:[1,"context"],amount:[1,"amount"],quality:[1,"quality"]},standalone:!0,features:[H],decls:7,vars:3,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],[3,"item","context","amount","quality"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["diameter","30"],["cardIcon","",3,"amount","itemName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"text-accent","text-2xl"],["matTooltip","Open in database","matTooltipPosition","before"],[3,"routerLink"],[1,"focus-visible:!text-black","hover:!text-black",3,"uiIcon"],[1,"my-5"],[1,"text-lg","mb-6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["includePrices","",1,"mt-6",3,"item"],[1,"flex"],[1,"ml-2","text-black",3,"amount"],[1,"mx-auto"]],template:function(r,w){if(r&1&&(l(0,"app-card",0)(1,"div",1),s(2,Xt,2,5,"app-to-do-toggle",2),l(3,"button",3),U("click",function(){return w.listDetails.close()}),_(4,"app-ui-icon",4),m()(),s(5,ii,18,18)(6,oi,1,1),m()),r&2){let k,we;a(2),u((k=w.databaseItem())?2:-1,k),a(2),p("uiIcon",w.uiIcon.CROSS),a(),u((we=w.databaseItem())?5:6,we)}},dependencies:[O,st,oe,Tt,yt,L,S,V,v,ht,xt,K,bt,ut,_t],encapsulation:2});let e=i;return e})();function li(e,t){if(e&1&&(l(0,"div"),d(1," Unlocked: "),l(2,"span",1),d(3),m()()),e&2){let i=c();a(3),N("Level ",i.craftingUnlock.masteryLevel," in ",i.craftingUnlock.masteryType,"")}}function ri(e,t){if(e&1&&(s(0,li,4,2,"div"),_(1,"app-item-list",0),f(2,"craftingRecipeIngredients")),e&2){let i=t;u(i.craftingUnlock?0:-1),a(),p("itemList",C(2,2,i))}}var Oe=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-inventory-crafting"]],inputs:{details:"details"},standalone:!0,features:[H],decls:1,vars:1,consts:[[1,"mb-3",3,"itemList"],[1,"text-black"]],template:function(n,r){if(n&1&&s(0,ri,3,4,"app-item-list",0),n&2){let w;u((w=r.details.craftedFrom==null?null:r.details.craftedFrom[0])?0:-1,w)}},dependencies:[V,ae,$e],encapsulation:2});let e=t;return e})();function pi(e,t){if(e&1&&_(0,"app-inventory-crafting",2),e&2){let i=t.$implicit;p("details",i)}}function si(e,t){if(e&1&&(l(0,"app-database-item-details",0),s(1,pi,1,1,"ng-template",1),m()),e&2){let i=c();p("amount",i.craftingRecipe.amount)("itemId",i.craftingRecipe.item.id)}}var Rt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-inventory-details"]],inputs:{craftingRecipe:"craftingRecipe"},decls:1,vars:1,consts:[["context","crafting",3,"amount","itemId"],["appDatabaseItemDetails",""],[3,"details"]],template:function(n,r){n&1&&s(0,si,2,2,"app-database-item-details",0),n&2&&u(r.craftingRecipe&&r.craftingRecipe.item?0:-1)},dependencies:[z,Se,Oe]});let e=t;return e})();function di(e,t){if(e&1&&(l(0,"td",16),_(1,"app-item-icon",17),m()),e&2){let i=t.$implicit;a(),p("itemName",i.item==null?null:i.item.iconName)}}function ui(e,t){e&1&&(l(0,"th",18),d(1," Output "),m()),e&2&&ee("colspan",2)}function _i(e,t){if(e&1&&(l(0,"td",19),d(1),m()),e&2){let i=t.$implicit;a(),N("",i.item==null?null:i.item.displayName," (",i.amount,") ")}}function fi(e,t){e&1&&(l(0,"th",20),d(1," Ingredients"),m())}function Ci(e,t){if(e&1&&(l(0,"td",21),_(1,"app-table-item-list",22),f(2,"craftingRecipeIngredients"),m()),e&2){let i=t.$implicit;a(),p("itemList",C(2,1,i))}}function hi(e,t){e&1&&(l(0,"th",20),d(1," Unlocked by"),m())}function xi(e,t){if(e&1&&d(0),e&2){let i=c().$implicit;N(" Level ",i.craftingUnlock.masteryLevel," in ",i.craftingUnlock.masteryType," ")}}function gi(e,t){if(e&1&&(l(0,"td",23),s(1,xi,1,2),m()),e&2){let i=t.$implicit;a(),u(i.craftingUnlock?1:-1)}}function yi(e,t){e&1&&(l(0,"th",24),d(1," Sell price"),m())}function Ti(e,t){if(e&1&&(l(0,"td",25),_(1,"app-money",26),m()),e&2){let i=t.$implicit;a(),p("amount",i.item.sellPrice)}}function bi(e,t){e&1&&_(0,"tr",27)}function vi(e,t){e&1&&_(0,"tr",28)}function Ii(e,t){if(e&1&&(l(0,"table",0),x(1,1),s(2,di,2,1,"td",2),g(),x(3,3),s(4,ui,2,1,"th",4)(5,_i,2,2,"td",5),g(),x(6,6),s(7,fi,2,0,"th",7)(8,Ci,3,3,"td",8),g(),x(9,9),s(10,hi,2,0,"th",7)(11,gi,2,1,"td",10),g(),x(12,11),s(13,yi,2,0,"th",12)(14,Ti,2,1,"td",13),g(),s(15,bi,1,0,"tr",14)(16,vi,1,0,"tr",15),m()),e&2){let i=c();p("dataSource",i.matDataSource),a(15),p("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),a(),p("matRowDefColumns",i.displayedColumns)}}var Ut=(()=>{let t=class t extends Ie{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","sellPrice","unlock"],this.sortingDataAccessor=(o,n)=>{let r=this.sortHelper(o.item,n);return r!==null?r:0}}};t.\u0275fac=(()=>{let o;return function(r){return(o||(o=Z(t)))(r||t)}})(),t.\u0275cmp=h({type:t,selectors:[["app-inventory-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","unlock"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[3,"itemList"],["mat-cell","",1,"text-col"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(l(0,"app-responsive-table"),s(1,Ii,17,4,"table",0),m()),n&2&&(a(),u(r.matDataSource?1:-1))},dependencies:[v,K,pe,ye,se,de,Ce,ue,ce,he,_e,fe,xe,ge,be,ve,$e],encapsulation:2});let e=t;return e})();function wi(e,t){if(e&1&&_(0,"app-inventory-details",0),e&2){let i=c();p("craftingRecipe",i.selectedEntity)}}function Di(e,t){if(e&1){let i=Q();l(0,"app-item-icon",6),U("click",function(){let n=q(i).$implicit,r=c(3);return j(r.showDetails(n))}),m()}if(e&2){let i=t.$implicit,o=c(3);G("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===(i.item==null?null:i.item.id)),p("amount",i.amount)("itemName",i.item==null?null:i.item.iconName)}}function ki(e,t){if(e&1&&(l(0,"div",3),y(1,Di,1,4,"app-item-icon",5,b),m()),e&2){let i=c();a(),T(i)}}function Pi(e,t){if(e&1&&_(0,"app-inventory-table",4),e&2){let i=c();p("dataSource",i)}}function Mi(e,t){if(e&1&&s(0,ki,3,0,"div",3)(1,Pi,1,1,"app-inventory-table",4),e&2){let i=c();u(i.showTable?-1:0),a(),u(i.showTable?1:-1)}}var Vt=(()=>{let t=class t extends Pt{constructor(){super(),this.recipes$=this._database.fetchCraftingRecipes$()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-inventory"]],features:[M],decls:7,vars:5,consts:[["listDetail","",3,"craftingRecipe"],["label","All"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(n,r){if(n&1&&(l(0,"app-list-detail-container"),s(1,wi,1,1,"app-inventory-details",0),l(2,"mat-tab-group")(3,"mat-tab",1)(4,"app-data-filter",2),ne("showTableChange",function(k){return ie(r.showTable,k)||(r.showTable=k),k}),m(),s(5,Mi,2,2),f(6,"async"),m()()()),n&2){let w;a(),u(r.selectedEntity?1:-1),a(3),te("showTable",r.showTable),a(),u((w=C(6,3,r.recipes$))?5:-1,w)}},dependencies:[v,le,Te,re,me,Rt,Ut,W],encapsulation:2});let e=t;return e})();var Ri=e=>["/crafting/artisan",e];function Fi(e,t){if(e&1&&(l(0,"a",4),_(1,"app-item-icon",5),l(2,"span",6),d(3),m()()),e&2){let i=t,o=c(2);p("routerLink",$(3,Ri,o.itemProcessing.machine.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function Li(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=c(2);E(" ",C(2,3,C(1,1,i.itemProcessing.machine))," ")}}function $i(e,t){if(e&1&&(l(0,"div",0),d(1,"Processor: "),l(2,"span",3),s(3,Fi,4,5,"a",4)(4,Li,3,5),m()()),e&2){let i,o=c();a(3),u((i=o.processorMapping[o.itemProcessing.machine.toLowerCase()])?3:-1,i),a(),u(o.processorMapping[o.itemProcessing.machine.toLowerCase()]?-1:4)}}function Bi(e,t){if(e&1&&(l(0,"div",1),d(1,"Processing time: "),l(2,"span",3),_(3,"app-processing-time",7),m()()),e&2){let i=c();a(3),p("processingTime",i.itemProcessing)}}function Ui(e,t){if(e&1&&(l(0,"div",1),d(1,"Time per input quality "),_(2,"app-processing-time-per-quality",8),m()),e&2){let i=c();a(2),p("baseProcessingTime",i.itemProcessing)("processingTimePerQualities",i.itemProcessing.qualities)}}function Hi(e,t){if(e&1&&(l(0,"div",1),d(1,"Time to improve quality "),_(2,"app-refinements-list",9),m()),e&2){let i=c();a(2),p("refinements",i.itemProcessing.refinements)}}var Ve=(()=>{let t=class t{constructor(){this.hideMaschine=!1,this.processorMapping=P(F).getProcessorMapping()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-processing"]],inputs:{itemProcessing:"itemProcessing",hideMaschine:[2,"hideMaschine","hideMaschine",A]},standalone:!0,features:[Ne,H],decls:6,vars:7,consts:[[1,"mb-3","inline-flex","gap-2","items-center"],[1,"mb-3"],[1,"mb-3",3,"itemList"],[1,"text-black"],[3,"routerLink"],[1,"!w-7","ml-1","-my-1","translate-y-1","!inline-block",3,"itemName"],[1,"ml-1","whitespace-nowrap","underline"],[3,"processingTime"],[3,"baseProcessingTime","processingTimePerQualities"],[3,"refinements"]],template:function(n,r){n&1&&(s(0,$i,5,2,"div",0)(1,Bi,4,1,"div",1),_(2,"app-item-list",2),f(3,"itemProcessingIngredients"),s(4,Ui,3,2,"div",1)(5,Hi,3,1,"div",1)),n&2&&(u(!r.hideMaschine&&r.itemProcessing.machine?0:-1),a(),u(r.itemProcessing.qualities?-1:1),a(),p("itemList",C(3,5,r.itemProcessing)),a(2),u(r.itemProcessing.qualities?4:-1),a(),u(r.itemProcessing.refinements?5:-1))},dependencies:[O,R,V,v,ae,wt,Le,Dt,He,S,L],encapsulation:2});let e=t;return e})();var Oi=e=>["crafting/artisan",e];function Vi(e,t){if(e&1&&(l(0,"td",18),_(1,"app-item-icon",19),m()),e&2){let i=t.$implicit;a(),p("itemName",i.output.item==null?null:i.output.item.iconName)}}function qi(e,t){e&1&&(l(0,"th",20),d(1," Output "),m()),e&2&&ee("colspan",2)}function ji(e,t){if(e&1&&(l(0,"td",21),d(1),m()),e&2){let i=t.$implicit;a(),N("",i.output.item==null?null:i.output.item.displayName," (",i.output.amount,") ")}}function Gi(e,t){e&1&&(l(0,"th",22),d(1," Ingredients"),m())}function Qi(e,t){if(e&1&&(l(0,"td",23),_(1,"app-table-item-list",24),f(2,"itemProcessingIngredients"),m()),e&2){let i=t.$implicit;a(),p("itemList",C(2,1,i))}}function Wi(e,t){e&1&&(l(0,"th",25),d(1," Sell price"),m())}function Ki(e,t){if(e&1&&(l(0,"td",26),_(1,"app-money",27),m()),e&2){let i=t.$implicit;a(),p("amount",i.output.item.sellPrice)}}function Yi(e,t){e&1&&(l(0,"th",22),d(1,"Processor"),m())}function Ji(e,t){if(e&1&&(l(0,"a",29),_(1,"app-item-icon",30),l(2,"span",31),d(3),m()()),e&2){let i=t,o=c().$implicit;p("routerLink",$(3,Oi,o.machine.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function zi(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=c().$implicit;E(" ",C(2,3,C(1,1,i.machine))," ")}}function Xi(e,t){if(e&1&&(l(0,"td",28),s(1,Ji,4,5,"a",29)(2,zi,3,5),m()),e&2){let i,o=t.$implicit,n=c(2);a(),u((i=n.processorMapping[o.machine.toLowerCase()])?1:-1,i),a(),u(n.processorMapping[o.machine.toLowerCase()]?-1:2)}}function Zi(e,t){e&1&&(l(0,"th",32),d(1," Time"),m())}function en(e,t){if(e&1&&(l(0,"td",28),_(1,"app-processing-time",33),m()),e&2){let i=t.$implicit;a(),p("processingTime",i)}}function tn(e,t){e&1&&_(0,"tr",34)}function nn(e,t){e&1&&_(0,"tr",35)}function on(e,t){if(e&1&&(l(0,"table",0),x(1,1),s(2,Vi,2,1,"td",2),g(),x(3,3),s(4,qi,2,1,"th",4)(5,ji,2,2,"td",5),g(),x(6,6),s(7,Gi,2,0,"th",7)(8,Qi,3,3,"td",8),g(),x(9,9),s(10,Wi,2,0,"th",10)(11,Ki,2,1,"td",11),g(),x(12,12),s(13,Yi,2,0,"th",7)(14,Xi,3,2,"td",13),g(),x(15,14),s(16,Zi,2,0,"th",15)(17,en,2,1,"td",13),g(),s(18,tn,1,0,"tr",16)(19,nn,1,0,"tr",17),m()),e&2){let i=c();p("dataSource",i.matDataSource),a(18),p("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),a(),p("matRowDefColumns",i.displayedColumns)}}var qt=(()=>{let t=class t extends Ie{constructor(){super(...arguments),this.showProcessor=B(!1,{transform:A}),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","processingTime","sellPrice"],this.processorMapping=P(F).getProcessorMapping(),this.sortingDataAccessor=(o,n)=>{let r=this.sortHelper(o.output.item,n);return r!==null?r:n==="processingTime"?o.day*24*60+o.time.hours*60+o.time.minutes:0}}setupDataSource(o){super.setupDataSource(o);let n=this.displayedColumns.indexOf("processor");this.showProcessor()&&n===-1?(this.displayedColumns.splice(3,0,"processor"),this.displayHeaderColumns=this.displayedColumns.filter(r=>r!=="icon")):!this.showProcessor()&&n!==-1&&(this.displayedColumns.splice(n,1),this.displayHeaderColumns=this.displayedColumns.filter(r=>r!=="icon"))}};t.\u0275fac=(()=>{let o;return function(r){return(o||(o=Z(t)))(r||t)}})(),t.\u0275cmp=h({type:t,selectors:[["app-processor-table"]],inputs:{showProcessor:[1,"showProcessor"]},features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","processor"],["class","text-col w-[1%] whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","processingTime"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-cell","",1,"text-col","w-[1%]","whitespace-nowrap"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap","underline"],["mat-header-cell","","mat-sort-header",""],[3,"processingTime"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(l(0,"app-responsive-table"),s(1,on,20,4,"table",0),m()),n&2&&(a(),u(r.matDataSource?1:-1))},dependencies:[L,v,K,pe,Le,ye,se,de,Ce,ue,ce,he,_e,fe,xe,ge,be,ve,R,He,S],encapsulation:2});let e=t;return e})();function ln(e,t){if(e&1&&_(0,"app-processing",4),e&2){let i=c(2);p("itemProcessing",i.selectedEntity)}}function rn(e,t){if(e&1&&(l(0,"app-database-item-details",0),s(1,ln,1,1,"ng-template",3),m()),e&2){let i=c();p("itemId",i.selectedEntity.output.item.id)("amount",i.selectedEntity.output.amount)}}function mn(e,t){if(e&1){let i=Q();l(0,"app-item-icon",9),U("click",function(){let n=q(i).$implicit,r=c(4);return j(r.showDetails(n))}),m()}if(e&2){let i,o,n=t.$implicit,r=c(4);G("selected-icon",(r.selectedEntity==null||r.selectedEntity.output==null||r.selectedEntity.output.item==null?null:r.selectedEntity.output.item.id)===n.output.item.id&&(r.reusedImages.includes((i=n.output.item.iconName)!==null&&i!==void 0?i:"")?n.input.item.iconName===(r.selectedEntity==null||r.selectedEntity.input==null||r.selectedEntity.input.item==null?null:r.selectedEntity.input.item.iconName):!0)&&n.output.amount===(r.selectedEntity==null||r.selectedEntity.output==null?null:r.selectedEntity.output.amount)),p("amount",n.output.amount)("itemName",n.output.item.iconName)("subIconName",r.reusedImages.includes((o=n.output.item.iconName)!==null&&o!==void 0?o:"")?n.input.item.iconName:void 0)}}function pn(e,t){if(e&1&&(l(0,"div",6),y(1,mn,1,5,"app-item-icon",8,b),m()),e&2){let i=c();a(),T(i)}}function sn(e,t){if(e&1&&_(0,"app-processor-table",7),e&2){let i=c();p("dataSource",i)}}function cn(e,t){if(e&1&&s(0,pn,3,0,"div",6)(1,sn,1,1,"app-processor-table",7),e&2){let i=c(2);u(i.showTable?-1:0),a(),u(i.showTable?1:-1)}}function dn(e,t){if(e&1){let i=Q();l(0,"mat-tab",2),f(1,"addSpacesToPascalCase"),f(2,"titlecase"),l(3,"app-data-filter",5),ne("showTableChange",function(n){q(i);let r=c();return ie(r.showTable,n)||(r.showTable=n),j(n)}),m(),s(4,cn,2,2),f(5,"async"),m()}if(e&2){let i,o=t.$implicit,n=c();p("label",n.processorMapping[o.toLowerCase()]?n.processorMapping[o.toLowerCase()].displayName:C(2,5,C(1,3,o))),a(3),te("showTable",n.showTable),a(),u((i=C(5,7,n.filteredData$(o)))?4:-1,i)}}var jt=(()=>{let t=class t extends Ae{constructor(){super(),this.quality=Fe,this.machineNames=[],this.processorMapping=this._database.getProcessorMapping(),this.urlPathFromLabel=o=>{let n=Object.keys(this.processorMapping).find(r=>this.processorMapping[r].displayName===o);return n||o.toLowerCase().replaceAll(" ","")},this._database.fetchItemProcessingRecipes$().pipe(X(1)).subscribe({next:o=>{this.machineNames=Object.keys(o),this.activateTabFromRoute(this.machineNames)}})}filteredData$(o){return this._database.fetchItemProcessingRecipes$().pipe(ke(n=>n[o]),Pe(n=>{this.reusedImages=this.getMultipleIconNames(n.map(r=>r.output.item.iconName??""))}))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-processor"]],features:[M],decls:5,vars:2,consts:[["listDetail","","context","artisan",3,"itemId","amount"],[3,"selectedTabChange","selectedIndex"],[3,"label"],["appDatabaseItemDetails",""],["hideMaschine","",3,"itemProcessing"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","itemName","subIconName","selected-icon"],[1,"icon-grid-item",3,"click","amount","itemName","subIconName"]],template:function(n,r){n&1&&(l(0,"app-list-detail-container"),s(1,rn,2,2,"app-database-item-details",0),l(2,"mat-tab-group",1),U("selectedTabChange",function(k){return r.updateUrl(k)}),y(3,dn,6,9,"mat-tab",2,b),m()()),n&2&&(a(),u(r.selectedEntity?1:-1),a(),p("selectedIndex",r.selectedTabIndex()),a(),T(r.machineNames))},dependencies:[v,le,Te,re,me,z,Se,Ve,qt,W,R,S],encapsulation:2});let e=t;return e})();var fn=e=>["crafting/cooking",e];function Cn(e,t){if(e&1&&(l(0,"a",5),_(1,"app-item-icon",6),l(2,"span",7),d(3),m()()),e&2){let i=t,o=c().$implicit;p("routerLink",$(3,fn,o.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function hn(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=c().$implicit;E(" ",C(2,3,C(1,1,i))," ")}}function xn(e,t){if(e&1&&(l(0,"div",4),s(1,Cn,4,5,"a",5)(2,hn,3,5),m()),e&2){let i,o=t.$implicit,n=c(2);a(),u((i=n.cookingUtensilMapping[o.toLowerCase()])?1:-1,i),a(),u(n.cookingUtensilMapping[o.toLowerCase()]?-1:2)}}function gn(e,t){if(e&1&&(l(0,"div",0),d(1,"Utensil(s): "),l(2,"span",3),y(3,xn,3,2,"div",4,b),m()()),e&2){let i=c();a(3),T(i.cookingRecipe.utensils)}}function yn(e,t){if(e&1&&(l(0,"div",1),d(1," Unlocked: "),l(2,"span",3),d(3),m()()),e&2){let i=c();a(3),N("Level ",i.cookingRecipe.craftingUnlock.masteryLevel," in ",i.cookingRecipe.craftingUnlock.masteryType,"")}}function Tn(e,t){e&1&&_(0,"hr",8)}function bn(e,t){if(e&1&&(_(0,"app-item-list",2),s(1,Tn,1,0,"hr",8)),e&2){let i=t.$implicit,o=t.$index,n=t.$count;p("itemList",i),a(),u(o!==n-1?1:-1)}}function vn(e,t){if(e&1&&(l(0,"span",3),d(1," Either of the following"),m(),y(2,bn,2,2,null,null,b)),e&2){let i=c();a(2),T(i.cookingRecipe.eitherOrIngredients)}}function In(e,t){if(e&1&&(l(0,"div",10),_(1,"app-item-icon",12),l(2,"span"),d(3),m()()),e&2){let i=c().$implicit;a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function Sn(e,t){if(e&1&&(l(0,"div",9),s(1,In,4,2,"div",10),l(2,"div",11),d(3),m()(),_(4,"hr")),e&2){let i=t.$implicit,o=c().$implicit;a(),u(i?1:-1),a(2),E("as ",o.key,"")}}function wn(e,t){if(e&1&&(l(0,"div",1),y(1,Sn,5,2,null,null,b),f(3,"castToMinimalItemArray"),m()),e&2){let i=t.$implicit;a(),T(C(3,0,i.value))}}function Dn(e,t){if(e&1&&(l(0,"span",3),d(1," The following counting as"),m(),y(2,wn,4,2,"div",1,b),f(4,"keyvalue")),e&2){let i=c();a(2),T(C(4,0,i.cookingRecipe.additionsToGenerics))}}var qe=(()=>{let t=class t{constructor(){this.showUtensil=!1,this.cookingUtensilMapping=P(F).getCookingUtensilMapping()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-cooking-recipe"]],inputs:{cookingRecipe:"cookingRecipe",showUtensil:[2,"showUtensil","showUtensil",A]},standalone:!0,features:[Ne,H],decls:6,vars:7,consts:[[1,"mb-3","inline-flex","gap-2","items-center"],[1,"mb-3"],[1,"mb-3",3,"itemList"],[1,"text-black"],[1,"whitespace-nowrap"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap","underline"],[1,"my-5"],[1,"flex","justify-between","py-1"],[1,"flex","gap-x-3","items-center"],[1,"flex","items-center"],[1,"w-10",3,"itemName"]],template:function(n,r){n&1&&(s(0,gn,5,0,"div",0)(1,yn,4,2,"div",1),_(2,"app-item-list",2),f(3,"cookingRecipeIngredients"),s(4,vn,4,0)(5,Dn,5,2)),n&2&&(u(r.showUtensil?0:-1),a(),u(r.cookingRecipe.craftingUnlock?1:-1),a(),p("itemList",C(3,5,r.cookingRecipe)),a(2),u(r.cookingRecipe.eitherOrIngredients.length?4:-1),a(),u(r.cookingRecipe.additionsToGenerics?5:-1))},dependencies:[O,R,oe,V,v,ae,Be,Ue,S,L],encapsulation:2});let e=t;return e})();function Pn(e,t){if(e&1&&(l(0,"div",1),d(1,"Buff: "),l(2,"span",0),d(3),f(4,"addSpacesToPascalCase"),m()()),e&2){let i=c();a(3),mt(" ",C(4,3,i.consumable.buff),", Level ",i.consumable.level," for ",i.consumable.duration," seconds ")}}var je=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-consumable"]],inputs:{consumable:"consumable"},standalone:!0,features:[H],decls:9,vars:5,consts:[[1,"text-black"],[1,"mb-3"]],template:function(n,r){n&1&&(l(0,"div"),d(1,"Health: "),l(2,"span",0),d(3),m()(),l(4,"div"),d(5,"Energy: "),l(6,"span",0),d(7),m()(),s(8,Pn,5,5,"div",1)),n&2&&(a(3),I(r.consumable.healthDelta),a(),G("mb-3",r.consumable.buff==="None"),a(3),I(r.consumable.staminaDelta),a(),u(r.consumable.buff!=="None"?8:-1))},dependencies:[O,S],encapsulation:2});let e=t;return e})();var En=e=>["crafting/cooking",e];function Nn(e,t){if(e&1&&(l(0,"td",19),_(1,"app-item-icon",20),m()),e&2){let i=t.$implicit;a(),p("itemName",i.item==null?null:i.item.iconName)}}function Rn(e,t){e&1&&(l(0,"th",21),d(1," Output "),m()),e&2&&ee("colspan",2)}function Fn(e,t){if(e&1&&(l(0,"td",22),d(1),m()),e&2){let i=t.$implicit;a(),N("",i.item==null?null:i.item.displayName," (",i.amount,") ")}}function Ln(e,t){e&1&&(l(0,"th",23),d(1," Ingredients"),m())}function $n(e,t){e&1&&_(0,"hr",27)}function Bn(e,t){if(e&1&&(_(0,"app-table-item-list",25),s(1,$n,1,0,"hr",27)),e&2){let i=t.$implicit,o=t.$index,n=t.$count;p("itemList",i),a(),u(o!==n-1?1:-1)}}function Un(e,t){if(e&1&&(l(0,"span",26),d(1," Either of the following"),m(),y(2,Bn,2,2,null,null,b)),e&2){let i=c().$implicit;a(2),T(i.eitherOrIngredients)}}function Hn(e,t){if(e&1&&(l(0,"div",29),_(1,"app-item-icon",31),l(2,"span",32),d(3),m()()),e&2){let i=c().$implicit;a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function An(e,t){if(e&1&&(l(0,"div",28),s(1,Hn,4,2,"div",29),l(2,"div",30),d(3),m()()),e&2){let i=t.$implicit,o=c().$implicit;a(),u(i?1:-1),a(2),E("as ",o.key," ")}}function On(e,t){if(e&1&&(y(0,An,4,2,"div",28,b),f(2,"castToMinimalItemArray")),e&2){let i=t.$implicit;T(C(2,0,i.value))}}function Vn(e,t){if(e&1&&(l(0,"span",26),d(1," The following counting as"),m(),y(2,On,3,2,null,null,b),f(4,"keyvalue")),e&2){let i=c().$implicit;a(2),T(C(4,0,i.additionsToGenerics))}}function qn(e,t){if(e&1&&(l(0,"td",24),_(1,"app-table-item-list",25),f(2,"cookingRecipeIngredients"),s(3,Un,4,0)(4,Vn,5,2),m()),e&2){let i=t.$implicit;a(),p("itemList",C(2,3,i)),a(2),u(i.eitherOrIngredients.length?3:-1),a(),u(i.additionsToGenerics?4:-1)}}function jn(e,t){e&1&&(l(0,"th",23),d(1," Unlocked by"),m())}function Gn(e,t){if(e&1&&d(0),e&2){let i=c().$implicit;N(" Level ",i.craftingUnlock.masteryLevel," in ",i.craftingUnlock.masteryType," ")}}function Qn(e,t){if(e&1&&(l(0,"td",33),s(1,Gn,1,2),m()),e&2){let i=t.$implicit;a(),u(i.craftingUnlock?1:-1)}}function Wn(e,t){e&1&&(l(0,"th",34),d(1," Sell price"),m())}function Kn(e,t){if(e&1&&(l(0,"td",35),_(1,"app-money",36),m()),e&2){let i=t.$implicit;a(),p("amount",i.item.sellPrice)}}function Yn(e,t){e&1&&(l(0,"th",37),d(1," Utensil"),m())}function Jn(e,t){if(e&1&&(l(0,"a",39),_(1,"app-item-icon",31),l(2,"span",40),d(3),m()()),e&2){let i=t,o=c().$implicit;p("routerLink",$(3,En,o.toLowerCase())),a(),p("itemName",i.iconName),a(2),I(i.displayName)}}function zn(e,t){if(e&1&&(d(0),f(1,"addSpacesToPascalCase"),f(2,"titlecase")),e&2){let i=c().$implicit;E(" ",C(2,3,C(1,1,i))," ")}}function Xn(e,t){if(e&1&&(l(0,"div",32),s(1,Jn,4,5,"a",39)(2,zn,3,5),m()),e&2){let i,o=t.$implicit,n=c(3);a(),u((i=n.cookingUtensilMapping[o.toLowerCase()])?1:-1,i),a(),u(n.cookingUtensilMapping[o.toLowerCase()]?-1:2)}}function Zn(e,t){if(e&1&&(l(0,"td",38),y(1,Xn,3,2,"div",32,b),m()),e&2){let i=t.$implicit;a(),T(i.utensils)}}function eo(e,t){e&1&&_(0,"tr",41)}function to(e,t){e&1&&_(0,"tr",42)}function io(e,t){if(e&1&&(l(0,"table",0),x(1,1),s(2,Nn,2,1,"td",2),g(),x(3,3),s(4,Rn,2,1,"th",4)(5,Fn,2,2,"td",5),g(),x(6,6),s(7,Ln,2,0,"th",7)(8,qn,5,5,"td",8),g(),x(9,9),s(10,jn,2,0,"th",7)(11,Qn,2,1,"td",10),g(),x(12,11),s(13,Wn,2,0,"th",12)(14,Kn,2,1,"td",13),g(),x(15,14),s(16,Yn,2,0,"th",15)(17,Zn,3,0,"td",16),g(),s(18,eo,1,0,"tr",17)(19,to,1,0,"tr",18),m()),e&2){let i=c();p("dataSource",i.matDataSource),a(18),p("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),a(),p("matRowDefColumns",i.displayedColumns)}}var Gt=(()=>{let t=class t extends Ie{constructor(){super(...arguments),this.showUtensil=B(!1,{transform:A}),this.BASE_DISPLAY_COLUMNS=["icon","outputName","ingredients","sellPrice","unlock"],this.cookingUtensilMapping=P(F).getCookingUtensilMapping(),this.sortingDataAccessor=(o,n)=>{let r=this.sortHelper(o.item,n);return r!==null?r:0}}setupDataSource(o){super.setupDataSource(o);let n=this.displayedColumns.indexOf("utensil");this.showUtensil()&&n===-1?(this.displayedColumns.splice(3,0,"utensil"),this.displayHeaderColumns=this.displayedColumns.filter(r=>r!=="icon")):!this.showUtensil()&&n!==-1&&(this.displayedColumns.splice(n,1),this.displayHeaderColumns=this.displayedColumns.filter(r=>r!=="icon"))}};t.\u0275fac=(()=>{let o;return function(r){return(o||(o=Z(t)))(r||t)}})(),t.\u0275cmp=h({type:t,selectors:[["app-cooking-table"]],inputs:{showUtensil:[1,"showUtensil"]},features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","outputName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","ingredients"],["mat-header-cell","",4,"matHeaderCellDef"],["class","list-col","mat-cell","",4,"matCellDef"],["matColumnDef","unlock"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","utensil"],["class","whitespace-nowrap","mat-header-cell","",4,"matHeaderCellDef"],["class","text-col w-[1%]","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell",""],["mat-cell","",1,"list-col"],[1,"mb-3",3,"itemList"],[1,"text-black","mt-1"],[1,"my-5"],[1,"flex","justify-between","mb-1"],[1,"flex","gap-x-3","items-center"],[1,"ml-2","flex","items-center","whitespace-nowrap"],[1,"!w-7",3,"itemName"],[1,"whitespace-nowrap"],["mat-cell","",1,"text-col"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-cell","",1,"whitespace-nowrap"],["mat-cell","",1,"text-col","w-[1%]"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"ml-1","whitespace-nowrap","underline"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(l(0,"app-responsive-table"),s(1,io,20,4,"table",0),m()),n&2&&(a(),u(r.matDataSource?1:-1))},dependencies:[L,v,K,pe,ye,se,de,Ce,ue,ce,he,_e,fe,xe,ge,be,ve,R,oe,Be,Ue,S],encapsulation:2});let e=t;return e})();var oo=(e,t)=>t.key;function ao(e,t){e&1&&_(0,"app-consumable",4),e&2&&p("consumable",t)}function lo(e,t){if(e&1&&_(0,"app-cooking-recipe",5),e&2){let i=t.$implicit;p("cookingRecipe",i)}}function ro(e,t){if(e&1&&(s(0,ao,1,1,"app-consumable",4),y(1,lo,1,1,"app-cooking-recipe",5,oo)),e&2){let i,o=t.$implicit;u((i=o.consumables==null?null:o.consumables.base)?0:-1,i),a(),T(o.cookedFrom)}}function mo(e,t){if(e&1&&(l(0,"app-database-item-details",0),s(1,ro,3,1,"ng-template",3),m()),e&2){let i=c();p("itemId",i.selectedEntity.item.id)}}function po(e,t){if(e&1){let i=Q();l(0,"app-item-icon",10),U("click",function(){let n=q(i).$implicit,r=c(4);return j(r.showDetails(n))}),m()}if(e&2){let i=t.$implicit,o=c(4);G("selected-icon",(o.selectedEntity==null||o.selectedEntity.item==null?null:o.selectedEntity.item.id)===i.item.id),p("amount",i.amount)("itemName",i.item.iconName)}}function so(e,t){if(e&1&&(l(0,"div",7),y(1,po,1,4,"app-item-icon",9,b),m()),e&2){let i=c();a(),T(i)}}function co(e,t){if(e&1&&_(0,"app-cooking-table",8),e&2){let i=c();p("dataSource",i)}}function uo(e,t){if(e&1&&s(0,so,3,0,"div",7)(1,co,1,1,"app-cooking-table",8),e&2){let i=c(2);u(i.showTable?-1:0),a(),u(i.showTable?1:-1)}}function _o(e,t){if(e&1){let i=Q();l(0,"mat-tab",2),f(1,"addSpacesToPascalCase"),f(2,"titlecase"),l(3,"app-data-filter",6),ne("showTableChange",function(n){q(i);let r=c();return ie(r.showTable,n)||(r.showTable=n),j(n)}),m(),s(4,uo,2,2),f(5,"async"),m()}if(e&2){let i,o=t.$implicit,n=c();p("label",n.cookingUtensilMapping[o.toLowerCase()]?n.cookingUtensilMapping[o.toLowerCase()].displayName:C(2,5,C(1,3,o))),a(3),te("showTable",n.showTable),a(),u((i=C(5,7,n.filteredData$(o)))?4:-1,i)}}var Qt=(()=>{let t=class t extends Ae{constructor(){super(),this.utensilNames=[],this.quality=Fe,this.cookingUtensilMapping=this._database.getCookingUtensilMapping(),this._consumables=[],this.urlPathFromLabel=o=>{let n=Object.keys(this.cookingUtensilMapping).find(r=>this.cookingUtensilMapping[r].displayName===o);return n||o.toLowerCase().replaceAll(" ","")},et([this._database.fetchCookingRecipes$(),this._database.fetchConsumables$()]).pipe(X(1)).subscribe({next:([o,n])=>{this._consumables=n,this.utensilNames=Object.keys(o),this.activateTabFromRoute(this.utensilNames)}})}filteredData$(o){return this._database.fetchCookingRecipes$().pipe(ke(n=>n[o]),Pe(n=>{this.reusedImages=this.getMultipleIconNames(n.map(r=>r.item?.iconName??""))}))}showDetails(o){super.showDetails(o),this.selectedEntityConsumable=this._consumables.find(n=>n.key===o?.item?.id)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=h({type:t,selectors:[["app-cooking"]],features:[M],decls:5,vars:2,consts:[["context","cooking_recipes","listDetail","",3,"itemId"],["mat-stretch-tabs","false",1,"w-full",3,"selectedTabChange","selectedIndex"],[3,"label"],["appDatabaseItemDetails",""],[3,"consumable"],[1,"mb-4",3,"cookingRecipe"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"amount","selected-icon","itemName"],[1,"icon-grid-item",3,"click","amount","itemName"]],template:function(n,r){n&1&&(l(0,"app-list-detail-container"),s(1,mo,2,1,"app-database-item-details",0),l(2,"mat-tab-group",1),U("selectedTabChange",function(k){return r.updateUrl(k)}),y(3,_o,6,9,"mat-tab",2,b),m()()),n&2&&(a(),u(r.selectedEntity?1:-1),a(),p("selectedIndex",r.selectedTabIndex()),a(),T(r.utensilNames))},dependencies:[v,le,Te,re,me,z,Se,qe,je,Gt,W,R,S],encapsulation:2});let e=t;return e})();var fo=[{path:"",pathMatch:"full",redirectTo:"inventory"},{path:"",component:Et,children:[{path:"inventory",component:Vt,title:"Inventory - Crafting"},{path:"artisan",redirectTo:"artisan/",pathMatch:"full"},{path:"artisan/:tabName",component:jt,title:"Artisan - Crafting"},{path:"cooking",redirectTo:"cooking/",pathMatch:"full"},{path:"cooking/:tabName",component:Qt,title:"Cooking - Crafting"},{path:"mixing",loadComponent:()=>import("./chunk-CM2YVX4P.js").then(e=>e.MixingComponent),title:"Mixing - Crafting"}]}],Wt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ee({type:t}),t.\u0275inj=Me({imports:[We.forChild(fo),We]});let e=t;return e})();var Cl=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ee({type:t}),t.\u0275inj=Me({imports:[O,Wt,V,It,St,kt,z,qe,je,Ve,Oe]});let e=t;return e})();export{Se as a,z as b,Ve as c,qe as d,Ut as e,qt as f,je as g,Gt as h,Cl as i}; diff --git a/chunk-TOTJTUUK.js b/chunk-TOTJTUUK.js new file mode 100644 index 0000000000..b01f7f4596 --- /dev/null +++ b/chunk-TOTJTUUK.js @@ -0,0 +1,2 @@ +import{a as Ee,b as At,c as Lt}from"./chunk-XIW35ZB7.js";import"./chunk-DJJM56ZO.js";import"./chunk-QLCYA646.js";import{a as Gt}from"./chunk-SPTPR4TH.js";import{f as Rt}from"./chunk-Z4COKCZ7.js";import{a as R,b as yt}from"./chunk-5Y7JXUU2.js";import{a as Te,b as Fe,c as De,d as $t,e as Pt,q as re,r as ae,t as Ot}from"./chunk-BPN5VRCO.js";import{a as Y,b as oe,c as Vt,d as we,g as Bt}from"./chunk-TL6KPAQW.js";import{a as be}from"./chunk-43NKEY2U.js";import{$b as ye,$e as Et,Ad as W,Ba as m,Bb as ee,Bd as z,C as ce,Cd as ut,Da as $,Dd as ht,Ed as _t,Fd as Ct,G as P,Ga as v,Gd as ge,Ha as F,Hd as xt,Ia as C,J as We,Ja as y,K as fe,Ka as a,Kb as q,La as s,Lb as et,Ld as gt,Ma as f,Mb as Ce,N as M,Od as ke,P as T,Q as ue,Qa as D,Qb as tt,Qd as Be,Sa as _,Sb as it,Ta as p,Td as kt,Vd as G,W as k,Wa as Ze,Wd as bt,X as b,Xa as u,Xd as vt,Yd as It,_ as ze,_c as lt,_e as ve,ac as nt,af as Mt,bf as Ie,ca as Je,cc as pe,d as g,da as Ye,e as X,eb as d,f as qe,fb as me,fe as te,gb as le,hc as ot,ie as St,j as se,kc as rt,l as de,la as c,le as Tt,nb as he,nd as pt,ne as Ft,p as Ke,pb as Pe,pc as at,qe as Dt,qf as Nt,rb as S,rd as K,sa as j,sb as w,sc as st,sd as H,se as J,sf as Se,tb as _e,tc as ct,td as dt,te as ie,ua as B,uc as mt,ud as xe,ve as ne,wd as O,we as wt,x as He,xa as h,ya as Qe,yd as ft,za as Xe}from"./chunk-PYTDIKHQ.js";var jt=(()=>{let i=class i{constructor(){this.uiIcon=pe}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["app-my-coral-guide"]],decls:15,vars:6,consts:[["exact","","routerLink",".",3,"uiIcon"],["routerLink","to-do",3,"uiIcon"],["routerLink","offerings-checklist",3,"uiIcon"],["routerLink","museum-checklist",3,"uiIcon"],["routerLink","cooking-recipes-checklist",3,"uiIcon"],["routerLink","settings",3,"uiIcon"],[1,"hidden"]],template:function(o,n){o&1&&(a(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),d(3,"Dashboard"),s(),a(4,"app-module-sidebar-item",1),d(5,"To-dos"),s(),a(6,"app-module-sidebar-item",2),d(7," Offerings checklist "),s(),a(8,"app-module-sidebar-item",3),d(9," Museum checklist "),s(),a(10,"app-module-sidebar-item",4),d(11," Cooking recipes checklist "),s(),a(12,"app-module-sidebar-item",5),d(13," Settings "),s()(),f(14,"router-outlet",6),s()),o&2&&(c(2),m("uiIcon",n.uiIcon.MY_CORAL),c(2),m("uiIcon",n.uiIcon.TO_DO),c(2),m("uiIcon",n.uiIcon.OFFERING),c(2),m("uiIcon",n.uiIcon.MUSEUM),c(2),m("uiIcon",n.uiIcon.COOKING),c(2),m("uiIcon",n.uiIcon.SETTINGS))},dependencies:[gt,ke,vt,bt,Dt],encapsulation:2});let e=i;return e})();var Ut=(()=>{var i,t,r,o;let n=class n extends ct{constructor(){super(...arguments);X(this,i,j([]));X(this,t,j([]));X(this,r,j([]));X(this,o,j([]))}getFish$(){return g(this,i).call(this).length?se(g(this,i).asReadonly()()):this.http.get(`${this.BASE_PATH}/dashboards/fish.json`).pipe(P(x=>g(this,i).set(x)),ce(1))}getInsects$(){return g(this,t).call(this).length?se(g(this,t).asReadonly()()):this.http.get(`${this.BASE_PATH}/dashboards/museum-insects.json`).pipe(P(x=>g(this,t).set(x)),ce(1))}getOceanCritters$(){return g(this,r).call(this).length?se(g(this,r).asReadonly()()):this.http.get(`${this.BASE_PATH}/dashboards/museum-ocean-critters.json`).pipe(P(x=>g(this,r).set(x)),ce(1))}getFish(){return g(this,i).asReadonly()}getInsects(){return g(this,t).asReadonly()}getOceanCritter(){return g(this,r).asReadonly()}getBirthdays$(){return g(this,o).call(this).length?se(g(this,o).asReadonly()()):this.http.get(`${this.BASE_PATH}/dashboards/birthdays.json`).pipe(P(x=>g(this,o).set(x)),ce(1))}getBirthdays(){return g(this,o).asReadonly()}};i=new WeakMap,t=new WeakMap,r=new WeakMap,o=new WeakMap,n.\u0275fac=(()=>{let x;return function(U){return(x||(x=ze(n)))(U||n)}})(),n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();function Qt(e,i){if(e&1&&(a(0,"mat-option",6),d(1),s()),e&2){let t=i.$implicit;m("value",t),c(),me(t)}}function Xt(e,i){if(e&1&&(a(0,"mat-option",6),d(1),s()),e&2){let t=i.$implicit;m("value",t),c(),me(t)}}var Me=(()=>{let i=class i{constructor(){this.Weathers=rt,this.Seasons=ot}increaseDay(r){this.parentFormGroup.patchValue(ye(this.parentFormGroup.getRawValue(),r))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["app-dashboard-filter"]],inputs:{parentFormGroup:"parentFormGroup"},standalone:!0,features:[he],decls:25,vars:1,consts:[[1,"flex","flex-wrap","gap-x-3","gap-y-4",3,"formGroup"],[1,"semi-transparent-form-field",2,"--mat-form-field-infix-width","3rem"],["formControlName","day","inputmode","number","matInput","","max","28","min","1","pattern","[0-9]","type","number"],[1,"btn","-ml-2","touch-manipulation",3,"click"],[1,"semi-transparent-form-field",2,"--mat-form-field-infix-width","5rem"],["disableOptionCentering","","formControlName","season"],[3,"value"],["formControlName","year","inputmode","number","matInput","","min","1","pattern","[0-9]","type","number"],["disableOptionCentering","","formControlName","weather"],["formControlName","hideCompleted",1,"text-white","self-center"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),d(3,"Day"),s(),f(4,"input",2),s(),a(5,"button",3),_("click",function(){return n.increaseDay(1)}),d(6,"+"),s(),a(7,"mat-form-field",4)(8,"mat-label"),d(9,"Season"),s(),a(10,"mat-select",5),C(11,Qt,2,2,"mat-option",6,F),s()(),a(13,"mat-form-field",1)(14,"mat-label"),d(15,"Year"),s(),f(16,"input",7),s(),a(17,"mat-form-field",4)(18,"mat-label"),d(19,"Weather"),s(),a(20,"mat-select",8),C(21,Xt,2,2,"mat-option",6,F),s()(),a(23,"mat-checkbox",9),d(24,"Hide completed"),s()()),o&2&&(m("formGroup",n.parentFormGroup),c(11),y(n.Seasons),c(10),y(n.Weathers))},dependencies:[Ct,pt,ft,K,H,_t,ht,ut,Tt,St,lt,Ft,ge,W,z,R,Gt],encapsulation:2});let e=i;return e})();var qt=e=>["/npcs",e];function ei(e,i){if(e&1){let t=D();a(0,"app-item-icon",11),_("click",function(){k(t);let o=p().$implicit,n=p(2);return b(n.itemClicked.emit(o.item))}),s()}if(e&2){let t=p().$implicit;m("itemName",t.item.iconName)}}function ti(e,i){if(e&1&&(a(0,"span"),d(1),S(2,"addSpacesToPascalCase"),s()),e&2){let t=p().$implicit;c(),le("All ",w(2,1,t.categoryName),"")}}function ii(e,i){if(e&1&&h(0,ei,1,1,"app-item-icon",10)(1,ti,3,3,"span"),e&2){let t=i.$implicit;v(t.type==="item"?0:-1),c(),v(t.type==="category"?1:-1)}}function ni(e,i){e&1&&d(0," No individual loved gifts. ")}function oi(e,i){if(e&1&&(a(0,"div",0)(1,"div",1)(2,"a",2),f(3,"app-item-icon",3),s(),a(4,"div",4)(5,"a",5),d(6),s()()(),a(7,"div",6)(8,"div",7),f(9,"app-ui-icon",8),d(10," Loved "),s(),a(11,"div",9),C(12,ii,2,2,null,null,F,!1,ni,1,0),s()()()),e&2){let t=i.$implicit,r=p();c(2),m("routerLink",Pe(6,qt,t.npcKey)),c(),m("itemName",t.iconName),c(2),m("routerLink",Pe(8,qt,t.npcKey)),c(),le(" ",t.characterName," "),c(3),m("uiIcon",r.UiIcon.LOVE),c(3),y(t.lovedGifts)}}function ri(e,i){e&1&&(a(0,"p"),d(1,"No birthdays."),s())}var $e=(()=>{let i=class i{constructor(){this.birthdays=Ye.required(),this.itemClicked=Je(),this.UiIcon=pe,this.uiIcon=pe}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["app-birthday-dashboard"]],hostAttrs:[1,"flex","flex-col","gap-3"],inputs:{birthdays:[1,"birthdays"]},outputs:{itemClicked:"itemClicked"},standalone:!0,features:[he],decls:3,vars:1,consts:[[1,"flex","gap-1","flex-col"],[1,"text-2xl","text-black","font-semibold","flex","gap-2","items-center","gifting-portrait"],[3,"routerLink"],[1,"h-12","birthday-npc-image",3,"itemName"],[1,"flex","flex-col"],[1,"flex","gap-2","items-center",3,"routerLink"],[1,"flex","gap-2"],[1,"font-semibold","flex","items-center","flex-col","shrink-0","basis-12","text-black"],[1,"!text-gifting","!h-6","!w-6",3,"uiIcon"],[1,"flex","items-center","gap-2.5","flex-wrap"],[1,"cursor-pointer","h-9","birthday-gift-icon",3,"itemName"],[1,"cursor-pointer","h-9","birthday-gift-icon",3,"click","itemName"]],template:function(o,n){o&1&&C(0,oi,15,10,"div",0,F,!1,ri,2,0,"p"),o&2&&y(n.birthdays())},dependencies:[Se,G,te,kt,ke],styles:[`.birthday-npc-image.app-item-icon>img{width:100%;height:100%;object-fit:scale-down;object-position:center bottom}.birthday-gift-icon.app-item-icon>img{width:100%;height:100%;object-fit:scale-down;object-position:center} +`],encapsulation:2});let e=i;return e})();var Re=(e,i)=>i.entry.id+i.context,mi=()=>[be];function li(e,i){if(e&1&&f(0,"app-offering",5),e&2){let t=i.$implicit;m("details",t)}}function pi(e,i){if(e&1&&(a(0,"app-item-card-switch",1),h(1,li,1,1,"ng-template",4),s()),e&2){let t=p();m("item",t.selectedEntity)}}function di(e,i){if(e&1){let t=D();a(0,"div",15)(1,"app-item-icon",16),_("click",function(){let o=k(t).$implicit,n=p(2);return b(n.showDetails({id:o.entry.id,displayName:"",iconName:o.entry.iconName}))}),s(),a(2,"label",17)(3,"mat-checkbox",18),_("change",function(o){let n=k(t).$implicit;return p(2).updateChecklist(o,n.entry.id,n.context),b(n.completed=!n.completed)}),s()()()}if(e&2){let t=i.$implicit;$("checklist-checked",t.completed),c(),m("itemName",t.entry.iconName),c(),u("for","entry-",t.entry.id,"-input"),c(),u("id","entry-",t.entry.id,""),u("name","entry-",t.entry.id,""),m("checked",t.completed)}}function fi(e,i){e&1&&(a(0,"p",14),d(1,"No more fish to catch :)"),s())}function ui(e,i){if(e&1){let t=D();a(0,"div",15)(1,"app-item-icon",16),_("click",function(){let o=k(t).$implicit,n=p(2);return b(n.showDetails({id:o.entry.id,displayName:"",iconName:o.entry.iconName}))}),s(),a(2,"label",17)(3,"mat-checkbox",18),_("change",function(o){let n=k(t).$implicit;return p(2).updateChecklist(o,n.entry.id,n.context),b(n.completed=!n.completed)}),s()()()}if(e&2){let t=i.$implicit;$("checklist-checked",t.completed),c(),m("itemName",t.entry.iconName),c(),u("for","entry-",t.entry.id,"-input"),c(),u("id","entry-",t.entry.id,""),u("name","entry-",t.entry.id,""),m("checked",t.completed)}}function hi(e,i){e&1&&(a(0,"p",14),d(1,"No more fish to catch :)"),s())}function _i(e,i){if(e&1){let t=D();a(0,"div",15)(1,"app-item-icon",16),_("click",function(){let o=k(t).$implicit,n=p(2);return b(n.showDetails({id:o.entry.id,displayName:"",iconName:o.entry.iconName}))}),s(),a(2,"label",17)(3,"mat-checkbox",18),_("change",function(o){let n=k(t).$implicit;return p(2).updateChecklist(o,n.entry.id,n.context),b(n.completed=!n.completed)}),s()()()}if(e&2){let t=i.$implicit;$("checklist-checked",t.completed),c(),m("itemName",t.entry.iconName),c(),u("for","entry-",t.entry.id,"-input"),c(),u("id","entry-",t.entry.id,""),u("name","entry-",t.entry.id,""),m("checked",t.completed)}}function Ci(e,i){e&1&&(a(0,"p",14),d(1,"No more fish to catch :)"),s())}function yi(e,i){if(e&1){let t=D();a(0,"section",6)(1,"h2",7),d(2," Birthdays "),s(),a(3,"app-card",8)(4,"div",9)(5,"div")(6,"h2",10),d(7," Today "),s(),a(8,"app-birthday-dashboard",11),_("itemClicked",function(o){k(t);let n=p();return b(n.showDetails(o))}),s()(),a(9,"div")(10,"h2",10),d(11," Tomorrow "),s(),a(12,"app-birthday-dashboard",11),_("itemClicked",function(o){k(t);let n=p();return b(n.showDetails(o))}),s()()()()(),a(13,"section",6)(14,"h2",7),d(15," Fish "),s(),a(16,"div",12),C(17,di,4,10,"div",13,Re,!1,fi,2,0,"p",14),s()(),a(20,"section",6)(21,"h2",7),d(22," Insects "),s(),a(23,"div",12),C(24,ui,4,10,"div",13,Re,!1,hi,2,0,"p",14),s()(),a(27,"section",6)(28,"h2",7),d(29," Ocean critters "),s(),a(30,"div",12),C(31,_i,4,10,"div",13,Re,!1,Ci,2,0,"p",14),s()()}if(e&2){let t=p();c(8),m("birthdays",t.birthdaysToday()),c(4),m("birthdays",t.birthdaysTomorrow()),c(5),y(t.fish()),c(7),y(t.insects()),c(7),y(t.oceanCritter())}}function xi(e,i){e&1&&f(0,"mat-spinner",19)}function gi(e,i){e&1&&(h(0,xi,1,0),Qe(1,0,mi),Xe())}var Kt=(()=>{var i;let t=class t extends Mt{constructor(){super();X(this,i);this.dashboards=M(Ut),this.museumChecklistService=M(Ee),this.userData=M(xt),qe(this,i,M(mt)),this.museumChecklistDefinition$=g(this,i).fetchMuseumChecklist$(),this.museuemDef=j({}),this.requests$=Ke({museumDefinition:this.museumChecklistDefinition$.pipe(P(l=>this.museuemDef.set(l))),fish:this.dashboards.getFish$(),insects:this.dashboards.getInsects$(),oceanCritters:this.dashboards.getOceanCritters$(),birthdays:this.dashboards.getBirthdays$()}),this.filterFormGroup=new dt({season:new O("Spring",{nonNullable:!0}),weather:new O("Sunny",{nonNullable:!0}),day:new O(1,{nonNullable:!0}),year:new O(1,{nonNullable:!0}),hideCompleted:new O(!0,{nonNullable:!0})}),this.filterFormGroup.patchValue(this.userData.getCurrentData().myGuideFilter);let n=Et(this.filterFormGroup.valueChanges.pipe(de(()=>this.filterFormGroup.getRawValue()),P(l=>{this.userData.getCurrentData().myGuideFilter=l,this.userData.save()})),{initialValue:this.filterFormGroup.getRawValue()});this.fish=ee(()=>{let l=this.dashboards.getFish(),I=n().season,x=n().weather,E=n().hideCompleted,U=l().filter(L=>{let N=L.seasons.includes(I)&&L.weathers.includes(x),V={day:n().day,season:n().season,year:n().year},Z=L.dateRanges.map(Ue=>({from:Ue.startsFrom,to:Ue.lastsTill}));return N&&(!L.dateRanges.length||nt(V,Z,!0))}),Q=[];return this.museuemDef().Fish.forEach(L=>{let N=U.find(V=>V.id===L.id);if(N){let V=this.museumChecklistService.isChecked(N.id);V&&E||Q.push({completed:V,context:"museum",entry:N})}}),Q}),this.insects=ee(()=>{let l=this.dashboards.getInsects();return this.critterEntriesToList(l(),n(),this.museuemDef().Insects)}),this.oceanCritter=ee(()=>{let l=this.dashboards.getOceanCritter();return this.critterEntriesToList(l(),n(),this.museuemDef()["Sea critters"])}),this.birthdaysToday=ee(()=>{let l=this.dashboards.getBirthdays()(),I=n().season,x=n().day;return l.filter(E=>E.birthday.day===x&&E.birthday.season===I)}),this.birthdaysTomorrow=ee(()=>{let l=this.dashboards.getBirthdays()(),I=n().season,E={day:n().day,season:I,year:1},U=ye(E,1);return l.filter(Q=>Q.birthday.day===U.day&&Q.birthday.season===U.season)})}critterEntriesToList(n,l,I){let x=l.season,E=l.weather,U=l.hideCompleted,Q=n.filter(N=>N.seasons.includes(x)&&(N.weathers.includes(E)||!N.weathers.length)),L=[];return I.forEach(N=>{let V=Q.find(Z=>Z.id===N.id);if(V){let Z=this.museumChecklistService.isChecked(V.id);Z&&U||L.push({completed:Z,context:"museum",entry:V})}}),L}updateChecklist(n,l,I){this.museumChecklistService.isChecked(l)?this.museumChecklistService.remove(l):this.museumChecklistService.add(l)}};i=new WeakMap,t.\u0275fac=function(l){return new(l||t)},t.\u0275cmp=T({type:t,selectors:[["app-index"]],features:[B],decls:8,vars:6,consts:[[3,"removePlaceholder"],["listDetail","",3,"item"],[1,"mb-4","font-semibold","text-3xl","text-white","flex","items-center","gap-x-4"],[1,"my-5","block",3,"parentFormGroup"],["appDatabaseItemDetails",""],[3,"details"],[1,"my-2"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[1,"@container"],[1,"@3xl:grid-cols-2","grid","gap-x-3","gap-y-5"],[1,"mb-4","font-semibold","text-2xl","text-black"],[3,"itemClicked","birthdays"],[1,"icon-grid"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked"],[1,"col-span-full"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","itemName"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"change","id","checked","name"],[1,"mx-auto"]],template:function(l,I){l&1&&(a(0,"app-list-detail-container",0),h(1,pi,2,1,"app-item-card-switch",1),a(2,"h1",2),d(3," My Coral Guide "),s(),f(4,"app-dashboard-filter",3),h(5,yi,34,5),S(6,"async"),h(7,gi,3,0),s()),l&2&&(m("removePlaceholder",I.showTable),c(),v(I.selectedEntity?1:-1),c(3),m("parentFormGroup",I.filterFormGroup),c(),v(w(6,4,I.requests$)?5:7))},dependencies:[G,It,J,R,Y,re,ae,Me,$e,q],encapsulation:2});let e=t;return e})();var Ve=(()=>{let i=class i extends Ie{constructor(){super(),this.checklistForm=new xe({}),this.checklistForm.valueChanges.pipe(ve()).subscribe({next:r=>{let o=[];Object.keys(r).forEach(n=>{r[n]&&o.push(n)}),this.checklistService.set(o)}})}ngOnInit(){this.checklistDefinition$=this.checklistDefinition$.pipe(He(1),P(r=>{let o=Object.keys(r);o.forEach(n=>{r[n].forEach(l=>{this.checklistForm.addControl(l.id,new O(this.checklistService.isChecked(l.id),{nonNullable:!0}),{emitEvent:!1})})}),this.activateTabFromRoute(o)}))}keyValueNoOrder(){return 0}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["ng-component"]],features:[B],decls:0,vars:0,template:function(o,n){},encapsulation:2});let e=i;return e})();function bi(e,i){if(e&1&&f(0,"app-fish",4),e&2){let t=p().$implicit;m("fish",t.fish)}}function vi(e,i){if(e&1&&f(0,"app-insect",5),e&2){let t=p().$implicit;m("critter",t.insect)}}function Ii(e,i){if(e&1&&f(0,"app-insect",5),e&2){let t=p().$implicit;m("critter",t.oceanCritter)}}function Si(e,i){if(e&1&&f(0,"app-shop-processing-result",6),e&2){let t=p().$implicit;m("itemProcessData",t.chanceAsProcessResult)}}function Ti(e,i){if(e&1&&h(0,bi,1,1,"app-fish",4)(1,vi,1,1,"app-insect",5)(2,Ii,1,1,"app-insect",5)(3,Si,1,1,"app-shop-processing-result",6),e&2){let t=i.$implicit;v(t.fish?0:t.insect?1:t.oceanCritter?2:t.chanceAsProcessResult?3:-1)}}function Fi(e,i){if(e&1&&(a(0,"app-database-item-details",1),h(1,Ti,4,1,"ng-template",3),s()),e&2){let t=p();m("itemId",t.selectedEntity.id)}}function Di(e,i){if(e&1){let t=D();a(0,"div",11)(1,"app-item-icon",12),_("click",function(){let o=k(t).$implicit,n=p(4);return b(n.showDetails(o))}),s(),a(2,"label",13),f(3,"mat-checkbox",14),s()()}if(e&2){let t,r=i.$implicit,o=p(4);$("checklist-checked",(t=o.checklistForm.get(r.id))==null?null:t.value)("selected-icon",(o.selectedEntity==null?null:o.selectedEntity.id)===r.id),c(),m("itemName",r.iconName),c(),u("for","entry-",r.id,"-input"),c(),u("id","entry-",r.id,""),u("name","entry-",r.id,""),m("formControlName",r.id)}}function wi(e,i){if(e&1&&(a(0,"div",9),C(1,Di,4,12,"div",10,F),s()),e&2){let t=p().$implicit;c(),y(t.value)}}function Ei(e,i){if(e&1&&(a(0,"mat-tab",8),h(1,wi,3,0,"div",9),s()),e&2){let t=i.$implicit,r=p(2);m("formGroup",r.checklistForm)("label",t.key),c(),v(r.showTable?-1:1)}}function Mi(e,i){if(e&1){let t=D();a(0,"mat-tab-group",7),_("selectedTabChange",function(o){k(t);let n=p();return b(n.updateUrl(o))}),C(1,Ei,2,3,"mat-tab",8,F),S(3,"keyvalue"),s()}if(e&2){let t=p();m("selectedIndex",t.selectedTabIndex()),c(),y(_e(3,1,i,t.keyValueNoOrder))}}var Wt=(()=>{let i=class i extends Ve{constructor(){super(),this.checklistService=M(Ee),this.checklistDefinition$=this._database.fetchMuseumChecklist$()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["app-museum-checklist"]],features:[B],decls:4,vars:5,consts:[[3,"removePlaceholder"],["listDetail","","context","museum",3,"itemId"],[3,"selectedIndex"],["appDatabaseItemDetails",""],[3,"fish"],[3,"critter"],[1,"mb-4",3,"itemProcessData"],[3,"selectedTabChange","selectedIndex"],[3,"formGroup","label"],[1,"icon-grid"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked","selected-icon"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","itemName"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"formControlName","id","name"]],template:function(o,n){if(o&1&&(a(0,"app-list-detail-container",0),h(1,Fi,2,1,"app-database-item-details",1)(2,Mi,4,4,"mat-tab-group",2),S(3,"async"),s()),o&2){let l;m("removePlaceholder",n.showTable),c(),v(n.selectedEntity?1:-1),c(),v((l=w(3,3,n.checklistDefinition$))?2:-1,l)}},dependencies:[G,J,ie,ne,R,K,H,W,z,oe,Y,De,Te,Fe,q,Ce],encapsulation:2});let e=i;return e})();var $i=(e,i)=>i.key;function Vi(e,i){if(e&1&&f(0,"app-cooking-recipe",5),e&2){let t=i.$implicit;m("cookingRecipe",t)}}function Pi(e,i){if(e&1&&C(0,Vi,1,1,"app-cooking-recipe",5,$i),e&2){let t=i.$implicit;y(t.cookedFrom)}}function Bi(e,i){if(e&1&&(a(0,"app-database-item-details",1),h(1,Pi,2,0,"ng-template",4),s()),e&2){let t=p();m("itemId",t.selectedEntity.id)}}function Oi(e,i){if(e&1){let t=D();a(0,"div",8)(1,"app-item-icon",9),_("click",function(){let o=k(t).$implicit,n=p(3);return b(n.showDetails(o))}),s(),a(2,"label",10),f(3,"mat-checkbox",11),s()()}if(e&2){let t,r=i.$implicit,o=p(3);$("checklist-checked",(t=o.checklistForm.get(r.id))==null?null:t.value)("selected-icon",(o.selectedEntity==null?null:o.selectedEntity.id)===r.id),c(),m("itemName",r.iconName),c(),u("for","entry-",r.id,"-input"),c(),u("id","entry-",r.id,""),u("name","entry-",r.id,""),m("formControlName",r.id)}}function Ri(e,i){if(e&1&&(a(0,"div",6),C(1,Oi,4,12,"div",7,F),s()),e&2){let t=p().$implicit;c(),y(t.value)}}function Gi(e,i){if(e&1&&(a(0,"mat-tab",3),S(1,"addSpacesToPascalCase"),S(2,"titlecase"),h(3,Ri,3,0,"div",6),s()),e&2){let t=i.$implicit,r=p();m("formGroup",r.checklistForm)("label",r.cookingUtensilMapping[t.key.toLowerCase()]?r.cookingUtensilMapping[t.key.toLowerCase()].displayName:w(2,5,w(1,3,t.key))),c(3),v(r.showTable?-1:3)}}var zt=(()=>{let i=class i extends Ve{constructor(){super(),this.checklistService=M(At),this.checklistDefinition$=this._database.fetchCookingRecipesChecklist$(),this.cookingUtensilMapping=this._database.getCookingUtensilMapping(),this.urlPathFromLabel=r=>{let o=Object.keys(this.cookingUtensilMapping).find(n=>this.cookingUtensilMapping[n].displayName===r);return o||r.toLowerCase().replaceAll(" ","")}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["app-cooking-recipes-checklist"]],features:[B],decls:7,vars:8,consts:[[3,"removePlaceholder"],["listDetail","","hideQualityGrid","","context","cooking_recipes",3,"itemId"],[3,"selectedTabChange","selectedIndex"],[3,"formGroup","label"],["appDatabaseItemDetails",""],[1,"mb-4",3,"cookingRecipe"],[1,"icon-grid"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked","selected-icon"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","itemName"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"formControlName","id","name"]],template:function(o,n){o&1&&(a(0,"app-list-detail-container",0),h(1,Bi,2,1,"app-database-item-details",1),a(2,"mat-tab-group",2),_("selectedTabChange",function(I){return n.updateUrl(I)}),C(3,Gi,4,7,"mat-tab",3,F),S(5,"async"),S(6,"keyvalue"),s()()),o&2&&(m("removePlaceholder",n.showTable),c(),v(n.selectedEntity?1:-1),c(),m("selectedIndex",n.selectedTabIndex()),c(),y(_e(6,5,w(5,3,n.checklistDefinition$),n.keyValueNoOrder)))},dependencies:[G,J,ie,ne,R,K,H,W,z,we,oe,Y,q,et,Ce,te],encapsulation:2});let e=i;return e})();function Ai(e,i){if(e&1&&f(0,"app-offering",3),e&2){let t=i.$implicit;m("details",t)}}function Li(e,i){if(e&1&&(a(0,"app-item-card-switch",0),h(1,Ai,1,1,"ng-template",2),s()),e&2){let t=p();m("item",t.selectedEntity)}}function ji(e,i){if(e&1){let t=D();a(0,"div",13),S(1,"entityKey"),a(2,"app-item-icon",14),_("click",function(){k(t);let o=p().$implicit,n=p(5);return b(n.showDetails(o))}),s(),a(3,"label",15),f(4,"mat-checkbox",16),s()()}if(e&2){let t,r=i,o=p().$implicit,n=p(5);$("checklist-checked",(t=n.checklistForm.get(r))==null?null:t.value)("selected-icon",n.selectedEntity&&w(1,14,n.selectedEntity)===r),c(2),m("amount",o.amount)("itemName",o.item.iconName)("quality",o.quality),c(),u("for","entry-",r,"-input"),c(),u("id","entry-",r,""),u("name","entry-",r,""),m("formControlName",r)}}function Ui(e,i){if(e&1&&(h(0,ji,5,16,"div",12),S(1,"entityKey")),e&2){let t,r=i.$implicit;v((t=w(1,1,r.item))?0:-1,t)}}function qi(e,i){if(e&1&&(a(0,"div",7)(1,"div",8),f(2,"img",9),a(3,"div",10)(4,"div"),d(5),s(),a(6,"div"),d(7),s()()(),a(8,"div",11),C(9,Ui,2,3,null,null,F),s()()),e&2){let t=i.$implicit,r=p(4);c(),$("bg-merino-300",(r.activeOffering==null?null:r.activeOffering.title)===t.title),c(),u("alt","",t.title," offering icon"),u("ngSrc","",r.bundleAssetPath()+t.imageName,".webp"),c(3),me(t.title),c(2),le(" ",t.numOfItemRequired===-1?"All":t.numOfItemRequired," required: "),c(2),y(t.requiredItems)}}function Ki(e,i){if(e&1&&(a(0,"div",6),C(1,qi,11,8,"div",7,F),s()),e&2){let t=p().$implicit;c(),y(t.offerings)}}function Hi(e,i){if(e&1&&(a(0,"mat-tab",5),S(1,"addSpacesToPascalCase"),h(2,Ki,3,0,"div",6),s()),e&2){let t=i.$implicit,r=p(2);Ze("label",w(1,2,t.offeringGroupTitle)),c(2),v(r.showTable?-1:2)}}function Wi(e,i){if(e&1){let t=D();a(0,"mat-tab-group",4),_("selectedTabChange",function(o){k(t);let n=p();return b(n.updateUrl(o))}),C(1,Hi,3,4,"mat-tab",5,F),s()}if(e&2){let t=p();m("formGroup",t.checklistForm)("selectedIndex",t.selectedTabIndex()),c(),y(i)}}var Jt=(()=>{let i=class i extends Ie{constructor(){super(),this.checklistService=M(Lt),this.checklistForm=new xe({}),this.useBeta=M(st).getSettings().useBeta,this.bundleAssetPath=j(`assets/${this.useBeta?"beta":"live"}/items/icons/`),this._altars=[],this.urlPathFromLabel=r=>{let o=r.toLowerCase().replaceAll(" ",""),n=this._altars.find(l=>l.offeringGroupTitle.toLowerCase().replaceAll(" ","")===o);return n?n.urlPath:r.toLowerCase().replaceAll(" ","")},this.checklistForm.valueChanges.pipe(ve()).subscribe({next:r=>{let o=[];Object.keys(r).forEach(n=>{r[n]&&o.push(n)}),this.checklistService.set(o)}}),this.offerings$=this._database.fetchOfferings$().pipe(de(r=>{let o=r.filter(l=>!l.customType),n=o.map(l=>l.urlPath);return this._altars=o,o.forEach(l=>{l.offerings.forEach(I=>{I.requiredItems.forEach(x=>{let E=at(x.item);this.checklistForm.addControl(E,new O(this.checklistService.isChecked(E),{nonNullable:!0}),{emitEvent:!1})})})}),this.activateTabFromRoute(n),o}))}showDetails(r){this.entryForToDo=r,r&&"amount"in r?super.showDetails(r.item):super.showDetails(r)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=T({type:i,selectors:[["app-offerings-checklist"]],features:[B],decls:4,vars:4,consts:[["listDetail","","context","offerings",3,"item"],[3,"formGroup","selectedIndex"],["appDatabaseItemDetails",""],[3,"details"],[3,"selectedTabChange","formGroup","selectedIndex"],[3,"label"],[1,"grid","grid-cols-1","lg:grid-cols-2","gap-6"],[1,"flex","flex-col","gap-y-2"],[1,"rounded-lg","bg-merino","flex","items-center","gap-4","p-4"],["height","64","width","64",3,"alt","ngSrc"],[1,"flex","flex-col","text-lg","font-semibold"],[1,"icon-grid","w-full"],[1,"icon-grid-item","checklist-item","flex","flex-col",3,"checklist-checked","selected-icon"],[1,"icon-grid-item","checklist-item","flex","flex-col"],[3,"click","amount","itemName","quality"],[1,"text-white","flex","justify-center",3,"for"],[1,"flex",3,"formControlName","id","name"]],template:function(o,n){if(o&1&&(a(0,"app-list-detail-container"),h(1,Li,2,1,"app-item-card-switch",0)(2,Wi,3,2,"mat-tab-group",1),S(3,"async"),s()),o&2){let l;c(),v(n.selectedEntity?1:-1),c(),v((l=w(3,2,n.offerings$))?2:-1,l)}},dependencies:[G,J,ie,ne,R,K,H,W,z,Y,re,ae,it,q,Nt,te],encapsulation:2});let e=i;return e})();var zi=[{path:"",component:jt,children:[{path:"",component:Kt},{path:"to-do",loadChildren:()=>import("./chunk-WHKSG3Q2.js").then(e=>e.ToDoModule)},{path:"museum-checklist",redirectTo:"museum-checklist/",pathMatch:"full"},{path:"museum-checklist/:tabName",component:Wt,title:"Museum checklist - My Guide"},{path:"cooking-recipes-checklist",redirectTo:"cooking-recipes-checklist/",pathMatch:"full"},{path:"cooking-recipes-checklist/:tabName",component:zt,title:"Cooking recipes checklist - My Guide"},{path:"offerings-checklist",redirectTo:"offerings-checklist/",pathMatch:"full"},{path:"offerings-checklist/:tabName",component:Jt,title:"Offerings checklist - My Guide"},{path:"settings",loadChildren:()=>import("./chunk-QSI43SYB.js").then(e=>e.SettingsModule),title:"Settings - My Guide"}]}],Yt=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=ue({type:i}),i.\u0275inj=fe({imports:[Be.forChild(zi),Be]});let e=i;return e})();var pr=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=ue({type:i}),i.\u0275inj=fe({imports:[tt,Yt,Se,Rt,wt,yt,ge,Ot,we,oe,Bt,De,Te,Fe,re,$t,Pt,Vt,ae,be,Me,$e]});let e=i;return e})();export{pr as MyCoralGuideModule}; diff --git a/chunk-NOVVTXMF.js b/chunk-VBOZDBHI.js similarity index 65% rename from chunk-NOVVTXMF.js rename to chunk-VBOZDBHI.js index bcef8627c4..12bdc15efd 100644 --- a/chunk-NOVVTXMF.js +++ b/chunk-VBOZDBHI.js @@ -1 +1 @@ -import{t as d}from"./chunk-QVSQOUAD.js";import{P as n,We as u,Z as i,_b as p,ec as c,fc as m,mb as s,mf as f,ta as a}from"./chunk-4KZEYPV3.js";var F=(()=>{let e=class e extends u{constructor(){super(...arguments),this.SHOP_DISPLAY_NAMES=c,this.SHOP_ICONS=m,this.uiIcon=p}};e.\u0275fac=(()=>{let o;return function(r){return(o||(o=i(e)))(r||e)}})(),e.\u0275cmp=n({type:e,selectors:[["app-base-furniture-store"]],standalone:!0,features:[a,s],decls:0,vars:0,template:function(l,r){},dependencies:[d,f],encapsulation:2});let t=e;return t})();export{F as a}; +import{t as d}from"./chunk-BPN5VRCO.js";import{P as n,_ as i,af as u,cc as p,ic as c,jc as m,nb as s,sf as f,ua as a}from"./chunk-PYTDIKHQ.js";var F=(()=>{let e=class e extends u{constructor(){super(...arguments),this.SHOP_DISPLAY_NAMES=c,this.SHOP_ICONS=m,this.uiIcon=p}};e.\u0275fac=(()=>{let o;return function(r){return(o||(o=i(e)))(r||e)}})(),e.\u0275cmp=n({type:e,selectors:[["app-base-furniture-store"]],standalone:!0,features:[a,s],decls:0,vars:0,template:function(l,r){},dependencies:[d,f],encapsulation:2});let t=e;return t})();export{F as a}; diff --git a/chunk-WAN5NSCB.js b/chunk-WHKSG3Q2.js similarity index 93% rename from chunk-WAN5NSCB.js rename to chunk-WHKSG3Q2.js index 4b93d5bf34..6be0c14fbb 100644 --- a/chunk-WAN5NSCB.js +++ b/chunk-WHKSG3Q2.js @@ -1 +1 @@ -import{a as I,b as mt}from"./chunk-M22KCL2Z.js";import{$a as J,$c as ot,Aa as d,Ca as v,Cd as st,De as yt,Fa as p,Ga as T,Ha as b,Ia as S,Ja as l,K as F,Ka as a,Kd as ct,La as x,Md as pt,N as g,Ob as X,Od as dt,P as y,Pa as Q,Pd as ut,Q as V,Ra as k,Sa as c,Sd as ft,Ta as H,Ua as $,Ue as j,V as L,W as O,Wc as et,Yd as _,Za as G,Zb as Z,_a as Y,aa as R,ad as it,ca as D,cd as N,d as E,db as s,dd as nt,e as B,ea as U,eb as f,f as A,fb as K,fe as Ct,gb as W,he as ht,ie as gt,je as xt,ka as r,mf as _t,nd as at,oc as tt,sd as rt,u as q,vd as lt,wa as u}from"./chunk-4KZEYPV3.js";var z=["offerings","journal_fish","journal_critter","journal_insects","journal_gems","journal_fossils","journal_artifacts","journal_crops","journal_animal_produce","journal_scavangables","journal_ocean_produce","cooking_recipes","crafting","artisan","museum","uncategorized","item_mixing","database"],w={offerings:"Offerings",journal_fish:"Fish",journal_critter:"Sea Critter",journal_insects:"Insects",journal_gems:"Gems",journal_fossils:"Fossils",journal_artifacts:"Artifacts",journal_crops:"Crops",journal_animal_produce:"Animal Produce",journal_ocean_produce:"Ocean Produce",journal_scavangables:"Scavangables",cooking_recipes:"Cooking recipes",crafting:"Crafting",artisan:"Artisan",museum:"Museum",uncategorized:"Uncategorized",item_mixing:"Item mixing",database:"Database"};var St=["*"];function Et(t,o){if(t&1&&x(0,"app-rarity-icon",5),t&2){let e=c(2);d("quality",e.quality())}}function kt(t,o){if(t&1&&(l(0,"div",0),x(1,"app-item-icon",3),l(2,"span",4),s(3),a(),u(4,Et,1,1,"app-rarity-icon",5),a()),t&2){let e=c();r(),d("itemName",e.item().iconName),r(),v("line-through",e.isChecked),r(),f(e.item().displayName),r(),p(e.quality()?4:-1)}}var Dt=(()=>{var o,e;let i=class i{constructor(){B(this,o);B(this,e);this.amount=D(),this.quality=D(),this.item=D.required(),this.category=D.required(),this.markedAsComplete=new U,this.qualities=Z,this.isChecked=!1,A(this,o,g(_)),A(this,e,g(R))}ngOnInit(){E(this,o).categoryCompleted$().pipe(j(E(this,e)),q(n=>n===this.category())).subscribe({next:()=>{this.toggleCompletionStatus(!0),this.checkbox&&(this.checkbox.checked=!0)}})}toggleCompletionStatus(n){this.isChecked=n,E(this,o).updateStatus(this.category(),this.item(),n)}};o=new WeakMap,e=new WeakMap,i.\u0275fac=function(C){return new(C||i)},i.\u0275cmp=y({type:i,selectors:[["app-to-do-entry-base"]],viewQuery:function(C,h){if(C&1&&G(I,7),C&2){let M;Y(M=J())&&(h.checkbox=M.first)}},hostVars:2,hostBindings:function(C,h){C&2&&v("opacity-50",h.isChecked)},inputs:{amount:[1,"amount"],quality:[1,"quality"],item:[1,"item"],category:[1,"category"]},outputs:{markedAsComplete:"markedAsComplete"},ngContentSelectors:St,decls:5,vars:2,consts:[[1,"flex","gap-2","items-center"],[1,"ml-auto","font-semibold","mr-4"],[3,"change"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap"],[1,"!w-4",3,"quality"]],template:function(C,h){C&1&&(H(),u(0,kt,5,5,"div",0),$(1),l(2,"span",1),s(3),a(),l(4,"mat-checkbox",2),k("change",function(bt){return h.toggleCompletionStatus(bt.checked)}),a()),C&2&&(p(h.item()?0:-1),r(3),f(h.amount()?"x"+h.amount():""))},dependencies:[ut,dt,I],styles:["[_nghost-%COMP%]{display:flex;height:48px;align-items:center;gap:.5rem;border-radius:1rem;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-bg-opacity: .05;padding-left:1rem;padding-right:1rem;font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}"]});let t=i;return t})();function jt(t,o){if(t&1&&x(0,"app-to-do-entry-base",3),t&2){let e=o.$implicit,i=c(2);d("amount",e.amount)("category",i.context==="uncategorized"?void 0:i.context)("item",e.itemEntry)("quality",e.quality)("@leaveAnimation",void 0)}}function wt(t,o){if(t&1){let e=Q();l(0,"header",0)(1,"h2",1),s(2),a(),l(3,"button",2),k("click",function(){L(e);let m=c();return O(m.completeList())}),s(4,"complete list"),a()(),l(5,"div"),b(6,jt,1,5,"app-to-do-entry-base",3,T),a()}if(t&2){let e=c();r(2),f(e.context==="uncategorized"||e.context===void 0?"Uncategorized":e.ToDoContextDisplayNames[e.context]),r(3),d("@.disabled",!(e.toDoId!=null&&e.toDoId.includes(e.context)||e.toDoId===void 0)),r(),S(e.data)}}var vt=(()=>{let o=class o{constructor(){this.ToDoContextDisplayNames=w,this._toDoService=g(_)}get data(){return this._toDoService.getCategoryList(this.context==="uncategorized"?void 0:this.context)}get hidden(){return!this.toDoId?.includes(this.context)||!this.data.length}completeList(){this._toDoService.completeCategory(this.context==="uncategorized"?void 0:this.context)}};o.\u0275fac=function(m){return new(m||o)},o.\u0275cmp=y({type:o,selectors:[["app-to-do-partial"]],hostVars:2,hostBindings:function(m,n){m&2&&v("hidden",n.hidden)},inputs:{context:"context",toDoId:"toDoId"},decls:1,vars:1,consts:[[1,"flex","justify-between","items-center","mt-5","mb-2"],[1,"font-semibold","text-xl","text-black"],[1,"btn-amber",3,"click"],[1,"mb-2","block",3,"amount","category","item","quality"]],template:function(m,n){m&1&&u(0,wt,8,2),m&2&&p(n.data.length&&(n.toDoId!=null&&n.toDoId.includes(n.context))?0:-1)},dependencies:[Dt],encapsulation:2,data:{animation:[ot("leaveAnimation",[nt(":leave",[N({height:"*",opacity:1}),it("200ms ease-in",N({height:0,opacity:0}))])])]}});let t=o;return t})();function Bt(t,o){t&1&&s(0," All ")}function At(t,o){if(t&1&&(l(0,"span",11),s(1),a()),t&2){let e=c(3);r(),W(" (+",e.toDoCategoryControl.value.length-1," ",e.toDoCategoryControl.value.length===2?"other":"others"," ) ")}}function Nt(t,o){if(t&1&&(s(0),u(1,At,2,2,"span",11)),t&2){let e=c(2);K(" ",e.toDoCategoryControl.value[0]!=="all"?e.toDoCategoryControl.value[0]==="uncategorized"?"Uncategorized":e.toDoContextDisplayNames[e.toDoCategoryControl.value[0]]:""," "),r(),p(e.toDoCategoryControl.value.length>1?1:-1)}}function zt(t,o){if(t&1&&u(0,Nt,2,2),t&2){let e=c();p(e.toDoCategoryControl.value.length?0:-1)}}function Pt(t,o){if(t&1&&(l(0,"mat-option",6)(1,"div",1)(2,"span"),s(3),a(),l(4,"span"),s(5),a()()()),t&2){let e=o.$implicit,i=c();d("value",e),r(3),f(i.toDoContextDisplayNames[e]),r(2),f(i.toDoService.getCategoryList(e).length)}}function qt(t,o){if(t&1&&x(0,"app-to-do-partial",8),t&2){let e=o.$implicit,i=c();d("context",e)("toDoId",i.toDoCategoryControl.value)}}function Ft(t,o){t&1&&(l(0,"div",10)(1,"h2",12),s(2,"No entries in to-do list"),a(),l(3,"p",13),s(4," Your current to-do list is empty! Visit the "),l(5,"a",14),s(6,"journal"),a(),s(7,", the "),l(8,"a",15),s(9,"offerings"),a(),s(10," or other places to add entries to your to-do list. "),a()())}function Vt(t,o){t&1&&(l(0,"div",10)(1,"h2",12),s(2,"No entries for selection"),a(),l(3,"p",13),s(4," There are no entries for your current filter settings. "),a()())}var Tt=(()=>{let o=class o{constructor(){this.toDoContexts=z,this.toDoContextDisplayNames=w,this.toDoCategoryControl=new rt(["all",...z,"uncategorized"],{nonNullable:!0}),this.toDoService=g(_),this.hadAllBefore=!0,this.settings=g(tt),this.toDoCategoryControl.valueChanges.pipe(j()).subscribe({next:i=>{this.hadAllBefore&&!i.includes("all")?(this.toDoCategoryControl.setValue([],{emitEvent:!1}),this.hadAllBefore=!1):!this.hadAllBefore&&i.includes("all")?(this.toDoCategoryControl.setValue(["all",...this.toDoContexts],{emitEvent:!1}),this.hadAllBefore=!0):this.hadAllBefore&&i.lengthm!=="all"),{emitEvent:!1}),this.hadAllBefore=!1)}})}};o.\u0275fac=function(m){return new(m||o)},o.\u0275cmp=y({type:o,selectors:[["app-to-do"]],decls:29,vars:8,consts:[[1,"px-main-hz","py-main-vt"],[1,"flex","justify-between"],[1,"mb-4","font-semibold","text-2xl","text-black"],[1,"btn","btn-secondary"],["multiple","","placeholder","None",3,"formControl"],["value","all"],[3,"value"],["value","uncategorized"],[3,"context","toDoId"],["context","uncategorized",3,"toDoId"],[1,"show-when-none-displayed"],[1,"text-sm","opacity-80"],[1,"mb-2","mt-4","font-semibold","text-xl","text-black"],[1,"text-black"],["routerLink","/journal",1,"underline"],["routerLink","/locations/lake-temple",1,"underline"]],template:function(m,n){m&1&&(l(0,"div",0)(1,"app-card")(2,"div",1)(3,"h1",2),s(4,"To-Dos"),a(),l(5,"mat-form-field",3)(6,"mat-select",4)(7,"mat-select-trigger"),u(8,Bt,1,0)(9,zt,1,1),a(),l(10,"mat-option",5)(11,"div",1)(12,"span"),s(13,"All"),a(),l(14,"span"),s(15),a()()(),b(16,Pt,6,3,"mat-option",6,T),l(18,"mat-option",7)(19,"div",1)(20,"span"),s(21,"Uncategorized"),a(),l(22,"span"),s(23),a()()()()()(),b(24,qt,1,2,"app-to-do-partial",8,T),x(26,"app-to-do-partial",9),u(27,Ft,11,0,"div",10)(28,Vt,5,0,"div",10),a()()),m&2&&(r(6),d("formControl",n.toDoCategoryControl),r(2),p(n.toDoCategoryControl.value.includes("all")?8:-1),r(),p(n.toDoCategoryControl.value.includes("all")?-1:9),r(6),f(n.toDoService.currentToDoAmount),r(),S(n.toDoContexts),r(7),f(n.toDoService.getCategoryList().length),r(),S(n.toDoContexts),r(2),d("toDoId",n.toDoCategoryControl.value),r(),p(n.toDoService.currentIsEmpty?27:-1),r(),p(n.toDoService.currentIsEmpty?-1:28))},dependencies:[ct,ft,Ct,ht,gt,et,at,lt,vt],styles:["app-to-do-partial[_ngcontent-%COMP%]:not(.hidden) ~ .show-when-none-displayed[_ngcontent-%COMP%]{display:none}"]});let t=o;return t})();var Lt=[{path:"",component:Tt},{path:":toDoId",redirectTo:""}],Ve=(()=>{let o=class o{};o.\u0275fac=function(m){return new(m||o)},o.\u0275mod=V({type:o}),o.\u0275inj=F({imports:[X,pt.forChild(Lt),_t,mt,yt,xt,st]});let t=o;return t})();export{Ve as ToDoModule}; +import{a as I,b as mt}from"./chunk-5Y7JXUU2.js";import{$a as Y,Ba as d,Da as v,Ga as p,Gd as st,Ha as T,Ia as b,Ja as S,Je as yt,K as F,Ka as l,La as a,Ma as x,N as g,Od as ct,P as y,Q as V,Qa as Q,Qb as X,Qd as pt,Sa as k,Ta as c,Ua as H,Ud as dt,Va as $,Vd as ut,W as L,X as O,Yd as ft,_a as G,_c as et,_e as j,ab as J,ba as R,bc as Z,ce as _,d as E,da as D,dd as ot,e as B,eb as s,ed as it,f as A,fa as U,fb as f,gb as K,gd as N,hb as W,hd as nt,la as r,le as Ct,ne as ht,oe as gt,pe as xt,rd as at,sc as tt,sf as _t,u as q,wd as rt,xa as u,zd as lt}from"./chunk-PYTDIKHQ.js";var z=["offerings","journal_fish","journal_critter","journal_insects","journal_gems","journal_fossils","journal_artifacts","journal_crops","journal_animal_produce","journal_scavangables","journal_ocean_produce","cooking_recipes","crafting","artisan","museum","uncategorized","item_mixing","database"],w={offerings:"Offerings",journal_fish:"Fish",journal_critter:"Sea Critter",journal_insects:"Insects",journal_gems:"Gems",journal_fossils:"Fossils",journal_artifacts:"Artifacts",journal_crops:"Crops",journal_animal_produce:"Animal Produce",journal_ocean_produce:"Ocean Produce",journal_scavangables:"Scavangables",cooking_recipes:"Cooking recipes",crafting:"Crafting",artisan:"Artisan",museum:"Museum",uncategorized:"Uncategorized",item_mixing:"Item mixing",database:"Database"};var St=["*"];function Et(t,o){if(t&1&&x(0,"app-rarity-icon",5),t&2){let e=c(2);d("quality",e.quality())}}function kt(t,o){if(t&1&&(l(0,"div",0),x(1,"app-item-icon",3),l(2,"span",4),s(3),a(),u(4,Et,1,1,"app-rarity-icon",5),a()),t&2){let e=c();r(),d("itemName",e.item().iconName),r(),v("line-through",e.isChecked),r(),f(e.item().displayName),r(),p(e.quality()?4:-1)}}var Dt=(()=>{var o,e;let i=class i{constructor(){B(this,o);B(this,e);this.amount=D(),this.quality=D(),this.item=D.required(),this.category=D.required(),this.markedAsComplete=new U,this.qualities=Z,this.isChecked=!1,A(this,o,g(_)),A(this,e,g(R))}ngOnInit(){E(this,o).categoryCompleted$().pipe(j(E(this,e)),q(n=>n===this.category())).subscribe({next:()=>{this.toggleCompletionStatus(!0),this.checkbox&&(this.checkbox.checked=!0)}})}toggleCompletionStatus(n){this.isChecked=n,E(this,o).updateStatus(this.category(),this.item(),n)}};o=new WeakMap,e=new WeakMap,i.\u0275fac=function(C){return new(C||i)},i.\u0275cmp=y({type:i,selectors:[["app-to-do-entry-base"]],viewQuery:function(C,h){if(C&1&&G(I,7),C&2){let M;Y(M=J())&&(h.checkbox=M.first)}},hostVars:2,hostBindings:function(C,h){C&2&&v("opacity-50",h.isChecked)},inputs:{amount:[1,"amount"],quality:[1,"quality"],item:[1,"item"],category:[1,"category"]},outputs:{markedAsComplete:"markedAsComplete"},ngContentSelectors:St,decls:5,vars:2,consts:[[1,"flex","gap-2","items-center"],[1,"ml-auto","font-semibold","mr-4"],[3,"change"],[1,"!w-7",3,"itemName"],[1,"ml-1","whitespace-nowrap"],[1,"!w-4",3,"quality"]],template:function(C,h){C&1&&(H(),u(0,kt,5,5,"div",0),$(1),l(2,"span",1),s(3),a(),l(4,"mat-checkbox",2),k("change",function(bt){return h.toggleCompletionStatus(bt.checked)}),a()),C&2&&(p(h.item()?0:-1),r(3),f(h.amount()?"x"+h.amount():""))},dependencies:[ut,dt,I],styles:["[_nghost-%COMP%]{display:flex;height:48px;align-items:center;gap:.5rem;border-radius:1rem;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-bg-opacity: .05;padding-left:1rem;padding-right:1rem;font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}"]});let t=i;return t})();function jt(t,o){if(t&1&&x(0,"app-to-do-entry-base",3),t&2){let e=o.$implicit,i=c(2);d("amount",e.amount)("category",i.context==="uncategorized"?void 0:i.context)("item",e.itemEntry)("quality",e.quality)("@leaveAnimation",void 0)}}function wt(t,o){if(t&1){let e=Q();l(0,"header",0)(1,"h2",1),s(2),a(),l(3,"button",2),k("click",function(){L(e);let m=c();return O(m.completeList())}),s(4,"complete list"),a()(),l(5,"div"),b(6,jt,1,5,"app-to-do-entry-base",3,T),a()}if(t&2){let e=c();r(2),f(e.context==="uncategorized"||e.context===void 0?"Uncategorized":e.ToDoContextDisplayNames[e.context]),r(3),d("@.disabled",!(e.toDoId!=null&&e.toDoId.includes(e.context)||e.toDoId===void 0)),r(),S(e.data)}}var vt=(()=>{let o=class o{constructor(){this.ToDoContextDisplayNames=w,this._toDoService=g(_)}get data(){return this._toDoService.getCategoryList(this.context==="uncategorized"?void 0:this.context)}get hidden(){return!this.toDoId?.includes(this.context)||!this.data.length}completeList(){this._toDoService.completeCategory(this.context==="uncategorized"?void 0:this.context)}};o.\u0275fac=function(m){return new(m||o)},o.\u0275cmp=y({type:o,selectors:[["app-to-do-partial"]],hostVars:2,hostBindings:function(m,n){m&2&&v("hidden",n.hidden)},inputs:{context:"context",toDoId:"toDoId"},decls:1,vars:1,consts:[[1,"flex","justify-between","items-center","mt-5","mb-2"],[1,"font-semibold","text-xl","text-black"],[1,"btn-amber",3,"click"],[1,"mb-2","block",3,"amount","category","item","quality"]],template:function(m,n){m&1&&u(0,wt,8,2),m&2&&p(n.data.length&&(n.toDoId!=null&&n.toDoId.includes(n.context))?0:-1)},dependencies:[Dt],encapsulation:2,data:{animation:[ot("leaveAnimation",[nt(":leave",[N({height:"*",opacity:1}),it("200ms ease-in",N({height:0,opacity:0}))])])]}});let t=o;return t})();function Bt(t,o){t&1&&s(0," All ")}function At(t,o){if(t&1&&(l(0,"span",11),s(1),a()),t&2){let e=c(3);r(),W(" (+",e.toDoCategoryControl.value.length-1," ",e.toDoCategoryControl.value.length===2?"other":"others"," ) ")}}function Nt(t,o){if(t&1&&(s(0),u(1,At,2,2,"span",11)),t&2){let e=c(2);K(" ",e.toDoCategoryControl.value[0]!=="all"?e.toDoCategoryControl.value[0]==="uncategorized"?"Uncategorized":e.toDoContextDisplayNames[e.toDoCategoryControl.value[0]]:""," "),r(),p(e.toDoCategoryControl.value.length>1?1:-1)}}function zt(t,o){if(t&1&&u(0,Nt,2,2),t&2){let e=c();p(e.toDoCategoryControl.value.length?0:-1)}}function Pt(t,o){if(t&1&&(l(0,"mat-option",6)(1,"div",1)(2,"span"),s(3),a(),l(4,"span"),s(5),a()()()),t&2){let e=o.$implicit,i=c();d("value",e),r(3),f(i.toDoContextDisplayNames[e]),r(2),f(i.toDoService.getCategoryList(e).length)}}function qt(t,o){if(t&1&&x(0,"app-to-do-partial",8),t&2){let e=o.$implicit,i=c();d("context",e)("toDoId",i.toDoCategoryControl.value)}}function Ft(t,o){t&1&&(l(0,"div",10)(1,"h2",12),s(2,"No entries in to-do list"),a(),l(3,"p",13),s(4," Your current to-do list is empty! Visit the "),l(5,"a",14),s(6,"journal"),a(),s(7,", the "),l(8,"a",15),s(9,"offerings"),a(),s(10," or other places to add entries to your to-do list. "),a()())}function Vt(t,o){t&1&&(l(0,"div",10)(1,"h2",12),s(2,"No entries for selection"),a(),l(3,"p",13),s(4," There are no entries for your current filter settings. "),a()())}var Tt=(()=>{let o=class o{constructor(){this.toDoContexts=z,this.toDoContextDisplayNames=w,this.toDoCategoryControl=new rt(["all",...z,"uncategorized"],{nonNullable:!0}),this.toDoService=g(_),this.hadAllBefore=!0,this.settings=g(tt),this.toDoCategoryControl.valueChanges.pipe(j()).subscribe({next:i=>{this.hadAllBefore&&!i.includes("all")?(this.toDoCategoryControl.setValue([],{emitEvent:!1}),this.hadAllBefore=!1):!this.hadAllBefore&&i.includes("all")?(this.toDoCategoryControl.setValue(["all",...this.toDoContexts],{emitEvent:!1}),this.hadAllBefore=!0):this.hadAllBefore&&i.lengthm!=="all"),{emitEvent:!1}),this.hadAllBefore=!1)}})}};o.\u0275fac=function(m){return new(m||o)},o.\u0275cmp=y({type:o,selectors:[["app-to-do"]],decls:29,vars:8,consts:[[1,"px-main-hz","py-main-vt"],[1,"flex","justify-between"],[1,"mb-4","font-semibold","text-2xl","text-black"],[1,"btn","btn-secondary"],["multiple","","placeholder","None",3,"formControl"],["value","all"],[3,"value"],["value","uncategorized"],[3,"context","toDoId"],["context","uncategorized",3,"toDoId"],[1,"show-when-none-displayed"],[1,"text-sm","opacity-80"],[1,"mb-2","mt-4","font-semibold","text-xl","text-black"],[1,"text-black"],["routerLink","/journal",1,"underline"],["routerLink","/locations/lake-temple",1,"underline"]],template:function(m,n){m&1&&(l(0,"div",0)(1,"app-card")(2,"div",1)(3,"h1",2),s(4,"To-Dos"),a(),l(5,"mat-form-field",3)(6,"mat-select",4)(7,"mat-select-trigger"),u(8,Bt,1,0)(9,zt,1,1),a(),l(10,"mat-option",5)(11,"div",1)(12,"span"),s(13,"All"),a(),l(14,"span"),s(15),a()()(),b(16,Pt,6,3,"mat-option",6,T),l(18,"mat-option",7)(19,"div",1)(20,"span"),s(21,"Uncategorized"),a(),l(22,"span"),s(23),a()()()()()(),b(24,qt,1,2,"app-to-do-partial",8,T),x(26,"app-to-do-partial",9),u(27,Ft,11,0,"div",10)(28,Vt,5,0,"div",10),a()()),m&2&&(r(6),d("formControl",n.toDoCategoryControl),r(2),p(n.toDoCategoryControl.value.includes("all")?8:-1),r(),p(n.toDoCategoryControl.value.includes("all")?-1:9),r(6),f(n.toDoService.currentToDoAmount),r(),S(n.toDoContexts),r(7),f(n.toDoService.getCategoryList().length),r(),S(n.toDoContexts),r(2),d("toDoId",n.toDoCategoryControl.value),r(),p(n.toDoService.currentIsEmpty?27:-1),r(),p(n.toDoService.currentIsEmpty?-1:28))},dependencies:[ct,ft,Ct,ht,gt,et,at,lt,vt],styles:["app-to-do-partial[_ngcontent-%COMP%]:not(.hidden) ~ .show-when-none-displayed[_ngcontent-%COMP%]{display:none}"]});let t=o;return t})();var Lt=[{path:"",component:Tt},{path:":toDoId",redirectTo:""}],Ve=(()=>{let o=class o{};o.\u0275fac=function(m){return new(m||o)},o.\u0275mod=V({type:o}),o.\u0275inj=F({imports:[X,pt.forChild(Lt),_t,mt,yt,xt,st]});let t=o;return t})();export{Ve as ToDoModule}; diff --git a/chunk-WIJTTHMK.js b/chunk-WIJTTHMK.js new file mode 100644 index 0000000000..7dd4ab5e76 --- /dev/null +++ b/chunk-WIJTTHMK.js @@ -0,0 +1 @@ +import{f as a}from"./chunk-Z4COKCZ7.js";import"./chunk-BPN5VRCO.js";import"./chunk-TL6KPAQW.js";import"./chunk-43NKEY2U.js";import"./chunk-PYTDIKHQ.js";export{a as JournalModule}; diff --git a/chunk-A2PSOISD.js b/chunk-XIW35ZB7.js similarity index 81% rename from chunk-A2PSOISD.js rename to chunk-XIW35ZB7.js index 8a35416c76..5bc47c4f0c 100644 --- a/chunk-A2PSOISD.js +++ b/chunk-XIW35ZB7.js @@ -1 +1 @@ -import{a as e}from"./chunk-GPI7MHXO.js";import{J as o}from"./chunk-4KZEYPV3.js";var a=(()=>{let t=class t extends e{constructor(){super("museum")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var m=(()=>{let t=class t extends e{constructor(){super("cooking-recipes")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var l=(()=>{let t=class t extends e{constructor(){super("offerings")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{a,m as b,l as c}; +import{a as e}from"./chunk-QLCYA646.js";import{J as o}from"./chunk-PYTDIKHQ.js";var a=(()=>{let t=class t extends e{constructor(){super("museum")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var m=(()=>{let t=class t extends e{constructor(){super("cooking-recipes")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var l=(()=>{let t=class t extends e{constructor(){super("offerings")}};t.\u0275fac=function(c){return new(c||t)},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{a,m as b,l as c}; diff --git a/chunk-YKSJU422.js b/chunk-YKSJU422.js new file mode 100644 index 0000000000..2d28412b35 --- /dev/null +++ b/chunk-YKSJU422.js @@ -0,0 +1 @@ +import{L as o}from"./chunk-PYTDIKHQ.js";var e=new o("BETA_CODE");export{e as a}; diff --git a/chunk-YPN75YQC.js b/chunk-YPN75YQC.js deleted file mode 100644 index a5669174c1..0000000000 --- a/chunk-YPN75YQC.js +++ /dev/null @@ -1 +0,0 @@ -import{t as a}from"./chunk-QVSQOUAD.js";import"./chunk-OHRRW4BO.js";import"./chunk-WFTBLPSZ.js";import"./chunk-4KZEYPV3.js";export{a as LocationsModule}; diff --git a/chunk-7P5ZBEP4.js b/chunk-Z4COKCZ7.js similarity index 98% rename from chunk-7P5ZBEP4.js rename to chunk-Z4COKCZ7.js index f3694bb517..6a9ddb1b1e 100644 --- a/chunk-7P5ZBEP4.js +++ b/chunk-Z4COKCZ7.js @@ -1 +1 @@ -import{a as Kt,b as te,c as ee,d as ie,e as ne,t as yi}from"./chunk-QVSQOUAD.js";import{a as Pt,b as yt,c as ae}from"./chunk-OHRRW4BO.js";import{$a as $e,$d as Qt,Aa as m,Ab as It,Ae as nt,Be as ot,Ca as y,Cd as Xe,Ce as rt,D as Lt,Da as Ne,De as si,E as fe,Fa as b,G as Ie,Ga as T,Ha as D,Hd as Ke,Ia as S,Ib as V,Ja as c,K as bt,Ka as d,Kd as ti,L as Me,La as p,Ma as _,Mc as Ye,Md as ve,N as z,Na as g,Nd as gt,Ne as dt,Ob as Jt,Oe as ct,P as f,Pa as R,Pc as Qe,Pd as N,Pe as mt,Q as ft,Qc as kt,Qd as ei,Qe as pi,R as he,Ra as w,Rd as ii,Re as lt,Sa as l,Sd as vt,Se as Zt,Ta as _e,Td as ai,Te as ui,U as Vt,Ua as Bt,Ue as bi,V as k,Va as Ae,Vc as Ze,Vd as Et,W as F,Wd as xt,We as fi,Xa as Be,Xc as qe,Xd as ni,Xe as qt,Ye as hi,Z as $,Za as je,_a as He,_b as O,a as Ht,af as _i,b as De,be as oi,ca as j,da as ke,db as u,dc as Mt,df as Xt,eb as E,fb as B,ga as Fe,gb as Ot,gc as ge,ge as ri,hc as Dt,hf as gi,ia as At,ib as J,ic as Oe,if as vi,j as $t,ja as Ee,jb as W,je as di,jf as xi,ka as r,kb as G,kc as Ue,ke as ci,l as Se,la as ht,le as mi,m as St,ma as Pe,mb as wt,mc as Je,me as Y,mf as Ci,nb as Ut,nc as We,ne as Ct,ob as Le,oc as Wt,pa as ze,pd as _t,pe as Q,qb as x,qc as Gt,qe as li,rb as C,sd as Ft,se as Z,ta as M,te as q,uc as Ge,ue as X,va as Re,ve as K,wa as s,we as tt,xb as Ve,xe as et,yb as Tt,ye as it,za as L,zc as Yt,ze as at}from"./chunk-4KZEYPV3.js";var wi=(()=>{let e=class e{constructor(){this.UI_ICONS=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-journal"]],decls:15,vars:6,consts:[["routerLink","produce",3,"uiIcon"],["routerLink","caught",3,"uiIcon"],["routerLink","found",3,"uiIcon"],["routerLink","bestiary",3,"uiIcon"],["routerLink","notes",3,"uiIcon"],["routerLink","achievements",3,"uiIcon"],[1,"hidden"]],template:function(n,o){n&1&&(c(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),u(3,"Produce"),d(),c(4,"app-module-sidebar-item",1),u(5,"Caught"),d(),c(6,"app-module-sidebar-item",2),u(7,"Found"),d(),c(8,"app-module-sidebar-item",3),u(9,"Bestiary"),d(),c(10,"app-module-sidebar-item",4),u(11,"Notes"),d(),c(12,"app-module-sidebar-item",5),u(13,"Badges "),d()(),p(14,"router-outlet",6),d()),n&2&&(r(2),m("uiIcon",o.UI_ICONS.FARMING),r(2),m("uiIcon",o.UI_ICONS.CATCHING),r(2),m("uiIcon",o.UI_ICONS.ARTISAN),r(2),m("uiIcon",o.UI_ICONS.BESTIARY),r(2),m("uiIcon",o.UI_ICONS.NOTES),r(2),m("uiIcon",o.UI_ICONS.BADGES))},dependencies:[Ke,ti,ii,ei,ci],encapsulation:2});let t=e;return t})();var zt=(()=>{let e=class e extends qt{constructor(a){super(),this.uiIcon=O,this.tabs=[],this.media=z(Ye),this.changeDetectorRef=z(Ve),this.mobileQuery=this.media.matchMedia("(max-width: 600px)"),this._mobileQueryListener=()=>this.changeDetectorRef.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener),this.formControl=a}getFilteredJournalData(a,n,o){return St([a,n,this.formControl.valueChanges.pipe(Lt(this.formControl.value)),$t(o)]).pipe(Se(([h,v,P,U])=>{let H=[];return h.sort((ut,A)=>ut.order>A.order?1:-1).forEach(ut=>{let A=v.find(st=>"dropData"in st?st.dropData[0].item?.id===ut.key:"item"in st?st.item.id===ut.key:st.id===ut.key);A&&(this.filterPredicate||H.push(A),this.filterPredicate&&this.filterPredicate(A,P,U)&&H.push(A))}),H}))}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener)}};e.\u0275fac=function(n){return new(n||e)(ht(_t))},e.\u0275cmp=f({type:e,selectors:[["ng-component"]],viewQuery:function(n,o){if(n&1&&je(Q,5),n&2){let h;He(h=$e())&&(o.matTabGroup=h.first)}},features:[M],decls:0,vars:0,template:function(n,o){},encapsulation:2});let t=e;return t})();function Yi(t,e){if(t&1&&p(0,"app-fish",2),t&2){let i=l().$implicit;m("fish",i.fish)}}function Qi(t,e){if(t&1&&p(0,"app-insect",3),t&2){let i=l().$implicit;m("critter",i.insect)}}function Zi(t,e){if(t&1&&p(0,"app-insect",3),t&2){let i=l().$implicit;m("critter",i.oceanCritter)}}function qi(t,e){if(t&1&&s(0,Yi,1,1,"app-fish",2)(1,Qi,1,1,"app-insect",3)(2,Zi,1,1,"app-insect",3),t&2){let i=e.$implicit;b(i.fish?0:i.insect?1:i.oceanCritter?2:-1)}}var Si=(()=>{let e=class e{ngOnInit(){this._setCategory()}ngOnChanges(a){a.critter&&this._setCategory()}_setCategory(){this.toDoContext="fishName"in this.critter?"journal_fish":this.critter.item.inventoryCategory.toLocaleLowerCase()==="bug"?"journal_insects":"journal_critter"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-caught-details"]],inputs:{critter:"critter"},features:[Vt],decls:2,vars:2,consts:[[3,"context","itemId"],["appDatabaseItemDetails",""],[3,"fish"],[3,"critter"]],template:function(n,o){n&1&&(c(0,"app-database-item-details",0),s(1,qi,3,1,"ng-template",1),d()),n&2&&m("context",o.toDoContext)("itemId",o.critter.item.id)},dependencies:[yt,Kt,te,Pt],encapsulation:2});let t=e;return t})();function ta(t,e){if(t&1&&(c(0,"td",17),p(1,"app-item-icon",18),d()),t&2){let i=e.$implicit;r(),m("itemName",i.item.iconName)}}function ea(t,e){t&1&&(c(0,"th",19),u(1," Name"),d()),t&2&&L("colspan",2)}function ia(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit;r(),E(i.item.displayName)}}function aa(t,e){t&1&&(c(0,"th",19),u(1," Rarity"),d())}function na(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit,a=l(2);r(),E(a.addSpacesToPascalCase(i.rarity))}}function oa(t,e){t&1&&(c(0,"th",21),u(1," Location"),d())}function ra(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"isFish"),d()),t&2){let i=e.$implicit;r(),B("",(C(2,1,i)?i.spawnSettings[0]:i).spawnLocation.join(", ")," ")}}function da(t,e){t&1&&(c(0,"th",19),u(1," Weather"),d())}function ca(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"isFish"),d()),t&2){let i=e.$implicit,a=l(2);r(),B("",a.getTruthyValues((C(2,1,i)?i.spawnSettings[0]:i).spawnWeather)," ")}}function ma(t,e){t&1&&(c(0,"th",21),u(1," Season"),d())}function la(t,e){if(t&1&&(u(0),x(1,"isFish")),t&2){let i=l().$implicit,a=l(2);B(" ",a.getTruthyValues((C(1,1,i)?i.spawnSettings[0]:i).spawnSeason)," ")}}function sa(t,e){if(t&1&&(c(0,"div",22),u(1),d()),t&2){let i=e.$implicit,a=e.$index,n=e.$count;r(),Ot("",i,"",a!==n-1?", ":""," ")}}function pa(t,e){if(t&1&&(D(0,sa,2,2,"div",22,T),x(2,"isFish")),t&2){let i=l().$implicit,a=l(2);S(a.dateRangesToString((C(2,0,i)?i.spawnSettings[0]:i).dateRangeList))}}function ua(t,e){if(t&1&&(c(0,"td",20),s(1,la,2,3),x(2,"isFish"),s(3,pa,3,2),x(4,"isFish"),d()),t&2){let i=e.$implicit;r(),b((C(2,2,i)?i.spawnSettings[0]:i).isUsingSpecificDate?-1:1),r(2),b((C(4,4,i)?i.spawnSettings[0]:i).isUsingSpecificDate?3:-1)}}function ba(t,e){t&1&&(c(0,"th",19),u(1," Time"),d())}function fa(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"isFish"),d()),t&2){let i=e.$implicit,a=l(2);r(),B("",a.getTruthyValues((C(2,1,i)?i.spawnSettings[0]:i).spawnTime)," ")}}function ha(t,e){t&1&&(c(0,"th",19),u(1," Size"),d())}function _a(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit;r(),E(i.fishSize)}}function ga(t,e){t&1&&(c(0,"th",19),u(1," Pattern"),d())}function va(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit;r(),E(i.pattern)}}function xa(t,e){t&1&&(c(0,"th",19),u(1," Difficulty"),d())}function Ca(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"addSpacesToPascalCase"),d()),t&2){let i=e.$implicit;r(),E(C(2,1,i.difficulty))}}function ya(t,e){t&1&&p(0,"tr",23)}function wa(t,e){t&1&&p(0,"tr",24)}function Ta(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,ta,2,1,"td",2),g(),_(3,3),s(4,ea,2,1,"th",4)(5,ia,2,1,"td",5),g(),_(6,6),s(7,aa,2,0,"th",4)(8,na,2,1,"td",5),g(),_(9,7),s(10,oa,2,0,"th",8)(11,ra,3,3,"td",5),g(),_(12,9),s(13,da,2,0,"th",4)(14,ca,3,3,"td",5),g(),_(15,10),s(16,ma,2,0,"th",8)(17,ua,5,6,"td",5),g(),_(18,11),s(19,ba,2,0,"th",4)(20,fa,3,3,"td",5),g(),_(21,12),s(22,ha,2,0,"th",4)(23,_a,2,1,"td",5),g(),_(24,13),s(25,ga,2,0,"th",4)(26,va,2,1,"td",5),g(),_(27,14),s(28,xa,2,0,"th",4)(29,Ca,3,3,"td",5),g(),s(30,ya,1,0,"tr",15)(31,wa,1,0,"tr",16),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(30),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns)}}var Ii=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.getTruthyValues=Dt,this.addSpacesToPascalCase=Oe,this.BASE_DISPLAY_COLUMNS=["icon","key","rarity","weather","season","time","location"],this.sortingDataAccessor=(a,n)=>{switch(n){case"rarity":return Je.get(a[n])??0;case"key":return a[n];case"time":{let o=this._isFish(a)?a.spawnSettings[0].spawnTime:a.spawnTime;return Dt(o)==="Any"?1:o.morning?10:o.afternoon?20:o.evening?30:o.night?40:0}case"weather":{let o=this._isFish(a)?a.spawnSettings[0].spawnWeather:a.spawnWeather;return Dt(o)==="Any"?1:o.sunny?10:o.rain?20:o.snow?30:o.blizzard?40:o.windy?50:o.storm?60:0}}if(this._isFish(a))switch(n){case"fishSize":return We.get(a.fishSize)??0;case"pattern":case"difficulty":return a[n]}return 0}}static _isFishArray(a){return!!a?.[0]&&"fishName"in a[0]}dateRangesToString(a){return a.map(n=>`From ${n.startsFrom.season} ${n.startsFrom.day} to ${n.lastsTill.season} ${n.lastsTill.day}`)}setupDataSource(a){let n=a;e._isFishArray(a)&&(n=a.map(o=>o.spawnSettings.map(h=>De(Ht({},o),{spawnSettings:[h]}))).flat()),super.setupDataSource(n),e._isFishArray(this.dataSource)&&(this.displayedColumns.splice(3,0,"fishSize"),this.displayHeaderColumns.splice(2,0,"fishSize"),this.displayedColumns.splice(4,0,"pattern"),this.displayHeaderColumns.splice(3,0,"pattern"),this.displayedColumns.splice(5,0,"difficulty"),this.displayHeaderColumns.splice(4,0,"difficulty"))}_isFish(a){return!!a&&"fishName"in a}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-caught-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["mat-cell","","class","!px-2 ",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rarity"],["matColumnDef","location"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","weather"],["matColumnDef","season"],["matColumnDef","time"],["matColumnDef","fishSize"],["matColumnDef","pattern"],["matColumnDef","difficulty"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!px-2"],[1,"mx-2",3,"itemName"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"whitespace-nowrap"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,Ta,32,4,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[N,Z,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,hi,Qt],encapsulation:2});let t=e;return t})();function Sa(t,e){if(t&1&&p(0,"app-caught-details",1),t&2){let i=l();m("critter",i.selectedEntity)}}function Ia(t,e){if(t&1){let i=R();c(0,"app-item-icon",8),w("click",function(){let n=k(i).$implicit,o=l(4);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(4);y("selected-icon",(a.selectedEntity==null||a.selectedEntity.item==null?null:a.selectedEntity.item.id)===i.item.id),m("itemName",i.item.iconName)}}function Ma(t,e){if(t&1&&(c(0,"div",5),D(1,Ia,1,3,"app-item-icon",7,T),d()),t&2){let i=l();r(),S(i)}}function ka(t,e){if(t&1&&p(0,"app-caught-table",6),t&2){let i=l();m("dataSource",i)}}function Fa(t,e){if(t&1){let i=R();c(0,"app-data-filter",4),G("showTableChange",function(n){k(i);let o=l(2);return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(1,Ma,3,0,"div",5)(2,ka,1,1,"app-caught-table",6)}if(t&2){let i=l(2);J("showTable",i.showTable),m("parentFormGroup",i.formControl)("locations",i.getLocations(e)),r(),b(i.showTable?-1:1),r(),b(i.showTable?2:-1)}}function Ea(t,e){if(t&1&&(c(0,"mat-tab",3),s(1,Fa,3,5),x(2,"async"),d()),t&2){let i,a=e.$implicit;m("label",a.title),r(),b((i=C(2,2,a.data))?1:-1,i)}}var Mi=(()=>{let e=class e extends zt{constructor(){super(new _t({season:new Ft([...Mt],{nonNullable:!0}),weather:new Ft([...ge],{nonNullable:!0}),location:new Ft(null)})),this.SEA_CRITTERS_INDEX=2,this.tabs=[{title:"Fish",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-fish"),this._database.fetchFish$(),0)},{title:"Insects",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-insects"),this._database.fetchBugsAndInsects$(),1)},{title:"Sea Critters",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-sea-critters"),this._database.fetchOceanCritters$(),this.SEA_CRITTERS_INDEX)}],this.activateTabFromRoute(this.tabs.map(a=>a.title))}filterPredicate(a,n,o){if(!n.season?.length||!n.weather?.length)return!1;let h="spawnSettings"in a?a.spawnSettings?.map(A=>A.spawnSeason):[a.spawnSeason],v="spawnSettings"in a?a.spawnSettings?.map(A=>A.spawnWeather):[a.spawnWeather],P="spawnSettings"in a?a.spawnSettings?.map(A=>A.spawnLocation).flat():a.spawnLocation;return!(!n.location||P.includes(n.location))||!h.reduce((A,st)=>{let Nt=Dt(st).toLowerCase(),ue=Nt==="any"||n.season?.length===Mt.length||!!n.season?.some(be=>Nt.includes((""+be).toLowerCase()));return A||ue},!1)?!1:v.reduce((A,st)=>{let Nt=Dt(st).toLowerCase(),ue=o===this.SEA_CRITTERS_INDEX||Nt==="any"||n.weather?.length===ge.length||!!n.weather?.some(be=>Nt.includes((""+be).toLowerCase()));return A||ue},!1)}getLocations(a){return a.length?[...new Set(a.map(n=>"fishName"in n?n.spawnSettings.map(o=>o.spawnLocation):n.spawnLocation).flat(2))].sort():[]}resetLocationFilter(){this.formControl.get("location")?.setValue(null)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-caught"]],features:[M],decls:5,vars:3,consts:[[3,"removePlaceholder"],["listDetail","",3,"critter"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"showTableChange","showTable","parentFormGroup","locations"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"itemName","selected-icon"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container",0),s(1,Sa,1,1,"app-caught-details",1),c(2,"mat-tab-group",2),w("selectedTabChange",function(v){return o.updateUrl(v),o.resetLocationFilter()}),D(3,Ea,3,4,"mat-tab",3,T),d()()),n&2&&(m("removePlaceholder",o.showTable),r(),b(o.selectedEntity?1:-1),r(),m("selectedIndex",o.selectedTabIndex()),r(),S(o.tabs))},dependencies:[N,Y,dt,Ct,Q,Si,Ii,V],encapsulation:2});let t=e;return t})();function Pa(t,e){if(t&1&&(c(0,"div"),u(1,"Enchantment points: "),c(2,"span",2),u(3),d()()),t&2){let i=l();y("mb-3",i.details().chanceAsProcessResult),r(3),E(i.details().enchantmentPoints)}}function za(t,e){if(t&1&&p(0,"app-shop-processing-result",1),t&2){let i=l();m("itemProcessData",i.details().chanceAsProcessResult)}}var le=(()=>{let e=class e{constructor(){this.details=j.required()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-db-item-found"]],inputs:{details:[1,"details"]},standalone:!0,features:[wt],decls:2,vars:2,consts:[[3,"mb-3"],[1,"mb-4",3,"itemProcessData"],[1,"text-black"]],template:function(n,o){n&1&&s(0,Pa,4,3,"div",0)(1,za,1,1,"app-shop-processing-result",1),n&2&&(b(o.details().enchantmentPoints?0:-1),r(),b(o.details().chanceAsProcessResult?1:-1))},dependencies:[ee],encapsulation:2});let t=e;return t})();function Aa(t,e){if(t&1&&p(0,"app-db-item-found",4),t&2){let i=e.$implicit;m("details",i)}}function Ba(t,e){if(t&1&&(c(0,"app-database-item-details",0),s(1,Aa,1,1,"ng-template",3),d()),t&2){let i=l();m("itemId",i.selectedEntity.id)("context",i.toDoContext())}}function ja(t,e){if(t&1){let i=R();c(0,"app-item-icon",9),w("click",function(){let n=k(i).$implicit,o=l(4);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(4);y("selected-icon",(a.selectedEntity==null?null:a.selectedEntity.id)===i.id),m("itemName",i.iconName)}}function Ha(t,e){if(t&1&&(c(0,"div",6),D(1,ja,1,3,"app-item-icon",8,T),d()),t&2){let i=l();r(),S(i)}}function $a(t,e){if(t&1&&p(0,"app-non-specialized-table",7),t&2){let i=l();m("dataSource",i)}}function La(t,e){if(t&1&&s(0,Ha,3,0,"div",6)(1,$a,1,1,"app-non-specialized-table",7),t&2){let i=l(2);b(i.showTable?-1:0),r(),b(i.showTable?1:-1)}}function Va(t,e){if(t&1){let i=R();c(0,"mat-tab",2)(1,"app-data-filter",5),G("showTableChange",function(n){k(i);let o=l();return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(2,La,2,2),x(3,"async"),d()}if(t&2){let i,a=e.$implicit,n=l();m("label",a.title),r(),J("showTable",n.showTable),m("parentFormGroup",n.formControl),r(),b((i=C(3,4,a.data))?2:-1,i)}}var ki=(()=>{let e=class e extends zt{constructor(){super(new _t({})),this.contextsPerTab=["journal_artifacts","journal_gems","journal_fossils","journal_scavangables"],this.toDoContext=It(()=>{let a=this.selectedTabIndex();return this.contextsPerTab[a]}),this.tabs=[{title:"Artifacts",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-artifacts"),this._database.fetchItems$(),0)},{title:"Gems",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-gems"),this._database.fetchItems$(),1)},{title:"Fossils",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-fossils"),this._database.fetchItems$(),2)},{title:"Scavangables",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-scavangable"),this._database.fetchItems$(),3)}],this.activateTabFromRoute(this.tabs.map(a=>a.title))}ngAfterViewInit(){this.matTabGroup?.selectedIndexChange.pipe(bi(this.destroyRef),Lt(this.matTabGroup?.selectedIndex??0)).subscribe({next:a=>{this.selectedTabIndex.set(a)}})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-found"]],features:[M],decls:5,vars:2,consts:[["listDetail","",3,"itemId","context"],[3,"selectedTabChange","selectedIndex"],[3,"label"],["appDatabaseItemDetails",""],[3,"details"],[3,"showTableChange","showTable","parentFormGroup"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container"),s(1,Ba,2,2,"app-database-item-details",0),c(2,"mat-tab-group",1),w("selectedTabChange",function(v){return o.updateUrl(v)}),D(3,Va,4,6,"mat-tab",2,T),d()()),n&2&&(r(),b(o.selectedEntity?1:-1),r(),m("selectedIndex",o.selectedTabIndex()),r(),S(o.tabs))},dependencies:[N,Y,dt,Zt,Ct,Q,yt,Pt,le,V],encapsulation:2});let t=e;return t})();function Oa(t,e){if(t&1&&p(0,"app-crop",2),t&2){let i=e.$implicit;m("item",i)}}function Ua(t,e){if(t&1&&p(0,"app-animal-produce",3),t&2){let i=l().$implicit;m("animal",i.producedByAnimal)("shownItemId",i.item.id)}}function Ja(t,e){if(t&1&&p(0,"app-processing",5),t&2){let i=e.$implicit,a=e.$index;y("mt-3",a!==0),m("itemProcessing",i)}}function Wa(t,e){if(t&1&&(D(0,Oa,1,1,"app-crop",2,T),s(2,Ua,1,2,"app-animal-produce",3),D(3,Ja,1,3,"app-processing",4,T)),t&2){let i=e.$implicit;S(i.isSeedFor),r(2),b(i.producedByAnimal?2:-1),r(),S(i.artisanResult)}}var Fi=(()=>{let e=class e{constructor(){this.toDoContext=j.required()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-produce-details"]],inputs:{item:"item",toDoContext:[1,"toDoContext"]},decls:3,vars:4,consts:[[3,"context","itemId"],["appDatabaseItemDetails",""],[1,"mb-4",3,"item"],[3,"animal","shownItemId"],[3,"mt-3","itemProcessing"],[3,"itemProcessing"]],template:function(n,o){n&1&&(c(0,"app-database-item-details",0),x(1,"isBaseCrop"),s(2,Wa,5,1,"ng-template",1),d()),n&2&&m("context",o.toDoContext())("itemId",(C(1,2,o.item)?o.item.dropData[0].item:o.item).id)},dependencies:[yt,Pt,ie,ae,ne,ui],encapsulation:2});let t=e;return t})();var Ya=t=>[1,t];function Qa(t,e){if(t&1&&(c(0,"td",19),p(1,"app-item-icon",20),d()),t&2){let i=e.$implicit;r(),m("itemName",i.dropData[0]==null||i.dropData[0].item==null?null:i.dropData[0].item.iconName)}}function Za(t,e){t&1&&(c(0,"th",21),u(1," Output "),d()),t&2&&L("colspan",2)}function qa(t,e){if(t&1&&(c(0,"td",22),u(1),d()),t&2){let i=e.$implicit;r(),B("",i.dropData[0]==null?null:i.dropData[0].item.displayName," ")}}function Xa(t,e){t&1&&(c(0,"th",23),u(1," Size"),d())}function Ka(t,e){if(t&1&&(c(0,"td",22),u(1),d()),t&2){let i=e.$implicit;r(),Ot(" ",i.size.width,"x",i.size.length," ")}}function tn(t,e){t&1&&(c(0,"th",23),u(1," Seasons"),d())}function en(t,e){if(t&1&&(c(0,"td",22),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.growableSeason.join(", ")," ")}}function an(t,e){t&1&&(c(0,"th",23),u(1," Regrow"),d())}function nn(t,e){if(t&1&&(u(0),x(1,"max")),t&2){let i=l().$implicit;B(" ",C(1,1,Le(3,Ya,i.regrowableLength))," days ")}}function on(t,e){if(t&1&&(c(0,"td",24),s(1,nn,2,5),d()),t&2){let i=e.$implicit;r(),b(i.isRegrowable?1:-1)}}function rn(t,e){t&1&&(c(0,"th",23),u(1," Grow time"),d())}function dn(t,e){if(t&1&&(c(0,"td",24),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.growTime," days ")}}function cn(t,e){t&1&&(c(0,"th",25),u(1," Seed"),d())}function mn(t,e){if(t&1&&(c(0,"td",22)(1,"div",26),p(2,"app-item-icon",27),u(3),d()()),t&2){let i=e.$implicit;r(2),m("itemName",i.item==null?null:i.item.iconName),r(),B(" ",i.readableName," ")}}function ln(t,e){t&1&&(c(0,"th",25),u(1," Seed buy price"),d())}function sn(t,e){if(t&1&&(c(0,"td",28),p(1,"app-money",29),d()),t&2){let i=e.$implicit;r(),m("amount",i.item.price)}}function pn(t,e){t&1&&(c(0,"th",25),u(1," Sell price"),d())}function un(t,e){if(t&1&&(c(0,"td",28),p(1,"app-money",29),d()),t&2){let i=e.$implicit;r(),m("amount",i.dropData[0]==null||i.dropData[0].item==null?null:i.dropData[0].item.sellPrice)}}function bn(t,e){t&1&&p(0,"tr",30)}function fn(t,e){t&1&&p(0,"tr",31)}function hn(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,Qa,2,1,"td",2),g(),_(3,3),s(4,Za,2,1,"th",4)(5,qa,2,1,"td",5),g(),_(6,6),s(7,Xa,2,0,"th",7)(8,Ka,2,2,"td",5),g(),_(9,8),s(10,tn,2,0,"th",7)(11,en,2,1,"td",5),g(),_(12,9),s(13,an,2,0,"th",7)(14,on,2,1,"td",10),g(),_(15,11),s(16,rn,2,0,"th",7)(17,dn,2,1,"td",10),g(),_(18,12),s(19,cn,2,0,"th",13)(20,mn,4,2,"td",5),g(),_(21,14),s(22,ln,2,0,"th",13)(23,sn,2,1,"td",15),g(),_(24,16),s(25,pn,2,0,"th",13)(26,un,2,1,"td",15),g(),s(27,bn,1,0,"tr",17)(28,fn,1,0,"tr",18),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(27),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns)}}var Ei=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","growTime","regrow","season","size","seed","seedPrice","sellPrice"],this.sortingDataAccessor=(a,n)=>{let o=this.sortHelper(a.dropData[0].item,n);if(o!==null)return o;switch(n){case"key":return a[n];case"seed":return a.item.displayName;case"regrow":return a.isRegrowable?a.regrowableLength:-1;case"growTime":return a.growTime;case"seedPrice":return a.item.price;case"season":return this.sortHelper(a.growableSeason)??5;case"size":return a.size.length*a.size.width}return 0}}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-crop-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","size"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","season"],["matColumnDef","regrow"],["class","text-col text-right whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","growTime"],["matColumnDef","seed"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","seedPrice"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-col","text-right","whitespace-nowrap"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],[1,"flex","gap-x-3","items-center"],[1,"!w-7",3,"itemName"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,hn,29,4,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[N,ai,Z,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,oi],encapsulation:2});let t=e;return t})();function gn(t,e){if(t&1&&p(0,"app-produce-details",0),t&2){let i=l();m("item",i.selectedEntity)("toDoContext",i.toDoContext())}}function vn(t,e){if(t&1){let i=R();c(0,"app-item-icon",6),x(1,"isMinimalItem"),x(2,"isMinimalItem"),x(3,"isMinimalItem"),w("click",function(){let n=k(i).$implicit,o=l(4);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(4);y("selected-icon",(C(1,3,a.selectedEntity)?a.selectedEntity.id:a.selectedEntity==null||a.selectedEntity.dropData==null||a.selectedEntity.dropData[0]==null||a.selectedEntity.dropData[0].item==null?null:a.selectedEntity.dropData[0].item.id)===(C(2,5,i)?i.id:i.dropData[0].item.id)),m("itemName",C(3,7,i)?i.iconName:i.dropData[0].item.iconName)}}function xn(t,e){if(t&1&&(c(0,"div",4),D(1,vn,4,9,"app-item-icon",5,T),d()),t&2){let i=l();r(),S(i)}}function Cn(t,e){if(t&1&&p(0,"app-non-specialized-table",7),t&2){let i=l(2),a=l(2);m("dataSource",a.castToItemArray(i))}}function yn(t,e){if(t&1&&p(0,"app-crop-table",7),t&2){let i=l(2),a=l(2);m("dataSource",a.castToBaseCropArray(i))}}function wn(t,e){if(t&1&&s(0,Cn,1,1,"app-non-specialized-table",7)(1,yn,1,1,"app-crop-table",7),t&2){let i=l(2).$implicit,a=l();b(i.title!==a.tabs[0].title?0:-1),r(),b(i.title===a.tabs[0].title?1:-1)}}function Tn(t,e){if(t&1&&s(0,xn,3,0,"div",4)(1,wn,2,2),t&2){let i=l(2);b(i.showTable?-1:0),r(),b(i.showTable?1:-1)}}function Dn(t,e){if(t&1){let i=R();c(0,"mat-tab",2)(1,"app-data-filter",3),G("showTableChange",function(n){k(i);let o=l();return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(2,Tn,2,2),x(3,"async"),d()}if(t&2){let i,a=e.$implicit,n=l();m("label",a.title),r(),J("showTable",n.showTable),m("parentFormGroup",n.formControl),r(),b((i=C(3,4,a.data))?2:-1,i)}}var Pi=(()=>{let e=class e extends zt{constructor(){super(new _t({season:new Ft([...Mt],{nonNullable:!0})})),this.isBeta=z(Wt).getSettings().useBeta,this.toDoContext=It(()=>{let a=this.selectedTabIndex();return a===0?"journal_crops":a===1?"journal_animal_produce":a===2?"artisan":a===3?"journal_ocean_produce":void 0}),this.tabs=[{title:"Crops",data:St([this._database.fetchCrops$(),this._database.fetchFruitTrees$(),this._database.fetchFruitPlants$()]).pipe(fe(([a,n,o])=>this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-crops"),this._database.fetchItems$().pipe(fe(h=>$t(h.map(v=>a.find(P=>P.pickupableItemId===v.id)??o.find(P=>P.dropData.some(U=>U.itemId===v.id))??n.find(P=>P.dropData.some(U=>U.itemId===v.id))).filter(Ue)))),0)))},{title:"Animal Products",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-animal-products"),this._database.fetchItems$(),1)},{title:"Artisan Products",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-artisan-products"),this._database.fetchItems$(),2)},{title:"Ocean",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-ocean-products"),this._database.fetchItems$(),3)}],this.activateTabFromRoute(this.tabs.map(a=>a.title))}filterPredicate(a,n){if(!("growableSeason"in a))return!0;if(!n.season?.length)return!1;let o=a.growableSeason.join(" ").toLowerCase();return n.season?.length===Mt.length||!!n.season?.some(v=>o.includes((""+v).toLowerCase()))}castToItemArray(a){return a}castToBaseCropArray(a){return a}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-produce"]],features:[M],decls:5,vars:2,consts:[["listDetail","",3,"item","toDoContext"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"showTableChange","showTable","parentFormGroup"],[1,"icon-grid"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[3,"dataSource"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container"),s(1,gn,1,2,"app-produce-details",0),c(2,"mat-tab-group",1),w("selectedTabChange",function(v){return o.updateUrl(v)}),D(3,Dn,4,6,"mat-tab",2,T),d()()),n&2&&(r(),b(o.selectedEntity?1:-1),r(),m("selectedIndex",o.selectedTabIndex()),r(),S(o.tabs))},dependencies:[N,Y,dt,Zt,Ct,Q,Fi,Ei,V,_i],encapsulation:2});let t=e;return t})();function Sn(t,e){if(t&1&&(c(0,"div",1),p(1,"app-item-icon",2),c(2,"div",3)(3,"div",4),u(4),d(),c(5,"div"),u(6),d()()()),t&2){let i=e.$implicit;r(),m("itemName",i.iconName),r(3),E(i.title),r(2),E(i.description)}}function In(t,e){t&1&&(c(0,"div",0),D(1,Sn,7,3,"div",1,T),d()),t&2&&(r(),S(e))}var zi=(()=>{let e=class e{constructor(){this._database=z(Gt).fetchAchievements$()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-achievements"]],decls:2,vars:3,consts:[[1,"grid","gap-4","sm:grid-cols-2","2xl:grid-cols-3","px-main-hz","py-main-vt"],[1,"flex","bg-white/30","rounded-[15px]","gap-x-4","p-2"],[1,"!w-14",3,"itemName"],[1,"flex","flex-col","text-black"],[1,"font-semibold","text-2xl"]],template:function(n,o){if(n&1&&(s(0,In,3,0,"div",0),x(1,"async")),n&2){let h;b((h=C(1,1,o._database))?0:-1,h)}},dependencies:[N,V],encapsulation:2});let t=e;return t})();var se=(()=>{let e=class e{constructor(){this.imageName=j.required(),this.hasThumb=j(!1,{transform:Tt}),this.shownImage=It(()=>{let a=this.imageName();if(!a||!this.hasThumb())return a;let n=a.split("/");return n.splice(n.length-1,0,"thumbs"),n.join("/")}),this.version=z(Wt).getSettings().useBeta?"beta":"live",this._setClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-full-size-image"]],hostVars:2,hostBindings:function(n,o){n&2&&y("full-size-image",o._setClass)},inputs:{imageName:[1,"imageName"],hasThumb:[1,"hasThumb"]},standalone:!0,features:[wt],decls:1,vars:3,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/placeholder.png'",1,"w-full","h-auto",3,"src"]],template:function(n,o){n&1&&p(0,"img",0),n&2&&Be("src","assets/",o.version,"/",o.shownImage(),".webp",Ee)},encapsulation:2});let t=e;return t})();function Mn(t,e){if(t&1&&p(0,"div",1),t&2){let i=l();m("innerHTML",i.mail.title,At)}}function kn(t,e){if(t&1&&p(0,"span",4),t&2){let i=l();m("innerHTML",i.mail.greetCloseMessage,At)}}function Fn(t,e){if(t&1&&p(0,"span",5),t&2){let i=l();m("innerHTML",i.mail.sender,At)}}var Rt=(()=>{let e=class e{ngOnChanges(a){a.mail&&(this.mail=this._parseTexts(a.mail.currentValue))}_parseTexts(a){let n=Ht({},a);return["title","sender","content","greetCloseMessage"].forEach(h=>{let v=n[h];if(v){v=v.replaceAll(/\$player<\/>/gmi,'Player');let P=h==="content"?'$1':"$1";v=v.replaceAll(/(.*?)<\/>/gmi,P),v=v.replaceAll(/(.*?)<\/>/gmi,P),v=v.replaceAll(/(.*?)<\/>/gmi,P),v=v.replaceAll(/(.*?)<\/>/gmi,P),n[h]=v}}),n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-mail"]],inputs:{mail:"mail"},features:[Vt],decls:6,vars:4,consts:[[1,"font-semibold","font-coral"],[1,"text-2xl","mb-4","text-black",3,"innerHTML"],[1,"mb-4","whitespace-break-spaces",3,"innerHTML"],[1,"mt-4","flex","flex-col","items-end"],[1,"text-accent",3,"innerHTML"],[1,"text-black",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),s(1,Mn,1,1,"div",1),p(2,"div",2),c(3,"div",3),s(4,kn,1,1,"span",4)(5,Fn,1,1,"span",5),d()()),n&2&&(r(),b(o.mail.title?1:-1),r(),m("innerHTML",o.mail.content,At),r(2),b(o.mail.greetCloseMessage?4:-1),r(),b(o.mail.sender?5:-1))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();function Pn(t,e){if(t&1&&p(0,"app-effect",6),t&2){let i=e.$implicit;m("effect",i)}}function zn(t,e){if(t&1&&(c(0,"div",4)(1,"div",5),u(2,"Effects:"),d(),D(3,Pn,1,1,"app-effect",6,T),d()),t&2){let i=l();r(3),S(i.mail().effects)}}var Ni=(()=>{let e=class e{constructor(){this.mail=j.required(),this.listDetails=z(Et),this.uiIcon=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-mail-details"]],inputs:{mail:[1,"mail"]},decls:6,vars:3,consts:[["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],[3,"mail"],[1,"mt-6"],[1,"text-lg","font-semibold"],[3,"effect"]],template:function(n,o){if(n&1&&(c(0,"app-card")(1,"div",0)(2,"button",1),w("click",function(){return o.listDetails.close()}),p(3,"app-ui-icon",2),d()(),p(4,"app-mail",3),s(5,zn,5,0,"div",4),d()),n&2){let h;r(3),m("uiIcon",o.uiIcon.CROSS),r(),m("mail",o.mail()),r(),b((h=o.mail().effects)!=null&&h.length?5:-1)}},dependencies:[vt,Xt,xt,gt,Rt],encapsulation:2});let t=e;return t})();var Nn=["mat-button",""],An=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Bn=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var jn=new Me("MAT_BUTTON_CONFIG");var Hn=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],$n=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(a){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,a)}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=a,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(a){this._disabled=a,this._updateRippleDisabled()}constructor(a,n,o,h){this._elementRef=a,this._platform=n,this._ngZone=o,this._animationMode=h,this._focusMonitor=z(Qe),this._rippleLoader=z(qe),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let v=z(jn,{optional:!0}),P=a.nativeElement,U=P.classList;this.disabledInteractive=v?.disabledInteractive??!1,this._rippleLoader?.configureRipple(P,{className:"mat-mdc-button-ripple"});for(let{attribute:H,mdcClasses:ut}of Hn)P.hasAttribute(H)&&U.add(...ut)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(a="program",n){a?this._focusMonitor.focusVia(this._elementRef.nativeElement,a,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){Pe()},e.\u0275dir=he({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Tt],disabled:[2,"disabled","disabled",Tt],ariaDisabled:[2,"aria-disabled","ariaDisabled",Tt],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Tt]},features:[Re]});let t=e;return t})();var pe=(()=>{let e=class e extends $n{constructor(a,n,o,h){super(a,n,o,h)}};e.\u0275fac=function(n){return new(n||e)(ht(ke),ht(Ge),ht(ze),ht(Fe,8))},e.\u0275cmp=f({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(L("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Ne(o.color?"mat-"+o.color:""),y("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[M,wt],attrs:Nn,ngContentSelectors:Bn,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,o){n&1&&(_e(An),p(0,"span",0),Bt(1),c(2,"span",1),Bt(3,1),d(),Bt(4,2),p(5,"span",2)(6,"span",3)),n&2&&y("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var Ai=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[kt,Ze,kt]});let t=e;return t})();var Ln=()=>["expandedDetail"];function Vn(t,e){t&1&&(c(0,"th",16),u(1," Title"),d())}function On(t,e){if(t&1&&(c(0,"td",17),u(1),x(2,"removeTags"),d()),t&2){let i=e.$implicit;r(),E(C(2,1,i.title))}}function Un(t,e){t&1&&(c(0,"th",16),u(1," Sender"),d())}function Jn(t,e){if(t&1&&(c(0,"td",17),u(1),x(2,"removeTags"),d()),t&2){let i=e.$implicit;r(),E(C(2,1,i.sender))}}function Wn(t,e){t&1&&(c(0,"th",16),u(1,"Type"),d())}function Gn(t,e){if(t&1&&(c(0,"td",18),u(1),x(2,"addSpacesToPascalCase"),d()),t&2){let i=e.$implicit;r(),B("",C(2,1,i.mailType)," ")}}function Yn(t,e){t&1&&(c(0,"th",19),u(1,"Effects"),d())}function Qn(t,e){if(t&1&&p(0,"app-effect",22),t&2){let i=e.$implicit;m("effect",i)}}function Zn(t,e){if(t&1&&(c(0,"div",21),D(1,Qn,1,1,"app-effect",22,T),d()),t&2){let i=l().$implicit;r(),S(i.effects)}}function qn(t,e){if(t&1&&(c(0,"td",20),s(1,Zn,3,0,"div",21),d()),t&2){let i=e.$implicit;r(),b(i.effects!=null&&i.effects.length?1:-1)}}function Xn(t,e){t&1&&p(0,"th",19)}function Kn(t,e){if(t&1){let i=R();c(0,"td",23)(1,"button",24),w("click",function(){let n=k(i).$implicit,o=l(2);return F(o.expandedRows.toggle(n.key))}),p(2,"i",25),d()()}if(t&2){let i=e.$implicit,a=l(2);r(2),y("down",!a.expandedRows.isSelected(i.key))("up",a.expandedRows.isSelected(i.key))}}function to(t,e){if(t&1&&(c(0,"td",20)(1,"div",26)(2,"div",27),p(3,"app-mail",28),d()()()),t&2){let i=e.$implicit,a=l(2);L("colspan",a.displayedColumns.length),r(),y("grid-rows-0fr",!a.expandedRows.isSelected(i.key))("grid-rows-1fr",a.expandedRows.isSelected(i.key)),r(2),m("mail",i)}}function eo(t,e){t&1&&p(0,"tr",29)}function io(t,e){t&1&&p(0,"tr",30)}function ao(t,e){t&1&&p(0,"tr",31)}function no(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,Vn,2,0,"th",2)(3,On,3,3,"td",3),g(),_(4,4),s(5,Un,2,0,"th",2)(6,Jn,3,3,"td",3),g(),_(7,5),s(8,Wn,2,0,"th",2)(9,Gn,3,3,"td",6),g(),_(10,7),s(11,Yn,2,0,"th",8)(12,qn,2,1,"td",9),g(),_(13,10),s(14,Xn,1,0,"th",8)(15,Kn,3,4,"td",11),g(),_(16,12),s(17,to,4,6,"td",9),g(),s(18,eo,1,0,"tr",13)(19,io,1,0,"tr",14)(20,ao,1,0,"tr",15),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(18),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns),r(),m("matRowDefColumns",Ut(5,Ln))}}var ji=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.expandedRows=new Yt(!0,[]),this.BASE_DISPLAY_COLUMNS=["title","sender","mailType","effects","expand"]}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-mail-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","","multiTemplateDataRows","",1,"can-expand",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","sender"],["matColumnDef","mailType"],["class","w-fit text-col","mat-cell","",4,"matCellDef"],["matColumnDef","effects"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expand"],["class","w-fit align-top !pt-2","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","expand-row","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-col"],["mat-cell","",1,"w-fit","text-col"],["mat-header-cell",""],["mat-cell",""],[1,"flex","flex-col","py-3","gap-1"],[1,"whitespace-nowrap",3,"effect"],["mat-cell","",1,"w-fit","align-top","!pt-2"],["mat-button","",3,"click"],[1,"arrow"],[1,"expandable-body","grid","transition-all","duration-200","ease-in-out"],[1,"overflow-hidden"],[1,"py-4","max-w-prose",3,"mail"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expand-row"]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,no,21,6,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[Z,Xt,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,pe,Rt,gi,Qt],styles:[".expand-row[_ngcontent-%COMP%]{--mat-table-row-item-container-height: 0;--mat-table-row-item-label-text-size: 16px}"]});let t=e;return t})();var ro=()=>["expandedDetail"];function co(t,e){t&1&&(c(0,"th",12),u(1," Title"),d())}function mo(t,e){if(t&1&&(c(0,"td",13),u(1),d()),t&2){let i=e.$implicit;r(),E(i.title)}}function lo(t,e){t&1&&p(0,"th",14)}function so(t,e){if(t&1){let i=R();c(0,"td",15)(1,"button",16),w("click",function(){let n=k(i).$implicit,o=l(2);return F(o.expandedRows.toggle(n.key))}),p(2,"i",17),d()()}if(t&2){let i=e.$implicit,a=l(2);r(2),y("down",!a.expandedRows.isSelected(i.key))("up",a.expandedRows.isSelected(i.key))}}function po(t,e){if(t&1&&(c(0,"td",18)(1,"div",19)(2,"div",20),p(3,"app-mail",21),d()()()),t&2){let i=e.$implicit,a=l(2);L("colspan",a.displayedColumns.length),r(),y("grid-rows-0fr",!a.expandedRows.isSelected(i.key))("grid-rows-1fr",a.expandedRows.isSelected(i.key)),r(2),m("mail",i)}}function uo(t,e){t&1&&p(0,"tr",22)}function bo(t,e){t&1&&p(0,"tr",23)}function fo(t,e){t&1&&p(0,"tr",24)}function ho(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,co,2,0,"th",2)(3,mo,2,1,"td",3),g(),_(4,4),s(5,lo,1,0,"th",5)(6,so,3,4,"td",6),g(),_(7,7),s(8,po,4,6,"td",8),g(),s(9,uo,1,0,"tr",9)(10,bo,1,0,"tr",10)(11,fo,1,0,"tr",11),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(9),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns),r(),m("matRowDefColumns",Ut(5,ro))}}var Hi=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.expandedRows=new Yt(!0,[]),this.BASE_DISPLAY_COLUMNS=["title","expand"]}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-torn-pages-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","","multiTemplateDataRows","",1,"can-expand",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-fit align-top !pt-2","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","expand-row","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-col"],["mat-header-cell",""],["mat-cell","",1,"w-fit","align-top","!pt-2"],["mat-button","",3,"click"],[1,"arrow"],["mat-cell",""],[1,"expandable-body","grid","transition-all","duration-200","ease-in-out"],[1,"overflow-hidden"],[1,"py-4","max-w-prose",3,"mail"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expand-row"]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,ho,12,6,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[Z,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,pe,Rt],styles:[".expand-row[_ngcontent-%COMP%]{--mat-table-row-item-container-height: 0;--mat-table-row-item-label-text-size: 16px}"]});let t=e;return t})();var $i=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-torn-page"]],inputs:{tornPage:"tornPage"},decls:5,vars:2,consts:[[1,"font-semibold","font-coral"],[1,"text-2xl","mb-4","text-black"],[1,"mb-4","whitespace-break-spaces"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),u(2),d(),c(3,"div",2),u(4),d()()),n&2&&(r(2),E(o.tornPage.title),r(2),E(o.tornPage.content))},encapsulation:2});let t=e;return t})();var Li=(()=>{let e=class e{constructor(){this.tornPage=j.required(),this.listDetails=z(Et),this.uiIcon=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-torn-page-details"]],inputs:{tornPage:[1,"tornPage"]},decls:5,vars:2,consts:[["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],[3,"tornPage"]],template:function(n,o){n&1&&(c(0,"app-card")(1,"div",0)(2,"button",1),w("click",function(){return o.listDetails.close()}),p(3,"app-ui-icon",2),d()(),p(4,"app-torn-page",3),d()),n&2&&(r(3),m("uiIcon",o.uiIcon.CROSS),r(),m("tornPage",o.tornPage()))},dependencies:[vt,xt,gt,$i],encapsulation:2});let t=e;return t})();function xo(t,e){if(t&1&&p(0,"app-mail-details",1),t&2){let i=l();m("mail",i.selectedEntity)}}function Co(t,e){if(t&1&&p(0,"app-torn-page-details",2),t&2){let i=l();m("tornPage",i.selectedTornPage)}}function yo(t,e){if(t&1){let i=R();c(0,"app-card",3)(1,"div",5)(2,"button",6),w("click",function(){k(i);let n=l();return F(n.listDetail.close())}),p(3,"app-ui-icon",7),d()(),p(4,"app-full-size-image",8),d()}if(t&2){let i=l();r(3),m("uiIcon",i.uiIcon.CROSS),r(),m("imageName","treasure-maps/"+i.selectedTreasureHunt.mapImage)}}function wo(t,e){if(t&1){let i=R();c(0,"app-item-icon",16),w("click",function(){let n=k(i).$implicit,o=l(3);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(3);y("selected-icon",(a.selectedEntity==null?null:a.selectedEntity.key)===i.key)}}function To(t,e){if(t&1&&(c(0,"div",12),D(1,wo,1,2,"app-item-icon",15,T),d()),t&2){let i=l(2);r(),S(i.mails)}}function Do(t,e){if(t&1&&p(0,"app-mail-table",13),t&2){let i=l(2);m("dataSource",i.mails)}}function So(t,e){if(t&1){let i=R();c(0,"app-item-icon",16),w("click",function(){let n=k(i).$implicit,o=l(3);return F(o.showTornPageDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(3);y("selected-icon",(a.selectedTornPage==null?null:a.selectedTornPage.key)===i.key)}}function Io(t,e){if(t&1&&(c(0,"div",12),D(1,So,1,2,"app-item-icon",15,T),d()),t&2){let i=l(2);r(),S(i.tornPages)}}function Mo(t,e){if(t&1&&p(0,"app-torn-pages-table",13),t&2){let i=l(2);m("dataSource",i.tornPages)}}function ko(t,e){if(t&1){let i=R();c(0,"app-item-icon",17),w("click",function(){let n=k(i).$implicit,o=l(2);return F(o.showTreasureDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(2);y("selected-icon",(a.selectedTreasureHunt==null?null:a.selectedTreasureHunt.treasureId)===i.treasureId),m("itemName",i.iconName)}}function Fo(t,e){if(t&1){let i=R();c(0,"mat-tab-group",9),w("selectedTabChange",function(n){k(i);let o=l();return F(o.updateUrl(n))}),c(1,"mat-tab",10)(2,"app-data-filter",11),G("showTableChange",function(n){k(i);let o=l();return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(3,To,3,0,"div",12)(4,Do,1,1,"app-mail-table",13),d(),c(5,"mat-tab",10)(6,"app-data-filter",11),G("showTableChange",function(n){k(i);let o=l();return W(o.showTornPagesTable,n)||(o.showTornPagesTable=n),F(n)}),d(),s(7,Io,3,0,"div",12)(8,Mo,1,1,"app-torn-pages-table",13),d(),c(9,"mat-tab",10)(10,"div",12),D(11,ko,1,3,"app-item-icon",14,T),d()()()}if(t&2){let i=l();m("selectedIndex",i.selectedTabIndex()),r(),m("label",i.tabNames[0]),r(),J("showTable",i.showTable),r(),b(i.showTable?-1:3),r(),b(i.showTable?4:-1),r(),m("label",i.tabNames[1]),r(),J("showTable",i.showTornPagesTable),r(),b(i.showTornPagesTable?-1:7),r(),b(i.showTornPagesTable?8:-1),r(),m("label",i.tabNames[2]),r(2),S(i.treasureMaps)}}var Vi=(()=>{let e=class e extends qt{constructor(){super(),this.showTornPagesTable=!1,this.mails=[],this.tornPages=[],this.treasureMaps=[],this.tabNames=["Letters","Torn pages","Treasure Map"],this.uiIcon=O,this.data$=St([this._database.fetchMailData$(),this._database.fetchTornPagesData$(),this._database.fetchTreasureHunts$()]).pipe(Ie(([a,n,o])=>{this.mails=a,this.tornPages=n,this.treasureMaps=o;let h=this.selectedId;if(h){let v=this.mails.find(H=>H.key.toLowerCase()===h.toLowerCase());v&&this.showDetails(v);let P=this.tornPages.find(H=>H.key.toLowerCase()===h.toLowerCase());P&&this.showTornPageDetails(P);let U=this.treasureMaps.find(H=>H.treasureId===+h.toLowerCase());U&&this.showTreasureDetails(U)}this.activateTabFromRoute(this.tabNames)}))}showDetails(a){this.selectedTornPage=void 0,this.selectedTreasureHunt=void 0,super.showDetails(a)}showTornPageDetails(a){this.selectedEntity=void 0,this.selectedTreasureHunt=void 0,this.selectedTornPage=a,this.listDetail.open()}showTreasureDetails(a){this.selectedEntity=void 0,this.selectedTornPage=void 0,this.selectedTreasureHunt=a,this.listDetail.open()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-notes"]],features:[M],decls:7,vars:6,consts:[["listDetail",""],[3,"mail"],[3,"tornPage"],[1,"text-lg","font-semibold","relative"],[3,"selectedIndex"],["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["hasThumb","",1,"full-size-card-image","image-only",3,"imageName"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"showTableChange","showTable"],[1,"icon-grid","mt-3"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],["itemName","Torn_page",1,"icon-grid-item",3,"selected-icon"],["itemName","Torn_page",1,"icon-grid-item",3,"click"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container"),_(1,0),s(2,xo,1,1,"app-mail-details",1)(3,Co,1,1,"app-torn-page-details",2)(4,yo,5,2,"app-card",3),g(),s(5,Fo,13,10,"mat-tab-group",4),x(6,"async"),d()),n&2&&(r(2),b(o.selectedEntity?2:-1),r(),b(o.selectedTornPage?3:-1),r(),b(o.selectedTreasureHunt?4:-1),r(),b(C(6,4,o.data$)?5:-1))},dependencies:[N,vt,Y,dt,Ct,Q,xt,se,gt,Ni,ji,Hi,Li,V],encapsulation:2});let t=e;return t})();function Eo(t,e){if(t&1&&p(0,"app-item-icon",4),t&2){let i=l();Ae("itemName",i.enemy().iconName)}}function Po(t,e){if(t&1&&p(0,"app-full-size-image",5),t&2){let i=l();m("imageName","items/icons/"+i.enemy().image)}}function zo(t,e){if(t&1&&(c(0,"span",10),u(1),d()),t&2){let i=l();r(),E(i.enemy().description)}}var Oi=(()=>{let e=class e{constructor(){this.enemy=j.required(),this.listDetails=z(Et),this.uiIcon=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-bestiary-details"]],inputs:{enemy:[1,"enemy"]},decls:18,vars:7,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["cardIcon","",3,"itemName"],[1,"full-size-card-image",3,"imageName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"text-black"],[1,"block","my-2",3,"chances"]],template:function(n,o){n&1&&(c(0,"app-card",0)(1,"div",1)(2,"button",2),w("click",function(){return o.listDetails.close()}),p(3,"app-ui-icon",3),d()(),s(4,Eo,1,1,"app-item-icon",4)(5,Po,1,1,"app-full-size-image",5),c(6,"div",6)(7,"div",7)(8,"div",8),u(9),d()()(),p(10,"hr",9),s(11,zo,2,1,"span",10),c(12,"div"),u(13," Experience: "),c(14,"span",11),u(15),d()(),u(16," Drops: "),p(17,"app-chance-per-item-list",12),d()),n&2&&(r(3),m("uiIcon",o.uiIcon.CROSS),r(),b(o.enemy().image?-1:4),r(),b(o.enemy().image?5:-1),r(4),E(o.enemy().displayName),r(2),b(o.enemy().description?11:-1),r(4),E(o.enemy().experience),r(2),m("chances",o.enemy().dropRates))},dependencies:[N,vt,vi,xt,se,gt],encapsulation:2});let t=e;return t})();function No(t,e){if(t&1&&(c(0,"td",11),p(1,"app-item-icon",12),d()),t&2){let i=e.$implicit;r(),m("itemName",i.iconName)}}function Ao(t,e){t&1&&(c(0,"th",13),u(1,"Item "),d()),t&2&&L("colspan",2)}function Bo(t,e){if(t&1&&(c(0,"td",14),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.displayName," ")}}function jo(t,e){t&1&&(c(0,"th",15),u(1,"Drops"),d())}function Ho(t,e){if(t&1&&(c(0,"td",14),p(1,"app-chance-per-item-table-list",16),d()),t&2){let i=e.$implicit;r(),m("chances",i.dropRates)}}function $o(t,e){t&1&&(c(0,"th",13),u(1,"Exp"),d())}function Lo(t,e){if(t&1&&(c(0,"td",14),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.experience," ")}}function Vo(t,e){t&1&&p(0,"tr",17)}function Oo(t,e){t&1&&p(0,"tr",18)}function Uo(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,No,2,1,"td",2),g(),_(3,3),s(4,Ao,2,1,"th",4)(5,Bo,2,1,"td",5),g(),_(6,6),s(7,jo,2,0,"th",7)(8,Ho,2,1,"td",5),g(),_(9,8),s(10,$o,2,0,"th",4)(11,Lo,2,1,"td",5),g(),s(12,Vo,1,0,"tr",9)(13,Oo,1,0,"tr",10),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(12),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns)}}var Ui=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","experience","dropRates"]}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-bestiary-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","dropRates"],["class","backdrop-blur-xl","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","experience"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","",1,"backdrop-blur-xl"],[3,"chances"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,Uo,14,4,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[N,Z,xi,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt],encapsulation:2});let t=e;return t})();function Wo(t,e){if(t&1&&p(0,"app-bestiary-details",0),t&2){let i=l();m("enemy",i.selectedEntity)}}function Go(t,e){if(t&1){let i=R();c(0,"app-item-icon",5),w("click",function(){let n=k(i).$implicit,o=l(3);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(3);y("selected-icon",(a.selectedEntity==null?null:a.selectedEntity.key)===i.key),m("itemName",i.iconName)}}function Yo(t,e){if(t&1&&(c(0,"div",2),D(1,Go,1,3,"app-item-icon",4,T),d()),t&2){let i=l();r(),S(i)}}function Qo(t,e){if(t&1&&p(0,"app-bestiary-table",3),t&2){let i=l();m("dataSource",i)}}function Zo(t,e){if(t&1&&s(0,Yo,3,0,"div",2)(1,Qo,1,1,"app-bestiary-table",3),t&2){let i=l();b(i.showTable?-1:0),r(),b(i.showTable?1:-1)}}var Ji=(()=>{let e=class e extends fi{constructor(){super(...arguments),this.bestiary$=z(Gt).fetchBestiary$()}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-bestiary"]],features:[M],decls:5,vars:5,consts:[["listDetail","",3,"enemy"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){if(n&1&&(c(0,"app-list-detail-container"),s(1,Wo,1,1,"app-bestiary-details",0),c(2,"app-data-filter",1),G("showTableChange",function(v){return W(o.showTable,v)||(o.showTable=v),v}),d(),s(3,Zo,2,2),x(4,"async"),d()),n&2){let h;r(),b(o.selectedEntity?1:-1),r(),J("showTable",o.showTable),r(),b((h=C(4,3,o.bestiary$))?3:-1,h)}},dependencies:[N,Y,dt,Oi,Ui,V],encapsulation:2});let t=e;return t})();var qo=[{path:"",pathMatch:"full",redirectTo:"produce"},{path:"",component:wi,children:[{path:"caught",redirectTo:"caught/",pathMatch:"full"},{path:"caught/:tabName",component:Mi,title:"Caught - Journal"},{path:"found",redirectTo:"found/",pathMatch:"full"},{path:"found/:tabName",component:ki,title:"Found - Journal"},{path:"produce",redirectTo:"produce/",pathMatch:"full"},{path:"produce/:tabName",component:Pi,title:"Produce - Journal"},{path:"bestiary",component:Ji,title:"Bestiary - Journal"},{path:"notes",redirectTo:"notes/",pathMatch:"full"},{path:"notes/:tabName",component:Vi,title:"Notes - Journal"},{path:"achievements",redirectTo:"achievements/",pathMatch:"full"},{path:"achievements/:achievementId",component:zi,title:"Achievements - Journal"}]}],Wi=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[ve.forChild(qo),ve]});let t=e;return t})();var Gi=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[kt,Jt,kt]});let t=e;return t})();var Rm=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[Jt,Wi,Ci,li,Gi,mi,si,pi,ri,di,Xe,yi,Ai,ni,yt,Kt,te,ee,ie,ae,ne,le]});let t=e;return t})();export{Ii as a,Ei as b,pe as c,Ai as d,Ui as e,Rm as f}; +import{a as Kt,b as te,c as ee,d as ie,e as ne,t as yi}from"./chunk-BPN5VRCO.js";import{a as Pt,b as yt,c as ae}from"./chunk-TL6KPAQW.js";import{$a as He,$c as qe,$d as Et,Aa as L,Ae as X,Ba as m,Bb as It,Be as K,Ce as tt,D as Lt,Da as y,Dc as Yt,De as et,E as fe,Ea as Ne,Ee as it,Fe as at,G as Ie,Ga as b,Gd as Xe,Ge as nt,Ha as T,He as ot,Ia as D,Ie as rt,Ja as S,Je as si,K as bt,Ka as c,Kb as V,L as Me,La as d,Ld as Ke,Ma as p,N as z,Na as _,Oa as g,Od as ti,P as f,Q as ft,Qa as R,Qb as Jt,Qc as Ye,Qd as ve,R as he,Sa as w,Ta as l,Tc as Qe,Td as gt,Te as dt,Ua as _e,Uc as kt,Ue as ct,V as Vt,Va as Bt,Vd as N,Ve as mt,W as k,Wa as Ae,Wd as ei,We as pi,X as F,Xd as ii,Xe as lt,Ya as Be,Yd as vt,Ye as Zt,Zc as Ze,Zd as ai,Ze as ui,_ as $,_a as je,_e as bi,a as Ht,ab as $e,ae as xt,af as fi,b as De,be as ni,bf as qt,cc as O,cf as hi,da as j,ea as ke,eb as u,fb as E,fe as Qt,gb as B,gf as _i,ha as Fe,hb as Ot,hc as Mt,he as oi,j as $t,ja as At,jb as J,jf as Xt,ka as Ee,kb as W,kc as ge,l as Se,la as r,lb as G,lc as Dt,m as St,ma as ht,mc as Oe,me as ri,na as Pe,nb as wt,nf as gi,ob as Ut,oc as Ue,of as vi,pb as Le,pe as di,pf as xi,qa as ze,qc as Je,qe as ci,rb as x,rc as We,re as mi,sb as C,sc as Wt,se as Y,sf as Ci,td as _t,te as Ct,ua as M,uc as Gt,ve as Q,wa as Re,wd as Ft,we as li,xa as s,yb as Ve,yc as Ge,ye as Z,zb as Tt,ze as q}from"./chunk-PYTDIKHQ.js";var wi=(()=>{let e=class e{constructor(){this.UI_ICONS=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-journal"]],decls:15,vars:6,consts:[["routerLink","produce",3,"uiIcon"],["routerLink","caught",3,"uiIcon"],["routerLink","found",3,"uiIcon"],["routerLink","bestiary",3,"uiIcon"],["routerLink","notes",3,"uiIcon"],["routerLink","achievements",3,"uiIcon"],[1,"hidden"]],template:function(n,o){n&1&&(c(0,"app-sidebar-container")(1,"app-module-sidebar")(2,"app-module-sidebar-item",0),u(3,"Produce"),d(),c(4,"app-module-sidebar-item",1),u(5,"Caught"),d(),c(6,"app-module-sidebar-item",2),u(7,"Found"),d(),c(8,"app-module-sidebar-item",3),u(9,"Bestiary"),d(),c(10,"app-module-sidebar-item",4),u(11,"Notes"),d(),c(12,"app-module-sidebar-item",5),u(13,"Badges "),d()(),p(14,"router-outlet",6),d()),n&2&&(r(2),m("uiIcon",o.UI_ICONS.FARMING),r(2),m("uiIcon",o.UI_ICONS.CATCHING),r(2),m("uiIcon",o.UI_ICONS.ARTISAN),r(2),m("uiIcon",o.UI_ICONS.BESTIARY),r(2),m("uiIcon",o.UI_ICONS.NOTES),r(2),m("uiIcon",o.UI_ICONS.BADGES))},dependencies:[Ke,ti,ii,ei,ci],encapsulation:2});let t=e;return t})();var zt=(()=>{let e=class e extends qt{constructor(a){super(),this.uiIcon=O,this.tabs=[],this.media=z(Ye),this.changeDetectorRef=z(Ve),this.mobileQuery=this.media.matchMedia("(max-width: 600px)"),this._mobileQueryListener=()=>this.changeDetectorRef.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener),this.formControl=a}getFilteredJournalData(a,n,o){return St([a,n,this.formControl.valueChanges.pipe(Lt(this.formControl.value)),$t(o)]).pipe(Se(([h,v,P,U])=>{let H=[];return h.sort((ut,A)=>ut.order>A.order?1:-1).forEach(ut=>{let A=v.find(st=>"dropData"in st?st.dropData[0].item?.id===ut.key:"item"in st?st.item.id===ut.key:st.id===ut.key);A&&(this.filterPredicate||H.push(A),this.filterPredicate&&this.filterPredicate(A,P,U)&&H.push(A))}),H}))}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener)}};e.\u0275fac=function(n){return new(n||e)(ht(_t))},e.\u0275cmp=f({type:e,selectors:[["ng-component"]],viewQuery:function(n,o){if(n&1&&je(Q,5),n&2){let h;He(h=$e())&&(o.matTabGroup=h.first)}},features:[M],decls:0,vars:0,template:function(n,o){},encapsulation:2});let t=e;return t})();function Yi(t,e){if(t&1&&p(0,"app-fish",2),t&2){let i=l().$implicit;m("fish",i.fish)}}function Qi(t,e){if(t&1&&p(0,"app-insect",3),t&2){let i=l().$implicit;m("critter",i.insect)}}function Zi(t,e){if(t&1&&p(0,"app-insect",3),t&2){let i=l().$implicit;m("critter",i.oceanCritter)}}function qi(t,e){if(t&1&&s(0,Yi,1,1,"app-fish",2)(1,Qi,1,1,"app-insect",3)(2,Zi,1,1,"app-insect",3),t&2){let i=e.$implicit;b(i.fish?0:i.insect?1:i.oceanCritter?2:-1)}}var Si=(()=>{let e=class e{ngOnInit(){this._setCategory()}ngOnChanges(a){a.critter&&this._setCategory()}_setCategory(){this.toDoContext="fishName"in this.critter?"journal_fish":this.critter.item.inventoryCategory.toLocaleLowerCase()==="bug"?"journal_insects":"journal_critter"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-caught-details"]],inputs:{critter:"critter"},features:[Vt],decls:2,vars:2,consts:[[3,"context","itemId"],["appDatabaseItemDetails",""],[3,"fish"],[3,"critter"]],template:function(n,o){n&1&&(c(0,"app-database-item-details",0),s(1,qi,3,1,"ng-template",1),d()),n&2&&m("context",o.toDoContext)("itemId",o.critter.item.id)},dependencies:[yt,Kt,te,Pt],encapsulation:2});let t=e;return t})();function ta(t,e){if(t&1&&(c(0,"td",17),p(1,"app-item-icon",18),d()),t&2){let i=e.$implicit;r(),m("itemName",i.item.iconName)}}function ea(t,e){t&1&&(c(0,"th",19),u(1," Name"),d()),t&2&&L("colspan",2)}function ia(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit;r(),E(i.item.displayName)}}function aa(t,e){t&1&&(c(0,"th",19),u(1," Rarity"),d())}function na(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit,a=l(2);r(),E(a.addSpacesToPascalCase(i.rarity))}}function oa(t,e){t&1&&(c(0,"th",21),u(1," Location"),d())}function ra(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"isFish"),d()),t&2){let i=e.$implicit;r(),B("",(C(2,1,i)?i.spawnSettings[0]:i).spawnLocation.join(", ")," ")}}function da(t,e){t&1&&(c(0,"th",19),u(1," Weather"),d())}function ca(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"isFish"),d()),t&2){let i=e.$implicit,a=l(2);r(),B("",a.getTruthyValues((C(2,1,i)?i.spawnSettings[0]:i).spawnWeather)," ")}}function ma(t,e){t&1&&(c(0,"th",21),u(1," Season"),d())}function la(t,e){if(t&1&&(u(0),x(1,"isFish")),t&2){let i=l().$implicit,a=l(2);B(" ",a.getTruthyValues((C(1,1,i)?i.spawnSettings[0]:i).spawnSeason)," ")}}function sa(t,e){if(t&1&&(c(0,"div",22),u(1),d()),t&2){let i=e.$implicit,a=e.$index,n=e.$count;r(),Ot("",i,"",a!==n-1?", ":""," ")}}function pa(t,e){if(t&1&&(D(0,sa,2,2,"div",22,T),x(2,"isFish")),t&2){let i=l().$implicit,a=l(2);S(a.dateRangesToString((C(2,0,i)?i.spawnSettings[0]:i).dateRangeList))}}function ua(t,e){if(t&1&&(c(0,"td",20),s(1,la,2,3),x(2,"isFish"),s(3,pa,3,2),x(4,"isFish"),d()),t&2){let i=e.$implicit;r(),b((C(2,2,i)?i.spawnSettings[0]:i).isUsingSpecificDate?-1:1),r(2),b((C(4,4,i)?i.spawnSettings[0]:i).isUsingSpecificDate?3:-1)}}function ba(t,e){t&1&&(c(0,"th",19),u(1," Time"),d())}function fa(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"isFish"),d()),t&2){let i=e.$implicit,a=l(2);r(),B("",a.getTruthyValues((C(2,1,i)?i.spawnSettings[0]:i).spawnTime)," ")}}function ha(t,e){t&1&&(c(0,"th",19),u(1," Size"),d())}function _a(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit;r(),E(i.fishSize)}}function ga(t,e){t&1&&(c(0,"th",19),u(1," Pattern"),d())}function va(t,e){if(t&1&&(c(0,"td",20),u(1),d()),t&2){let i=e.$implicit;r(),E(i.pattern)}}function xa(t,e){t&1&&(c(0,"th",19),u(1," Difficulty"),d())}function Ca(t,e){if(t&1&&(c(0,"td",20),u(1),x(2,"addSpacesToPascalCase"),d()),t&2){let i=e.$implicit;r(),E(C(2,1,i.difficulty))}}function ya(t,e){t&1&&p(0,"tr",23)}function wa(t,e){t&1&&p(0,"tr",24)}function Ta(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,ta,2,1,"td",2),g(),_(3,3),s(4,ea,2,1,"th",4)(5,ia,2,1,"td",5),g(),_(6,6),s(7,aa,2,0,"th",4)(8,na,2,1,"td",5),g(),_(9,7),s(10,oa,2,0,"th",8)(11,ra,3,3,"td",5),g(),_(12,9),s(13,da,2,0,"th",4)(14,ca,3,3,"td",5),g(),_(15,10),s(16,ma,2,0,"th",8)(17,ua,5,6,"td",5),g(),_(18,11),s(19,ba,2,0,"th",4)(20,fa,3,3,"td",5),g(),_(21,12),s(22,ha,2,0,"th",4)(23,_a,2,1,"td",5),g(),_(24,13),s(25,ga,2,0,"th",4)(26,va,2,1,"td",5),g(),_(27,14),s(28,xa,2,0,"th",4)(29,Ca,3,3,"td",5),g(),s(30,ya,1,0,"tr",15)(31,wa,1,0,"tr",16),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(30),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns)}}var Ii=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.getTruthyValues=Dt,this.addSpacesToPascalCase=Oe,this.BASE_DISPLAY_COLUMNS=["icon","key","rarity","weather","season","time","location"],this.sortingDataAccessor=(a,n)=>{switch(n){case"rarity":return Je.get(a[n])??0;case"key":return a[n];case"time":{let o=this._isFish(a)?a.spawnSettings[0].spawnTime:a.spawnTime;return Dt(o)==="Any"?1:o.morning?10:o.afternoon?20:o.evening?30:o.night?40:0}case"weather":{let o=this._isFish(a)?a.spawnSettings[0].spawnWeather:a.spawnWeather;return Dt(o)==="Any"?1:o.sunny?10:o.rain?20:o.snow?30:o.blizzard?40:o.windy?50:o.storm?60:0}}if(this._isFish(a))switch(n){case"fishSize":return We.get(a.fishSize)??0;case"pattern":case"difficulty":return a[n]}return 0}}static _isFishArray(a){return!!a?.[0]&&"fishName"in a[0]}dateRangesToString(a){return a.map(n=>`From ${n.startsFrom.season} ${n.startsFrom.day} to ${n.lastsTill.season} ${n.lastsTill.day}`)}setupDataSource(a){let n=a;e._isFishArray(a)&&(n=a.map(o=>o.spawnSettings.map(h=>De(Ht({},o),{spawnSettings:[h]}))).flat()),super.setupDataSource(n),e._isFishArray(this.dataSource)&&(this.displayedColumns.splice(3,0,"fishSize"),this.displayHeaderColumns.splice(2,0,"fishSize"),this.displayedColumns.splice(4,0,"pattern"),this.displayHeaderColumns.splice(3,0,"pattern"),this.displayedColumns.splice(5,0,"difficulty"),this.displayHeaderColumns.splice(4,0,"difficulty"))}_isFish(a){return!!a&&"fishName"in a}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-caught-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["mat-cell","","class","!px-2 ",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rarity"],["matColumnDef","location"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","weather"],["matColumnDef","season"],["matColumnDef","time"],["matColumnDef","fishSize"],["matColumnDef","pattern"],["matColumnDef","difficulty"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!px-2"],[1,"mx-2",3,"itemName"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"whitespace-nowrap"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,Ta,32,4,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[N,Z,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,hi,Qt],encapsulation:2});let t=e;return t})();function Sa(t,e){if(t&1&&p(0,"app-caught-details",1),t&2){let i=l();m("critter",i.selectedEntity)}}function Ia(t,e){if(t&1){let i=R();c(0,"app-item-icon",8),w("click",function(){let n=k(i).$implicit,o=l(4);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(4);y("selected-icon",(a.selectedEntity==null||a.selectedEntity.item==null?null:a.selectedEntity.item.id)===i.item.id),m("itemName",i.item.iconName)}}function Ma(t,e){if(t&1&&(c(0,"div",5),D(1,Ia,1,3,"app-item-icon",7,T),d()),t&2){let i=l();r(),S(i)}}function ka(t,e){if(t&1&&p(0,"app-caught-table",6),t&2){let i=l();m("dataSource",i)}}function Fa(t,e){if(t&1){let i=R();c(0,"app-data-filter",4),G("showTableChange",function(n){k(i);let o=l(2);return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(1,Ma,3,0,"div",5)(2,ka,1,1,"app-caught-table",6)}if(t&2){let i=l(2);J("showTable",i.showTable),m("parentFormGroup",i.formControl)("locations",i.getLocations(e)),r(),b(i.showTable?-1:1),r(),b(i.showTable?2:-1)}}function Ea(t,e){if(t&1&&(c(0,"mat-tab",3),s(1,Fa,3,5),x(2,"async"),d()),t&2){let i,a=e.$implicit;m("label",a.title),r(),b((i=C(2,2,a.data))?1:-1,i)}}var Mi=(()=>{let e=class e extends zt{constructor(){super(new _t({season:new Ft([...Mt],{nonNullable:!0}),weather:new Ft([...ge],{nonNullable:!0}),location:new Ft(null)})),this.SEA_CRITTERS_INDEX=2,this.tabs=[{title:"Fish",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-fish"),this._database.fetchFish$(),0)},{title:"Insects",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-insects"),this._database.fetchBugsAndInsects$(),1)},{title:"Sea Critters",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-sea-critters"),this._database.fetchOceanCritters$(),this.SEA_CRITTERS_INDEX)}],this.activateTabFromRoute(this.tabs.map(a=>a.title))}filterPredicate(a,n,o){if(!n.season?.length||!n.weather?.length)return!1;let h="spawnSettings"in a?a.spawnSettings?.map(A=>A.spawnSeason):[a.spawnSeason],v="spawnSettings"in a?a.spawnSettings?.map(A=>A.spawnWeather):[a.spawnWeather],P="spawnSettings"in a?a.spawnSettings?.map(A=>A.spawnLocation).flat():a.spawnLocation;return!(!n.location||P.includes(n.location))||!h.reduce((A,st)=>{let Nt=Dt(st).toLowerCase(),ue=Nt==="any"||n.season?.length===Mt.length||!!n.season?.some(be=>Nt.includes((""+be).toLowerCase()));return A||ue},!1)?!1:v.reduce((A,st)=>{let Nt=Dt(st).toLowerCase(),ue=o===this.SEA_CRITTERS_INDEX||Nt==="any"||n.weather?.length===ge.length||!!n.weather?.some(be=>Nt.includes((""+be).toLowerCase()));return A||ue},!1)}getLocations(a){return a.length?[...new Set(a.map(n=>"fishName"in n?n.spawnSettings.map(o=>o.spawnLocation):n.spawnLocation).flat(2))].sort():[]}resetLocationFilter(){this.formControl.get("location")?.setValue(null)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-caught"]],features:[M],decls:5,vars:3,consts:[[3,"removePlaceholder"],["listDetail","",3,"critter"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"showTableChange","showTable","parentFormGroup","locations"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"itemName","selected-icon"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container",0),s(1,Sa,1,1,"app-caught-details",1),c(2,"mat-tab-group",2),w("selectedTabChange",function(v){return o.updateUrl(v),o.resetLocationFilter()}),D(3,Ea,3,4,"mat-tab",3,T),d()()),n&2&&(m("removePlaceholder",o.showTable),r(),b(o.selectedEntity?1:-1),r(),m("selectedIndex",o.selectedTabIndex()),r(),S(o.tabs))},dependencies:[N,Y,dt,Ct,Q,Si,Ii,V],encapsulation:2});let t=e;return t})();function Pa(t,e){if(t&1&&(c(0,"div"),u(1,"Enchantment points: "),c(2,"span",2),u(3),d()()),t&2){let i=l();y("mb-3",i.details().chanceAsProcessResult),r(3),E(i.details().enchantmentPoints)}}function za(t,e){if(t&1&&p(0,"app-shop-processing-result",1),t&2){let i=l();m("itemProcessData",i.details().chanceAsProcessResult)}}var le=(()=>{let e=class e{constructor(){this.details=j.required()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-db-item-found"]],inputs:{details:[1,"details"]},standalone:!0,features:[wt],decls:2,vars:2,consts:[[3,"mb-3"],[1,"mb-4",3,"itemProcessData"],[1,"text-black"]],template:function(n,o){n&1&&s(0,Pa,4,3,"div",0)(1,za,1,1,"app-shop-processing-result",1),n&2&&(b(o.details().enchantmentPoints?0:-1),r(),b(o.details().chanceAsProcessResult?1:-1))},dependencies:[ee],encapsulation:2});let t=e;return t})();function Aa(t,e){if(t&1&&p(0,"app-db-item-found",4),t&2){let i=e.$implicit;m("details",i)}}function Ba(t,e){if(t&1&&(c(0,"app-database-item-details",0),s(1,Aa,1,1,"ng-template",3),d()),t&2){let i=l();m("itemId",i.selectedEntity.id)("context",i.toDoContext())}}function ja(t,e){if(t&1){let i=R();c(0,"app-item-icon",9),w("click",function(){let n=k(i).$implicit,o=l(4);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(4);y("selected-icon",(a.selectedEntity==null?null:a.selectedEntity.id)===i.id),m("itemName",i.iconName)}}function Ha(t,e){if(t&1&&(c(0,"div",6),D(1,ja,1,3,"app-item-icon",8,T),d()),t&2){let i=l();r(),S(i)}}function $a(t,e){if(t&1&&p(0,"app-non-specialized-table",7),t&2){let i=l();m("dataSource",i)}}function La(t,e){if(t&1&&s(0,Ha,3,0,"div",6)(1,$a,1,1,"app-non-specialized-table",7),t&2){let i=l(2);b(i.showTable?-1:0),r(),b(i.showTable?1:-1)}}function Va(t,e){if(t&1){let i=R();c(0,"mat-tab",2)(1,"app-data-filter",5),G("showTableChange",function(n){k(i);let o=l();return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(2,La,2,2),x(3,"async"),d()}if(t&2){let i,a=e.$implicit,n=l();m("label",a.title),r(),J("showTable",n.showTable),m("parentFormGroup",n.formControl),r(),b((i=C(3,4,a.data))?2:-1,i)}}var ki=(()=>{let e=class e extends zt{constructor(){super(new _t({})),this.contextsPerTab=["journal_artifacts","journal_gems","journal_fossils","journal_scavangables"],this.toDoContext=It(()=>{let a=this.selectedTabIndex();return this.contextsPerTab[a]}),this.tabs=[{title:"Artifacts",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-artifacts"),this._database.fetchItems$(),0)},{title:"Gems",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-gems"),this._database.fetchItems$(),1)},{title:"Fossils",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-fossils"),this._database.fetchItems$(),2)},{title:"Scavangables",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-scavangable"),this._database.fetchItems$(),3)}],this.activateTabFromRoute(this.tabs.map(a=>a.title))}ngAfterViewInit(){this.matTabGroup?.selectedIndexChange.pipe(bi(this.destroyRef),Lt(this.matTabGroup?.selectedIndex??0)).subscribe({next:a=>{this.selectedTabIndex.set(a)}})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-found"]],features:[M],decls:5,vars:2,consts:[["listDetail","",3,"itemId","context"],[3,"selectedTabChange","selectedIndex"],[3,"label"],["appDatabaseItemDetails",""],[3,"details"],[3,"showTableChange","showTable","parentFormGroup"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container"),s(1,Ba,2,2,"app-database-item-details",0),c(2,"mat-tab-group",1),w("selectedTabChange",function(v){return o.updateUrl(v)}),D(3,Va,4,6,"mat-tab",2,T),d()()),n&2&&(r(),b(o.selectedEntity?1:-1),r(),m("selectedIndex",o.selectedTabIndex()),r(),S(o.tabs))},dependencies:[N,Y,dt,Zt,Ct,Q,yt,Pt,le,V],encapsulation:2});let t=e;return t})();function Oa(t,e){if(t&1&&p(0,"app-crop",2),t&2){let i=e.$implicit;m("item",i)}}function Ua(t,e){if(t&1&&p(0,"app-animal-produce",3),t&2){let i=l().$implicit;m("animal",i.producedByAnimal)("shownItemId",i.item.id)}}function Ja(t,e){if(t&1&&p(0,"app-processing",5),t&2){let i=e.$implicit,a=e.$index;y("mt-3",a!==0),m("itemProcessing",i)}}function Wa(t,e){if(t&1&&(D(0,Oa,1,1,"app-crop",2,T),s(2,Ua,1,2,"app-animal-produce",3),D(3,Ja,1,3,"app-processing",4,T)),t&2){let i=e.$implicit;S(i.isSeedFor),r(2),b(i.producedByAnimal?2:-1),r(),S(i.artisanResult)}}var Fi=(()=>{let e=class e{constructor(){this.toDoContext=j.required()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-produce-details"]],inputs:{item:"item",toDoContext:[1,"toDoContext"]},decls:3,vars:4,consts:[[3,"context","itemId"],["appDatabaseItemDetails",""],[1,"mb-4",3,"item"],[3,"animal","shownItemId"],[3,"mt-3","itemProcessing"],[3,"itemProcessing"]],template:function(n,o){n&1&&(c(0,"app-database-item-details",0),x(1,"isBaseCrop"),s(2,Wa,5,1,"ng-template",1),d()),n&2&&m("context",o.toDoContext())("itemId",(C(1,2,o.item)?o.item.dropData[0].item:o.item).id)},dependencies:[yt,Pt,ie,ae,ne,ui],encapsulation:2});let t=e;return t})();var Ya=t=>[1,t];function Qa(t,e){if(t&1&&(c(0,"td",19),p(1,"app-item-icon",20),d()),t&2){let i=e.$implicit;r(),m("itemName",i.dropData[0]==null||i.dropData[0].item==null?null:i.dropData[0].item.iconName)}}function Za(t,e){t&1&&(c(0,"th",21),u(1," Output "),d()),t&2&&L("colspan",2)}function qa(t,e){if(t&1&&(c(0,"td",22),u(1),d()),t&2){let i=e.$implicit;r(),B("",i.dropData[0]==null?null:i.dropData[0].item.displayName," ")}}function Xa(t,e){t&1&&(c(0,"th",23),u(1," Size"),d())}function Ka(t,e){if(t&1&&(c(0,"td",22),u(1),d()),t&2){let i=e.$implicit;r(),Ot(" ",i.size.width,"x",i.size.length," ")}}function tn(t,e){t&1&&(c(0,"th",23),u(1," Seasons"),d())}function en(t,e){if(t&1&&(c(0,"td",22),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.growableSeason.join(", ")," ")}}function an(t,e){t&1&&(c(0,"th",23),u(1," Regrow"),d())}function nn(t,e){if(t&1&&(u(0),x(1,"max")),t&2){let i=l().$implicit;B(" ",C(1,1,Le(3,Ya,i.regrowableLength))," days ")}}function on(t,e){if(t&1&&(c(0,"td",24),s(1,nn,2,5),d()),t&2){let i=e.$implicit;r(),b(i.isRegrowable?1:-1)}}function rn(t,e){t&1&&(c(0,"th",23),u(1," Grow time"),d())}function dn(t,e){if(t&1&&(c(0,"td",24),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.growTime," days ")}}function cn(t,e){t&1&&(c(0,"th",25),u(1," Seed"),d())}function mn(t,e){if(t&1&&(c(0,"td",22)(1,"div",26),p(2,"app-item-icon",27),u(3),d()()),t&2){let i=e.$implicit;r(2),m("itemName",i.item==null?null:i.item.iconName),r(),B(" ",i.readableName," ")}}function ln(t,e){t&1&&(c(0,"th",25),u(1," Seed buy price"),d())}function sn(t,e){if(t&1&&(c(0,"td",28),p(1,"app-money",29),d()),t&2){let i=e.$implicit;r(),m("amount",i.item.price)}}function pn(t,e){t&1&&(c(0,"th",25),u(1," Sell price"),d())}function un(t,e){if(t&1&&(c(0,"td",28),p(1,"app-money",29),d()),t&2){let i=e.$implicit;r(),m("amount",i.dropData[0]==null||i.dropData[0].item==null?null:i.dropData[0].item.sellPrice)}}function bn(t,e){t&1&&p(0,"tr",30)}function fn(t,e){t&1&&p(0,"tr",31)}function hn(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,Qa,2,1,"td",2),g(),_(3,3),s(4,Za,2,1,"th",4)(5,qa,2,1,"td",5),g(),_(6,6),s(7,Xa,2,0,"th",7)(8,Ka,2,2,"td",5),g(),_(9,8),s(10,tn,2,0,"th",7)(11,en,2,1,"td",5),g(),_(12,9),s(13,an,2,0,"th",7)(14,on,2,1,"td",10),g(),_(15,11),s(16,rn,2,0,"th",7)(17,dn,2,1,"td",10),g(),_(18,12),s(19,cn,2,0,"th",13)(20,mn,4,2,"td",5),g(),_(21,14),s(22,ln,2,0,"th",13)(23,sn,2,1,"td",15),g(),_(24,16),s(25,pn,2,0,"th",13)(26,un,2,1,"td",15),g(),s(27,bn,1,0,"tr",17)(28,fn,1,0,"tr",18),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(27),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns)}}var Ei=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","growTime","regrow","season","size","seed","seedPrice","sellPrice"],this.sortingDataAccessor=(a,n)=>{let o=this.sortHelper(a.dropData[0].item,n);if(o!==null)return o;switch(n){case"key":return a[n];case"seed":return a.item.displayName;case"regrow":return a.isRegrowable?a.regrowableLength:-1;case"growTime":return a.growTime;case"seedPrice":return a.item.price;case"season":return this.sortHelper(a.growableSeason)??5;case"size":return a.size.length*a.size.width}return 0}}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-crop-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","size"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","season"],["matColumnDef","regrow"],["class","text-col text-right whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","growTime"],["matColumnDef","seed"],["class","whitespace-nowrap","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","seedPrice"],["class","text-col !text-right w-[1%]","mat-cell","",4,"matCellDef"],["matColumnDef","sellPrice"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-col","text-right","whitespace-nowrap"],["mat-header-cell","","mat-sort-header","",1,"whitespace-nowrap"],[1,"flex","gap-x-3","items-center"],[1,"!w-7",3,"itemName"],["mat-cell","",1,"text-col","!text-right","w-[1%]"],[3,"amount"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,hn,29,4,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[N,ai,Z,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,oi],encapsulation:2});let t=e;return t})();function gn(t,e){if(t&1&&p(0,"app-produce-details",0),t&2){let i=l();m("item",i.selectedEntity)("toDoContext",i.toDoContext())}}function vn(t,e){if(t&1){let i=R();c(0,"app-item-icon",6),x(1,"isMinimalItem"),x(2,"isMinimalItem"),x(3,"isMinimalItem"),w("click",function(){let n=k(i).$implicit,o=l(4);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(4);y("selected-icon",(C(1,3,a.selectedEntity)?a.selectedEntity.id:a.selectedEntity==null||a.selectedEntity.dropData==null||a.selectedEntity.dropData[0]==null||a.selectedEntity.dropData[0].item==null?null:a.selectedEntity.dropData[0].item.id)===(C(2,5,i)?i.id:i.dropData[0].item.id)),m("itemName",C(3,7,i)?i.iconName:i.dropData[0].item.iconName)}}function xn(t,e){if(t&1&&(c(0,"div",4),D(1,vn,4,9,"app-item-icon",5,T),d()),t&2){let i=l();r(),S(i)}}function Cn(t,e){if(t&1&&p(0,"app-non-specialized-table",7),t&2){let i=l(2),a=l(2);m("dataSource",a.castToItemArray(i))}}function yn(t,e){if(t&1&&p(0,"app-crop-table",7),t&2){let i=l(2),a=l(2);m("dataSource",a.castToBaseCropArray(i))}}function wn(t,e){if(t&1&&s(0,Cn,1,1,"app-non-specialized-table",7)(1,yn,1,1,"app-crop-table",7),t&2){let i=l(2).$implicit,a=l();b(i.title!==a.tabs[0].title?0:-1),r(),b(i.title===a.tabs[0].title?1:-1)}}function Tn(t,e){if(t&1&&s(0,xn,3,0,"div",4)(1,wn,2,2),t&2){let i=l(2);b(i.showTable?-1:0),r(),b(i.showTable?1:-1)}}function Dn(t,e){if(t&1){let i=R();c(0,"mat-tab",2)(1,"app-data-filter",3),G("showTableChange",function(n){k(i);let o=l();return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(2,Tn,2,2),x(3,"async"),d()}if(t&2){let i,a=e.$implicit,n=l();m("label",a.title),r(),J("showTable",n.showTable),m("parentFormGroup",n.formControl),r(),b((i=C(3,4,a.data))?2:-1,i)}}var Pi=(()=>{let e=class e extends zt{constructor(){super(new _t({season:new Ft([...Mt],{nonNullable:!0})})),this.isBeta=z(Wt).getSettings().useBeta,this.toDoContext=It(()=>{let a=this.selectedTabIndex();return a===0?"journal_crops":a===1?"journal_animal_produce":a===2?"artisan":a===3?"journal_ocean_produce":void 0}),this.tabs=[{title:"Crops",data:St([this._database.fetchCrops$(),this._database.fetchFruitTrees$(),this._database.fetchFruitPlants$()]).pipe(fe(([a,n,o])=>this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-crops"),this._database.fetchItems$().pipe(fe(h=>$t(h.map(v=>a.find(P=>P.pickupableItemId===v.id)??o.find(P=>P.dropData.some(U=>U.itemId===v.id))??n.find(P=>P.dropData.some(U=>U.itemId===v.id))).filter(Ue)))),0)))},{title:"Animal Products",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-animal-products"),this._database.fetchItems$(),1)},{title:"Artisan Products",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-artisan-products"),this._database.fetchItems$(),2)},{title:"Ocean",data:this.getFilteredJournalData(this._database.fetchJournalOrder$("journal-ocean-products"),this._database.fetchItems$(),3)}],this.activateTabFromRoute(this.tabs.map(a=>a.title))}filterPredicate(a,n){if(!("growableSeason"in a))return!0;if(!n.season?.length)return!1;let o=a.growableSeason.join(" ").toLowerCase();return n.season?.length===Mt.length||!!n.season?.some(v=>o.includes((""+v).toLowerCase()))}castToItemArray(a){return a}castToBaseCropArray(a){return a}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-produce"]],features:[M],decls:5,vars:2,consts:[["listDetail","",3,"item","toDoContext"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"showTableChange","showTable","parentFormGroup"],[1,"icon-grid"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[3,"dataSource"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container"),s(1,gn,1,2,"app-produce-details",0),c(2,"mat-tab-group",1),w("selectedTabChange",function(v){return o.updateUrl(v)}),D(3,Dn,4,6,"mat-tab",2,T),d()()),n&2&&(r(),b(o.selectedEntity?1:-1),r(),m("selectedIndex",o.selectedTabIndex()),r(),S(o.tabs))},dependencies:[N,Y,dt,Zt,Ct,Q,Fi,Ei,V,_i],encapsulation:2});let t=e;return t})();function Sn(t,e){if(t&1&&(c(0,"div",1),p(1,"app-item-icon",2),c(2,"div",3)(3,"div",4),u(4),d(),c(5,"div"),u(6),d()()()),t&2){let i=e.$implicit;r(),m("itemName",i.iconName),r(3),E(i.title),r(2),E(i.description)}}function In(t,e){t&1&&(c(0,"div",0),D(1,Sn,7,3,"div",1,T),d()),t&2&&(r(),S(e))}var zi=(()=>{let e=class e{constructor(){this._database=z(Gt).fetchAchievements$()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-achievements"]],decls:2,vars:3,consts:[[1,"grid","gap-4","sm:grid-cols-2","2xl:grid-cols-3","px-main-hz","py-main-vt"],[1,"flex","bg-white/30","rounded-[15px]","gap-x-4","p-2"],[1,"!w-14",3,"itemName"],[1,"flex","flex-col","text-black"],[1,"font-semibold","text-2xl"]],template:function(n,o){if(n&1&&(s(0,In,3,0,"div",0),x(1,"async")),n&2){let h;b((h=C(1,1,o._database))?0:-1,h)}},dependencies:[N,V],encapsulation:2});let t=e;return t})();var se=(()=>{let e=class e{constructor(){this.imageName=j.required(),this.hasThumb=j(!1,{transform:Tt}),this.shownImage=It(()=>{let a=this.imageName();if(!a||!this.hasThumb())return a;let n=a.split("/");return n.splice(n.length-1,0,"thumbs"),n.join("/")}),this.version=z(Wt).getSettings().useBeta?"beta":"live",this._setClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-full-size-image"]],hostVars:2,hostBindings:function(n,o){n&2&&y("full-size-image",o._setClass)},inputs:{imageName:[1,"imageName"],hasThumb:[1,"hasThumb"]},standalone:!0,features:[wt],decls:1,vars:3,consts:[["alt","","loading","lazy","onerror","this.onerror=null;this.src='assets/ui/images/placeholder.png'",1,"w-full","h-auto",3,"src"]],template:function(n,o){n&1&&p(0,"img",0),n&2&&Be("src","assets/",o.version,"/",o.shownImage(),".webp",Ee)},encapsulation:2});let t=e;return t})();function Mn(t,e){if(t&1&&p(0,"div",1),t&2){let i=l();m("innerHTML",i.mail.title,At)}}function kn(t,e){if(t&1&&p(0,"span",4),t&2){let i=l();m("innerHTML",i.mail.greetCloseMessage,At)}}function Fn(t,e){if(t&1&&p(0,"span",5),t&2){let i=l();m("innerHTML",i.mail.sender,At)}}var Rt=(()=>{let e=class e{ngOnChanges(a){a.mail&&(this.mail=this._parseTexts(a.mail.currentValue))}_parseTexts(a){let n=Ht({},a);return["title","sender","content","greetCloseMessage"].forEach(h=>{let v=n[h];if(v){v=v.replaceAll(/\$player<\/>/gmi,'Player');let P=h==="content"?'$1':"$1";v=v.replaceAll(/(.*?)<\/>/gmi,P),v=v.replaceAll(/(.*?)<\/>/gmi,P),v=v.replaceAll(/(.*?)<\/>/gmi,P),v=v.replaceAll(/(.*?)<\/>/gmi,P),n[h]=v}}),n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-mail"]],inputs:{mail:"mail"},features:[Vt],decls:6,vars:4,consts:[[1,"font-semibold","font-coral"],[1,"text-2xl","mb-4","text-black",3,"innerHTML"],[1,"mb-4","whitespace-break-spaces",3,"innerHTML"],[1,"mt-4","flex","flex-col","items-end"],[1,"text-accent",3,"innerHTML"],[1,"text-black",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),s(1,Mn,1,1,"div",1),p(2,"div",2),c(3,"div",3),s(4,kn,1,1,"span",4)(5,Fn,1,1,"span",5),d()()),n&2&&(r(),b(o.mail.title?1:-1),r(),m("innerHTML",o.mail.content,At),r(2),b(o.mail.greetCloseMessage?4:-1),r(),b(o.mail.sender?5:-1))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();function Pn(t,e){if(t&1&&p(0,"app-effect",6),t&2){let i=e.$implicit;m("effect",i)}}function zn(t,e){if(t&1&&(c(0,"div",4)(1,"div",5),u(2,"Effects:"),d(),D(3,Pn,1,1,"app-effect",6,T),d()),t&2){let i=l();r(3),S(i.mail().effects)}}var Ni=(()=>{let e=class e{constructor(){this.mail=j.required(),this.listDetails=z(Et),this.uiIcon=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-mail-details"]],inputs:{mail:[1,"mail"]},decls:6,vars:3,consts:[["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],[3,"mail"],[1,"mt-6"],[1,"text-lg","font-semibold"],[3,"effect"]],template:function(n,o){if(n&1&&(c(0,"app-card")(1,"div",0)(2,"button",1),w("click",function(){return o.listDetails.close()}),p(3,"app-ui-icon",2),d()(),p(4,"app-mail",3),s(5,zn,5,0,"div",4),d()),n&2){let h;r(3),m("uiIcon",o.uiIcon.CROSS),r(),m("mail",o.mail()),r(),b((h=o.mail().effects)!=null&&h.length?5:-1)}},dependencies:[vt,Xt,xt,gt,Rt],encapsulation:2});let t=e;return t})();var Nn=["mat-button",""],An=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Bn=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var jn=new Me("MAT_BUTTON_CONFIG");var Hn=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],$n=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(a){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,a)}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=a,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(a){this._disabled=a,this._updateRippleDisabled()}constructor(a,n,o,h){this._elementRef=a,this._platform=n,this._ngZone=o,this._animationMode=h,this._focusMonitor=z(Qe),this._rippleLoader=z(qe),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let v=z(jn,{optional:!0}),P=a.nativeElement,U=P.classList;this.disabledInteractive=v?.disabledInteractive??!1,this._rippleLoader?.configureRipple(P,{className:"mat-mdc-button-ripple"});for(let{attribute:H,mdcClasses:ut}of Hn)P.hasAttribute(H)&&U.add(...ut)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(a="program",n){a?this._focusMonitor.focusVia(this._elementRef.nativeElement,a,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){Pe()},e.\u0275dir=he({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Tt],disabled:[2,"disabled","disabled",Tt],ariaDisabled:[2,"aria-disabled","ariaDisabled",Tt],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Tt]},features:[Re]});let t=e;return t})();var pe=(()=>{let e=class e extends $n{constructor(a,n,o,h){super(a,n,o,h)}};e.\u0275fac=function(n){return new(n||e)(ht(ke),ht(Ge),ht(ze),ht(Fe,8))},e.\u0275cmp=f({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(L("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Ne(o.color?"mat-"+o.color:""),y("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[M,wt],attrs:Nn,ngContentSelectors:Bn,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,o){n&1&&(_e(An),p(0,"span",0),Bt(1),c(2,"span",1),Bt(3,1),d(),Bt(4,2),p(5,"span",2)(6,"span",3)),n&2&&y("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var Ai=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[kt,Ze,kt]});let t=e;return t})();var Ln=()=>["expandedDetail"];function Vn(t,e){t&1&&(c(0,"th",16),u(1," Title"),d())}function On(t,e){if(t&1&&(c(0,"td",17),u(1),x(2,"removeTags"),d()),t&2){let i=e.$implicit;r(),E(C(2,1,i.title))}}function Un(t,e){t&1&&(c(0,"th",16),u(1," Sender"),d())}function Jn(t,e){if(t&1&&(c(0,"td",17),u(1),x(2,"removeTags"),d()),t&2){let i=e.$implicit;r(),E(C(2,1,i.sender))}}function Wn(t,e){t&1&&(c(0,"th",16),u(1,"Type"),d())}function Gn(t,e){if(t&1&&(c(0,"td",18),u(1),x(2,"addSpacesToPascalCase"),d()),t&2){let i=e.$implicit;r(),B("",C(2,1,i.mailType)," ")}}function Yn(t,e){t&1&&(c(0,"th",19),u(1,"Effects"),d())}function Qn(t,e){if(t&1&&p(0,"app-effect",22),t&2){let i=e.$implicit;m("effect",i)}}function Zn(t,e){if(t&1&&(c(0,"div",21),D(1,Qn,1,1,"app-effect",22,T),d()),t&2){let i=l().$implicit;r(),S(i.effects)}}function qn(t,e){if(t&1&&(c(0,"td",20),s(1,Zn,3,0,"div",21),d()),t&2){let i=e.$implicit;r(),b(i.effects!=null&&i.effects.length?1:-1)}}function Xn(t,e){t&1&&p(0,"th",19)}function Kn(t,e){if(t&1){let i=R();c(0,"td",23)(1,"button",24),w("click",function(){let n=k(i).$implicit,o=l(2);return F(o.expandedRows.toggle(n.key))}),p(2,"i",25),d()()}if(t&2){let i=e.$implicit,a=l(2);r(2),y("down",!a.expandedRows.isSelected(i.key))("up",a.expandedRows.isSelected(i.key))}}function to(t,e){if(t&1&&(c(0,"td",20)(1,"div",26)(2,"div",27),p(3,"app-mail",28),d()()()),t&2){let i=e.$implicit,a=l(2);L("colspan",a.displayedColumns.length),r(),y("grid-rows-0fr",!a.expandedRows.isSelected(i.key))("grid-rows-1fr",a.expandedRows.isSelected(i.key)),r(2),m("mail",i)}}function eo(t,e){t&1&&p(0,"tr",29)}function io(t,e){t&1&&p(0,"tr",30)}function ao(t,e){t&1&&p(0,"tr",31)}function no(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,Vn,2,0,"th",2)(3,On,3,3,"td",3),g(),_(4,4),s(5,Un,2,0,"th",2)(6,Jn,3,3,"td",3),g(),_(7,5),s(8,Wn,2,0,"th",2)(9,Gn,3,3,"td",6),g(),_(10,7),s(11,Yn,2,0,"th",8)(12,qn,2,1,"td",9),g(),_(13,10),s(14,Xn,1,0,"th",8)(15,Kn,3,4,"td",11),g(),_(16,12),s(17,to,4,6,"td",9),g(),s(18,eo,1,0,"tr",13)(19,io,1,0,"tr",14)(20,ao,1,0,"tr",15),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(18),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns),r(),m("matRowDefColumns",Ut(5,Ln))}}var ji=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.expandedRows=new Yt(!0,[]),this.BASE_DISPLAY_COLUMNS=["title","sender","mailType","effects","expand"]}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-mail-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","","multiTemplateDataRows","",1,"can-expand",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","sender"],["matColumnDef","mailType"],["class","w-fit text-col","mat-cell","",4,"matCellDef"],["matColumnDef","effects"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expand"],["class","w-fit align-top !pt-2","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","expand-row","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-col"],["mat-cell","",1,"w-fit","text-col"],["mat-header-cell",""],["mat-cell",""],[1,"flex","flex-col","py-3","gap-1"],[1,"whitespace-nowrap",3,"effect"],["mat-cell","",1,"w-fit","align-top","!pt-2"],["mat-button","",3,"click"],[1,"arrow"],[1,"expandable-body","grid","transition-all","duration-200","ease-in-out"],[1,"overflow-hidden"],[1,"py-4","max-w-prose",3,"mail"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expand-row"]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,no,21,6,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[Z,Xt,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,pe,Rt,gi,Qt],styles:[".expand-row[_ngcontent-%COMP%]{--mat-table-row-item-container-height: 0;--mat-table-row-item-label-text-size: 16px}"]});let t=e;return t})();var ro=()=>["expandedDetail"];function co(t,e){t&1&&(c(0,"th",12),u(1," Title"),d())}function mo(t,e){if(t&1&&(c(0,"td",13),u(1),d()),t&2){let i=e.$implicit;r(),E(i.title)}}function lo(t,e){t&1&&p(0,"th",14)}function so(t,e){if(t&1){let i=R();c(0,"td",15)(1,"button",16),w("click",function(){let n=k(i).$implicit,o=l(2);return F(o.expandedRows.toggle(n.key))}),p(2,"i",17),d()()}if(t&2){let i=e.$implicit,a=l(2);r(2),y("down",!a.expandedRows.isSelected(i.key))("up",a.expandedRows.isSelected(i.key))}}function po(t,e){if(t&1&&(c(0,"td",18)(1,"div",19)(2,"div",20),p(3,"app-mail",21),d()()()),t&2){let i=e.$implicit,a=l(2);L("colspan",a.displayedColumns.length),r(),y("grid-rows-0fr",!a.expandedRows.isSelected(i.key))("grid-rows-1fr",a.expandedRows.isSelected(i.key)),r(2),m("mail",i)}}function uo(t,e){t&1&&p(0,"tr",22)}function bo(t,e){t&1&&p(0,"tr",23)}function fo(t,e){t&1&&p(0,"tr",24)}function ho(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,co,2,0,"th",2)(3,mo,2,1,"td",3),g(),_(4,4),s(5,lo,1,0,"th",5)(6,so,3,4,"td",6),g(),_(7,7),s(8,po,4,6,"td",8),g(),s(9,uo,1,0,"tr",9)(10,bo,1,0,"tr",10)(11,fo,1,0,"tr",11),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(9),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns),r(),m("matRowDefColumns",Ut(5,ro))}}var Hi=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.expandedRows=new Yt(!0,[]),this.BASE_DISPLAY_COLUMNS=["title","expand"]}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-torn-pages-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","","multiTemplateDataRows","",1,"can-expand",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col","mat-cell","",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-fit align-top !pt-2","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","expand-row","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"text-col"],["mat-header-cell",""],["mat-cell","",1,"w-fit","align-top","!pt-2"],["mat-button","",3,"click"],[1,"arrow"],["mat-cell",""],[1,"expandable-body","grid","transition-all","duration-200","ease-in-out"],[1,"overflow-hidden"],[1,"py-4","max-w-prose",3,"mail"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expand-row"]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,ho,12,6,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[Z,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt,pe,Rt],styles:[".expand-row[_ngcontent-%COMP%]{--mat-table-row-item-container-height: 0;--mat-table-row-item-label-text-size: 16px}"]});let t=e;return t})();var $i=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-torn-page"]],inputs:{tornPage:"tornPage"},decls:5,vars:2,consts:[[1,"font-semibold","font-coral"],[1,"text-2xl","mb-4","text-black"],[1,"mb-4","whitespace-break-spaces"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),u(2),d(),c(3,"div",2),u(4),d()()),n&2&&(r(2),E(o.tornPage.title),r(2),E(o.tornPage.content))},encapsulation:2});let t=e;return t})();var Li=(()=>{let e=class e{constructor(){this.tornPage=j.required(),this.listDetails=z(Et),this.uiIcon=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-torn-page-details"]],inputs:{tornPage:[1,"tornPage"]},decls:5,vars:2,consts:[["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],[3,"tornPage"]],template:function(n,o){n&1&&(c(0,"app-card")(1,"div",0)(2,"button",1),w("click",function(){return o.listDetails.close()}),p(3,"app-ui-icon",2),d()(),p(4,"app-torn-page",3),d()),n&2&&(r(3),m("uiIcon",o.uiIcon.CROSS),r(),m("tornPage",o.tornPage()))},dependencies:[vt,xt,gt,$i],encapsulation:2});let t=e;return t})();function xo(t,e){if(t&1&&p(0,"app-mail-details",1),t&2){let i=l();m("mail",i.selectedEntity)}}function Co(t,e){if(t&1&&p(0,"app-torn-page-details",2),t&2){let i=l();m("tornPage",i.selectedTornPage)}}function yo(t,e){if(t&1){let i=R();c(0,"app-card",3)(1,"div",5)(2,"button",6),w("click",function(){k(i);let n=l();return F(n.listDetail.close())}),p(3,"app-ui-icon",7),d()(),p(4,"app-full-size-image",8),d()}if(t&2){let i=l();r(3),m("uiIcon",i.uiIcon.CROSS),r(),m("imageName","treasure-maps/"+i.selectedTreasureHunt.mapImage)}}function wo(t,e){if(t&1){let i=R();c(0,"app-item-icon",16),w("click",function(){let n=k(i).$implicit,o=l(3);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(3);y("selected-icon",(a.selectedEntity==null?null:a.selectedEntity.key)===i.key)}}function To(t,e){if(t&1&&(c(0,"div",12),D(1,wo,1,2,"app-item-icon",15,T),d()),t&2){let i=l(2);r(),S(i.mails)}}function Do(t,e){if(t&1&&p(0,"app-mail-table",13),t&2){let i=l(2);m("dataSource",i.mails)}}function So(t,e){if(t&1){let i=R();c(0,"app-item-icon",16),w("click",function(){let n=k(i).$implicit,o=l(3);return F(o.showTornPageDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(3);y("selected-icon",(a.selectedTornPage==null?null:a.selectedTornPage.key)===i.key)}}function Io(t,e){if(t&1&&(c(0,"div",12),D(1,So,1,2,"app-item-icon",15,T),d()),t&2){let i=l(2);r(),S(i.tornPages)}}function Mo(t,e){if(t&1&&p(0,"app-torn-pages-table",13),t&2){let i=l(2);m("dataSource",i.tornPages)}}function ko(t,e){if(t&1){let i=R();c(0,"app-item-icon",17),w("click",function(){let n=k(i).$implicit,o=l(2);return F(o.showTreasureDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(2);y("selected-icon",(a.selectedTreasureHunt==null?null:a.selectedTreasureHunt.treasureId)===i.treasureId),m("itemName",i.iconName)}}function Fo(t,e){if(t&1){let i=R();c(0,"mat-tab-group",9),w("selectedTabChange",function(n){k(i);let o=l();return F(o.updateUrl(n))}),c(1,"mat-tab",10)(2,"app-data-filter",11),G("showTableChange",function(n){k(i);let o=l();return W(o.showTable,n)||(o.showTable=n),F(n)}),d(),s(3,To,3,0,"div",12)(4,Do,1,1,"app-mail-table",13),d(),c(5,"mat-tab",10)(6,"app-data-filter",11),G("showTableChange",function(n){k(i);let o=l();return W(o.showTornPagesTable,n)||(o.showTornPagesTable=n),F(n)}),d(),s(7,Io,3,0,"div",12)(8,Mo,1,1,"app-torn-pages-table",13),d(),c(9,"mat-tab",10)(10,"div",12),D(11,ko,1,3,"app-item-icon",14,T),d()()()}if(t&2){let i=l();m("selectedIndex",i.selectedTabIndex()),r(),m("label",i.tabNames[0]),r(),J("showTable",i.showTable),r(),b(i.showTable?-1:3),r(),b(i.showTable?4:-1),r(),m("label",i.tabNames[1]),r(),J("showTable",i.showTornPagesTable),r(),b(i.showTornPagesTable?-1:7),r(),b(i.showTornPagesTable?8:-1),r(),m("label",i.tabNames[2]),r(2),S(i.treasureMaps)}}var Vi=(()=>{let e=class e extends qt{constructor(){super(),this.showTornPagesTable=!1,this.mails=[],this.tornPages=[],this.treasureMaps=[],this.tabNames=["Letters","Torn pages","Treasure Map"],this.uiIcon=O,this.data$=St([this._database.fetchMailData$(),this._database.fetchTornPagesData$(),this._database.fetchTreasureHunts$()]).pipe(Ie(([a,n,o])=>{this.mails=a,this.tornPages=n,this.treasureMaps=o;let h=this.selectedId;if(h){let v=this.mails.find(H=>H.key.toLowerCase()===h.toLowerCase());v&&this.showDetails(v);let P=this.tornPages.find(H=>H.key.toLowerCase()===h.toLowerCase());P&&this.showTornPageDetails(P);let U=this.treasureMaps.find(H=>H.treasureId===+h.toLowerCase());U&&this.showTreasureDetails(U)}this.activateTabFromRoute(this.tabNames)}))}showDetails(a){this.selectedTornPage=void 0,this.selectedTreasureHunt=void 0,super.showDetails(a)}showTornPageDetails(a){this.selectedEntity=void 0,this.selectedTreasureHunt=void 0,this.selectedTornPage=a,this.listDetail.open()}showTreasureDetails(a){this.selectedEntity=void 0,this.selectedTornPage=void 0,this.selectedTreasureHunt=a,this.listDetail.open()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-notes"]],features:[M],decls:7,vars:6,consts:[["listDetail",""],[3,"mail"],[3,"tornPage"],[1,"text-lg","font-semibold","relative"],[3,"selectedIndex"],["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["hasThumb","",1,"full-size-card-image","image-only",3,"imageName"],[3,"selectedTabChange","selectedIndex"],[3,"label"],[3,"showTableChange","showTable"],[1,"icon-grid","mt-3"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],["itemName","Torn_page",1,"icon-grid-item",3,"selected-icon"],["itemName","Torn_page",1,"icon-grid-item",3,"click"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){n&1&&(c(0,"app-list-detail-container"),_(1,0),s(2,xo,1,1,"app-mail-details",1)(3,Co,1,1,"app-torn-page-details",2)(4,yo,5,2,"app-card",3),g(),s(5,Fo,13,10,"mat-tab-group",4),x(6,"async"),d()),n&2&&(r(2),b(o.selectedEntity?2:-1),r(),b(o.selectedTornPage?3:-1),r(),b(o.selectedTreasureHunt?4:-1),r(),b(C(6,4,o.data$)?5:-1))},dependencies:[N,vt,Y,dt,Ct,Q,xt,se,gt,Ni,ji,Hi,Li,V],encapsulation:2});let t=e;return t})();function Eo(t,e){if(t&1&&p(0,"app-item-icon",4),t&2){let i=l();Ae("itemName",i.enemy().iconName)}}function Po(t,e){if(t&1&&p(0,"app-full-size-image",5),t&2){let i=l();m("imageName","items/icons/"+i.enemy().image)}}function zo(t,e){if(t&1&&(c(0,"span",10),u(1),d()),t&2){let i=l();r(),E(i.enemy().description)}}var Oi=(()=>{let e=class e{constructor(){this.enemy=j.required(),this.listDetails=z(Et),this.uiIcon=O}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=f({type:e,selectors:[["app-bestiary-details"]],inputs:{enemy:[1,"enemy"]},decls:18,vars:7,consts:[[1,"text-lg","font-semibold","relative"],["cardActions","",1,"card-actions"],["matTooltip","Close",3,"click"],[1,"!w-8","!h-8","hover:text-black","focus-visible:text-black",3,"uiIcon"],["cardIcon","",3,"itemName"],[1,"full-size-card-image",3,"imageName"],[1,"flex","justify-between","items-center"],[1,"flex","flex-col"],[1,"text-black","text-2xl"],[1,"my-5"],[1,"text-lg","mb-6"],[1,"text-black"],[1,"block","my-2",3,"chances"]],template:function(n,o){n&1&&(c(0,"app-card",0)(1,"div",1)(2,"button",2),w("click",function(){return o.listDetails.close()}),p(3,"app-ui-icon",3),d()(),s(4,Eo,1,1,"app-item-icon",4)(5,Po,1,1,"app-full-size-image",5),c(6,"div",6)(7,"div",7)(8,"div",8),u(9),d()()(),p(10,"hr",9),s(11,zo,2,1,"span",10),c(12,"div"),u(13," Experience: "),c(14,"span",11),u(15),d()(),u(16," Drops: "),p(17,"app-chance-per-item-list",12),d()),n&2&&(r(3),m("uiIcon",o.uiIcon.CROSS),r(),b(o.enemy().image?-1:4),r(),b(o.enemy().image?5:-1),r(4),E(o.enemy().displayName),r(2),b(o.enemy().description?11:-1),r(4),E(o.enemy().experience),r(2),m("chances",o.enemy().dropRates))},dependencies:[N,vt,vi,xt,se,gt],encapsulation:2});let t=e;return t})();function No(t,e){if(t&1&&(c(0,"td",11),p(1,"app-item-icon",12),d()),t&2){let i=e.$implicit;r(),m("itemName",i.iconName)}}function Ao(t,e){t&1&&(c(0,"th",13),u(1,"Item "),d()),t&2&&L("colspan",2)}function Bo(t,e){if(t&1&&(c(0,"td",14),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.displayName," ")}}function jo(t,e){t&1&&(c(0,"th",15),u(1,"Drops"),d())}function Ho(t,e){if(t&1&&(c(0,"td",14),p(1,"app-chance-per-item-table-list",16),d()),t&2){let i=e.$implicit;r(),m("chances",i.dropRates)}}function $o(t,e){t&1&&(c(0,"th",13),u(1,"Exp"),d())}function Lo(t,e){if(t&1&&(c(0,"td",14),u(1),d()),t&2){let i=e.$implicit;r(),B(" ",i.experience," ")}}function Vo(t,e){t&1&&p(0,"tr",17)}function Oo(t,e){t&1&&p(0,"tr",18)}function Uo(t,e){if(t&1&&(c(0,"table",0),_(1,1),s(2,No,2,1,"td",2),g(),_(3,3),s(4,Ao,2,1,"th",4)(5,Bo,2,1,"td",5),g(),_(6,6),s(7,jo,2,0,"th",7)(8,Ho,2,1,"td",5),g(),_(9,8),s(10,$o,2,0,"th",4)(11,Lo,2,1,"td",5),g(),s(12,Vo,1,0,"tr",9)(13,Oo,1,0,"tr",10),d()),t&2){let i=l();m("dataSource",i.matDataSource),r(12),m("matHeaderRowDef",i.displayHeaderColumns)("matHeaderRowDefSticky",!0),r(),m("matRowDefColumns",i.displayedColumns)}}var Ui=(()=>{let e=class e extends lt{constructor(){super(...arguments),this.BASE_DISPLAY_COLUMNS=["icon","displayName","experience","dropRates"]}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-bestiary-table"]],features:[M],decls:2,vars:1,consts:[["mat-table","","matSort","",3,"dataSource"],["matColumnDef","icon","sticky",""],["class","!pl-2 !pr-0 w-10 text-center icon-col ","mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["class","backdrop-blur-xl","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","text-col whitespace-nowrap","mat-cell","",4,"matCellDef"],["matColumnDef","dropRates"],["class","backdrop-blur-xl","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","experience"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"!pl-2","!pr-0","w-10","text-center","icon-col"],[3,"itemName"],["mat-header-cell","","mat-sort-header","",1,"backdrop-blur-xl"],["mat-cell","",1,"text-col","whitespace-nowrap"],["mat-header-cell","",1,"backdrop-blur-xl"],[3,"chances"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(c(0,"app-responsive-table"),s(1,Uo,14,4,"table",0),d()),n&2&&(r(),b(o.matDataSource?1:-1))},dependencies:[N,Z,xi,q,K,at,tt,X,nt,et,it,ot,rt,ct,mt],encapsulation:2});let t=e;return t})();function Wo(t,e){if(t&1&&p(0,"app-bestiary-details",0),t&2){let i=l();m("enemy",i.selectedEntity)}}function Go(t,e){if(t&1){let i=R();c(0,"app-item-icon",5),w("click",function(){let n=k(i).$implicit,o=l(3);return F(o.showDetails(n))}),d()}if(t&2){let i=e.$implicit,a=l(3);y("selected-icon",(a.selectedEntity==null?null:a.selectedEntity.key)===i.key),m("itemName",i.iconName)}}function Yo(t,e){if(t&1&&(c(0,"div",2),D(1,Go,1,3,"app-item-icon",4,T),d()),t&2){let i=l();r(),S(i)}}function Qo(t,e){if(t&1&&p(0,"app-bestiary-table",3),t&2){let i=l();m("dataSource",i)}}function Zo(t,e){if(t&1&&s(0,Yo,3,0,"div",2)(1,Qo,1,1,"app-bestiary-table",3),t&2){let i=l();b(i.showTable?-1:0),r(),b(i.showTable?1:-1)}}var Ji=(()=>{let e=class e extends fi{constructor(){super(...arguments),this.bestiary$=z(Gt).fetchBestiary$()}};e.\u0275fac=(()=>{let a;return function(o){return(a||(a=$(e)))(o||e)}})(),e.\u0275cmp=f({type:e,selectors:[["app-bestiary"]],features:[M],decls:5,vars:5,consts:[["listDetail","",3,"enemy"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"]],template:function(n,o){if(n&1&&(c(0,"app-list-detail-container"),s(1,Wo,1,1,"app-bestiary-details",0),c(2,"app-data-filter",1),G("showTableChange",function(v){return W(o.showTable,v)||(o.showTable=v),v}),d(),s(3,Zo,2,2),x(4,"async"),d()),n&2){let h;r(),b(o.selectedEntity?1:-1),r(),J("showTable",o.showTable),r(),b((h=C(4,3,o.bestiary$))?3:-1,h)}},dependencies:[N,Y,dt,Oi,Ui,V],encapsulation:2});let t=e;return t})();var qo=[{path:"",pathMatch:"full",redirectTo:"produce"},{path:"",component:wi,children:[{path:"caught",redirectTo:"caught/",pathMatch:"full"},{path:"caught/:tabName",component:Mi,title:"Caught - Journal"},{path:"found",redirectTo:"found/",pathMatch:"full"},{path:"found/:tabName",component:ki,title:"Found - Journal"},{path:"produce",redirectTo:"produce/",pathMatch:"full"},{path:"produce/:tabName",component:Pi,title:"Produce - Journal"},{path:"bestiary",component:Ji,title:"Bestiary - Journal"},{path:"notes",redirectTo:"notes/",pathMatch:"full"},{path:"notes/:tabName",component:Vi,title:"Notes - Journal"},{path:"achievements",redirectTo:"achievements/",pathMatch:"full"},{path:"achievements/:achievementId",component:zi,title:"Achievements - Journal"}]}],Wi=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[ve.forChild(qo),ve]});let t=e;return t})();var Gi=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[kt,Jt,kt]});let t=e;return t})();var Rm=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=bt({imports:[Jt,Wi,Ci,li,Gi,mi,si,pi,ri,di,Xe,yi,Ai,ni,yt,Kt,te,ee,ie,ae,ne,le]});let t=e;return t})();export{Ii as a,Ei as b,pe as c,Ai as d,Ui as e,Rm as f}; diff --git a/index.html b/index.html index 367fc32e68..bd0422bd84 100644 --- a/index.html +++ b/index.html @@ -9,9 +9,9 @@ - + - + diff --git a/main-PFUTBUDY.js b/main-PFUTBUDY.js deleted file mode 100644 index 20c0913b83..0000000000 --- a/main-PFUTBUDY.js +++ /dev/null @@ -1,6 +0,0 @@ -import{a as Jn}from"./chunk-GEJY5HAK.js";import{a as $n}from"./chunk-M22KCL2Z.js";import{a as Vn,b as Kn,c as Xn}from"./chunk-POXAUVM7.js";import{a as Hn,b as Lt}from"./chunk-WFTBLPSZ.js";import{$ as pe,$a as Sn,Aa as W,Ac as Nn,B as ln,Bc as ui,Ca as le,Cc as Rn,D as _t,Db as Qe,Dc as Ln,Dd as qn,E as it,Eb as Dn,Ec as rt,Ed as Qn,Fa as ce,Fc as Ct,G as cn,Ga as si,Gc as xn,H as S,Ha as ri,Hc as At,Hd as Un,Ia as oi,Ib as Ue,Ic as We,Id as Pt,J as F,Ja as w,Jc as be,Jd as Gn,K as re,Ka as v,Kc as Fn,Kd as It,L as oe,La as j,Lc as Bn,Ld as Wn,M,Md as Nt,N as C,Nc as Dt,Nd as Rt,O as dn,Ob as St,Oc as kt,P as q,Pa as vn,Pb as ci,Pc as Ot,Q as ae,Qa as ai,R as Fe,Ra as Ve,Rb as Ge,S as hn,Sa as vt,Sb as kn,Sd as Yn,Tb as On,Tc as jn,U as un,Ub as wt,V as mn,Vb as Mn,W as pn,Z as nt,Za as bn,Zc as b,_a as En,_b as de,_c as ue,a as I,b as Le,bd as zn,c as tn,cb as wn,cd as mi,d as x,da as Be,db as T,e as se,ea as fn,eb as Ke,ed as He,f as nn,fa as ni,fb as Tn,fd as pi,ga as je,gd as Mt,h as J,j as ye,k as sn,ka as k,l as Ce,la as A,m as rn,mb as ve,mf as Ye,n as on,na as gn,nb as bt,o as Ae,oa as yn,oc as he,oe as Zn,pa as _e,q as ii,qb as $e,qc as Pn,rb as qe,s as tt,sc as di,t as xe,ta as ze,u as G,ua as _n,ub as Et,uc as In,vb as li,wa as B,wb as Cn,x as ee,xb as An,xc as Tt,yc as hi,z as an,za as st}from"./chunk-4KZEYPV3.js";var es=(()=>{var e,t;let i=class i{constructor(){se(this,e,C(Ge));se(this,t,"latest-changelogs")}getLatestChangelog(){return x(this,e).get("/assets/latest-changelog.md")}setLatestSeen(r){localStorage.setItem(x(this,t),JSON.stringify({version:r.version}))}getLatestSeen(){let r=localStorage.getItem(x(this,t));return r?JSON.parse(r).version:null}};e=new WeakMap,t=new WeakMap,i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();function ur(s,e){}var De=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var yi=(()=>{let e=class e extends Ln{constructor(i,n,r,o,a,l,c,d){super(),this._elementRef=i,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=c,this._focusMonitor=d,this._platform=C(In),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=C(An),this.attachDomPortal=h=>{this._portalOutlet.hasAttached();let _=this._portalOutlet.attachDomPortal(h);return this._contentAttached(),_},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(i){this._ariaLabelledByQueue.push(i),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(i){let n=this._ariaLabelledByQueue.indexOf(i);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),n}attachTemplatePortal(i){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,n){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{i.removeEventListener("blur",r),i.removeEventListener("mousedown",r),i.removeAttribute("tabindex")};i.addEventListener("blur",r),i.addEventListener("mousedown",r)})),i.focus(n)}_focusByCssSelector(i,n){let r=this._elementRef.nativeElement.querySelector(i);r&&this._forceFocus(r,n)}_trapFocus(){let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let i=this._config.restoreFocus,n=null;if(typeof i=="string"?n=this._document.querySelector(i):typeof i=="boolean"?n=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(n=i),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=Tt(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let i=this._elementRef.nativeElement,n=Tt();return i===n||i.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Tt()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(A(Be),A(kt),A(Qe,8),A(De),A(Dt),A(_e),A(We),A(Ot))},e.\u0275cmp=q({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&bn(rt,7),n&2){let o;En(o=Sn())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&st("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[ze,ve],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&B(0,ur,0,0,"ng-template",0)},dependencies:[rt],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let s=e;return s})(),ot=class{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new J,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ct(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},mr=new oe("DialogScrollStrategy",{providedIn:"root",factory:()=>{let s=C(be);return()=>s.scrollStrategies.block()}}),pr=new oe("DialogData"),fr=new oe("DefaultDialogConfig");var gr=0,is=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(i,n,r,o,a,l){this._overlay=i,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new J,this._afterOpenedAtThisLevel=new J,this._ariaHiddenElements=new Map,this.afterAllClosed=Ae(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_t(void 0))),this._scrollStrategy=l}open(i,n){let r=this._defaultOptions||new De;n=I(I({},r),n),n.id=n.id||`cdk-dialog-${gr++}`,n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),a=this._overlay.create(o),l=new ot(a,n),c=this._attachContainer(a,l,n);return l.containerInstance=c,this._attachDialogContent(i,l,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){fi(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(n=>n.id===i)}ngOnDestroy(){fi(this._openDialogsAtThisLevel,i=>{i.config.closeOnDestroy===!1&&this._removeOpenDialog(i,!1)}),fi(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){let n=new xn({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(n.backdropClass=i.backdropClass),n}_attachContainer(i,n,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:De,useValue:r},{provide:ot,useValue:n},{provide:We,useValue:i}],l;r.container?typeof r.container=="function"?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=yi;let c=new ui(l,r.viewContainerRef,pe.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return i.attach(c).instance}_attachDialogContent(i,n,r,o){if(i instanceof gn){let a=this._createInjector(o,n,r,void 0),l={$implicit:o.data,dialogRef:n};o.templateContext&&(l=I(I({},l),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Rn(i,null,l,a))}else{let a=this._createInjector(o,n,r,this._injector),l=r.attachComponentPortal(new ui(i,o.viewContainerRef,a,o.componentFactoryResolver));n.componentRef=l,n.componentInstance=l.instance}}_createInjector(i,n,r,o){let a=i.injector||i.viewContainerRef?.injector,l=[{provide:pr,useValue:i.data},{provide:ot,useValue:n}];return i.providers&&(typeof i.providers=="function"?l.push(...i.providers(n,i,r)):l.push(...i.providers)),i.direction&&(!a||!a.get(hi,null,{optional:!0}))&&l.push({provide:hi,useValue:{value:i.direction,change:ye()}}),pe.create({parent:a||o,providers:l})}_removeOpenDialog(i,n){let r=this.openDialogs.indexOf(i);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let i=this._overlayContainer.getContainerElement();if(i.parentElement){let n=i.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==i&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(be),M(pe),M(fr,8),M(e,12),M(At),M(mr))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function fi(s,e){let t=s.length;for(;t--;)e(s[t])}function yr(s,e){}var at=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},_i="mdc-dialog--open",ns="mdc-dialog--opening",ss="mdc-dialog--closing",_r=150,vr=75,br=(()=>{let e=class e extends yi{constructor(i,n,r,o,a,l,c,d,h){super(i,n,r,o,a,l,c,h),this._animationMode=d,this._animationStateChanged=new fn,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?os(this._config.enterAnimationDuration)??_r:0,this._exitAnimationDuration=this._animationsEnabled?os(this._config.exitAnimationDuration)??vr:0,this._animationTimer=null,this._isDestroyed=!1,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rs,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ns,_i)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(_i),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(_i),this._animationsEnabled?(this._hostElement.style.setProperty(rs,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ss)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(i){this._actionSectionCount+=i,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(ns,ss)}_waitForAnimationToComplete(i,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,i)}_requestAnimationFrame(i){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._isDestroyed||(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i}))}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer),this._isDestroyed=!0}attachComponentPortal(i){let n=super.attachComponentPortal(i);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(A(Be),A(kt),A(Qe,8),A(at),A(Dt),A(_e),A(We),A(je,8),A(Ot))},e.\u0275cmp=q({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(ai("id",r._config.id),st("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),le("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[ze,ve],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(w(0,"div",0)(1,"div",1),B(2,yr,0,0,"ng-template",2),v()())},dependencies:[rt],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let s=e;return s})(),rs="--mat-dialog-transition-duration";function os(s){return s==null?null:typeof s=="number"?s:s.endsWith("ms")?di(s.substring(0,s.length-2)):s.endsWith("s")?di(s.substring(0,s.length-1))*1e3:s==="0"?0:null}var xt=function(s){return s[s.OPEN=0]="OPEN",s[s.CLOSING=1]="CLOSING",s[s.CLOSED=2]="CLOSED",s}(xt||{}),lt=class{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new J,this._beforeClosed=new J,this._state=xt.OPEN,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(G(n=>n.state==="opened"),ee(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(G(n=>n.state==="closed"),ee(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),tt(this.backdropClick(),this.keydownEvents().pipe(G(n=>n.keyCode===27&&!this.disableClose&&!Ct(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),as(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(G(t=>t.state==="closing"),ee(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=xt.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=xt.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function as(s,e,t){return s._closeInteractionType=e,s.close(t)}var bi=new oe("MatMdcDialogData"),Er=new oe("mat-mdc-dialog-default-options"),Sr=new oe("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let s=C(be);return()=>s.scrollStrategies.block()}});var wr=0,Ft=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(i,n,r,o,a,l,c,d){this._overlay=i,this._defaultOptions=o,this._scrollStrategy=a,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new J,this._afterOpenedAtThisLevel=new J,this.dialogConfigClass=at,this.afterAllClosed=Ae(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_t(void 0))),this._dialog=n.get(is),this._dialogRefConstructor=lt,this._dialogContainerType=br,this._dialogDataToken=bi}open(i,n){let r;n=I(I({},this._defaultOptions||new at),n),n.id=n.id||`mat-mdc-dialog-${wr++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(i,Le(I({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:De,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,l,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(n=>n.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let n=i.length;for(;n--;)i[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(be),M(pe),M(Dn,8),M(Er,8),M(Sr),M(e,12),M(At),M(je,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Tr=0,ls=(()=>{let e=class e{constructor(i,n,r){this.dialogRef=i,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ms(this._elementRef,this._dialog.openDialogs))}ngOnChanges(i){let n=i._matDialogClose||i._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(i){as(this.dialogRef,i.screenX===0&&i.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(A(lt,8),A(Be),A(Ft))},e.\u0275dir=Fe({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&Ve("click",function(a){return r._onButtonClick(a)}),n&2&&st("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[un]});let s=e;return s})(),cs=(()=>{let e=class e{constructor(i,n,r){this._dialogRef=i,this._elementRef=n,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=ms(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(A(lt,8),A(Be),A(Ft))},e.\u0275dir=Fe({type:e,standalone:!0});let s=e;return s})(),ds=(()=>{let e=class e extends cs{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${Tr++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=nt(e)))(r||e)}})(),e.\u0275dir=Fe({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){n&2&&ai("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[ze]});let s=e;return s})(),hs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=Fe({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[_n([Nn])]});let s=e;return s})(),us=(()=>{let e=class e extends cs{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=nt(e)))(r||e)}})(),e.\u0275dir=Fe({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&le("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[ze]});let s=e;return s})();function ms(s,e){let t=s.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(i=>i.id===t.id):null}function Cr(s,e){if(s&1&&(T(0," - "),w(1,"span"),T(2),v()),s&2){let t=vt();k(2),Ke(t.dialogData.changelog.date)}}var ps=(()=>{var e;let t=class t{constructor(){se(this,e);this.dialogData=C(bi),nn(this,e,C(he))}toggleDisableChangelog(n){x(this,e).saveSettings(Le(I({},x(this,e).getSettings()),{disableChangelogs:n.checked}))}};e=new WeakMap,t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=q({type:t,selectors:[["app-changelog-dialog"]],standalone:!0,features:[ve],decls:13,vars:3,consts:[["mat-dialog-title","",1,"font-xl","font-bold"],[1,"prose","max-w-full"],[1,"flex","gap-3","font-bold"],[3,"data"],[1,"!justify-between"],[3,"change"],["matDialogClose","",1,"btn-amber"]],template:function(r,o){r&1&&(w(0,"h1",0),T(1,"Changelog"),v(),w(2,"mat-dialog-content",1)(3,"div",2)(4,"span"),T(5),v(),B(6,Cr,3,1,"span"),v(),j(7,"markdown",3),v(),w(8,"mat-dialog-actions",4)(9,"mat-checkbox",5),Ve("change",function(l){return o.toggleDisableChangelog(l)}),T(10,"Don't show changelogs"),v(),w(11,"button",6),T(12,"Close"),v()()),r&2&&(k(5),Ke(o.dialogData.changelog.version),k(),ce(o.dialogData.changelog.date?6:-1),k(),W("data",o.dialogData.changelog.body))},dependencies:[us,ls,ds,hs,Vn,$n],styles:["[_nghost-%COMP%]{--mdc-dialog-subhead-weight: 700;--mdc-dialog-subhead-size: 1.5rem;--mdc-dialog-subhead-line-height: 1.8rem}"]});let s=t;return s})();var Dr=()=>["cdk-overlay-dark-backdrop","!transition-none"],gs=()=>["text-white","active"];function kr(s,e){s&1&&(w(0,"span",7),T(1,"BETA"),v())}function Or(s,e){if(s&1&&(w(0,"li")(1,"a",15),j(2,"app-ui-icon",16),w(3,"span",17),T(4),v()()()),s&2){let t=e.$implicit;k(),W("routerLink",t.path)("routerLinkActive",bt(4,gs)),k(),W("uiIcon",t.uiIcon),k(2),Ke(t.text)}}function Mr(s,e){if(s&1&&(w(0,"li",19)(1,"a",20),j(2,"app-ui-icon",21),w(3,"span",22),T(4),v()()()),s&2){let t=e.$implicit;k(),W("routerLinkActive",bt(4,gs))("routerLink",t.path),k(),W("uiIcon",t.uiIcon),k(2),Ke(t.text)}}function Pr(s,e){if(s&1&&(w(0,"ul",18),ri(1,Mr,5,5,"li",19,si),v()),s&2){let t=vt();k(),oi(t.naviLinks)}}var ys=(()=>{let e=class e{constructor(){this.naviLinks=[{text:"Journal",uiIcon:de.JOURNAL,path:"journal"},{text:"Crafting",uiIcon:de.CRAFTING,path:"crafting"},{text:"NPCs",uiIcon:de.PEOPLE,path:"npcs"},{text:"Locations",uiIcon:de.MAP,path:"locations"},{text:"My Guide",uiIcon:de.MY_CORAL,path:"my"},{text:"Item database",uiIcon:de.DATABASE,path:"database"}],this.isOpen=!1,this.uiIcon=de,this.isBeta=!1,this._router=C(Gn),this._settingsService=C(he),this._setClass=!0,this._router.events.pipe(G(i=>i instanceof Qn)).subscribe(()=>{this.isOpen=!1}),this.isBeta=this._settingsService.getSettings().useBeta}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=q({type:e,selectors:[["app-header"]],hostVars:4,hostBindings:function(n,r){n&2&&le("open-menu",r.isOpen)("app-header",r._setClass)},decls:19,vars:9,consts:[["trigger","cdkOverlayOrigin"],[1,"flex","justify-between","px-4"],[1,"relative","flex"],["routerLink","/",1,"flex","gap-x-4","items-center","text-header"],["alt","Super Coral. Logo of the website.","src","assets/ui/images/icons/Super_Coral.png",1,"h-12","w-12","xl:w-16","xl:h-16"],[1,"text-4xl","font-semibold","hidden","xl:block"],[1,"text-4xl","font-semibold","block","xl:hidden"],[1,"beta-badge","xl:!top-5","leading-none","font-bold","text-black","absolute","px-1.5","py-1","rounded-sm","right-0"],[1,"hidden","md:block"],[1,"flex","gap-x-6"],[1,"block","md:hidden"],["cdkOverlayOrigin","","type","button",1,"flex","flex-col","py-3","px-2","text-neutral-400","hover:text-neutral-300","items-center","text-center",3,"click"],[1,"!h-10","!w-10","max-xl",3,"uiIcon"],[1,"user-sync","hidden","xl:block"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","",3,"cdkConnectedOverlayBackdropClass","cdkConnectedOverlayOpen","cdkConnectedOverlayOrigin","cdkConnectedOverlayPanelClass"],[1,"flex","flex-col","py-3","px-2","text-neutral-400","hover:text-neutral-300","items-center","text-center",3,"routerLink","routerLinkActive"],[1,"!h-6","!w-6","xl:!h-12","xl:!w-12","mb-2","max-xl",3,"uiIcon"],[1,"xl:text-lg","font-semibold"],[1,"py-4"],[1,"my-2"],[1,"flex","py-3","px-4","text-neutral-400","hover:text-neutral-300","items-center",3,"routerLinkActive","routerLink"],[1,"!h-6","!w-6","mr-3","max-xl",3,"uiIcon"],[1,"font-semibold"]],template:function(n,r){if(n&1){let o=vn();w(0,"div",1)(1,"div",2)(2,"a",3),j(3,"img",4),w(4,"span",5),T(5,"Coral Guide"),v(),w(6,"span",6),T(7,"CG"),v()(),B(8,kr,2,0,"span",7),v(),w(9,"nav",8)(10,"ul",9),ri(11,Or,5,5,"li",null,si),v()(),w(13,"div",10)(14,"button",11,0),Ve("click",function(){return mn(o),pn(r.isOpen=!r.isOpen)}),j(16,"app-ui-icon",12),v()(),j(17,"div",13),v(),B(18,Pr,3,0,"ng-template",14)}if(n&2){let o=wn(15);k(8),ce(r.isBeta?8:-1),k(3),oi(r.naviLinks),k(5),le("!text-accent",r.isOpen),W("uiIcon",r.uiIcon.BURGER_MENU),k(2),W("cdkConnectedOverlayBackdropClass",bt(8,Dr))("cdkConnectedOverlayOpen",r.isOpen)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayPanelClass","mobile-menu-panel")}},dependencies:[It,Wn,Bn,Fn,Rt],styles:[`.app-header{--header-text-color: #8a7c67;display:block;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);padding-top:env(safe-area-inset-top);background-color:#000000bf}.app-header.open-menu{z-index:1001}.app-header .active .app-ui-icon{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.mobile-menu-panel{display:block;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);background-color:#000000bf;left:0!important;right:0!important}.mobile-menu-panel .active .app-ui-icon{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.text-header{color:var(--header-text-color)}.beta-badge{background-color:var(--header-text-color);padding:3px;font-size:80%;transform:translate(60%);top:5px;pointer-events:none} -`],encapsulation:2});let s=e;return s})();var _s=(()=>{let e=class e{constructor(){this._environment=C(he).getSettings().useBeta?"beta":"live",this._http=C(Ge)}get(){return this._http.get(`assets/${this._environment}/version.json`)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function Nr(s,e){s&1&&T(0),s&2&&Tn(" ",e.version,` -`)}function Rr(s,e){s&1&&T(0,` loading -`)}var vs=(()=>{let e=class e{constructor(){this.uiIcon=de,this.version$=C(_s).get(),this._setCssClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=q({type:e,selectors:[["app-footer"]],hostVars:2,hostBindings:function(n,r){n&2&&le("app-footer",r._setCssClass)},decls:13,vars:4,consts:[[1,"backdrop-blur-xl","px-safe","pt-4","pb-safe-or-4","text-white/70","items-center","justify-center","flex","gap-2","flex-wrap"],[1,"!text-gifting/80","!w-5","!h-5",3,"uiIcon"],["routerLink","/about",1,"text-accent"],["fragment","support","routerLink","/about",1,"text-accent"]],template:function(n,r){if(n&1&&(w(0,"footer",0),T(1," Made with "),j(2,"app-ui-icon",1),T(3," by Koenig. "),w(4,"a",2),T(5,"About Coral Guide"),v(),T(6," - "),w(7,"a",3),T(8,"Support Coral Guide"),v(),T(9," - Data from game version (steam): "),B(10,Nr,1,1),$e(11,"async"),B(12,Rr,1,0),v()),n&2){let o;k(2),W("uiIcon",r.uiIcon.LOVE),k(8),ce((o=qe(11,2,r.version$))?10:12,o)}},dependencies:[It,Rt,Ue],styles:[`.app-footer footer{background-color:#000000bf;min-height:var(--cg-min-footer-height)} -`],encapsulation:2});let s=e;return s})();function xr(s,e){s&1&&j(0,"router-outlet")}function Fr(s,e){s&1&&j(0,"mat-spinner",1)}var bs=(()=>{var e,t,i,n;let r=class r{constructor(){se(this,e,C(Pn));se(this,t,C(es));se(this,i,C(Ft));se(this,n,C(he));C(qn).read(),x(this,n).getSettings().disableChangelogs||x(this,t).getLatestChangelog().subscribe({next:a=>{if(a.version===x(this,t).getLatestSeen())return;x(this,i).open(ps,{data:{changelog:a},hasBackdrop:!0,width:"800px"}).afterClosed().subscribe({next:()=>{x(this,t).setLatestSeen(a)}})}}),this.prefetchData$=rn([x(this,e).fetchItems$(),x(this,e).fetchTagBasedItems$(),x(this,e).fetchProcessorMapping$(),x(this,e).fetchCookingUtensilMapping$()])}};e=new WeakMap,t=new WeakMap,i=new WeakMap,n=new WeakMap,r.\u0275fac=function(l){return new(l||r)},r.\u0275cmp=q({type:r,selectors:[["app-root"]],decls:6,vars:3,consts:[[1,"flex-grow-0","flex-shrink-0"],[1,"text-white","mx-auto","my-5"]],template:function(l,c){if(l&1&&(j(0,"app-header",0),w(1,"main"),B(2,xr,1,0,"router-outlet"),$e(3,"async"),B(4,Fr,1,0,"mat-spinner",1),v(),j(5,"app-footer",0)),l&2){let d;k(2),ce((d=qe(3,1,c.prefetchData$))?2:4,d)}},dependencies:[Un,ys,vs,Hn,Ue],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}"]});let s=r;return s})();var Es=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=re({imports:[St,Ye,Nt]});let s=e;return s})();function Ss(s){return new S(3e3,!1)}function Br(){return new S(3100,!1)}function jr(){return new S(3101,!1)}function zr(s){return new S(3001,!1)}function Vr(s){return new S(3003,!1)}function Kr(s){return new S(3004,!1)}function $r(s,e){return new S(3005,!1)}function qr(){return new S(3006,!1)}function Qr(){return new S(3007,!1)}function Ur(s,e){return new S(3008,!1)}function Gr(s){return new S(3002,!1)}function Wr(s,e,t,i,n){return new S(3010,!1)}function Hr(){return new S(3011,!1)}function Yr(){return new S(3012,!1)}function Zr(){return new S(3200,!1)}function Xr(){return new S(3202,!1)}function Jr(){return new S(3013,!1)}function eo(s){return new S(3014,!1)}function to(s){return new S(3015,!1)}function io(s){return new S(3016,!1)}function no(s,e){return new S(3404,!1)}function so(s){return new S(3502,!1)}function ro(s){return new S(3503,!1)}function oo(){return new S(3300,!1)}function ao(s){return new S(3504,!1)}function lo(s){return new S(3301,!1)}function co(s,e){return new S(3302,!1)}function ho(s){return new S(3303,!1)}function uo(s,e){return new S(3400,!1)}function mo(s){return new S(3401,!1)}function po(s){return new S(3402,!1)}function fo(s,e){return new S(3505,!1)}function Ee(s){switch(s.length){case 0:return new He;case 1:return s[0];default:return new pi(s)}}function xs(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=s.normalizePropertyName(m,n),g){case Mt:g=t.get(y);break;case ue:g=i.get(y);break;default:g=s.normalizeStyleValue(y,m,g,n);break}h.set(m,g)}),d||r.push(h),a=h,o=c}),n.length)throw so(n);return r}function $i(s,e,t,i){switch(e){case"start":s.onStart(()=>i(t&&Ei(t,"start",s)));break;case"done":s.onDone(()=>i(t&&Ei(t,"done",s)));break;case"destroy":s.onDestroy(()=>i(t&&Ei(t,"destroy",s)));break}}function Ei(s,e,t){let i=t.totalTime,n=!!t.disabled,r=qi(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function qi(s,e,t,i,n="",r=0,o){return{element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function Y(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function ws(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return[t,i]}var go=typeof document>"u"?null:document.documentElement;function Qi(s){let e=s.parentNode||s.host||null;return e===go?null:e}function yo(s){return s.substring(1,6)=="ebkit"}var ke=null,Ts=!1;function _o(s){ke||(ke=vo()||{},Ts=ke.style?"WebkitAppearance"in ke.style:!1);let e=!0;return ke.style&&!yo(s)&&(e=s in ke.style,!e&&Ts&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in ke.style)),e}function vo(){return typeof document<"u"?document.body:null}function Fs(s,e){for(;e;){if(e===s)return!0;e=Qi(e)}return!1}function Bs(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var Ui=(()=>{let e=class e{validateStyleProperty(i){return _o(i)}containsElement(i,n){return Fs(i,n)}getParentElement(i){return Qi(i)}query(i,n,r){return Bs(i,n,r)}computeStyle(i,n,r){return r||""}animate(i,n,r,o,a,l=[],c){return new He(r,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac});let s=e;return s})(),Yi=class Yi{};Yi.NOOP=new Ui;var Pe=Yi,Ie=class{};var bo=1e3,js="{{",Eo="}}",zs="ng-enter",Di="ng-leave",Bt="ng-trigger",$t=".ng-trigger",Cs="ng-animating",ki=".ng-animating";function fe(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Oi(parseFloat(e[1]),e[2])}function Oi(s,e){switch(e){case"s":return s*bo;default:return s}}function qt(s,e,t){return s.hasOwnProperty("duration")?s:So(s,e,t)}function So(s,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,o="";if(typeof s=="string"){let a=s.match(i);if(a===null)return e.push(Ss(s)),{duration:0,delay:0,easing:""};n=Oi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Oi(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else n=s;if(!t){let a=!1,l=e.length;n<0&&(e.push(Br()),a=!0),r<0&&(e.push(jr()),a=!0),a&&e.splice(l,0,Ss(s))}return{duration:n,delay:r,easing:o}}function wo(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function me(s,e,t){e.forEach((i,n)=>{let r=Gi(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i})}function Me(s,e){e.forEach((t,i)=>{let n=Gi(i);s.style[n]=""})}function ct(s){return Array.isArray(s)?s.length==1?s[0]:zn(s):s}function To(s,e,t){let i=e.params||{},n=Vs(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push(zr(r))})}var Mi=new RegExp(`${js}\\s*(.+?)\\s*${Eo}`,"g");function Vs(s){let e=[];if(typeof s=="string"){let t;for(;t=Mi.exec(s);)e.push(t[1]);Mi.lastIndex=0}return e}function ht(s,e,t){let i=`${s}`,n=i.replace(Mi,(r,o)=>{let a=e[o];return a==null&&(t.push(Vr(o)),a=""),a.toString()});return n==i?s:n}var Co=/-+([a-z0-9])/g;function Gi(s){return s.replace(Co,(...e)=>e[1].toUpperCase())}function Ao(s,e){return s===0||e===0}function Do(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r)}),n.length)for(let r=1;ro.set(a,Wi(s,a)))}}return e}function H(s,e,t){switch(e.type){case b.Trigger:return s.visitTrigger(e,t);case b.State:return s.visitState(e,t);case b.Transition:return s.visitTransition(e,t);case b.Sequence:return s.visitSequence(e,t);case b.Group:return s.visitGroup(e,t);case b.Animate:return s.visitAnimate(e,t);case b.Keyframes:return s.visitKeyframes(e,t);case b.Style:return s.visitStyle(e,t);case b.Reference:return s.visitReference(e,t);case b.AnimateChild:return s.visitAnimateChild(e,t);case b.AnimateRef:return s.visitAnimateRef(e,t);case b.Query:return s.visitQuery(e,t);case b.Stagger:return s.visitStagger(e,t);default:throw Kr(e.type)}}function Wi(s,e){return window.getComputedStyle(s)[e]}var ko=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"]),Qt=class extends Ie{normalizePropertyName(e,t){return Gi(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(ko.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push($r(e,i))}return o+r}};var Ut="*";function Oo(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>Mo(i,t,e)):t.push(s),t}function Mo(s,e,t){if(s[0]==":"){let l=Po(s,t);if(typeof l=="function"){e.push(l);return}s=l}let i=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(to(s)),e;let n=i[1],r=i[2],o=i[3];e.push(As(n,o));let a=n==Ut&&o==Ut;r[0]=="<"&&!a&&e.push(As(o,n))}function Po(s,e){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var jt=new Set(["true","1"]),zt=new Set(["false","0"]);function As(s,e){let t=jt.has(s)||zt.has(s),i=jt.has(e)||zt.has(e);return(n,r)=>{let o=s==Ut||s==n,a=e==Ut||e==r;return!o&&t&&typeof n=="boolean"&&(o=n?jt.has(s):zt.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?jt.has(e):zt.has(e)),o&&a}}var Ks=":self",Io=new RegExp(`s*${Ks}s*,?`,"g");function $s(s,e,t,i){return new Pi(s).build(e,t,i)}var Ds="",Pi=class{constructor(e){this._driver=e}build(e,t,i){let n=new Ii(t);return this._resetContextStyleTimingState(n),H(this,ct(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ds,e.collectedStyles=new Map,e.collectedStyles.set(Ds,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(qr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==b.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l)}else t.errors.push(Qr())}),{type:b.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Vs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ur(e.name,[...r.values()]))}return{type:b.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=H(this,ct(e.animation),t),n=Oo(e.expr,t.errors);return{type:b.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Oe(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(i=>H(this,i,t)),options:Oe(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=i;let a=H(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:b.Group,steps:r,options:Oe(e.options)}}visitAnimate(e,t){let i=xo(e.timings,t.errors);t.currentAnimateTimings=i;let n,r=e.styles?e.styles:mi({});if(r.type==b.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=mi(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:b.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===ue?i.push(a):t.errors.push(Gr(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(js)>=0){r=!0;break}}}),{type:b.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=n&&r>=d.startTime&&n<=d.endTime&&(t.errors.push(Wr(l,d.startTime,d.endTime,r,n)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:n}),t.options&&To(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Hr()),i;let n=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(P=>{let N=this._makeStyleAst(P,t),V=N.offset!=null?N.offset:Lo(N.styles),L=0;return V!=null&&(r++,L=N.offset=V),l=l||L<0||L>1,a=a||L0&&r{let V=_>0?N==y?1:_*N:o[N],L=V*D;t.currentTime=m+g.delay+L,g.duration=L,this._validateStyleAst(P,t),P.offset=V,i.styles.push(P)}),i}visitReference(e,t){return{type:b.Reference,animation:H(this,ct(e.animation),t),options:Oe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:Oe(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:Oe(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=No(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,Y(t.collectedStyles,t.currentQuerySelector,new Map);let a=H(this,ct(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:b.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Oe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Jr());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:qt(e.timings,t.errors,!0);return{type:b.Stagger,animation:H(this,ct(e.animation),t),timings:i,options:null}}};function No(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Ks);return e&&(s=s.replace(Io,"")),s=s.replace(/@\*/g,$t).replace(/@\w+/g,t=>$t+"-"+t.slice(1)).replace(/:animating/g,ki),[s,e]}function Ro(s){return s?I({},s):null}var Ii=class{constructor(e){this.errors=e,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 Lo(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function xo(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=qt(s,e).duration;return Si(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Si(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=qt(t,e);return Si(n.duration,n.delay,n.easing)}function Oe(s){return s?(s=I({},s),s.params&&(s.params=Ro(s.params))):s={},s}function Si(s,e,t){return{duration:s,delay:e,easing:t}}function Hi(s,e,t,i,n,r,o=null,a=!1){return{type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ut=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Fo=1,Bo=":enter",jo=new RegExp(Bo,"g"),zo=":leave",Vo=new RegExp(zo,"g");function qs(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new Ni().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var Ni=class{buildKeyframes(e,t,i,n,r,o,a,l,c,d=[]){c=c||new ut;let h=new Ri(e,t,c,n,r,d,[]);h.options=l;let _=l.delay?fe(l.delay):0;h.currentTimeline.delayNextStep(_),h.currentTimeline.setStyles([o],null,h.errors,l),H(this,i,h);let y=h.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let D=y[g];if(D.element===t){m=D;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[Hi(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:fe(ht(r,n?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?fe(i.duration):null,a=i.delay!=null?fe(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==b.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Gt);let o=fe(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>H(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?fe(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),H(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?ht(i,t.params,t.errors):i;return qt(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r=e.style;r.type==b.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?fe(n.delay):0;r&&(t.previousNode.type===b.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let h=t.createSubContext(e.options,c);r&&h.delayNextStep(r),c===t.element&&(l=h.currentTimeline),H(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let _=h.currentTimeline.currentTime;o=Math.max(o,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;H(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-h+(n.startTime-i.currentTimeline.startTime)}},Gt={},Ri=class s{constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Wt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=fe(i.duration)),i.delay!=null&&(n.delay=fe(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ht(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Gt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new Li(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(jo,"."+this._enterClassName),e=e.replace(Vo,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(eo(t)),a}},Wt=class s{constructor(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||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+=Fo,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||ue),this._currentKeyframe.set(t,ue);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Ko(e,this._globalTimelineStyles);for(let[a,l]of o){let c=ht(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ue),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,h)=>{d===Mt?e.add(h):d===ue&&t.add(h)}),i||c.set("offset",l/this.duration),n.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return Hi(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}},Li=class extends Wt{constructor(e,t,i,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",ks(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let _=new Map(e[h]),y=_.get("offset"),m=t+y*i;_.set("offset",ks(m/o)),r.push(_)}i=o,t=0,n="",e=r}return Hi(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function ks(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Ko(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,ue)}else for(let[r,o]of n)t.set(r,o)}),t}function Os(s,e,t,i,n,r,o,a,l,c,d,h,_){return{type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:_}}var wi={},Ht=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return $o(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,d){let h=[],_=this.ast.options&&this.ast.options.params||wi,y=a&&a.params||wi,m=this.buildStyles(i,y,h),g=l&&l.params||wi,D=this.buildStyles(n,g,h),P=new Set,N=new Map,V=new Map,L=n==="void",Ne={params:Qs(g,_),delay:this.ast.options?.delay},ie=d?[]:qs(e,t,this.ast.animation,r,o,m,D,Ne,c,h),K=0;return ie.forEach($=>{K=Math.max($.duration+$.delay,K)}),h.length?Os(t,this._triggerName,i,n,L,m,D,[],[],N,V,K,h):(ie.forEach($=>{let Se=$.element,Re=Y(N,Se,new Set);$.preStyleProps.forEach(we=>Re.add(we));let Zi=Y(V,Se,new Set);$.postStyleProps.forEach(we=>Zi.add(we)),Se!==t&&P.add(Se)}),Os(t,this._triggerName,i,n,L,m,D,ie,[...P.values()],N,V,K))}};function $o(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function Qs(s,e){let t=I({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var xi=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=Qs(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ht(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function qo(s,e,t){return new Fi(s,e,t)}var Fi=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new xi(n.style,r,i))}),Ms(this.states,"true","1"),Ms(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Ht(e,n,this.states))}),this.fallbackTransition=Qo(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Qo(s,e,t){let i=[(o,a)=>!0],n={type:b.Sequence,steps:[],options:null},r={type:b.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new Ht(s,r,e)}function Ms(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t))}var Uo=new ut,Bi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],n=[],r=$s(this._driver,t,i,n);if(i.length)throw ro(i);n.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,i){let n=e.element,r=xs(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=qs(this._driver,t,r,zs,Di,new Map,new Map,i,Uo,n),o.forEach(d=>{let h=Y(a,d.element,new Map);d.postStyleProps.forEach(_=>h.set(_,null))})):(n.push(oo()),o=[]),n.length)throw ao(n);a.forEach((d,h)=>{d.forEach((_,y)=>{d.set(y,this._driver.computeStyle(h,y,ue))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=Ee(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw lo(e);return t}listen(e,t,i,n){let r=qi(t,"","","");return $i(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Ps="ng-animate-queued",Go=".ng-animate-queued",Ti="ng-animate-disabled",Wo=".ng-animate-disabled",Ho="ng-star-inserted",Yo=".ng-star-inserted",Zo=[],Us={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},te="__ng_removed",mt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=ea(n),i){let r=e,{value:o}=r,a=tn(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},dt="void",Ci=new mt(dt),ji=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,X(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw co(i,t);if(i==null||i.length==0)throw ho(t);if(!ta(i))throw uo(i,t);let r=Y(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=Y(this._engine.statesByElement,e,new Map);return a.has(t)||(X(e,Bt),X(e,Bt+"-"+t),a.set(t,Ci)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw mo(e);return t}trigger(e,t,i,n=!0){let r=this._getTrigger(t),o=new pt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(X(e,Bt),X(e,Bt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new mt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Ci),!(c.value===dt)&&l.value===c.value){if(!sa(l.params,c.params)){let g=[],D=r.matchStyles(l.value,l.params,g),P=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Me(e,D),me(e,P)})}return}let _=Y(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!y){if(!n)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(X(e,Ps),o.onStart(()=>{Ze(e,Ps)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let D=this._engine.playersByElement.get(e);if(D){let P=D.indexOf(o);P>=0&&D.splice(P,1)}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,$t,!0);i.forEach(n=>{if(n[te])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,dt,n);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Ee(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Ci,d=new mt(dt),h=new pt(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[te];(!r||r===Us)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){X(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=qi(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,$i(i.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},zi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(n,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new ji(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,n){if(Vt(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!Vt(t))return;let r=t[te];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),X(e,Ti)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ze(e,Ti))}removeNode(e,t,i){if(Vt(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[te]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,n,r){return Vt(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,$t,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ki,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ee(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[te];if(t&&t.setForRemoval){if(e[te]=Us,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ti)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Wo,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ee(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw po(e)}_flushAnimations(e,t){let i=new ut,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Go,!0);for(let f=0;f{let f=zs+g++;m.set(p,f),u.forEach(E=>X(E,f))});let D=[],P=new Set,N=new Set;for(let u=0;uP.add(E)):N.add(p))}let V=new Map,L=Rs(_,Array.from(P));L.forEach((u,p)=>{let f=Di+g++;V.set(p,f),u.forEach(E=>X(E,f))}),e.push(()=>{y.forEach((u,p)=>{let f=m.get(p);u.forEach(E=>Ze(E,f))}),L.forEach((u,p)=>{let f=V.get(p);u.forEach(E=>Ze(E,f))}),D.forEach(u=>{this.processLeaveNode(u)})});let Ne=[],ie=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(t).forEach(f=>{let E=f.player,R=f.element;if(Ne.push(E),this.collectedEnterElements.length){let z=R[te];if(z&&z.setForMove){if(z.previousTriggersValues&&z.previousTriggersValues.has(f.triggerName)){let Te=z.previousTriggersValues.get(f.triggerName),Z=this.statesByElement.get(f.element);if(Z&&Z.has(f.triggerName)){let yt=Z.get(f.triggerName);yt.value=Te,Z.set(f.triggerName,yt)}}E.destroy();return}}let ne=!h||!this.driver.containsElement(h,R),U=V.get(R),ge=m.get(R),O=this._buildInstruction(f,i,ge,U,ne);if(O.errors&&O.errors.length){ie.push(O);return}if(ne){E.onStart(()=>Me(R,O.fromStyles)),E.onDestroy(()=>me(R,O.toStyles)),n.push(E);return}if(f.isFallbackTransition){E.onStart(()=>Me(R,O.fromStyles)),E.onDestroy(()=>me(R,O.toStyles)),n.push(E);return}let en=[];O.timelines.forEach(z=>{z.stretchStartingKeyframe=!0,this.disabledNodes.has(z.element)||en.push(z)}),O.timelines=en,i.append(R,O.timelines);let lr={instruction:O,player:E,element:R};o.push(lr),O.queriedElements.forEach(z=>Y(a,z,[]).push(E)),O.preStyleProps.forEach((z,Te)=>{if(z.size){let Z=l.get(Te);Z||l.set(Te,Z=new Set),z.forEach((yt,ti)=>Z.add(ti))}}),O.postStyleProps.forEach((z,Te)=>{let Z=c.get(Te);Z||c.set(Te,Z=new Set),z.forEach((yt,ti)=>Z.add(ti))})});if(ie.length){let u=[];ie.forEach(p=>{u.push(fo(p.triggerName,p.errors))}),Ne.forEach(p=>p.destroy()),this.reportError(u)}let K=new Map,$=new Map;o.forEach(u=>{let p=u.element;i.has(p)&&($.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,K))}),n.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(E=>{Y(K,p,[]).push(E),E.destroy()})});let Se=D.filter(u=>Ls(u,l,c)),Re=new Map;Ns(Re,this.driver,N,c,ue).forEach(u=>{Ls(u,l,c)&&Se.push(u)});let we=new Map;y.forEach((u,p)=>{Ns(we,this.driver,new Set(u),l,Mt)}),Se.forEach(u=>{let p=Re.get(u),f=we.get(u);Re.set(u,new Map([...p?.entries()??[],...f?.entries()??[]]))});let ei=[],Xi=[],Ji={};o.forEach(u=>{let{element:p,player:f,instruction:E}=u;if(i.has(p)){if(d.has(p)){f.onDestroy(()=>me(p,E.toStyles)),f.disabled=!0,f.overrideTotalTime(E.totalTime),n.push(f);return}let R=Ji;if($.size>1){let U=p,ge=[];for(;U=U.parentNode;){let O=$.get(U);if(O){R=O;break}ge.push(U)}ge.forEach(O=>$.set(O,R))}let ne=this._buildAnimation(f.namespaceId,E,K,r,we,Re);if(f.setRealPlayer(ne),R===Ji)ei.push(f);else{let U=this.playersByElement.get(R);U&&U.length&&(f.parentPlayer=Ee(U)),n.push(f)}}else Me(p,E.fromStyles),f.onDestroy(()=>me(p,E.toStyles)),Xi.push(f),d.has(p)&&n.push(f)}),Xi.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let f=Ee(p);u.setRealPlayer(f)}}),n.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u!ne.destroyed);R.length?ia(this,p,R):this.processLeaveNode(p)}return D.length=0,ei.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),ei}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==dt;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,d=c!==r,h=Y(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),h.push(y)})}Me(r,t.fromStyles)}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,h=new Set,_=t.timelines.map(m=>{let g=m.element;d.add(g);let D=g[te];if(D&&D.removedBeforeQueried)return new He(m.duration,m.delay);let P=g!==l,N=na((i.get(g)||Zo).map(K=>K.getRealPlayer())).filter(K=>{let $=K;return $.element?$.element===g:!1}),V=r.get(g),L=o.get(g),Ne=xs(this._normalizer,m.keyframes,V,L),ie=this._buildPlayer(m,Ne,N);if(m.subTimeline&&n&&h.add(g),P){let K=new pt(e,a,g);K.setRealPlayer(ie),c.push(K)}return ie});c.forEach(m=>{Y(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Jo(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>X(m,Cs));let y=Ee(_);return y.onDestroy(()=>{d.forEach(m=>Ze(m,Cs)),me(l,t.toStyles)}),h.forEach(m=>{Y(n,m,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new He(e.duration,e.delay)}},pt=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new He,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>$i(e,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Y(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Jo(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&s.delete(e)}return i}function ea(s){return s??null}function Vt(s){return s&&s.nodeType===1}function ta(s){return s=="start"||s=="done"}function Is(s,e){let t=s.style.display;return s.style.display=e??"none",t}function Ns(s,e,t,i,n){let r=[];t.forEach(l=>r.push(Is(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let _=e.computeStyle(c,h,n);d.set(h,_),(!_||_.length==0)&&(c[te]=Xo,o.push(c))}),s.set(c,d)});let a=0;return t.forEach(l=>Is(l,r[a++])),o}function Rs(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function X(s,e){s.classList?.add(e)}function Ze(s,e){s.classList?.remove(e)}function ia(s,e,t){Ee(t).onDone(()=>s.processLeaveNode(e))}function na(s){let e=[];return Gs(s,e),e}function Gs(s,e){for(let t=0;tn.add(r)):e.set(s,i),t.delete(s),!0}var Je=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(n,r)=>{},this._transitionEngine=new zi(e.body,t,i),this._timelineEngine=new Bi(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],d=$s(this._driver,r,l,c);if(l.length)throw no(n,l);c.length&&void 0,a=qo(n,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=ws(i),a=n;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=ws(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ra(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Ai(e[0]),e.length>1&&(i=Ai(e[e.length-1]))):e instanceof Map&&(t=Ai(e)),t||i?new Vi(s,t,i):null}var Xe=class Xe{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let n=Xe.initialStylesByElement.get(e);n||Xe.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&me(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(me(this._element,this._initialStyles),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Xe.initialStylesByElement.delete(this._element),this._startStyles&&(Me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Me(this._element,this._endStyles),this._endStyles=null),me(this._element,this._initialStyles),this._state=3)}};Xe.initialStylesByElement=new WeakMap;var Vi=Xe;function Ai(s){let e=null;return s.forEach((t,i)=>{oa(i)&&(e=e||new Map,e.set(i,t))}),e}function oa(s){return s==="display"||s==="position"}var Yt=class{constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:Wi(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Zt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Fs(e,t)}getParentElement(e){return Qi(e)}query(e,t,i){return Bs(e,t,i)}computeStyle(e,t,i){return Wi(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(y=>y instanceof Yt);Ao(i,n)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m))});let h=wo(t).map(y=>new Map(y));h=Do(e,h,c);let _=ra(e,h);return new Yt(e,h,l,_)}};var Kt="@",Ws="@.disabled",Xt=class{constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Kt&&t==Ws?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Ki=class extends Xt{constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Kt?t.charAt(1)=="."&&t==Ws?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Kt){let n=aa(e),r=t.slice(1),o="";return r.charAt(0)!=Kt&&([r,o]=la(r)),this.engine.listen(this.namespaceId,n,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function aa(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}function la(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return[t,i]}var Jt=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(n,r)=>{let o=r?.parentNode(n);o&&r.removeChild(o,n)}}createRenderer(e,t){let i="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let h=()=>c.delete(n);d=new Xt(i,n,this.engine,h),c.set(n,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Ki(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var da=(()=>{let e=class e extends Je{constructor(i,n,r){super(i,n,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(Qe),M(Pe),M(Ie))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let s=e;return s})();function ha(){return new Qt}function ua(s,e,t){return new Jt(s,e,t)}var Ys=[{provide:Ie,useFactory:ha},{provide:Je,useClass:da},{provide:yn,useFactory:ua,deps:[kn,Je,_e]}],Hs=[{provide:Pe,useFactory:()=>new Zt},{provide:je,useValue:"BrowserAnimations"},...Ys],ma=[{provide:Pe,useClass:Ui},{provide:je,useValue:"NoopAnimations"},...Ys],Zs=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?ma:Hs}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=re({providers:Hs,imports:[wt]});let s=e;return s})();var Xs=(()=>{let e=class e extends Pt{constructor(){super(...arguments),this.title=C(Mn)}updateTitle(i){let n=this.buildTitle(i);n!==void 0?this.title.setTitle(`${n} - Coral Guide`):this.title.setTitle("Coral Guide")}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=nt(e)))(r||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function pa(s,e){s&1&&j(0,"app-changelog",1),s&2&&W("markdown",e)}var Js=(()=>{let e=class e{constructor(){this.markdown$=C(Ge).get("CHANGELOG.md",{responseType:"text"}),this._setCssClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=q({type:e,selectors:[["app-start"]],hostVars:2,hostBindings:function(n,r){n&2&&le("app-start",r._setCssClass)},standalone:!0,features:[ve],decls:18,vars:3,consts:[[1,"prose","lg:prose-xl"],[3,"markdown"]],template:function(n,r){if(n&1&&(w(0,"app-card")(1,"div",0)(2,"h1"),T(3,"Hello townie!"),v(),w(4,"p"),T(5," This project is a fan-made project to help "),w(6,"strong"),T(7,"you"),v(),T(8," enjoying coral island as much as possible. In order to do this, this app contains a lot of useful information at hand. Those information are either data mined or collected from the community! "),v(),w(9,"p")(10,"strong"),T(11," This means this app contains spoilers and information that might not be implemented yet or never will be! "),v()(),w(12,"p"),T(13," If that's ok for you, proceed your journey and (hopefully) enjoy what I've built :) "),v(),w(14,"p"),T(15," \u2010 Koenig "),v(),B(16,pa,1,1,"app-changelog",1),$e(17,"async"),v()()),n&2){let o;k(16),ce((o=qe(17,1,r.markdown$))?16:-1,o)}},dependencies:[St,Ue,Xn,Ye,Yn,Lt],styles:[`.app-start{width:100%}@media (min-width: 640px){.app-start{max-width:640px}}@media (min-width: 768px){.app-start{max-width:768px}}@media (min-width: 1024px){.app-start{max-width:1024px}}@media (min-width: 1280px){.app-start{max-width:1280px}}@media (min-width: 1536px){.app-start{max-width:1536px}}.app-start{margin-left:auto;margin-right:auto;margin-top:2.5rem;margin-bottom:2.5rem;display:block} -`],encapsulation:2});let s=e;return s})();var gt="Service workers are disabled or not supported by this browser";function fa(s){return Ae(()=>sn(new Error(s)))}var et=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=fa(gt);else{let i=ii(e,"controllerchange").pipe(Ce(()=>e.controller)),n=Ae(()=>ye(e.controller)),r=on(n,i);this.worker=r.pipe(G(d=>!!d)),this.registration=this.worker.pipe(it(()=>e.getRegistration()));let c=ii(e,"message").pipe(Ce(d=>d.data)).pipe(G(d=>d&&d.type)).pipe(ln());c.connect(),this.events=c}}postMessage(e,t){return this.worker.pipe(ee(1),cn(i=>{i.postMessage(I({action:e},t))})).toPromise().then(()=>{})}postMessageWithOperation(e,t,i){let n=this.waitForOperationCompleted(i),r=this.postMessage(e,t);return Promise.all([r,n]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let t;return typeof e=="string"?t=i=>i.type===e:t=i=>e.includes(i.type),this.events.pipe(G(t))}nextEventOfType(e){return this.eventsOfType(e).pipe(ee(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(G(t=>t.nonce===e),ee(1),Ce(t=>{if(t.result!==void 0)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},nr=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new J,!i.isEnabled){this.messages=xe,this.notificationClicks=xe,this.subscription=xe;return}this.messages=this.sw.eventsOfType("PUSH").pipe(Ce(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Ce(r=>r.data)),this.pushManager=this.sw.registration.pipe(Ce(r=>r.pushManager));let n=this.pushManager.pipe(it(r=>r.getSubscription()));this.subscription=tt(n,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(gt));let n={userVisibleOnly:!0},r=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(r.length));for(let a=0;aa.subscribe(n)),ee(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(gt));let i=n=>{if(n===null)throw new Error("Not subscribed to push notifications.");return n.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(ee(1),it(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(n){return new(n||e)(M(et))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let s=e;return s})(),sr=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=xe,this.unrecoverable=xe;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(gt));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(gt));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(n){return new(n||e)(M(et))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let s=e;return s})();var er=new oe("");function ga(s,e,t,i){return()=>{if(!(ci(i)&&"serviceWorker"in navigator&&t.enabled!==!1))return;let n=s.get(_e),r=s.get(li);n.runOutsideAngular(()=>{let a=navigator.serviceWorker,l=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",l),r.onDestroy(()=>{a.removeEventListener("controllerchange",l)})});let o;if(typeof t.registrationStrategy=="function")o=t.registrationStrategy();else{let[a,...l]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=ye(null);break;case"registerWithDelay":o=tr(+l[0]||0);break;case"registerWhenStable":o=l[0]?tt(ir(s),tr(+l[0])):ir(s);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}n.runOutsideAngular(()=>o.pipe(ee(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:t.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function tr(s){return ye(null).pipe(an(s))}function ir(s){return s.get(li).isStable.pipe(G(t=>t))}function ya(s,e){return new et(ci(e)&&s.enabled!==!1?navigator.serviceWorker:void 0)}var ft=class{};function _a(s,e={}){return hn([nr,sr,{provide:er,useValue:s},{provide:ft,useValue:e},{provide:et,useFactory:ya,deps:[ft,ni]},{provide:Et,useFactory:ga,deps:[pe,er,ft,ni],multi:!0}])}var rr=(()=>{let e=class e{static register(i,n={}){return{ngModule:e,providers:[_a(i,n)]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=re({providers:[nr,sr]});let s=e;return s})();var va={scrollPositionRestoration:"disabled",anchorScrolling:"enabled",scrollOffset:[0,64],initialNavigation:"enabledBlocking",bindToComponentInputs:!0},ba=[{path:"",pathMatch:"full",component:Js},{path:"journal",loadChildren:()=>import("./chunk-R4DTAK4N.js").then(s=>s.JournalModule)},{path:"database",pathMatch:"full",redirectTo:"database/"},{path:"database/:itemId",loadChildren:()=>import("./chunk-4Y6KDJTU.js").then(s=>s.DatabaseModule)},{path:"crafting",loadChildren:()=>import("./chunk-IBM5K5MG.js").then(s=>s.CraftingModule)},{path:"people",pathMatch:"prefix",redirectTo:"npcs"},{path:"npcs",loadChildren:()=>import("./chunk-AQDICVYK.js").then(s=>s.NPCsModule)},{path:"locations",loadChildren:()=>import("./chunk-YPN75YQC.js").then(s=>s.LocationsModule)},{path:"settings",pathMatch:"full",redirectTo:"my/settings",data:{redirected:!0}},{path:"checklist",pathMatch:"prefix",redirectTo:"my/to-do",data:{redirected:!0}},{path:"only-in-beta",loadComponent:()=>import("./chunk-YTOGTTLZ.js").then(s=>s.OnlyInBetaComponent)},{path:"my",loadChildren:()=>import("./chunk-G7CQEMPJ.js").then(s=>s.MyCoralGuideModule)},{path:"about",loadComponent:()=>import("./chunk-MCNPD5L3.js").then(s=>s.AboutComponent)}],or=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e,bootstrap:[bs]}),e.\u0275inj=re({providers:[{provide:Et,multi:!0,useFactory:(i,n)=>(i||n.saveSettings(Le(I({},n.getSettings()),{useBeta:!1})),()=>ye()),deps:[[new dn,Jn],he]},{provide:jn,useValue:{disabled:!0}},{provide:Zn,useValue:{animationDuration:"0",stretchTabs:!1}},{provide:Pt,useClass:Xs}],imports:[wt,Zs,Nt.forRoot(ba,va),Es,Ye,Kn.forRoot(),rr.register("ngsw-worker.js",{enabled:!Cn(),registrationStrategy:"registerWhenStable:30000"}),Lt]});let s=e;return s})();var ar={production:!0};ar.production&&void 0;On().bootstrapModule(or).catch(s=>console.error(s)); diff --git a/main-UQS6SDDF.js b/main-UQS6SDDF.js new file mode 100644 index 0000000000..bcb4821e13 --- /dev/null +++ b/main-UQS6SDDF.js @@ -0,0 +1,5 @@ +import{a as ns}from"./chunk-YKSJU422.js";import{a as Un}from"./chunk-5Y7JXUU2.js";import{a as qn,b as Qn,c as is}from"./chunk-BJE36J3T.js";import{a as Jn,b as Ft}from"./chunk-43NKEY2U.js";import{$a as Sn,Aa as et,B as ln,Ba as G,Bc as Tt,Cc as ui,D as pt,Da as le,E as Xe,Ec as Fn,Fb as $e,Fc as mi,G as cn,Ga as ye,Gb as kn,Gc as xn,H as S,Ha as ri,Hc as Bn,Hd as Gn,Ia as oi,Ic as tt,Id as Wn,J as V,Ja as ai,Jc as Ct,K as re,Ka as w,Kb as bt,Kc as jn,L as oe,La as v,Lc as At,Ld as Hn,M,Ma as x,Mc as qe,Md as Pt,N as T,Nc as be,Nd as Yn,O as dn,Oc as zn,Od as It,P as $,Pc as Vn,Pd as Zn,Q as ae,Qa as bn,Qb as Et,Qd as Nt,R as xe,Ra as li,Rb as di,Rc as Dt,Rd as Rt,S as hn,Sa as Ve,Sc as kt,Sd as Xn,T as un,Ta as ft,Tb as St,Tc as Ot,Td as Lt,Ub as On,V as mn,Vb as Mn,W as pn,Wb as Pn,X as fn,Xb as In,Xc as Kn,Yb as wt,Yd as es,Zb as Nn,_ as Je,_a as En,a as I,aa as ue,ab as wn,b as Le,bd as b,c as tn,cc as ce,cd as de,d as F,db as Tn,e as se,ea as Be,eb as C,f as nn,fa as gn,fb as Ke,fd as $n,ga as si,gb as Cn,gd as pi,h as J,ha as je,id as Qe,j as fe,jd as fi,k as sn,kd as Mt,l as Ce,la as k,m as rn,ma as A,n as on,nb as _e,o as Ae,oa as yn,ob as gt,pa as _n,q as ni,qa as ge,rb as yt,s as Ze,sb as _t,sc as ve,sf as Ue,t as Fe,u as U,ua as ze,uc as Rn,ue as ts,va as vn,vb as vt,wb as ci,wc as hi,x as ee,xa as q,xb as An,yb as Dn,yc as Ln,z as an}from"./chunk-PYTDIKHQ.js";var ss=(()=>{var e,t;let i=class i{constructor(){se(this,e,T(St));se(this,t,"latest-changelogs")}getLatestChangelog(){return F(this,e).get("/assets/latest-changelog.md")}setLatestSeen(r){localStorage.setItem(F(this,t),JSON.stringify({version:r.version}))}getLatestSeen(){let r=localStorage.getItem(F(this,t));return r?JSON.parse(r).version:null}};e=new WeakMap,t=new WeakMap,i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();function yr(s,e){}var De=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var _i=(()=>{let e=class e extends Bn{constructor(i,n,r,o,a,l,c,d){super(),this._elementRef=i,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=c,this._focusMonitor=d,this._platform=T(Ln),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=T(Dn),this.attachDomPortal=h=>{this._portalOutlet.hasAttached();let _=this._portalOutlet.attachDomPortal(h);return this._contentAttached(),_},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(i){this._ariaLabelledByQueue.push(i),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(i){let n=this._ariaLabelledByQueue.indexOf(i);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),n}attachTemplatePortal(i){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,n){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{i.removeEventListener("blur",r),i.removeEventListener("mousedown",r),i.removeAttribute("tabindex")};i.addEventListener("blur",r),i.addEventListener("mousedown",r)})),i.focus(n)}_focusByCssSelector(i,n){let r=this._elementRef.nativeElement.querySelector(i);r&&this._forceFocus(r,n)}_trapFocus(){let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let i=this._config.restoreFocus,n=null;if(typeof i=="string"?n=this._document.querySelector(i):typeof i=="boolean"?n=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(n=i),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=Tt(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let i=this._elementRef.nativeElement,n=Tt();return i===n||i.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Tt()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(A(Be),A(kt),A($e,8),A(De),A(Dt),A(ge),A(qe),A(Ot))},e.\u0275cmp=$({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&En(tt,7),n&2){let o;Sn(o=wn())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&et("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[ze,_e],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&q(0,yr,0,0,"ng-template",0)},dependencies:[tt],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let s=e;return s})(),it=class{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new J,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Ct(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},_r=new oe("DialogScrollStrategy",{providedIn:"root",factory:()=>{let s=T(be);return()=>s.scrollStrategies.block()}}),vr=new oe("DialogData"),br=new oe("DefaultDialogConfig");var Er=0,os=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(i,n,r,o,a,l){this._overlay=i,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new J,this._afterOpenedAtThisLevel=new J,this._ariaHiddenElements=new Map,this.afterAllClosed=Ae(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pt(void 0))),this._scrollStrategy=l}open(i,n){let r=this._defaultOptions||new De;n=I(I({},r),n),n.id=n.id||`cdk-dialog-${Er++}`,n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),a=this._overlay.create(o),l=new it(a,n),c=this._attachContainer(a,l,n);return l.containerInstance=c,this._attachDialogContent(i,l,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){gi(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(n=>n.id===i)}ngOnDestroy(){gi(this._openDialogsAtThisLevel,i=>{i.config.closeOnDestroy===!1&&this._removeOpenDialog(i,!1)}),gi(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){let n=new jn({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(n.backdropClass=i.backdropClass),n}_attachContainer(i,n,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:De,useValue:r},{provide:it,useValue:n},{provide:qe,useValue:i}],l;r.container?typeof r.container=="function"?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=_i;let c=new mi(l,r.viewContainerRef,ue.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return i.attach(c).instance}_attachDialogContent(i,n,r,o){if(i instanceof yn){let a=this._createInjector(o,n,r,void 0),l={$implicit:o.data,dialogRef:n};o.templateContext&&(l=I(I({},l),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new xn(i,null,l,a))}else{let a=this._createInjector(o,n,r,this._injector),l=r.attachComponentPortal(new mi(i,o.viewContainerRef,a,o.componentFactoryResolver));n.componentRef=l,n.componentInstance=l.instance}}_createInjector(i,n,r,o){let a=i.injector||i.viewContainerRef?.injector,l=[{provide:vr,useValue:i.data},{provide:it,useValue:n}];return i.providers&&(typeof i.providers=="function"?l.push(...i.providers(n,i,r)):l.push(...i.providers)),i.direction&&(!a||!a.get(ui,null,{optional:!0}))&&l.push({provide:ui,useValue:{value:i.direction,change:fe()}}),ue.create({parent:a||o,providers:l})}_removeOpenDialog(i,n){let r=this.openDialogs.indexOf(i);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let i=this._overlayContainer.getContainerElement();if(i.parentElement){let n=i.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==i&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(be),M(ue),M(br,8),M(e,12),M(At),M(_r))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function gi(s,e){let t=s.length;for(;t--;)e(s[t])}function Sr(s,e){}var nt=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},vi="mdc-dialog--open",as="mdc-dialog--opening",ls="mdc-dialog--closing",wr=150,Tr=75,Cr=(()=>{let e=class e extends _i{constructor(i,n,r,o,a,l,c,d,h){super(i,n,r,o,a,l,c,h),this._animationMode=d,this._animationStateChanged=new gn,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?ds(this._config.enterAnimationDuration)??wr:0,this._exitAnimationDuration=this._animationsEnabled?ds(this._config.exitAnimationDuration)??Tr:0,this._animationTimer=null,this._isDestroyed=!1,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(cs,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(as,vi)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(vi),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(vi),this._animationsEnabled?(this._hostElement.style.setProperty(cs,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ls)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(i){this._actionSectionCount+=i,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(as,ls)}_waitForAnimationToComplete(i,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,i)}_requestAnimationFrame(i){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._isDestroyed||(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i}))}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer),this._isDestroyed=!0}attachComponentPortal(i){let n=super.attachComponentPortal(i);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(A(Be),A(kt),A($e,8),A(nt),A(Dt),A(ge),A(qe),A(je,8),A(Ot))},e.\u0275cmp=$({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(li("id",r._config.id),et("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),le("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[ze,_e],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(w(0,"div",0)(1,"div",1),q(2,Sr,0,0,"ng-template",2),v()())},dependencies:[tt],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let s=e;return s})(),cs="--mat-dialog-transition-duration";function ds(s){return s==null?null:typeof s=="number"?s:s.endsWith("ms")?hi(s.substring(0,s.length-2)):s.endsWith("s")?hi(s.substring(0,s.length-1))*1e3:s==="0"?0:null}var xt=function(s){return s[s.OPEN=0]="OPEN",s[s.CLOSING=1]="CLOSING",s[s.CLOSED=2]="CLOSED",s}(xt||{}),st=class{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new J,this._beforeClosed=new J,this._state=xt.OPEN,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(U(n=>n.state==="opened"),ee(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(U(n=>n.state==="closed"),ee(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ze(this.backdropClick(),this.keydownEvents().pipe(U(n=>n.keyCode===27&&!this.disableClose&&!Ct(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),us(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(U(t=>t.state==="closing"),ee(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=xt.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=xt.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function us(s,e,t){return s._closeInteractionType=e,s.close(t)}var bi=new oe("MatMdcDialogData"),Ar=new oe("mat-mdc-dialog-default-options"),Dr=new oe("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let s=T(be);return()=>s.scrollStrategies.block()}});var kr=0,Bt=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(i,n,r,o,a,l,c,d){this._overlay=i,this._defaultOptions=o,this._scrollStrategy=a,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new J,this._afterOpenedAtThisLevel=new J,this.dialogConfigClass=nt,this.afterAllClosed=Ae(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pt(void 0))),this._dialog=n.get(os),this._dialogRefConstructor=st,this._dialogContainerType=Cr,this._dialogDataToken=bi}open(i,n){let r;n=I(I({},this._defaultOptions||new nt),n),n.id=n.id||`mat-mdc-dialog-${kr++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(i,Le(I({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:De,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,l,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(n=>n.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let n=i.length;for(;n--;)i[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(be),M(ue),M(kn,8),M(Ar,8),M(Dr),M(e,12),M(At),M(je,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Or=0,ms=(()=>{let e=class e{constructor(i,n,r){this.dialogRef=i,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=_s(this._elementRef,this._dialog.openDialogs))}ngOnChanges(i){let n=i._matDialogClose||i._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(i){us(this.dialogRef,i.screenX===0&&i.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(A(st,8),A(Be),A(Bt))},e.\u0275dir=xe({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&Ve("click",function(a){return r._onButtonClick(a)}),n&2&&et("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[mn]});let s=e;return s})(),ps=(()=>{let e=class e{constructor(i,n,r){this._dialogRef=i,this._elementRef=n,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=_s(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(A(st,8),A(Be),A(Bt))},e.\u0275dir=xe({type:e,standalone:!0});let s=e;return s})(),fs=(()=>{let e=class e extends ps{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${Or++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=Je(e)))(r||e)}})(),e.\u0275dir=xe({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){n&2&&li("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[ze]});let s=e;return s})(),gs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=xe({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[vn([Fn])]});let s=e;return s})(),ys=(()=>{let e=class e extends ps{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=Je(e)))(r||e)}})(),e.\u0275dir=xe({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&le("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[ze]});let s=e;return s})();function _s(s,e){let t=s.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(i=>i.id===t.id):null}function Mr(s,e){if(s&1&&(C(0," - "),w(1,"span"),C(2),v()),s&2){let t=ft();k(2),Ke(t.dialogData.changelog.date)}}var vs=(()=>{var e;let t=class t{constructor(){se(this,e);this.dialogData=T(bi),nn(this,e,T(ve))}toggleDisableChangelog(n){F(this,e).saveSettings(Le(I({},F(this,e).getSettings()),{disableChangelogs:n.checked}))}};e=new WeakMap,t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=$({type:t,selectors:[["app-changelog-dialog"]],standalone:!0,features:[_e],decls:13,vars:3,consts:[["mat-dialog-title","",1,"font-xl","font-bold"],[1,"prose","max-w-full"],[1,"flex","gap-3","font-bold"],[3,"data"],[1,"!justify-between"],[3,"change"],["matDialogClose","",1,"btn-amber"]],template:function(r,o){r&1&&(w(0,"h1",0),C(1,"Changelog"),v(),w(2,"mat-dialog-content",1)(3,"div",2)(4,"span"),C(5),v(),q(6,Mr,3,1,"span"),v(),x(7,"markdown",3),v(),w(8,"mat-dialog-actions",4)(9,"mat-checkbox",5),Ve("change",function(l){return o.toggleDisableChangelog(l)}),C(10,"Don't show changelogs"),v(),w(11,"button",6),C(12,"Close"),v()()),r&2&&(k(5),Ke(o.dialogData.changelog.version),k(),ye(o.dialogData.changelog.date?6:-1),k(),G("data",o.dialogData.changelog.body))},dependencies:[ys,ms,fs,gs,qn,Un],styles:["[_nghost-%COMP%]{--mdc-dialog-subhead-weight: 700;--mdc-dialog-subhead-size: 1.5rem;--mdc-dialog-subhead-line-height: 1.8rem}"]});let s=t;return s})();var Ir=()=>["cdk-overlay-dark-backdrop","!transition-none"],Es=()=>["text-white","active"];function Nr(s,e){s&1&&(w(0,"span",7),C(1,"BETA"),v())}function Rr(s,e){if(s&1&&(w(0,"li")(1,"a",15),x(2,"app-ui-icon",16),w(3,"span",17),C(4),v()()()),s&2){let t=e.$implicit;k(),G("routerLink",t.path)("routerLinkActive",gt(4,Es)),k(),G("uiIcon",t.uiIcon),k(2),Ke(t.text)}}function Lr(s,e){if(s&1&&(w(0,"li",19)(1,"a",20),x(2,"app-ui-icon",21),w(3,"span",22),C(4),v()()()),s&2){let t=e.$implicit;k(),G("routerLinkActive",gt(4,Es))("routerLink",t.path),k(),G("uiIcon",t.uiIcon),k(2),Ke(t.text)}}function Fr(s,e){if(s&1&&(w(0,"ul",18),oi(1,Lr,5,5,"li",19,ri),v()),s&2){let t=ft();k(),ai(t.naviLinks)}}var Ss=(()=>{let e=class e{constructor(){this.naviLinks=[{text:"Journal",uiIcon:ce.JOURNAL,path:"journal"},{text:"Crafting",uiIcon:ce.CRAFTING,path:"crafting"},{text:"NPCs",uiIcon:ce.PEOPLE,path:"npcs"},{text:"Locations",uiIcon:ce.MAP,path:"locations"},{text:"My Guide",uiIcon:ce.MY_CORAL,path:"my"},{text:"Item database",uiIcon:ce.DATABASE,path:"database"}],this.isOpen=!1,this.uiIcon=ce,this.isBeta=!1,this._router=T(Yn),this._settingsService=T(ve),this._setClass=!0,this._router.events.pipe(U(i=>i instanceof Wn)).subscribe(()=>{this.isOpen=!1}),this.isBeta=this._settingsService.getSettings().useBeta}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["app-header"]],hostVars:4,hostBindings:function(n,r){n&2&&le("open-menu",r.isOpen)("app-header",r._setClass)},decls:19,vars:9,consts:[["trigger","cdkOverlayOrigin"],[1,"flex","justify-between","px-4"],[1,"relative","flex"],["routerLink","/",1,"flex","gap-x-4","items-center","text-header"],["alt","Super Coral. Logo of the website.","src","assets/ui/images/icons/Super_Coral.png",1,"h-12","w-12","xl:w-16","xl:h-16"],[1,"text-4xl","font-semibold","hidden","xl:block"],[1,"text-4xl","font-semibold","block","xl:hidden"],[1,"beta-badge","xl:!top-5","leading-none","font-bold","text-black","absolute","px-1.5","py-1","rounded-sm","right-0"],[1,"hidden","md:block"],[1,"flex","gap-x-6"],[1,"block","md:hidden"],["cdkOverlayOrigin","","type","button",1,"flex","flex-col","py-3","px-2","text-neutral-400","hover:text-neutral-300","items-center","text-center",3,"click"],[1,"!h-10","!w-10","max-xl",3,"uiIcon"],[1,"user-sync","hidden","xl:block"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","",3,"cdkConnectedOverlayBackdropClass","cdkConnectedOverlayOpen","cdkConnectedOverlayOrigin","cdkConnectedOverlayPanelClass"],[1,"flex","flex-col","py-3","px-2","text-neutral-400","hover:text-neutral-300","items-center","text-center",3,"routerLink","routerLinkActive"],[1,"!h-6","!w-6","xl:!h-12","xl:!w-12","mb-2","max-xl",3,"uiIcon"],[1,"xl:text-lg","font-semibold"],[1,"py-4"],[1,"my-2"],[1,"flex","py-3","px-4","text-neutral-400","hover:text-neutral-300","items-center",3,"routerLinkActive","routerLink"],[1,"!h-6","!w-6","mr-3","max-xl",3,"uiIcon"],[1,"font-semibold"]],template:function(n,r){if(n&1){let o=bn();w(0,"div",1)(1,"div",2)(2,"a",3),x(3,"img",4),w(4,"span",5),C(5,"Coral Guide"),v(),w(6,"span",6),C(7,"CG"),v()(),q(8,Nr,2,0,"span",7),v(),w(9,"nav",8)(10,"ul",9),oi(11,Rr,5,5,"li",null,ri),v()(),w(13,"div",10)(14,"button",11,0),Ve("click",function(){return pn(o),fn(r.isOpen=!r.isOpen)}),x(16,"app-ui-icon",12),v()(),x(17,"div",13),v(),q(18,Fr,3,0,"ng-template",14)}if(n&2){let o=Tn(15);k(8),ye(r.isBeta?8:-1),k(3),ai(r.naviLinks),k(5),le("!text-accent",r.isOpen),G("uiIcon",r.uiIcon.BURGER_MENU),k(2),G("cdkConnectedOverlayBackdropClass",gt(8,Ir))("cdkConnectedOverlayOpen",r.isOpen)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayPanelClass","mobile-menu-panel")}},dependencies:[It,Zn,Vn,zn,Lt],styles:[`.app-header{--header-text-color: #8a7c67;display:block;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);padding-top:env(safe-area-inset-top);background-color:#000000bf}.app-header.open-menu{z-index:1001}.app-header .active .app-ui-icon{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.mobile-menu-panel{display:block;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);background-color:#000000bf;left:0!important;right:0!important}.mobile-menu-panel .active .app-ui-icon{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.text-header{color:var(--header-text-color)}.beta-badge{background-color:var(--header-text-color);padding:3px;font-size:80%;transform:translate(60%);top:5px;pointer-events:none} +`],encapsulation:2});let s=e;return s})();var ws=(()=>{let e=class e{constructor(){this.uiIcon=ce,this.version=T(Rt),this._setCssClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["app-footer"]],hostVars:2,hostBindings:function(n,r){n&2&&le("app-footer",r._setCssClass)},decls:10,vars:2,consts:[[1,"backdrop-blur-xl","px-safe","pt-4","pb-safe-or-4","text-white/70","items-center","justify-center","flex","gap-2","flex-wrap"],[1,"!text-gifting/80","!w-5","!h-5",3,"uiIcon"],["routerLink","/about",1,"text-accent"],["fragment","support","routerLink","/about",1,"text-accent"]],template:function(n,r){n&1&&(w(0,"footer",0),C(1," Made with "),x(2,"app-ui-icon",1),C(3," by Koenig. "),w(4,"a",2),C(5,"About Coral Guide"),v(),C(6," - "),w(7,"a",3),C(8,"Support Coral Guide"),v(),C(9),v()),n&2&&(k(2),G("uiIcon",r.uiIcon.LOVE),k(7),Cn(" - Data from game version (steam): ",r.version,` +`))},dependencies:[It,Lt],styles:[`.app-footer footer{background-color:#000000bf;min-height:var(--cg-min-footer-height)} +`],encapsulation:2});let s=e;return s})();function jr(s,e){s&1&&x(0,"router-outlet")}function zr(s,e){s&1&&x(0,"mat-spinner",1)}var Ts=(()=>{var e,t,i,n;let r=class r{constructor(){se(this,e,T(Rn));se(this,t,T(ss));se(this,i,T(Bt));se(this,n,T(ve));T(Gn).read(),F(this,n).getSettings().disableChangelogs||F(this,t).getLatestChangelog().subscribe({next:a=>{if(a.version===F(this,t).getLatestSeen())return;F(this,i).open(vs,{data:{changelog:a},hasBackdrop:!0,width:"800px"}).afterClosed().subscribe({next:()=>{F(this,t).setLatestSeen(a)}})}}),this.prefetchData$=rn([F(this,e).fetchItems$(),F(this,e).fetchTagBasedItems$(),F(this,e).fetchProcessorMapping$(),F(this,e).fetchCookingUtensilMapping$()])}};e=new WeakMap,t=new WeakMap,i=new WeakMap,n=new WeakMap,r.\u0275fac=function(l){return new(l||r)},r.\u0275cmp=$({type:r,selectors:[["app-root"]],decls:6,vars:3,consts:[[1,"flex-grow-0","flex-shrink-0"],[1,"text-white","mx-auto","my-5"]],template:function(l,c){if(l&1&&(x(0,"app-header",0),w(1,"main"),q(2,jr,1,0,"router-outlet"),yt(3,"async"),q(4,zr,1,0,"mat-spinner",1),v(),x(5,"app-footer",0)),l&2){let d;k(2),ye((d=_t(3,1,c.prefetchData$))?2:4,d)}},dependencies:[Hn,Ss,ws,Jn,bt],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}"]});let s=r;return s})();var Cs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=re({imports:[Et,Ue,Nt]});let s=e;return s})();function As(s){return new S(3e3,!1)}function Vr(){return new S(3100,!1)}function Kr(){return new S(3101,!1)}function $r(s){return new S(3001,!1)}function qr(s){return new S(3003,!1)}function Qr(s){return new S(3004,!1)}function Ur(s,e){return new S(3005,!1)}function Gr(){return new S(3006,!1)}function Wr(){return new S(3007,!1)}function Hr(s,e){return new S(3008,!1)}function Yr(s){return new S(3002,!1)}function Zr(s,e,t,i,n){return new S(3010,!1)}function Xr(){return new S(3011,!1)}function Jr(){return new S(3012,!1)}function eo(){return new S(3200,!1)}function to(){return new S(3202,!1)}function io(){return new S(3013,!1)}function no(s){return new S(3014,!1)}function so(s){return new S(3015,!1)}function ro(s){return new S(3016,!1)}function oo(s,e){return new S(3404,!1)}function ao(s){return new S(3502,!1)}function lo(s){return new S(3503,!1)}function co(){return new S(3300,!1)}function ho(s){return new S(3504,!1)}function uo(s){return new S(3301,!1)}function mo(s,e){return new S(3302,!1)}function po(s){return new S(3303,!1)}function fo(s,e){return new S(3400,!1)}function go(s){return new S(3401,!1)}function yo(s){return new S(3402,!1)}function _o(s,e){return new S(3505,!1)}function Ee(s){switch(s.length){case 0:return new Qe;case 1:return s[0];default:return new fi(s)}}function zs(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=s.normalizePropertyName(m,n),g){case Mt:g=t.get(y);break;case de:g=i.get(y);break;default:g=s.normalizeStyleValue(y,m,g,n);break}h.set(m,g)}),d||r.push(h),a=h,o=c}),n.length)throw ao(n);return r}function $i(s,e,t,i){switch(e){case"start":s.onStart(()=>i(t&&Ei(t,"start",s)));break;case"done":s.onDone(()=>i(t&&Ei(t,"done",s)));break;case"destroy":s.onDestroy(()=>i(t&&Ei(t,"destroy",s)));break}}function Ei(s,e,t){let i=t.totalTime,n=!!t.disabled,r=qi(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function qi(s,e,t,i,n="",r=0,o){return{element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function Y(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function Ds(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return[t,i]}var vo=typeof document>"u"?null:document.documentElement;function Qi(s){let e=s.parentNode||s.host||null;return e===vo?null:e}function bo(s){return s.substring(1,6)=="ebkit"}var ke=null,ks=!1;function Eo(s){ke||(ke=So()||{},ks=ke.style?"WebkitAppearance"in ke.style:!1);let e=!0;return ke.style&&!bo(s)&&(e=s in ke.style,!e&&ks&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in ke.style)),e}function So(){return typeof document<"u"?document.body:null}function Vs(s,e){for(;e;){if(e===s)return!0;e=Qi(e)}return!1}function Ks(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var Ui=(()=>{let e=class e{validateStyleProperty(i){return Eo(i)}containsElement(i,n){return Vs(i,n)}getParentElement(i){return Qi(i)}query(i,n,r){return Ks(i,n,r)}computeStyle(i,n,r){return r||""}animate(i,n,r,o,a,l=[],c){return new Qe(r,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let s=e;return s})(),Yi=class Yi{};Yi.NOOP=new Ui;var Pe=Yi,Ie=class{};var wo=1e3,$s="{{",To="}}",qs="ng-enter",Di="ng-leave",jt="ng-trigger",qt=".ng-trigger",Os="ng-animating",ki=".ng-animating";function me(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Oi(parseFloat(e[1]),e[2])}function Oi(s,e){switch(e){case"s":return s*wo;default:return s}}function Qt(s,e,t){return s.hasOwnProperty("duration")?s:Co(s,e,t)}function Co(s,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,o="";if(typeof s=="string"){let a=s.match(i);if(a===null)return e.push(As(s)),{duration:0,delay:0,easing:""};n=Oi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Oi(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else n=s;if(!t){let a=!1,l=e.length;n<0&&(e.push(Vr()),a=!0),r<0&&(e.push(Kr()),a=!0),a&&e.splice(l,0,As(s))}return{duration:n,delay:r,easing:o}}function Ao(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function he(s,e,t){e.forEach((i,n)=>{let r=Gi(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i})}function Me(s,e){e.forEach((t,i)=>{let n=Gi(i);s.style[n]=""})}function rt(s){return Array.isArray(s)?s.length==1?s[0]:$n(s):s}function Do(s,e,t){let i=e.params||{},n=Qs(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push($r(r))})}var Mi=new RegExp(`${$s}\\s*(.+?)\\s*${To}`,"g");function Qs(s){let e=[];if(typeof s=="string"){let t;for(;t=Mi.exec(s);)e.push(t[1]);Mi.lastIndex=0}return e}function at(s,e,t){let i=`${s}`,n=i.replace(Mi,(r,o)=>{let a=e[o];return a==null&&(t.push(qr(o)),a=""),a.toString()});return n==i?s:n}var ko=/-+([a-z0-9])/g;function Gi(s){return s.replace(ko,(...e)=>e[1].toUpperCase())}function Oo(s,e){return s===0||e===0}function Mo(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r)}),n.length)for(let r=1;ro.set(a,Wi(s,a)))}}return e}function H(s,e,t){switch(e.type){case b.Trigger:return s.visitTrigger(e,t);case b.State:return s.visitState(e,t);case b.Transition:return s.visitTransition(e,t);case b.Sequence:return s.visitSequence(e,t);case b.Group:return s.visitGroup(e,t);case b.Animate:return s.visitAnimate(e,t);case b.Keyframes:return s.visitKeyframes(e,t);case b.Style:return s.visitStyle(e,t);case b.Reference:return s.visitReference(e,t);case b.AnimateChild:return s.visitAnimateChild(e,t);case b.AnimateRef:return s.visitAnimateRef(e,t);case b.Query:return s.visitQuery(e,t);case b.Stagger:return s.visitStagger(e,t);default:throw Qr(e.type)}}function Wi(s,e){return window.getComputedStyle(s)[e]}var Po=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"]),Ut=class extends Ie{normalizePropertyName(e,t){return Gi(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(Po.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(Ur(e,i))}return o+r}};var Gt="*";function Io(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>No(i,t,e)):t.push(s),t}function No(s,e,t){if(s[0]==":"){let l=Ro(s,t);if(typeof l=="function"){e.push(l);return}s=l}let i=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(so(s)),e;let n=i[1],r=i[2],o=i[3];e.push(Ms(n,o));let a=n==Gt&&o==Gt;r[0]=="<"&&!a&&e.push(Ms(o,n))}function Ro(s,e){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var zt=new Set(["true","1"]),Vt=new Set(["false","0"]);function Ms(s,e){let t=zt.has(s)||Vt.has(s),i=zt.has(e)||Vt.has(e);return(n,r)=>{let o=s==Gt||s==n,a=e==Gt||e==r;return!o&&t&&typeof n=="boolean"&&(o=n?zt.has(s):Vt.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?zt.has(e):Vt.has(e)),o&&a}}var Us=":self",Lo=new RegExp(`s*${Us}s*,?`,"g");function Gs(s,e,t,i){return new Pi(s).build(e,t,i)}var Ps="",Pi=class{constructor(e){this._driver=e}build(e,t,i){let n=new Ii(t);return this._resetContextStyleTimingState(n),H(this,rt(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ps,e.collectedStyles=new Map,e.collectedStyles.set(Ps,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Gr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==b.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l)}else t.errors.push(Wr())}),{type:b.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Hr(e.name,[...r.values()]))}return{type:b.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=H(this,rt(e.animation),t),n=Io(e.expr,t.errors);return{type:b.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Oe(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(i=>H(this,i,t)),options:Oe(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=i;let a=H(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:b.Group,steps:r,options:Oe(e.options)}}visitAnimate(e,t){let i=jo(e.timings,t.errors);t.currentAnimateTimings=i;let n,r=e.styles?e.styles:pi({});if(r.type==b.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=pi(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:b.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===de?i.push(a):t.errors.push(Yr(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf($s)>=0){r=!0;break}}}),{type:b.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=n&&r>=d.startTime&&n<=d.endTime&&(t.errors.push(Zr(l,d.startTime,d.endTime,r,n)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:n}),t.options&&Do(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Xr()),i;let n=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(P=>{let N=this._makeStyleAst(P,t),j=N.offset!=null?N.offset:Bo(N.styles),L=0;return j!=null&&(r++,L=N.offset=j),l=l||L<0||L>1,a=a||L0&&r{let j=_>0?N==y?1:_*N:o[N],L=j*D;t.currentTime=m+g.delay+L,g.duration=L,this._validateStyleAst(P,t),P.offset=j,i.styles.push(P)}),i}visitReference(e,t){return{type:b.Reference,animation:H(this,rt(e.animation),t),options:Oe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:Oe(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:Oe(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Fo(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,Y(t.collectedStyles,t.currentQuerySelector,new Map);let a=H(this,rt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:b.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Oe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(io());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Qt(e.timings,t.errors,!0);return{type:b.Stagger,animation:H(this,rt(e.animation),t),timings:i,options:null}}};function Fo(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Us);return e&&(s=s.replace(Lo,"")),s=s.replace(/@\*/g,qt).replace(/@\w+/g,t=>qt+"-"+t.slice(1)).replace(/:animating/g,ki),[s,e]}function xo(s){return s?I({},s):null}var Ii=class{constructor(e){this.errors=e,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 Bo(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function jo(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=Qt(s,e).duration;return Si(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Si(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=Qt(t,e);return Si(n.duration,n.delay,n.easing)}function Oe(s){return s?(s=I({},s),s.params&&(s.params=xo(s.params))):s={},s}function Si(s,e,t){return{duration:s,delay:e,easing:t}}function Hi(s,e,t,i,n,r,o=null,a=!1){return{type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var lt=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},zo=1,Vo=":enter",Ko=new RegExp(Vo,"g"),$o=":leave",qo=new RegExp($o,"g");function Ws(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new Ni().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var Ni=class{buildKeyframes(e,t,i,n,r,o,a,l,c,d=[]){c=c||new lt;let h=new Ri(e,t,c,n,r,d,[]);h.options=l;let _=l.delay?me(l.delay):0;h.currentTimeline.delayNextStep(_),h.currentTimeline.setStyles([o],null,h.errors,l),H(this,i,h);let y=h.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let D=y[g];if(D.element===t){m=D;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[Hi(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:me(at(r,n?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?me(i.duration):null,a=i.delay!=null?me(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==b.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Wt);let o=me(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>H(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?me(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),H(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?at(i,t.params,t.errors):i;return Qt(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r=e.style;r.type==b.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?me(n.delay):0;r&&(t.previousNode.type===b.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Wt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let h=t.createSubContext(e.options,c);r&&h.delayNextStep(r),c===t.element&&(l=h.currentTimeline),H(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let _=h.currentTimeline.currentTime;o=Math.max(o,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;H(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-h+(n.startTime-i.currentTimeline.startTime)}},Wt={},Ri=class s{constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ht(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=me(i.duration)),i.delay!=null&&(n.delay=me(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=at(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Wt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new Li(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Ko,"."+this._enterClassName),e=e.replace(qo,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(no(t)),a}},Ht=class s{constructor(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||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+=zo,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||de),this._currentKeyframe.set(t,de);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Qo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=at(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??de),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,h)=>{d===Mt?e.add(h):d===de&&t.add(h)}),i||c.set("offset",l/this.duration),n.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return Hi(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}},Li=class extends Ht{constructor(e,t,i,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Is(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let _=new Map(e[h]),y=_.get("offset"),m=t+y*i;_.set("offset",Is(m/o)),r.push(_)}i=o,t=0,n="",e=r}return Hi(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function Is(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Qo(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,de)}else for(let[r,o]of n)t.set(r,o)}),t}function Ns(s,e,t,i,n,r,o,a,l,c,d,h,_){return{type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:_}}var wi={},Yt=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return Uo(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,d){let h=[],_=this.ast.options&&this.ast.options.params||wi,y=a&&a.params||wi,m=this.buildStyles(i,y,h),g=l&&l.params||wi,D=this.buildStyles(n,g,h),P=new Set,N=new Map,j=new Map,L=n==="void",Ne={params:Hs(g,_),delay:this.ast.options?.delay},ie=d?[]:Ws(e,t,this.ast.animation,r,o,m,D,Ne,c,h),z=0;return ie.forEach(K=>{z=Math.max(K.duration+K.delay,z)}),h.length?Ns(t,this._triggerName,i,n,L,m,D,[],[],N,j,z,h):(ie.forEach(K=>{let Se=K.element,Re=Y(N,Se,new Set);K.preStyleProps.forEach(we=>Re.add(we));let Zi=Y(j,Se,new Set);K.postStyleProps.forEach(we=>Zi.add(we)),Se!==t&&P.add(Se)}),Ns(t,this._triggerName,i,n,L,m,D,ie,[...P.values()],N,j,z))}};function Uo(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function Hs(s,e){let t=I({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var Fi=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=Hs(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=at(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Go(s,e,t){return new xi(s,e,t)}var xi=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new Fi(n.style,r,i))}),Rs(this.states,"true","1"),Rs(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Yt(e,n,this.states))}),this.fallbackTransition=Wo(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Wo(s,e,t){let i=[(o,a)=>!0],n={type:b.Sequence,steps:[],options:null},r={type:b.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new Yt(s,r,e)}function Rs(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t))}var Ho=new lt,Bi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],n=[],r=Gs(this._driver,t,i,n);if(i.length)throw lo(i);n.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,i){let n=e.element,r=zs(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Ws(this._driver,t,r,qs,Di,new Map,new Map,i,Ho,n),o.forEach(d=>{let h=Y(a,d.element,new Map);d.postStyleProps.forEach(_=>h.set(_,null))})):(n.push(co()),o=[]),n.length)throw ho(n);a.forEach((d,h)=>{d.forEach((_,y)=>{d.set(y,this._driver.computeStyle(h,y,de))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=Ee(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw uo(e);return t}listen(e,t,i,n){let r=qi(t,"","","");return $i(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Yo=".ng-animate-queued",Ti="ng-animate-disabled",Zo=".ng-animate-disabled",Xo="ng-star-inserted",Jo=".ng-star-inserted",ea=[],Ys={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ta={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},te="__ng_removed",ct=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=na(n),i){let r=e,{value:o}=r,a=tn(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},ot="void",Ci=new ct(ot),ji=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,X(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw mo(i,t);if(i==null||i.length==0)throw po(t);if(!sa(i))throw fo(i,t);let r=Y(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=Y(this._engine.statesByElement,e,new Map);return a.has(t)||(X(e,jt),X(e,jt+"-"+t),a.set(t,Ci)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw go(e);return t}trigger(e,t,i,n=!0){let r=this._getTrigger(t),o=new dt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(X(e,jt),X(e,jt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ct(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Ci),!(c.value===ot)&&l.value===c.value){if(!aa(l.params,c.params)){let g=[],D=r.matchStyles(l.value,l.params,g),P=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Me(e,D),he(e,P)})}return}let _=Y(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!y){if(!n)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(X(e,Ls),o.onStart(()=>{Ge(e,Ls)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let D=this._engine.playersByElement.get(e);if(D){let P=D.indexOf(o);P>=0&&D.splice(P,1)}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,qt,!0);i.forEach(n=>{if(n[te])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ot,n);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Ee(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Ci,d=new ct(ot),h=new dt(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[te];(!r||r===Ys)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){X(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=qi(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,$i(i.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},zi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(n,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new ji(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,n){if(Kt(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!Kt(t))return;let r=t[te];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),X(e,Ti)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ge(e,Ti))}removeNode(e,t,i){if(Kt(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[te]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,n,r){return Kt(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,qt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ki,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ee(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[te];if(t&&t.setForRemoval){if(e[te]=Ys,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ti)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Zo,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ee(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw yo(e)}_flushAnimations(e,t){let i=new lt,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Yo,!0);for(let f=0;f{let f=qs+g++;m.set(p,f),u.forEach(E=>X(E,f))});let D=[],P=new Set,N=new Set;for(let u=0;uP.add(E)):N.add(p))}let j=new Map,L=Bs(_,Array.from(P));L.forEach((u,p)=>{let f=Di+g++;j.set(p,f),u.forEach(E=>X(E,f))}),e.push(()=>{y.forEach((u,p)=>{let f=m.get(p);u.forEach(E=>Ge(E,f))}),L.forEach((u,p)=>{let f=j.get(p);u.forEach(E=>Ge(E,f))}),D.forEach(u=>{this.processLeaveNode(u)})});let Ne=[],ie=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(t).forEach(f=>{let E=f.player,R=f.element;if(Ne.push(E),this.collectedEnterElements.length){let B=R[te];if(B&&B.setForMove){if(B.previousTriggersValues&&B.previousTriggersValues.has(f.triggerName)){let Te=B.previousTriggersValues.get(f.triggerName),Z=this.statesByElement.get(f.element);if(Z&&Z.has(f.triggerName)){let mt=Z.get(f.triggerName);mt.value=Te,Z.set(f.triggerName,mt)}}E.destroy();return}}let ne=!h||!this.driver.containsElement(h,R),Q=j.get(R),pe=m.get(R),O=this._buildInstruction(f,i,pe,Q,ne);if(O.errors&&O.errors.length){ie.push(O);return}if(ne){E.onStart(()=>Me(R,O.fromStyles)),E.onDestroy(()=>he(R,O.toStyles)),n.push(E);return}if(f.isFallbackTransition){E.onStart(()=>Me(R,O.fromStyles)),E.onDestroy(()=>he(R,O.toStyles)),n.push(E);return}let en=[];O.timelines.forEach(B=>{B.stretchStartingKeyframe=!0,this.disabledNodes.has(B.element)||en.push(B)}),O.timelines=en,i.append(R,O.timelines);let mr={instruction:O,player:E,element:R};o.push(mr),O.queriedElements.forEach(B=>Y(a,B,[]).push(E)),O.preStyleProps.forEach((B,Te)=>{if(B.size){let Z=l.get(Te);Z||l.set(Te,Z=new Set),B.forEach((mt,ii)=>Z.add(ii))}}),O.postStyleProps.forEach((B,Te)=>{let Z=c.get(Te);Z||c.set(Te,Z=new Set),B.forEach((mt,ii)=>Z.add(ii))})});if(ie.length){let u=[];ie.forEach(p=>{u.push(_o(p.triggerName,p.errors))}),Ne.forEach(p=>p.destroy()),this.reportError(u)}let z=new Map,K=new Map;o.forEach(u=>{let p=u.element;i.has(p)&&(K.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,z))}),n.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(E=>{Y(z,p,[]).push(E),E.destroy()})});let Se=D.filter(u=>js(u,l,c)),Re=new Map;xs(Re,this.driver,N,c,de).forEach(u=>{js(u,l,c)&&Se.push(u)});let we=new Map;y.forEach((u,p)=>{xs(we,this.driver,new Set(u),l,Mt)}),Se.forEach(u=>{let p=Re.get(u),f=we.get(u);Re.set(u,new Map([...p?.entries()??[],...f?.entries()??[]]))});let ti=[],Xi=[],Ji={};o.forEach(u=>{let{element:p,player:f,instruction:E}=u;if(i.has(p)){if(d.has(p)){f.onDestroy(()=>he(p,E.toStyles)),f.disabled=!0,f.overrideTotalTime(E.totalTime),n.push(f);return}let R=Ji;if(K.size>1){let Q=p,pe=[];for(;Q=Q.parentNode;){let O=K.get(Q);if(O){R=O;break}pe.push(Q)}pe.forEach(O=>K.set(O,R))}let ne=this._buildAnimation(f.namespaceId,E,z,r,we,Re);if(f.setRealPlayer(ne),R===Ji)ti.push(f);else{let Q=this.playersByElement.get(R);Q&&Q.length&&(f.parentPlayer=Ee(Q)),n.push(f)}}else Me(p,E.fromStyles),f.onDestroy(()=>he(p,E.toStyles)),Xi.push(f),d.has(p)&&n.push(f)}),Xi.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let f=Ee(p);u.setRealPlayer(f)}}),n.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u!ne.destroyed);R.length?ra(this,p,R):this.processLeaveNode(p)}return D.length=0,ti.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),ti}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==ot;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,d=c!==r,h=Y(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),h.push(y)})}Me(r,t.fromStyles)}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,h=new Set,_=t.timelines.map(m=>{let g=m.element;d.add(g);let D=g[te];if(D&&D.removedBeforeQueried)return new Qe(m.duration,m.delay);let P=g!==l,N=oa((i.get(g)||ea).map(z=>z.getRealPlayer())).filter(z=>{let K=z;return K.element?K.element===g:!1}),j=r.get(g),L=o.get(g),Ne=zs(this._normalizer,m.keyframes,j,L),ie=this._buildPlayer(m,Ne,N);if(m.subTimeline&&n&&h.add(g),P){let z=new dt(e,a,g);z.setRealPlayer(ie),c.push(z)}return ie});c.forEach(m=>{Y(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>ia(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>X(m,Os));let y=Ee(_);return y.onDestroy(()=>{d.forEach(m=>Ge(m,Os)),he(l,t.toStyles)}),h.forEach(m=>{Y(n,m,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Qe(e.duration,e.delay)}},dt=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Qe,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>$i(e,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Y(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ia(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&s.delete(e)}return i}function na(s){return s??null}function Kt(s){return s&&s.nodeType===1}function sa(s){return s=="start"||s=="done"}function Fs(s,e){let t=s.style.display;return s.style.display=e??"none",t}function xs(s,e,t,i,n){let r=[];t.forEach(l=>r.push(Fs(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let _=e.computeStyle(c,h,n);d.set(h,_),(!_||_.length==0)&&(c[te]=ta,o.push(c))}),s.set(c,d)});let a=0;return t.forEach(l=>Fs(l,r[a++])),o}function Bs(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function X(s,e){s.classList?.add(e)}function Ge(s,e){s.classList?.remove(e)}function ra(s,e,t){Ee(t).onDone(()=>s.processLeaveNode(e))}function oa(s){let e=[];return Zs(s,e),e}function Zs(s,e){for(let t=0;tn.add(r)):e.set(s,i),t.delete(s),!0}var He=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(n,r)=>{},this._transitionEngine=new zi(e.body,t,i),this._timelineEngine=new Bi(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Gs(this._driver,r,l,c);if(l.length)throw oo(n,l);c.length&&void 0,a=Go(n,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=Ds(i),a=n;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=Ds(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function la(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Ai(e[0]),e.length>1&&(i=Ai(e[e.length-1]))):e instanceof Map&&(t=Ai(e)),t||i?new Vi(s,t,i):null}var We=class We{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let n=We.initialStylesByElement.get(e);n||We.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&he(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(he(this._element,this._initialStyles),this._endStyles&&(he(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(We.initialStylesByElement.delete(this._element),this._startStyles&&(Me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Me(this._element,this._endStyles),this._endStyles=null),he(this._element,this._initialStyles),this._state=3)}};We.initialStylesByElement=new WeakMap;var Vi=We;function Ai(s){let e=null;return s.forEach((t,i)=>{ca(i)&&(e=e||new Map,e.set(i,t))}),e}function ca(s){return s==="display"||s==="position"}var Zt=class{constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:Wi(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Xt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Vs(e,t)}getParentElement(e){return Qi(e)}query(e,t,i){return Ks(e,t,i)}computeStyle(e,t,i){return Wi(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(y=>y instanceof Zt);Oo(i,n)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m))});let h=Ao(t).map(y=>new Map(y));h=Mo(e,h,c);let _=la(e,h);return new Zt(e,h,l,_)}};var $t="@",Xs="@.disabled",Jt=class{constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==$t&&t==Xs?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Ki=class extends Jt{constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==$t?t.charAt(1)=="."&&t==Xs?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==$t){let n=da(e),r=t.slice(1),o="";return r.charAt(0)!=$t&&([r,o]=ha(r)),this.engine.listen(this.namespaceId,n,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function da(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}function ha(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return[t,i]}var ei=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(n,r)=>{let o=r?.parentNode(n);o&&r.removeChild(o,n)}}createRenderer(e,t){let i="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let h=()=>c.delete(n);d=new Jt(i,n,this.engine,h),c.set(n,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Ki(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var ma=(()=>{let e=class e extends He{constructor(i,n,r){super(i,n,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M($e),M(Pe),M(Ie))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let s=e;return s})();function pa(){return new Ut}function fa(s,e,t){return new ei(s,e,t)}var er=[{provide:Ie,useFactory:pa},{provide:He,useClass:ma},{provide:_n,useFactory:fa,deps:[Pn,He,ge]}],Js=[{provide:Pe,useFactory:()=>new Xt},{provide:je,useValue:"BrowserAnimations"},...er],ga=[{provide:Pe,useClass:Ui},{provide:je,useValue:"NoopAnimations"},...er],tr=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?ga:Js}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=re({providers:Js,imports:[wt]});let s=e;return s})();var ir=(()=>{let e=class e extends Pt{constructor(){super(...arguments),this.title=T(Nn)}updateTitle(i){let n=this.buildTitle(i);n!==void 0?this.title.setTitle(`${n} - Coral Guide`):this.title.setTitle("Coral Guide")}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=Je(e)))(r||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function ya(s,e){s&1&&x(0,"app-changelog",1),s&2&&G("markdown",e)}var nr=(()=>{let e=class e{constructor(){this.markdown$=T(St).get("CHANGELOG.md",{responseType:"text"}),this._setCssClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["app-start"]],hostVars:2,hostBindings:function(n,r){n&2&&le("app-start",r._setCssClass)},standalone:!0,features:[_e],decls:18,vars:3,consts:[[1,"prose","lg:prose-xl"],[3,"markdown"]],template:function(n,r){if(n&1&&(w(0,"app-card")(1,"div",0)(2,"h1"),C(3,"Hello townie!"),v(),w(4,"p"),C(5," This project is a fan-made project to help "),w(6,"strong"),C(7,"you"),v(),C(8," enjoying coral island as much as possible. In order to do this, this app contains a lot of useful information at hand. Those information are either data mined or collected from the community! "),v(),w(9,"p")(10,"strong"),C(11," This means this app contains spoilers and information that might not be implemented yet or never will be! "),v()(),w(12,"p"),C(13," If that's ok for you, proceed your journey and (hopefully) enjoy what I've built :) "),v(),w(14,"p"),C(15," \u2010 Koenig "),v(),q(16,ya,1,1,"app-changelog",1),yt(17,"async"),v()()),n&2){let o;k(16),ye((o=_t(17,1,r.markdown$))?16:-1,o)}},dependencies:[Et,bt,is,Ue,es,Ft],styles:[`.app-start{width:100%}@media (min-width: 640px){.app-start{max-width:640px}}@media (min-width: 768px){.app-start{max-width:768px}}@media (min-width: 1024px){.app-start{max-width:1024px}}@media (min-width: 1280px){.app-start{max-width:1280px}}@media (min-width: 1536px){.app-start{max-width:1536px}}.app-start{margin-left:auto;margin-right:auto;margin-top:2.5rem;margin-bottom:2.5rem;display:block} +`],encapsulation:2});let s=e;return s})();var ut="Service workers are disabled or not supported by this browser";function _a(s){return Ae(()=>sn(new Error(s)))}var Ye=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=_a(ut);else{let i=ni(e,"controllerchange").pipe(Ce(()=>e.controller)),n=Ae(()=>fe(e.controller)),r=on(n,i);this.worker=r.pipe(U(d=>!!d)),this.registration=this.worker.pipe(Xe(()=>e.getRegistration()));let c=ni(e,"message").pipe(Ce(d=>d.data)).pipe(U(d=>d&&d.type)).pipe(ln());c.connect(),this.events=c}}postMessage(e,t){return this.worker.pipe(ee(1),cn(i=>{i.postMessage(I({action:e},t))})).toPromise().then(()=>{})}postMessageWithOperation(e,t,i){let n=this.waitForOperationCompleted(i),r=this.postMessage(e,t);return Promise.all([r,n]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let t;return typeof e=="string"?t=i=>i.type===e:t=i=>e.includes(i.type),this.events.pipe(U(t))}nextEventOfType(e){return this.eventsOfType(e).pipe(ee(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(U(t=>t.nonce===e),ee(1),Ce(t=>{if(t.result!==void 0)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},ar=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new J,!i.isEnabled){this.messages=Fe,this.notificationClicks=Fe,this.subscription=Fe;return}this.messages=this.sw.eventsOfType("PUSH").pipe(Ce(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Ce(r=>r.data)),this.pushManager=this.sw.registration.pipe(Ce(r=>r.pushManager));let n=this.pushManager.pipe(Xe(r=>r.getSubscription()));this.subscription=Ze(n,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(ut));let n={userVisibleOnly:!0},r=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(r.length));for(let a=0;aa.subscribe(n)),ee(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(ut));let i=n=>{if(n===null)throw new Error("Not subscribed to push notifications.");return n.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(ee(1),Xe(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(n){return new(n||e)(M(Ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let s=e;return s})(),lr=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=Fe,this.unrecoverable=Fe;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ut));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ut));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(n){return new(n||e)(M(Ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let s=e;return s})();var sr=new oe("");function va(s,e,t,i){return()=>{if(!(di(i)&&"serviceWorker"in navigator&&t.enabled!==!1))return;let n=s.get(ge),r=s.get(ci);n.runOutsideAngular(()=>{let a=navigator.serviceWorker,l=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",l),r.onDestroy(()=>{a.removeEventListener("controllerchange",l)})});let o;if(typeof t.registrationStrategy=="function")o=t.registrationStrategy();else{let[a,...l]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=fe(null);break;case"registerWithDelay":o=rr(+l[0]||0);break;case"registerWhenStable":o=l[0]?Ze(or(s),rr(+l[0])):or(s);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}n.runOutsideAngular(()=>o.pipe(ee(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:t.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function rr(s){return fe(null).pipe(an(s))}function or(s){return s.get(ci).isStable.pipe(U(t=>t))}function ba(s,e){return new Ye(di(e)&&s.enabled!==!1?navigator.serviceWorker:void 0)}var ht=class{};function Ea(s,e={}){return hn([ar,lr,{provide:sr,useValue:s},{provide:ht,useValue:e},{provide:Ye,useFactory:ba,deps:[ht,si]},{provide:vt,useFactory:va,deps:[ue,sr,ht,si],multi:!0}])}var cr=(()=>{let e=class e{static register(i,n={}){return{ngModule:e,providers:[Ea(i,n)]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=re({providers:[ar,lr]});let s=e;return s})();var dr=(s,e)=>{let t=T(Rt);if(s.url.includes("assets")){let i=s.clone({params:s.params.append("version",t)});return e(i)}return e(s)};var Sa={scrollPositionRestoration:"disabled",anchorScrolling:"enabled",scrollOffset:[0,64],initialNavigation:"enabledBlocking",bindToComponentInputs:!0},wa=[{path:"",pathMatch:"full",component:nr},{path:"journal",loadChildren:()=>import("./chunk-WIJTTHMK.js").then(s=>s.JournalModule)},{path:"database",pathMatch:"full",redirectTo:"database/"},{path:"database/:itemId",loadChildren:()=>import("./chunk-IN6STCDH.js").then(s=>s.DatabaseModule)},{path:"crafting",loadChildren:()=>import("./chunk-5YYTL4ON.js").then(s=>s.CraftingModule)},{path:"people",pathMatch:"prefix",redirectTo:"npcs"},{path:"npcs",loadChildren:()=>import("./chunk-QYNWALMD.js").then(s=>s.NPCsModule)},{path:"locations",loadChildren:()=>import("./chunk-KA3QWML2.js").then(s=>s.LocationsModule)},{path:"settings",pathMatch:"full",redirectTo:"my/settings",data:{redirected:!0}},{path:"checklist",pathMatch:"prefix",redirectTo:"my/to-do",data:{redirected:!0}},{path:"only-in-beta",loadComponent:()=>import("./chunk-JQAG4JSF.js").then(s=>s.OnlyInBetaComponent)},{path:"my",loadChildren:()=>import("./chunk-TOTJTUUK.js").then(s=>s.MyCoralGuideModule)},{path:"about",loadComponent:()=>import("./chunk-EIRFO34V.js").then(s=>s.AboutComponent)}],hr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ae({type:e,bootstrap:[Ts]}),e.\u0275inj=re({providers:[{provide:vt,multi:!0,useFactory:(i,n)=>(i||n.saveSettings(Le(I({},n.getSettings()),{useBeta:!1})),()=>fe()),deps:[[new dn,ns],ve]},{provide:Kn,useValue:{disabled:!0}},{provide:ts,useValue:{animationDuration:"0",stretchTabs:!1}},{provide:Pt,useClass:ir},un(Xn),On(Mn([dr]))],imports:[wt,tr,Nt.forRoot(wa,Sa),Cs,Ue,Qn.forRoot(),cr.register("ngsw-worker.js",{enabled:!An(),registrationStrategy:"registerWhenStable:30000"}),Ft]});let s=e;return s})();var ur={production:!0};ur.production&&void 0;In().bootstrapModule(hr).catch(s=>console.error(s)); diff --git a/ngsw.json b/ngsw.json index 28ccd5eca5..35d470df96 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1722089483938, + "timestamp": 1722897448154, "index": "/index.html", "assetGroups": [ { @@ -11,48 +11,48 @@ "ignoreVary": true }, "urls": [ - "/chunk-4KZEYPV3.js", - "/chunk-4Y6KDJTU.js", - "/chunk-63GC2TFM.js", - "/chunk-7FKT42WR.js", - "/chunk-7P5ZBEP4.js", - "/chunk-A2PSOISD.js", - "/chunk-AQDICVYK.js", - "/chunk-AWBWSX6N.js", - "/chunk-CUAKORE3.js", + "/chunk-2DMGPU4G.js", + "/chunk-43NKEY2U.js", + "/chunk-5Y7JXUU2.js", + "/chunk-5YYTL4ON.js", + "/chunk-767JIGWH.js", + "/chunk-A3U5G3MY.js", + "/chunk-BJE36J3T.js", + "/chunk-BPN5VRCO.js", + "/chunk-CM2YVX4P.js", "/chunk-DJJM56ZO.js", - "/chunk-G7CQEMPJ.js", - "/chunk-GEJY5HAK.js", - "/chunk-GPI7MHXO.js", - "/chunk-IBM5K5MG.js", - "/chunk-JJGLUQYM.js", - "/chunk-KIU6NDG3.js", - "/chunk-LLAJLK2Q.js", - "/chunk-M22KCL2Z.js", - "/chunk-MCNPD5L3.js", - "/chunk-MJ3WXX2W.js", - "/chunk-MQ5HZA2B.js", - "/chunk-NOVVTXMF.js", - "/chunk-OHRRW4BO.js", - "/chunk-POXAUVM7.js", - "/chunk-QVSQOUAD.js", - "/chunk-R4DTAK4N.js", - "/chunk-V7RKZLQ2.js", - "/chunk-WAN5NSCB.js", - "/chunk-WFTBLPSZ.js", - "/chunk-X6Q72XDI.js", - "/chunk-X73TJLJO.js", - "/chunk-XJTDYWVS.js", - "/chunk-YPN75YQC.js", - "/chunk-YTOGTTLZ.js", - "/chunk-ZGSE3C3O.js", + "/chunk-EBZ7CU56.js", + "/chunk-EIRFO34V.js", + "/chunk-IN6STCDH.js", + "/chunk-IUAKQFVS.js", + "/chunk-JQAG4JSF.js", + "/chunk-KA3QWML2.js", + "/chunk-KIVQXZUD.js", + "/chunk-LMVNWVQ6.js", + "/chunk-MS5UJFMU.js", + "/chunk-OYNPJTXB.js", + "/chunk-PYTDIKHQ.js", + "/chunk-QLCYA646.js", + "/chunk-QSI43SYB.js", + "/chunk-QYNWALMD.js", + "/chunk-SPTPR4TH.js", + "/chunk-SWBKCEQI.js", + "/chunk-TIKI6YA4.js", + "/chunk-TL6KPAQW.js", + "/chunk-TOTJTUUK.js", + "/chunk-VBOZDBHI.js", + "/chunk-WHKSG3Q2.js", + "/chunk-WIJTTHMK.js", + "/chunk-XIW35ZB7.js", + "/chunk-YKSJU422.js", + "/chunk-Z4COKCZ7.js", "/favicon.ico", "/index.html", - "/main-PFUTBUDY.js", + "/main-UQS6SDDF.js", "/manifest.webmanifest", "/polyfills-Y3W47ZLP.js", "/scripts-3Z6SM5QD.js", - "/styles-7LS4WHGD.css" + "/styles-26W4I6OV.css" ], "patterns": [] }, @@ -83,6 +83,8 @@ "/assets/beta/database/dashboards/birthdays.json", "/assets/beta/database/dashboards/fish.json", "/assets/beta/database/dashboards/museum-fish.json", + "/assets/beta/database/dashboards/museum-insects.json", + "/assets/beta/database/dashboards/museum-ocean-critters.json", "/assets/beta/database/de/achievements.json", "/assets/beta/database/de/animal-data.json", "/assets/beta/database/de/animal-festival-data.json", @@ -49175,6 +49177,8 @@ "/assets/live/database/dashboards/birthdays.json", "/assets/live/database/dashboards/fish.json", "/assets/live/database/dashboards/museum-fish.json", + "/assets/live/database/dashboards/museum-insects.json", + "/assets/live/database/dashboards/museum-ocean-critters.json", "/assets/live/database/de/achievements.json", "/assets/live/database/de/animal-data.json", "/assets/live/database/de/animal-festival-data.json", @@ -98795,6 +98799,8 @@ "/assets/beta/database/dashboards/birthdays.json": "648c56d5f957c071da53d50b232a398a639e7b73", "/assets/beta/database/dashboards/fish.json": "6fe22e7b0d9fb820e505b25865dc57f2c46f1d64", "/assets/beta/database/dashboards/museum-fish.json": "6fe22e7b0d9fb820e505b25865dc57f2c46f1d64", + "/assets/beta/database/dashboards/museum-insects.json": "05cbe0b92f9383d1b39ce4b0cc99a37f4dab78d9", + "/assets/beta/database/dashboards/museum-ocean-critters.json": "db192c302680d5ee61e4c3747e043a7b67ba5a49", "/assets/beta/database/de/achievements.json": "5aa117162bfe1154b845df4ecf7433a15e78c05e", "/assets/beta/database/de/animal-data.json": "83b1d1cd5f349f782926b3c3d527b2061c290020", "/assets/beta/database/de/animal-festival-data.json": "847fc9228e2c52ce6042529803e0cd33e3c6c214", @@ -147883,10 +147889,12 @@ "/assets/icons/icon-512x512.png": "e781ba1f34769896cd5405bb5dcd438806ed50e7", "/assets/icons/icon-72x72.png": "648bdfbb3bb7ba827bc322ac578ed2b227f96f97", "/assets/icons/icon-96x96.png": "b7e8b66efd86cdbd3c53a2a105b41e570dac5dbf", - "/assets/latest-changelog.md": "7a7b391912d4add4c72767dad30bf764b221eaaa", + "/assets/latest-changelog.md": "ff112934e9d538873c6b6556e0a836e6cba71dee", "/assets/live/database/dashboards/birthdays.json": "648c56d5f957c071da53d50b232a398a639e7b73", "/assets/live/database/dashboards/fish.json": "ed20d9a1f54e690a45e5373ba75081592237c9c9", "/assets/live/database/dashboards/museum-fish.json": "6fe22e7b0d9fb820e505b25865dc57f2c46f1d64", + "/assets/live/database/dashboards/museum-insects.json": "05cbe0b92f9383d1b39ce4b0cc99a37f4dab78d9", + "/assets/live/database/dashboards/museum-ocean-critters.json": "db192c302680d5ee61e4c3747e043a7b67ba5a49", "/assets/live/database/de/achievements.json": "5aa117162bfe1154b845df4ecf7433a15e78c05e", "/assets/live/database/de/animal-data.json": "83b1d1cd5f349f782926b3c3d527b2061c290020", "/assets/live/database/de/animal-festival-data.json": "847fc9228e2c52ce6042529803e0cd33e3c6c214", @@ -197482,48 +197490,48 @@ "/assets/ui/images/placeholder.png": "323b7b6db8e85abf9613ae1a0639bba4a6fc126e", "/assets/ui/images/rainbow_gradient.png": "56078d6cd9e967b68a5bbb5b3de41cf2a95a400b", "/assets/ui/images/spacer.gif": "609b1472e8db8411ee1d8c8240c7a17c2b01eecc", - "/chunk-4KZEYPV3.js": "21e426f5369ccf0c217670e99cf0f81d8b344d79", - "/chunk-4Y6KDJTU.js": "36cbdaebbc20fe5626b3b568e1810c5a650f21a6", - "/chunk-63GC2TFM.js": "bb2ca0d942bf85b19767585a5871971ceb84d596", - "/chunk-7FKT42WR.js": "2ae89709e305e5a8fbc033e3eda0c7765d0301dc", - "/chunk-7P5ZBEP4.js": "3101a50c6e261a121e92efda2580686d7473e6c3", - "/chunk-A2PSOISD.js": "02a0f201e6802eba7d14479466fb9b3eea098d8e", - "/chunk-AQDICVYK.js": "2bf876d36b1989616db7a996d45c188cbf9f8fa2", - "/chunk-AWBWSX6N.js": "234540fb098472386f1d4dde5a4940e32fa21422", - "/chunk-CUAKORE3.js": "76bfc7ad539c064b8901d1b4b0b7dfeccd49ff36", + "/chunk-2DMGPU4G.js": "2ba2eb46f65be349068bd81f2d8f3221758718b4", + "/chunk-43NKEY2U.js": "606201029a12ddcfdec39ab77bdd56e9558980df", + "/chunk-5Y7JXUU2.js": "ecc92c9f24c7060ea9d12b23b406a2c46f937875", + "/chunk-5YYTL4ON.js": "64a9880e1e7d85dc808072a8385131369e2a0f44", + "/chunk-767JIGWH.js": "0dc87d294575cf9df03b5d64462cb1f89598f7d5", + "/chunk-A3U5G3MY.js": "cf45acdbf50b09af15ef02da61b1fb56586ccacb", + "/chunk-BJE36J3T.js": "d1a01796082654b3ec842bea29cb62d49b52a668", + "/chunk-BPN5VRCO.js": "ec4eeffc0e42374464b2311d40f8a7efd1ff2620", + "/chunk-CM2YVX4P.js": "a33ab7f76af14901c493a702b564afd19e50d50b", "/chunk-DJJM56ZO.js": "da39a3ee5e6b4b0d3255bfef95601890afd80709", - "/chunk-G7CQEMPJ.js": "c29cf0fc5a85d49144817131bc42f40c1060012c", - "/chunk-GEJY5HAK.js": "46d2d4f2c2317f3103d865cf1e5bc459435f113a", - "/chunk-GPI7MHXO.js": "403564df1e2dad79c4b4963447c460ee1196c15e", - "/chunk-IBM5K5MG.js": "d509f8629f0b464ded3bac7f33f047a963c3ba1a", - "/chunk-JJGLUQYM.js": "b88028a4248d4218c899e6d396f12b2882287118", - "/chunk-KIU6NDG3.js": "5b47d14a29e2fdbb160db5c405f8f577ad3f5ab1", - "/chunk-LLAJLK2Q.js": "210509d056d17c5f2d2881ab968937bba9ea559f", - "/chunk-M22KCL2Z.js": "26692c5c76cd1ccf05df1b908cb50d430abf5a2b", - "/chunk-MCNPD5L3.js": "07883f016a9028de9709c34cc54842aee0e9a129", - "/chunk-MJ3WXX2W.js": "94b6d529cf76f290d226e76f780cda7c64271428", - "/chunk-MQ5HZA2B.js": "02830439c30207f11145b56fee9ba97846a26609", - "/chunk-NOVVTXMF.js": "f4e9c161155a37abf9890084da56954e0bf84be4", - "/chunk-OHRRW4BO.js": "73fe363c8447256eb89f9912f801fb2b081d5d95", - "/chunk-POXAUVM7.js": "b9daf5defe2e1f29326a21d7fe557f6b5fe2b084", - "/chunk-QVSQOUAD.js": "f7ffe8b0977132ed4b7980fa28b8b8bfb938cced", - "/chunk-R4DTAK4N.js": "577d4b0c06f5aa817ab9198f0676d0fc052f6aea", - "/chunk-V7RKZLQ2.js": "a80d04e51a2da634b206f5aec1c263ac59bee5a0", - "/chunk-WAN5NSCB.js": "de291951f5c99599f44967b1b7a8db0d6b7bcb15", - "/chunk-WFTBLPSZ.js": "966aa6337a1deb80649300035d23d8cd8d62cdc5", - "/chunk-X6Q72XDI.js": "c7e6ea5b664bc9e608414f243bcf672438c9f11b", - "/chunk-X73TJLJO.js": "7c9b47d554bdf34d09d706cc0085e79674714e83", - "/chunk-XJTDYWVS.js": "c2aa00bb203815a22987aece8701ee71350adfbc", - "/chunk-YPN75YQC.js": "8ab95e89c9363ff36504aac23d0bd8293ff62a5d", - "/chunk-YTOGTTLZ.js": "6ce7573a561eae97d06383c976e02e5aaf05326e", - "/chunk-ZGSE3C3O.js": "70d236eadd04349c95a3e3a20d008bdab8de73ac", + "/chunk-EBZ7CU56.js": "7efba2992bebb1f9b9b8ea50172ed80a5122c685", + "/chunk-EIRFO34V.js": "82e0d04831f2bc28c8939bc5647d507874ca4b40", + "/chunk-IN6STCDH.js": "13119eab7c36a4d117812bb52598ad342a8e973d", + "/chunk-IUAKQFVS.js": "d188186b7b3520eb41c4252a243a0404714aa269", + "/chunk-JQAG4JSF.js": "d65f6bd05684d0d6b525b97fd30f69e672900ea2", + "/chunk-KA3QWML2.js": "13a2af17c2d40d00fe956eddca6e7f7740a83a46", + "/chunk-KIVQXZUD.js": "9efeebb68d722b5417ee3d66c1f19dbcb4eb6c19", + "/chunk-LMVNWVQ6.js": "0cf822c8e544ab6ab5259c8cfdb4d295caa585fe", + "/chunk-MS5UJFMU.js": "0efebf96973b3b88492695f972cdd39e1f4725eb", + "/chunk-OYNPJTXB.js": "266d9c83925a0d9ac4dc0dd298cb17b20b60eebf", + "/chunk-PYTDIKHQ.js": "f4fb8a45368c1674d139e0878824c29a5250f375", + "/chunk-QLCYA646.js": "7ed7206e09fe709ba7bf98b9e3aba5d602802971", + "/chunk-QSI43SYB.js": "22f79e5f492ace74be15251ee46f578a5a99c5c2", + "/chunk-QYNWALMD.js": "55931adf3e663c1e08e1bec2d061f183aa88ea67", + "/chunk-SPTPR4TH.js": "c78c07e3d281533420861021ad0d81196e1c823a", + "/chunk-SWBKCEQI.js": "eb87ee3283eb3301a0c5a9a7030cd723d00ea22b", + "/chunk-TIKI6YA4.js": "cab149fe9d4076147d085d4a9c96113d45bbd3b4", + "/chunk-TL6KPAQW.js": "db336b996896b0571874ea3660d3ffe254b8d23e", + "/chunk-TOTJTUUK.js": "ce18ead110d9f4100d1273bc1b60df7005fdccec", + "/chunk-VBOZDBHI.js": "3d909675e3da31c691accf08a9b4d1adf88eb21b", + "/chunk-WHKSG3Q2.js": "45016717762e063c1f9fca198d65dffd015c0db7", + "/chunk-WIJTTHMK.js": "6273c93b3fbd4a9f21c8a7c40a78b669aa46569b", + "/chunk-XIW35ZB7.js": "bfb375296d2dc0652a8be8350fe36ca4a674a6cb", + "/chunk-YKSJU422.js": "4a32f0870d943d40f6fa45613cc78c4ec3fd8b76", + "/chunk-Z4COKCZ7.js": "10a8ac5b0dcff2ea3c0829780a459e6a97f45aa6", "/favicon.ico": "4e23d0f9b6ddaf3c9ddef90dbaed2342941297b5", - "/index.html": "225b4b9eef4f789a106994d34c6b5859944c0e62", - "/main-PFUTBUDY.js": "51cc513f2d3279fb36c6860ed9496d30d0744312", + "/index.html": "a3352e31cdecc475be2564d24c44a87da8f54f35", + "/main-UQS6SDDF.js": "42152ed94437290e31d9f84db2a28e53e2e64e25", "/manifest.webmanifest": "b8bbe451996773a4e1258057c1811d647d51cf03", "/polyfills-Y3W47ZLP.js": "e9d36fb570936d2cb1813dc248625c26e00d3323", "/scripts-3Z6SM5QD.js": "a29d4a79de177554c1ca1e205cad2b114712d9c0", - "/styles-7LS4WHGD.css": "653fe9ff64bd7cca4aa97ae3af2121efa8fd68a4" + "/styles-26W4I6OV.css": "366b8bd064a61a6eec3f21a00b116e64f95634ea" }, "navigationUrls": [ { diff --git a/styles-7LS4WHGD.css b/styles-26W4I6OV.css similarity index 66% rename from styles-7LS4WHGD.css rename to styles-26W4I6OV.css index 343252774f..7e1c021738 100644 --- a/styles-7LS4WHGD.css +++ b/styles-26W4I6OV.css @@ -1 +1 @@ -.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201c""\201d""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-sm :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-base :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-base :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-lg :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-lg :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-xl :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.prose-xl :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.prose-xl :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-xl :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-2xl :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-2xl :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-2xl :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-2xl :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.btn-amber{display:inline-flex;justify-content:center;border-radius:.375rem;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-amber:hover{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity))}.btn-amber:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(180 83 9 / var(--tw-ring-opacity));--tw-ring-offset-width: 2px}.pointer-events-none{pointer-events:none}.static{position:static}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-\[5px\]{bottom:5px}.left-\[5px\]{left:5px}.right-0{right:0}.top-\[5px\]{top:5px}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.col-span-full{grid-column:1 / -1}.m-\[-18px\]{margin:-18px}.\!my-0{margin-top:0!important;margin-bottom:0!important}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-ml-2{margin-left:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.\!inline-block{display:inline-block!important}.inline-block{display:inline-block}.\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.\!grid{display:grid!important}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.\!size-4{width:1rem!important;height:1rem!important}.\!size-6{width:1.5rem!important;height:1.5rem!important}.\!size-7{width:1.75rem!important;height:1.75rem!important}.size-10{width:2.5rem;height:2.5rem}.size-6{width:1.5rem;height:1.5rem}.size-full{width:100%;height:100%}.\!h-10{height:2.5rem!important}.\!h-5{height:1.25rem!important}.\!h-6{height:1.5rem!important}.\!h-8{height:2rem!important}.h-0{height:0px}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[400px\]{height:400px}.h-\[45px\]{height:45px}.h-auto{height:auto}.h-full{height:100%}.min-h-full{min-height:100%}.\!w-10{width:2.5rem!important}.\!w-14{width:3.5rem!important}.\!w-4{width:1rem!important}.\!w-5{width:1.25rem!important}.\!w-6{width:1.5rem!important}.\!w-7{width:1.75rem!important}.\!w-8{width:2rem!important}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-6{width:1.5rem}.w-\[1\%\]{width:1%}.w-\[35\%\]{width:35%}.w-\[50\%\]{width:50%}.w-fit{width:fit-content}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-prose{max-width:65ch}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-12{flex-basis:3rem}.basis-2\/5{flex-basis:40%}.basis-3\/5{flex-basis:60%}.basis-auto{flex-basis:auto}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-3px\]{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.touch-manipulation{touch-action:manipulation}.\!grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-0fr{grid-template-rows:0fr}.grid-rows-1fr{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-2{column-gap:.5rem}.gap-x-3{column-gap:.75rem}.gap-x-4{column-gap:1rem}.gap-x-6{column-gap:1.5rem}.gap-x-8{column-gap:2rem}.gap-y-10{row-gap:2.5rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-y-5{row-gap:1.25rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-break-spaces{white-space:break-spaces}.rounded-\[15px\]{border-radius:15px}.rounded-\[30px\]{border-radius:30px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-l-\[30px\]{border-top-left-radius:30px;border-bottom-left-radius:30px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-accent\/50{border-color:#d89e4380}.bg-\[\#F1D9B5\]{--tw-bg-opacity: 1;background-color:rgb(241 217 181 / var(--tw-bg-opacity))}.bg-\[\#F1E1CC\]{--tw-bg-opacity: 1;background-color:rgb(241 225 204 / var(--tw-bg-opacity))}.bg-\[\#F5F1E6\]{--tw-bg-opacity: 1;background-color:rgb(245 241 230 / var(--tw-bg-opacity))}.bg-amber-50\/70{background-color:#fffbebb3}.bg-merino{--tw-bg-opacity: 1;background-color:rgb(247 242 232 / var(--tw-bg-opacity))}.bg-merino-300{--tw-bg-opacity: 1;background-color:rgb(218 191 151 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.p-2{padding:.5rem}.p-4{padding:1rem}.p-main-content{padding:var(--cg-main-space-vertical) var(--cg-main-space-card-placeholder-width) var(--cg-main-space-vertical) var(--cg-main-space-horizontal)}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-main-hz{padding-left:var(--cg-main-space-horizontal);padding-right:var(--cg-main-space-horizontal)}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-main-vt{padding-top:var(--cg-main-space-vertical);padding-bottom:var(--cg-main-space-vertical)}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-0{padding-right:0!important}.\!pt-2{padding-top:.5rem!important}.\!pt-3{padding-top:.75rem!important}.pb-12{padding-bottom:3rem}.pb-6{padding-bottom:1.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.\!text-right{text-align:right!important}.text-right{text-align:right}.align-top{vertical-align:top}.font-coral{font-family:QTVagaRound,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.\!text-accent{--tw-text-opacity: 1 !important;color:rgb(216 158 67 / var(--tw-text-opacity))!important}.\!text-gifting{--tw-text-opacity: 1 !important;color:rgb(237 123 103 / var(--tw-text-opacity))!important}.\!text-gifting\/80{color:#ed7b67cc!important}.\!text-green-600{--tw-text-opacity: 1 !important;color:rgb(22 163 74 / var(--tw-text-opacity))!important}.text-\[\#69ac52\]{--tw-text-opacity: 1;color:rgb(105 172 82 / var(--tw-text-opacity))}.text-accent{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/70{color:#ffffffb3}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.\!transition-none{transition-property:none!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.px-safe{padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left)}.pb-safe-or-4{padding-bottom:max(env(safe-area-inset-bottom),1rem)}.\@container{container-type:inline-size}.scrollbar-w-thin{scrollbar-width:thin}.mat-mdc-dialog-container .mdc-dialog__surface{--mdc-dialog-container-color: #f7f2e8;--mdc-dialog-container-shape: 15px}:root{--mdc-secondary-navigation-tab-container-height: 48px;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group{width:100%;max-width:calc(100vw - var(--cg-main-space-horizontal) * 2)!important}.mat-mdc-tab-group .mat-mdc-tab-labels{justify-content:center;column-gap:.75rem}.mat-mdc-tab-group .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-group .mat-mdc-tab-header-pagination-after{padding:0}.mat-mdc-tab-group .mdc-tab{opacity:1!important;background:#ffffff4d;border:3px solid rgba(255,255,255,.3);font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border-radius:15px}.mat-mdc-tab-group .mdc-tab--active{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.mat-mdc-tab-group .mdc-tab__content{height:unset}.mat-mdc-tab-group .mdc-tab-indicator .mdc-tab-indicator__content--underline{display:none}.mat-mdc-tab-group .mat-mdc-tab-header{margin-bottom:.75rem}.mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron{--mat-tab-header-pagination-icon-color: #fff;border-width:5px 5px 0 0;height:13px;width:13px}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.3}.icon-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(var(--cg-icon-grid-min-size, 80px),1fr))}@media (min-width: 1024px){.icon-grid{--cg-icon-grid-min-size: 80px }}@media (min-width: 1280px){.icon-grid{--cg-icon-grid-min-size: 90px }}.icon-grid-item{background:#ffffff4d;border-radius:15px;padding:10%;transition:background-color .2s}.icon-grid-item img{width:100px}.icon-grid-item:hover{background:#fff9}.icon-grid-item.selected-icon{background:#fff}.icon-grid-item.checklist-item{padding:0;border:1px solid rgba(255,255,255,.3);--mdc-checkbox-state-layer-size: 20px}.icon-grid-item.checklist-item .mat-mdc-checkbox-touch-target{display:none}.icon-grid-item.checklist-item .mdc-checkbox__background{width:20px;height:20px}.icon-grid-item.checklist-item .app-item-icon{padding:10%}.icon-grid-item.checklist-item label{padding:6px 0 10px;border-top:1px solid rgba(255,255,255,.3);cursor:pointer}.icon-grid-item.checklist-item.checklist-checked{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity));background-color:#6ee7b74d}.icon-grid-item.checklist-item.checklist-checked:hover{background-color:#6ee7b799}.icon-grid-item.checklist-item.checklist-checked label{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity));color:#d1fae5e6}.icon-grid-item.checklist-item.checklist-checked.selected-icon{background-color:#6ee7b7b3}.icon-grid-item.checklist-item.checklist-checked.selected-icon label{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity));color:#d1fae5e6}.icon-grid-item.checklist-item.selected-icon label{border-color:#0006;color:#000000e6}.mat-mdc-form-field .mat-mdc-form-field-infix{width:var(--mat-form-field-infix-width, 180px)}.semi-transparent-form-field{--mat-form-field-container-height: 100%}.semi-transparent-form-field .mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-150%) scale(.85)}.semi-transparent-form-field .mdc-text-field{overflow:unset;padding:0}.semi-transparent-form-field .mat-mdc-form-field-flex{padding:.5rem 1rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));background:#ffffff4d;border:2px solid rgba(255,255,255,.3);font-weight:600;border-radius:15px}.semi-transparent-form-field .mdc-floating-label mat-label{background:#f7f2e800;transition:all .15s linear}.semi-transparent-form-field .mdc-floating-label--float-above mat-label{background:#f7f2e8;padding:0 4px;color:#000;border-radius:3px;display:block}.semi-transparent-form-field.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:unset}.btn{padding:.5rem 1rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));background:#ffffff4d;border:2px solid rgba(255,255,255,.3);font-weight:600;color:rgb(255 255 255/var(--tw-text-opacity));border-radius:15px}.btn .mdc-text-field{padding:0}.btn-secondary{color:#000;background:#fff;border-color:#0000004d}.mat-mdc-select-panel{padding:.5rem 1rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border:2px solid rgba(255,255,255,.3);font-weight:600;border-radius:15px!important;color:#ffffffbf;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);--mat-select-panel-background-color: rgba(0, 0, 0, .6)}.mat-mdc-form-field-subscript-wrapper{display:none}@font-face{font-family:QTVagaRound;src:url("./media/QTVagaRound-Bold-UBAJ7Y5K.woff2") format("woff2"),url("./media/QTVagaRound-Bold-X7CRLPFI.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:QTVagaRound;src:url("./media/QTVagaRound-QVJPVEU6.woff2") format("woff2"),url("./media/QTVagaRound-2WALPMVW.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}:root{--cg-icon-grid-min-size: 55px;--cg-min-header-height: 64px;--cg-min-footer-height: calc(56px + env(safe-area-inset-bottom)) ;--cg-card-padding: 20px;--cg-card-radius: 30px;--cg-card-icon-height: 140px;--cg-main-space-horizontal: .5rem;--cg-main-space-vertical: 1.5rem;--cg-main-space-card-placeholder-width: var(--cg-main-space-horizontal) }html{height:100%;width:100%}body{color:#5a4627;font-family:QTVagaRound,sans-serif;min-height:100%;background:linear-gradient(#0009,#0009) fixed,url("./media/bg-BALLEMED.jpg") center no-repeat fixed;background-size:cover,cover}.mdc-line-ripple{display:none}.mdc-tooltip__surface{--mdc-plain-tooltip-container-color: #f7f2e8;--mdc-plain-tooltip-supporting-text-size: 1.25rem;box-shadow:1px 1px 4px 1px #0003}table .mdc-data-table__header-row{height:48px}hr{border:none;height:4px;border-radius:2px;background:#7f7f7f1a}.drawer-close-button{position:absolute;right:15px;top:15px;z-index:1}.mat-sidenav.mat-drawer{box-shadow:none}.p-main-content.remove-placeholder-padding{--cg-main-space-card-placeholder-width: var(--cg-main-space-horizontal)}@media (min-width: 768px){:root{--cg-min-header-height: 80px}}@media (min-width: 1280px){:root{--cg-main-space-horizontal: 1.5rem;--cg-min-header-height: 108px;--cg-main-space-card-placeholder-width: calc(600px - var(--cg-main-space-vertical))}.mat-drawer-container{height:100%}.mat-drawer-inner-container{padding:var(--cg-main-space-vertical) var(--cg-main-space-horizontal)}.drawer-close-button{right:45px;top:75px}}td.mdc-data-table__cell{overflow:unset}.arrow{border:solid black;border-width:0 3px 3px 0;display:inline-block;padding:3px}.arrow.right{transform:rotate(-45deg)}.arrow.left{transform:rotate(135deg)}.arrow.up{transform:rotate(-135deg)}.arrow.down{translate:0 -3px;transform:rotate(45deg)}.mat-mdc-option .mdc-list-item__primary-text{flex-grow:1}.mat-mdc-form-field.btn.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field.btn .mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-50%)}.full-size-card-image{margin-top:calc(0px - var(--cg-card-padding));margin-inline:calc(0px - var(--cg-card-padding));border-top-left-radius:var(--cg-card-radius);border-top-right-radius:var(--cg-card-radius);overflow:hidden}.full-size-card-image.image-only{margin-bottom:calc(0px - var(--cg-card-padding));border-bottom-left-radius:var(--cg-card-radius);border-bottom-right-radius:var(--cg-card-radius)}.card-actions{display:flex;height:2rem;justify-content:flex-end;gap:1.5rem}.card-actions:has(+.full-size-card-image){--blur-color: rgb(255 255 255 / .5);--blur-distance: 1px;filter:drop-shadow(var(--blur-distance) var(--blur-distance) 0 var(--blur-color)) drop-shadow(calc(0px - var(--blur-distance)) calc(0px - var(--blur-distance)) 0 var(--blur-color)) drop-shadow(calc(0px - var(--blur-distance)) var(--blur-distance) 0 var(--blur-color)) drop-shadow(var(--blur-distance) calc(0px - var(--blur-distance)) 0 var(--blur-color));margin-bottom:calc(0px - var(--cg-card-padding))}.cdk-describedby-message-container.cdk-visually-hidden{display:none}@media (min-width: 1024px){.lg\:prose-xl{font-size:1.25rem;line-height:1.8}.lg\:prose-xl :where(p):not(:where([class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.lg\:prose-xl :where([class~=lead]):not(:where([class~=not-prose] *)){font-size:1.2em;line-height:1.5;margin-top:1em;margin-bottom:1em}.lg\:prose-xl :where(blockquote):not(:where([class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-left:1.0666667em}.lg\:prose-xl :where(h1):not(:where([class~=not-prose] *)){font-size:2.8em;margin-top:0;margin-bottom:.8571429em;line-height:1}.lg\:prose-xl :where(h2):not(:where([class~=not-prose] *)){font-size:1.8em;margin-top:1.5555556em;margin-bottom:.8888889em;line-height:1.1111111}.lg\:prose-xl :where(h3):not(:where([class~=not-prose] *)){font-size:1.5em;margin-top:1.6em;margin-bottom:.6666667em;line-height:1.3333333}.lg\:prose-xl :where(h4):not(:where([class~=not-prose] *)){margin-top:1.8em;margin-bottom:.6em;line-height:1.6}.lg\:prose-xl :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\:prose-xl :where(figcaption):not(:where([class~=not-prose] *)){font-size:.9em;line-height:1.5555556;margin-top:1em}.lg\:prose-xl :where(code):not(:where([class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(h2 code):not(:where([class~=not-prose] *)){font-size:.8611111em}.lg\:prose-xl :where(h3 code):not(:where([class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(pre):not(:where([class~=not-prose] *)){font-size:.9em;line-height:1.7777778;margin-top:2em;margin-bottom:2em;border-radius:.5rem;padding:1.1111111em 1.3333333em}.lg\:prose-xl :where(ol):not(:where([class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-left:1.6em}.lg\:prose-xl :where(ul):not(:where([class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-left:1.6em}.lg\:prose-xl :where(li):not(:where([class~=not-prose] *)){margin-top:.6em;margin-bottom:.6em}.lg\:prose-xl :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.4em}.lg\:prose-xl :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.4em}.lg\:prose-xl :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(hr):not(:where([class~=not-prose] *)){margin-top:2.8em;margin-bottom:2.8em}.lg\:prose-xl :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(table):not(:where([class~=not-prose] *)){font-size:.9em;line-height:1.5555556}.lg\:prose-xl :where(thead th):not(:where([class~=not-prose] *)){padding-right:.6666667em;padding-bottom:.8888889em;padding-left:.6666667em}.lg\:prose-xl :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.lg\:prose-xl :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.lg\:prose-xl :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.8888889em .6666667em}.lg\:prose-xl :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.lg\:prose-xl :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.lg\:prose-xl :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}}.hover\:bg-black\/10:hover{background-color:#0000001a}.hover\:bg-merino-200:hover{--tw-bg-opacity: 1;background-color:rgb(232 217 192 / var(--tw-bg-opacity))}.hover\:\!text-black:hover{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.hover\:\!text-green-800:hover{--tw-text-opacity: 1 !important;color:rgb(22 101 52 / var(--tw-text-opacity))!important}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-neutral-300:hover{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.focus-visible\:\!text-black:focus-visible{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.focus-visible\:\!text-green-800:focus-visible{--tw-text-opacity: 1 !important;color:rgb(22 101 52 / var(--tw-text-opacity))!important}.focus-visible\:text-black:focus-visible{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.group:hover .group-hover\:bg-\[\#F2DBB7\]{--tw-bg-opacity: 1;background-color:rgb(242 219 183 / var(--tw-bg-opacity))}@container (min-width: 48rem){.\@3xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 640px){.sm\:mr-0{margin-right:0}.sm\:mt-8{margin-top:2rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-8{padding:2rem}.sm\:pr-10{padding-right:2.5rem}}@media (min-width: 768px){.md\:col-span-2{grid-column:span 2 / span 2}.md\:ml-auto{margin-left:auto}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:hidden{display:none}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grow-0{flex-grow:0}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:\!top-5{top:1.25rem!important}.xl\:block{display:block}.xl\:hidden{display:none}.xl\:\!h-12{height:3rem!important}.xl\:h-16{height:4rem}.xl\:h-main{height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}.xl\:\!w-12{width:3rem!important}.xl\:w-16{width:4rem}.xl\:overflow-auto{overflow:auto}.xl\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1536px){.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}} +.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201c""\201d""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-sm :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-base :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-base :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-lg :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-lg :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-lg :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-xl :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.prose-xl :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.prose-xl :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-xl :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.prose-2xl :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-2xl :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.3333333em}.prose-2xl :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose-2xl :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.btn-amber{display:inline-flex;justify-content:center;border-radius:.375rem;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-amber:hover{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity))}.btn-amber:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(180 83 9 / var(--tw-ring-opacity));--tw-ring-offset-width: 2px}.pointer-events-none{pointer-events:none}.static{position:static}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-\[5px\]{bottom:5px}.left-\[5px\]{left:5px}.right-0{right:0}.top-\[5px\]{top:5px}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.col-span-full{grid-column:1 / -1}.m-\[-18px\]{margin:-18px}.\!my-0{margin-top:0!important;margin-bottom:0!important}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-ml-2{margin-left:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.\!inline-block{display:inline-block!important}.inline-block{display:inline-block}.\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.\!grid{display:grid!important}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.\!size-4{width:1rem!important;height:1rem!important}.\!size-6{width:1.5rem!important;height:1.5rem!important}.\!size-7{width:1.75rem!important;height:1.75rem!important}.size-10{width:2.5rem;height:2.5rem}.size-6{width:1.5rem;height:1.5rem}.size-full{width:100%;height:100%}.\!h-10{height:2.5rem!important}.\!h-5{height:1.25rem!important}.\!h-6{height:1.5rem!important}.\!h-8{height:2rem!important}.h-0{height:0px}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[400px\]{height:400px}.h-\[45px\]{height:45px}.h-auto{height:auto}.h-full{height:100%}.min-h-full{min-height:100%}.\!w-10{width:2.5rem!important}.\!w-14{width:3.5rem!important}.\!w-4{width:1rem!important}.\!w-5{width:1.25rem!important}.\!w-6{width:1.5rem!important}.\!w-7{width:1.75rem!important}.\!w-8{width:2rem!important}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-6{width:1.5rem}.w-\[1\%\]{width:1%}.w-\[35\%\]{width:35%}.w-\[50\%\]{width:50%}.w-fit{width:fit-content}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-prose{max-width:65ch}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-12{flex-basis:3rem}.basis-2\/5{flex-basis:40%}.basis-3\/5{flex-basis:60%}.basis-auto{flex-basis:auto}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-3px\]{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.touch-manipulation{touch-action:manipulation}.\!grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-0fr{grid-template-rows:0fr}.grid-rows-1fr{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-2{column-gap:.5rem}.gap-x-3{column-gap:.75rem}.gap-x-4{column-gap:1rem}.gap-x-6{column-gap:1.5rem}.gap-x-8{column-gap:2rem}.gap-y-10{row-gap:2.5rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-y-5{row-gap:1.25rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-break-spaces{white-space:break-spaces}.rounded-\[15px\]{border-radius:15px}.rounded-\[30px\]{border-radius:30px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-l-\[30px\]{border-top-left-radius:30px;border-bottom-left-radius:30px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-accent\/50{border-color:#d89e4380}.bg-\[\#F1D9B5\]{--tw-bg-opacity: 1;background-color:rgb(241 217 181 / var(--tw-bg-opacity))}.bg-\[\#F1E1CC\]{--tw-bg-opacity: 1;background-color:rgb(241 225 204 / var(--tw-bg-opacity))}.bg-\[\#F5F1E6\]{--tw-bg-opacity: 1;background-color:rgb(245 241 230 / var(--tw-bg-opacity))}.bg-amber-50\/70{background-color:#fffbebb3}.bg-merino{--tw-bg-opacity: 1;background-color:rgb(247 242 232 / var(--tw-bg-opacity))}.bg-merino-300{--tw-bg-opacity: 1;background-color:rgb(218 191 151 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.p-2{padding:.5rem}.p-4{padding:1rem}.p-main-content{padding:var(--cg-main-space-vertical) var(--cg-main-space-card-placeholder-width) var(--cg-main-space-vertical) var(--cg-main-space-horizontal)}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-main-hz{padding-left:var(--cg-main-space-horizontal);padding-right:var(--cg-main-space-horizontal)}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-main-vt{padding-top:var(--cg-main-space-vertical);padding-bottom:var(--cg-main-space-vertical)}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-0{padding-right:0!important}.\!pt-2{padding-top:.5rem!important}.\!pt-3{padding-top:.75rem!important}.pb-12{padding-bottom:3rem}.pb-6{padding-bottom:1.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.\!text-right{text-align:right!important}.text-right{text-align:right}.align-top{vertical-align:top}.font-coral{font-family:QTVagaRound,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.\!text-accent{--tw-text-opacity: 1 !important;color:rgb(216 158 67 / var(--tw-text-opacity))!important}.\!text-gifting{--tw-text-opacity: 1 !important;color:rgb(237 123 103 / var(--tw-text-opacity))!important}.\!text-gifting\/80{color:#ed7b67cc!important}.\!text-green-600{--tw-text-opacity: 1 !important;color:rgb(22 163 74 / var(--tw-text-opacity))!important}.text-\[\#69ac52\]{--tw-text-opacity: 1;color:rgb(105 172 82 / var(--tw-text-opacity))}.text-accent{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/70{color:#ffffffb3}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.\!transition-none{transition-property:none!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.px-safe{padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left)}.pb-safe-or-4{padding-bottom:max(env(safe-area-inset-bottom),1rem)}.\@container{container-type:inline-size}.scrollbar-w-thin{scrollbar-width:thin}:root{--mdc-circular-progress-active-indicator-color: currentColor}.mat-mdc-dialog-container .mdc-dialog__surface{--mdc-dialog-container-color: #f7f2e8;--mdc-dialog-container-shape: 15px}:root{--mdc-secondary-navigation-tab-container-height: 48px;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group{width:100%;max-width:calc(100vw - var(--cg-main-space-horizontal) * 2)!important}.mat-mdc-tab-group .mat-mdc-tab-labels{justify-content:center;column-gap:.75rem}.mat-mdc-tab-group .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-group .mat-mdc-tab-header-pagination-after{padding:0}.mat-mdc-tab-group .mdc-tab{opacity:1!important;background:#ffffff4d;border:3px solid rgba(255,255,255,.3);font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border-radius:15px}.mat-mdc-tab-group .mdc-tab--active{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.mat-mdc-tab-group .mdc-tab__content{height:unset}.mat-mdc-tab-group .mdc-tab-indicator .mdc-tab-indicator__content--underline{display:none}.mat-mdc-tab-group .mat-mdc-tab-header{margin-bottom:.75rem}.mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron{--mat-tab-header-pagination-icon-color: #fff;border-width:5px 5px 0 0;height:13px;width:13px}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.3}.icon-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(var(--cg-icon-grid-min-size, 80px),1fr))}@media (min-width: 1024px){.icon-grid{--cg-icon-grid-min-size: 80px }}@media (min-width: 1280px){.icon-grid{--cg-icon-grid-min-size: 90px }}.icon-grid-item{background:#ffffff4d;border-radius:15px;padding:10%;transition:background-color .2s}.icon-grid-item img{width:100px}.icon-grid-item:hover{background:#fff9}.icon-grid-item.selected-icon{background:#fff}.icon-grid-item.checklist-item{padding:0;border:1px solid rgba(255,255,255,.3);--mdc-checkbox-state-layer-size: 20px}.icon-grid-item.checklist-item .mat-mdc-checkbox-touch-target{display:none}.icon-grid-item.checklist-item .mdc-checkbox__background{width:20px;height:20px}.icon-grid-item.checklist-item .app-item-icon{padding:10%}.icon-grid-item.checklist-item label{padding:6px 0 10px;border-top:1px solid rgba(255,255,255,.3);cursor:pointer}.icon-grid-item.checklist-item.checklist-checked{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity));background-color:#6ee7b74d}.icon-grid-item.checklist-item.checklist-checked:hover{background-color:#6ee7b799}.icon-grid-item.checklist-item.checklist-checked label{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity));color:#d1fae5e6}.icon-grid-item.checklist-item.checklist-checked.selected-icon{background-color:#6ee7b7b3}.icon-grid-item.checklist-item.checklist-checked.selected-icon label{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity));color:#d1fae5e6}.icon-grid-item.checklist-item.selected-icon label{border-color:#0006;color:#000000e6}.mat-mdc-form-field .mat-mdc-form-field-infix{width:var(--mat-form-field-infix-width, 180px)}.semi-transparent-form-field{--mat-form-field-container-height: 100%}.semi-transparent-form-field .mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-150%) scale(.85)}.semi-transparent-form-field .mdc-text-field{overflow:unset;padding:0}.semi-transparent-form-field .mat-mdc-form-field-flex{padding:.5rem 1rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));background:#ffffff4d;border:2px solid rgba(255,255,255,.3);font-weight:600;border-radius:15px}.semi-transparent-form-field .mdc-floating-label mat-label{background:#f7f2e800;transition:all .15s linear}.semi-transparent-form-field .mdc-floating-label--float-above mat-label{background:#f7f2e8;padding:0 4px;color:#000;border-radius:3px;display:block}.semi-transparent-form-field.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:unset}.btn{padding:.5rem 1rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));background:#ffffff4d;border:2px solid rgba(255,255,255,.3);font-weight:600;color:rgb(255 255 255/var(--tw-text-opacity));border-radius:15px}.btn .mdc-text-field{padding:0}.btn-secondary{color:#000;background:#fff;border-color:#0000004d}.mat-mdc-select-panel{padding:.5rem 1rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border:2px solid rgba(255,255,255,.3);font-weight:600;border-radius:15px!important;color:#ffffffbf;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);--mat-select-panel-background-color: rgba(0, 0, 0, .6)}.mat-mdc-form-field-subscript-wrapper{display:none}@font-face{font-family:QTVagaRound;src:url("./media/QTVagaRound-Bold-UBAJ7Y5K.woff2") format("woff2"),url("./media/QTVagaRound-Bold-X7CRLPFI.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:QTVagaRound;src:url("./media/QTVagaRound-QVJPVEU6.woff2") format("woff2"),url("./media/QTVagaRound-2WALPMVW.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}:root{--cg-icon-grid-min-size: 55px;--cg-min-header-height: 64px;--cg-min-footer-height: calc(56px + env(safe-area-inset-bottom)) ;--cg-card-padding: 20px;--cg-card-radius: 30px;--cg-card-icon-height: 140px;--cg-main-space-horizontal: .5rem;--cg-main-space-vertical: 1.5rem;--cg-main-space-card-placeholder-width: var(--cg-main-space-horizontal) }html{height:100%;width:100%}body{color:#5a4627;font-family:QTVagaRound,sans-serif;min-height:100%;background:linear-gradient(#0009,#0009) fixed,url("./media/bg-BALLEMED.jpg") center no-repeat fixed;background-size:cover,cover}.mdc-line-ripple{display:none}.mdc-tooltip__surface{--mdc-plain-tooltip-container-color: #f7f2e8;--mdc-plain-tooltip-supporting-text-size: 1.25rem;box-shadow:1px 1px 4px 1px #0003}table .mdc-data-table__header-row{height:48px}hr{border:none;height:4px;border-radius:2px;background:#7f7f7f1a}.drawer-close-button{position:absolute;right:15px;top:15px;z-index:1}.mat-sidenav.mat-drawer{box-shadow:none}.p-main-content.remove-placeholder-padding{--cg-main-space-card-placeholder-width: var(--cg-main-space-horizontal)}@media (min-width: 768px){:root{--cg-min-header-height: 80px}}@media (min-width: 1280px){:root{--cg-main-space-horizontal: 1.5rem;--cg-min-header-height: 108px;--cg-main-space-card-placeholder-width: calc(600px - var(--cg-main-space-vertical))}.mat-drawer-container{height:100%}.mat-drawer-inner-container{padding:var(--cg-main-space-vertical) var(--cg-main-space-horizontal)}.drawer-close-button{right:45px;top:75px}}td.mdc-data-table__cell{overflow:unset}.arrow{border:solid black;border-width:0 3px 3px 0;display:inline-block;padding:3px}.arrow.right{transform:rotate(-45deg)}.arrow.left{transform:rotate(135deg)}.arrow.up{transform:rotate(-135deg)}.arrow.down{translate:0 -3px;transform:rotate(45deg)}.mat-mdc-option .mdc-list-item__primary-text{flex-grow:1}.mat-mdc-form-field.btn.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field.btn .mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-50%)}.full-size-card-image{margin-top:calc(0px - var(--cg-card-padding));margin-inline:calc(0px - var(--cg-card-padding));border-top-left-radius:var(--cg-card-radius);border-top-right-radius:var(--cg-card-radius);overflow:hidden}.full-size-card-image.image-only{margin-bottom:calc(0px - var(--cg-card-padding));border-bottom-left-radius:var(--cg-card-radius);border-bottom-right-radius:var(--cg-card-radius)}.card-actions{display:flex;height:2rem;justify-content:flex-end;gap:1.5rem}.card-actions:has(+.full-size-card-image){--blur-color: rgb(255 255 255 / .5);--blur-distance: 1px;filter:drop-shadow(var(--blur-distance) var(--blur-distance) 0 var(--blur-color)) drop-shadow(calc(0px - var(--blur-distance)) calc(0px - var(--blur-distance)) 0 var(--blur-color)) drop-shadow(calc(0px - var(--blur-distance)) var(--blur-distance) 0 var(--blur-color)) drop-shadow(var(--blur-distance) calc(0px - var(--blur-distance)) 0 var(--blur-color));margin-bottom:calc(0px - var(--cg-card-padding))}.cdk-describedby-message-container.cdk-visually-hidden{display:none}@media (min-width: 1024px){.lg\:prose-xl{font-size:1.25rem;line-height:1.8}.lg\:prose-xl :where(p):not(:where([class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.lg\:prose-xl :where([class~=lead]):not(:where([class~=not-prose] *)){font-size:1.2em;line-height:1.5;margin-top:1em;margin-bottom:1em}.lg\:prose-xl :where(blockquote):not(:where([class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-left:1.0666667em}.lg\:prose-xl :where(h1):not(:where([class~=not-prose] *)){font-size:2.8em;margin-top:0;margin-bottom:.8571429em;line-height:1}.lg\:prose-xl :where(h2):not(:where([class~=not-prose] *)){font-size:1.8em;margin-top:1.5555556em;margin-bottom:.8888889em;line-height:1.1111111}.lg\:prose-xl :where(h3):not(:where([class~=not-prose] *)){font-size:1.5em;margin-top:1.6em;margin-bottom:.6666667em;line-height:1.3333333}.lg\:prose-xl :where(h4):not(:where([class~=not-prose] *)){margin-top:1.8em;margin-bottom:.6em;line-height:1.6}.lg\:prose-xl :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\:prose-xl :where(figcaption):not(:where([class~=not-prose] *)){font-size:.9em;line-height:1.5555556;margin-top:1em}.lg\:prose-xl :where(code):not(:where([class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(h2 code):not(:where([class~=not-prose] *)){font-size:.8611111em}.lg\:prose-xl :where(h3 code):not(:where([class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(pre):not(:where([class~=not-prose] *)){font-size:.9em;line-height:1.7777778;margin-top:2em;margin-bottom:2em;border-radius:.5rem;padding:1.1111111em 1.3333333em}.lg\:prose-xl :where(ol):not(:where([class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-left:1.6em}.lg\:prose-xl :where(ul):not(:where([class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-left:1.6em}.lg\:prose-xl :where(li):not(:where([class~=not-prose] *)){margin-top:.6em;margin-bottom:.6em}.lg\:prose-xl :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.4em}.lg\:prose-xl :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.4em}.lg\:prose-xl :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(hr):not(:where([class~=not-prose] *)){margin-top:2.8em;margin-bottom:2.8em}.lg\:prose-xl :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(table):not(:where([class~=not-prose] *)){font-size:.9em;line-height:1.5555556}.lg\:prose-xl :where(thead th):not(:where([class~=not-prose] *)){padding-right:.6666667em;padding-bottom:.8888889em;padding-left:.6666667em}.lg\:prose-xl :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.lg\:prose-xl :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.lg\:prose-xl :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.8888889em .6666667em}.lg\:prose-xl :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.lg\:prose-xl :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.lg\:prose-xl :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}}.hover\:bg-black\/10:hover{background-color:#0000001a}.hover\:bg-merino-200:hover{--tw-bg-opacity: 1;background-color:rgb(232 217 192 / var(--tw-bg-opacity))}.hover\:\!text-black:hover{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.hover\:\!text-green-800:hover{--tw-text-opacity: 1 !important;color:rgb(22 101 52 / var(--tw-text-opacity))!important}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-neutral-300:hover{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.focus-visible\:\!text-black:focus-visible{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity))!important}.focus-visible\:\!text-green-800:focus-visible{--tw-text-opacity: 1 !important;color:rgb(22 101 52 / var(--tw-text-opacity))!important}.focus-visible\:text-black:focus-visible{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.group:hover .group-hover\:bg-\[\#F2DBB7\]{--tw-bg-opacity: 1;background-color:rgb(242 219 183 / var(--tw-bg-opacity))}@container (min-width: 48rem){.\@3xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 640px){.sm\:mr-0{margin-right:0}.sm\:mt-8{margin-top:2rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-8{padding:2rem}.sm\:pr-10{padding-right:2.5rem}}@media (min-width: 768px){.md\:col-span-2{grid-column:span 2 / span 2}.md\:ml-auto{margin-left:auto}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:hidden{display:none}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grow-0{flex-grow:0}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:\!top-5{top:1.25rem!important}.xl\:block{display:block}.xl\:hidden{display:none}.xl\:\!h-12{height:3rem!important}.xl\:h-16{height:4rem}.xl\:h-main{height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}.xl\:\!w-12{width:3rem!important}.xl\:w-16{width:4rem}.xl\:overflow-auto{overflow:auto}.xl\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1536px){.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}