From 65b88c49976aaeb3e8e052cc69b9a3107561a282 Mon Sep 17 00:00:00 2001 From: alberto-art3ch Date: Sat, 27 Apr 2024 23:43:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20b380f?= =?UTF-8?q?7f630837fcc3263d74255059b2ed6d41984=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/env.js | 2 +- assets/translations/cs-CS.json | 136 ++++++++++++++++++++ assets/translations/de-DE.json | 136 ++++++++++++++++++++ assets/translations/en-US.json | 150 ++++++++++++++++++++-- assets/translations/es-MX.json | 182 +++++++++++++++++++++++---- assets/translations/fr-FR.json | 136 ++++++++++++++++++++ assets/translations/it-IT.json | 136 ++++++++++++++++++++ assets/translations/ko-KO.json | 136 ++++++++++++++++++++ assets/translations/lt-LT.json | 136 ++++++++++++++++++++ assets/translations/lv-LV.json | 136 ++++++++++++++++++++ assets/translations/ne-NE.json | 136 ++++++++++++++++++++ assets/translations/pt-PT.json | 136 ++++++++++++++++++++ assets/translations/sw-SW.json | 136 ++++++++++++++++++++ main.js | 2 +- src_app_savings_savings_module_ts.js | 2 +- 15 files changed, 1665 insertions(+), 33 deletions(-) diff --git a/assets/env.js b/assets/env.js index f5f6ea8aca..ca18313baf 100644 --- a/assets/env.js +++ b/assets/env.js @@ -30,6 +30,6 @@ window['env']['waitTimeForCOBCatchUp'] = ''; // Time in milliseconds for Session idle timeout, default 300000 seconds - window['env']['sessionIdleTimeout'] = '60000'; + window['env']['sessionIdleTimeout'] = '0'; })(this); diff --git a/assets/translations/cs-CS.json b/assets/translations/cs-CS.json index f0df27abc0..8646d44661 100644 --- a/assets/translations/cs-CS.json +++ b/assets/translations/cs-CS.json @@ -514,8 +514,138 @@ "Waive Charge": "Zřeknutí se poplatku", "Week": "Týden", "Withdraw": "Ustoupit", + "View Active Charges": "Zobrazit aktivní poplatky", + "View Inactive Charges": "Zobrazit neaktivní poplatky", "Yes": "Ano" }, + "catalogs": { + "Active": "Aktivní", + "Inactive": "Inactive", + "Loans": "Loans", + "Client": "Client", + "Loan": "Loan", + "Savings": "Savings", + "Shares": "Shares", + "Regular": "Regular", + "Account transfer": "Account transfer", + "Flat": "Flat", + "% Amount": "% Amount", + "% Interest": "% Interest", + "% Loan Amount + Interest": "% Loan Amount + Interest", + "Disbursement": "Disbursement", + "Specified due date": "Specified due date", + "Installment Fee": "Installment Fee", + "Overdue Fees": "Overdue Fees", + "Tranche Disbursement": "Tranche Disbursement", + "Savings Activation": "Savings Activation", + "Saving No Activity Fee": "Ušetříte žádný poplatek za aktivitu", + "Withdrawal Fee": "Withdrawal Fee", + "Annual Fee": "Annual Fee", + "Monthly Fee": "Monthly Fee", + "Weekly Fee": "Weekly Fee", + "Share Account Activate": "Share Account Activate", + "Share Purchase": "Share Purchase", + "Share Redeem": "Share Redeem", + "Days": "Dny", + "Weeks": "týdny", + "Months": "měsíce", + "Years": "let", + "Deposit": "Vklad", + "Withdrawal": "Vybrání", + "Interest Posting": "Zveřejnění zájmu", + "Waive Charge": "Zřeknutí se poplatku", + "Pay Charge": "Zaplatit poplatek", + "Dividend Payout": "Výplata dividend", + "Accrual": "Akruální", + "Initiate Transfer": "Spusťte přenos", + "Approve Transfer": "Schválit převod", + "Withdraw Transfer": "Odebrat převod", + "Writtenoff": "Odepsané", + "Overdraft Interest": "Úrok z kontokorentu", + "Withhold Tax": "Srážková daň", + "Escheat": "Escheat", + "On Hold": "Pozastaveno", + "Release": "Uvolnění", + "Daily": "Denně", + "Monthly": "Měsíční", + "Quarterly": "Čtvrtletně", + "Semi-Annual": "Pololetní", + "Annually": "Každoročně", + "Weekly": "Týdně", + "Daily Balance": "Denní zůstatek", + "Average Daily Balance": "Průměrný denní zůstatek", + "BiAnnual": "Pololetní", + "360 Days": "360 dní", + "365 Days": "365 dní", + "30 Days": "30 dní", + "364 Days": "364 dní", + "Actual": "Aktuální", + "Disbursement Date": "Datum výplaty", + "Submitted On Date": "Odesláno dne", + "Per year": "Za rok", + "Per month": "Za měsíc", + "Whole term": "Celé období", + "Same as repayment period": "Stejné jako doba splácení", + "Declining Balance": "Klesající zůstatek", + "Cumulative": "Kumulativní", + "Progressive": "Progresivní", + "Penalty": "Trest", + "Fees": "Poplatky", + "Fee": "Poplatek", + "Horizontal": "Horizontální", + "Vertical": "Vertikální", + "Advanced payment allocation strategy": "Pokročilá strategie alokace plateb", + "Past due penalty": "Po splatnosti pokuta", + "Past due fee": "Poplatek po splatnosti", + "Past due principal": "Po splatnosti jistina", + "Past due interest": "Úroky po splatnosti", + "Due penalty": "Náležitý trest", + "Due fee": "Dlužný poplatek", + "Due principal": "Splatná jistina", + "Due interest": "Přiměřený zájem", + "In advanced penalty": "Pokuta předem", + "In advanced fee": "Poplatek předem", + "In advanced principal": "Předem ředitel", + "In advanced interest": "Zájem předem", + "Next installment": "Další splátka", + "Last installment": "Poslední splátka", + "Reamotization": "Reamotizace", + "equals": "rovná se", + "greater than": "větší než", + "Equal installments": "Stejné splátky", + "Equal principal payments": "Stejné splátky jistiny", + "Till Pre-Close Date": "Do data předběžného uzavření", + "Till Rest Frequency Date": "Do zbývajícího data frekvence", + "Reduce EMI amount": "Snížit částku", + "Reduce number of installments": "Snížit počet splátek", + "Reschedule next repayments": "Přeplánujte další splátky", + "None": "Hlavní město", + "Interest": "Zájem", + "Fee and Interest": "Poplatek a úrok", + "Creocore Unique": "Unikátní Creocore", + "Early Repayment Strategy": "Strategie předčasného splacení", + "Penalties, Fees, Interest, Principal order": "Sankce, poplatky, úroky, jistina", + "HeavensFamily Unique": "Unikátní Nebeská rodina", + "Interest, Principal, Penalties, Fees Order": "Úroky, jistina, penále, poplatky", + "Principal, Interest, Penalties, Fees Order": "Jistina, úrok, penále, příkaz k poplatkům", + "Overdue/Due Fee/Int,Principal": "Po splatnosti/Poplatek po splatnosti/Int, jistina", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Splatná pokuta, poplatek, úrok, jistina, Předem jistina, penále, poplatek, úrok", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Splatná pokuta, úrok, jistina, poplatek, Pokuta předem, úrok, jistina, poplatek", + "first": "První", + "second": "druhý", + "third": "Třetí", + "fourth": "čtyři", + "last": "poslední", + "on day": "ve dne", + "SUNDAY": "NEDĚLE", + "MONDAY": "PONDĚLÍ", + "TUESDAY": "ÚTERÝ", + "WEDNESDAY": "STŘEDA", + "THURSDAY": "ČTVRTEK", + "FRIDAY": "PÁTEK", + "SATURDAY": "SOBOTA", + "Invalid": "Neplatný" + }, "commons": { "50 characters long": "50 znaků dlouhé", "8 characters long": "8 znaků dlouhé", @@ -573,6 +703,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Přidat účet", "Add Currency Form": "Přidat formulář měny", + "Add Client Identifier": "Přidat identifikátor klienta", "Add Journal Entry Form": "Přidat formulář pro zápis do deníku", "Add Loan Collateral": "Přidejte zajištění úvěru", "Add Role": "Přidat roli", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Datum zahájení dividendového období", "Dividends": "Dividendy", "Documents": "Dokumenty", + "Document Key": "Klíč dokumentu", + "Document Type": "Typ dokumentu", "Dormancy Tracking": "Sledování dormance", "Download": "Stažení", "Due": "Z důvodu", @@ -2155,6 +2288,8 @@ }, "task-management component": "komponenta řízení úkolů", "to": "na", + "Down Payments": "Zálohy", + "Enable Down Payments": "Povolit zálohové platby", "valid": "platný" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "Záznamy v časopise", "Mandatory": "Povinné", "Voluntary": "Dobrovolný", + "Write a note": "Napište poznámku", "“Maker-Checker” principle requires every tasks": "Princip „Maker-Checker“ vyžaduje, aby každý úkol prováděli dva lidé, aby se snížila pravděpodobnost chyb a zneužití. Jedna osoba proces iniciuje a druhá jej dokončí." }, "titles": { diff --git a/assets/translations/de-DE.json b/assets/translations/de-DE.json index 4e605ed098..24a9a749c0 100644 --- a/assets/translations/de-DE.json +++ b/assets/translations/de-DE.json @@ -514,8 +514,138 @@ "Waive Charge": "Auf Gebühr verzichten", "Week": "Woche", "Withdraw": "Zurückziehen", + "View Active Charges": "Aktive Gebühren anzeigen", + "View Inactive Charges": "Inaktive Gebühren anzeigen", "Yes": "Ja" }, + "catalogs": { + "Active": "Aktiv", + "Inactive": "Inaktiv", + "Loans": "Kredite", + "Client": "Klient", + "Loan": "Darlehen", + "Savings": "Ersparnisse", + "Shares": "Anteile", + "Regular": "Regulär", + "Account transfer": "Kontoübertragung", + "Flat": "Wohnung", + "% Amount": "Menge", + "% Interest": "Interesse", + "% Loan Amount + Interest": "Kreditbetrag + Zinsen", + "Disbursement": "Auszahlung", + "Specified due date": "Angegebenes Fälligkeitsdatum", + "Installment Fee": "Ratenzahlungsgebühr", + "Overdue Fees": "Überfällige Gebühren", + "Tranche Disbursement": "Tranchenauszahlung", + "Savings Activation": "Sparaktivierung", + "Saving No Activity Fee": "Sparen Sie keine Aktivitätsgebühr", + "Withdrawal Fee": "Abhebegebühr", + "Annual Fee": "Jahresgebühr", + "Monthly Fee": "Monatliche Gebühr", + "Weekly Fee": "Wöchentliche Gebühr", + "Share Account Activate": "Freigabekonto aktivieren", + "Share Purchase": "Aktienkauf", + "Share Redeem": "Teilen, einlösen", + "Days": "Tage", + "Weeks": "Wochen", + "Months": "Monate", + "Years": "Jahre", + "Deposit": "Kaution", + "Withdrawal": "Rückzug", + "Interest Posting": "Zinsbuchung", + "Waive Charge": "Auf Gebühr verzichten", + "Pay Charge": "Gebühr bezahlen", + "Dividend Payout": "Dividendenzahlung", + "Accrual": "Rückstellung", + "Initiate Transfer": "Übertragung einleiten", + "Approve Transfer": "Übertragung genehmigen", + "Withdraw Transfer": "Überweisung zurückziehen", + "Writtenoff": "Abgeschrieben", + "Overdraft Interest": "Überziehungszinsen", + "Withhold Tax": "Quellensteuer", + "Escheat": "Betrug", + "On Hold": "In der Warteschleife", + "Release": "Freigeben", + "Daily": "Täglich", + "Monthly": "Monatlich", + "Quarterly": "Vierteljährlich", + "Semi-Annual": "Halbjährlich", + "Annually": "Jährlich", + "Weekly": "Wöchentlich", + "Daily Balance": "Tagesbilanz", + "Average Daily Balance": "Durchschnittlicher Tagessaldo", + "BiAnnual": "Zweijährlich", + "360 Days": "360 Tage", + "365 Days": "365 Tage", + "30 Days": "30 Tage", + "364 Days": "364 Tage", + "Actual": "Tatsächlich", + "Disbursement Date": "Auszahlungsdatum", + "Submitted On Date": "Eingereicht am Datum", + "Per year": "Pro Jahr", + "Per month": "Pro Monat", + "Whole term": "Ganze Amtszeit", + "Same as repayment period": "Entspricht der Rückzahlungsfrist", + "Declining Balance": "Sinkendes Gleichgewicht", + "Cumulative": "Kumulativ", + "Progressive": "Progressiv", + "Penalty": "Strafe", + "Fees": "Gebühren", + "Fee": "Gebühr", + "Horizontal": "Horizontal", + "Vertical": "Vertikal", + "Advanced payment allocation strategy": "Erweiterte Zahlungszuweisungsstrategie", + "Past due penalty": "Überfällige Strafe", + "Past due fee": "Überfällige Gebühr", + "Past due principal": "Überfälliger Kapitalbetrag", + "Past due interest": "Überfällige Zinsen", + "Due penalty": "Fällige Strafe", + "Due fee": "Fällige Gebühr", + "Due principal": "Fälliger Auftraggeber", + "Due interest": "Geschuldete Zinsen", + "In advanced penalty": "Vorabstrafe", + "In advanced fee": "Gebühr im Voraus", + "In advanced principal": "Im Voraus Auftraggeber", + "In advanced interest": "Im Voraus Zinsen", + "Next installment": "Nächste Folge", + "Last installment": "Letzte Rate", + "Reamotization": "Reamotisierung", + "equals": "gleicht", + "greater than": "größer als", + "Equal installments": "Gleiche Raten", + "Equal principal payments": "Gleiche Kapitalzahlungen", + "Till Pre-Close Date": "Bis zum Vorschlussdatum", + "Till Rest Frequency Date": "Bis Ruhefrequenzdatum", + "Reduce EMI amount": "Betrag reduzieren", + "Reduce number of installments": "Reduzieren Sie die Anzahl der Raten", + "Reschedule next repayments": "Planen Sie die nächsten Rückzahlungen neu", + "None": "Hauptstadt", + "Interest": "Interesse", + "Fee and Interest": "Gebühr und Zinsen", + "Creocore Unique": "Creocore Einzigartig", + "Early Repayment Strategy": "Strategie zur vorzeitigen Rückzahlung", + "Penalties, Fees, Interest, Principal order": "Strafen, Gebühren, Zinsen, Hauptordnung", + "HeavensFamily Unique": "HeavensFamily Unique", + "Interest, Principal, Penalties, Fees Order": "Zins-, Kapital-, Vertragsstrafen- und Gebührenordnung", + "Principal, Interest, Penalties, Fees Order": "Anordnung zu Kapital, Zinsen, Vertragsstrafen und Gebühren", + "Overdue/Due Fee/Int,Principal": "Überfällige/fällige Gebühr/Int, Kapital", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Fällige Vertragsstrafe, Gebühr, Zinsen, Kapital, Im Voraus fällige Vertragsstrafe, Vertragsstrafe, Gebühr, Zinsen", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Fällige Strafe, Zinsen, Kapital, Gebühr, Vorabstrafe, Zinsen, Kapital, Gebühr", + "first": "Erste", + "second": "zweite", + "third": "dritte", + "fourth": "vier", + "last": "zuletzt", + "on day": "am Tag", + "SUNDAY": "SONNTAG", + "MONDAY": "MONTAG", + "TUESDAY": "DIENSTAG", + "WEDNESDAY": "MITTWOCH", + "THURSDAY": "DONNERSTAG", + "FRIDAY": "FREITAG", + "SATURDAY": "SAMSTAG", + "Invalid": "Ungültig" + }, "commons": { "50 characters long": "50 Zeichen lang", "8 characters long": "8 Zeichen lang", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Konto hinzufügen", "Add Currency Form": "Währungsformular hinzufügen", + "Add Client Identifier": "Client-ID hinzufügen", "Add Journal Entry Form": "Journaleintragsformular hinzufügen", "Add Loan Collateral": "Kreditsicherheiten hinzufügen", "Add Role": "Rolle hinzufügen", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Startdatum des Dividendenzeitraums", "Dividends": "Dividenden", "Documents": "Unterlagen", + "Document Key": "Dokumentschlüssel", + "Document Type": "Art des Dokuments", "Dormancy Tracking": "Ruheverfolgung", "Download": "Herunterladen", "Due": "Fällig", @@ -2155,6 +2288,8 @@ }, "task-management component": "Aufgabenverwaltungskomponente", "to": "Zu", + "Down Payments": "Anzahlungen", + "Enable Down Payments": "Anzahlungen aktivieren", "valid": "gültig" }, "links": { @@ -2879,6 +3014,7 @@ "Journal Entries": "Journaleinträge", "Mandatory": "Obligatorisch", "Voluntary": "Freiwillig", + "Write a note": "Schreib eine Notitz", "“Maker-Checker” principle requires every tasks": "Das „Maker-Checker“-Prinzip erfordert, dass jede Aufgabe von zwei Personen erledigt wird, um das Risiko von Fehlern und Missbrauch zu verringern. Eine Person leitet den Prozess ein und die zweite Person schließt ihn ab." }, "titles": { diff --git a/assets/translations/en-US.json b/assets/translations/en-US.json index 4832a349e1..b4738595a7 100644 --- a/assets/translations/en-US.json +++ b/assets/translations/en-US.json @@ -514,8 +514,138 @@ "Waive Charge": "Waive Charge", "Week": "Week", "Withdraw": "Withdraw", + "View Active Charges": "View Active Charges", + "View Inactive Charges": "View Inactive Charges", "Yes": "Yes" }, + "catalogs": { + "Active": "Active", + "Inactive": "Inactive", + "Loans": "Loans", + "Client": "Client", + "Loan": "Loan", + "Savings": "Savings", + "Shares": "Shares", + "Regular": "Regular", + "Account transfer": "Account transfer", + "Flat": "Flat", + "% Amount": "% Amount", + "% Interest": "% Interest", + "% Loan Amount + Interest": "% Loan Amount + Interest", + "Disbursement": "Disbursement", + "Specified due date": "Specified due date", + "Installment Fee": "Installment Fee", + "Overdue Fees": "Overdue Fees", + "Tranche Disbursement": "Tranche Disbursement", + "Savings Activation": "Savings Activation", + "Saving No Activity Fee": "Saving No Activity Fee", + "Withdrawal Fee": "Withdrawal Fee", + "Annual Fee": "Annual Fee", + "Monthly Fee": "Monthly Fee", + "Weekly Fee": "Weekly Fee", + "Share Account Activate": "Share Account Activate", + "Share Purchase": "Share Purchase", + "Share Redeem": "Share Redeem", + "Days": "Days", + "Weeks": "Weeks", + "Months": "Months", + "Years": "Years", + "Deposit": "Deposit", + "Withdrawal": "Withdrawal", + "Interest Posting": "Interest Posting", + "Waive Charge": "Waive Charge", + "Pay Charge": "Pay Charge", + "Dividend Payout": "Dividend Payout", + "Accrual": "Accrual", + "Initiate Transfer": "Initiate Transfer", + "Approve Transfer": "Approve Transfer", + "Withdraw Transfer": "Withdraw Transfer", + "Writtenoff": "Writtenoff", + "Overdraft Interest": "Overdraft Interest", + "Withhold Tax": "Withhold Tax", + "Escheat": "Escheat", + "On Hold": "On Hold", + "Release": "Release", + "Daily": "Daily", + "Monthly": "Monthly", + "Weekly": "Weekly", + "Quarterly": "Quartely", + "Semi-Annual": "Semi-Annual", + "Annually": "Annually", + "Daily Balance": "Daily Balance", + "Average Daily Balance": "Average Daily Balance", + "BiAnnual": "BiAnnual", + "360 Days": "360 Days", + "365 Days": "365 Days", + "30 Days": "30 Days", + "364 Days": "364 Days", + "Actual": "Actual", + "Disbursement Date": "Disbursement Date", + "Submitted On Date": "Submitted On Date", + "Per year": "Per year", + "Per month": "Per month", + "Whole term": "Whole Term", + "Same as repayment period": "Same as repayment period", + "Declining Balance": "Declining Balance", + "Cumulative": "Cumulative", + "Progressive": "Progressive", + "Penalty": "Penalty", + "Fees": "Fees", + "Fee": "Fee", + "Horizontal": "Horizontal", + "Vertical": "Vertical", + "Advanced payment allocation strategy": "Advanced payment allocation strategy", + "Past due penalty": "Past due penalty", + "Past due fee": "Past due fee", + "Past due principal": "Past due principal", + "Past due interest": "Past due interest", + "Due penalty": "Due penalty", + "Due fee": "Due fee", + "Due principal": "Due principal", + "Due interest": "Due interest", + "In advanced penalty": "In advanced penalty", + "In advanced fee": "In advanced fee", + "In advanced principal": "In advanced principal", + "In advanced interest": "In advanced interest", + "Next installment": "Next installment", + "Last installment": "Last installment", + "Reamotization": "Reamotization", + "equals": "equals", + "greater than": "greater than", + "Equal installments": "Equal installments", + "Equal principal payments": "Equal principal payments", + "Till Pre-Close Date": "Till Pre-Close Date", + "Till Rest Frequency Date": "Till Rest Frequency Date", + "Reduce EMI amount": "Reduce EMI Amount", + "Reduce number of installments": "Reduce number of installments", + "Reschedule next repayments": "Reschedule next repayments", + "None": "None", + "Interest": "Interest", + "Fee and Interest": "Fee and Interest", + "Creocore Unique": "Creocore Unique", + "Early Repayment Strategy": "Early Repayment Strategy", + "Penalties, Fees, Interest, Principal order": "Penalties, Fees, Interest, Principal order", + "HeavensFamily Unique": "HeavensFamily Unique", + "Interest, Principal, Penalties, Fees Order": "Interest, Principal, Penalties, Fees Order", + "Principal, Interest, Penalties, Fees Order": "Principal, Interest, Penalties, Fees Order", + "Overdue/Due Fee/Int,Principal": "Overdue/Due Fee/Int,Principal", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee", + "first": "first", + "second": "second", + "third": "third", + "fourth": "four", + "last": "last", + "on day": "on day", + "SUNDAY": "SUNDAY", + "MONDAY": "MONDAY", + "TUESDAY": "TUESDAY", + "WEDNESDAY": "WEDNESDAY", + "THURSDAY": "THURSDAY", + "FRIDAY": "FRIDAY", + "SATURDAY": "SATURDAY", + "Invalid": "Invalid" + }, "commons": { "50 characters long": "50 characters long", "8 characters long": "8 characters long", @@ -546,7 +676,7 @@ "is required": "is required", "least one uppercase": "least one uppercase", "lowercase and special character": "lowercase and special character", - "must be":"must be", + "must be": "must be", "must be a positive integer": "must be a positive integer", "must be an integer between -9999 and 9999": "must be an integer between -9999 and 9999", "must be between 1 and 12": "must be between 1 and 12", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Add Account", "Add Currency Form": "Add Currency Form", + "Add Client Identifier": "Add Client Identifier", "Add Journal Entry Form": "Add Journal Entry Form", "Add Loan Collateral": "Add Loan Collateral", "Add Role": "Add Role", @@ -649,7 +780,7 @@ "Default Shares per Client": "Default Shares per Client", "Define New Mapping": "Define New Mapping", "Define Tax Components": "Define Tax Components", - "Define Tax Groups": "Define Tax Groups", + "Define Tax Groups": "Define Tax Groups", "Delete": "Delete", "Delete Client Signature": "Delete Client Signature", "Delete Checker": "Delete Checker", @@ -988,7 +1119,7 @@ "Amount Recieved/Returned": "Amount Received/Returned", "Amount to be Reserved": "Amount to be Reserved", "Annual Fees Transaction Date": "Annual Fees Transaction Date", - "Applies To":"Applies To", + "Applies To": "Applies To", "Applicable From Date": "Applicable From Date", "Applicant": "Applicant", "Application Date": "Application Date", @@ -1058,7 +1189,7 @@ "Cashier/Staff": "Cashier/Staff", "Category": "Category", "Category Name": "Category Name", - "Calculation":"Calculation", + "Calculation": "Calculation", "Center Name": "Center Name", "Change Repayment Date": "Change Repayment Date", "Changes Affection Date": "Changes Affection Date", @@ -1264,6 +1395,8 @@ "Dividend Period Start Date": "Dividend Period Start Date", "Dividends": "Dividends", "Documents": "Documents", + "Document Key": "Document Key", + "Document Type": "Document Type", "Dormancy Tracking": "Dormancy Tracking", "Download": "Download", "Due": "Due", @@ -1874,7 +2007,7 @@ "Repeats On (M/d)": "Repeats On (M/d)", "Repeats on Day": "Repeats on Day", "Repeats?": "Repeats?", - "Repeat Every":"Repeat Every", + "Repeat Every": "Repeat Every", "Repetition Frequency": "Repetition Frequency", "Repetition Interval": "Repetition Interval", "Report Category": "Report Category", @@ -2014,7 +2147,7 @@ "Theme": "Theme", "Theme and Font": "Theme and Font", "Thursday": "Thursday", - "Time":"Time", + "Time": "Time", "To": "To", "To Account": "To Account", "To Account Type": "To Account Type", @@ -2154,6 +2287,8 @@ }, "task-management component": "task-management component", "to": "to", + "Down Payments": "Down Payments", + "Enable Down Payments": "Enable Down Payments", "valid": "valid" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "Journal Entries", "Mandatory": "Mandatory", "Voluntary": "Voluntary", + "Write a note": "Write a note", "“Maker-Checker” principle requires every tasks": "The “Maker-Checker” principle requires every tasks to be completed by two people to reduce the chance of errors and misuse. One person initiates the process and the second completes it." }, "titles": { @@ -3078,4 +3214,4 @@ "loan product will be active and available to clients": "The date that the loan product will be active and available to clients. If blank, the loan product will be active as soon as it is created.", "loan product will become inactive and unavailable to clients": "The date that the loan product will become inactive and unavailable to clients. If blank, the load product will never become inactive." } -} +} \ No newline at end of file diff --git a/assets/translations/es-MX.json b/assets/translations/es-MX.json index 95b671c992..ea0cc91a29 100644 --- a/assets/translations/es-MX.json +++ b/assets/translations/es-MX.json @@ -27,7 +27,7 @@ "validation.msg.charge.chargeAppliesTo.cannot.be.blank": "El cargo se aplica a no puede estar en blanco.", "validation.msg.charge.chargeCalculationType.cannot.be.blank": "El cálculo del cargo no puede estar en blanco.", "validation.msg.charge.chargeCalculationType.is.not.one.of.expected.enumerations": "La opción de tipo de cálculo de cargo seleccionada no es válida.", - "validation.msg.charge.chargePaymentMode.cannot.be.blank": "El modo de pago del cargo no puede estar en blanco.", + "validation.msg.charge.chargePaymentMode.cannot.be.blank": "La forma de pago del cargo no puede estar en blanco.", "validation.msg.charge.chargeTimeType.cannot.be.blank": "El tiempo de comisión no puede estar en blanco.", "validation.msg.charge.chargeTimeType.is.not.within.expected.range": "La opción de tiempo de comisión seleccionada no es válida.", "validation.msg.charge.currencyCode.cannot.be.blank": "El código de moneda no puede estar en blanco.", @@ -329,7 +329,7 @@ "Bulk JLG Loan Application": "Solicitud de Crédito JLG a granel", "Buy Back Loan": "Crédito de recompra", "Cancel": "Cancelar", - "Cancel Sell Loan": "Cancelar préstamo de venta", + "Cancel Sell Loan": "Cancelar venta de Crédito", "Capture": "Captura", "Centers Saving Application": "Solicitud de Ahorro de Centros", "Change Password": "Cambiar la contraseña", @@ -468,7 +468,7 @@ "Run Periodic Accruals": "Ejecutar acumulaciones periódicas", "Run Report": "Sacar un reporte", "Run Selected Jobs": "Ejecutar procesos seleccionados", - "Sell Loan": "Vender préstamo", + "Sell Loan": "Vender el Crédito", "Save Changes": "Guardar cambios", "Search": "Buscar", "Search Instructions": "Instrucciones de búsqueda", @@ -514,8 +514,138 @@ "Waive Charge": "Renunciar a Comisión", "Week": "Semana", "Withdraw": "Retirar", + "View Active Charges": "Ver Comisiones Activas", + "View Inactive Charges": "Ver Comisiones inactivas", "Yes": "Sí" }, + "catalogs": { + "Active": "Activo", + "Inactive": "Inactivo", + "Loans": "Préstamos", + "Client": "Cliente", + "Loan": "Crédito", + "Savings": "Ahorros", + "Shares": "Acciones", + "Regular": "Regular", + "Account transfer": "Transferencia de cuenta", + "Flat": "Monto fijo", + "% Amount": "% Monto del Crédito", + "% Interest": "% Interés", + "% Loan Amount + Interest": "Monto del Crédito + Interés", + "Disbursement": "Desembolso", + "Specified due date": "Fecha de Vencimiento", + "Installment Fee": "Cuota de pago", + "Overdue Fees": "Cuotas vencidas", + "Tranche Disbursement": "Multiple Desembolso", + "Savings Activation": "Activación de Cuenta", + "Saving No Activity Fee": "Ahorro sin Actividad", + "Withdrawal Fee": "Comisión por retiro", + "Annual Fee": "Comisión anual", + "Monthly Fee": "Comisión mensual", + "Weekly Fee": "Comisión semanal", + "Share Account Activate": "Activación de Cuenta", + "Share Purchase": "Compra de acciones", + "Share Redeem": "Canjear Acciones", + "Days": "Días", + "Weeks": "Semanas", + "Months": "Meses", + "Years": "Años", + "Deposit": "Depósito", + "Withdrawal": "Retiro", + "Interest Posting": "intereses", + "Waive Charge": "Renunciar a Comisión", + "Pay Charge": "Pagar Comisión", + "Dividend Payout": "Pago de dividendos", + "Accrual": "Devengo", + "Initiate Transfer": "Iniciar transferencia", + "Approve Transfer": "Aprobar transferencia", + "Withdraw Transfer": "Retirar transferencia", + "Writtenoff": "Cancelado", + "Overdraft Interest": "Intereses por sobregiro", + "Withhold Tax": "Retención impuesto", + "Escheat": "Privación de propiedad", + "On Hold": "Retener Monto", + "Release": "Liberar Monto", + "Daily": "Diario", + "Monthly": "Mensual", + "Quarterly": "Trimestral", + "Semi-Annual": "Semestral", + "Annually": "Anual", + "Weekly": "Semanal", + "Daily Balance": "Saldo Diario", + "Average Daily Balance": "Saldo Diario Promedio", + "BiAnnual": "Semestral", + "360 Days": "360 Días", + "365 Days": "365 Dias", + "30 Days": "30 Dias", + "364 Days": "364 Días", + "Actual": "Actual", + "Disbursement Date": "Fecha de Desembolso", + "Submitted On Date": "Fecha de Registro", + "Per year": "Por Año", + "Per month": "Por Mes", + "Whole term": "Plazo completo", + "Same as repayment period": "Igual al periodo de amortización", + "Declining Balance": "Saldo Decreciente", + "Cumulative": "Acumulativa", + "Progressive": "Progresiva", + "Penalty": "Penalización", + "Fees": "Comisiones", + "Fee": "Comisión", + "Horizontal": "Horizontal", + "Vertical": "Vertical", + "Advanced payment allocation strategy": "Estrategia avanzada de asignación de pagos", + "Past due penalty": "Penalización vencida", + "Past due fee": "Comisión vencida", + "Past due principal": "Capital vencido", + "Past due interest": "Interes vencido", + "Due penalty": "Vencimiento de Penalización", + "Due fee": "Vencimiento de Comisión", + "Due principal": "Vencimiento de Capital", + "Due interest": "Vencimiento de interés", + "In advanced penalty": "Penalización anticipada", + "In advanced fee": "Comisión anticipada", + "In advanced principal": "Capital anticipado", + "In advanced interest": "interés anticipado", + "Next installment": "Próxima cuota", + "Last installment": "Última cuota", + "Reamotization": "Reamotización", + "equals": "Igual a", + "greater than": "Mayor a", + "Equal installments": "Cuotas iguales", + "Equal principal payments": "Pagos iguales de capital", + "Till Pre-Close Date": "Hasta la fecha de cierre previo", + "Till Rest Frequency Date": "Hasta la Frecuencia Fecha", + "Reduce EMI amount": "Reducir Monto de Cuota", + "Reduce number of installments": "Reducir el número de cuotas", + "Reschedule next repayments": "Reprogramar próximos pagos", + "None": "Capital", + "Interest": "Interés", + "Fee and Interest": "Comisión e interés", + "Creocore Unique": "Creocore único", + "Early Repayment Strategy": "Estrategia de amortización anticipada", + "Penalties, Fees, Interest, Principal order": "Penalizaciones, Comisiones, Intereses, Capital", + "HeavensFamily Unique": "CielosFamilia Única", + "Interest, Principal, Penalties, Fees Order": "Intereses, Capital, Penalizaciones, Orden de Honorarios", + "Principal, Interest, Penalties, Fees Order": "Capital, Intereses, Penalizaciones y Comisiones", + "Overdue/Due Fee/Int,Principal": "Vencido/Comisiones vencida/int, Capital", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Penalización vencida, Comisiones, Intereses, Capital, Capital adelantado, Penalizaciones, Comisiones, Intereses", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Penalización vencida, Intereses, Capital, Comisiones, Penalización por adelantado, Intereses, Capital, Comisiones", + "first": "Primer", + "second": "Segundo", + "third": "Tercer", + "fourth": "Cuarto", + "last": "Ultimo", + "on day": "En el día", + "SUNDAY": "DOMINGO", + "MONDAY": "LUNES", + "TUESDAY": "MARTES", + "WEDNESDAY": "MIÉRCOLES", + "THURSDAY": "JUEVES", + "FRIDAY": "VIERNES", + "SATURDAY": "SÁBADO", + "Invalid": "Inválido" + }, "commons": { "50 characters long": "50 caracteres de largo", "8 characters long": "8 caracteres de largo", @@ -574,6 +704,7 @@ "AdHocQuery": "Consulta ad hoc", "Add Account": "Añadir cuenta", "Add Currency Form": "Agregar formulario de moneda", + "Add Client Identifier": "Agregar identificador de cliente", "Add Journal Entry Form": "Agregar formulario de asiento de diario", "Add Loan Collateral": "Agregar garantía de Crédito", "Add Role": "Agregar rol", @@ -588,7 +719,7 @@ "And thereafter, in Multiples of": "Y posteriormente, en Múltiplos de", "Approve Share": "Aprobar Compartir", "Approve Checker": "Aprobar el verificador", - "Approve Loan": "Aprobar préstamo", + "Approve Loan": "Aprobar Crédito", "Assets": "Activos", "Assets / Liability": "Activo / Pasivo", "Audit Trails": "Pistas de auditoría", @@ -817,7 +948,7 @@ "Release Amount": "Cantidad de liberación", "Repaid Every": "Frecuencia de Pago", "Report Parameter": "Parámetro de reporte", - "Reschedule Loan": "Préstamo de reprogramación", + "Reschedule Loan": "Reprogramación del Crédito", "Revert Transaction": "Revertir transacción", "S3 Amazon External Service": "Servicio externo de Amazon S3", "SMS": "SMS", @@ -910,7 +1041,7 @@ "LIABILITY": "PASIVO", "EQUITY": "PATRIMONIO", "INCOME": "INGRESO", - "EXPENSE": "EGRESO" + "EXPENSE": "EGRESO" }, "ACCOUNTING": "CONTABILIDAD", "ADDRESS": "DOMICILIO", @@ -969,7 +1100,7 @@ "All": "Todo", "Allocate Cash": "Asignar efectivo", "Allocation": "Asignación", - "Allow approval / disbursal above loan applied amount": "Permitir aprobación/desembolso por encima del monto aplicado del préstamo", + "Allow approval / disbursal above loan applied amount": "Permitir aprobación/desembolso por encima del monto aplicado del crédito", "Allow Approved / Disbursed Amounts Over Applied": "Permitir montos aprobados/desembolsados ​​por encima de los aplicados", "Allow Partial Interest Calculation with same as repayment": "Permitir el cálculo de interés parcial con el mismo pago", "Allow Withdrawals": "Permitir retiros", @@ -1071,7 +1202,7 @@ "Charge Frequency": "Frecuencia de Comisión", "Charge Name": "Nombre del cargo", "Charge Payment By": "Pago de cargo por", - "Charge Payment Mode": "Modo de pago de cargo", + "Charge Payment Mode": "Forma de pago de cargo", "Charge Time": "Tiempo de Comisión", "Charge Time Type": "Tipo de tiempo de Comisión", "Charge Type": "Tipo de Comisión", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Fecha de inicio del período de dividendos", "Dividends": "Dividendos", "Documents": "Documentos", + "Document Key": "Clave de documento", + "Document Type": "Tipo de Documento", "Dormancy Tracking": "Seguimiento de Inactivdad", "Download": "Descargar", "Due": "Pendiente", @@ -1493,7 +1626,7 @@ "Is Differential": "es diferencial", "Is Equal Amortization": "¿Amortizaciones iguales?", "Is Floating Rate": "¿Es tasa variable?", - "Is Floating calculation allowed?": "¿Se permite el cálculo flotante?", + "Is Floating calculation allowed?": "¿Se permite el cálculo flotante?", "Is Interest Posting required on closure date": "¿Se requiere la publicación de intereses en la fecha de cierre?", "Is Linked to floating interest rates?": "¿Está vinculado a tasas de interés flotantes?", "Is Loan Officer": "Es oficial de Créditos", @@ -1601,7 +1734,7 @@ "Maturity Date": "Fecha de vencimiento", "Max Age": "Edad máxima", "Maximum": "Máximo", - "Maximum Charge Cap": "Tapa de carga máxima", + "Maximum Charge Cap": "Límite de carga máxima", "Maturity Instructions": "Instrucciones al Vencimiento", "Maximum Deposit Term": "Plazo máximo de depósito", "Maximum Overdraft Amount Limit": "Límite máximo del monto de sobregiro", @@ -1661,7 +1794,7 @@ "Nominal Annual Interest": "Tasa de Interés Nominal Anual", "Nominal Annual Interest for Overdraft": "Tasa de Interés Nominal Anual por Sobregiro", "Nominal Interest Rate": "Tasa de interés nominal", - "Nominal interest rate by loan cycle": "Tasa de interés nominal por ciclo de préstamo", + "Nominal interest rate by loan cycle": "Tasa de interés nominal por ciclo de crédito", "Nominal Price": "Precio nominal", "Nominal interest rate": "Tasa de interés nominal", "Nominal/Unit Price": "Precio nominal/unitario", @@ -1687,7 +1820,7 @@ "Number of Groups": "Número de grupos", "Number of Installments": "Número de cuotas", "Number of Repayments": "Número de reembolsos", - "Number of repayments by loan cycle": "Número de reembolsos por ciclo de préstamo", + "Number of repayments by loan cycle": "Número de reembolsos por ciclo de crédito", "Number of Staff": "Numero de Empleado", "Number of days a loan may be overdue before moving into arrears": "Número de días que un Crédito puede estar vencido antes de entrar en mora", "Number of repayments": "Número de reembolsos", @@ -1718,7 +1851,7 @@ "Outstanding": "Pendiente", "Overdraft": "Sobregiro", "Over Amount": "Monto extra", - "Over Amount Calculation Type": "Tipo de cálculo", + "Over Amount Calculation Type": "Tipo de cálculo", "Over Applied": "Sobre aplicado", "Over Due": "Atrasado", "Over payment liability": "Responsabilidad por sobrepago", @@ -1759,7 +1892,7 @@ "Payment Details": "Detalles del pago", "Payment Type": "Tipo de pago", "Payment Type Id": "Id del tipo de pago", - "Payment due as of": "Pago vencido a partir de", + "Payment due as of": "Pago vencido en", "Payment due at": "Pago vencido en", "Payments due on non working days": "Pagos vencidos en días no laborables", "Penal Interest": "Interés Penal", @@ -1778,7 +1911,7 @@ "Period To": "Período hasta", "Period Type": "Tipo de período", "Amount Range From": "Monto desde", - "Amount Range To": "Monto hasta", + "Amount Range To": "Monto hasta", "Person": "Persona", "Phone Number": "Número de teléfono", "Place Guarantee Funds On-Hold": "Poner los fondos de garantía en espera", @@ -1800,7 +1933,7 @@ "Principal Amount": "Cantidad principal", "Principal Due": "Principal vencido", "Principal Grace Periods": "Períodos de gracia sobre el principal", - "Principal by loan cycle": "Principal por ciclo de préstamo", + "Principal by loan cycle": "Principal por ciclo de crédito", "Principal Outstanding": "Director Sobresaliente", "Principal Threshold (%) for Last Instalment": "Umbral de capital (%) para la última cuota", "Priority": "Prioridad", @@ -1857,7 +1990,7 @@ "Remember me": "Acuérdate de mí", "Reopened On Date": "Reabierto en la fecha", "Repaid every": "Frecuencia de Pago", - "Repay Every": "pagar cada", + "Repay Every": "Paga cada", "Repayment Info": "Información de pago", "Repayment Schedule": "Calendario de pagos", "Repayment Schedule Parameters": "Parámetros del calendario de pagos", @@ -2155,6 +2288,8 @@ }, "task-management component": "componente de gestión de tareas", "to": "a", + "Down Payments": "Pago Inicial", + "Enable Down Payments": "Habilitar Pagos Iniciales", "valid": "válido" }, "links": { @@ -2304,9 +2439,9 @@ "Are you sure you want to undo this transaction ?": "¿Estás seguro de que deseas deshacer esta transacción?", "Are you sure you want recover from Guarantor": "¿Estás seguro de que deseas recuperar del garante?", "Are you sure you want recover the Original Schedule": "¿Estás seguro de que deseas recuperar el Calendario Original?", - "Are you sure you want resume the Delinquency Classification for Loan": "¿Estás seguro de que deseas reanudar la Clasificación de Morosidad para el Préstamo?", + "Are you sure you want resume the Delinquency Classification for Loan": "¿Estás seguro de que deseas reanudar la Clasificación de Morosidad para el Crédito?", "Are you sure you want": "¿Estás seguro de que deseas", - "the Loan Reschedule": "la Replanificación del Préstamo", + "the Loan Reschedule": "la Recanlendrización del Crédito", "Are you sure you want undo the transaction": "¿Estás seguro de que deseas deshacer la transacción?", "Are you sure you want undo the transaction type": "¿Estás seguro de que deseas deshacer el tipo de transacción?", "with id": "con ID", @@ -2316,10 +2451,10 @@ "Are you sure you want to approve checker": "¿Estás seguro de que deseas aprobar al verificador?", "Are you sure you want to reject checker": "¿Estás seguro de que deseas rechazar al verificador?", "Are you sure you want to delete checker": "¿Estás seguro de que deseas eliminar al verificador?", - "Are you sure you want to Approve Loan": "¿Estás seguro de que deseas aprobar el préstamo?", - "Are you sure you want to Disburse Loan": "¿Estás seguro de que deseas desembolsar el préstamo?", + "Are you sure you want to Approve Loan": "¿Estás seguro de que deseas aprobar el Crédito?", + "Are you sure you want to Disburse Loan": "¿Estás seguro de que deseas desembolsar el Crédito?", "Are you sure you want to": "¿Estás seguro de que deseas", - "the Reschedule Loan": "la Replanificación del Préstamo" + "the Reschedule Loan": "la Recandelarización del Crédito" }, "text": { "A": "A", @@ -2880,6 +3015,7 @@ "Journal Entries": "Entradas de diario", "Mandatory": "Obligatorio", "Voluntary": "Voluntario", + "Write a note": "Escribe una nota", "“Maker-Checker” principle requires every tasks": "El principio \"Maker-Checker\" requiere que dos personas completen cada tarea para reducir la posibilidad de errores y uso indebido. Una persona inicia el proceso y la segunda lo completa." }, "titles": { @@ -3078,4 +3214,4 @@ "loan product will be active and available to clients": "La fecha en que el producto de Crédito estará activo y disponible para los clientes. Si está en blanco, el producto de Crédito estará activo tan pronto como se cree.", "loan product will become inactive and unavailable to clients": "La fecha en que el producto de Crédito quedará inactivo y no estará disponible para los clientes. Si está en blanco, el producto de carga nunca quedará inactivo." } -} +} \ No newline at end of file diff --git a/assets/translations/fr-FR.json b/assets/translations/fr-FR.json index ca1579ab2f..22b6f6b01d 100644 --- a/assets/translations/fr-FR.json +++ b/assets/translations/fr-FR.json @@ -514,8 +514,138 @@ "Waive Charge": "Renoncer aux frais", "Week": "Semaine", "Withdraw": "Retirer", + "View Active Charges": "Afficher les frais actifs", + "View Inactive Charges": "Afficher les frais inactifs", "Yes": "Oui" }, + "catalogs": { + "Active": "Actif", + "Inactive": "Inactif", + "Loans": "Prêts", + "Client": "Client", + "Loan": "Prêt", + "Savings": "Des économies", + "Shares": "Actions", + "Regular": "Régulier", + "Account transfer": "Transfert de compte", + "Flat": "Plat", + "% Amount": "Montant", + "% Interest": "Intérêt", + "% Loan Amount + Interest": "Montant du prêt + intérêts", + "Disbursement": "Décaissement", + "Specified due date": "Date d'échéance spécifiée", + "Installment Fee": "Frais de versement", + "Overdue Fees": "Frais de retard", + "Tranche Disbursement": "Décaissement des tranches", + "Savings Activation": "Activation de l'épargne", + "Saving No Activity Fee": "Économiser sans frais d'activité", + "Withdrawal Fee": "frais de retrait", + "Annual Fee": "Frais annuels", + "Monthly Fee": "Redevance mensuelle", + "Weekly Fee": "Tarif hebdomadaire", + "Share Account Activate": "Partager le compte Activer", + "Share Purchase": "Achat d'actions", + "Share Redeem": "Partager Échanger", + "Days": "Jours", + "Weeks": "Semaines", + "Months": "Mois", + "Years": "Années", + "Deposit": "Dépôt", + "Withdrawal": "Retrait", + "Interest Posting": "Publication d'intérêt", + "Waive Charge": "Renoncer aux frais", + "Pay Charge": "Payer les frais", + "Dividend Payout": "Paiement de dividendes", + "Accrual": "Accumulation", + "Initiate Transfer": "Initier le transfert", + "Approve Transfer": "Approuver le transfert", + "Withdraw Transfer": "Retirer le transfert", + "Writtenoff": "Radiation", + "Overdraft Interest": "Intérêts de découvert", + "Withhold Tax": "Retenir l'impôt", + "Escheat": "Escroquerie", + "On Hold": "En attente", + "Release": "Libérer", + "Daily": "Tous les jours", + "Monthly": "Mensuel", + "Weekly": "Hebdomadaire", + "Quarterly": "Trimestriel", + "Semi-Annual": "Semestriel", + "Annually": "Annuellement", + "Daily Balance": "Solde quotidien", + "Average Daily Balance": "Solde quotidien moyen", + "BiAnnual": "Semestriel", + "360 Days": "360 jours", + "365 Days": "365 jours", + "30 Days": "30 jours", + "364 Days": "364 jours", + "Actual": "Réel", + "Disbursement Date": "Date de décaissement", + "Submitted On Date": "Soumis le jour", + "Per year": "Par an", + "Per month": "Par mois", + "Whole term": "Durée entière", + "Same as repayment period": "Identique à la période de remboursement", + "Declining Balance": "Solde dégressif", + "Cumulative": "Cumulatif", + "Progressive": "Progressive", + "Penalty": "Peine", + "Fees": "Frais", + "Fee": "Frais", + "Horizontal": "Horizontal", + "Vertical": "Verticale", + "Advanced payment allocation strategy": "Stratégie avancée d’allocation des paiements", + "Past due penalty": "Pénalité pour retard de paiement", + "Past due fee": "Frais en souffrance", + "Past due principal": "Principal en souffrance", + "Past due interest": "Intérêts en souffrance", + "Due penalty": "Pénalité due", + "Due fee": "Frais dus", + "Due principal": "Principal dû", + "Due interest": "Intérêts dus", + "In advanced penalty": "Pénalité anticipée", + "In advanced fee": "Frais d'avance", + "In advanced principal": "À l'avance, le principal", + "In advanced interest": "Intérêts d'avance", + "Next installment": "Prochain versement", + "Last installment": "Dernier versement", + "Reamotization": "Réamotisation", + "equals": "équivaut à", + "greater than": "plus grand que", + "Equal installments": "Versements égaux", + "Equal principal payments": "Paiements du principal égaux", + "Till Pre-Close Date": "Jusqu'à la date de pré-clôture", + "Till Rest Frequency Date": "Jusqu'à la date de fréquence de repos", + "Reduce EMI amount": "Réduire le montant", + "Reduce number of installments": "Réduire le nombre de versements", + "Reschedule next repayments": "Reprogrammer les prochains remboursements", + "None": "Capital", + "Interest": "Intérêt", + "Fee and Interest": "Frais et intérêts", + "Creocore Unique": "Créocore Unique", + "Early Repayment Strategy": "Stratégie de remboursement anticipé", + "Penalties, Fees, Interest, Principal order": "Pénalités, frais, intérêts, ordonnance principale", + "HeavensFamily Unique": "HeavensFamille Unique", + "Interest, Principal, Penalties, Fees Order": "Ordonnance sur les intérêts, le capital, les pénalités et les frais", + "Principal, Interest, Penalties, Fees Order": "Ordonnance sur le capital, les intérêts, les pénalités et les frais", + "Overdue/Due Fee/Int,Principal": "Frais de retard/dû/Int, principal", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Pénalité due, frais, intérêts, principal, Principal à l'avance, pénalité, frais, intérêts", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Pénalité due, intérêts, principal, frais, Pénalité d'avance, intérêts, principal, frais", + "first": "d'abord", + "second": "deuxième", + "third": "troisième", + "fourth": "quatre", + "last": "dernier", + "on day": "le jour", + "SUNDAY": "DIMANCHE", + "MONDAY": "LUNDI", + "TUESDAY": "MARDI", + "WEDNESDAY": "MERCREDI", + "THURSDAY": "JEUDI", + "FRIDAY": "VENDREDI", + "SATURDAY": "SAMEDI", + "Invalid": "Invalide" + }, "commons": { "50 characters long": "50 caractères", "8 characters long": "8 caractères", @@ -574,6 +704,7 @@ "AdHocQuery": "Requête ad hoc", "Add Account": "Ajouter un compte", "Add Currency Form": "Ajouter un formulaire de devise", + "Add Client Identifier": "Ajouter un identifiant client", "Add Journal Entry Form": "Ajouter un formulaire d'écriture de journal", "Add Loan Collateral": "Ajouter une garantie de prêt", "Add Role": "Ajouter un rôle", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Date de début de la période de dividende", "Dividends": "Dividendes", "Documents": "Documents", + "Document Key": "Clé du document", + "Document Type": "Type de document", "Dormancy Tracking": "Suivi de la dormance", "Download": "Télécharger", "Due": "Exigible", @@ -2155,6 +2288,8 @@ }, "task-management component": "composant de gestion des tâches", "to": "à", + "Down Payments": "Acomptes", + "Enable Down Payments": "Activer les acomptes", "valid": "valide" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{titre : Entrées de journal", "Mandatory": "Obligatoire", "Voluntary": "Volontaire", + "Write a note": "Écrire une note", "“Maker-Checker” principle requires every tasks": "Le principe « Maker-Checker » exige que chaque tâche soit effectuée par deux personnes afin de réduire les risques d'erreurs et de mauvaise utilisation. Une personne lance le processus et la seconde le termine." }, "titles": { diff --git a/assets/translations/it-IT.json b/assets/translations/it-IT.json index 0e70b7856a..a0f859321a 100644 --- a/assets/translations/it-IT.json +++ b/assets/translations/it-IT.json @@ -514,8 +514,138 @@ "Waive Charge": "Rinuncia all'addebito", "Week": "Settimana", "Withdraw": "Ritirare", + "View Active Charges": "Visualizza gli addebiti attivi", + "View Inactive Charges": "Visualizza addebiti inattivi", "Yes": "SÌ" }, + "catalogs": { + "Active": "Attivo", + "Inactive": "Inattivo", + "Loans": "Prestiti", + "Client": "Cliente", + "Loan": "Prestito", + "Savings": "Risparmio", + "Shares": "Azioni", + "Regular": "Regolare", + "Account transfer": "Trasferimento del conto", + "Flat": "Piatto", + "% Amount": "Quantità", + "% Interest": "Interesse", + "% Loan Amount + Interest": "Importo del prestito + interessi", + "Disbursement": "Erogazione", + "Specified due date": "Data di scadenza specificata", + "Installment Fee": "Commissione di rata", + "Overdue Fees": "Commissioni scadute", + "Tranche Disbursement": "Erogazione della tranche", + "Savings Activation": "Attivazione del risparmio", + "Saving No Activity Fee": "Risparmio senza costi di attività", + "Withdrawal Fee": "Commissione di prelievo", + "Annual Fee": "Tassa annuale", + "Monthly Fee": "Canone mensile", + "Weekly Fee": "Tariffa settimanale", + "Share Account Activate": "Condividi l'attivazione dell'account", + "Share Purchase": "Condividi l'acquisto", + "Share Redeem": "Condividi Riscatta", + "Days": "Giorni", + "Weeks": "Settimane", + "Months": "Mesi", + "Years": "Anni", + "Deposit": "Depositare", + "Withdrawal": "Ritiro", + "Interest Posting": "Pubblicazione di interessi", + "Waive Charge": "Rinuncia all'addebito", + "Pay Charge": "Pagare la tassa", + "Dividend Payout": "Pagamento dei dividendi", + "Accrual": "Maturazione", + "Initiate Transfer": "Avvia trasferimento", + "Approve Transfer": "Approva il trasferimento", + "Withdraw Transfer": "Preleva trasferimento", + "Writtenoff": "Cancellati", + "Overdraft Interest": "Interesse sullo scoperto", + "Withhold Tax": "Trattenuta fiscale", + "Escheat": "Incameramento", + "On Hold": "In attesa", + "Release": "Pubblicazione", + "Daily": "Quotidiano", + "Monthly": "Mensile", + "Quarterly": "Trimestrale", + "Semi-Annual": "Semiannuale", + "Annually": "Annualmente", + "Weekly": "settimanalmente", + "Daily Balance": "Saldo giornaliero", + "Average Daily Balance": "Saldo medio giornaliero", + "BiAnnual": "Semestrale", + "360 Days": "360 giorni", + "365 Days": "365 giorni", + "30 Days": "30 giorni", + "364 Days": "364 giorni", + "Actual": "Effettivo", + "Disbursement Date": "Data di erogazione", + "Submitted On Date": "Inserito in data", + "Per year": "Per anno", + "Per month": "Al mese", + "Whole term": "Intero termine", + "Same as repayment period": "Uguale al periodo di rimborso", + "Declining Balance": "Equilibrio in declino", + "Cumulative": "Cumulativo", + "Progressive": "Progressivo", + "Penalty": "Pena", + "Fees": "Commissioni", + "Fee": "Tassa", + "Horizontal": "Orizzontale", + "Vertical": "Verticale", + "Advanced payment allocation strategy": "Strategia avanzata di allocazione dei pagamenti", + "Past due penalty": "Penalità scaduta", + "Past due fee": "Commissione scaduta", + "Past due principal": "Capitale scaduto", + "Past due interest": "Interessi scaduti", + "Due penalty": "Penalità dovuta", + "Due fee": "Tariffa dovuta", + "Due principal": "Principale dovuto", + "Due interest": "Interessi dovuti", + "In advanced penalty": "Pena anticipata", + "In advanced fee": "Pagamento anticipato", + "In advanced principal": "In anticipo principale", + "In advanced interest": "Interessi anticipati", + "Next installment": "Prossima puntata", + "Last installment": "Ultima puntata", + "Reamotization": "Riamotizzazione", + "equals": "equivale", + "greater than": "più grande di", + "Equal installments": "Rate uguali", + "Equal principal payments": "Parità di capitale", + "Till Pre-Close Date": "Fino alla data di pre-chiusura", + "Till Rest Frequency Date": "Fino alla data di frequenza del riposo", + "Reduce EMI amount": "Ridurre l'importo", + "Reduce number of installments": "Ridurre il numero di rate", + "Reschedule next repayments": "Riprogrammare i prossimi rimborsi", + "None": "Capitale", + "Interest": "Interesse", + "Fee and Interest": "Commissione e interessi", + "Creocore Unique": "Creocore unico", + "Early Repayment Strategy": "Strategia di rimborso anticipato", + "Penalties, Fees, Interest, Principal order": "Sanzioni, commissioni, interessi, ordine principale", + "HeavensFamily Unique": "HeavensFamily unica", + "Interest, Principal, Penalties, Fees Order": "Interessi, capitale, sanzioni, ordine delle commissioni", + "Principal, Interest, Penalties, Fees Order": "Capitale, interessi, sanzioni, ordine delle commissioni", + "Overdue/Due Fee/Int,Principal": "Commissione scaduta/scaduta/Int", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Pena, commissione, interesse, capitale dovuta, Capitale anticipato, penale, commissione, interesse", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Penale dovuta, interessi, capitale, commissione, Penale anticipata, interessi, capitale, commissione", + "first": "Primo", + "second": "secondo", + "third": "terzo", + "fourth": "quattro", + "last": "scorso", + "on day": "Nel giorno", + "SUNDAY": "DOMENICA", + "MONDAY": "LUNEDI", + "TUESDAY": "MARTEDÌ", + "WEDNESDAY": "MERCOLEDÌ", + "THURSDAY": "GIOVEDÌ", + "FRIDAY": "VENERDÌ", + "SATURDAY": "SABATO", + "Invalid": "Non valido" + }, "commons": { "50 characters long": "50 caratteri di lunghezza", "8 characters long": "8 caratteri di lunghezza", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Aggiungi account", "Add Currency Form": "Modulo Aggiungi valuta", + "Add Client Identifier": "Aggiungi identificatore cliente", "Add Journal Entry Form": "Aggiungi modulo di iscrizione al diario", "Add Loan Collateral": "Aggiungi garanzia collaterale al prestito", "Add Role": "Aggiungi ruolo", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Data di inizio del periodo di dividendo", "Dividends": "Dividendi", "Documents": "Documenti", + "Document Key": "Chiave del documento", + "Document Type": "tipo di documento", "Dormancy Tracking": "Monitoraggio della dormienza", "Download": "Scaricamento", "Due": "Dovuto", @@ -2155,6 +2288,8 @@ }, "task-management component": "componente di gestione delle attività", "to": "A", + "Down Payments": "Acconti", + "Enable Down Payments": "Abilita acconti", "valid": "valido" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{titolo: Voci di diario", "Mandatory": "Obbligatorio", "Voluntary": "Volontario", + "Write a note": "Scrivi una nota", "“Maker-Checker” principle requires every tasks": "Il principio “Maker-Checker” richiede che ogni attività venga completata da due persone per ridurre la possibilità di errori e usi impropri. Una persona avvia il processo e la seconda lo completa." }, "titles": { diff --git a/assets/translations/ko-KO.json b/assets/translations/ko-KO.json index be0f568d38..d91d7a37b4 100644 --- a/assets/translations/ko-KO.json +++ b/assets/translations/ko-KO.json @@ -514,8 +514,138 @@ "Waive Charge": "요금 면제", "Week": "주", "Withdraw": "철회하다", + "View Active Charges": "활성 요금 보기", + "View Inactive Charges": "비활성 요금 보기", "Yes": "예" }, + "catalogs": { + "Active": "활동적인", + "Inactive": "비활성", + "Loans": "대출", + "Client": "고객", + "Loan": "대출", + "Savings": "저금", + "Shares": "주식", + "Regular": "정기적인", + "Account transfer": "계좌이체", + "Flat": "평평한", + "% Amount": "양", + "% Interest": "관심", + "% Loan Amount + Interest": "대출금액 + 이자", + "Disbursement": "지불", + "Specified due date": "지정된 마감일", + "Installment Fee": "할부 수수료", + "Overdue Fees": "연체 수수료", + "Tranche Disbursement": "트랜치 지급", + "Savings Activation": "저축 활성화", + "Saving No Activity Fee": "활동비 절약", + "Withdrawal Fee": "인출 수수료", + "Annual Fee": "연회비", + "Monthly Fee": "월 사용료", + "Weekly Fee": "주간 비용", + "Share Account Activate": "공유 계정 활성화", + "Share Purchase": "공유 구매", + "Share Redeem": "공유 교환", + "Days": "날", + "Weeks": "주", + "Months": "개월", + "Years": "연령", + "Deposit": "보증금", + "Withdrawal": "철수", + "Interest Posting": "관심 게시", + "Waive Charge": "요금 면제", + "Pay Charge": "요금 지불", + "Dividend Payout": "배당금 지급", + "Accrual": "발생", + "Initiate Transfer": "송금 시작", + "Approve Transfer": "이전 승인", + "Withdraw Transfer": "이체철회", + "Writtenoff": "상각", + "Overdraft Interest": "초과인월 이자", + "Withhold Tax": "원천징수세", + "Escheat": "복귀", + "On Hold": "보류 중", + "Release": "풀어 주다", + "Daily": "일일", + "Monthly": "월간 간행물", + "Quarterly": "분기별", + "Semi-Annual": "반년마다", + "Annually": "매년", + "Weekly": "주간", + "Daily Balance": "일일 잔액", + "Average Daily Balance": "평균 일일 잔액", + "BiAnnual": "격년", + "360 Days": "360일", + "365 Days": "365일", + "30 Days": "30 일", + "364 Days": "364일", + "Actual": "실제", + "Disbursement Date": "지급일", + "Submitted On Date": "제출 날짜", + "Per year": "연간", + "Per month": "달마다", + "Whole term": "전체 기간", + "Same as repayment period": "상환기간과 동일", + "Declining Balance": "체감 잔액", + "Cumulative": "누적", + "Progressive": "프로그레시브", + "Penalty": "패널티", + "Fees": "수수료", + "Fee": "요금", + "Horizontal": "수평의", + "Vertical": "수직의", + "Advanced payment allocation strategy": "고급 지불 할당 전략", + "Past due penalty": "연체 벌금", + "Past due fee": "연체 수수료", + "Past due principal": "연체된 교장", + "Past due interest": "연체이자", + "Due penalty": "정당한 처벌", + "Due fee": "납부 수수료", + "Due principal": "교장", + "Due interest": "정당한 관심", + "In advanced penalty": "사전 패널티", + "In advanced fee": "선불요금", + "In advanced principal": "사전 교장", + "In advanced interest": "사전이자", + "Next installment": "다음 편", + "Last installment": "마지막 할부", + "Reamotization": "재분할화", + "equals": "같음", + "greater than": "~보다 큰", + "Equal installments": "균등할부", + "Equal principal payments": "동일 원금지급", + "Till Pre-Close Date": "마감 전 날짜까지", + "Till Rest Frequency Date": "휴식 빈도 날짜까지", + "Reduce EMI amount": "금액 감소", + "Reduce number of installments": "할부 횟수 줄이기", + "Reschedule next repayments": "다음 상환 일정 변경", + "None": "수도", + "Interest": "관심", + "Fee and Interest": "수수료 및 이자", + "Creocore Unique": "크레오코어 유니크", + "Early Repayment Strategy": "조기상환 전략", + "Penalties, Fees, Interest, Principal order": "위약금, 수수료, 이자, 원금 명령", + "HeavensFamily Unique": "HeavensFamily 고유", + "Interest, Principal, Penalties, Fees Order": "이자, 원금, 벌금, 수수료 순서", + "Principal, Interest, Penalties, Fees Order": "원금, 이자, 벌금, 수수료 순서", + "Overdue/Due Fee/Int,Principal": "연체/연체 수수료/내부, 원금", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "위약금, 수수료, 이자, 원금, 선불원금, 위약금, 수수료, 이자", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "위약금, 이자, 원금, 수수료, 선납 위약금, 이자, 원금, 수수료", + "first": "첫 번째", + "second": "두번째", + "third": "제삼", + "fourth": "네", + "last": "마지막", + "on day": "낮에", + "SUNDAY": "일요일", + "MONDAY": "월요일", + "TUESDAY": "화요일", + "WEDNESDAY": "수요일", + "THURSDAY": "목요일", + "FRIDAY": "금요일", + "SATURDAY": "토요일", + "Invalid": "유효하지 않은" + }, "commons": { "50 characters long": "50자(영문 기준)", "8 characters long": "8자 길이", @@ -574,6 +704,7 @@ "AdHocQuery": "임시 쿼리", "Add Account": "계정을 추가", "Add Currency Form": "통화 양식 추가", + "Add Client Identifier": "클라이언트 식별자 추가", "Add Journal Entry Form": "분개 양식 추가", "Add Loan Collateral": "대출 담보 추가", "Add Role": "역할 추가", @@ -1266,6 +1397,8 @@ "Dividend Period Start Date": "배당기간 개시일", "Dividends": "배당금", "Documents": "서류", + "Document Key": "문서 키", + "Document Type": "문서 유형", "Dormancy Tracking": "휴면 추적", "Download": "다운로드", "Due": "로 인한", @@ -2156,6 +2289,8 @@ }, "task-management component": "작업 관리 구성 요소", "to": "에게", + "Down Payments": "계약금", + "Enable Down Payments": "계약금 활성화", "valid": "유효한" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{제목: 저널 항목", "Mandatory": "필수적인", "Voluntary": "자발적인", + "Write a note": "메모 쓰기", "“Maker-Checker” principle requires every tasks": "\"Maker-Checker\" 원칙은 오류와 오용 가능성을 줄이기 위해 모든 작업을 두 사람이 완료하도록 요구합니다. 한 사람이 프로세스를 시작하고 두 번째 사람이 프로세스를 완료합니다." }, "titles": { diff --git a/assets/translations/lt-LT.json b/assets/translations/lt-LT.json index 9be21710f9..e328c1e5ff 100644 --- a/assets/translations/lt-LT.json +++ b/assets/translations/lt-LT.json @@ -514,8 +514,138 @@ "Waive Charge": "Atsisakyti mokesčio", "Week": "Savaitė", "Withdraw": "Atsitraukti", + "View Active Charges": "Peržiūrėti aktyvius mokesčius", + "View Inactive Charges": "Peržiūrėkite neaktyvius mokesčius", "Yes": "Taip" }, + "catalogs": { + "Active": "Aktyvus", + "Inactive": "Neaktyvus", + "Loans": "Paskolos", + "Client": "Klientas", + "Loan": "Paskola", + "Savings": "Taupymas", + "Shares": "Akcijos", + "Regular": "Reguliarus", + "Account transfer": "Sąskaitos perkėlimas", + "Flat": "Butas", + "% Amount": "Suma", + "% Interest": "Palūkanos", + "% Loan Amount + Interest": "Paskolos suma + palūkanos", + "Disbursement": "Išmokėjimas", + "Specified due date": "Nurodytas terminas", + "Installment Fee": "Įmokos mokestis", + "Overdue Fees": "Pradelsti mokesčiai", + "Tranche Disbursement": "Dalies išmokėjimas", + "Savings Activation": "Taupymo aktyvinimas", + "Saving No Activity Fee": "Sutaupykite jokios veiklos mokesčio", + "Withdrawal Fee": "Išėmimo mokestis", + "Annual Fee": "Metinis mokestis", + "Monthly Fee": "Mėnesinis mokėstis", + "Weekly Fee": "Savaitinis mokestis", + "Share Account Activate": "Bendrinti paskyrą Aktyvuoti", + "Share Purchase": "Dalintis pirkiniu", + "Share Redeem": "Dalintis Išpirkti", + "Days": "Dienos", + "Weeks": "Savaitės", + "Months": "Mėnesių", + "Years": "Metai", + "Deposit": "Užstatas", + "Withdrawal": "Pasitraukimas", + "Interest Posting": "Interesų skelbimas", + "Waive Charge": "Atsisakyti mokesčio", + "Pay Charge": "Mokėti mokestį", + "Dividend Payout": "Dividendų išmokėjimas", + "Accrual": "Kaupiamasis", + "Initiate Transfer": "Inicijuoti perkėlimą", + "Approve Transfer": "Patvirtinti perkėlimą", + "Withdraw Transfer": "Atsiimti pervedimą", + "Writtenoff": "Nurašytas", + "Overdraft Interest": "Overdrafto palūkanos", + "Withhold Tax": "Išskaičiuoti mokestį", + "Escheat": "Escheat", + "On Hold": "Sulaikyta", + "Release": "Paleisti", + "Daily": "Kasdien", + "Monthly": "Kas mėnesį", + "Quarterly": "Kas ketvirtį", + "Semi-Annual": "Pusmetis", + "Annually": "Kasmet", + "Weekly": "Kas savaitę", + "Daily Balance": "Dienos balansas", + "Average Daily Balance": "Vidutinis dienos balansas", + "BiAnnual": "Kas dvejus metus", + "360 Days": "360 dienų", + "365 Days": "365 dienos", + "30 Days": "30 dienų", + "364 Days": "364 dienos", + "Actual": "Faktinis", + "Disbursement Date": "Išmokėjimo data", + "Submitted On Date": "Pateikta datą", + "Per year": "Per metus", + "Per month": "Per mėnesį", + "Whole term": "Visas terminas", + "Same as repayment period": "Toks pat kaip ir grąžinimo laikotarpis", + "Declining Balance": "Mažėjantis balansas", + "Cumulative": "Kaupiamasis", + "Progressive": "Progresyvus", + "Penalty": "Bauda", + "Fees": "Mokesčiai", + "Fee": "Rinkliava", + "Horizontal": "Horizontalus", + "Vertical": "Vertikalus", + "Advanced payment allocation strategy": "Išplėstinė mokėjimų paskirstymo strategija", + "Past due penalty": "Praleista bauda", + "Past due fee": "Mokestis už pradelstą mokestį", + "Past due principal": "Pradinė suma", + "Past due interest": "Prastos palūkanos", + "Due penalty": "Dera bauda", + "Due fee": "Mokamas mokestis", + "Due principal": "Mokėtas pagrindinis", + "Due interest": "Deramas palūkanas", + "In advanced penalty": "Išankstinė bauda", + "In advanced fee": "Išankstinis mokestis", + "In advanced principal": "Iš anksto pagrindinis", + "In advanced interest": "Iš anksto palūkanas", + "Next installment": "Kita įmoka", + "Last installment": "Paskutinė įmoka", + "Reamotization": "Reomatizacija", + "equals": "lygus", + "greater than": "geresnis negu", + "Equal installments": "Lygiomis dalimis", + "Equal principal payments": "Vienodos pagrindinės išmokos", + "Till Pre-Close Date": "Iki išankstinio uždarymo datos", + "Till Rest Frequency Date": "Iki poilsio dažnumo datos", + "Reduce EMI amount": "Sumažinti sumą", + "Reduce number of installments": "Sumažinti įmokų skaičių", + "Reschedule next repayments": "Suplanuokite kitus mokėjimus", + "None": "Kapitalas", + "Interest": "Palūkanos", + "Fee and Interest": "Mokestis ir palūkanos", + "Creocore Unique": "Creocore unikalus", + "Early Repayment Strategy": "Išankstinio grąžinimo strategija", + "Penalties, Fees, Interest, Principal order": "Baudos, mokesčiai, palūkanos, pagrindinis užsakymas", + "HeavensFamily Unique": "Unikali dangaus šeima", + "Interest, Principal, Penalties, Fees Order": "Palūkanos, pagrindinė suma, netesybos, mokesčiai", + "Principal, Interest, Penalties, Fees Order": "Pagrindinė suma, palūkanos, netesybos, mokesčiai", + "Overdue/Due Fee/Int,Principal": "Uždelstas/mokestis/Tarptautinis, pagrindinis", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Delspinigiai, mokestis, palūkanos, pagrindinė suma, Avansinė pagrindinė suma, netesybos, mokestis, palūkanos", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Delspinigiai, delspinigiai, pagrindinė suma, mokestis, Avansinė bauda, ​​palūkanos, pagrindinė suma, mokestis", + "first": "Pirmas", + "second": "antra", + "third": "trečias", + "fourth": "keturi", + "last": "paskutinis", + "on day": "Dieną", + "SUNDAY": "SEKMADIENIS", + "MONDAY": "PIRMADIENIS", + "TUESDAY": "ANTRADIENIS", + "WEDNESDAY": "TREČIADIENIS", + "THURSDAY": "KETVIRTADIENIS", + "FRIDAY": "PENKTADIENIS", + "SATURDAY": "ŠEŠTADIENIS", + "Invalid": "Neteisinga" + }, "commons": { "50 characters long": "50 simbolių ilgio", "8 characters long": "8 simbolių ilgio", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Pridėti paskyrą", "Add Currency Form": "Pridėti valiutos formą", + "Add Client Identifier": "Pridėti kliento identifikatorių", "Add Journal Entry Form": "Pridėti žurnalo įrašo formą", "Add Loan Collateral": "Pridėti paskolos užstatą", "Add Role": "Pridėti vaidmenį", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Dividendų laikotarpio pradžios data", "Dividends": "Dividendai", "Documents": "Dokumentai", + "Document Key": "Dokumento raktas", + "Document Type": "dokumento tipas", "Dormancy Tracking": "Ramybės stebėjimas", "Download": "parsisiųsti", "Due": "Dėl", @@ -2155,6 +2288,8 @@ }, "task-management component": "užduočių valdymo komponentas", "to": "į", + "Down Payments": "Pradiniai mokėjimai", + "Enable Down Payments": "Įgalinti pradinius mokėjimus", "valid": "galioja" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{pavadinimas: žurnalo įrašai", "Mandatory": "Privaloma", "Voluntary": "Savanoriškas", + "Write a note": "Parašykite pastabą", "“Maker-Checker” principle requires every tasks": "„Maker-Checker“ principas reikalauja, kad kiekvieną užduotį atliktų du žmonės, kad būtų sumažinta klaidų ir netinkamo naudojimo galimybė. Vienas asmuo pradeda procesą, o antrasis jį užbaigia." }, "titles": { diff --git a/assets/translations/lv-LV.json b/assets/translations/lv-LV.json index d2e7c22d6c..d7dea0ab1a 100644 --- a/assets/translations/lv-LV.json +++ b/assets/translations/lv-LV.json @@ -514,8 +514,138 @@ "Waive Charge": "Atteikties no maksas", "Week": "nedēļa", "Withdraw": "Izņemt", + "View Active Charges": "Skatīt aktīvās maksas", + "View Inactive Charges": "Skatīt neaktīvās maksas", "Yes": "Jā" }, + "catalogs": { + "Active": "Aktīvs", + "Inactive": "Neaktīvs", + "Loans": "Aizdevumi", + "Client": "Klients", + "Loan": "Aizdevums", + "Savings": "Ietaupījumi", + "Shares": "Akcijas", + "Regular": "Regulāri", + "Account transfer": "Konta pārskaitījums", + "Flat": "Plakans", + "% Amount": "Summa", + "% Interest": "Interese", + "% Loan Amount + Interest": "Aizdevuma summa + procenti", + "Disbursement": "Izmaksa", + "Specified due date": "Norādīts izpildes datums", + "Installment Fee": "Nomaksas maksa", + "Overdue Fees": "Nokavējuma maksas", + "Tranche Disbursement": "Daļas izmaksa", + "Savings Activation": "Uzkrājumu aktivizēšana", + "Saving No Activity Fee": "Ietaupot bezdarbības maksu", + "Withdrawal Fee": "Izņemšanas maksa", + "Annual Fee": "Gada maksa", + "Monthly Fee": "Mēneša maksa", + "Weekly Fee": "Iknedēļas maksa", + "Share Account Activate": "Kopīgot kontu Aktivizēt", + "Share Purchase": "Akciju pirkums", + "Share Redeem": "Kopīgot Izpirkt", + "Days": "Dienas", + "Weeks": "Nedēļas", + "Months": "Mēneši", + "Years": "Gadiem", + "Deposit": "Depozīts", + "Withdrawal": "Izņemšana", + "Interest Posting": "Interešu publicēšana", + "Waive Charge": "Atteikties no maksas", + "Pay Charge": "Maksājiet maksu", + "Dividend Payout": "Dividenžu izmaksa", + "Accrual": "Uzkrāšana", + "Initiate Transfer": "Sāciet pārsūtīšanu", + "Approve Transfer": "Apstiprināt pārsūtīšanu", + "Withdraw Transfer": "Izņemt pārskaitījumu", + "Writtenoff": "Norakstīti", + "Overdraft Interest": "Overdrafta procenti", + "Withhold Tax": "Ieturējuma nodoklis", + "Escheat": "Escheat", + "On Hold": "Aizturēts", + "Release": "Atbrīvot", + "Daily": "Ikdienas", + "Monthly": "Ikmēneša", + "Quarterly": "Ceturkšņa", + "Semi-Annual": "Pusgada", + "Annually": "Ik gadu", + "Weekly": "Iknedēļas", + "Daily Balance": "Dienas bilance", + "Average Daily Balance": "Vidējais dienas atlikums", + "BiAnnual": "Divreiz gadā", + "360 Days": "360 dienas", + "365 Days": "365 dienas", + "30 Days": "30 dienas", + "364 Days": "364 dienas", + "Actual": "Faktiskais", + "Disbursement Date": "Izmaksas datums", + "Submitted On Date": "Iesniegts datumā", + "Per year": "Gadā", + "Per month": "Mēnesī", + "Whole term": "Viss termiņš", + "Same as repayment period": "Tāds pats kā atmaksas termiņš", + "Declining Balance": "Bilances samazināšanās", + "Cumulative": "Kumulatīvs", + "Progressive": "Progresīvs", + "Penalty": "Sods", + "Fees": "Maksas", + "Fee": "Maksa", + "Horizontal": "Horizontāli", + "Vertical": "Vertikāli", + "Advanced payment allocation strategy": "Uzlabota maksājumu sadales stratēģija", + "Past due penalty": "Nokavēts sods", + "Past due fee": "Nokavējuma nauda", + "Past due principal": "Nokavētais pamatsumma", + "Past due interest": "Nokavēti procenti", + "Due penalty": "Pienācīgs sods", + "Due fee": "Maksājamā maksa", + "Due principal": "Maksājamais pamatsumma", + "Due interest": "Pienācīgi procenti", + "In advanced penalty": "Priekšsods", + "In advanced fee": "Iepriekš samaksā", + "In advanced principal": "Avansā galvenais", + "In advanced interest": "Iepriekš procentos", + "Next installment": "Nākamā iemaksa", + "Last installment": "Pēdējā iemaksa", + "Reamotization": "Reomatizācija", + "equals": "vienāds", + "greater than": "lielāks nekā", + "Equal installments": "Vienādas iemaksas", + "Equal principal payments": "Vienlīdzīgi pamatsummas maksājumi", + "Till Pre-Close Date": "Līdz pirmsslēgšanas datumam", + "Till Rest Frequency Date": "Līdz atpūtas biežuma datumam", + "Reduce EMI amount": "Samazināt summu", + "Reduce number of installments": "Samaziniet iemaksu skaitu", + "Reschedule next repayments": "Pārplānojiet nākamos maksājumus", + "None": "Kapitāls", + "Interest": "Interese", + "Fee and Interest": "Maksa un procenti", + "Creocore Unique": "Creocore unikāls", + "Early Repayment Strategy": "Pirmstermiņa atmaksas stratēģija", + "Penalties, Fees, Interest, Principal order": "Sodi, nodevas, procenti, pamatpasūtījums", + "HeavensFamily Unique": "HeavensFamily unikāls", + "Interest, Principal, Penalties, Fees Order": "Procenti, pamatsumma, līgumsodi, maksas rīkojums", + "Principal, Interest, Penalties, Fees Order": "Pamatsumma, procenti, līgumsodi, maksas rīkojums", + "Overdue/Due Fee/Int,Principal": "Nokavējums/Maksa/Int, Principal", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Maksājamais līgumsods, nodeva, procenti, pamatsumma, Avansa pamatsumma, līgumsods, maksa, procenti", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Maksājamais līgumsods, procenti, pamatsumma, maksa, avansa līgumsods, procenti, pamatsumma, maksa", + "first": "vispirms", + "second": "otrais", + "third": "trešais", + "fourth": "četri", + "last": "Pēdējais", + "on day": "dienā", + "SUNDAY": "SVĒTDIENA", + "MONDAY": "PIRMDIENA", + "TUESDAY": "OTRDIENA", + "WEDNESDAY": "TREŠDIENA", + "THURSDAY": "CETURTDIENA", + "FRIDAY": "PIEKTDIENA", + "SATURDAY": "SESTDIENA", + "Invalid": "Nederīgs" + }, "commons": { "50 characters long": "50 rakstzīmes garš", "8 characters long": "8 rakstzīmes garš", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Pievienot kontu", "Add Currency Form": "Pievienot valūtas veidlapu", + "Add Client Identifier": "Pievienojiet klienta identifikatoru", "Add Journal Entry Form": "Pievienojiet žurnāla ieraksta veidlapu", "Add Loan Collateral": "Pievienojiet aizdevuma nodrošinājumu", "Add Role": "Pievienot lomu", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Dividenžu perioda sākuma datums", "Dividends": "Dividendes", "Documents": "Dokumenti", + "Document Key": "Dokumenta atslēga", + "Document Type": "Dokumenta veids", "Dormancy Tracking": "Miega stāvokļa izsekošana", "Download": "Lejupielādēt", "Due": "Pienākas", @@ -2155,6 +2288,8 @@ }, "task-management component": "uzdevumu pārvaldības komponents", "to": "uz", + "Down Payments": "Pirmās iemaksas", + "Enable Down Payments": "Iespējot pirmās iemaksas", "valid": "derīgs" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "Žurnāla ieraksti", "Mandatory": "Obligāts", "Voluntary": "Brīvprātīgi", + "Write a note": "Uzrakstiet piezīmi", "“Maker-Checker” principle requires every tasks": "“Maker-Checker” princips paredz, ka katrs uzdevums ir jāveic diviem cilvēkiem, lai samazinātu kļūdu un nepareizas lietošanas iespējamību. Viens cilvēks uzsāk procesu, bet otrs to pabeidz." }, "titles": { diff --git a/assets/translations/ne-NE.json b/assets/translations/ne-NE.json index a29e9a2b30..bd2883c3fa 100644 --- a/assets/translations/ne-NE.json +++ b/assets/translations/ne-NE.json @@ -514,8 +514,138 @@ "Waive Charge": "शुल्क छुट", "Week": "हप्ता", "Withdraw": "निकाल्नु", + "View Active Charges": "सक्रिय शुल्कहरू हेर्नुहोस्", + "View Inactive Charges": "निष्क्रिय शुल्कहरू हेर्नुहोस्", "Yes": "हो" }, + "catalogs": { + "Active": "सक्रिय", + "Inactive": "निष्क्रिय", + "Loans": "ऋण", + "Client": "ग्राहक", + "Loan": "ऋण", + "Savings": "बचत", + "Shares": "सेयरहरू", + "Regular": "नियमित", + "Account transfer": "खाता स्थानान्तरण", + "Flat": "फ्ल्याट", + "% Amount": "रकम", + "% Interest": "ब्याज", + "% Loan Amount + Interest": "ऋण रकम + ब्याज", + "Disbursement": "वितरण", + "Specified due date": "तोकिएको म्याद मिति", + "Installment Fee": "किस्ता शुल्क", + "Overdue Fees": "अतिदेय शुल्क", + "Tranche Disbursement": "किस्ता वितरण", + "Savings Activation": "बचत सक्रियता", + "Saving No Activity Fee": "कुनै गतिविधि शुल्क बचत गर्दै", + "Withdrawal Fee": "निकासी शुल्क", + "Annual Fee": "बार्षक शुल्क", + "Monthly Fee": "मासिक शुल्क", + "Weekly Fee": "साप्ताहिक शुल्क", + "Share Account Activate": "साझेदारी खाता सक्रिय गर्नुहोस्", + "Share Purchase": "शेयर खरिद", + "Share Redeem": "रिडिम साझा गर्नुहोस्", + "Days": "दिनहरू", + "Weeks": "हप्ताहरू", + "Months": "महिनाहरू", + "Years": "वर्षहरू", + "Deposit": "जम्मा", + "Withdrawal": "फिर्ता", + "Interest Posting": "रुचि पोस्टिंग", + "Waive Charge": "शुल्क छुट", + "Pay Charge": "शुल्क तिर्नुहोस्", + "Dividend Payout": "लाभांश भुक्तानी", + "Accrual": "उपार्जन", + "Initiate Transfer": "स्थानान्तरण सुरु गर्नुहोस्", + "Approve Transfer": "स्थानान्तरण अनुमोदन गर्नुहोस्", + "Withdraw Transfer": "स्थानान्तरण फिर्ता लिनुहोस्", + "Writtenoff": "लिखित अफ", + "Overdraft Interest": "ओभरड्राफ्ट ब्याज", + "Withhold Tax": "कर रोक", + "Escheat": "एस्केट", + "On Hold": "होल्डमा छ", + "Release": "रिलीज", + "Daily": "दैनिक", + "Monthly": "मासिक", + "Quarterly": "त्रैमासिक", + "Semi-Annual": "अर्ध - वार्षिक", + "Annually": "वार्षिक रूपमा", + "Weekly": "साप्ताहिक", + "Daily Balance": "दैनिक ब्यालेन्स", + "Average Daily Balance": "औसत दैनिक ब्यालेन्स", + "BiAnnual": "द्विवार्षिक", + "360 Days": "३६० दिन", + "365 Days": "३६५ दिन", + "30 Days": "30 दिन", + "364 Days": "३६४ दिन", + "Actual": "वास्तविक", + "Disbursement Date": "वितरण मिति", + "Submitted On Date": "मितिमा पेश गरियो", + "Per year": "प्रति वर्ष", + "Per month": "प्रति महिना", + "Whole term": "सम्पूर्ण अवधि", + "Same as repayment period": "भुक्तानी अवधि जस्तै", + "Declining Balance": "घट्दो ब्यालेन्स", + "Cumulative": "संचयी", + "Progressive": "प्रगतिशील", + "Penalty": "जरिवाना", + "Fees": "शुल्क", + "Fee": "शुल्क", + "Horizontal": "तेर्सो", + "Vertical": "ठाडो", + "Advanced payment allocation strategy": "उन्नत भुक्तानी आवंटन रणनीति", + "Past due penalty": "विगतको कारण सजाय", + "Past due fee": "विगतको देय शुल्क", + "Past due principal": "विगतको देय प्रिन्सिपल", + "Past due interest": "विगतको देय ब्याज", + "Due penalty": "आवश्यक जरिवाना", + "Due fee": "देय शुल्क", + "Due principal": "देय प्रिन्सिपल", + "Due interest": "देय ब्याज", + "In advanced penalty": "अग्रिम जरिवाना", + "In advanced fee": "अग्रिम शुल्कमा", + "In advanced principal": "अग्रिम प्रिन्सिपल", + "In advanced interest": "अग्रिम ब्याजमा", + "Next installment": "अर्को किस्ता", + "Last installment": "अन्तिम किस्ता", + "Reamotization": "रिमोटाइजेशन", + "equals": "बराबर", + "greater than": "भन्दा ठुलो", + "Equal installments": "बराबर किस्ता", + "Equal principal payments": "समान मूल भुक्तानी", + "Till Pre-Close Date": "पूर्व बन्द मिति सम्म", + "Till Rest Frequency Date": "आराम आवृत्ति मिति सम्म", + "Reduce EMI amount": "रकम घटाउनुहोस्", + "Reduce number of installments": "किस्ताको संख्या घटाउनुहोस्", + "Reschedule next repayments": "अर्को भुक्तानीहरू पुन: तालिका गर्नुहोस्", + "None": "राजधानी", + "Interest": "ब्याज", + "Fee and Interest": "शुल्क र ब्याज", + "Creocore Unique": "Creocore अद्वितीय", + "Early Repayment Strategy": "प्रारम्भिक भुक्तानी रणनीति", + "Penalties, Fees, Interest, Principal order": "जरिवाना, शुल्क, ब्याज, मूल आदेश", + "HeavensFamily Unique": "स्वर्ग परिवार अद्वितीय", + "Interest, Principal, Penalties, Fees Order": "ब्याज, प्रिन्सिपल, जरिवाना, शुल्क आदेश", + "Principal, Interest, Penalties, Fees Order": "प्रिन्सिपल, ब्याज, दण्ड, शुल्क आदेश", + "Overdue/Due Fee/Int,Principal": "ओभरड्यू/देय शुल्क/Int, प्रिन्सिपल", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "देय जरिवाना, दस्तुर, ब्याज, मुद्दल, अग्रिम मुद्दल, जरिवाना, शुल्क, ब्याज", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "बक्यौता जरिवाना, व्याज, मुद्दल, शुल्क, अग्रिम जरिवाना, व्याज, मूल, शुल्क", + "first": "पहिलो", + "second": "दोस्रो", + "third": "तेस्रो", + "fourth": "चार", + "last": "अन्तिम", + "on day": "दिनमा", + "SUNDAY": "आइतबार", + "MONDAY": "सोमबार", + "TUESDAY": "मंगलबार", + "WEDNESDAY": "बुधवार", + "THURSDAY": "बिहीबार", + "FRIDAY": "शुक्रबार", + "SATURDAY": "शनिबार", + "Invalid": "अवैध" + }, "commons": { "50 characters long": "५० वर्ण लामो", "8 characters long": "8 वर्ण लामो", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "खाता थप्नुहोस्", "Add Currency Form": "मुद्रा फारम थप्नुहोस्", + "Add Client Identifier": "ग्राहक पहिचानकर्ता थप्नुहोस्", "Add Journal Entry Form": "जर्नल प्रविष्टि फारम थप्नुहोस्", "Add Loan Collateral": "ऋण संपार्श्विक थप्नुहोस्", "Add Role": "भूमिका थप्नुहोस्", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "लाभांश अवधि सुरु मिति", "Dividends": "लाभांश", "Documents": "कागजातहरू", + "Document Key": "कागजात कुञ्जी", + "Document Type": "कागजात प्रकार", "Dormancy Tracking": "सुप्तता ट्र्याकिङ", "Download": "डाउनलोड गर्नुहोस्", "Due": "बाँकी", @@ -2155,6 +2288,8 @@ }, "task-management component": "कार्य व्यवस्थापन घटक", "to": "को", + "Down Payments": "तल भुक्तानीहरू", + "Enable Down Payments": "डाउन पेमेन्टहरू सक्षम गर्नुहोस्", "valid": "मान्य" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{शीर्षक: जर्नल प्रविष्टिहरू", "Mandatory": "अनिवार्य", "Voluntary": "स्वैच्छिक", + "Write a note": "नोट लेख्नुहोस्", "“Maker-Checker” principle requires every tasks": "\"मेकर-चेकर\" सिद्धान्तले त्रुटि र दुरुपयोगको सम्भावना कम गर्न प्रत्येक कार्यहरू दुई व्यक्तिद्वारा पूरा गर्न आवश्यक छ। एक व्यक्तिले प्रक्रिया सुरु गर्छ र दोस्रोले यसलाई पूरा गर्दछ।" }, "titles": { diff --git a/assets/translations/pt-PT.json b/assets/translations/pt-PT.json index f76dfdd93a..77be5199ec 100644 --- a/assets/translations/pt-PT.json +++ b/assets/translations/pt-PT.json @@ -514,8 +514,138 @@ "Waive Charge": "Isenção de cobrança", "Week": "Semana", "Withdraw": "Retirar", + "View Active Charges": "Ver cobranças ativas", + "View Inactive Charges": "Ver cobranças inativas", "Yes": "Sim" }, + "catalogs": { + "Active": "Ativo", + "Inactive": "Inativo", + "Loans": "Empréstimos", + "Client": "Cliente", + "Loan": "Empréstimo", + "Savings": "Poupança", + "Shares": "Ações", + "Regular": "Regular", + "Account transfer": "Transferência de conta", + "Flat": "Plano", + "% Amount": "Quantia", + "% Interest": "Interesse", + "% Loan Amount + Interest": "Valor do empréstimo + juros", + "Disbursement": "Desembolso", + "Specified due date": "Data de vencimento especificada", + "Installment Fee": "Taxa de parcelamento", + "Overdue Fees": "Taxas vencidas", + "Tranche Disbursement": "Desembolso da Tranche", + "Savings Activation": "Ativação de poupança", + "Saving No Activity Fee": "Economizando sem taxa de atividade", + "Withdrawal Fee": "Taxa de retirada", + "Annual Fee": "Taxa anual", + "Monthly Fee": "Taxa mensal", + "Weekly Fee": "Taxa semanal", + "Share Account Activate": "Compartilhar conta ativada", + "Share Purchase": "Compra de ações", + "Share Redeem": "Compartilhar resgatar", + "Days": "Dias", + "Weeks": "Semanas", + "Months": "Meses", + "Years": "Anos", + "Deposit": "Depósito", + "Withdrawal": "Cancelamento", + "Interest Posting": "Postagem de interesse", + "Waive Charge": "Isenção de cobrança", + "Pay Charge": "Taxa de pagamento", + "Dividend Payout": "Pagamento de dividendos", + "Accrual": "Acumulação", + "Initiate Transfer": "Iniciar transferência", + "Approve Transfer": "Aprovar transferência", + "Withdraw Transfer": "Retirar Transferência", + "Writtenoff": "Baixado", + "Overdraft Interest": "Juros do cheque especial", + "Withhold Tax": "Taxa administrativa", + "Escheat": "Fuga", + "On Hold": "Em espera", + "Release": "Liberar", + "Daily": "Diário", + "Monthly": "Por mês", + "Quarterly": "Trimestralmente", + "Semi-Annual": "Semestral", + "Annually": "Anualmente", + "Weekly": "Semanalmente", + "Daily Balance": "Saldo Diário", + "Average Daily Balance": "Saldo Médio Diário", + "BiAnnual": "Semestral", + "360 Days": "360 dias", + "365 Days": "365 dias", + "30 Days": "30 dias", + "364 Days": "364 dias", + "Actual": "Real", + "Disbursement Date": "Data de Desembolso", + "Submitted On Date": "Enviado na data", + "Per year": "Por ano", + "Per month": "Por mês", + "Whole term": "Período inteiro", + "Same as repayment period": "Igual ao período de reembolso", + "Declining Balance": "Saldo decrescente", + "Cumulative": "Cumulativo", + "Progressive": "Progressivo", + "Penalty": "Pena", + "Fees": "Tarifas", + "Fee": "Taxa", + "Horizontal": "Horizontal", + "Vertical": "Vertical", + "Advanced payment allocation strategy": "Estratégia avançada de alocação de pagamentos", + "Past due penalty": "Penalidade vencida", + "Past due fee": "Taxa vencida", + "Past due principal": "Principal vencido", + "Past due interest": "Juros vencidos", + "Due penalty": "Penalidade devida", + "Due fee": "Taxa devida", + "Due principal": "Principal devido", + "Due interest": "Juros devidos", + "In advanced penalty": "Penalidade antecipada", + "In advanced fee": "Taxa antecipada", + "In advanced principal": "Antecipadamente principal", + "In advanced interest": "Juros antecipados", + "Next installment": "Próxima parcela", + "Last installment": "Última parcela", + "Reamotization": "Reamotização", + "equals": "é igual a", + "greater than": "Maior que", + "Equal installments": "Parcelas iguais", + "Equal principal payments": "Pagamentos de principal iguais", + "Till Pre-Close Date": "Até a data de pré-fechamento", + "Till Rest Frequency Date": "Até a data de frequência de descanso", + "Reduce EMI amount": "Reduzir quantidade", + "Reduce number of installments": "Reduza o número de parcelas", + "Reschedule next repayments": "Reprogramar próximos pagamentos", + "None": "Capital", + "Interest": "Interesse", + "Fee and Interest": "Taxa e juros", + "Creocore Unique": "Creocore Único", + "Early Repayment Strategy": "Estratégia de reembolso antecipado", + "Penalties, Fees, Interest, Principal order": "Penalidades, taxas, juros, pedido principal", + "HeavensFamily Unique": "CéusFamília Única", + "Interest, Principal, Penalties, Fees Order": "Juros, principal, penalidades, ordem de taxas", + "Principal, Interest, Penalties, Fees Order": "Principal, Juros, Penalidades, Ordem de Taxas", + "Overdue/Due Fee/Int,Principal": "Taxa vencida/devida/int,principal", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Multa devida, taxa, juros, principal, Adiantamento de principal, multa, taxa, juros", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Pena devida, juros, principal, taxa, multa antecipada, juros, principal, taxa", + "first": "primeiro", + "second": "segundo", + "third": "terceiro", + "fourth": "quatro", + "last": "durar", + "on day": "Um dia", + "SUNDAY": "DOMINGO", + "MONDAY": "SEGUNDA-FEIRA", + "TUESDAY": "TERÇA-FEIRA", + "WEDNESDAY": "QUARTA-FEIRA", + "THURSDAY": "QUINTA-FEIRA", + "FRIDAY": "SEXTA-FEIRA", + "SATURDAY": "SÁBADO", + "Invalid": "Inválido" + }, "commons": { "50 characters long": "50 caracteres", "8 characters long": "8 caracteres de comprimento", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Adicionar Conta", "Add Currency Form": "Adicionar formulário de moeda", + "Add Client Identifier": "Adicionar identificador de cliente", "Add Journal Entry Form": "Adicionar formulário de lançamento contábil manual", "Add Loan Collateral": "Adicionar garantia de empréstimo", "Add Role": "Adicionar função", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Data de início do período de dividendos", "Dividends": "Dividendos", "Documents": "Documentos", + "Document Key": "Chave do documento", + "Document Type": "tipo de documento", "Dormancy Tracking": "Rastreamento de dormência", "Download": "Download", "Due": "Devido", @@ -2155,6 +2288,8 @@ }, "task-management component": "componente de gerenciamento de tarefas", "to": "para", + "Down Payments": "Adiantamentos", + "Enable Down Payments": "Habilitar adiantamentos", "valid": "válido" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{título: Lançamentos Diários", "Mandatory": "Obrigatório", "Voluntary": "Voluntário", + "Write a note": "Escreva uma nota", "“Maker-Checker” principle requires every tasks": "O princípio “Maker-Checker” exige que todas as tarefas sejam concluídas por duas pessoas para reduzir a chance de erros e uso indevido. Uma pessoa inicia o processo e a segunda o conclui." }, "titles": { diff --git a/assets/translations/sw-SW.json b/assets/translations/sw-SW.json index 6b1cbb3722..5d8c05a6b4 100644 --- a/assets/translations/sw-SW.json +++ b/assets/translations/sw-SW.json @@ -514,8 +514,138 @@ "Waive Charge": "Kuondoa Malipo", "Week": "Wiki", "Withdraw": "Kutoa", + "View Active Charges": "Tazama Malipo Yanayotumika", + "View Inactive Charges": "Tazama Gharama Isiyotumika", "Yes": "Ndiyo" }, + "catalogs": { + "Active": "Inayotumika", + "Inactive": "Isiyotumika", + "Loans": "Mikopo", + "Client": "Mteja", + "Loan": "Mkopo", + "Savings": "Akiba", + "Shares": "Hisa", + "Regular": "Mara kwa mara", + "Account transfer": "Uhamisho wa akaunti", + "Flat": "Gorofa", + "% Amount": "Kiasi", + "% Interest": "Hamu", + "% Loan Amount + Interest": "Kiasi cha Mkopo + Riba", + "Disbursement": "Utoaji", + "Specified due date": "Tarehe ya mwisho iliyoainishwa", + "Installment Fee": "Ada ya Ufungaji", + "Overdue Fees": "Ada Zilizochelewa", + "Tranche Disbursement": "Utoaji wa Tranche", + "Savings Activation": "Uanzishaji wa Akiba", + "Saving No Activity Fee": "Haihifadhi Ada ya Shughuli", + "Withdrawal Fee": "Ada ya Kuondoa", + "Annual Fee": "Ada ya Mwaka", + "Monthly Fee": "Ada ya Kila Mwezi", + "Weekly Fee": "Ada ya Wiki", + "Share Account Activate": "Shiriki Akaunti Washa", + "Share Purchase": "Shiriki Ununuzi", + "Share Redeem": "Shiriki Kukomboa", + "Days": "Siku", + "Weeks": "Wiki", + "Months": "Miezi", + "Years": "Miaka", + "Deposit": "Amana", + "Withdrawal": "Uondoaji", + "Interest Posting": "Maslahi Posting", + "Waive Charge": "Kuondoa Malipo", + "Pay Charge": "Lipa Ada", + "Dividend Payout": "Malipo ya gawio", + "Accrual": "Accrual", + "Initiate Transfer": "Anzisha Uhamisho", + "Approve Transfer": "Idhinisha Uhamisho", + "Withdraw Transfer": "Ondoa Uhamisho", + "Writtenoff": "Imeandikwa", + "Overdraft Interest": "Riba ya overdraft", + "Withhold Tax": "Kodi ya Kuzuia", + "Escheat": "Escheat", + "On Hold": "Imesimama", + "Release": "Kutolewa", + "Daily": "Kila siku", + "Monthly": "Kila mwezi", + "Quarterly": "Kila robo", + "Semi-Annual": "Nusu ya Mwaka", + "Annually": "Kila mwaka", + "Weekly": "Kila wiki", + "Daily Balance": "Mizani ya Kila siku", + "Average Daily Balance": "Wastani wa Salio la Kila Siku", + "BiAnnual": "BiAnnual", + "360 Days": "Siku 360", + "365 Days": "Siku 365", + "30 Days": "Siku 30", + "364 Days": "Siku 364", + "Actual": "Halisi", + "Disbursement Date": "Tarehe ya Utoaji", + "Submitted On Date": "Imewasilishwa Tarehe", + "Per year": "Kwa mwaka", + "Per month": "Kwa mwezi", + "Whole term": "Muda Mzima", + "Same as repayment period": "Sawa na kipindi cha malipo", + "Declining Balance": "Kupungua kwa Mizani", + "Cumulative": "Jumla", + "Progressive": "Maendeleo", + "Penalty": "Adhabu", + "Fees": "Ada", + "Fee": "Ada", + "Horizontal": "Mlalo", + "Vertical": "Wima", + "Advanced payment allocation strategy": "Mkakati wa hali ya juu wa ugawaji malipo", + "Past due penalty": "Adhabu ya wakati uliopita", + "Past due fee": "Ada ya malipo ya nyuma", + "Past due principal": "Mkuu wa shule aliyepita", + "Past due interest": "Maslahi yaliyopita", + "Due penalty": "Adhabu inayostahili", + "Due fee": "Ada inayodaiwa", + "Due principal": "Malipo mkuu", + "Due interest": "Nia inayostahili", + "In advanced penalty": "Adhabu ya mapema", + "In advanced fee": "Ada ya mapema", + "In advanced principal": "Mapema mkuu", + "In advanced interest": "Maslahi ya mapema", + "Next installment": "Awamu inayofuata", + "Last installment": "Awamu ya mwisho", + "Reamotization": "Remotization", + "equals": "sawa", + "greater than": "kubwa kuliko", + "Equal installments": "Awamu sawa", + "Equal principal payments": "Malipo ya msingi sawa", + "Till Pre-Close Date": "Hadi Tarehe ya Kufungwa", + "Till Rest Frequency Date": "Hadi Tarehe ya Marudio ya Kupumzika", + "Reduce EMI amount": "Punguza Kiasi", + "Reduce number of installments": "Kupunguza idadi ya awamu", + "Reschedule next repayments": "Panga upya malipo yanayofuata", + "None": "Mtaji", + "Interest": "Hamu", + "Fee and Interest": "Ada na Riba", + "Creocore Unique": "Creocore ya kipekee", + "Early Repayment Strategy": "Mkakati wa Kulipa Mapema", + "Penalties, Fees, Interest, Principal order": "Adhabu, Ada, Riba, Agizo kuu", + "HeavensFamily Unique": "HeavensFamily ya Kipekee", + "Interest, Principal, Penalties, Fees Order": "Riba, Mkuu, Adhabu, Agizo la Ada", + "Principal, Interest, Penalties, Fees Order": "Mkuu, Riba, Adhabu, Agizo la Ada", + "Overdue/Due Fee/Int,Principal": "Ada Imechelewa/Inayodaiwa/Int,Mkuu", + "Due penalty, fee, interest, principal, In advance principal, penalty, fee, interest": "Adhabu inayodaiwa, ada, riba, mkuu, Mapema mkuu, adhabu, ada, riba", + "Due penalty, interest, principal, fee, In advance penalty, interest, principal, fee": "Adhabu inayostahili, riba, mkuu, ada, Adhabu ya mapema, riba, mkuu, ada", + "first": "kwanza", + "second": "pili", + "third": "cha tatu", + "fourth": "nne", + "last": "mwisho", + "on day": "siku", + "SUNDAY": "JUMAPILI", + "MONDAY": "JUMATATU", + "TUESDAY": "JUMANNE", + "WEDNESDAY": "JUMATANO", + "THURSDAY": "ALHAMISI", + "FRIDAY": "IJUMAA", + "SATURDAY": "JUMAMOSI", + "Invalid": "Batili" + }, "commons": { "50 characters long": "Urefu wa herufi 50", "8 characters long": "Urefu wa herufi 8", @@ -574,6 +704,7 @@ "AdHocQuery": "AdHocQuery", "Add Account": "Ongeza Akaunti", "Add Currency Form": "Ongeza Fomu ya Sarafu", + "Add Client Identifier": "Ongeza Kitambulisho cha Mteja", "Add Journal Entry Form": "Ongeza Fomu ya Kuingiza Jarida", "Add Loan Collateral": "Ongeza Dhamana ya Mkopo", "Add Role": "Ongeza Jukumu", @@ -1265,6 +1396,8 @@ "Dividend Period Start Date": "Tarehe ya Kuanza kwa Kipindi cha Gawio", "Dividends": "Gawio", "Documents": "Nyaraka", + "Document Key": "Ufunguo wa Hati", + "Document Type": "Aina ya Hati", "Dormancy Tracking": "Ufuatiliaji wa Malalamiko", "Download": "Pakua", "Due": "Inastahili", @@ -2155,6 +2288,8 @@ }, "task-management component": "sehemu ya usimamizi wa kazi", "to": "kwa", + "Down Payments": "Malipo ya Chini", + "Enable Down Payments": "Washa Malipo ya Chini", "valid": "halali" }, "links": { @@ -2880,6 +3015,7 @@ "Journal Entries": "{kichwa: Maingizo ya Jarida", "Mandatory": "Lazima", "Voluntary": "Kwa hiari", + "Write a note": "Andika dokezo", "“Maker-Checker” principle requires every tasks": "Kanuni ya \"Mtengenezaji-Kikagua\" inahitaji kila kazi kukamilishwa na watu wawili ili kupunguza uwezekano wa makosa na matumizi mabaya. Mtu mmoja anaanzisha mchakato na wa pili anakamilisha." }, "titles": { diff --git a/main.js b/main.js index 436f9cb2f7..4eb5422a10 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(at,et,v)=>{at=v.nmd(at),function(d){const p=d.en=d.en||{};p.dictionary=Object.assign(p.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,at.exports=(()=>(()=>{var d={4959:(t,A,x)=>{const U=x(1103),k={};for(const P of Object.keys(U))k[U[P]]=P;const D={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=D;for(const P of Object.keys(D)){if(!("channels"in D[P]))throw new Error("missing channels property: "+P);if(!("labels"in D[P]))throw new Error("missing channel labels property: "+P);if(D[P].labels.length!==D[P].channels)throw new Error("channel and label counts mismatch: "+P);const{channels:F,labels:z}=D[P];delete D[P].channels,delete D[P].labels,Object.defineProperty(D[P],"channels",{value:F}),Object.defineProperty(D[P],"labels",{value:z})}D.rgb.hsl=function(P){const F=P[0]/255,z=P[1]/255,J=P[2]/255,K=Math.min(F,z,J),ot=Math.max(F,z,J),lt=ot-K;let vt,Dt;ot===K?vt=0:F===ot?vt=(z-J)/lt:z===ot?vt=2+(J-F)/lt:J===ot&&(vt=4+(F-z)/lt),vt=Math.min(60*vt,360),vt<0&&(vt+=360);const Pt=(K+ot)/2;return Dt=ot===K?0:Pt<=.5?lt/(ot+K):lt/(2-ot-K),[vt,100*Dt,100*Pt]},D.rgb.hsv=function(P){let F,z,J,K,ot;const lt=P[0]/255,vt=P[1]/255,Dt=P[2]/255,Pt=Math.max(lt,vt,Dt),zt=Pt-Math.min(lt,vt,Dt),Vt=function(it){return(Pt-it)/6/zt+.5};return 0===zt?(K=0,ot=0):(ot=zt/Pt,F=Vt(lt),z=Vt(vt),J=Vt(Dt),lt===Pt?K=J-z:vt===Pt?K=.3333333333333333+F-J:Dt===Pt&&(K=.6666666666666666+z-F),K<0?K+=1:K>1&&(K-=1)),[360*K,100*ot,100*Pt]},D.rgb.hwb=function(P){const F=P[0],z=P[1];let J=P[2];const K=D.rgb.hsl(P)[0],ot=1/255*Math.min(F,Math.min(z,J));return J=1-.00392156862745098*Math.max(F,Math.max(z,J)),[K,100*ot,100*J]},D.rgb.cmyk=function(P){const F=P[0]/255,z=P[1]/255,J=P[2]/255,K=Math.min(1-F,1-z,1-J);return[100*((1-F-K)/(1-K)||0),100*((1-z-K)/(1-K)||0),100*((1-J-K)/(1-K)||0),100*K]},D.rgb.keyword=function(P){const F=k[P];if(F)return F;let z,J=1/0;for(const lt of Object.keys(U)){const Dt=((K=P)[0]-(ot=U[lt])[0])**2+(K[1]-ot[1])**2+(K[2]-ot[2])**2;Dt.04045?((F+.055)/1.055)**2.4:F/12.92,z=z>.04045?((z+.055)/1.055)**2.4:z/12.92,J=J>.04045?((J+.055)/1.055)**2.4:J/12.92,[100*(.4124*F+.3576*z+.1805*J),100*(.2126*F+.7152*z+.0722*J),100*(.0193*F+.1192*z+.9505*J)]},D.rgb.lab=function(P){const F=D.rgb.xyz(P);let z=F[0],J=F[1],K=F[2];return z/=95.047,J/=100,K/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,J=J>.008856?J**.3333333333333333:7.787*J+.13793103448275862,K=K>.008856?K**.3333333333333333:7.787*K+.13793103448275862,[116*J-16,500*(z-J),200*(J-K)]},D.hsl.rgb=function(P){const F=P[0]/360,z=P[1]/100,J=P[2]/100;let K,ot,lt;if(0===z)return lt=255*J,[lt,lt,lt];K=J<.5?J*(1+z):J+z-J*z;const vt=2*J-K,Dt=[0,0,0];for(let Pt=0;Pt<3;Pt++)ot=F+.3333333333333333*-(Pt-1),ot<0&&ot++,ot>1&&ot--,lt=6*ot<1?vt+6*(K-vt)*ot:2*ot<1?K:3*ot<2?vt+(K-vt)*(.6666666666666666-ot)*6:vt,Dt[Pt]=255*lt;return Dt},D.hsl.hsv=function(P){const F=P[0];let z=P[1]/100,J=P[2]/100,K=z;const ot=Math.max(J,.01);return J*=2,z*=J<=1?J:2-J,K*=ot<=1?ot:2-ot,[F,100*(0===J?2*K/(ot+K):2*z/(J+z)),(J+z)/2*100]},D.hsv.rgb=function(P){const F=P[0]/60,z=P[1]/100;let J=P[2]/100;const K=Math.floor(F)%6,ot=F-Math.floor(F),lt=255*J*(1-z),vt=255*J*(1-z*ot),Dt=255*J*(1-z*(1-ot));switch(J*=255,K){case 0:return[J,Dt,lt];case 1:return[vt,J,lt];case 2:return[lt,J,Dt];case 3:return[lt,vt,J];case 4:return[Dt,lt,J];case 5:return[J,lt,vt]}},D.hsv.hsl=function(P){const F=P[0],z=P[1]/100,J=P[2]/100,K=Math.max(J,.01);let ot,lt;lt=(2-z)*J;const vt=(2-z)*K;return ot=z*K,ot/=vt<=1?vt:2-vt,ot=ot||0,lt/=2,[F,100*ot,100*lt]},D.hwb.rgb=function(P){const F=P[0]/360;let z=P[1]/100,J=P[2]/100;const K=z+J;let ot;K>1&&(z/=K,J/=K);const lt=Math.floor(6*F),vt=1-J;ot=6*F-lt,0!=(1<)&&(ot=1-ot);const Dt=z+ot*(vt-z);let Pt,zt,Vt;switch(lt){default:case 6:case 0:Pt=vt,zt=Dt,Vt=z;break;case 1:Pt=Dt,zt=vt,Vt=z;break;case 2:Pt=z,zt=vt,Vt=Dt;break;case 3:Pt=z,zt=Dt,Vt=vt;break;case 4:Pt=Dt,zt=z,Vt=vt;break;case 5:Pt=vt,zt=z,Vt=Dt}return[255*Pt,255*zt,255*Vt]},D.cmyk.rgb=function(P){const z=P[1]/100,J=P[2]/100,K=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-K)+K)),255*(1-Math.min(1,z*(1-K)+K)),255*(1-Math.min(1,J*(1-K)+K))]},D.xyz.rgb=function(P){const F=P[0]/100,z=P[1]/100,J=P[2]/100;let K,ot,lt;return K=3.2406*F+-1.5372*z+-.4986*J,ot=-.9689*F+1.8758*z+.0415*J,lt=.0557*F+-.204*z+1.057*J,K=K>.0031308?1.055*K**.4166666666666667-.055:12.92*K,ot=ot>.0031308?1.055*ot**.4166666666666667-.055:12.92*ot,lt=lt>.0031308?1.055*lt**.4166666666666667-.055:12.92*lt,K=Math.min(Math.max(0,K),1),ot=Math.min(Math.max(0,ot),1),lt=Math.min(Math.max(0,lt),1),[255*K,255*ot,255*lt]},D.xyz.lab=function(P){let F=P[0],z=P[1],J=P[2];return F/=95.047,z/=100,J/=108.883,F=F>.008856?F**.3333333333333333:7.787*F+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,J=J>.008856?J**.3333333333333333:7.787*J+.13793103448275862,[116*z-16,500*(F-z),200*(z-J)]},D.lab.xyz=function(P){let F,z,J;z=(P[0]+16)/116,F=P[1]/500+z,J=z-P[2]/200;const K=z**3,ot=F**3,lt=J**3;return z=K>.008856?K:(z-.13793103448275862)/7.787,F=ot>.008856?ot:(F-.13793103448275862)/7.787,J=lt>.008856?lt:(J-.13793103448275862)/7.787,F*=95.047,z*=100,J*=108.883,[F,z,J]},D.lab.lch=function(P){const F=P[0],z=P[1],J=P[2];let K;return K=360*Math.atan2(J,z)/2/Math.PI,K<0&&(K+=360),[F,Math.sqrt(z*z+J*J),K]},D.lch.lab=function(P){const z=P[1],J=P[2]/360*2*Math.PI;return[P[0],z*Math.cos(J),z*Math.sin(J)]},D.rgb.ansi16=function(P,F=null){const[z,J,K]=P;let ot=null===F?D.rgb.hsv(P)[2]:F;if(ot=Math.round(ot/50),0===ot)return 30;let lt=30+(Math.round(K/255)<<2|Math.round(J/255)<<1|Math.round(z/255));return 2===ot&&(lt+=60),lt},D.hsv.ansi16=function(P){return D.rgb.ansi16(D.hsv.rgb(P),P[2])},D.rgb.ansi256=function(P){const F=P[0],z=P[1],J=P[2];return F===z&&z===J?F<8?16:F>248?231:Math.round((F-8)/247*24)+232:16+36*Math.round(F/255*5)+6*Math.round(z/255*5)+Math.round(J/255*5)},D.ansi16.rgb=function(P){let F=P%10;if(0===F||7===F)return P>50&&(F+=3.5),F=F/10.5*255,[F,F,F];const z=.5*(1+~~(P>50));return[(1&F)*z*255,(F>>1&1)*z*255,(F>>2&1)*z*255]},D.ansi256.rgb=function(P){if(P>=232){const z=10*(P-232)+8;return[z,z,z]}let F;return P-=16,[Math.floor(P/36)/5*255,Math.floor((F=P%36)/6)/5*255,F%6/5*255]},D.rgb.hex=function(P){const F=(((255&Math.round(P[0]))<<16)+((255&Math.round(P[1]))<<8)+(255&Math.round(P[2]))).toString(16).toUpperCase();return"000000".substring(F.length)+F},D.hex.rgb=function(P){const F=P.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!F)return[0,0,0];let z=F[0];3===F[0].length&&(z=z.split("").map(K=>K+K).join(""));const J=parseInt(z,16);return[J>>16&255,J>>8&255,255&J]},D.rgb.hcg=function(P){const F=P[0]/255,z=P[1]/255,J=P[2]/255,K=Math.max(Math.max(F,z),J),ot=Math.min(Math.min(F,z),J),lt=K-ot;let vt,Dt;return vt=lt<1?ot/(1-lt):0,Dt=lt<=0?0:K===F?(z-J)/lt%6:K===z?2+(J-F)/lt:4+(F-z)/lt,Dt/=6,Dt%=1,[360*Dt,100*lt,100*vt]},D.hsl.hcg=function(P){const F=P[1]/100,z=P[2]/100,J=z<.5?2*F*z:2*F*(1-z);let K=0;return J<1&&(K=(z-.5*J)/(1-J)),[P[0],100*J,100*K]},D.hsv.hcg=function(P){const z=P[2]/100,J=P[1]/100*z;let K=0;return J<1&&(K=(z-J)/(1-J)),[P[0],100*J,100*K]},D.hcg.rgb=function(P){const z=P[1]/100,J=P[2]/100;if(0===z)return[255*J,255*J,255*J];const K=[0,0,0],ot=P[0]/360%1*6,lt=ot%1,vt=1-lt;let Dt=0;switch(Math.floor(ot)){case 0:K[0]=1,K[1]=lt,K[2]=0;break;case 1:K[0]=vt,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=lt;break;case 3:K[0]=0,K[1]=vt,K[2]=1;break;case 4:K[0]=lt,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=vt}return Dt=(1-z)*J,[255*(z*K[0]+Dt),255*(z*K[1]+Dt),255*(z*K[2]+Dt)]},D.hcg.hsv=function(P){const F=P[1]/100,z=F+P[2]/100*(1-F);let J=0;return z>0&&(J=F/z),[P[0],100*J,100*z]},D.hcg.hsl=function(P){const F=P[1]/100,z=P[2]/100*(1-F)+.5*F;let J=0;return z>0&&z<.5?J=F/(2*z):z>=.5&&z<1&&(J=F/(2*(1-z))),[P[0],100*J,100*z]},D.hcg.hwb=function(P){const F=P[1]/100,z=F+P[2]/100*(1-F);return[P[0],100*(z-F),100*(1-z)]},D.hwb.hcg=function(P){const z=1-P[2]/100,J=z-P[1]/100;let K=0;return J<1&&(K=(z-J)/(1-J)),[P[0],100*J,100*K]},D.apple.rgb=function(P){return[P[0]/65535*255,P[1]/65535*255,P[2]/65535*255]},D.rgb.apple=function(P){return[P[0]/255*65535,P[1]/255*65535,P[2]/255*65535]},D.gray.rgb=function(P){return[P[0]/100*255,P[0]/100*255,P[0]/100*255]},D.gray.hsl=function(P){return[0,0,P[0]]},D.gray.hsv=D.gray.hsl,D.gray.hwb=function(P){return[0,100,P[0]]},D.gray.cmyk=function(P){return[0,0,0,P[0]]},D.gray.lab=function(P){return[P[0],0,0]},D.gray.hex=function(P){const F=255&Math.round(P[0]/100*255),z=((F<<16)+(F<<8)+F).toString(16).toUpperCase();return"000000".substring(z.length)+z},D.rgb.gray=function(P){return[(P[0]+P[1]+P[2])/3/255*100]}},841:(t,A,x)=>{const U=x(4959),k=x(9325),D={};Object.keys(U).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:U[P].channels}),Object.defineProperty(D[P],"labels",{value:U[P].labels});const F=k(P);Object.keys(F).forEach(z=>{const J=F[z];D[P][z]=function(K){const ot=function(...lt){const vt=lt[0];if(null==vt)return vt;vt.length>1&&(lt=vt);const Dt=K(lt);if("object"==typeof Dt)for(let Pt=Dt.length,zt=0;zt1&&(lt=vt),K(lt))};return"conversion"in K&&(ot.conversion=K.conversion),ot}(J)})}),t.exports=D},9325:(t,A,x)=>{const U=x(4959);function D(F,z){return function(J){return z(F(J))}}function P(F,z){const J=[z[F].parent,F];let K=U[z[F].parent][F],ot=z[F].parent;for(;z[ot].parent;)J.unshift(z[ot].parent),K=D(U[z[ot].parent][ot],K),ot=z[ot].parent;return K.conversion=J,K}t.exports=function(F){const z=function k(F){const z=function(){const K={},ot=Object.keys(U);for(let lt=ot.length,vt=0;vt{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const F=P},3062:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const F=P},903:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},3143:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},4717:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const F=P},9315:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const F=P},8733:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const F=P},3508:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},2640:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const F=P},3535:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);const F=P},1568:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6270:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const F=P},5083:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},4036:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const F=P},3773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const F=P},3689:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const F=P},1905:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},9773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const F=P},2347:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},7754:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},111:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const F=P},4721:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},5730:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const F=P},4564:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6082:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},2417:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},1199:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},4652:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const F=P},7442:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},9292:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7368:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},4070:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},9247:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},1613:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const F=P},6306:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const F=P},2128:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const F=P},5087:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},4101:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const F=P},3881:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6237:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7341:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6945:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},8157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},4906:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const F=P},5332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const F=P},6781:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const F=P},3398:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const F=P},4157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},5485:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},3949:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7686:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7339:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const F=P},9688:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},8847:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BASD,CAPC,6BACC,qCACD,CAEA,8CACC,WACD,CCbD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& .ck-icon {\n\t\tmargin-right: var(--ck-spacing-medium);\n\t}\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const F=P},8960:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const F=P},6574:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},4879:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},3662:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const F=P},2577:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},1046:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>span{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,8BACC,cAAe,CACf,eAAiB,CACjB,gCACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > span {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},8793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},4650:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7676:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},5868:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},6764:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},6770:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const F=P},498:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const F=P},8182:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const F=P},9695:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const F=P},5542:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},3332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const F=P},4793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const F=P},3488:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},8506:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const F=P},4921:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const F=P},2609:t=>{"use strict";t.exports=function(A){var x=[];return x.toString=function(){return this.map(function(U){var k=A(U);return U[2]?"@media ".concat(U[2]," {").concat(k,"}"):k}).join("")},x.i=function(U,k,D){"string"==typeof U&&(U=[[null,U,""]]);var P={};if(D)for(var F=0;F{"use strict";function x(U,k){(null==k||k>U.length)&&(k=U.length);for(var D=0,P=new Array(k);D{"use strict";var U,Vt,D=(Vt={},function(it){if(void 0===Vt[it]){var Tt=document.querySelector(it);if(window.HTMLIFrameElement&&Tt instanceof window.HTMLIFrameElement)try{Tt=Tt.contentDocument.head}catch{Tt=null}Vt[it]=Tt}return Vt[it]}),P=[];function F(Vt){for(var it=-1,Tt=0;Tt{var A=t&&t.__esModule?()=>t.default:()=>t;return b.d(A,{a:A}),A},b.d=(t,A)=>{for(var x in A)b.o(A,x)&&!b.o(t,x)&&Object.defineProperty(t,x,{enumerable:!0,get:A[x]})},b.o=(t,A)=>Object.prototype.hasOwnProperty.call(t,A),b.nc=void 0;var T={};return(()=>{"use strict";function t({emitter:m,activator:r,callback:c,contextElements:u}){m.listenTo(document,"mousedown",(_,C)=>{if(!r())return;const M="function"==typeof C.composedPath?C.composedPath():[],E="function"==typeof u?u():u;for(const N of E)if(N.contains(C.target)||M.includes(N))return;c()})}function A(m){return class extends m{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...r){super(...r),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function x({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}b.d(T,{default:()=>p7});const U=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(U),D_isGecko=(U.indexOf("windows"),!!U.match(/gecko\/\d+/)),D_isSafari=(m=U).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(U),D_isAndroid=function(m){return m.indexOf("android")>-1}(U),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(U);var m;function P(m){return m.indexOf("macintosh")>-1}function F(m,r,c,u){c=c||function(N,G){return N===G};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),C=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(N,G,W){const dt=z(N,G,W);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const xe=z(J(N,dt),J(G,dt),W);return{firstIndex:dt,lastIndexOld:N.length-xe,lastIndexNew:G.length-xe}}(_,C,c);return u?function(N,G){const{firstIndex:W,lastIndexOld:dt,lastIndexNew:Zt}=N;if(-1===W)return Array(G).fill("equal");let ue=[];return W>0&&(ue=ue.concat(Array(W).fill("equal"))),Zt-W>0&&(ue=ue.concat(Array(Zt-W).fill("insert"))),dt-W>0&&(ue=ue.concat(Array(dt-W).fill("delete"))),Zt0&&W.push({index:dt,type:"insert",values:N.slice(dt,ue)}),Zt-dt>0&&W.push({index:dt+(ue-dt),type:"delete",howMany:Zt-dt}),W}(C,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return K.fastDiff(m,r,c,!0);let C,M;if(_Mn?-1:1;W[Ee+di]&&(W[Ee]=W[Ee+di].slice(0)),W[Ee]||(W[Ee]=[]),W[Ee].push(ln>Mn?C:M);let Ri=Math.max(ln,Mn),Jo=Ri-Ee;for(;JoG;ue--)dt[ue]=Zt(ue);dt[G]=Zt(G),xe++}while(dt[G]!==N);return W[G].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),K.fastDiff=F;class lt{constructor(r,c){this.source=r,this.name=c,this.path=[],this.stop=function m(){m.called=!0},this.off=function m(){m.called=!0}}}const vt=new Array(256).fill("").map((m,r)=>("0"+r.toString(16)).slice(-2));function Dt(){const m=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,c=4294967296*Math.random()>>>0,u=4294967296*Math.random()>>>0;return"e"+vt[m>>0&255]+vt[m>>8&255]+vt[m>>16&255]+vt[m>>24&255]+vt[r>>0&255]+vt[r>>8&255]+vt[r>>16&255]+vt[r>>24&255]+vt[c>>0&255]+vt[c>>8&255]+vt[c>>16&255]+vt[c>>24&255]+vt[u>>0&255]+vt[u>>8&255]+vt[u>>16&255]+vt[u>>24&255]}const Pt={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function zt(m,r){const c=Pt.get(r.priority);for(let u=0;u{if("object"==typeof dt&&null!==dt){if(M.has(dt))return`[object ${dt.constructor.name}]`;M.add(dt)}return dt})}`:"")+ft(_)}(r,u)),this.name="CKEditorError",this.context=c,this.data=u}is(r){return"CKEditorError"===r}static rethrowUnexpectedError(r,c){if(r.is&&r.is("CKEditorError"))throw r;const u=new it(r.message,c);throw u.stack=r.stack,u}}function Tt(m,r){console.warn(...Et(m,r))}function At(m,r){console.error(...Et(m,r))}function ft(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Et(m,r){const c=ft(m);return r?[m,r,c]:[m,c]}const Ft=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new it("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const se=Symbol("listeningTo"),jt=Symbol("emitterId"),ve=Symbol("delegations"),be=Le(Object);function Le(m){return m?class extends m{on(r,c,u){this.listenTo(this,r,c,u)}once(r,c,u){let _=!1;this.listenTo(this,r,(C,...M)=>{_||(_=!0,C.off(),c.call(this,C,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let C,M;this[se]||(this[se]={});const E=this[se];$e(r)||qe(r);const N=$e(r);var W,dt,Zt,ue;(C=E[N])||(C=E[N]={emitter:r,callbacks:{}}),(M=C.callbacks[c])||(M=C.callbacks[c]=[]),M.push(u),dt=c,Zt=u,ue=_,(W=r)._addEventListener?W._addEventListener(dt,Zt,ue):this._addEventListener.call(W,dt,Zt,ue)}stopListening(r,c,u){const _=this[se];let C=r&&$e(r);const M=_&&C?_[C]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)de(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:de(this,r,c,u));else if(E){for(;u=E.pop();)de(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[C]}else{for(C in _)this.stopListening(_[C].emitter);delete this[se]}}fire(r,...c){try{const u=r instanceof lt?r:new lt(this,r),_=u.name;let C=ae(this,_);if(u.path.push(this),C){const E=[u,...c];C=Array.from(C);for(let N=0;N{this[ve]||(this[ve]=new Map),r.forEach(_=>{const C=this[ve].get(_);C?C.set(c,u):this[ve].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[ve])if(r)if(c){const u=this[ve].get(r);u&&u.delete(c)}else this[ve].delete(r);else this[ve].clear()}_addEventListener(r,c,u){!function(M,E){const N=Xt(M);if(N[E])return;let G=E,W=null;const dt=[];for(;""!==G&&!N[G];)N[G]={callbacks:[],childEvents:[]},dt.push(N[G]),W&&N[G].childEvents.push(W),W=G,G=G.substr(0,G.lastIndexOf(":"));if(""!==G){for(const Zt of dt)Zt.callbacks=N[G].callbacks.slice();N[G].childEvents.push(W)}}(this,r);const _=Te(this,r),C={callback:c,priority:Pt.get(u.priority)};for(const M of _)zt(M,C)}_removeEventListener(r,c){const u=Te(this,r);for(const _ of u)for(let C=0;C<_.length;C++)_[C].callback==c&&(_.splice(C,1),C--)}}:be}function qe(m,r){m[jt]||(m[jt]=r||Dt())}function $e(m){return m[jt]}function Xt(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function Te(m,r){const c=Xt(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?ae(m,r.substr(0,r.lastIndexOf(":"))):null}function Kt(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const C=new lt(r.source,_);C.path=[...r.path],u.fire(C,...c)}}function de(m,r,c,u){r._removeEventListener?r._removeEventListener(c,u):m._removeEventListener.call(r,c,u)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Le[m]=be.prototype[m]});const Wt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},re=Symbol("observableProperties"),De=Symbol("boundObservables"),on=Symbol("boundProperties"),_n=Symbol("decoratedMethods"),Ae=Symbol("decoratedOriginal"),gn=we(Le());function we(m){return m?class extends m{set(r,c){if(Wt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);un(this);const u=this[re];if(r in this&&!u.has(r))throw new it("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const C=u.get(r);let M=this.fire(`set:${r}`,r,_,C);void 0===M&&(M=_),C===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,C))}}),this[r]=c}bind(...r){if(!r.length||!vi(r))throw new it("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new it("observable-bind-duplicate-properties",this);un(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new it("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const C={property:_,to:[]};c.set(_,C),u.set(_,C)}),{to:Un,toMany:oi,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[re])return;const c=this[on],u=this[De];if(r.length){if(!vi(r))throw new it("observable-unbind-wrong-properties",this);r.forEach(_=>{const C=c.get(_);C&&(C.to.forEach(([M,E])=>{const N=u.get(M),G=N[E];G.delete(C),G.size||delete N[E],Object.keys(N).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,C)=>{this.stopListening(C,"change")}),u.clear(),c.clear()}decorate(r){un(this);const c=this[r];if(!c)throw new it("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:r});this.on(r,(u,_)=>{u.return=c.apply(this,_)}),this[r]=function(...u){return this.fire(r,u)},this[r][Ae]=c,this[_n]||(this[_n]=[]),this[_n].push(r)}stopListening(r,c,u){if(!r&&this[_n]){for(const _ of this[_n])this[_]=this[_][Ae];delete this[_n]}super.stopListening(r,c,u)}}:gn}function un(m){m[re]||(Object.defineProperty(m,re,{value:new Map}),Object.defineProperty(m,De,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function Un(...m){const r=function(...C){if(!C.length)throw new it("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof C[C.length-1]&&(M.callback=C.pop()),C.forEach(N=>{if("string"==typeof N)E.properties.push(N);else{if("object"!=typeof N)throw new it("observable-bind-to-parse-error",null);E={observable:N,properties:[]},M.to.push(E)}}),M}(...m),c=Array.from(this._bindings.keys()),u=c.length;if(!r.callback&&r.to.length>1)throw new it("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new it("observable-bind-to-extra-callback",this);var _;r.to.forEach(C=>{if(C.properties.length&&C.properties.length!==u)throw new it("observable-bind-to-properties-length",this);C.properties.length||(C.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(C=>{const M=_[De];let E;M.get(C.observable)||_.listenTo(C.observable,"change",(N,G)=>{E=M.get(C.observable)[G],E&&E.forEach(W=>{si(_,W.property)})})}),function(C){let M;C._bindings.forEach((E,N)=>{C._to.forEach(G=>{M=G.properties[E.callback?0:C._bindProperties.indexOf(N)],E.to.push([G.observable,M]),function(W,dt,Zt,ue){const xe=W[De],Ee=xe.get(Zt),ln=Ee||{};ln[ue]||(ln[ue]=new Set),ln[ue].add(dt),Ee||xe.set(Zt,ln)}(C._observable,E,G.observable,M)})})}(this),this._bindProperties.forEach(C=>{si(this._observable,C)})}function oi(m,r,c){if(this._bindings.size>1)throw new it("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const C=u.map(M=>[M,_]);return Array.prototype.concat.apply([],C)}(m,r),c)}function vi(m){return m.every(r=>"string"==typeof r)}function si(m,r){const c=m[on].get(r);let u;c.callback?u=c.callback.apply(m,c.to.map(_=>_[0][_[1]])):(u=c.to[0],u=u[0][u[1]]),Object.prototype.hasOwnProperty.call(m,r)?m[r]=u:m.set(r,u)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{we[m]=gn.prototype[m]});class Ke{constructor(){this._replacedElements=[]}replace(r,c){this._replacedElements.push({element:r,newElement:c}),r.style.display="none",c&&r.parentNode.insertBefore(c,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:c})=>{r.style.display="",c&&c.remove()}),this._replacedElements=[]}}function ne(m){let r=0;for(const c of m)r++;return r}function ct(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},mn.prototype.set=function(m,r){var c=this.__data__,u=he(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const An=mn,No=function(m){if(!Wt(m))return!1;var r=Gn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ua=oe["__core-js_shared__"];var qa=function(){var m=/[^.]+$/.exec(ua&&ua.keys&&ua.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Je=Function.prototype.toString;const Fn=function(m){if(null!=m){try{return Je.call(m)}catch{}try{return m+""}catch{}}return""};var He=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Wt(m)||function(m){return!!qa&&qa in m}(m))&&(No(m)?Q:He).test(Fn(m))}(c)?c:void 0},Qi=Rn(oe,"Map"),Ao=Rn(Object,"create");var us=Object.prototype.hasOwnProperty,Or=Object.prototype.hasOwnProperty;function Gr(m){var r=-1,c=null==m?0:m.length;for(this.clear();++r-1&&m%1==0&&m-1&&m%1==0&&m<=9007199254740991};var Ro={};Ro["[object Float32Array]"]=Ro["[object Float64Array]"]=Ro["[object Int8Array]"]=Ro["[object Int16Array]"]=Ro["[object Int32Array]"]=Ro["[object Uint8Array]"]=Ro["[object Uint8ClampedArray]"]=Ro["[object Uint16Array]"]=Ro["[object Uint32Array]"]=!0,Ro["[object Arguments]"]=Ro["[object Array]"]=Ro["[object ArrayBuffer]"]=Ro["[object Boolean]"]=Ro["[object DataView]"]=Ro["[object Date]"]=Ro["[object Error]"]=Ro["[object Function]"]=Ro["[object Map]"]=Ro["[object Number]"]=Ro["[object Object]"]=Ro["[object RegExp]"]=Ro["[object Set]"]=Ro["[object String]"]=Ro["[object WeakMap]"]=!1;const lc=function(m){return function(r){return m(r)}};var Iu=et&&!et.nodeType&&et,Rl=Iu&&at&&!at.nodeType&&at,gc=Rl&&Rl.exports===Iu&&kt.process;const yl=function(){try{return Rl&&Rl.require&&Rl.require("util").types||gc&&gc.binding&&gc.binding("util")}catch{}}();var Ms=yl&&yl.isTypedArray;const Yc=Ms?lc(Ms):function(m){return fn(m)&&ql(m.length)&&!!Ro[Gn(m)]};var _u=Object.prototype.hasOwnProperty;const Mr=function(m,r){var c=Ye(m),u=!c&&Il(m),_=!c&&!u&&Zs(m),C=!c&&!u&&!_&&Yc(m),M=c||u||_||C,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function hn(m){return Lo(m,Ve)}function Ve(m){return pa(m)?m:void 0}function Ie(m){if(m){if(m.defaultView)return m instanceof m.defaultView.Document;if(m.ownerDocument&&m.ownerDocument.defaultView)return m instanceof m.ownerDocument.defaultView.Node}return!1}function vu(m){const r=Object.prototype.toString.apply(m);return"[object Window]"==r||"[object global]"==r}const Ws=eo(Le());function eo(m){return m?class extends m{listenTo(r,c,u,_={}){if(Ie(r)||vu(r)){const C={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,C)||new _d(r,C);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(Ie(r)||vu(r)){const _=this._getAllProxyEmitters(r);for(const C of _)this.stopListening(C,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const C=u[se];return C&&C[_]?C[_].emitter:null}(this,Xr(r,c))}_getAllProxyEmitters(r){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(c=>this._getProxyEmitter(r,c)).filter(c=>!!c)}}:Ws}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{eo[m]=Ws.prototype[m]});class _d extends(Le()){constructor(r,c){super(),qe(this,Xr(r,c)),this._domNode=r,this._options=c}attach(r){if(this._domListeners&&this._domListeners[r])return;const c=this._createDomListener(r);this._domNode.addEventListener(r,c,this._options),this._domListeners||(this._domListeners={}),this._domListeners[r]=c}detach(r){let c;!this._domListeners[r]||(c=this._events[r])&&c.callbacks.length||this._domListeners[r].removeListener()}_addEventListener(r,c,u){this.attach(r),Le().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Le().prototype._removeEventListener.call(this,r,c),this.detach(r)}_createDomListener(r){const c=u=>{this.fire(r,u)};return c.removeListener=()=>{this._domNode.removeEventListener(r,c,this._options),delete this._domListeners[r]},c}}function Xr(m,r){let c=(u=m)["data-ck-expando"]||(u["data-ck-expando"]=Dt());var u;for(const u of Object.keys(r).sort())r[u]&&(c+="-"+u);return c}let Ru;try{Ru={window,document}}catch{Ru={window:{},document:{}}}const Mt=Ru;function me(m){return"[object Text]"==Object.prototype.toString.call(m)}function Gt(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Qe(m){const r=m.ownerDocument.defaultView.getComputedStyle(m);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}function Ln(m){return m&&m.parentNode?m.offsetParent===Mt.document.body?null:m.offsetParent:null}const It=["top","right","bottom","left","width","height"];class ce{constructor(r){const c=Gt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),bn(r)||c)if(c){const u=ce.getDomRangeRects(r);Ze(this,ce.getBoundingRect(u))}else Ze(this,r.getBoundingClientRect());else if(vu(r)){const{innerWidth:u,innerHeight:_}=r;Ze(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else Ze(this,r)}clone(){return new ce(this)}moveTo(r,c){return this.top=c,this.right=r+this.width,this.bottom=c+this.height,this.left=r,this}moveBy(r,c){return this.top+=c,this.right+=r,this.left+=r,this.bottom+=c,this}getIntersection(r){const c={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left),width:0,height:0};if(c.width=c.right-c.left,c.height=c.bottom-c.top,c.width<0||c.height<0)return null;{const u=new ce(c);return u._source=this._source,u}}getIntersectionArea(r){const c=this.getIntersection(r);return c?c.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let c=this.clone();if(tn(r))return c;let u,_=r,C=r.parentNode||r.commonAncestorContainer;for(;C&&!tn(C);){const E="visible"===((M=C)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Jn(_)&&(u=_);const N=Jn(C);if(E||u&&("relative"===N&&E||"relative"!==N)){_=C,C=C.parentNode;continue}const G=new ce(C),W=c.getIntersection(G);if(!W)return null;W.getArea(){for(const r of m){const c=Qn._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=Qn;function vo(m){return r=>r+m}function xo(m){let r=0;for(;m.previousSibling;)m=m.previousSibling,r++;return r}function To(m,r,c){m.insertBefore(c,m.childNodes[r]||null)}function va(m){return m&&m.nodeType===Node.COMMENT_NODE}function sa(m){return!!(m&&m.getClientRects&&m.getClientRects().length)}yi._observerInstance=null,yi._elementCallbacks=null;var ha=Math.pow;function ts({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:C}){No(r)&&(r=r()),No(u)&&(u=u());const M=Ln(m),E=function(Zt){Zt=Object.assign({top:0,bottom:0,left:0,right:0},Zt);const ue=new ce(Mt.window);return ue.top+=Zt.top,ue.height-=Zt.top,ue.bottom-=Zt.bottom,ue.height-=Zt.bottom,ue}(C),N=new ce(m),G=Hs(r,E);let W;if(!G||!E.getIntersection(G))return null;const dt={targetRect:G,elementRect:N,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Zt=Hs(u,E);Zt&&(dt.limiterRect=Zt)}W=function(Zt,ue){const{elementRect:xe}=ue,Ee=xe.getArea(),ln=Zt.map(Ri=>new es(Ri,ue)).filter(Ri=>!!Ri.name);let Mn=0,di=null;for(const Ri of ln){const{limiterIntersectionArea:Jo,viewportIntersectionArea:Da}=Ri;if(Jo===Ee)return Ri;const Ts=ha(Da,2)+ha(Jo,2);Ts>Mn&&(Mn=Ts,di=Ri)}return di}(c,dt)}else W=new es(c[0],dt);return W}function Hs(m,r){const c=new ce(m).getVisible();return c?c.getIntersection(r):null}class es{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:C,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:C},this._options=c}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const r=this._options.limiterRect;return r?r.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function ns(m){const r=m.parentNode;r&&r.removeChild(m)}function ps({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const C=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new ce(m).excludeScrollbarsAndBorders(),N=c&&u,G=[M,C].every(xe=>E.contains(xe));let{scrollX:W,scrollY:dt}=m;const Zt=W,ue=dt;N?dt-=E.top-r.top+_.top:G||(Lc(M,E)?dt-=E.top-r.top+_.top:$s(C,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),G||(is(r,E)?W-=E.left-r.left+_.left:Fd(r,E)&&(W+=r.right-E.right+_.right)),W==Zt&&dt===ue||m.scrollTo(W,dt)}function Rr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:C}){const M=rr(m),E=c&&u;let N,G,W;const dt=C||M.document.body;for(;m!=dt;)G=r(),N=new ce(m).excludeScrollbarsAndBorders(),W=N.contains(G),E?m.scrollTop-=N.top-G.top+_:W||(Lc(G,N)?m.scrollTop-=N.top-G.top+_:$s(G,N)&&(m.scrollTop+=c?G.top-N.top-_:G.bottom-N.bottom+_)),W||(is(G,N)?m.scrollLeft-=N.left-G.left+_:Fd(G,N)&&(m.scrollLeft+=G.right-N.right+_)),m=m.parentNode}function $s(m,r){return m.bottom>r.bottom}function Lc(m,r){return m.topr.right}function rr(m){return Gt(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function sr(m){if(Gt(m)){let r=m.commonAncestorContainer;return me(r)&&(r=r.parentNode),r}return m.parentNode}function Cs(m,r){const c=rr(m),u=new ce(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new ce(_.frameElement).excludeScrollbarsAndBorders();u.moveBy(M.left,M.top),_=_.parent}}return u}const m_={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},Qp={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},$a=function(){const m={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let r=65;r<=90;r++)m[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)m[r-48]=r;for(let r=112;r<=123;r++)m["f"+(r-111)]=r;for(const r of"`-=[];',./\\")m[r]=r.charCodeAt(0);return m}(),su=Object.fromEntries(Object.entries($a).map(([m,r])=>[r,m.charAt(0).toUpperCase()+m.slice(1)]));function xc(m){let r;if("string"==typeof m){if(r=$a[m.toLowerCase()],!r)throw new it("keyboard-unknown-key",null,{key:m})}else r=m.keyCode+(m.altKey?$a.alt:0)+(m.ctrlKey?$a.ctrl:0)+(m.shiftKey?$a.shift:0)+(m.metaKey?$a.cmd:0);return r}function Ks(m){return"string"==typeof m&&(m=m.split("+").map(c=>c.trim())),m.map(r=>"string"==typeof r?function(c){if(c.endsWith("!"))return xc(c.slice(0,-1));const u=xc(c);return(D_isMac||D_isiOS)&&u==$a.ctrl?$a.cmd:u}(r):r).reduce((r,c)=>c+r,0)}function bu(m){let r=Ks(m);return Object.entries(D_isMac||D_isiOS?m_:Qp).reduce((c,[u,_])=>(0!=(r&$a[u])&&(r&=~$a[u],c+=_),c),"")+(r?su[r]:"")}function d1(m,r){const c="ltr"===r;switch(m){case $a.arrowleft:return c?"left":"right";case $a.arrowright:return c?"right":"left";case $a.arrowup:return"up";case $a.arrowdown:return"down"}}function Ds(m){return Array.isArray(m)?m:[m]}Mt.window.CKEDITOR_TRANSLATIONS||(Mt.window.CKEDITOR_TRANSLATIONS={});const Yl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Hu(m){return Yl.includes(m)?"rtl":"ltr"}class Cu{constructor({uiLanguage:r="en",contentLanguage:c}={}){this.uiLanguage=r,this.contentLanguage=c||this.uiLanguage,this.uiLanguageDirection=Hu(this.uiLanguage),this.contentLanguageDirection=Hu(this.contentLanguage),this.t=(u,_)=>this._t(u,_)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,c=[]){return c=Ds(c),"string"==typeof r&&(r={string:r}),_=function Id(m,r,c=1){if("number"!=typeof c)throw new it("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Mt.window.CKEDITOR_TRANSLATIONS[N=m]||!Mt.window.CKEDITOR_TRANSLATIONS[N].dictionary[_]))return 1!==c?r.plural:r.string;var N;const M=Mt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(N=>1===N?0:1),E=Mt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),C=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new it("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const C=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(C,_),this.fire("add",_,M),u++}return this.fire("change",{added:r,removed:[],index:c}),this}get(r){let c;if("string"==typeof r)c=this._itemMap.get(r);else{if("number"!=typeof r)throw new it("collection-get-invalid-arg",this);c=this._items[r]}return c||null}has(r){if("string"==typeof r)return this._itemMap.has(r);{const c=r[this._idProperty];return c&&this._itemMap.has(c)}}getIndex(r){let c;return c="string"==typeof r?this._itemMap.get(r):r,c?this._items.indexOf(c):-1}remove(r){const[c,u]=this._remove(r);return this.fire("change",{added:[],removed:[c],index:u}),c}map(r,c){return this._items.map(r,c)}find(r,c){return this._items.find(r,c)}filter(r,c){return this._items.filter(r,c)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const r=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:r,index:0})}bindTo(r){if(this._bindToCollection)throw new it("collection-bind-to-rebind",this);return this._bindToCollection=r,{as:c=>{this._setUpBindToBinding(u=>new c(u))},using:c=>{this._setUpBindToBinding("function"==typeof c?c:u=>u[c])}}}_setUpBindToBinding(r){const c=this._bindToCollection,u=(_,C,M)=>{const E=c._bindToCollection==this,N=c._bindToInternalToExternalMap.get(C);if(E&&N)this._bindToExternalToInternalMap.set(C,N),this._bindToInternalToExternalMap.set(N,C);else{const G=r(C);if(!G)return void this._skippedIndexesFromExternal.push(M);let W=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&W--;for(const dt of c._skippedIndexesFromExternal)W>=dt&&W++;this._bindToExternalToInternalMap.set(C,G),this._bindToInternalToExternalMap.set(G,C),this.add(G,W);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(C);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((N,G)=>(MG&&N.push(G),N),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new it("collection-add-invalid-id",this);if(this.get(u))throw new it("collection-add-item-already-exists",this)}else r[c]=u=Dt();return u}_remove(r){let c,u,_,C=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),C=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],C=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),C=-1==c||!this._itemMap.get(u)),C)throw new it("collection-remove-404",this);this._items.splice(c,1),this._itemMap.delete(u);const E=this._bindToInternalToExternalMap.get(_);return this._bindToInternalToExternalMap.delete(_),this._bindToExternalToInternalMap.delete(E),this.fire("remove",_,c),[_,c]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function os(m){const r=m.next();return r.done?null:r.value}class as extends(eo(we())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(r){if(this._elements.has(r))throw new it("focustracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class jc{constructor(){this._listener=new(eo())}listenTo(r){this._listener.listenTo(r,"keydown",(c,u)=>{this._listener.fire("_keydown:"+xc(u),u)})}set(r,c,u={}){const _=Ks(r);this._listener.listenTo(this._listener,"_keydown:"+_,(M,E)=>{c(E,()=>{E.preventDefault(),E.stopPropagation(),M.stop()}),M.return=!0},{priority:u.priority})}press(r){return!!this._listener.fire("_keydown:"+xc(r),r)}stopListening(r){this._listener.stopListening(r)}destroy(){this.stopListening()}}function Jc(m){return nt(m)?new Map(m):function(r){const c=new Map;for(const u in r)c.set(u,r[u]);return c}(m)}function Tr(m,r){let c;function u(..._){u.cancel(),c=setTimeout(()=>m(..._),r)}return u.cancel=()=>{clearTimeout(c)},u}function cn(m,r){return!!(c=m.charAt(r-1))&&1==c.length&&/[\ud800-\udbff]/.test(c)&&!!(u=m.charAt(r))&&1==u.length&&/[\udc00-\udfff]/.test(u);var u,c}function fd(m,r){return!!(c=m.charAt(r))&&1==c.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(c);var c}const p1=function(){const m=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],r=new RegExp("\\p{Regional_Indicator}{2}","u").source,c="(?:"+m.map(u=>u.source).join("|")+")";return new RegExp(`${r}|${c}(?:\u200d${c})*`,"ug")}();function Zl(m,r){const c=String(m).matchAll(p1);return Array.from(c).some(u=>u.index{this._renderViewIntoCollectionParent(u,_)}),this.on("remove",(c,u)=>{u.element&&this._parentElement&&u.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const c of this)this._renderViewIntoCollectionParent(c)}delegate(...r){if(!r.length||!r.every(c=>"string"==typeof c))throw new it("ui-viewcollection-delegate-wrong-events",this);return{to:c=>{for(const u of this)for(const _ of r)u.delegate(_).to(c);this.on("add",(u,_)=>{for(const C of r)_.delegate(C).to(c)}),this.on("remove",(u,_)=>{for(const C of r)_.stopDelegating(C,c)})}}}_renderViewIntoCollectionParent(r,c){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[c])}remove(r){return super.remove(r)}}var F1=b(6062),Io=b.n(F1),hd=b(4793);Io()(hd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class aa extends(eo(we())){constructor(r){super(),this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new Xs,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(c,u)=>{u.locale=r,u.t=r&&r.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=wr.bind(this,this)}createCollection(r){const c=new Fa(r);return this._viewCollections.add(c),c}registerChild(r){nt(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){nt(r)||(r=[r]);for(const c of r)this._unboundChildren.remove(c)}setTemplate(r){this.template=new wr(r)}extendTemplate(r){wr.extend(this.template,r)}render(){if(this.isRendered)throw new it("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class wr extends(Le()){constructor(r){super(),Object.assign(this,Oa(Nd(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,intoFragment:!1,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new it("ui-template-revert-not-applied",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(c){if(c.children)for(const u of c.children)ie(u)?yield u:ke(u)&&(yield*r(u))}(this)}static bind(r,c){return{to:(u,_)=>new Uo({eventNameOrFunction:u,attribute:u,observable:r,emitter:c,callback:_}),if:(u,_,C)=>new __({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:C})}}static extend(r,c){if(r._isRendered)throw new it("template-extend-render",[this,r]);pt(r,Oa(Nd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new it("ui-template-wrong-syntax",this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let c=r.node;return c||(c=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),c}_renderText(r){let c=r.node;return c?r.revertData.text=c.textContent:c=r.node=document.createTextNode(""),B(this.text)?this._bindToObservable({schema:this.text,updater:gd(c),data:r}):c.textContent=this.text.join(""),c}_renderAttributes(r){if(!this.attributes)return;const c=r.node,u=r.revertData;for(const _ in this.attributes){const C=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=C);const E=In(M)?M[0].ns:null;if(B(M)){const N=In(M)?M[0].value:M;u&&Fi(_)&&N.unshift(C),this._bindToObservable({schema:N,updater:f_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&C&&Fi(_)&&M.unshift(C);const N=M.map(G=>G&&G.value||G).reduce((G,W)=>G.concat(W),[]).reduce(bt,"");Yt(N)||c.setAttributeNS(E,_,N)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const C=r[_];B(C)?this._bindToObservable({schema:[C],updater:fp(u,_),data:c}):u.style[_]=C}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let C=0;for(const M of this.children)if(kn(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(ie(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(Ie(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[C++],isApplying:!0,revertData:E})}else u.appendChild(M.render());r.intoFragment&&c.appendChild(u)}_setUpListeners(r){if(this.eventListeners)for(const c in this.eventListeners){const u=this.eventListeners[c].map(_=>{const[C,M]=c.split("@");return _.activateDomEventListener(C,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;jo(r,c,u);const C=r.filter(M=>!Yt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(C)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const C of _)C();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const C=c.attributes[_];null===C?u.removeAttribute(_):u.setAttribute(_,C)}for(let _=0;_jo(r,c,u);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,_),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,_)}}}class Uo extends zu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(C,M)=>{c&&!M.target.matches(c)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(M):this.observable.fire(this.eventNameOrFunction,M))};return this.emitter.listenTo(u.node,r,_),()=>{this.emitter.stopListening(u.node,r,_)}}}class __ extends zu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Yt(super.getValue(r))&&(this.valueIfTrue||!0)}}function B(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(B):m instanceof zu)}function jo(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof zu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof __?u[0]:u.reduce(bt,""),Yt(_)?r.remove():r.set(_)}function gd(m){return{set(r){m.textContent=r},remove(){m.textContent=""}}}function f_(m,r,c){return{set(u){m.setAttributeNS(c,r,u)},remove(){m.removeAttributeNS(c,r)}}}function fp(m,r){return{set(c){m.style[r]=c},remove(){m.style[r]=null}}}function Nd(m){return Lo(m,r=>{if(r&&(r instanceof zu||ke(r)||ie(r)||kn(r)))return r})}function Oa(m){if("string"==typeof m?m={text:[m]}:m.text&&((r=m).text=Ds(r.text)),m.on&&(m.eventListeners=function(r){for(const c in r)qd(r,c);return r}(m.on),delete m.on),!m.text){m.attributes&&function(c){for(const u in c)c[u].value&&(c[u].value=Ds(c[u].value)),qd(c,u)}(m.attributes);const r=[];if(m.children)if(kn(m.children))r.push(m.children);else for(const c of m.children)ke(c)||ie(c)||Ie(c)?r.push(c):r.push(new wr(c));m.children=r}var r;return m}function qd(m,r){m[r]=Ds(m[r])}function bt(m,r){return Yt(r)?m:Yt(m)?r:`${m} ${r}`}function yt(m,r){for(const c in r)m[c]?m[c].push(...r[c]):m[c]=r[c]}function pt(m,r){if(r.attributes&&(m.attributes||(m.attributes={}),yt(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),yt(m.eventListeners,r.eventListeners)),r.text&&m.text.push(...r.text),r.children&&r.children.length){if(m.children.length!=r.children.length)throw new it("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Yt(m){return!m&&0!==m}function ie(m){return m instanceof aa}function ke(m){return m instanceof wr}function kn(m){return m instanceof Fa}function In(m){return Wt(m[0])&&m[0].ns}function Fi(m){return"class"==m||"style"==m}class ji extends Fa{constructor(r,c=[]){super(c),this.locale=r}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new wr({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=We(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}var Sa=b(6574);Io()(Sa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const xr=class extends aa{constructor(){super();const m=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",m.if("isVisible","ck-hidden",r=>!r),"ck-reset_all-excluded",m.if("isColorInherited","ck-icon_inherit-color")],viewBox:m.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const m=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),r=m.getAttribute("viewBox");r&&(this.viewBox=r);for(const{name:c,value:u}of Array.from(m.attributes))xr.presentationalAttributeNames.includes(c)&&this.element.setAttribute(c,u);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;m.childNodes.length>0;)this.element.appendChild(m.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(m=>{m.style.fill=this.fillColor})}};let Ps=xr;Ps.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Yu extends aa{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const r=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:r.to("style"),id:r.to("id")},children:[{text:r.to("text")}]})}}var Bl=b(4906);Io()(Bl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hr extends aa{constructor(r,c=new Yu){super(r),this._focusDelayed=null;const u=this.bindTemplate,_=Dt();this.set("ariaChecked",void 0),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${_}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(c),this.iconView=new Ps,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const C={tag:"button",attributes:{class:["ck","ck-button",u.to("class"),u.if("isEnabled","ck-disabled",M=>!M),u.if("isVisible","ck-hidden",M=>!M),u.to("isOn",M=>M?"ck-on":"ck-off"),u.if("withText","ck-button_with-text"),u.if("withKeystroke","ck-button_with-keystroke")],role:u.to("role"),type:u.to("type",M=>M||"button"),tabindex:u.to("tabindex"),"aria-label":u.to("ariaLabel"),"aria-labelledby":u.to("ariaLabelledBy"),"aria-disabled":u.if("isEnabled",!0,M=>!M),"aria-checked":u.to("isOn"),"aria-pressed":u.to("isOn",M=>!!this.isToggleable&&String(!!M)),"data-cke-tooltip-text":u.to("_tooltipString"),"data-cke-tooltip-position":u.to("tooltipPosition")},children:this.children,on:{click:u.to(M=>{this.isEnabled?this.fire("execute"):M.preventDefault()})}};D_isSafari&&(this._focusDelayed||(this._focusDelayed=Tr(()=>this.focus(),0)),C.on.mousedown=u.to(()=>{this._focusDelayed()}),C.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(C)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(r){return r.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),r}_createKeystrokeView(){const r=new aa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",c=>bu(c))}]}),r}_getTooltipString(r,c,u){return r?"string"==typeof r?r:(u&&(u=bu(u)),r instanceof Function?r(c,u):`${c}${u?` (${u})`:""}`):""}}var da=b(5332);Io()(da.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xi extends Hr{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new aa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}var pc=b(6781);Io()(pc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),b(1103),b(841);var Co=b(3662);Io()(Co.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xu extends aa{constructor(r){super(r),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Dt()}`;const c=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:c.to("for")},children:[{text:c.to("text")}]})}}var Ac=b(2577);Io()(Ac.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Dr extends aa{constructor(r,c){super(r);const u=`ck-labeled-field-view-${Dt()}`,_=`ck-labeled-field-view-status-${Dt()}`;this.fieldView=c(this,u,_),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(u),this.statusView=this._createStatusView(_),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(M,E)=>M||E);const C=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",C.to("class"),C.if("isEnabled","ck-disabled",M=>!M),C.if("isEmpty","ck-labeled-field-view_empty"),C.if("isFocused","ck-labeled-field-view_focused"),C.if("placeholder","ck-labeled-field-view_placeholder"),C.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(r){const c=new xu(this.locale);return c.for=r,c.bind("text").to(this,"label"),c}_createStatusView(r){const c=new aa(this.locale),u=this.bindTemplate;return c.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",u.if("errorText","ck-labeled-field-view__status_error"),u.if("_statusText","ck-hidden",_=>!_)],id:r,role:u.if("errorText","alert")},children:[{text:u.to("_statusText")}]}),c}focus(r){this.fieldView.focus(r)}}class g_ extends aa{constructor(r){super(r),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new as,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",c.if("isFocused","ck-input_focused"),c.if("isEmpty","ck-input-text_empty"),c.if("hasError","ck-error")],id:c.to("id"),placeholder:c.to("placeholder"),readonly:c.to("isReadOnly"),"aria-invalid":c.if("hasError",!0),"aria-describedby":c.to("ariaDescribedById")},on:{input:c.to((...u)=>{this.fire("input",...u),this._updateIsEmpty()}),change:c.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(r,c,u)=>{this._setDomElementValue(u),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(r){this.element.value=r||0===r?r:""}}var hp=b(4879);Io()(hp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Wp extends g_{constructor(r){super(r),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class _g extends Wp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=b(8182);Io()(I1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class v_ extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",c.to("position",u=>`ck-dropdown__panel_${u}`),c.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:c.to(u=>{"input"!==u.target.tagName.toLocaleLowerCase()&&u.preventDefault()})}})}focus(){if(this.children.length){const r=this.children.first;"function"==typeof r.focus?r.focus():Tt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}var tc=b(5485);Io()(tc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const N1=class extends aa{constructor(m,r,c){super(m);const u=this.bindTemplate;this.buttonView=r,this.panelView=c,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new jc,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",u.to("class"),u.if("isEnabled","ck-disabled",_=>!_)],id:u.to("id"),"aria-describedby":u.to("ariaDescribedById")},children:[r,c]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":u.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(r,c,u)=>{if(u)if("auto"===this.panelPosition){const _=N1._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=_?_.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const m=(r,c)=>{this.isOpen&&(this.isOpen=!1,c())};this.keystrokes.set("arrowdown",(r,c)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,c())}),this.keystrokes.set("arrowright",(r,c)=>{this.isOpen&&c()}),this.keystrokes.set("arrowleft",m),this.keystrokes.set("esc",m)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:m,north:r,southEast:c,southWest:u,northEast:_,northWest:C,southMiddleEast:M,southMiddleWest:E,northMiddleEast:N,northMiddleWest:G}=N1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,C,N,G,r]:[u,c,E,M,m,C,_,G,N,r]}};let Au=N1;Au.defaultPanelPositions={south:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/2,name:"s"}),southEast:m=>({top:m.bottom,left:m.left,name:"se"}),southWest:(m,r)=>({top:m.bottom,left:m.left-r.width+m.width,name:"sw"}),southMiddleEast:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/4,name:"sme"}),southMiddleWest:(m,r)=>({top:m.bottom,left:m.left-3*(r.width-m.width)/4,name:"smw"}),north:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/2,name:"n"}),northEast:(m,r)=>({top:m.top-r.height,left:m.left,name:"ne"}),northWest:(m,r)=>({top:m.top-r.height,left:m.left-r.width+m.width,name:"nw"}),northMiddleEast:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/4,name:"nme"}),northMiddleWest:(m,r)=>({top:m.top-r.height,left:m.left-3*(r.width-m.width)/4,name:"nmw"})},Au._getOptimalPosition=ts;const vd='';class m1 extends Hr{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",c=>String(c))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new Ps;return r.content=vd,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}class ul extends(Le()){constructor(r){if(super(),this.focusables=r.focusables,this.focusTracker=r.focusTracker,this.keystrokeHandler=r.keystrokeHandler,this.actions=r.actions,r.actions&&r.keystrokeHandler)for(const c in r.actions){let u=r.actions[c];"string"==typeof u&&(u=[u]);for(const _ of u)r.keystrokeHandler.set(_,(C,M)=>{this[c](),M()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Om)||null}get last(){return this.focusables.filter(Om).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((c,u)=>{const _=c.element===this.focusTracker.focusedElement;return _&&(r=u),_}),r)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const r=this.next;r&&this.focusables.getIndex(r)===this.current||(r===this.first?this.fire("forwardCycle"):this._focus(r,1))}focusPrevious(){const r=this.previous;r&&this.focusables.getIndex(r)===this.current||(r===this.last?this.fire("backwardCycle"):this._focus(r,-1))}_focus(r,c){r&&r.focus(c)}_getFocusableItem(r){const c=this.current,u=this.focusables.length;if(!u)return null;if(null===c)return this[1===r?"first":"last"];let _=(c+u+r)%u;do{const C=this.focusables.get(_);if(Om(C))return C;_=(_+u+r)%u}while(_!==c);return null}}function Om(m){return!(!("focus"in m)||!sa(m.element))}class dl extends aa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class h2 extends aa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function gp(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(we()){constructor(r){super(),this._disableStack=new Set,this.editor=r,this.set("isEnabled",!0)}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",Mf,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",Mf),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Mf(m){m.return=!1,m.stop()}class Ta extends(we()){constructor(r){super(),this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(r,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",c=>{if(!this.affectsData)return;const u=r.model.document.selection,_="$graveyard"!=u.getFirstPosition().root.rootName&&r.model.canEditAt(u);(r.isReadOnly||this._isEnabledBasedOnSelection&&!_)&&(c.return=!1,c.stop())},{priority:"highest"}),this.on("execute",c=>{this.isEnabled||c.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(r){this._affectsData=r}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",q1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",q1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function q1(m){m.return=!1,m.stop()}class $p extends Ta{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){zt(this._childCommandsDefinitions,{command:r,priority:c.priority||"normal"}),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const r=this._childCommandsDefinitions.find(({command:c})=>c.isEnabled);return r&&r.command}}class kf extends(Le()){constructor(r,c=[],u=[]){super(),this._plugins=new Map,this._context=r,this._availablePlugins=new Map;for(const _ of c)_.pluginName&&this._availablePlugins.set(_.pluginName,_);this._contextPlugins=new Map;for(const[_,C]of u)this._contextPlugins.set(_,C),this._contextPlugins.set(C,_),_.pluginName&&this._availablePlugins.set(_.pluginName,_)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const c=this._plugins.get(r);if(!c){let u=r;throw"function"==typeof r&&(u=r.pluginName||r.name),new it("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,C=this._context;(function xe(Ee,ln=new Set){Ee.forEach(Mn=>{N(Mn)&&(ln.has(Mn)||(ln.add(Mn),Mn.pluginName&&!_._availablePlugins.has(Mn.pluginName)&&_._availablePlugins.set(Mn.pluginName,Mn),Mn.requires&&xe(Mn.requires,ln)))})})(r),Zt(r);const M=[...function xe(Ee,ln=new Set){return Ee.map(Mn=>N(Mn)?Mn:_._availablePlugins.get(Mn)).reduce((Mn,di)=>ln.has(di)?Mn:(ln.add(di),di.requires&&(Zt(di.requires,di),xe(di.requires,ln).forEach(Ri=>Mn.add(Ri))),Mn.add(di)),new Set)}(r.filter(xe=>!W(xe,c)))];!function(xe,Ee){for(const ln of Ee){if("function"!=typeof ln)throw new it("plugincollection-replace-plugin-invalid-type",null,{pluginItem:ln});const Mn=ln.pluginName;if(!Mn)throw new it("plugincollection-replace-plugin-missing-name",null,{pluginItem:ln});if(ln.requires&&ln.requires.length)throw new it("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Mn});const di=_._availablePlugins.get(Mn);if(!di)throw new it("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Mn});const Ri=xe.indexOf(di);if(-1===Ri){if(_._contextPlugins.has(di))return;throw new it("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Mn})}if(di.requires&&di.requires.length)throw new it("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Mn});xe.splice(Ri,1,ln),_._availablePlugins.set(Mn,ln)}}(M,u);const E=M.map(xe=>{let Ee=_._contextPlugins.get(xe);return Ee=Ee||new xe(C),_._add(xe,Ee),Ee});return ue(E,"init").then(()=>ue(E,"afterInit")).then(()=>E);function N(xe){return"function"==typeof xe}function G(xe){return N(xe)&&!!xe.isContextPlugin}function W(xe,Ee){return Ee.some(ln=>ln===xe||dt(xe)===ln||dt(ln)===xe)}function dt(xe){return N(xe)?xe.pluginName||xe.name:xe}function Zt(xe,Ee=null){xe.map(ln=>N(ln)?ln:_._availablePlugins.get(ln)||ln).forEach(ln=>{(function(Mn,di){if(!N(Mn))throw di?new it("plugincollection-soft-required",C,{missingPlugin:Mn,requiredBy:dt(di)}):new it("plugincollection-plugin-not-found",C,{plugin:Mn})})(ln,Ee),function(Mn,di){if(G(di)&&!G(Mn))throw new it("plugincollection-context-required",C,{plugin:dt(Mn),requiredBy:dt(di)})}(ln,Ee),function(Mn,di){if(di&&W(Mn,c))throw new it("plugincollection-required",C,{plugin:dt(Mn),requiredBy:dt(di)})}(ln,Ee)})}function ue(xe,Ee){return xe.reduce((ln,Mn)=>Mn[Ee]?_._contextPlugins.has(Mn)?ln:ln.then(Mn[Ee].bind(Mn)):ln,Promise.resolve())}}destroy(){const r=[];for(const[,c]of this)"function"!=typeof c.destroy||this._contextPlugins.has(c)||r.push(c.destroy());return Promise.all(r)}_add(r,c){this._plugins.set(r,c);const u=r.pluginName;if(u){if(this._plugins.has(u))throw new it("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class g2{constructor(r){this._contextOwner=null,this.config=new er(r,this.constructor.defaultConfig);const c=this.constructor.builtinPlugins;this.config.define("plugins",c),this.plugins=new kf(this,c);const u=this.config.get("language")||{};this.locale=new Cu({uiLanguage:"string"==typeof u?u:u.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Xs}initPlugins(){const r=this.config.get("plugins")||[],c=this.config.get("substitutePlugins")||[];for(const u of r.concat(c)){if("function"!=typeof u)throw new it("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new it("context-initplugins-invalid-plugin",null,{Plugin:u})}return this.plugins.init(r,[],c)}destroy(){return Promise.all(Array.from(this.editors,r=>r.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,c){if(this._contextOwner)throw new it("context-addeditor-private-context");this.editors.add(r),c&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const c of this.config.names())["plugins","removePlugins","extraPlugins"].includes(c)||(r[c]=this.config.get(c));return r}static create(r){return new Promise(c=>{const u=new this(r);c(u.initPlugins().then(()=>u))})}}class C_ extends(we()){constructor(r){super(),this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Kp extends jc{constructor(r){super(),this.editor=r}set(r,c,u={}){if("string"==typeof c){const _=c;c=(C,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var vp=b(4717);Io()(vp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let xt=!1;function Y({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const C=m.document;function M(E){Z.get(C).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(N=>$t(C,N))}Z.has(C)||(Z.set(C,new Map),C.registerPostFixer(E=>$t(C,E)),C.on("change:isComposing",()=>{m.change(E=>$t(C,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,N,G)=>{M(G)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(xt||Tt("enableplaceholder-deprecated-text-option"),xt=!0)}function $t(m,r){const c=Z.get(m),u=[];let _=!1;for(const[C,M]of c)M.isDirectHost&&(u.push(C),fe(r,C,M)&&(_=!0));for(const[C,M]of c){if(M.isDirectHost)continue;const E=nn(C);E&&(u.includes(E)||(M.hostElement=E,fe(r,C,M)&&(_=!0)))}return _}function fe(m,r,c){const{text:u,isDirectHost:_,hostElement:C}=c;let M=!1;return C.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,C),M=!0),(_||1==r.childCount)&&function(E,N){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const G=E.document,W=G.selection.anchor;return!(G.isComposing&&W&&W.parent===E||!N&&G.isFocused&&(!W||W.parent===E))}(C,c.keepOnFocus)?(E=m,!(N=C).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",N),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,C)&&(M=!0),M;var E,N}function nn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class ni{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ho extends(Le(ni)){constructor(r){super(),this.document=r,this.parent=null}get index(){let r;if(!this.parent)return null;if(-1==(r=this.parent.getChildIndex(this)))throw new it("view-node-not-found-in-parent",this);return r}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.index),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new it("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new it("view-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(r={}){const c=[];let u=r.includeSelf?this.textNode:this.parent;for(;null!==u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}}Ha.prototype.is=function(m){return"$textProxy"===m||"view:$textProxy"===m||"textProxy"===m||"view:textProxy"===m};class ms{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let c of r)("string"==typeof c||c instanceof RegExp)&&(c={name:c}),this._patterns.push(c)}match(...r){for(const c of r)for(const u of this._patterns){const _=Hd(c,u);if(_)return{element:c,pattern:u,match:_}}return null}matchAll(...r){const c=[];for(const u of r)for(const _ of this._patterns){const C=Hd(u,_);C&&c.push({element:u,pattern:_,match:C})}return c.length>0?c:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],c=r.name;return"function"==typeof r||!c||c instanceof RegExp?null:c}}function Hd(m,r){if("function"==typeof r)return r(m);const c={};return r.name&&(c.name=(_=m.name,(u=r.name)instanceof RegExp?!!_.match(u):u===_),!c.name)||r.attributes&&(c.attributes=function(u,_){const C=new Set(_.getAttributeKeys());return Xe(u)?(void 0!==u.style&&Tt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Tt("matcher-pattern-deprecated-attributes-class-key",u)):(C.delete("style"),C.delete("class")),zd(u,C,M=>_.getAttribute(M))}(r.attributes,m),!c.attributes)||r.classes&&(c.classes=function(u,_){return zd(u,_.getClassNames(),()=>{})}(r.classes,m),!c.classes)||r.styles&&(c.styles=function(u,_){return zd(u,_.getStyleNames(!0),C=>_.getStyle(C))}(r.styles,m),!c.styles)?null:c;var u,_}function zd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>Xe(E)?(void 0!==E.key&&void 0!==E.value||Tt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):Xe(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),C=[];var M;if(u.forEach(([M,E])=>{_.forEach(N=>{var G,W;W=N,(!0===(G=M)||G===W||G instanceof RegExp&&W.match(G))&&function(G,W,dt){if(!0===G)return!0;const Zt=dt(W);return G===Zt||G instanceof RegExp&&!!String(Zt).match(G)}(E,N,c)&&C.push(N)})}),u.length&&!(C.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var C=Array(_);++u<_;)C[u]=m[u+r];return C},R1=function(m,r,c){var u=null==m?void 0:pl(m,r);return void 0===u?c:u},C2=function(m,r,c){(void 0!==c&&!Tn(m[r],c)||void 0===c&&!(r in m))&&bl(m,r,c)},y_=function(m,r){if(("constructor"!==r||"function"!=typeof m[r])&&"__proto__"!=r)return m[r]},Ag=function m(r,c,u,_,C){r!==c&&function(r,c,u){for(var _=-1,C=Object(r),M=u(r),E=M.length;E--;){var N=M[++_];if(!1===c(C[N],N,C))break}}(c,function(M,E){if(C||(C=new nu),Wt(M))!function(m,r,c,u,_,C,M){var E=y_(m,c),N=y_(r,c),G=M.get(N);if(G)C2(m,c,G);else{var W=C?C(E,N,c+"",m,r,M):void 0,dt=void 0===W;if(dt){var Zt=Ye(N),ue=!Zt&&Zs(N),xe=!Zt&&!ue&&Yc(N);W=N,Zt||ue||xe?Ye(E)?W=E:function(m){return fn(m)&&bc(m)}(E)?W=dc(E):ue?(dt=!1,W=ra(N,!0)):xe?(dt=!1,W=_t(N,!0)):W=[]:Xe(N)||Il(N)?(W=E,Il(E)?W=function(m){return Ys(m,ds(m))}(E):Wt(E)&&!No(E)||(W=ll(N))):dt=!1}dt&&(M.set(N,W),_(W,N,u,C,M),M.delete(N)),C2(m,c,W)}}(r,c,E,u,m,_,C);else{var N=_?_(y_(r,E),M,E+"",r,c,C):void 0;void 0===N&&(N=M),C2(r,E,N)}},ds)},wu=function(m){return m},N3=function(m,r,c){switch(c.length){case 0:return m.call(r);case 1:return m.call(r,c[0]);case 2:return m.call(r,c[0],c[1]);case 3:return m.call(r,c[0],c[1],c[2])}return m.apply(r,c)};var Cp=Math.max;const Sf=function(m){return function(){return m}},yg=hc?function(m,r){return hc(m,"toString",{configurable:!0,enumerable:!1,value:Sf(r),writable:!0})}:wu;var Tg=Date.now;const T_=function(m){var r=0,c=0;return function(){var u=Tg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(yg),Lf=function(m){return function(m,r){return T_(function(m,r,c){return r=Cp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,C=Cp(u.length-r,0),M=Array(C);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(C=m.length>3&&"function"==typeof C?(_--,C):void 0,M&&function(m,r,c){if(!Wt(c))return!1;var u=typeof r;return!!("number"==u?bc(c)&&iu(r,c.length):"string"==u&&r in c)&&Tn(c[r],m)}(c[0],c[1],M)&&(C=_<3?void 0:C,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,C)}return r})},A2=Lf(function(m,r,c){Ag(m,r,c)});class Uu{constructor(r){this._styles={},this._styleProcessor=r}get isEmpty(){const r=Object.entries(this._styles);return!Array.from(r).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(r){this.clear();const c=Array.from(function(u){let _=null,C=0,M=0,E=null;const N=new Map;if(""===u)return N;";"!=u.charAt(u.length-1)&&(u+=";");for(let G=0;Gu===r);return Array.isArray(c)}set(r,c){if(Wt(r))for(const[u,_]of Object.entries(r))this._styleProcessor.toNormalizedForm(u,_,this._styles);else this._styleProcessor.toNormalizedForm(r,c,this._styles)}remove(r){const c=Of(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:pl(m,b2(r,0,-1))}(m,r=yu(r,m)))||delete m[x_(function(m){var r=null==m?0:m.length;return r?m[r-1]:void 0}(r))]}(m,r)})(this._styles,c),delete this._styles[r],this._cleanEmptyObjectsOnPath(c)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Wt(this._styles[r]))return this._styles[r];const c=this._styleProcessor.getReducedForm(r,this._styles).find(([u])=>u===r);return Array.isArray(c)?c[1]:void 0}getStyleNames(r=!1){return this.isEmpty?[]:r?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([c])=>c)}clear(){this._styles={}}_getStylesEntries(){const r=[],c=Object.keys(this._styles);for(const u of c)r.push(...this._styleProcessor.getReducedForm(u,this._styles));return r}_cleanEmptyObjectsOnPath(r){const c=r.split(".");if(!(c.length>1))return;const u=c.splice(0,c.length-1).join("."),_=R1(this._styles,u);!_||!Array.from(Object.keys(_)).length&&this.remove(u)}}class Mg{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Wt(c))w_(u,Of(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:C,value:M}=_(c);w_(u,C,M)}else w_(u,r,c)}getNormalized(r,c){if(!r)return A2({},c);if(void 0!==c[r])return c[r];if(this._extractors.has(r)){const u=this._extractors.get(r);if("string"==typeof u)return R1(c,u);const _=u(r,c);if(_)return _}return R1(c,Of(r))}getReducedForm(r,c){const u=this.getNormalized(r,c);return void 0===u?[]:this._reducers.has(r)?this._reducers.get(r)(u):[[r,u]]}getStyleNames(r){const c=Array.from(this._consumables.keys()).filter(_=>{const C=this.getNormalized(_,r);return C&&"object"==typeof C?Object.keys(C).length:C}),u=new Set([...c,...Object.keys(r)]);return Array.from(u.values())}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,c){this._normalizers.set(r,c)}setExtractor(r,c){this._extractors.set(r,c)}setReducer(r,c){this._reducers.set(r,c)}setStyleRelation(r,c){this._mapStyleNames(r,c);for(const u of c)this._mapStyleNames(u,[r])}_mapStyleNames(r,c){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...c)}}function Of(m){return m.replace("-",".")}function w_(m,r,c){let u=c;Wt(c)&&(u=A2({},R1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Wt(m))return m;for(var _=-1,C=(r=yu(r,m)).length,M=C-1,E=m;null!=E&&++_0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const c=this._styles.toString();return""==c?void 0:c}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Qc))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[c,u]of this._attrs)if(!r._attrs.has(c)||r._attrs.get(c)!==u)return!1;for(const c of this._classes)if(!r._classes.has(c))return!1;for(const c of this._styles.getStyleNames())if(!r._styles.has(c)||r._styles.getAsString(c)!==this._styles.getAsString(c))return!1;return!0}hasClass(...r){for(const c of r)if(!this._classes.has(c))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(r){return this._styles.getStyleNames(r)}hasStyle(...r){for(const c of r)if(!this._styles.has(c))return!1;return!0}findAncestor(...r){const c=new ms(...r);let u=this.parent;for(;u&&!u.is("documentFragment");){if(c.match(u))return u;u=u.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),c=this._styles.toString(),u=Array.from(this._attrs).map(_=>`${_[0]}="${_[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(c?` style="${c}"`:"")+(""==u?"":` ${u}`)}shouldRenderUnsafeAttribute(r){return this._unsafeAttributesToRender.includes(r)}_clone(r=!1){const c=[];if(r)for(const _ of this.getChildren())c.push(_._clone(r));const u=new this.constructor(this.document,this.name,this._attrs,c);return u._classes=new Set(this._classes),u._styles.set(this._styles.getNormalized()),u._customProperties=new Map(this._customProperties),u.getFillerOffset=this.getFillerOffset,u._unsafeAttributesToRender=this._unsafeAttributesToRender,u}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(nt(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,C.document=this.document,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this);for(const c of Ds(r))this._classes.add(c)}_removeClass(r){this._fireChange("attributes",this);for(const c of Ds(r))this._classes.delete(c)}_setStyle(r,c){this._fireChange("attributes",this),"string"!=typeof r?this._styles.set(r):this._styles.set(r,c)}_removeStyle(r){this._fireChange("attributes",this);for(const c of Ds(r))this._styles.remove(c)}_setCustomProperty(r,c){this._customProperties.set(r,c)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function Ef(m,r){const c=r.split(/\s+/);m.clear(),c.forEach(u=>m.add(u))}Qc.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"view:element"===m):"element"===m||"view:element"===m||"node"===m||"view:node"===m};class xp extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Ff}}function Ff(){const m=[...this.getChildren()],r=m[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const c of m)if(!c.is("uiElement"))return null;return this.childCount}xp.prototype.is=function(m,r){return r?r===this.name&&("containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Em extends(we(xp)){constructor(r,c,u,_){super(r,c,u,_),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",C=>C&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Em.prototype.is=function(m,r){return r?r===this.name&&("editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};const Fm=Symbol("rootName");class Im extends Em{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Fm)}set rootName(r){this._setCustomProperty(Fm,r)}set _name(r){this.name=r}}Im.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class tm{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new it("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new it("view-tree-walker-unknown-direction",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this._position=Zo._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u;do{u=this.position,c=this.next()}while(!c.done&&r(c.value));c.done||(this._position=u)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&r.offset===u.childCount)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtEnd)return this._position=Zo._createAfter(u),this._next();_=u.data[r.offset]}else _=u.getChild(r.offset);if(_ instanceof Qc){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(r))return{done:!0,value:void 0};r.offset++}else r=new Zo(_,0);return this._position=r,this._formatReturnValue("elementStart",_,c,r,1)}if(_ instanceof Eo){if(this.singleCharacters)return r=new Zo(_,0),this._position=r,this._next();let C,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,C=new Ha(_,0,M),r=Zo._createAfter(C)):(C=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,C);return r.offset+=C,this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Zo._createAfter(u),this._position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",u,c,r)}_previous(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&0===r.offset)return{done:!0,value:void 0};if(u==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtStart)return this._position=Zo._createBefore(u),this._previous();_=u.data[r.offset-1]}else _=u.getChild(r.offset-1);if(_ instanceof Qc)return this.shallow?(r.offset--,this._position=r,this._formatReturnValue("elementStart",_,c,r,1)):(r=new Zo(_,_.childCount),this._position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",_,c,r));if(_ instanceof Eo){if(this.singleCharacters)return r=new Zo(_,_.data.length),this._position=r,this._previous();let C,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;C=new Ha(_,E,_.data.length-E),M=C.data.length,r=Zo._createBefore(C)}else C=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=C;const M=new Ha(u,r.offset,C);return this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Zo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,C){return c instanceof Ha&&(c.offsetInText+c.data.length==c.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?u=Zo._createAfter(c.textNode):(_=Zo._createAfter(c.textNode),this._position=_)),0===c.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?u=Zo._createBefore(c.textNode):(_=Zo._createBefore(c.textNode),this._position=_))),{done:!1,value:{type:r,item:c,previousPosition:u,nextPosition:_,length:C}}}}class Zo extends ni{constructor(r,c){super(),this.parent=r,this.offset=c}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof Em);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const c=Zo._createAt(this),u=c.offset+r;return c.offset=u<0?0:u,c}getLastMatchingPosition(r,c={}){c.startPosition=this;const u=new tm(c);return u.skip(r),u.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const c=this.getAncestors(),u=r.getAncestors();let _=0;for(;c[_]==u[_]&&c[_];)_++;return 0===_?null:c[_-1]}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const c=this.parent.is("node")?this.parent.getPath():[],u=r.parent.is("node")?r.parent.getPath():[];c.push(this.offset),u.push(r.offset);const _=ct(c,u);switch(_){case"prefix":return"before";case"extension":return"after";default:return c[_]0?new this(u,_):new this(_,u)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const c=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(Zo._createBefore(r),c)}}function Ap(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Xo.prototype.is=function(m){return"range"===m||"view:range"===m};class Cd extends(Le(ni)){constructor(...r){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",r.length&&this.setTo(...r)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?r.clone():null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const c=ne(this.getRanges());if(c!=ne(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let C of r.getRanges())if(C=C.getTrimmed(),u.start.isEqual(C.start)&&u.end.isEqual(C.end)){_=!0;break}if(!_)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]),this._setFakeOptions(_);else if(c instanceof Cd||c instanceof U_)this._setRanges(c.getRanges(),c.isBackward),this._setFakeOptions({fake:c.isFake,label:c.fakeSelectionLabel});else if(c instanceof Xo)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Zo)this._setRanges([new Xo(c)]),this._setFakeOptions(_);else if(c instanceof Ho){const C=!!_&&!!_.backward;let M;if(void 0===u)throw new it("view-selection-setto-required-second-parameter",this);M="in"==u?Xo._createIn(c):"on"==u?Xo._createOn(c):new Xo(Zo._createAt(c,u)),this._setRanges([M],C),this._setFakeOptions(_)}else{if(!nt(c))throw new it("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new it("view-selection-setfocus-no-ranges",this);const u=Zo._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.pop(),"before"==u.compareWith(_)?this._addRange(new Xo(u,_),!0):this._addRange(new Xo(_,u)),this.fire("change")}_setRanges(r,c=!1){r=Array.from(r),this._ranges=[];for(const u of r)this._addRange(u);this._lastRangeBackward=!!c}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,c=!1){if(!(r instanceof Xo))throw new it("view-selection-add-range-not-range",this);this._pushRange(r),this._lastRangeBackward=!!c}_pushRange(r){for(const c of this._ranges)if(r.isIntersecting(c))throw new it("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Xo(r.start,r.end))}}Cd.prototype.is=function(m){return"selection"===m||"view:selection"===m};class U_ extends(Le(ni)){constructor(...r){super(),this._selection=new Cd,this._selection.delegate("change").to(this),r.length&&this._selection.setTo(...r)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}_setTo(...r){this._selection.setTo(...r)}_setFocus(r,c){this._selection.setFocus(r,c)}}U_.prototype.is=function(m){return"selection"===m||"documentSelection"==m||"view:selection"==m||"view:documentSelection"==m};class yp extends lt{constructor(r,c,u){super(r,c),this.startRange=u,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const f1=Symbol("bubbling contexts");function xs(m){return class extends m{fire(r,...c){try{const u=r instanceof lt?r:new lt(this,r),_=If(this);if(!_.size)return;if(te(u,"capturing",this),H1(_,"$capture",u,...c))return u.return;const C=u.startRange||this.selection.getFirstRange(),M=C?C.getContainedElement():null,E=!!M&&Boolean(kg(_,M));let N=M||function(G){if(!G)return null;const W=G.start.parent,dt=G.end.parent,Zt=W.getPath(),ue=dt.getPath();return Zt.length>ue.length?W:dt}(C);if(te(u,"atTarget",N),!E){if(H1(_,"$text",u,...c))return u.return;te(u,"bubbling",N)}for(;N;){if(N.is("rootElement")){if(H1(_,"$root",u,...c))return u.return}else if(N.is("element")&&H1(_,N.name,u,...c))return u.return;if(H1(_,N,u,...c))return u.return;N=N.parent,te(u,"bubbling",N)}return te(u,"bubbling",this),H1(_,"$document",u,...c),u.return}catch(u){it.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ds(u.context||"$document"),C=If(this);for(const M of _){let E=C.get(M);E||(E=new(Le()),C.set(M,E)),this.listenTo(E,r,c,u)}}_removeEventListener(r,c){const u=If(this);for(const _ of u.values())this.stopListening(_,r,c)}}}{const m=xs(Object);["fire","_addEventListener","_removeEventListener"].forEach(r=>{xs[r]=m.prototype[r]})}function te(m,r,c){m instanceof yp&&(m._eventPhase=r,m._currentTarget=c)}function H1(m,r,c,...u){const _="string"==typeof r?m.get(r):kg(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function kg(m,r){for(const[c,u]of m)if("function"==typeof c&&c(r))return u;return null}function If(m){return m[f1]||(m[f1]=new Map),m[f1]}class em extends(xs(we())){constructor(r){super(),this._postFixers=new Set,this.selection=new U_,this.roots=new Xs({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(c=u(r),c)break}while(c)}}class nm extends Qc{constructor(r,c,u,_){super(r,c,u,_),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=h1}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new it("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r=!1){const c=super._clone(r);return c._priority=this._priority,c._id=this._id,c}}function h1(){if(y2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(y2(m)>1)return null;m=m.parent}return!m||y2(m)>1?null:this.childCount}function y2(m){return Array.from(m.getChildren()).filter(r=>!r.is("uiElement")).length}nm.DEFAULT_PRIORITY=10,nm.prototype.is=function(m,r){return r?r===this.name&&("attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m):"attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class T2 extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Dg}_insertChild(r,c){if(c&&(c instanceof Ho||Array.from(c).length>0))throw new it("view-emptyelement-cannot-add",[this,c]);return 0}}function Dg(){return null}T2.prototype.is=function(m,r){return r?r===this.name&&("emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m):"emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class ec extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=w2}_insertChild(r,c){if(c&&(c instanceof Ho||Array.from(c).length>0))throw new it("view-uielement-cannot-add",[this,c]);return 0}render(r,c){return this.toDomElement(r)}toDomElement(r){const c=r.createElement(this.name);for(const u of this.getAttributeKeys())c.setAttribute(u,this.getAttribute(u));return c}}function w2(){return null}ec.prototype.is=function(m,r){return r?r===this.name&&("uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m):"uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Yd extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=im}_insertChild(r,c){if(c&&(c instanceof Ho||Array.from(c).length>0))throw new it("view-rawelement-cannot-add",[this,c]);return 0}render(r,c){}}function im(){return null}Yd.prototype.is=function(m,r){return r?r===this.name&&("rawElement"===m||"view:rawElement"===m||"element"===m||"view:element"===m):"rawElement"===m||"view:rawElement"===m||m===this.name||m==="view:"+this.name||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class g1 extends(Le(ni)){constructor(r,c){super(),this._children=[],this._customProperties=new Map,this.document=r,c&&this._insertChild(0,c)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(nt(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const N=M[M.length-1],G=!E.is("uiElement");return N&&N.breakAttributes==G?N.nodes.push(E):M.push({breakAttributes:G,nodes:[E]}),M},[]);let _=null,C=r;for(const{nodes:M,breakAttributes:E}of u){const N=this._insertNodes(C,M,E);_||(_=N.start),C=N.end}return _?new Xo(_,C):new Xo(r)}remove(r){const c=r instanceof Xo?r:Xo._createOn(r);if(om(c,this.document),c.isCollapsed)return new g1(this.document);const{start:u,end:_}=this._breakAttributesRange(c,!0),E=u.parent._removeChildren(u.offset,_.offset-u.offset);for(const G of E)this._removeFromClonedElementsGroup(G);const N=this.mergeAttributes(u);return c.start=N,c.end=N.clone(),new g1(this.document,E)}clear(r,c){om(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const C=_.item;let M;if(C.is("element")&&c.isSimilar(C))M=Xo._createOn(C);else if(!_.nextPosition.isAfter(r.start)&&C.is("$textProxy")){const E=C.getAncestors().find(N=>N.is("element")&&c.isSimilar(N));E&&(M=Xo._createIn(E))}M&&(M.end.isAfter(r.end)&&(M.end=r.end),M.start.isBefore(r.start)&&(M.start=r.start),this.remove(M))}}move(r,c){let u;if(c.isAfter(r.end)){const _=(c=this._breakAttributes(c,!0)).parent,C=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-C}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof nm))throw new it("view-writer-wrap-invalid-attribute",this.document);if(om(r,this.document),r.isCollapsed){let _=r.start;_.parent.is("element")&&!Array.from(_.parent.getChildren()).some(M=>!M.is("uiElement"))&&(_=_.getLastMatchingPosition(M=>M.item.is("uiElement"))),_=this._wrapPosition(_,c);const C=this.document.selection;return C.isCollapsed&&C.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Xo(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof nm))throw new it("view-writer-unwrap-invalid-attribute",this.document);if(om(r,this.document),r.isCollapsed)return r;const{start:u,end:_}=this._breakAttributesRange(r,!0),M=this._unwrapChildren(u.parent,u.offset,_.offset,c),E=this.mergeAttributes(M.start);E.isEqual(M.start)||M.end.offset--;const N=this.mergeAttributes(M.end);return new Xo(E,N)}rename(r,c){const u=new xp(this.document,r,c.getAttributes());return this.insert(Zo._createAfter(c),u),this.move(Xo._createIn(c),Zo._createAt(u,0)),this.remove(Xo._createOn(c)),u}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,c){return Zo._createAt(r,c)}createPositionAfter(r){return Zo._createAfter(r)}createPositionBefore(r){return Zo._createBefore(r)}createRange(r,c){return new Xo(r,c)}createRangeOn(r){return Xo._createOn(r)}createRangeIn(r){return Xo._createIn(r)}createSelection(...r){return new Cd(...r)}createSlot(r="children"){if(!this._slotFactory)throw new it("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,r)}_registerSlotFactory(r){this._slotFactory=r}_clearSlotFactory(){this._slotFactory=null}_insertNodes(r,c,u){let _,C;if(_=u?As(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new it("view-writer-invalid-position-container",this.document);C=u?this._breakAttributes(r,!0):r.parent.is("$text")?Cr(r):r;const M=_._insertChild(C.offset,c);for(const W of c)this._addToClonedElementsGroup(W);const E=C.getShiftedBy(M),N=this.mergeAttributes(C);N.isEqual(C)||E.offset--;const G=this.mergeAttributes(E);return new Xo(N,G)}_wrapChildren(r,c,u,_){let C=c;const M=[];for(;C!1,r.parent._insertChild(r.offset,u);const _=new Xo(r,r.getShiftedBy(1));this.wrap(_,c);const C=new Zo(u.parent,u.index);u._remove();const M=C.nodeBefore,E=C.nodeAfter;return M instanceof Eo&&E instanceof Eo?U2(M,E):ta(C)}_wrapAttributeElement(r,c){if(!rs(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&c.hasAttribute(u)&&c.getAttribute(u)!==r.getAttribute(u))return!1;for(const u of r.getStyleNames())if(c.hasStyle(u)&&c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&(c.hasAttribute(u)||this.setAttribute(u,r.getAttribute(u),c));for(const u of r.getStyleNames())c.hasStyle(u)||this.setStyle(u,r.getStyle(u),c);for(const u of r.getClassNames())c.hasClass(u)||this.addClass(u,c);return!0}_unwrapAttributeElement(r,c){if(!rs(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&(!c.hasAttribute(u)||c.getAttribute(u)!==r.getAttribute(u)))return!1;if(!c.hasClass(...r.getClassNames()))return!1;for(const u of r.getStyleNames())if(!c.hasStyle(u)||c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&this.removeAttribute(u,c);return this.removeClass(Array.from(r.getClassNames()),c),this.removeStyle(Array.from(r.getStyleNames()),c),!0}_breakAttributesRange(r,c=!1){const u=r.start,_=r.end;if(om(r,this.document),r.isCollapsed){const N=this._breakAttributes(r.start,c);return new Xo(N,N)}const C=this._breakAttributes(_,c),M=C.parent.childCount,E=this._breakAttributes(u,c);return C.offset+=C.parent.childCount-M,new Xo(E,C)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new it("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new it("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new it("view-writer-cannot-break-raw-element",this.document);if(!c&&_.is("$text")&&z1(_.parent)||z1(_))return r.clone();if(_.is("$text"))return this._breakAttributes(Cr(r),c);if(u==_.childCount){const C=new Zo(_.parent,_.index+1);return this._breakAttributes(C,c)}if(0===u){const C=new Zo(_.parent,_.index);return this._breakAttributes(C,c)}{const C=_.index+1,M=_._clone();_.parent._insertChild(C,M),this._addToClonedElementsGroup(M);const N=_._removeChildren(u,_.childCount-u);M._appendChild(N);const G=new Zo(_.parent,C);return this._breakAttributes(G,c)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const _ of r.getChildren())this._addToClonedElementsGroup(_);const c=r.id;if(!c)return;let u=this._cloneGroups.get(c);u||(u=new Set,this._cloneGroups.set(c,u)),u.add(r),r._clonesGroup=u}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const _ of r.getChildren())this._removeFromClonedElementsGroup(_);const c=r.id;if(!c)return;const u=this._cloneGroups.get(c);u&&u.delete(r)}}function As(m){let r=m.parent;for(;!z1(r);){if(!r)return;r=r.parent}return r}function nc(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new it("view-writer-insert-invalid-node-type",r);c.is("$text")||Nm(c.getChildren(),r)}}function z1(m){return m&&(m.is("containerElement")||m.is("documentFragment"))}function om(m,r){const c=As(m.start),u=As(m.end);if(!c||!u||c!==u)throw new it("view-writer-invalid-range-container",r)}function rs(m,r){return null===m.id&&null===r.id}const Nf=m=>m.createTextNode("\xa0"),Z_=m=>{const r=m.createElement("span");return r.dataset.ckeFiller="true",r.innerText="\xa0",r},Z2=m=>{const r=m.createElement("br");return r.dataset.ckeFiller="true",r},v1="\u2060".repeat(7);function xd(m){return"string"==typeof m?m.substr(0,7)===v1:me(m)&&m.data.substr(0,7)===v1}function qm(m){return 7==m.data.length&&xd(m)}function b1(m){const r="string"==typeof m?m:m.data;return xd(m)?r.slice(7):r}function Vd(m,r){if(r.keyCode==$a.arrowleft){const c=r.domTarget.ownerDocument.defaultView.getSelection();if(1==c.rangeCount&&c.getRangeAt(0).collapsed){const u=c.getRangeAt(0).startContainer,_=c.getRangeAt(0).startOffset;xd(u)&&_<=7&&c.collapse(u,0)}}}var Vl=b(9315);Io()(Vl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class M_ extends(we()){constructor(r,c){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=r,this.selection=c,this.set("isFocused",!1),this.set("isSelecting",!1),D_isBlink&&!D_isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(r,c){if("text"===r)this.domConverter.mapViewToDom(c.parent)&&this.markedTexts.add(c);else{if(!this.domConverter.mapViewToDom(c))return;if("attributes"===r)this.markedAttributes.add(c);else{if("children"!==r)throw new it("view-renderer-unknown-type",this);this.markedChildren.add(c)}}}render(){if(this.isComposing&&!D_isAndroid)return;let r=null;const c=!(D_isBlink&&!D_isAndroid&&this.isSelecting);for(const u of this.markedChildren)this._updateChildrenMappings(u);c?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(r=this.domConverter.domPositionToView(this._inlineFiller),r&&r.parent.is("$text")&&(r=Zo._createBefore(r.parent)));for(const u of this.markedAttributes)this._updateAttrs(u);for(const u of this.markedChildren)this._updateChildren(u,{inlineFillerPosition:r});for(const u of this.markedTexts)!this.markedChildren.has(u.parent)&&this.domConverter.mapViewToDom(u.parent)&&this._updateText(u,{inlineFillerPosition:r});if(c)if(r){const u=this.domConverter.viewPositionToDom(r),_=u.parent.ownerDocument;this._inlineFiller=xd(u.parent)?u.parent:C1(_,u.parent,u.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.childNodes),_=Array.from(this.domConverter.viewChildrenToDom(r,{withChildren:!1})),C=this._diffNodeLists(u,_),M=this._findUpdateActions(C,u,_,M2);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const N of M)if("update"===N){const G=E.equal+E.insert,W=E.equal+E.delete,dt=r.getChild(G);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[W]),ns(_[G]),E.equal++}else E[N]++}}_updateElementMappings(r,c){this.domConverter.unbindDomElement(c),this.domConverter.bindElements(c,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?Zo._createBefore(r.parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=this.domConverter.viewPositionToDom(r);return!!(c&&me(c.parent)&&xd(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!xd(r))throw new it("view-renderer-filler-was-lost",this);qm(r)?r.remove():r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=r.parent,u=r.offset;if(!this.domConverter.mapViewToDom(c.root)||!c.is("element")||!function(M){if("false"==M.getAttribute("contenteditable"))return!1;const E=M.findAncestor(N=>N.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,C=r.nodeAfter;return!(_ instanceof Eo||C instanceof Eo||D_isAndroid&&(_||C))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const C=c.inlineFillerPosition;C&&C.parent==r.parent&&C.offset==r.index&&(_=v1+_),Sg(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(C=>C.name),_=r.getAttributeKeys();for(const C of _)this.domConverter.setDomElementAttribute(c,C,r.getAttribute(C),r);for(const C of u)r.hasAttribute(C)||this.domConverter.removeDomElementAttribute(c,C)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Zt of Array.from(u.childNodes)){if(dt&&me(dt)&&me(Zt)){u.normalize();break}dt=Zt}}const _=c.inlineFillerPosition,C=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&C1(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(C,M),N=this._findUpdateActions(E,C,M,Pg);let G=0;const W=new Set;for(const dt of N)"delete"===dt?(W.add(C[G]),ns(C[G])):"equal"!==dt&&"update"!==dt||G++;G=0;for(const dt of N)"insert"===dt?(To(u,G,M[G]),G++):"update"===dt?(Sg(C[G],M[G].data),G++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[G])),G++);for(const dt of W)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return K(r=function(u,_){const C=Array.from(u);return 0==C.length||!_||C[C.length-1]==_&&C.pop(),C}(r,this._fakeSelectionContainer),c,x1.bind(null,this.domConverter))}_findUpdateActions(r,c,u,_){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let C=[],M=[],E=[];const N={equal:0,insert:0,delete:0};for(const G of r)"insert"===G?E.push(u[N.equal+N.insert]):"delete"===G?M.push(c[N.equal+N.delete]):(C=C.concat(K(M,E,_).map(W=>"equal"===W?"update":W)),C.push("equal"),M=[],E=[]),N[G]++;return C.concat(K(M,E,_).map(G=>"equal"===G?"update":G))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const c of r.getChildren())this._markDescendantTextToSync(c)}_updateSelection(){if(D_isBlink&&!D_isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(r)):this.isComposing&&D_isAndroid||this._updateDomSelection(r))}_updateFakeSelection(r){const c=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(M){const E=M.createElement("div");return E.className="ck-fake-selection-container",Object.assign(E.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),E.textContent="\xa0",E}(c));const u=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(u,this.selection),!this._fakeSelectionNeedsUpdate(r))return;u.parentElement&&u.parentElement==r||r.appendChild(u),u.textContent=this.selection.fakeSelectionLabel||"\xa0";const _=c.getSelection(),C=c.createRange();_.removeAllRanges(),C.selectNodeContents(u),_.addRange(C)}_updateDomSelection(r){const c=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(c))return;const u=this.domConverter.viewPositionToDom(this.selection.anchor),_=this.domConverter.viewPositionToDom(this.selection.focus);c.setBaseAndExtent(u.parent,u.offset,_.parent,_.offset),D_isGecko&&function(C,M){const E=C.parent;if(E.nodeType!=Node.ELEMENT_NODE||C.offset!=E.childNodes.length-1)return;const N=E.childNodes[C.offset];N&&"BR"==N.tagName&&M.addRange(M.getRangeAt(0))}(_,c)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const c=r&&this.domConverter.domSelectionToView(r);return!(c&&this.selection.isEqual(c)||!this.selection.isCollapsed&&this.selection.isSimilar(c))}_fakeSelectionNeedsUpdate(r){const c=this._fakeSelectionContainer,u=r.ownerDocument.getSelection();return!c||c.parentElement!==r||u.anchorNode!==c&&!c.contains(u.anchorNode)||c.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments){const c=r.getSelection();if(c.rangeCount){const u=r.activeElement,_=this.domConverter.mapDomToView(u);u&&_&&c.removeAllRanges()}}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function C1(m,r,c){const u=r instanceof Array?r:r.childNodes,_=u[c];if(me(_))return _.data=v1+_.data,_;{const C=m.createTextNode(v1);return Array.isArray(r)?u.splice(c,0,C):To(r,c,C),C}}function M2(m,r){return Ie(m)&&Ie(r)&&!me(m)&&!me(r)&&!va(m)&&!va(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function Pg(m,r){return Ie(m)&&Ie(r)&&me(m)&&me(r)}function x1(m,r,c){return r===c||(me(r)&&me(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function Sg(m,r){const c=m.data;if(c==r)return;const u=F(c,r);for(const _ of u)"insert"===_.type?m.insertData(_.index,_.values.join("")):m.deleteData(_.index,_.howMany)}const qf=Z2(Mt.document),Zu=Nf(Mt.document),rm=Z_(Mt.document),k_="data-ck-unsafe-attribute-",Lg="data-ck-unsafe-element";class D_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ms,this._inlineObjectElementMatcher=new ms,this.document=r,this.renderingMode=u,this.blockFillerMode=c||("editing"===u?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Mt.document:Mt.document.implementation.createHTMLDocument("")}bindFakeSelection(r,c){this._fakeSelectionMapping.set(r,new Cd(c))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}unbindDomElement(r){const c=this._domToViewMapping.get(r);if(c){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(c);for(const u of Array.from(r.children))this.unbindDomElement(u)}}bindDocumentFragments(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}shouldRenderAttribute(r,c,u){return"data"===this.renderingMode||!(r=r.toLowerCase()).startsWith("on")&&("srcdoc"!==r||!c.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===u&&("src"===r||"srcset"===r)||"source"===u&&"srcset"===r||!c.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(r,c){if("data"===this.renderingMode)return void(r.innerHTML=c);const u=(new DOMParser).parseFromString(c,"text/html"),_=u.createDocumentFragment(),C=u.body.childNodes;for(;C.length>0;)_.appendChild(C[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let N;for(;N=M.nextNode();)E.push(N);for(const G of E){for(const dt of G.getAttributeNames())this.setDomElementAttribute(G,dt,G.getAttribute(dt));const W=G.tagName.toLowerCase();this._shouldRenameElement(W)&&(Rf(W),G.replaceWith(this._createReplacementDomElement(W,G)))}for(;r.firstChild;)r.firstChild.remove();r.append(_)}viewToDom(r,c={}){if(r.is("$text")){const u=this._processDataFromViewText(r);return this._domDocument.createTextNode(u)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let u;if(r.is("documentFragment"))u=this._domDocument.createDocumentFragment(),c.bind&&this.bindDocumentFragments(u,r);else{if(r.is("uiElement"))return u="$comment"===r.name?this._domDocument.createComment(r.getCustomProperty("$rawContent")):r.render(this._domDocument,this),c.bind&&this.bindElements(u,r),u;this._shouldRenameElement(r.name)?(Rf(r.name),u=this._createReplacementDomElement(r.name)):u=r.hasAttribute("xmlns")?this._domDocument.createElementNS(r.getAttribute("xmlns"),r.name):this._domDocument.createElement(r.name),r.is("rawElement")&&r.render(u,this),c.bind&&this.bindElements(u,r);for(const _ of r.getAttributeKeys())this.setDomElementAttribute(u,_,r.getAttribute(_),r)}if(!1!==c.withChildren)for(const _ of this.viewChildrenToDom(r,c))u.appendChild(_);return u}}setDomElementAttribute(r,c,u,_){const C=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);C||Tt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Mt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!C?r.removeAttribute(c):r.hasAttribute(k_+c)&&C&&r.removeAttribute(k_+c),r.setAttribute(C?c:k_+c,u)):Tt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Lg&&(r.removeAttribute(c),r.removeAttribute(k_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const C of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=C.is("element")&&!!C.getCustomProperty("dataPipeline:transparentRendering")&&!os(C.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(C,c):(M&&Tt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:C}),yield this.viewToDom(C,c)),_++}u===_&&(yield this._getBlockFiller())}viewRangeToDom(r){const c=this.viewPositionToDom(r.start),u=this.viewPositionToDom(r.end),_=this._domDocument.createRange();return _.setStart(c.parent,c.offset),_.setEnd(u.parent,u.offset),_}viewPositionToDom(r){const c=r.parent;if(c.is("$text")){const u=this.findCorrespondingDomText(c);if(!u)return null;let _=r.offset;return xd(u)&&(_+=7),{parent:u,offset:_}}{let u,_,C;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;C=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,C=_.nextSibling}return me(C)&&xd(C)?{parent:C,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),C=_.next().value;return C?(_.next(),this._processDomInlineNodes(null,u,c),C.is("$text")&&0==C.data.length?null:C):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:N}=M;C.push([E,N])}),c.focus(),Rm(c,M=>{const[E,N]=C.shift();M.scrollLeft=E,M.scrollTop=N}),Mt.window.scrollTo(u,_)}}_clearDomSelection(){const r=this.mapViewToDom(this.document.selection.editableElement);if(!r)return;const c=r.ownerDocument.defaultView.getSelection(),u=this.domSelectionToView(c);u&&u.rangeCount>0&&c.removeAllRanges()}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(qf):!("BR"!==r.tagName||!Y1(r,this.blockElements)||1!==r.parentNode.childNodes.length)||r.isEqualNode(rm)||(u=this.blockElements,(c=r).isEqualNode(Zu)&&Y1(c,u)&&1===c.parentNode.childNodes.length);var c,u}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const c=this._domDocument.createRange();try{c.setStart(r.anchorNode,r.anchorOffset),c.setEnd(r.focusNode,r.focusOffset)}catch{return!1}const u=c.collapsed;return c.detach(),u}getHostViewElement(r){const c=function(u){const _=[];let C=u;for(;C&&C.nodeType!=Node.DOCUMENT_NODE;)_.unshift(C),C=C.parentNode;return _}(r);for(c.pop();c.length;){const u=c.pop(),_=this._domToViewMapping.get(u);if(_&&(_.is("uiElement")||_.is("rawElement")))return _}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}registerRawContentMatcher(r){this._rawContentElementMatcher.add(r)}registerInlineObjectMatcher(r){this._inlineObjectElementMatcher.add(r)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Nf(this._domDocument);case"markedNbsp":return Z_(this._domDocument);case"br":return Z2(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(me(r)&&xd(r)&&c<7||this.isElement(r)&&xd(r.childNodes[c]))return!1;const u=this.mapDomToView(r);return!u||!u.is("uiElement")&&!u.is("rawElement")}*_domToView(r,c,u){if(this.isBlockFiller(r))return null;const _=this.getHostViewElement(r);if(_)return _;if(va(r)&&c.skipComments)return null;if(me(r)){if(qm(r))return null;{const C=r.data;if(""===C)return null;const M=new Eo(this.document,C);return u.push(M),M}}{let C=this.mapDomToView(r);if(C)return this._isInlineObjectElement(C)&&u.push(C),C;if(this.isDocumentFragment(r))C=new g1(this.document),c.bind&&this.bindDocumentFragments(r,C);else{C=this._createViewElement(r,c),c.bind&&this.bindElements(r,C);const E=r.attributes;if(E)for(let N=E.length,G=0;G0?c[C-1]:null,W=C+1this.preElements.includes(u.name)))return c;if(" "==c.charAt(0)){const u=this._getTouchingInlineViewNode(r,!1);!(u&&u.is("$textProxy")&&this._nodeEndsWithSpace(u))&&u||(c="\xa0"+c.substr(1))}if(" "==c.charAt(c.length-1)){const u=this._getTouchingInlineViewNode(r,!0),_=u&&u.is("$textProxy")&&" "==u.data.charAt(0);" "!=c.charAt(c.length-2)&&u&&!_||(c=c.substr(0,c.length-1)+"\xa0")}return c.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(u=>this.preElements.includes(u.name)))return!1;const c=this._processDataFromViewText(r);return" "==c.charAt(c.length-1)}_getTouchingInlineViewNode(r,c){const u=new tm({startPosition:c?Zo._createAfter(r):Zo._createBefore(r),direction:c?"forward":"backward"});for(const _ of u){if(_.item.is("element","br"))return null;if(this._isInlineObjectElement(_.item))return _.item;if(_.item.is("containerElement"))return null;if(_.item.is("$textProxy"))return _.item}return null}_isBlockDomElement(r){return this.isElement(r)&&this.blockElements.includes(r.tagName.toLowerCase())}_isBlockViewElement(r){return r.is("element")&&this.blockElements.includes(r.name)}_isInlineObjectElement(r){return!!r.is("element")&&("br"==r.name||this.inlineObjectElements.includes(r.name)||!!this._inlineObjectElementMatcher.match(r))}_createViewElement(r,c){if(va(r))return new ec(this.document,"$comment");const u=c.keepOriginalCase?r.tagName:r.tagName.toLowerCase();return new Qc(this.document,u)}_isViewElementWithRawContent(r,c){return!1!==c.withChildren&&r.is("element")&&!!this._rawContentElementMatcher.match(r)}_shouldRenameElement(r){const c=r.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(c)}_createReplacementDomElement(r,c){const u=this._domDocument.createElement("span");if(u.setAttribute(Lg,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function Og(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function Rm(m,r){let c=m;for(;c;)r(c),c=c.parentElement}function Y1(m,r){const c=m.parentNode;return!!c&&!!c.tagName&&r.includes(c.tagName.toLowerCase())}function Rf(m){"script"===m&&Tt("domconverter-unsafe-script-element-detected"),"style"===m&&Tt("domconverter-unsafe-style-element-detected")}class Mu extends(eo()){constructor(r){super(),this._isEnabled=!1,this.view=r,this.document=r.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(r){return r&&3===r.nodeType&&(r=r.parentNode),!(!r||1!==r.nodeType)&&r.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const ml=Lf(function(m,r){Ys(r,ds(r),m)});class Gd{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,ml(this,u)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class jd extends Mu{constructor(){super(...arguments),this.useCapture=!1}observe(r){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(c=>{this.listenTo(r,c,(u,_)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(_.target)&&this.onDomEvent(_)},{useCapture:this.useCapture})})}stopObserving(r){this.stopListening(r)}fire(r,c,u){this.isEnabled&&this.document.fire(r,new Gd(this.view,c,u))}}class B1 extends jd{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey,get keystroke(){return xc(this)}})}}const Bu=function(){return oe.Date.now()};var Wc=/\s/,k2=/^\s+/;var q3=/^[-+]0x[0-9a-f]+$/i,pb=/^0b[01]+$/i,O6=/^0o[0-7]+$/i,Vu=parseInt;const P_=function(m){if("number"==typeof m)return m;if(Kn(m))return NaN;if(Wt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Wt(r)?r+"":r}if("string"!=typeof m)return 0===m?m:+m;m=function(m){return m&&m.slice(0,function(m){for(var r=m.length;r--&&Wc.test(m.charAt(r)););return r}(m)+1).replace(k2,"")}(m);var c=pb.test(m);return c||O6.test(m)?Vu(m.slice(2),c?2:8):q3.test(m)?NaN:+m};var E6=Math.max,mb=Math.min;const S_=function(m,r,c){var u,_,C,M,E,N,G=0,W=!1,dt=!1,Zt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function ue(di){var Ri=u,Jo=_;return u=_=void 0,G=di,M=m.apply(Jo,Ri)}function xe(di){var Ri=di-N;return void 0===N||Ri>=r||Ri<0||dt&&di-G>=C}function Ee(){var Ri,Jo,di=Bu();if(xe(di))return ln(di);E=setTimeout(Ee,(Jo=r-((Ri=di)-N),dt?mb(Jo,C-(Ri-G)):Jo))}function ln(di){return E=void 0,Zt&&u?ue(di):(u=_=void 0,M)}function Mn(){var Jo,di=Bu(),Ri=xe(di);if(u=arguments,_=this,N=di,Ri){if(void 0===E)return G=Jo=N,E=setTimeout(Ee,r),W?ue(Jo):M;if(dt)return clearTimeout(E),E=setTimeout(Ee,r),ue(N)}return void 0===E&&(E=setTimeout(Ee,r)),M}return r=P_(r)||0,Wt(c)&&(W=!!c.leading,C=(dt="maxWait"in c)?E6(P_(c.maxWait)||0,r):C,Zt="trailing"in c?!!c.trailing:Zt),Mn.cancel=function(){void 0!==E&&clearTimeout(E),G=0,u=N=_=E=void 0},Mn.flush=function(){return void 0===E?M:ln(Bu())},Mn};class R3 extends Mu{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=S_(c=>{this.document.fire("selectionChangeDone",c)},200)}observe(){const r=this.document;r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&u.preventDefault()},{context:"$capture"}),r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&this._handleSelectionMove(u.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const c=this.document.selection,u=new Cd(c.getRanges(),{backward:c.isBackward,fake:!1});r!=$a.arrowleft&&r!=$a.arrowup||u.setTo(u.getFirstPosition()),r!=$a.arrowright&&r!=$a.arrowdown||u.setTo(u.getLastPosition());const _={oldSelection:c,newSelection:u,domSelection:null};this.document.fire("selectionChange",_),this._fireSelectionChangeDoneDebounced(_)}}function L_(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new Ns;++rE))return!1;var G=C.get(m),W=C.get(r);if(G&&W)return G==r&&W==m;var dt=-1,Zt=!0,ue=2&c?new Yf:void 0;for(C.set(m,r),C.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const C=c.selection.editableElement;null!==C&&C!==_.target||(c.isFocused=!1,this._isFocusChanging=!1,r.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class ju extends Mu{constructor(r){super(r),this.mutationObserver=r.getObserver(P2),this.focusObserver=r.getObserver(V1),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=S_(c=>{this.document.fire("selectionChangeDone",c)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=S_(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(r){const c=r.ownerDocument,u=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,c),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(r,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(r,"keydown",u,{priority:"highest",useCapture:!0}),this.listenTo(r,"keyup",u,{priority:"highest",useCapture:!0}),this._documents.has(c)||(this.listenTo(c,"mouseup",u,{priority:"highest",useCapture:!0}),this.listenTo(c,"selectionchange",(_,C)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(C,c),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(c))}stopObserving(r){this.stopListening(r)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(r,c){if(!this.isEnabled)return;const u=c.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(u.anchorNode))return;this.mutationObserver.flush();const _=this.domConverter.domSelectionToView(u);if(0!=_.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(_)||!this.domConverter.isDomSelectionCorrect(u))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(_))this.view.forceRender();else{const C={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",C),this._fireSelectionChangeDoneDebounced(C)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class $c extends jd{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const c=this.document;c.on("compositionstart",()=>{c.isComposing=!0},{priority:"low"}),c.on("compositionend",()=>{c.isComposing=!1},{priority:"low"})}onDomEvent(r){this.fire(r.type,r,{data:r.data})}}class jf{constructor(r,c={}){this._files=c.cacheFiles?zg(r):null,this._native=r}get files(){return this._files||(this._files=zg(this._native)),this._files}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,c){this._native.setData(r,c)}set effectAllowed(r){this._native.effectAllowed=r}get effectAllowed(){return this._native.effectAllowed}set dropEffect(r){this._native.dropEffect=r}get dropEffect(){return this._native.dropEffect}setDragImage(r,c,u){this._native.setDragImage(r,c,u)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function zg(m){const r=Array.from(m.files||[]),c=Array.from(m.items||[]);return r.length?r:c.filter(u=>"file"===u.kind).map(u=>u.getAsFile())}class Yg extends jd{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let C=null,M=null,E=[];if(r.dataTransfer&&(C=new jf(r.dataTransfer)),null!==r.data?M=r.data:C&&(M=C.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(N=>{const G=u.domConverter.domPositionToView(N.startContainer,N.startOffset),W=u.domConverter.domPositionToView(N.endContainer,N.endOffset);return G?u.createRange(G,W):W?u.createRange(W):void 0}).filter(N=>!!N);else if(D_isAndroid){const N=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(N).getRanges())}if(D_isAndroid&&"insertCompositionText"==r.inputType&&M&&M.endsWith("\n"))this.fire(r.type,r,{inputType:"insertParagraph",targetRanges:[u.createRange(E[0].end)]});else if("insertText"==r.inputType&&M&&M.includes("\n")){const N=M.split(/\n{1,2}/g);let G=E;for(let W=0;W{if(this.isEnabled&&((_=u.keyCode)==$a.arrowright||_==$a.arrowleft||_==$a.arrowup||_==$a.arrowdown)){const C=new yp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(C,u),C.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Bg extends Mu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=$a.tab||_.ctrlKey)return;const C=new yp(c,"tab",c.selection.getFirstRange());c.fire(C,_),C.stop.called&&u.stop()})}observe(){}stopObserving(){}}const y1=function(m){return Pi(m,5)};class Y3 extends(we()){constructor(r){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new em(r),this.domConverter=new D_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new M_(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Ls(this.document),this.addObserver(P2),this.addObserver(V1),this.addObserver(ju),this.addObserver(B1),this.addObserver(R3),this.addObserver($c),this.addObserver(z3),this.addObserver(Yg),this.addObserver(Bg),this.document.on("arrowKey",Vd,{priority:"low"}),function Jr(m){m.document.on("arrowKey",(r,c)=>function(u,_,C){if(_.keyCode==$a.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const W=C.domPositionToView(M.focusNode,M.focusOffset);if(null===W)return;let dt=!1;const Zt=W.getLastMatchingPosition(ue=>(ue.item.is("uiElement")&&(dt=!0),!(!ue.item.is("uiElement")&&!ue.item.is("attributeElement"))));if(dt){const ue=C.viewPositionToDom(Zt);E?M.collapse(ue.parent,ue.offset):M.extend(ue.parent,ue.offset)}}}}(0,c,m.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),D_isiOS&&this.listenTo(this.document,"blur",(c,u)=>{this.domConverter.mapDomToView(u.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(r,c="main"){const u=this.document.getRoot(c);u._name=r.tagName.toLowerCase();const _={};for(const{name:M,value:E}of Array.from(r.attributes))_[M]=E,"class"===M?this._writer.addClass(E.split(" "),u):this._writer.setAttribute(M,E,u);this._initialDomRootAttributes.set(r,_);const C=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};C(),this.domRoots.set(c,r),this.domConverter.bindElements(r,u),this._renderer.markToSync("children",u),this._renderer.markToSync("attributes",u),this._renderer.domDocuments.add(r.ownerDocument),u.on("change:children",(M,E)=>this._renderer.markToSync("children",E)),u.on("change:attributes",(M,E)=>this._renderer.markToSync("attributes",E)),u.on("change:text",(M,E)=>this._renderer.markToSync("text",E)),u.on("change:isReadOnly",()=>this.change(C)),u.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const M of this._observers.values())M.observe(r,c)}detachDomRoot(r){const c=this.domRoots.get(r);Array.from(c.attributes).forEach(({name:_})=>c.removeAttribute(_));const u=this._initialDomRootAttributes.get(c);for(const _ in u)c.setAttribute(_,u[_]);this.domRoots.delete(r),this.domConverter.unbindDomElement(c);for(const _ of this._observers.values())_.stopObserving(c)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let c=this._observers.get(r);if(c)return c;c=new r(this),this._observers.set(r,c);for(const[u,_]of this.domRoots)c.observe(_,u);return c.enable(),c}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection({alignToTop:r,forceScroll:c,viewportOffset:u=20,ancestorOffset:_=20}={}){const C=this.document.selection.getFirstRange();if(!C)return;const M=y1({alignToTop:r,forceScroll:c,viewportOffset:u,ancestorOffset:_});"number"==typeof u&&(u={top:u,bottom:u,left:u,right:u});const E={target:this.domConverter.viewRangeToDom(C),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:N,viewportOffset:G=0,ancestorOffset:W=0,alignToTop:dt,forceScroll:Zt}){const ue=rr(N);let xe=ue,Ee=null;for(G="number"==typeof(ln=G)?{top:ln,bottom:ln,left:ln,right:ln}:ln;xe;){let ln;ln=sr(xe==ue?N:Ee),Rr({parent:ln,getRect:()=>Cs(N,xe),alignToTop:dt,ancestorOffset:W,forceScroll:Zt});const Mn=Cs(N,xe);if(ps({window:xe,rect:Mn,viewportOffset:G,alignToTop:dt,forceScroll:Zt}),xe.parent!=xe){if(Ee=xe.frameElement,xe=xe.parent,!Ee)return}else xe=null}var ln}(E)}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new it("cannot-change-view-tree",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const c=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),c}catch(c){it.rethrowUnexpectedError(c,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(V1).flush(),this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,c){return Zo._createAt(r,c)}createPositionAfter(r){return Zo._createAfter(r)}createPositionBefore(r){return Zo._createBefore(r)}createRange(r,c){return new Xo(r,c)}createRangeOn(r){return Xo._createOn(r)}createRangeIn(r){return Xo._createIn(r)}createSelection(...r){return new Cd(...r)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Kc{is(){throw new Error("is() method is abstract")}}class Du extends Kc{constructor(r){super(),this.parent=null,this._attrs=Jc(r)}get document(){return null}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new it("model-node-not-found-in-parent",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new it("model-node-not-found-in-parent",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.startOffset),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_](c[u[0]]=u[1],c),{})),r}_clone(r){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,c){this._attrs.set(r,c)}_setAttributesTo(r){this._attrs=Jc(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}Du.prototype.is=function(m){return"node"===m||"model:node"===m};class E_{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,c)=>r+c.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const c=this._nodes.indexOf(r);return-1==c?null:c}getNodeStartOffset(r){const c=this.getNodeIndex(r);return null===c?null:this._nodes.slice(0,c).reduce((u,_)=>u+_.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const c=this._nodes[r];if(!c)throw new it("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(c)}offsetToIndex(r){let c=0;for(const u of this._nodes){if(r>=c&&r1e4)return u.slice(0,C).concat(_).concat(u.slice(C+0,u.length));{const E=Array.from(u);return E.splice(C,0,..._),E}}(this._nodes,Array.from(c),r)}_removeNodes(r,c=1){return this._nodes.splice(r,c)}toJSON(){return this._nodes.map(r=>r.toJSON())}}class ss extends Du{constructor(r,c){super(c),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new ss(this.data,this.getAttributes())}static fromJSON(r){return new ss(r.data,r.attributes)}}ss.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class Gl extends Kc{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new it("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new it("model-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Gl.prototype.is=function(m){return"$textProxy"===m||"model:$textProxy"===m||"textProxy"===m||"model:textProxy"===m};class _s extends Du{constructor(r,c,u){super(c),this._children=new E_,this.name=r,u&&this._insertChild(0,u)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}findAncestor(r,c={}){let u=c.includeSelf?this:this.parent;for(;u;){if(u.name===r)return u;u=u.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const c of this._children)r.children.push(c.toJSON())}return r}_clone(r=!1){const c=r?Array.from(this._children).map(u=>u._clone(!0)):void 0;return new _s(this.name,this.getAttributes(),c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(nt(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new ss(C):C instanceof Gl?new ss(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}static fromJSON(r){let c;if(r.children){c=[];for(const u of r.children)c.push(u.name?_s.fromJSON(u):ss.fromJSON(u))}return new _s(r.name,r.attributes,c)}}_s.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"model:element"===m):"element"===m||"model:element"===m||"node"===m||"model:node"===m};class Jd{constructor(r){if(!r||!r.boundaries&&!r.startPosition)throw new it("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new it("model-tree-walker-unknown-direction",r,{direction:c});this.direction=c,this.boundaries=r.boundaries||null,this._position=r.startPosition?r.startPosition.clone():$i._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u,_,C;do{_=this.position,C=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=C)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,c=this.position.clone(),u=this._visitedParent;if(null===u.parent&&c.offset===u.maxOffset)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&c.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const _=Tp(c,u),C=_||cm(c,u,_);if(C instanceof _s){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(c))return{done:!0,value:void 0};c.offset++}else c.path.push(0),this._visitedParent=C;return this._position=c,G1("elementStart",C,r,c,1)}if(C instanceof ss){let M;if(this.singleCharacters)M=1;else{let G=C.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetW&&(W=this.boundaries.start.offset),E=c.offset-W}const G=new Gl(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,G1("text",G,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,G1("elementStart",u,r,c,1)}}function G1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class $i extends Kc{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new it("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new it("model-position-path-incorrect-format",r,{path:c});r.is("rootElement")?c=c.slice():(c=[...r.getPath(),...c],r=r.root),this.root=r,this.path=c,this.stickiness=u}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let c=0;c1)return!1;if(1===_)return I_(r,this,u);if(-1===_)return I_(this,r,u)}return this.path.length===r.path.length||N_(this.path.length>r.path.length?this.path:r.path,c)}hasSameParentAs(r){return this.root===r.root&&"same"==ct(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let c;switch(r.type){case"insert":c=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":c=this._getTransformedByMoveOperation(r);break;case"split":c=this._getTransformedBySplitOperation(r);break;case"merge":c=this._getTransformedByMergeOperation(r);break;default:c=$i._createAt(this)}return c}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const c=r.movedRange;return c.containsPosition(this)||c.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const c=r.movedRange;let u;return c.containsPosition(this)||c.start.isEqual(this)?(u=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(u=u._getTransformedByDeletion(r.deletionPosition,1))):u=this.isEqual(r.deletionPosition)?$i._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),u}_getTransformedByDeletion(r,c){const u=$i._createAt(this);if(this.root!=r.root)return u;if("same"==ct(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==ct(r.getParentPath(),this.getParentPath())){const _=r.path.length-1;if(r.offset<=this.path[_]){if(r.offset+c>this.path[_])return null;u.path[_]-=c}}return u}_getTransformedByInsertion(r,c){const u=$i._createAt(this);if(this.root!=r.root)return u;if("same"==ct(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==C.maxOffset)return!1;E=1,M--,C=C.parent}return!0}(m,c+1)}function N_(m,r){for(;rc+1;){const C=_.maxOffset-u.offset;0!==C&&r.push(new Oi(u,u.getShiftedBy(C))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const C=this.end.path[u.path.length-1],M=C-u.offset;0!==M&&r.push(new Oi(u,u.getShiftedBy(M))),u.offset=C,u.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Jd(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const c=new Jd(r);for(const u of c)yield u.item}*getPositions(r={}){r.boundaries=this;const c=new Jd(r);yield c.position;for(const u of c)yield u.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Oi(this.start,this.end)]}getTransformedByOperations(r){const c=[new Oi(this.start,this.end)];for(const u of r)for(let _=0;_0?new this(u,_):new this(_,u)}static _createIn(r){return new this($i._createAt(r,0),$i._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift($i._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new it("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((C,M)=>C.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let C=u-1;r[C].end.isEqual(_.start);C++)_.start=$i._createAt(r[C].start);for(let C=u+1;C{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new it("mapping-model-position-view-parent-not-found",this,{modelPosition:c.modelPosition});c.viewPosition=this.findPositionIn(u,c.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,c)=>{if(c.modelPosition)return;const u=this.findMappedViewAncestor(c.viewPosition),_=this._viewToModelMapping.get(u),C=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=$i._createAt(_,C)},{priority:"low"})}bindElements(r,c){this._modelToViewMapping.set(r,c),this._viewToModelMapping.set(c,r)}unbindViewElement(r,c={}){const u=this.toModelElement(r);if(this._elementToMarkerNames.has(r))for(const _ of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(_);c.defer?this._deferredBindingRemovals.set(r,r.root):(this._viewToModelMapping.delete(r),this._modelToViewMapping.get(u)==r&&this._modelToViewMapping.delete(u))}unbindModelElement(r){const c=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(c)==r&&this._viewToModelMapping.delete(c)}bindElementToMarker(r,c){const u=this._markerNameToElements.get(c)||new Set;u.add(r);const _=this._elementToMarkerNames.get(r)||new Set;_.add(c),this._markerNameToElements.set(c,u),this._elementToMarkerNames.set(r,_)}unbindElementFromMarkerName(r,c){const u=this._markerNameToElements.get(c);u&&(u.delete(r),0==u.size&&this._markerNameToElements.delete(c));const _=this._elementToMarkerNames.get(r);_&&(_.delete(c),0==_.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}flushDeferredBindings(){for(const[r,c]of this._deferredBindingRemovals)r.root==c&&this.unbindViewElement(r);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Oi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Xo(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const c={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",c),c.modelPosition}toViewPosition(r,c={}){const u={modelPosition:r,mapper:this,isPhantom:c.isPhantom};return this.fire("modelToViewPosition",u),u.viewPosition}markerNameToElements(r){const c=this._markerNameToElements.get(r);if(!c)return null;const u=new Set;for(const _ of c)if(_.is("attributeElement"))for(const C of _.getElementsWithSameId())u.add(C);else u.add(_);return u}registerViewToModelLength(r,c){this._viewToModelLengthCallbacks.set(r,c)}findMappedViewAncestor(r){let c=r.parent;for(;!this._viewToModelMapping.has(c);)c=c.parent;return c}_toModelOffset(r,c,u){if(u!=r)return this._toModelOffset(r.parent,r.index,u)+this._toModelOffset(r,c,r);if(r.is("$text"))return c;let _=0;for(let C=0;C1?r[0]+":"+r[1]:r[0]}var S2=Object.defineProperty,Vg=Object.defineProperties,I6=Object.getOwnPropertyDescriptors,L2=Object.getOwnPropertySymbols,O2=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,Wf=(m,r,c)=>r in m?S2(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Gg=(m,r)=>{for(var c in r||(r={}))O2.call(r,c)&&Wf(m,c,r[c]);if(L2)for(var c of L2(r))Qf.call(r,c)&&Wf(m,c,r[c]);return m},Hm=(m,r)=>Vg(m,I6(r));class G3 extends(Le()){constructor(r){super(),this._conversionApi=Gg({dispatcher:this},r),this._firedEventsMap=new WeakMap}convertChanges(r,c,u){const _=this._createConversionApi(u,r.getRefreshedItems());for(const M of r.getMarkersToRemove())this._convertMarkerRemove(M.name,M.range,_);const C=this._reduceChanges(r.getChanges());for(const M of C)"insert"===M.type?this._convertInsert(Oi._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Oi._createFromPositionAndShift(M.position,M.length),_):"remove"===M.type?this._convertRemove(M.position,M.length,M.name,_):this._convertAttribute(M.range,M.attributeKey,M.attributeOldValue,M.attributeNewValue,_);for(const M of _.mapper.flushUnboundMarkerNames()){const E=c.get(M).getRange();this._convertMarkerRemove(M,E,_),this._convertMarkerAdd(M,E,_)}for(const M of r.getMarkersToAdd())this._convertMarkerAdd(M.name,M.range,_);_.mapper.flushDeferredBindings(),_.consumable.verifyAllConsumed("insert")}convert(r,c,u,_={}){const C=this._createConversionApi(u,void 0,_);this._convertInsert(r,C);for(const[M,E]of c)this._convertMarkerAdd(M,E,C);C.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const C=r.getFirstPosition().root;if(!_.mapper.toViewElement(C))return;const M=Array.from(c.getMarkersAtPosition(r.getFirstPosition()));if(this._addConsumablesForSelection(_.consumable,r,M),this.fire("selection",{selection:r},_),r.isCollapsed){for(const E of M)if(_.consumable.test(r,"addMarker:"+E.name)){const N=E.getRange();if(!zm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:N},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const N={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,N,_)}}}_convertInsert(r,c,u={}){u.doNotAddConsumables||this._addConsumablesForInsert(c.consumable,Array.from(r));for(const _ of Array.from(r.getWalker({shallow:!0})).map(q_))this._testAndFire("insert",_,c)}_convertRemove(r,c,u,_){this.fire(`remove:${u}`,{position:r,length:c},_)}_convertAttribute(r,c,u,_,C){this._addConsumablesForRange(C.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Oi._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,C)}}_convertReinsert(r,c){const u=Array.from(r.getWalker({shallow:!0}));this._addConsumablesForInsert(c.consumable,u);for(const _ of u.map(q_))this._testAndFire("insert",Hm(Gg({},_),{reconversion:!0}),c)}_convertMarkerAdd(r,c,u){if("$graveyard"==c.root.rootName)return;const _=`addMarker:${r}`;if(u.consumable.add(c,_),this.fire(_,{markerName:r,markerRange:c},u),u.consumable.consume(c,_)){this._addConsumablesForRange(u.consumable,c,_);for(const C of c.getItems()){if(!u.consumable.test(C,_))continue;const M={item:C,range:Oi._createOn(C),markerName:r,markerRange:c};this.fire(_,M,u)}}}_convertMarkerRemove(r,c,u){"$graveyard"!=c.root.rootName&&this.fire(`removeMarker:${r}`,{markerName:r,markerRange:c},u)}_reduceChanges(r){const c={changes:r};return this.fire("reduceChanges",c),c.changes}_addConsumablesForInsert(r,c){for(const u of c){const _=u.item;if(null===r.test(_,"insert")){r.add(_,"insert");for(const C of _.getAttributeKeys())r.add(_,"attribute:"+C)}}return r}_addConsumablesForRange(r,c,u){for(const _ of c.getItems())r.add(_,u);return r}_addConsumablesForSelection(r,c,u){r.add(c,"selection");for(const _ of u)r.add(c,"addMarker:"+_.name);for(const _ of c.getAttributeKeys())r.add(c,"attribute:"+_);return r}_testAndFire(r,c,u){const _=`${r}:${(G=c).item.is("element")?G.item.name:"$text"}`,C=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(C);var G;if(E){if(E.has(_))return;E.add(_)}else M.set(C,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Oi._createOn(r)};for(const _ of u.item.getAttributeKeys())u.attributeKey=_,u.attributeOldValue=null,u.attributeNewValue=u.item.getAttribute(_),this._testAndFire(`attribute:${_}`,u,c)}_createConversionApi(r,c=new Set,u={}){const _=Hm(Gg({},this._conversionApi),{consumable:new V3,writer:r,options:u,convertItem:C=>this._convertInsert(Oi._createOn(C),_),convertChildren:C=>this._convertInsert(Oi._createIn(C),_,{doNotAddConsumables:!0}),convertAttributes:C=>this._testAndFireAddAttributes(C,_),canReuseView:C=>!c.has(_.mapper.toModelElement(C))});return this._firedEventsMap.set(_,new Map),_}}function zm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(C=>{if(u.containsItem(C))return!!c.toViewElement(C).getCustomProperty("addHighlight")})}function q_(m){return{item:m.item,range:Oi._createFromPositionAndShift(m.previousPosition,m.length)}}class Ju extends(Le(Kc)){constructor(...r){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],r.length&&this.setTo(...r)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Oi(r.start,r.end)}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?new Oi(r.start,r.end):null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?new Oi(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]);else if(c instanceof Ju)this._setRanges(c.getRanges(),c.isBackward);else if(c&&"function"==typeof c.getRanges)this._setRanges(c.getRanges(),c.isBackward);else if(c instanceof Oi)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof $i)this._setRanges([new Oi(c)]);else if(c instanceof Du){const C=!!_&&!!_.backward;let M;if("in"==u)M=Oi._createIn(c);else if("on"==u)M=Oi._createOn(c);else{if(void 0===u)throw new it("model-selection-setto-required-second-parameter",[this,c]);M=new Oi($i._createAt(c,u))}this._setRanges([M],C)}else{if(!nt(c))throw new it("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(C=>{if(!(C instanceof Oi))throw new it("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(C))});(u.length!==this._ranges.length||_)&&(this._replaceAllRanges(u),this._lastRangeBackward=!!c,this.fire("change:range",{directChange:!0}))}setFocus(r,c){if(null===this.anchor)throw new it("model-selection-setfocus-no-ranges",[this,r]);const u=$i._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.length&&this._popRange(),"before"==u.compareWith(_)?(this._pushRange(new Oi(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Oi(_,u)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,c){this.getAttribute(r)!==c&&(this._attrs.set(r,c),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const r=new WeakSet;for(const c of this.getRanges()){const u=J3(c.start,r);Jg(u,c)&&(yield u);for(const C of c.getWalker()){const M=C.item;"elementEnd"==C.type&&jg(M,r,c)&&(yield M)}const _=J3(c.end,r);Qg(_,c)&&(yield _)}}containsEntireContent(r=this.anchor.root){const c=$i._createAt(r,0),u=$i._createAt(r,"end");return c.isTouching(this.getFirstPosition())&&u.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Oi(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function j3(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function jg(m,r,c){return j3(m,r)&&R_(m,c)}function J3(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const C=u.find(M=>!_&&(_=c.isLimit(M),!_&&j3(M,r)));return u.forEach(M=>r.add(M)),C}function R_(m,r){const c=function(u){const _=u.root.document.model.schema;let C=u.parent;for(;C;){if(_.isBlock(C))return C;C=C.parent}}(m);return!c||!r.containsRange(Oi._createOn(c),!0)}function Jg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching($i._createAt(m,m.maxOffset))&&R_(m,r))}function Qg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching($i._createAt(m,0))&&R_(m,r))}Ju.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Ad extends(Le(Oi)){constructor(r,c){super(r,c),Ym.call(this)}detach(){this.stopListening()}toRange(){return new Oi(this.start,this.end)}static fromRange(r){return new Ad(r.start,r.end)}}function Ym(){this.listenTo(this.root.document.model,"applyOperation",(m,r)=>{const c=r[0];c.isDocumentOperation&&$f.call(this,c)},{priority:"low"})}function $f(m){const r=this.getTransformedByOperation(m),c=Oi._createFromRanges(r),u=!c.isEqual(this),_=function(M,E){switch(E.type){case"insert":return M.containsPosition(E.position);case"move":case"remove":case"reinsert":case"merge":return M.containsPosition(E.sourcePosition)||M.start.isEqual(E.sourcePosition)||M.containsPosition(E.targetPosition);case"split":return M.containsPosition(E.splitPosition)||M.containsPosition(E.insertionPosition)}return!1}(this,m);let C=null;if(u){"$graveyard"==c.root.rootName&&(C="remove"==m.type?m.sourcePosition:m.deletionPosition);const M=this.toRange();this.start=c.start,this.end=c.end,this.fire("change:range",M,{deletionPosition:C})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:C})}Ad.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const E2="selection:";class Qu extends(Le(Kc)){constructor(r){super(),this._selection=new lm(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(r){this._selection.observeMarkers(r)}_setFocus(r,c){this._selection.setFocus(r,c)}_setTo(...r){this._selection.setTo(...r)}_setAttribute(r,c){this._selection.setAttribute(r,c)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return E2+r}static _isStoreAttributeKey(r){return r.startsWith(E2)}}Qu.prototype.is=function(m){return"selection"===m||"model:selection"==m||"documentSelection"==m||"model:documentSelection"==m};class lm extends Ju{constructor(r){super(),this.markers=new Xs({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=r.model,this._document=r,this.listenTo(this._model,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&"marker"!=_.type&&"rename"!=_.type&&"noop"!=_.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(c,u,_,C)=>{this._updateMarker(u,C)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,C){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const N=E.position.parent;E.length===N.maxOffset&&_.enqueueChange(C,G=>{const W=Array.from(N.getAttributeKeys()).filter(dt=>dt.startsWith(E2));for(const dt of W)G.removeAttribute(dt,N)})}}(this._model,u)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,c.root==this._document.graveyard){this._selectionRestorePosition=C.deletionPosition;const M=this._ranges.indexOf(c);this._ranges.splice(M,1),c.detach()}}),c}updateMarkers(){if(!this._observedMarkers.size)return;const r=[];let c=!1;for(const _ of this._model.markers){const C=_.name.split(":",1)[0];if(!this._observedMarkers.has(C))continue;const M=_.getRange();for(const E of this.getRanges())M.containsRange(E,!E.isCollapsed)&&r.push(_)}const u=Array.from(this.markers);for(const _ of r)this.markers.has(_)||(this.markers.add(_),c=!0);for(const _ of Array.from(this.markers))r.includes(_)||(this.markers.remove(_),c=!0);c&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}_updateMarker(r,c){const u=r.name.split(":",1)[0];if(!this._observedMarkers.has(u))return;let _=!1;const C=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const N of this.getRanges())if(c.containsRange(N,!N.isCollapsed)){E=!0;break}E&&!M?(this.markers.add(r),_=!0):!E&&M&&(this.markers.remove(r),_=!0)}else M&&(this.markers.remove(r),_=!0);_&&this.fire("change:marker",{oldMarkers:C,directChange:!1})}_updateAttributes(r){const c=Jc(this._getSurroundingAttributes()),u=Jc(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[C,M]of this._attributePriority)"low"==M&&(this._attrs.delete(C),this._attributePriority.delete(C));this._setAttributesTo(c);const _=[];for(const[C,M]of this.getAttributes())u.has(C)&&u.get(C)===M||_.push(C);for(const[C]of u)this.hasAttribute(C)||_.push(C);_.length>0&&this.fire("change:attribute",{attributeKeys:_,directChange:!1})}_setAttribute(r,c,u=!0){const _=u?"normal":"low";return("low"!=_||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==c&&(this._attrs.set(r,c),this._attributePriority.set(r,_),!0)}_removeAttribute(r,c=!0){const u=c?"normal":"low";return!("low"==u&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,u),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const c=new Set;for(const[u,_]of this.getAttributes())r.get(u)!==_&&this._removeAttribute(u,!1);for(const[u,_]of r)this._setAttribute(u,_,!1)&&c.add(u);return c}*getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const c of r.getAttributeKeys())c.startsWith(E2)&&(yield[c.substr(10),r.getAttribute(c)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),c=this._model.schema;if("$graveyard"==r.root.rootName)return null;let u=null;if(this.isCollapsed){const _=r.textNode?r.textNode:r.nodeBefore,C=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=to(_,c)),u||(u=to(C,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=to(M,c)}if(!u){let M=C;for(;M&&!u;)M=M.nextSibling,u=to(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const C of _){if(C.item.is("element")&&c.isObject(C.item)){u=to(C.item,c);break}if("text"==C.type){u=C.item.getAttributes();break}}}return u}_fixGraveyardSelection(r){const c=this._model.schema.getNearestSelectionRange(r);c&&this._pushRange(c)}}function to(m,r){if(!m)return null;if(m instanceof Gl||m instanceof ss)return m.getAttributes();if(!r.isInline(m))return null;if(!r.isObject(m))return[];const c=[];for(const[u,_]of m.getAttributes())r.checkAttribute("$text",u)&&!1!==r.getAttributeProperties(u).copyFromObject&&c.push([u,_]);return c}class Q3{constructor(r){this._dispatchers=r}add(r){for(const c of this._dispatchers)r(c);return this}}class N6 extends Q3{elementToElement(r){return this.add(function(c){const u=Kf(c.model),_=H_(c.view,"container");return u.attributes.length&&(u.children=!0),C=>{C.on(`insert:${u.name}`,function(M,E=_b){return(N,G,W)=>{if(!E(G.item,W.consumable,{preflight:!0}))return;const dt=M(G.item,W,G);if(!dt)return;E(G.item,W.consumable);const Zt=W.mapper.toViewPosition(G.range.start);W.mapper.bindElements(G.item,dt),W.writer.insert(Zt,dt),W.convertAttributes(G.item),z_(dt,G.item.getChildren(),W,{reconversion:G.reconversion})}}(_,$g(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&C.on("reduceChanges",W3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=Kf(c.model),_=H_(c.view,"container");return u.children=!0,C=>{if(C._conversionApi.schema.checkChild(u.name,"$text"))throw new it("conversion-element-to-structure-disallowed-text",C,{elementName:u.name});var M,E;C.on(`insert:${u.name}`,(M=_,E=$g(u),(N,G,W)=>{if(!E(G.item,W.consumable,{preflight:!0}))return;const dt=new Map;var xe,Ee,ln;W.writer._registerSlotFactory((xe=G.item,Ee=dt,ln=W,(Mn,di)=>{const Ri=Mn.createContainerElement("$slot");let Jo=null;if("children"===di)Jo=Array.from(xe.getChildren());else{if("function"!=typeof di)throw new it("conversion-slot-mode-unknown",ln.dispatcher,{modeOrFilter:di});Jo=Array.from(xe.getChildren()).filter(Da=>di(Da))}return Ee.set(Ri,Jo),Ri}));const Zt=M(G.item,W,G);if(W.writer._clearSlotFactory(),!Zt)return;(function(xe,Ee,ln){const Mn=Array.from(Ee.values()).flat(),di=new Set(Mn);if(di.size!=Mn.length)throw new it("conversion-slot-filter-overlap",ln.dispatcher,{element:xe});if(di.size!=xe.childCount)throw new it("conversion-slot-filter-incomplete",ln.dispatcher,{element:xe})})(G.item,dt,W),E(G.item,W.consumable);const ue=W.mapper.toViewPosition(G.range.start);W.mapper.bindElements(G.item,Zt),W.writer.insert(ue,Zt),W.convertAttributes(G.item),function(xe,Ee,ln,Mn){ln.mapper.on("modelToViewPosition",Jo,{priority:"highest"});let di=null,Ri=null;for([di,Ri]of Ee)z_(xe,Ri,ln,Mn),ln.writer.move(ln.writer.createRangeIn(di),ln.writer.createPositionBefore(di)),ln.writer.remove(di);function Jo(Da,Ts){const Sl=Ri.indexOf(Ts.modelPosition.nodeAfter);Sl<0||(Ts.viewPosition=Ts.mapper.findPositionIn(di,Sl))}ln.mapper.off("modelToViewPosition",Jo)}(Zt,dt,W,{reconversion:G.reconversion})}),{priority:c.converterPriority||"normal"}),C.on("reduceChanges",W3(u),{priority:"low"})}}(r))}attributeToElement(r){return this.add(function(c){let u=(c=y1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=H_(c.view[M],"attribute");else c.view=H_(c.view,"attribute");const C=dm(c);return M=>{var E;M.on(_,(E=C,(N,G,W)=>{if(!W.consumable.test(G.item,N.name))return;const dt=E(G.attributeOldValue,W,G),Zt=E(G.attributeNewValue,W,G);if(!dt&&!Zt)return;W.consumable.consume(G.item,N.name);const ue=W.writer;if(G.item instanceof Ju||G.item instanceof Qu)ue.wrap(ue.document.selection.getFirstRange(),Zt);else{let Ee=W.mapper.toViewRange(G.range);null!==G.attributeOldValue&&dt&&(Ee=ue.unwrap(Ee,dt)),null!==G.attributeNewValue&&Zt&&ue.wrap(Ee,Zt)}}),{priority:c.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=(c=y1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=Qd(c.view[M]);else c.view=Qd(c.view);const C=dm(c);return M=>{var E;M.on(_,(E=C,(N,G,W)=>{if(!W.consumable.test(G.item,N.name))return;const dt=E(G.attributeOldValue,W,G),Zt=E(G.attributeNewValue,W,G);if(!dt&&!Zt)return;W.consumable.consume(G.item,N.name);const ue=W.mapper.toViewElement(G.item),xe=W.writer;if(!ue)throw new it("conversion-attribute-to-attribute-on-text",W.dispatcher,G);if(null!==G.attributeOldValue&&dt)if("class"==dt.key){const Ee=Ds(dt.value);for(const ln of Ee)xe.removeClass(ln,ue)}else if("style"==dt.key){const Ee=Object.keys(dt.value);for(const ln of Ee)xe.removeStyle(ln,ue)}else xe.removeAttribute(dt.key,ue);if(null!==G.attributeNewValue&&Zt)if("class"==Zt.key){const Ee=Ds(Zt.value);for(const ln of Ee)xe.addClass(ln,ue)}else if("style"==Zt.key){const Ee=Object.keys(Zt.value);for(const ln of Ee)xe.setStyle(ln,Zt.value[ln],ue)}else xe.setAttribute(Zt.key,Zt.value,ue)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=H_(c.view,"ui");return _=>{var C;_.on(`addMarker:${c.model}`,(C=u,(M,E,N)=>{E.isOpening=!0;const G=C(E,N);E.isOpening=!1;const W=C(E,N);if(!G||!W)return;const dt=E.markerRange;if(dt.isCollapsed&&!N.consumable.consume(dt,M.name))return;for(const xe of dt)if(!N.consumable.consume(xe.item,M.name))return;const Zt=N.mapper,ue=N.writer;ue.insert(Zt.toViewPosition(dt.start),G),N.mapper.bindElementToMarker(G,E.markerName),dt.isCollapsed||(ue.insert(Zt.toViewPosition(dt.end),W),N.mapper.bindElementToMarker(W,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,N)=>{const G=N.mapper.markerNameToElements(E.markerName);if(G){for(const W of G)N.mapper.unbindElementFromMarkerName(W,E.markerName),N.writer.clear(N.writer.createRangeOn(W),W);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,C;u.on(`addMarker:${c.model}`,(_=c.view,(C,M,E)=>{if(!M.item||!(M.item instanceof Ju||M.item instanceof Qu||M.item.is("$textProxy")))return;const N=Wg(_,M,E);if(!N||!E.consumable.consume(M.item,C.name))return;const G=E.writer,W=T1(G,N);if(M.item instanceof Ju||M.item instanceof Qu)G.wrap(G.document.selection.getFirstRange(),W);else{const Zt=E.mapper.toViewRange(M.range),ue=G.wrap(Zt,W);for(const xe of ue.getItems())if(xe.is("attributeElement")&&xe.isSimilar(W)){E.mapper.bindElementToMarker(xe,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(C=c.view,(M,E,N)=>{if(!(E.item&&E.item instanceof _s))return;const G=Wg(C,E,N);if(!G||!N.consumable.test(E.item,M.name))return;const W=N.mapper.toViewElement(E.item);if(W&&W.getCustomProperty("addHighlight")){N.consumable.consume(E.item,M.name);for(const dt of Oi._createIn(E.item))N.consumable.consume(dt.item,M.name);W.getCustomProperty("addHighlight")(W,G,N.writer),N.mapper.bindElementToMarker(W,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(C){return(M,E,N)=>{if(E.markerRange.isCollapsed)return;const G=Wg(C,E,N);if(!G)return;const W=T1(N.writer,G),dt=N.mapper.markerNameToElements(E.markerName);if(dt){for(const Zt of dt)N.mapper.unbindElementFromMarkerName(Zt,E.markerName),Zt.is("attributeElement")?N.writer.unwrap(N.writer.createRangeOn(Zt),W):Zt.getCustomProperty("removeHighlight")(Zt,G.id,N.writer);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}}}(c.view),{priority:c.converterPriority||"normal"})}));var c}markerToData(r){return this.add(function(c){const u=(c=y1(c)).model;let _=c.view;return _||(_=C=>({group:u,name:C.substr(c.model.length+1)})),C=>{var M,E;C.on(`addMarker:${u}`,(M=_,(E,N,G)=>{const W=M(N.markerName,G);if(!W)return;const dt=N.markerRange;G.consumable.consume(dt,E.name)&&(um(dt,!1,G,N,W),um(dt,!0,G,N,W),E.stop())}),{priority:c.converterPriority||"normal"}),C.on(`removeMarker:${u}`,(E=_,(N,G,W)=>{const dt=E(G.markerName,W);if(!dt)return;const Zt=W.mapper.markerNameToElements(G.markerName);if(Zt){for(const xe of Zt)W.mapper.unbindElementFromMarkerName(xe,G.markerName),xe.is("containerElement")?(ue(`data-${dt.group}-start-before`,xe),ue(`data-${dt.group}-start-after`,xe),ue(`data-${dt.group}-end-before`,xe),ue(`data-${dt.group}-end-after`,xe)):W.writer.clear(W.writer.createRangeOn(xe),xe);W.writer.clearClonedElementsGroup(G.markerName),N.stop()}function ue(xe,Ee){if(Ee.hasAttribute(xe)){const ln=new Set(Ee.getAttribute(xe).split(","));ln.delete(dt.name),0==ln.size?W.writer.removeAttribute(xe,Ee):W.writer.setAttribute(xe,Array.from(ln).join(","),Ee)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function T1(m,r){const c=m.createAttributeElement("span",r.attributes);return r.classes&&c._addClass(r.classes),"number"==typeof r.priority&&(c._priority=r.priority),c._id=r.id,c}function um(m,r,c,u,_){const C=r?m.start:m.end,M=C.nodeAfter&&C.nodeAfter.is("element")?C.nodeAfter:null,E=C.nodeBefore&&C.nodeBefore.is("element")?C.nodeBefore:null;if(M||E){let N,G;r&&M||!r&&!E?(N=M,G=!0):(N=E,G=!1);const W=c.mapper.toViewElement(N);if(W)return void function(dt,Zt,ue,xe,Ee,ln){const Mn=`data-${ln.group}-${Zt?"start":"end"}-${ue?"before":"after"}`,di=dt.hasAttribute(Mn)?dt.getAttribute(Mn).split(","):[];di.unshift(ln.name),xe.writer.setAttribute(Mn,di.join(","),dt),xe.mapper.bindElementToMarker(dt,Ee.markerName)}(W,r,G,c,u,_)}!function(N,G,W,dt,Zt){const Ee=W.writer.createUIElement(`${Zt.group}-${G?"start":"end"}`,Zt.name?{name:Zt.name}:null);W.writer.insert(N,Ee),W.mapper.bindElementToMarker(Ee,dt.markerName)}(c.mapper.toViewPosition(C),r,c,u,_)}function Kf(m){return"string"==typeof m&&(m={name:m}),m.attributes?Array.isArray(m.attributes)||(m.attributes=[m.attributes]):m.attributes=[],m.children=!!m.children,m}function H_(m,r){return"function"==typeof m?m:(c,u)=>function(_,C,M){let E;"string"==typeof _&&(_={name:_});const N=C.writer,G=Object.assign({},_.attributes);if(E="container"==M?N.createContainerElement(_.name,G):"attribute"==M?N.createAttributeElement(_.name,G,{priority:_.priority||nm.DEFAULT_PRIORITY}):N.createUIElement(_.name,G),_.styles){const W=Object.keys(_.styles);for(const dt of W)N.setStyle(dt,_.styles[dt],E)}if(_.classes){const W=_.classes;if("string"==typeof W)N.addClass(W,E);else for(const dt of W)N.addClass(dt,E)}return E}(m,u,r)}function dm(m){return m.model.values?(r,c,u)=>{const _=m.view[r];return _?_(r,c,u):null}:m.view}function Qd(m){return"string"==typeof m?r=>({key:m,value:r}):"object"==typeof m?m.value?()=>m:r=>({key:m.key,value:r}):m}function Wg(m,r,c){const u="function"==typeof m?m(r,c):m;return u?(u.priority||(u.priority=10),u.id||(u.id=r.markerName),u):null}function W3(m){const r=(c=m,(u,_)=>{if(!u.is("element",c.name))return!1;if("attribute"==_.type){if(c.attributes.includes(_.attributeKey))return!0}else if(c.children)return!0;return!1});var c;return(c,u)=>{const _=[];u.reconvertedElements||(u.reconvertedElements=new Set);for(const C of u.changes){const M="attribute"==C.type?C.range.start.nodeAfter:C.position.parent;if(M&&r(M,C)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=$i._createBefore(M);let N=_.length;for(let G=_.length-1;G>=0;G--){const W=_[G],dt=("attribute"==W.type?W.range.start:W.position).compareWith(E);if("before"==dt||"remove"==W.type&&"same"==dt)break;N=G}_.splice(N,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(C)}u.changes=_}}function $g(m){return(r,c,u={})=>{const _=["insert"];for(const C of m.attributes)r.hasAttribute(C)&&_.push(`attribute:${C}`);return!!_.every(C=>c.test(r,C))&&(u.preflight||_.forEach(C=>c.consume(r,C)),!0)}}function z_(m,r,c,u){for(const _ of r)Xf(m.root,_,c,u)||c.convertItem(_)}function Xf(m,r,c,u){const{writer:_,mapper:C}=c;if(!u.reconversion)return!1;const M=C.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),C.toViewPosition($i._createBefore(r))),0))}function _b(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function F2(m){const{schema:r,document:c}=m.model;for(const u of c.getRoots())if(u.isEmpty&&!r.checkChild(u,"$text")&&r.checkChild(u,"paragraph"))return m.insertElement("paragraph",u),!0;return!1}function th(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function Kg(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var Xg=Object.defineProperty,I2=Object.defineProperties,eh=Object.getOwnPropertyDescriptors,t0=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,$3=Object.prototype.propertyIsEnumerable,Y_=(m,r,c)=>r in m?Xg(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class q6 extends Q3{elementToElement(r){return this.add(e0(r))}elementToAttribute(r){return this.add(function(c){lu(c=y1(c));const u=j1(c,!1),_=N2(c.view),C=_?`element:${_}`:"element";return M=>{M.on(C,u,{priority:c.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=null;("string"==typeof(c=y1(c)).view||c.view.key)&&(u=function(C){"string"==typeof C.view&&(C.view={key:C.view});const M=C.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:C.view.value}:{attributes:{[M]:void 0===C.view.value?/[\s\S]*/:C.view.value}},C.view.name&&(E.name=C.view.name),C.view=E,M}(c)),lu(c,u);const _=j1(c,!0);return C=>{C.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,N)=>{const G="string"==typeof M?M:M(E,N);return N.writer.createElement("$marker",{"data-name":G})});var M,_;return e0((_=((M,E)=>{for(var N in E||(E={}))yd.call(E,N)&&Y_(M,N,E[N]);if(t0)for(var N of t0(E))$3.call(E,N)&&Y_(M,N,E[N]);return M})({},c),I2(_,eh({model:u}))))}(r))}dataToMarker(r){return this.add(function(c){(c=y1(c)).model||(c.model=M=>M?c.view+":"+M:c.view);const u={view:c.view,model:c.model},_=jl(n0(u,"start")),C=jl(n0(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,C,{priority:c.converterPriority||"normal"});const E=Pt.low,N=Pt.highest,G=Pt.get(c.converterPriority)/N;var W;M.on("element",(W=u,(dt,Zt,ue)=>{const xe=`data-${W.view}`;function Ee(ln,Mn){for(const di of Mn){const Ri=W.model(di,ue),Jo=ue.writer.createElement("$marker",{"data-name":Ri});ue.writer.insert(Jo,ln),Zt.modelCursor=Zt.modelCursor.isEqual(ln)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(ln,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(ln,1)[0]}}(ue.consumable.test(Zt.viewItem,{attributes:xe+"-end-after"})||ue.consumable.test(Zt.viewItem,{attributes:xe+"-start-after"})||ue.consumable.test(Zt.viewItem,{attributes:xe+"-end-before"})||ue.consumable.test(Zt.viewItem,{attributes:xe+"-start-before"}))&&(Zt.modelRange||Object.assign(Zt,ue.convertChildren(Zt.viewItem,Zt.modelCursor)),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-end-after"})&&Ee(Zt.modelRange.end,Zt.viewItem.getAttribute(xe+"-end-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-start-after"})&&Ee(Zt.modelRange.end,Zt.viewItem.getAttribute(xe+"-start-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-end-before"})&&Ee(Zt.modelRange.start,Zt.viewItem.getAttribute(xe+"-end-before").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-start-before"})&&Ee(Zt.modelRange.start,Zt.viewItem.getAttribute(xe+"-start-before").split(",")))}),{priority:E+G})}}(r))}}function e0(m){const r=jl(m=y1(m)),c=N2(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function N2(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function jl(m){const r=new ms(m.view);return(c,u,_)=>{const C=r.match(u.viewItem);if(!C)return;const M=C.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(W=_,(N=m.model)instanceof Function?N(u.viewItem,W):W.writer.createElement(N));var N,W;E&&_.safeInsert(E,u.modelCursor)&&(_.consumable.consume(u.viewItem,M),_.convertChildren(u.viewItem,E),_.updateConversionResult(E,u))}}function lu(m,r=null){m.model={key:"object"!=typeof m.model?m.model:m.model.key,value:"object"!=typeof m.model||void 0===m.model.value?null===r||(C=>C.getAttribute(r)):m.model.value}}function j1(m,r){const c=new ms(m.view);return(u,_,C)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(W,dt){const Zt="function"==typeof W?W(dt):W;return!("object"==typeof Zt&&!N2(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!C.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,N="function"==typeof m.model.value?m.model.value(_.viewItem,C):m.model.value;null!==N&&(_.modelRange||Object.assign(_,C.convertChildren(_.viewItem,_.modelCursor)),function(W,dt,Zt,ue){let xe=!1;for(const Ee of Array.from(W.getItems({shallow:Zt})))ue.schema.checkAttribute(Ee,dt.key)&&(xe=!0,Ee.hasAttribute(dt.key)||ue.writer.setAttribute(dt.key,dt.value,Ee));return xe}(_.modelRange,{key:E,value:N},r,C)&&(C.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),C.consumable.consume(_.viewItem,M.match)))}}function n0(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),C=m.model(_,u);return u.writer.createElement("$marker",{"data-name":C})}}}function Va(m,r){return m.isCollapsed?function(c,u){const _=c.start,C=u.getNearestSelectionRange(_);if(!C){const E=_.getAncestors().reverse().find(N=>u.isObject(N));return E?Oi._createOn(E):null}if(!C.isCollapsed)return C;const M=C.start;return _.isEqual(M)?null:new Oi(M)}(m,r):function(c,u){const{start:_,end:C}=c,M=u.checkChild(_,"$text"),E=u.checkChild(C,"$text"),N=u.getLimitElement(_),G=u.getLimitElement(C);if(N===G){if(M&&E)return null;if(function(Zt,ue,xe){const Ee=Zt.nodeAfter&&!xe.isLimit(Zt.nodeAfter)||xe.checkChild(Zt,"$text"),ln=ue.nodeBefore&&!xe.isLimit(ue.nodeBefore)||xe.checkChild(ue,"$text");return Ee||ln}(_,C,u)){const Zt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),ue=C.nodeBefore&&u.isSelectable(C.nodeBefore)?null:u.getNearestSelectionRange(C,"backward");return new Oi(Zt?Zt.start:_,ue?ue.end:C)}}const W=N&&!N.is("rootElement"),dt=G&&!G.is("rootElement");if(W||dt){const Zt=_.nodeAfter&&C.nodeBefore&&_.nodeAfter.parent===C.nodeBefore.parent,ue=W&&(!Zt||!wp(_.nodeAfter,u)),xe=dt&&(!Zt||!wp(C.nodeBefore,u));let Ee=_,ln=C;return ue&&(Ee=$i._createBefore(Bm(N,u))),xe&&(ln=$i._createAfter(Bm(G,u))),new Oi(Ee,ln)}return null}(m,r)}function Bm(m,r){let c=m,u=c;for(;r.isLimit(u)&&u.parent;)c=u,u=u.parent;return c}function wp(m,r){return m&&r.isSelectable(m)}class K3 extends(we()){constructor(r,c){super(),this.model=r,this.view=new Y3(c),this.mapper=new B3,this.downcastDispatcher=new G3({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,C=this.model.markers;var M,E,N,G,W;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(u,"change",()=>{this.view.change(G=>{this.downcastDispatcher.convertChanges(u.differ,C,G),this.downcastDispatcher.convertSelection(_,C,G)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(G=this.model,W=this.mapper,(dt,Zt)=>{const ue=Zt.newSelection,xe=[];for(const ln of ue.getRanges())xe.push(W.toModelRange(ln));const Ee=G.createSelection(xe,{backward:ue.isBackward});Ee.isEqual(G.document.selection)||G.change(ln=>{ln.setSelection(Ee)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,N=this.view,(G,W)=>{if(!N.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(W.item,G.name))return;const Zt=dt.writer,ue=dt.mapper.toViewPosition(W.range.start),xe=Zt.createText(W.item.data);Zt.insert(ue,xe)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(G,W,dt)=>{dt.convertAttributes(W.item),W.reconversion||!W.item.is("element")||W.item.isEmpty||dt.convertChildren(W.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(G,W,dt)=>{const Zt=dt.mapper.toViewPosition(W.position),ue=W.position.getShiftedBy(W.length),xe=dt.mapper.toViewPosition(ue,{isPhantom:!0}),Ee=dt.writer.createRange(Zt,xe),ln=dt.writer.remove(Ee.getTrimmed());for(const Mn of dt.writer.createRangeIn(ln).getItems())dt.mapper.unbindViewElement(Mn,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(G,W,dt)=>{const Zt=dt.writer,ue=Zt.document.selection;for(const xe of ue.getRanges())xe.isCollapsed&&xe.end.parent.isAttached()&&dt.writer.mergeAttributes(xe.start);Zt.setSelection(null)}),this.downcastDispatcher.on("selection",(G,W,dt)=>{const Zt=W.selection;if(Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=[];for(const xe of Zt.getRanges())ue.push(dt.mapper.toViewRange(xe));dt.writer.setSelection(ue,{backward:Zt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(G,W,dt)=>{const Zt=W.selection;if(!Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=dt.writer,xe=Zt.getFirstPosition(),Ee=dt.mapper.toViewPosition(xe),ln=ue.breakAttributes(Ee);ue.setSelection(ln)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(G=>{if("$graveyard"==G.rootName)return null;const W=new Im(this.view.document,G.name);return W.rootName=G.rootName,this.mapper.bindElements(G,W),W})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(r){const c="string"==typeof r?r:r.name,u=this.model.markers.get(c);if(!u)throw new it("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:c});this.model.change(()=>{this.model.markers._refresh(u)})}reconvertItem(r){this.model.change(()=>{this.model.document.differ._refreshItem(r)})}}class B_{constructor(){this._consumables=new Map}add(r,c){let u;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?u=this._consumables.get(r):(u=new nh(r),this._consumables.set(r,u)),u.add(c))}test(r,c){const u=this._consumables.get(r);return void 0===u?null:r.is("$text")||r.is("documentFragment")?u:u.test(c)}consume(r,c){return!!this.test(r,c)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(c),!0)}revert(r,c){const u=this._consumables.get(r);void 0!==u&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):u.revert(c))}static consumablesFromElement(r){const c={element:r,name:!0,attributes:[],classes:[],styles:[]},u=r.getAttributeKeys();for(const M of u)"style"!=M&&"class"!=M&&c.attributes.push(M);const _=r.getClassNames();for(const M of _)c.classes.push(M);const C=r.getStyleNames();for(const M of C)c.styles.push(M);return c}static createFrom(r,c){if(c||(c=new B_),r.is("$text"))return c.add(r),c;r.is("element")&&c.add(r,B_.consumablesFromElement(r)),r.is("documentFragment")&&c.add(r);for(const u of r.getChildren())c=B_.createFrom(u,c);return c}}const q2=["attributes","classes","styles"];class nh{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const c of q2)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of q2)if(c in r){const u=this._test(c,r[c]);if(!0!==u)return u}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const c of q2)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of q2)c in r&&this._revert(c,r[c])}_add(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u){if("attributes"===r&&("class"===C||"style"===C))throw new it("viewconsumable-invalid-attribute",this);if(_.set(C,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!0)}}_test(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){const M=_.get(C);if(void 0===M)return null;if(!M)return!1}else{const M="class"==C?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){if(_.set(C,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!1)}else{const M="class"==C?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C)!1===_.get(C)&&_.set(C,!0);else{const M="class"==C?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class R6 extends(we()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,c)=>{c[0]=new Up(c[0])},{priority:"highest"}),this.on("checkChild",(r,c)=>{c[0]=new Up(c[0]),c[1]=this.getDefinition(c[1])},{priority:"highest"})}register(r,c){if(this._sourceDefinitions[r])throw new it("schema-cannot-register-item-twice",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},c)],this._clearCache()}extend(r,c){if(!this._sourceDefinitions[r])throw new it("schema-cannot-extend-missing-item",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},c)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let c;return c="string"==typeof r?r:"is"in r&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[c]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const c=this.getDefinition(r);return!(!c||!c.isBlock)}isLimit(r){const c=this.getDefinition(r);return!(!c||!c.isLimit&&!c.isObject)}isObject(r){const c=this.getDefinition(r);return!!c&&!!(c.isObject||c.isLimit&&c.isSelectable&&c.isContent)}isInline(r){const c=this.getDefinition(r);return!(!c||!c.isInline)}isSelectable(r){const c=this.getDefinition(r);return!(!c||!c.isSelectable&&!c.isObject)}isContent(r){const c=this.getDefinition(r);return!(!c||!c.isContent&&!c.isObject)}checkChild(r,c){return!!c&&this._checkContextMatch(c,r)}checkAttribute(r,c){const u=this.getDefinition(r.last);return!!u&&u.allowAttributes.includes(c)}checkMerge(r,c){if(r instanceof $i){const u=r.nodeBefore,_=r.nodeAfter;if(!(u instanceof _s))throw new it("schema-check-merge-no-element-before",this);if(!(_ instanceof _s))throw new it("schema-check-merge-no-element-after",this);return this.checkMerge(u,_)}for(const u of c.getChildren())if(!this.checkChild(r,u))return!1;return!0}addChildCheck(r){this.on("checkChild",(c,[u,_])=>{if(!_)return;const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}setAttributeProperties(r,c){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),c)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let c;for(c=r instanceof $i?r.parent:(r instanceof Oi?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const C=_.getCommonAncestor();return u?u.getCommonAncestor(C,{includeSelf:!0}):C},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new ss("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const C of _)if(this.checkAttribute(C.item,c))return!0}return!1}*getValidRanges(r,c){r=function*(u){for(const _ of u)yield*_.getMinimalFlatRanges()}(r);for(const u of r)yield*this._getValidRangesForRange(u,c)}getNearestSelectionRange(r,c="both"){if("$graveyard"==r.root.rootName)return null;if(this.checkChild(r,"$text"))return new Oi(r);let u,_;const C=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Jd({boundaries:Oi._createIn(C),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Jd({boundaries:Oi._createIn(C),startPosition:r}));for(const M of function*(E,N){let G=!1;for(;!G;){if(G=!0,E){const W=E.next();W.done||(G=!1,yield{walker:E,value:W.value})}if(N){const W=N.next();W.done||(G=!1,yield{walker:N,value:W.value})}}}(u,_)){const N=M.value;if(N.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(N.item))return Oi._createOn(N.item);if(this.checkChild(N.nextPosition,"$text"))return new Oi(N.nextPosition)}return null}findAllowedParent(r,c){let u=r.parent;for(;u;){if(this.checkChild(u,c))return u;if(this.isLimit(u))return null;u=u.parent}return null}setAllowedAttributes(r,c,u){const _=u.model;for(const[C,M]of Object.entries(c))_.schema.checkAttribute(r,C)&&u.setAttribute(C,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))Mp(this,u,c);else{const _=Oi._createIn(u).getPositions();for(const C of _)Mp(this,C.nodeBefore||C.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[C,M]of r.getAttributes()){const E=this.getAttributeProperties(C);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[C]=M))}return _}createContext(r){return new Up(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},c=this._sourceDefinitions,u=Object.keys(c);for(const _ of u)r[_]=a0(c[_],_);for(const _ of u)H6(r,_);for(const _ of u)z6(r,_);for(const _ of u)X3(r,_);for(const _ of u)Wu(r,_),Vm(r,_);for(const _ of u)Y6(r,_),Zp(r,_),Qa(r,_);this._compiledDefinitions=r}_checkContextMatch(r,c,u=c.length-1){const _=c.getItem(u);if(r.allowIn.includes(_.name)){if(0==u)return!0;{const C=this.getDefinition(_);return this._checkContextMatch(C,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const C of r.getItems({shallow:!0}))C.is("element")&&(yield*this._getValidRangesForRange(Oi._createIn(C),c)),this.checkAttribute(C,c)||(u.isEqual(_)||(yield new Oi(u,_)),u=$i._createAfter(C)),_=$i._createAfter(C);u.isEqual(_)||(yield new Oi(u,_))}}class Up{constructor(r){if(r instanceof Up)return r;let c;c="string"==typeof r?[r]:Array.isArray(r)?r:r.getAncestors({includeSelf:!0}),this._items=c.map(Xc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const c=new Up([r]);return c._items=[...this._items,...c._items],c}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function a0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const C of u){const M=Object.keys(C).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!C[E]}}(m,c),Gm(m,c,"allowIn"),Gm(m,c,"allowContentOf"),Gm(m,c,"allowWhere"),Gm(m,c,"allowAttributes"),Gm(m,c,"allowAttributesOf"),Gm(m,c,"allowChildren"),Gm(m,c,"inheritTypesFrom"),function(u,_){for(const C of u){const M=C.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function H6(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function z6(m,r){for(const c of m[r].allowContentOf)m[c]&&Pu(m,c).forEach(u=>{u.allowIn.push(r)});delete m[r].allowContentOf}function X3(m,r){for(const c of m[r].allowWhere){const u=m[c];u&&m[r].allowIn.push(...u.allowIn)}delete m[r].allowWhere}function Wu(m,r){for(const c of m[r].allowAttributesOf){const u=m[c];u&&m[r].allowAttributes.push(...u.allowAttributes)}delete m[r].allowAttributesOf}function Vm(m,r){const c=m[r];for(const u of c.inheritTypesFrom){const _=m[u];if(_){const C=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of C)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function Y6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function Zp(m,r){const c=m[r];for(const u of c.allowIn)m[u].allowChildren.push(r)}function Qa(m,r){const c=m[r];c.allowAttributes=Array.from(new Set(c.allowAttributes))}function Gm(m,r,c){for(const u of m){const _=u[c];"string"==typeof _?r[c].push(_):Array.isArray(_)&&r[c].push(..._)}}function Pu(m,r){const c=m[r];return(u=m,Object.keys(u).map(_=>u[_])).filter(_=>_.allowIn.includes(c.name));var u}function Xc(m){return"string"==typeof m||m.is("documentFragment")?{name:"string"==typeof m?m:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:m.is("element")?m.name:"$text",*getAttributeKeys(){yield*m.getAttributeKeys()},getAttribute:r=>m.getAttribute(r)}}function Mp(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var kp=Object.defineProperty,V_=Object.defineProperties,B6=Object.getOwnPropertyDescriptors,r0=Object.getOwnPropertySymbols,jm=Object.prototype.hasOwnProperty,ih=Object.prototype.propertyIsEnumerable,pm=(m,r,c)=>r in m?kp(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class oh extends(Le()){constructor(r){var c;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(c=((u,_)=>{for(var C in _||(_={}))jm.call(_,C)&&pm(u,C,_[C]);if(r0)for(var C of r0(_))ih.call(_,C)&&pm(u,C,_[C]);return u})({},r),V_(c,B6({consumable:null,writer:null,store:null,convertItem:(u,_)=>this._convertItem(u,_),convertChildren:(u,_)=>this._convertChildren(u,_),safeInsert:(u,_)=>this._safeInsert(u,_),updateConversionResult:(u,_)=>this._updateConversionResult(u,_),splitToAllowedParent:(u,_)=>this._splitToAllowedParent(u,_),getSplitParts:u=>this._getSplitParts(u),keepEmptyElement:u=>this._keepEmptyElement(u)})))}convert(r,c,u=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(M,E){let N;for(const G of new Up(M)){const W={};for(const Zt of G.getAttributeKeys())W[Zt]=G.getAttribute(Zt);const dt=E.createElement(G.name,W);N&&E.insert(dt,N),N=$i._createAt(dt,0)}return N}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=B_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),C=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,C);C.markers=function(M,E){const N=new Set,G=new Map,W=Oi._createIn(M).getItems();for(const dt of W)dt.is("element","$marker")&&N.add(dt);for(const dt of N){const Zt=dt.getAttribute("data-name"),ue=E.createPositionBefore(dt);G.has(Zt)?G.get(Zt).end=ue.clone():G.set(Zt,new Oi(ue.clone())),E.remove(dt)}return G}(C,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,C}_convertItem(r,c){const u={viewItem:r,modelCursor:c,modelRange:null};if(r.is("element")?this.fire(`element:${r.name}`,u,this.conversionApi):r.is("$text")?this.fire("text",u,this.conversionApi):this.fire("documentFragment",u,this.conversionApi),u.modelRange&&!(u.modelRange instanceof Oi))throw new it("view-conversion-dispatcher-incorrect-result",this);return{modelRange:u.modelRange,modelCursor:u.modelCursor}}_convertChildren(r,c){let u=c.is("position")?c:$i._createAt(c,0);const _=new Oi(u);for(const C of Array.from(r.getChildren())){const M=this._convertItem(C,u);M.modelRange instanceof Oi&&(_.end=M.modelRange.end,u=M.modelCursor)}return{modelRange:_,modelCursor:u}}_safeInsert(r,c){const u=this._splitToAllowedParent(r,c);return!!u&&(this.conversionApi.writer.insert(r,u.position),!0)}_updateConversionResult(r,c){const u=this._getSplitParts(r),_=this.conversionApi.writer;c.modelRange||(c.modelRange=_.createRange(_.createPositionBefore(r),_.createPositionAfter(u[u.length-1])));const C=this._cursorParents.get(r);c.modelCursor=C?_.createPositionAt(C,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let C=u.findAllowedParent(c,r);if(C){if(C===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(C)&&(C=null)}if(!C)return th(c,r,u)?{position:Kg(c,_)}:null;const M=this.conversionApi.writer.split(c,C),E=[];for(const G of M.range.getWalker())if("elementEnd"==G.type)E.push(G.item);else{const W=E.pop();this._registerSplitPair(W,G.item)}const N=M.range.end.parent;return this._cursorParents.set(r,N),{position:M.position,cursorParent:N}}_registerSplitPair(r,c){this._splitParts.has(r)||this._splitParts.set(r,[r]);const u=this._splitParts.get(r);this._splitParts.set(c,u),u.push(c)}_getSplitParts(r){let c;return c=this._splitParts.has(r)?this._splitParts.get(r):[r],c}_keepEmptyElement(r){this._emptyElementsToKeep.add(r)}_removeEmptyElements(){let r=!1;for(const c of this._splitParts.keys())c.isEmpty&&!this._emptyElementsToKeep.has(c)&&(this.conversionApi.writer.remove(c),this._splitParts.delete(c),r=!0);r&&this._removeEmptyElements()}}class J1{getHtml(r){const c=document.implementation.createHTMLDocument("").createElement("div");return c.appendChild(r),c.innerHTML}}class R2{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new D_(r,{renderingMode:"data"}),this.htmlWriter=new J1}toData(r){const c=this.domConverter.viewToDom(r);return this.htmlWriter.getHtml(c)}toView(r){const c=this._toDom(r);return this.domConverter.domToView(c,{skipComments:this.skipComments})}registerRawContentMatcher(r){this.domConverter.registerRawContentMatcher(r)}useFillerType(r){this.domConverter.blockFillerMode="marked"==r?"markedNbsp":"nbsp"}_toDom(r){r.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(r=`${r}`);const c=this.domParser.parseFromString(r,"text/html"),u=c.createDocumentFragment(),_=c.body.childNodes;for(;_.length>0;)u.appendChild(_[0]);return u}}class G_ extends(Le()){constructor(r,c){super(),this.model=r,this.mapper=new B3,this.downcastDispatcher=new G3({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewPosition(_.range.start),N=M.createText(_.item.data);M.insert(E,N)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,C)=>{C.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||C.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new oh({schema:r.schema}),this.viewDocument=new em(c),this.stylesProcessor=c,this.htmlProcessor=new R2(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Ls(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:C,consumable:M,writer:E})=>{let N=_.modelCursor;if(!M.test(_.viewItem))return;if(!C.checkChild(N,"$text")){if(!th(N,"$text",C)||0==_.viewItem.data.trim().length)return;const W=N.nodeBefore;N=Kg(N,E),W&&W.is("element","$marker")&&(E.move(E.createRangeOn(W),N),N=E.createPositionAfter(W))}M.consume(_.viewItem);const G=E.createText(_.viewItem.data);E.insert(G,N),_.modelRange=E.createRange(N,N.getShiftedBy(G.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),we().prototype.decorate.call(this,"init"),we().prototype.decorate.call(this,"set"),we().prototype.decorate.call(this,"get"),we().prototype.decorate.call(this,"toView"),we().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},F2)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new it("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Tt("datacontroller-get-detached-root",this),"empty"!==u||this.model.hasContent(_,{ignoreWhitespaces:!0})?this.stringify(_,r):""}stringify(r,c={}){const u=this.toView(r,c);return this.processor.toData(u)}toView(r,c={}){const u=this.viewDocument,_=this._viewWriter;this.mapper.clearBindings();const C=Oi._createIn(r),M=new g1(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(N){const G=[],W=N.root.document;if(!W)return new Map;const dt=Oi._createIn(N);for(const Zt of W.model.markers){const ue=Zt.getRange(),xe=ue.isCollapsed,Ee=ue.start.isEqual(dt.start)||ue.end.isEqual(dt.end);if(xe&&Ee)G.push([Zt.name,ue]);else{const ln=dt.getIntersection(ue);ln&&G.push([Zt.name,ln])}}return G.sort(([Zt,ue],[xe,Ee])=>{if("after"!==ue.end.compareWith(Ee.start))return 1;if("before"!==ue.start.compareWith(Ee.end))return-1;switch(ue.start.compareWith(Ee.start)){case"before":return 1;case"after":return-1;default:switch(ue.end.compareWith(Ee.end)){case"before":return 1;case"after":return-1;default:return xe.localeCompare(Zt)}}}),new Map(G)}(r);return this.downcastDispatcher.convert(C,E,_,c),M}init(r){if(this.model.document.version)throw new it("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new it("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const C=this.model.document.getRoot(_);u.insert(this.parse(c[_],C),C,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new it("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const C of Object.keys(u)){const M=this.model.document.getRoot(C);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[C],M),M,0)}})}parse(r,c="$root"){const u=this.processor.toView(r);return this.toModel(u,c)}toModel(r,c="$root"){return this.model.change(u=>this.upcastDispatcher.convert(r,u,c))}addStyleProcessorRules(r){r(this.stylesProcessor)}registerRawContentMatcher(r){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(r),this.htmlProcessor.registerRawContentMatcher(r)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const c of r)if(!this.model.document.getRoot(c))return!1;return!0}}class ac{constructor(r,c){this._helpers=new Map,this._downcast=Ds(r),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ds(c),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,c){const u=this._downcast.includes(c);if(!this._upcast.includes(c)&&!u)throw new it("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new it("conversion-for-unknown-group",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:c,view:u}of rc(r))this.for("upcast").elementToElement({model:c,view:u,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:c,view:u}of rc(r))this.for("upcast").elementToAttribute({view:u,model:c,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:c,view:u}of rc(r))this.for("upcast").attributeToAttribute({view:u,model:c})}_createConversionHelpers({name:r,dispatchers:c,isDowncast:u}){if(this._helpers.has(r))throw new it("conversion-group-exists",this);const _=u?new N6(c):new q6(c);this._helpers.set(r,_)}}function*rc(m){if(m.model.values)for(const r of m.model.values){const c={key:m.model.key,value:r},u=m.view[r],_=m.upcastAlso?m.upcastAlso[r]:void 0;yield*s0(c,u,_)}else yield*s0(m.model,m.view,m.upcastAlso)}function*s0(m,r,c){if(yield{model:m,view:r},c)for(const u of Ds(c))yield{model:m,view:u}}class $u{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r,c){return new this(r.baseVersion)}}function H2(m,r){const c=j_(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;w1(m);const C=m.index;return _._insertChild(C,c),Dp(_,C+c.length),Dp(_,C),new Oi(m,m.getShiftedBy(u))}function ah(m){if(!m.isFlat)throw new it("operation-utils-remove-range-not-flat",this);const r=m.start.parent;w1(m.start),w1(m.end);const c=r._removeChildren(m.start.index,m.end.index-m.start.index);return Dp(r,m.start.index),c}function Jm(m,r){if(!m.isFlat)throw new it("operation-utils-move-range-not-flat",this);const c=ah(m);return H2(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function j_(m){const r=[];!function c(u){if("string"==typeof u)r.push(new ss(u));else if(u instanceof Gl)r.push(new ss(u.data,u.getAttributes()));else if(u instanceof Du)r.push(u);else if(nt(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new it("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[C]u._clone(!0))),c=new Jl(this.position,r,this.baseVersion);return c.shouldReceiveAttributes=this.shouldReceiveAttributes,c}getReversed(){const c=new $i(this.position.root.document.graveyard,[0]);return new cr(this.position,this.nodes.maxOffset,c,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetc._clone(!0))),H2(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,c){const u=[];for(const C of r.nodes)u.push(C.name?_s.fromJSON(C):ss.fromJSON(C));const _=new Jl($i.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class _r extends $u{constructor(r,c,u,_,C){super(C),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=c,this.insertionPosition=u,this.graveyardPosition=_?_.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new $i(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Oi(this.splitPosition,r)}get affectedSelectable(){const r=[Oi._createFromPositionAndShift(this.splitPosition,0),Oi._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Oi._createFromPositionAndShift(this.graveyardPosition,0)),r}clone(){return new _r(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const c=new $i(this.splitPosition.root.document.graveyard,[0]);return new Os(this.moveTargetPosition,this.howMany,this.splitPosition,c,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{if(m.key===r.key&&m.range.start.hasSameParentAs(r.range.start)){const u=m.range.getDifference(r.range).map(C=>new Yr(C,m.key,m.oldValue,m.newValue,0)),_=m.range.getIntersection(r.range);return _&&c.aIsStrong&&u.push(new Yr(_,r.key,r.newValue,m.newValue,0)),0==u.length?[new zs(0)]:u}return[m]}),Pr(Yr,Jl,(m,r)=>{if(m.range.start.hasSameParentAs(r.position)&&m.range.containsPosition(r.position)){const c=m.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(u=>new Yr(u,m.key,m.oldValue,m.newValue,m.baseVersion));if(r.shouldReceiveAttributes){const u=Z1(r,m.key,m.oldValue);u&&c.unshift(u)}return c}return m.range=m.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[m]}),Pr(Yr,Os,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Oi._createFromPositionAndShift(r.graveyardPosition,1));const u=m.range._getTransformedByMergeOperation(r);return u.isCollapsed||c.push(u),c.map(_=>new Yr(_,m.key,m.oldValue,m.newValue,m.baseVersion))}),Pr(Yr,cr,(m,r)=>function(u,_){const C=Oi._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];C.containsRange(u,!0)?M=u:u.start.hasSameParentAs(C.start)?(E=u.getDifference(C),M=u.getIntersection(C)):E=[u];const N=[];for(let G of E){G=G._getTransformedByDeletion(_.sourcePosition,_.howMany);const W=_.getMovedRangeStart(),dt=G.start.hasSameParentAs(W),Zt=G._getTransformedByInsertion(W,_.howMany,dt);N.push(...Zt)}return M&&N.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),N}(m.range,r).map(u=>new Yr(u,m.key,m.oldValue,m.newValue,m.baseVersion))),Pr(Yr,_r,(m,r)=>{if(m.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.range.end.offset++,[m];if(m.range.start.hasSameParentAs(r.splitPosition)&&m.range.containsPosition(r.splitPosition)){const c=m.clone();return c.range=new Oi(r.moveTargetPosition.clone(),m.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),m.range.end=r.splitPosition.clone(),m.range.end.stickiness="toPrevious",[m,c]}return m.range=m.range._getTransformedBySplitOperation(r),[m]}),Pr(Jl,Yr,(m,r)=>{const c=[m];if(m.shouldReceiveAttributes&&m.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(m.position)){const u=Z1(m,r.key,r.newValue);u&&c.push(u)}return c}),Pr(Jl,Jl,(m,r,c)=>(m.position.isEqual(r.position)&&c.aIsStrong||(m.position=m.position._getTransformedByInsertOperation(r)),[m])),Pr(Jl,cr,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Pr(Jl,_r,(m,r)=>(m.position=m.position._getTransformedBySplitOperation(r),[m])),Pr(Jl,Os,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Pr(zr,Jl,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Pr(zr,zr,(m,r,c)=>{if(m.name==r.name){if(!c.aIsStrong)return[new zs(0)];m.oldRange=r.newRange?r.newRange.clone():null}return[m]}),Pr(zr,Os,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Pr(zr,cr,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Oi._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Oi._createFromRanges(m.newRange._getTransformedByMoveOperation(r));if("left"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.start))return m.newRange.end=u.end,m.newRange.start.path=c.abRelation.path,[m];if("right"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.end))return m.newRange.start=u.start,m.newRange.end.path=c.abRelation.path,[m]}m.newRange=Oi._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Pr(zr,_r,(m,r,c)=>{if(m.oldRange&&(m.oldRange=m.oldRange._getTransformedBySplitOperation(r)),m.newRange){if(c.abRelation){const u=m.newRange._getTransformedBySplitOperation(r);return m.newRange.start.isEqual(r.splitPosition)&&c.abRelation.wasStartBeforeMergedElement?m.newRange.start=$i._createAt(r.insertionPosition):m.newRange.start.isEqual(r.splitPosition)&&!c.abRelation.wasInLeftElement&&(m.newRange.start=$i._createAt(r.moveTargetPosition)),m.newRange.end=m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasInRightElement?$i._createAt(r.moveTargetPosition):m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasEndBeforeMergedElement?$i._createAt(r.insertionPosition):u.end,[m]}m.newRange=m.newRange._getTransformedBySplitOperation(r)}return[m]}),Pr(Os,Jl,(m,r)=>(m.sourcePosition.hasSameParentAs(r.position)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByInsertOperation(r),m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r),[m])),Pr(Os,Os,(m,r,c)=>{if(m.sourcePosition.isEqual(r.sourcePosition)&&m.targetPosition.isEqual(r.targetPosition)){if(c.bWasUndone){const u=r.graveyardPosition.path.slice();return u.push(0),m.sourcePosition=new $i(r.graveyardPosition.root,u),m.howMany=0,[m]}return[new zs(0)]}if(m.sourcePosition.isEqual(r.sourcePosition)&&!m.targetPosition.isEqual(r.targetPosition)&&!c.bWasUndone&&"splitAtSource"!=c.abRelation){const u="$graveyard"==m.targetPosition.root.rootName,_="$graveyard"==r.targetPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new cr(C,m.howMany,M,0)]}return[new zs(0)]}return m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMergeOperation(r),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),m.graveyardPosition.isEqual(r.graveyardPosition)&&c.aIsStrong||(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Pr(Os,cr,(m,r,c)=>{const u=Oi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!c.bWasUndone&&!c.forceWeakRemove&&m.deletionPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.sourcePosition)?[new zs(0)]:(m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition.hasSameParentAs(r.sourcePosition)&&(m.howMany-=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMoveOperation(r),m.targetPosition=m.targetPosition._getTransformedByMoveOperation(r),m.graveyardPosition.isEqual(r.targetPosition)||(m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)),[m])}),Pr(Os,_r,(m,r,c)=>{if(r.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),m.deletionPosition.isEqual(r.graveyardPosition)&&(m.howMany=r.howMany)),m.targetPosition.isEqual(r.splitPosition)){const u=0!=r.howMany,_=r.graveyardPosition&&m.deletionPosition.isEqual(r.graveyardPosition);if(u||_||"mergeTargetNotMoved"==c.abRelation)return m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),[m]}if(m.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==c.abRelation)return m.howMany=0,m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m];if("mergeSameElement"==c.abRelation||m.sourcePosition.offset>0)return m.sourcePosition=r.moveTargetPosition.clone(),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}return m.sourcePosition.hasSameParentAs(r.splitPosition)&&(m.howMany=r.splitPosition.offset),m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}),Pr(cr,Jl,(m,r)=>{const c=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByInsertOperation(r,!1)[0];return m.sourcePosition=c.start,m.howMany=c.end.offset-c.start.offset,m.targetPosition.isEqual(r.position)||(m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r)),[m]}),Pr(cr,cr,(m,r,c)=>{const u=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Oi._createFromPositionAndShift(r.sourcePosition,r.howMany);let C,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),C=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),e4(m,r)&&e4(r,m))return[r.getReversed()];if(u.containsPosition(r.targetPosition)&&u.containsRange(_,!0))return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),W1([u],C);if(_.containsPosition(m.targetPosition)&&_.containsRange(u,!0))return u.start=u.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),u.end=u.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),W1([u],C);const N=ct(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==N||"extension"==N)return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),W1([u],C);"remove"!=m.type||"remove"==r.type||c.aWasUndone||c.forceWeakRemove?"remove"==m.type||"remove"!=r.type||c.bWasUndone||c.forceWeakRemove||(M=!1):M=!0;const G=[],W=u.getDifference(_);for(const Zt of W){Zt.start=Zt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Zt.end=Zt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const ue="same"==ct(Zt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),xe=Zt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,ue);G.push(...xe)}const dt=u.getIntersection(_);return null!==dt&&M&&(dt.start=dt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),dt.end=dt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===G.length?G.push(dt):1==G.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?G.unshift(dt):G.push(dt):G.splice(1,0,dt)),0===G.length?[new zs(m.baseVersion)]:W1(G,C)}),Pr(cr,_r,(m,r,c)=>{let u=m.targetPosition.clone();m.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=c.abRelation||(u=m.targetPosition._getTransformedBySplitOperation(r));const _=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany);if(_.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.howMany++,m.targetPosition=u,[m];if(_.start.hasSameParentAs(r.splitPosition)&&_.containsPosition(r.splitPosition)){let M=new Oi(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),W1([new Oi(_.start,r.splitPosition),M],u)}m.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==c.abRelation&&(u=r.moveTargetPosition),m.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==c.abRelation&&(u=m.targetPosition);const C=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&C.push(Oi._createFromPositionAndShift(r.insertionPosition,1))}return W1(C,u)}),Pr(cr,Os,(m,r,c)=>{const u=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany);if(r.deletionPosition.hasSameParentAs(m.sourcePosition)&&u.containsPosition(r.sourcePosition))if("remove"!=m.type||c.forceWeakRemove){if(1==m.howMany)return c.bWasUndone?(m.sourcePosition=r.graveyardPosition.clone(),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]):[new zs(0)]}else if(!c.aWasUndone){const C=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(C.push(new cr(m.sourcePosition,m.howMany-1,m.targetPosition,0)),M=M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1),E=E._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1));const N=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),G=new cr(M,1,N,0),W=G.getMovedRangeStart().path.slice();W.push(0);const dt=new $i(G.targetPosition.root,W);E=E._getTransformedByMove(M,N,1);const Zt=new cr(E,r.howMany,dt,0);return C.push(G),C.push(Zt),C}const _=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByMergeOperation(r);return m.sourcePosition=_.start,m.howMany=_.end.offset-_.start.offset,m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]}),Pr(Su,Jl,(m,r)=>(m.position=m.position._getTransformedByInsertOperation(r),[m])),Pr(Su,Os,(m,r)=>m.position.isEqual(r.deletionPosition)?(m.position=r.graveyardPosition.clone(),m.position.stickiness="toNext",[m]):(m.position=m.position._getTransformedByMergeOperation(r),[m])),Pr(Su,cr,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Pr(Su,Su,(m,r,c)=>{if(m.position.isEqual(r.position)){if(!c.aIsStrong)return[new zs(0)];m.oldName=r.newName}return[m]}),Pr(Su,_r,(m,r)=>{if("same"==ct(m.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const c=new Su(m.position.getShiftedBy(1),m.oldName,m.newName,0);return[m,c]}return m.position=m.position._getTransformedBySplitOperation(r),[m]}),Pr(U1,U1,(m,r,c)=>{if(m.root===r.root&&m.key===r.key){if(!c.aIsStrong||m.newValue===r.newValue)return[new zs(0)];m.oldValue=r.newValue}return[m]}),Pr(tl,tl,(m,r)=>m.rootName===r.rootName&&m.isAdd===r.isAdd?[new zs(0)]:[m]),Pr(_r,Jl,(m,r)=>(m.splitPosition.hasSameParentAs(r.position)&&m.splitPosition.offset{if(!m.graveyardPosition&&!c.bWasUndone&&m.splitPosition.hasSameParentAs(r.sourcePosition)){const u=r.graveyardPosition.path.slice();u.push(0);const _=new $i(r.graveyardPosition.root,u),C=_r.getInsertionPosition(new $i(r.graveyardPosition.root,u)),M=new _r(_,0,C,null,0);return m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=_r.getInsertionPosition(m.splitPosition),m.graveyardPosition=M.insertionPosition.clone(),m.graveyardPosition.stickiness="toNext",[M,m]}return m.splitPosition.hasSameParentAs(r.deletionPosition)&&!m.splitPosition.isAfter(r.deletionPosition)&&m.howMany--,m.splitPosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=_r.getInsertionPosition(m.splitPosition),m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Pr(_r,cr,(m,r,c)=>{const u=Oi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const C=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&C){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),N=E.path.slice();N.push(0);const G=new $i(E.root,N);return[new cr(M,m.howMany,G,0)]}m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)}const _=m.splitPosition.isEqual(r.targetPosition);if(_&&("insertAtSource"==c.baRelation||"splitBefore"==c.abRelation))return m.howMany+=r.howMany,m.splitPosition=m.splitPosition._getTransformedByDeletion(r.sourcePosition,r.howMany),m.insertionPosition=_r.getInsertionPosition(m.splitPosition),[m];if(_&&c.abRelation&&c.abRelation.howMany){const{howMany:C,offset:M}=c.abRelation;return m.howMany+=C,m.splitPosition=m.splitPosition.getShiftedBy(M),[m]}return m.splitPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.splitPosition)?(m.howMany-=r.howMany-(m.splitPosition.offset-r.sourcePosition.offset),m.splitPosition.hasSameParentAs(r.targetPosition)&&m.splitPosition.offset{if(m.splitPosition.isEqual(r.splitPosition)){if(!m.graveyardPosition&&!r.graveyardPosition)return[new zs(0)];if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition))return[new zs(0)];if("splitBefore"==c.abRelation)return m.howMany=0,m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r),[m]}if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition)){const u="$graveyard"==m.splitPosition.root.rootName,_="$graveyard"==r.splitPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=[];return r.howMany&&C.push(new cr(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&C.push(new cr(m.splitPosition,m.howMany,m.moveTargetPosition,0)),C}return[new zs(0)]}if(m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r)),m.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==c.abRelation)return m.howMany++,[m];if(r.splitPosition.isEqual(m.insertionPosition)&&"splitBefore"==c.baRelation){const u=r.insertionPosition.path.slice();u.push(0);const _=new $i(r.insertionPosition.root,u);return[m,new cr(m.insertionPosition,1,_,0)]}return m.splitPosition.hasSameParentAs(r.splitPosition)&&m.splitPosition.offset{const c=r[0];c.isDocumentOperation&&V6.call(this,c)},{priority:"low"})}function V6(m){const r=this.getTransformedByOperation(m);if(!this.isEqual(r)){const c=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",c)}}Ql.prototype.is=function(m){return"livePosition"===m||"model:livePosition"===m||"position"==m||"model:position"===m};class Sp{constructor(r={}){"string"==typeof r&&(r="transparent"===r?{isUndoable:!1}:{},Tt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:C=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=C}get type(){return Tt("batch-type-deprecated"),"default"}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}var fb=Object.defineProperty,i4=Object.defineProperties,hb=Object.getOwnPropertyDescriptors,Wm=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,Wd=Object.prototype.propertyIsEnumerable,mm=(m,r,c)=>r in m?fb(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,rh=(m,r)=>{for(var c in r||(r={}))c0.call(r,c)&&mm(m,c,r[c]);if(Wm)for(var c of Wm(r))Wd.call(r,c)&&mm(m,c,r[c]);return m};class o4{constructor(r){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=r}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(r){const c=r;switch(c.type){case"insert":if(this._isInInsertedElement(c.position.parent))return;this._markInsert(c.position.parent,c.position.offset,c.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const u of c.range.getItems({shallow:!0}))this._isInInsertedElement(u.parent)||this._markAttribute(u);break;case"remove":case"move":case"reinsert":{if(c.sourcePosition.isEqual(c.targetPosition)||c.sourcePosition.getShiftedBy(c.howMany).isEqual(c.targetPosition))return;const u=this._isInInsertedElement(c.sourcePosition.parent),_=this._isInInsertedElement(c.targetPosition.parent);u||this._markRemove(c.sourcePosition.parent,c.sourcePosition.offset,c.howMany),_||this._markInsert(c.targetPosition.parent,c.getMovedRangeStart().offset,c.howMany);break}case"rename":{if(this._isInInsertedElement(c.position.parent))return;this._markRemove(c.position.parent,c.position.offset,1),this._markInsert(c.position.parent,c.position.offset,1);const u=Oi._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const C=_.getData();this.bufferMarkerChange(_.name,C,C)}break}case"split":{const u=c.splitPosition.parent;this._isInInsertedElement(u)||this._markRemove(u,c.splitPosition.offset,c.howMany),this._isInInsertedElement(c.insertionPosition.parent)||this._markInsert(c.insertionPosition.parent,c.insertionPosition.offset,1),c.graveyardPosition&&this._markRemove(c.graveyardPosition.parent,c.graveyardPosition.offset,1);break}case"merge":{const u=c.sourcePosition.parent;this._isInInsertedElement(u.parent)||this._markRemove(u.parent,u.startOffset,1),this._markInsert(c.graveyardPosition.parent,c.graveyardPosition.offset,1);const C=c.targetPosition.parent;this._isInInsertedElement(C)||this._markInsert(C,c.targetPosition.offset,u.maxOffset);break}case"detachRoot":case"addRoot":{const u=c.affectedSelectable;if(!u._isLoaded||u.isAttached()==c.isAdd)return;this._bufferRootStateChange(c.rootName,c.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!c.root._isLoaded)return;this._bufferRootAttributeChange(c.root.rootName,c.key,c.oldValue,c.newValue)}this._cachedChanges=null}bufferMarkerChange(r,c,u){c.range&&c.range.root.is("rootElement")&&!c.range.root._isLoaded&&(c.range=null),u.range&&u.range.root.is("rootElement")&&!u.range.root._isLoaded&&(u.range=null);let _=this._changedMarkers.get(r);_?_.newMarkerData=u:(_={newMarkerData:u,oldMarkerData:c},this._changedMarkers.set(r,_)),null==_.oldMarkerData.range&&null==u.range&&this._changedMarkers.delete(r)}getMarkersToRemove(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.oldMarkerData.range&&r.push({name:c,range:u.oldMarkerData.range});return r}getMarkersToAdd(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.newMarkerData.range&&r.push({name:c,range:u.newMarkerData.range});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(([r,c])=>({name:r,data:{oldRange:c.oldMarkerData.range,newRange:c.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:r,oldMarkerData:c}of this._changedMarkers.values()){if(r.affectsData!==c.affectsData)return!0;if(r.affectsData){const u=r.range&&!c.range,_=!r.range&&c.range,C=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||C)return!0}}return!1}getChanges(r={}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let c=[];for(const u of this._changesInElement.keys()){const _=this._changesInElement.get(u).sort((W,dt)=>W.offset===dt.offset?W.type!=dt.type?"remove"==W.type?-1:1:0:W.offsetu.position.root!=_.position.root?u.position.root.rootName<_.position.root.rootName?-1:1:u.position.isEqual(_.position)?u.changeCount-_.changeCount:u.position.isBefore(_.position)?-1:1);for(let u=1,_=0;uu);for(const u of c)delete u.changeCount,"attribute"==u.type&&(delete u.position,delete u.length);return this._changeCount=0,this._cachedChangesWithGraveyard=c,this._cachedChanges=c.filter(gb),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=rh({},r);return void 0!==c.state&&delete c.attributes,c})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(r,c){if(!this._changedRoots.has(r))return void this._changedRoots.set(r,{name:r,state:c?"attached":"detached"});const u=this._changedRoots.get(r);void 0!==u.state?(delete u.state,void 0===u.attributes&&this._changedRoots.delete(r)):u.state=c?"attached":"detached"}_bufferRootAttributeChange(r,c,u,_){const C=this._changedRoots.get(r)||{name:r},M=C.attributes||{};if(M[c]){const E=M[c];_===E.oldValue?delete M[c]:E.newValue=_}else M[c]={oldValue:u,newValue:_};0===Object.entries(M).length?(delete C.attributes,void 0===C.state&&this._changedRoots.delete(r)):(C.attributes=M,this._changedRoots.set(r,C))}_refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize),this._refreshedItems.add(r);const c=Oi._createOn(r);for(const u of this._markerCollection.getMarkersIntersectingRange(c)){const _=u.getData();this.bufferMarkerChange(u.name,_,_)}this._cachedChanges=null}_bufferRootLoad(r){if(r.isAttached()){this._bufferRootStateChange(r.rootName,!0),this._markInsert(r,0,r.maxOffset);for(const u of r.getAttributeKeys())this._bufferRootAttributeChange(r.rootName,u,null,r.getAttribute(u));for(const u of this._markerCollection)if(u.getRange().root==r){const _=u.getData();this.bufferMarkerChange(u.name,(c=rh({},_),i4(c,hb({range:null}))),_)}var c}}_markInsert(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"insert",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_)}_markRemove(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"remove",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_),this._removeAllNestedChanges(r,c,u)}_markAttribute(r){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const c={type:"attribute",offset:r.startOffset,howMany:r.offsetSize,count:this._changeCount++};this._markChange(r.parent,c)}_markChange(r,c){this._makeSnapshot(r);const u=this._getChangesForElement(r);this._handleChange(c,u),u.push(c);for(let _=0;_u.offset){if(_>C){const M={type:"attribute",offset:C,howMany:_-C,count:this._changeCount++};this._handleChange(M,c),c.push(M)}r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=u.offset&&r.offsetC?(r.nodesToHandle=_-C,r.offset=C):r.nodesToHandle=0);if("remove"==u.type&&r.offsetu.offset){const M={type:"attribute",offset:u.offset,howMany:_-u.offset,count:this._changeCount++};this._handleChange(M,c),c.push(M),r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==u.type&&(r.offset>=u.offset&&_<=C?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=C&&(u.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,c,u){return{type:"insert",position:$i._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,c,u){return{type:"remove",position:$i._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,c,u){const _=[];u=new Map(u);for(const[C,M]of c){const E=u.has(C)?u.get(C):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(C)}for(const[C,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:null,attributeNewValue:M,changeCount:this._changeCount++});return _}_isInInsertedElement(r){const c=r.parent;if(!c)return!1;const u=this._changesInElement.get(c),_=r.startOffset;if(u)for(const C of u)if("insert"==C.type&&_>=C.offset&&_u){for(let M=0;Mthis._version+1&&this._gaps.set(this._version,r),this._version=r}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(r){if(r.baseVersion!==this.version)throw new it("model-document-history-addoperation-incorrect-version",this,{operation:r,historyVersion:this.version});this._operations.push(r),this._version++,this._baseVersionToOperationIndex.set(r.baseVersion,this._operations.length-1)}getOperations(r,c=this.version){if(!this._operations.length)return[];const u=this._operations[0];void 0===r&&(r=u.baseVersion);let _=c-1;for(const[E,N]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let C=this._baseVersionToOperationIndex.get(r);void 0===C&&(C=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(C,M+1)}getOperation(r){const c=this._baseVersionToOperationIndex.get(r);if(void 0!==c)return this._operations[c]}setOperationAsUndone(r,c){this._undoPairs.set(c,r),this._undoneOperations.add(r)}isUndoingOperation(r){return this._undoPairs.has(r)}isUndoneOperation(r){return this._undoneOperations.has(r)}getUndoneOperation(r){return this._undoPairs.get(r)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class el extends _s{constructor(r,c,u="main"){super(c),this._isAttached=!0,this._isLoaded=!0,this._document=r,this.rootName=u}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}el.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m):"rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m||"node"===m||"model:node"===m};var Td=Object.defineProperty,j6=Object.defineProperties,vb=Object.getOwnPropertyDescriptors,Lp=Object.getOwnPropertySymbols,Y2=Object.prototype.hasOwnProperty,_m=Object.prototype.propertyIsEnumerable,ch=(m,r,c)=>r in m?Td(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,fm=(m,r)=>{for(var c in r||(r={}))Y2.call(r,c)&&ch(m,c,r[c]);if(Lp)for(var c of Lp(r))_m.call(r,c)&&ch(m,c,r[c]);return m},B2=(m,r)=>j6(m,vb(r));const lh="$graveyard";class J6 extends(Le()){constructor(r){super(),this.model=r,this.history=new G6,this.selection=new Qu(this),this.roots=new Xs({idProperty:"rootName"}),this.differ=new o4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",lh),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.differ.bufferOperation(_)},{priority:"high"}),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.history.addOperation(_)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(c,u,_,C,M)=>{const E=B2(fm({},u.getData()),{range:C});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(N,G)=>{const W=u.getData();this.differ.bufferMarkerChange(u.name,B2(fm({},W),{range:G}),W)})}),this.registerPostFixer(c=>{let u=!1;for(const _ of this.roots)_.isAttached()||_.isEmpty||(c.remove(c.createRangeIn(_)),u=!0);for(const _ of this.model.markers)_.getRange().root.isAttached()||(c.removeMarker(_),u=!0);return u})}get version(){return this.history.version}set version(r){this.history.version=r}get graveyard(){return this.getRoot(lh)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new it("model-document-createroot-name-exists",this,{name:c});const u=new el(this,r,c);return this.roots.add(u),u}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(r=!1){return this.getRoots(r).map(c=>c.rootName)}getRoots(r=!1){return Array.from(this.roots).filter(c=>c!=this.graveyard&&(r||c.isAttached())&&c._isLoaded)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Mi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const r=this.getRoots();return r.length?r[0]:this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),c=this.model,u=c.schema,_=c.createPositionFromPath(r,[0]);return u.getNearestSelectionRange(_)||c.createRange(_)}_validateSelectionRange(r){return $1(r.start)&&$1(r.end)}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(this.selection.refresh(),c=u(r),c)break}while(c)}}function $1(m){const r=m.textNode;if(r){const c=r.data,u=m.offset-r.startOffset;return!cn(c,u)&&!fd(c,u)}return!0}var uh=Object.defineProperty,l0=Object.defineProperties,Q6=Object.getOwnPropertyDescriptors,u0=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,W6=Object.prototype.propertyIsEnumerable,K1=(m,r,c)=>r in m?uh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Q_ extends(Le()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r instanceof Op?r.name:r)}get(r){return this._markers.get(r)||null}_set(r,c,u=!1,_=!1){const C=r instanceof Op?r.name:r;if(C.includes(","))throw new it("markercollection-incorrect-marker-name",this);const M=this._markers.get(C);if(M){const W=M.getData(),dt=M.getRange();let Zt=!1;return dt.isEqual(c)||(M._attachLiveRange(Ad.fromRange(c)),Zt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Zt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Zt=!0),Zt&&this.fire(`update:${C}`,M,dt,c,W),M}const E=Ad.fromRange(c),N=new Op(C,E,u,_);var G;return this._markers.set(C,N),this.fire(`update:${C}`,N,null,c,(G=((W,dt)=>{for(var Zt in dt||(dt={}))dh.call(dt,Zt)&&K1(W,Zt,dt[Zt]);if(u0)for(var Zt of u0(dt))W6.call(dt,Zt)&&K1(W,Zt,dt[Zt]);return W})({},N.getData()),l0(G,Q6({range:null})))),N}_remove(r){const c=r instanceof Op?r.name:r,u=this._markers.get(c);return!!u&&(this._markers.delete(c),this.fire(`update:${c}`,u,u.getRange(),null,u.getData()),this._destroyMarker(u),!0)}_refresh(r){const c=r instanceof Op?r.name:r,u=this._markers.get(c);if(!u)throw new it("markercollection-refresh-marker-not-exists",this);const _=u.getRange();this.fire(`update:${c}`,u,_,_,u.getData())}*getMarkersAtPosition(r){for(const c of this)c.getRange().containsPosition(r)&&(yield c)}*getMarkersIntersectingRange(r){for(const c of this)null!==c.getRange().getIntersection(r)&&(yield c)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const c of this._markers.values())c.name.startsWith(r+":")&&(yield c)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}class Op extends(Le(Kc)){constructor(r,c,u,_){super(),this.name=r,this._liveRange=this._attachLiveRange(c),this._managedUsingOperations=u,this._affectsData=_}get managedUsingOperations(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Op.prototype.is=function(m){return"marker"===m||"model:marker"===m};class hm extends $u{constructor(r,c){super(null),this.sourcePosition=r.clone(),this.howMany=c}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const r=super.toJSON();return r.sourcePosition=this.sourcePosition.toJSON(),r}_validate(){if(this.sourcePosition.root.document)throw new it("detach-operation-on-document-node",this)}_execute(){ah(Oi._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class M1 extends Kc{constructor(r){super(),this.markers=new Map,this._children=new E_,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const c of this._children)r.push(c.toJSON());return r}static fromJSON(r){const c=[];for(const u of r)c.push(u.name?_s.fromJSON(u):ss.fromJSON(u));return new M1(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(nt(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new ss(C):C instanceof Gl?new ss(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}}M1.prototype.is=function(m){return"documentFragment"===m||"model:documentFragment"===m};class gm{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new ss(r,c)}createElement(r,c){return new _s(r,c)}createDocumentFragment(){return new M1}cloneElement(r,c=!0){return r._clone(c)}insert(r,c,u=0){if(this._assertWriterUsedCorrectly(),r instanceof ss&&""==r.data)return;const _=$i._createAt(c,u);if(r.parent){if(mh(r.root,_.root))return void this.move(Oi._createOn(r),_);if(r.root.document)throw new it("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new Jl(_,r,_.root.document?_.root.document.version:null);if(r instanceof ss&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof M1)for(const[E,N]of r.markers){const G=$i._createAt(N.root,0),W={range:new Oi(N.start._getCombined(G,_),N.end._getCombined(G,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,W):this.addMarker(E,W)}}insertText(r,c,u,_){c instanceof M1||c instanceof _s||c instanceof $i?this.insert(this.createText(r),c,u):this.insert(this.createText(r,c),u,_)}insertElement(r,c,u,_){c instanceof M1||c instanceof _s||c instanceof $i?this.insert(this.createElement(r),c,u):this.insert(this.createElement(r,c),u,_)}append(r,c){this.insert(r,c,"end")}appendText(r,c,u){c instanceof M1||c instanceof _s?this.insert(this.createText(r),c,"end"):this.insert(this.createText(r,c),u,"end")}appendElement(r,c,u){c instanceof M1||c instanceof _s?this.insert(this.createElement(r),c,"end"):this.insert(this.createElement(r,c),u,"end")}setAttribute(r,c,u){if(this._assertWriterUsedCorrectly(),u instanceof Oi){const _=u.getMinimalFlatRanges();for(const C of _)ph(this,r,c,C)}else V2(this,r,c,u)}setAttributes(r,c){for(const[u,_]of Jc(r))this.setAttribute(u,_,c)}removeAttribute(r,c){if(this._assertWriterUsedCorrectly(),c instanceof Oi){const u=c.getMinimalFlatRanges();for(const _ of u)ph(this,r,null,_)}else V2(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Oi)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Oi))throw new it("writer-move-invalid-range",this);if(!r.isFlat)throw new it("writer-move-range-not-flat",this);const _=$i._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!mh(r.root,_.root))throw new it("writer-move-different-document",this);const M=new cr(r.start,r.end.offset-r.start.offset,_,r.root.document?r.root.document.version:null);this.batch.addOperation(M),this.model.applyOperation(M)}remove(r){this._assertWriterUsedCorrectly();const c=(r instanceof Oi?r:Oi._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),d0(u.start,u.end.offset-u.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const c=r.nodeBefore,u=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(c instanceof _s))throw new it("writer-merge-no-element-before",this);if(!(u instanceof _s))throw new it("writer-merge-no-element-after",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,c,u){return this.model.createPositionFromPath(r,c,u)}createPositionAt(r,c){return this.model.createPositionAt(r,c)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,c){return this.model.createRange(r,c)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(...r){return this.model.createSelection(...r)}_mergeDetached(r){const c=r.nodeBefore,u=r.nodeAfter;this.move(Oi._createIn(u),$i._createAt(c,"end")),this.remove(u)}_merge(r){const c=$i._createAt(r.nodeBefore,"end"),u=$i._createAt(r.nodeAfter,0),C=new $i(r.root.document.graveyard,[0]),E=new Os(u,r.nodeAfter.maxOffset,c,C,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof _s))throw new it("writer-rename-not-element-instance",this);const u=r.root.document?r.root.document.version:null,_=new Su($i._createBefore(r),r.name,c,u);this.batch.addOperation(_),this.model.applyOperation(_)}split(r,c){this._assertWriterUsedCorrectly();let u,_,C=r.parent;if(!C.parent)throw new it("writer-split-element-no-parent",this);if(c||(c=C.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new it("writer-split-invalid-limit-element",this);do{const M=C.root.document?C.root.document.version:null,E=C.maxOffset-r.offset,N=_r.getInsertionPosition(r),G=new _r(r,E,N,null,M);this.batch.addOperation(G),this.model.applyOperation(G),u||_||(u=C,_=r.parent.nextSibling),C=(r=this.createPositionAfter(r.parent)).parent}while(C!==c);return{position:r,range:new Oi($i._createAt(u,"end"),$i._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new it("writer-wrap-range-not-flat",this);const u=c instanceof _s?c:new _s(c);if(u.childCount>0)throw new it("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new it("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Oi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,$i._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new it("writer-unwrap-element-no-parent",this);this.move(Oi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new it("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,C=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new it("writer-addmarker-marker-exists",this);if(!_)throw new it("writer-addmarker-no-range",this);return u?(vm(this,r,null,_,C),this.model.markers.get(r)):this.model.markers._set(r,_,u,C)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new it("writer-updatemarker-marker-not-exists",this);if(!c)return Tt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const C="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!C&&!c.range&&!M)throw new it("writer-updatemarker-wrong-options",this);const N=_.getRange(),G=c.range?c.range:N;C&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?vm(this,u,null,G,E):(vm(this,u,N,null,E),this.model.markers._set(u,G,void 0,E)):_.managedUsingOperations?vm(this,u,N,G,E):this.model.markers._set(u,G,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new it("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?vm(this,c,u.getRange(),null,u.affectsData):this.model.markers._remove(c)}addRoot(r,c="$root"){this._assertWriterUsedCorrectly();const u=this.model.document.getRoot(r);if(u&&u.isAttached())throw new it("writer-addroot-root-exists",this);const _=this.model.document,C=new tl(r,c,!0,_,_.version);return this.batch.addOperation(C),this.model.applyOperation(C),this.model.document.getRoot(r)}detachRoot(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?this.model.document.getRoot(r):r;if(!c||!c.isAttached())throw new it("writer-detachroot-no-root",this);for(const C of this.model.markers)C.getRange().root===c&&this.removeMarker(C);for(const C of c.getAttributeKeys())this.removeAttribute(C,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new tl(c.rootName,c.name,!1,u,u.version);this.batch.addOperation(_),this.model.applyOperation(_)}setSelection(...r){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...r)}setSelectionFocus(r,c){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,c)}setSelectionAttribute(r,c){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,c);else for(const[u,_]of Jc(r))this._setSelectionAttribute(u,_)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const c of r)this._removeSelectionAttribute(c)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,c){const u=this.model.document.selection;if(u.isCollapsed&&u.anchor.parent.isEmpty){const _=Qu._getStoreAttributeKey(r);this.setAttribute(_,c,u.anchor.parent)}u._setAttribute(r,c)}_removeSelectionAttribute(r){const c=this.model.document.selection;if(c.isCollapsed&&c.anchor.parent.isEmpty){const u=Qu._getStoreAttributeKey(r);this.removeAttribute(u,c.anchor.parent)}c._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new it("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let C=!1;if("move"===r){const M=c;C=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const N=c.nodeAfter,W=_.end.parent==N&&0==_.end.offset,dt=_.end.nodeAfter==N,Zt=_.start.nodeAfter==N;C=_.start.parent==c.nodeBefore&&_.start.isAtEnd||W||dt||Zt}C&&this.updateMarker(u.name,{range:_})}}}function ph(m,r,c,u){const _=m.model,C=_.document;let M,E,N,G=u.start;for(const dt of u.getWalker({shallow:!0}))N=dt.item.getAttribute(r),M&&E!=N&&(E!=c&&W(),G=M),M=dt.nextPosition,E=N;function W(){const dt=new Oi(G,M),ue=new Yr(dt,r,E,c,dt.root.document?C.version:null);m.batch.addOperation(ue),_.applyOperation(ue)}M instanceof $i&&M!=G&&E!=c&&W()}function V2(m,r,c,u){const _=m.model,C=_.document,M=u.getAttribute(r);let E,N;M!=c&&(u.root===u?N=new U1(u,r,M,c,u.document?C.version:null):(E=new Oi($i._createBefore(u),m.createPositionAfter(u)),N=new Yr(E,r,M,c,E.root.document?C.version:null)),m.batch.addOperation(N),_.applyOperation(N))}function vm(m,r,c,u,_){const C=m.model,E=new zr(r,c,u,C.markers,!!_,C.document.version);m.batch.addOperation(E),C.applyOperation(E)}function d0(m,r,c,u){let _;if(m.root.document){const C=u.document,M=new $i(C.graveyard,[0]);_=new cr(m,r,M,C.version)}else _=new hm(m,r);c.addOperation(_),u.applyOperation(_)}function mh(m,r){return m===r||m instanceof el&&r instanceof el}function p0(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(C=>{if(!c.doNotResetEntireContent&&function(G,W){const dt=G.getLimitElement(W);if(!W.containsEntireContent(dt))return!1;const Zt=W.getFirstRange();return Zt.start.parent!=Zt.end.parent&&G.checkChild(dt,"paragraph")}(_,r))return void function(G,W){const dt=G.model.schema.getLimitElement(W);G.remove(G.createRangeIn(dt)),_h(G,G.createPositionAt(dt,0),W)}(C,r);const M={};if(!c.doNotAutoparagraph){const G=r.getSelectedElement();G&&Object.assign(M,_.getAttributesWithProperty(G,"copyOnReplace",!0))}const[E,N]=function(G){const W=G.root.document.model,dt=G.start;let Zt=G.end;if(W.hasContent(G,{ignoreMarkers:!0})){const ue=function(xe){const Ee=xe.parent,ln=Ee.root.document.model.schema,Mn=Ee.getAncestors({parentFirst:!0,includeSelf:!0});for(const di of Mn){if(ln.isLimit(di))return null;if(ln.isBlock(di))return di}}(Zt);if(ue&&Zt.isTouching(W.createPositionAt(ue,0))){const xe=W.createSelection(G);W.modifySelection(xe,{direction:"backward"});const Ee=xe.getLastPosition(),ln=W.createRange(Ee,Zt);W.hasContent(ln,{ignoreMarkers:!0})||(Zt=Ee)}}return[Ql.fromPosition(dt,"toPrevious"),Ql.fromPosition(Zt,"toNext")]}(u);E.isTouching(N)||C.remove(C.createRange(E,N)),c.leaveUnmerged||(function(G,W,dt){const Zt=G.model;if(!m0(G.model.schema,W,dt))return;const[ue,xe]=function(Ee,ln){const Mn=Ee.getAncestors(),di=ln.getAncestors();let Ri=0;for(;Mn[Ri]&&Mn[Ri]==di[Ri];)Ri++;return[Mn[Ri],di[Ri]]}(W,dt);!ue||!xe||(!Zt.hasContent(ue,{ignoreMarkers:!0})&&Zt.hasContent(xe,{ignoreMarkers:!0})?$6(G,W,dt,ue.parent):a4(G,W,dt,ue.parent))}(C,E,N),_.removeDisallowedAttributes(E.parent.getChildren(),C)),_0(C,r,E),!c.doNotAutoparagraph&&function(G,W){const dt=G.checkChild(W,"$text"),Zt=G.checkChild(W,"paragraph");return!dt&&Zt}(_,E)&&_h(C,E,r,M),E.detach(),N.detach()})}function a4(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(C,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}m0(m.model.schema,r,c)&&a4(m,r,c,u)}}function $6(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(C),function(M,E){const N=E.nodeBefore,G=E.nodeAfter;N.name!=G.name&&M.rename(N,G.name),M.clearAttributes(N),M.setAttributes(Object.fromEntries(G.getAttributes()),N),M.merge(E)}(m,c),m0(m.model.schema,r,c)&&$6(m,r,c,u)}}function m0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(C,M,E){const N=new Oi(C,M);for(const G of N.getWalker())if(E.isLimit(G.item))return!1;return!0}(r,c,m)}function _h(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),_0(m,c,m.createPositionAt(_,0))}function _0(m,r,c){r instanceof Qu?m.setSelection(c):r.setTo(c)}function fh(m,r){const c=[];Array.from(m.getItems({direction:"backward"})).map(u=>r.createRangeOn(u)).filter(u=>(u.start.isAfter(m.start)||u.start.isEqual(m.start))&&(u.end.isBefore(m.end)||u.end.isEqual(m.end))).forEach(u=>{c.push(u.start.parent),r.remove(u)}),c.forEach(u=>{let _=u;for(;_.parent&&_.isEmpty;){const C=r.createRangeOn(_);_=_.parent,r.remove(C)}})}class f0{constructor(r,c,u){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=r,this.writer=c,this.position=u,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._documentFragment=c.createDocumentFragment(),this._documentFragmentPosition=c.createPositionAt(this._documentFragment,0)}handleNodes(r){for(const c of Array.from(r))this._handleNode(c);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(r){const c=this.writer.createPositionAfter(this._lastNode),u=this.writer.createPositionAfter(r);if(u.isAfter(c)){if(this._lastNode=r,this.position.parent!=r||!this.position.isAtEnd)throw new it("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Oi._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Oi(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(r){if(this.schema.isObject(r))return void this._handleObject(r);let c=this._checkAndAutoParagraphToAllowedPosition(r);c||(c=this._checkAndSplitToAllowedPosition(r),c)?(this._appendToFragment(r),this._firstNode||(this._firstNode=r),this._lastNode=r):this._handleDisallowedNode(r)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const r=Ql.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=r.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=r.toPosition(),r.detach()}_handleObject(r){this._checkAndSplitToAllowedPosition(r)?this._appendToFragment(r):this._tryAutoparagraphing(r)}_handleDisallowedNode(r){r.is("element")?this.handleNodes(r.getChildren()):this._tryAutoparagraphing(r)}_appendToFragment(r){if(!this.schema.checkChild(this.position,r))throw new it("insertcontent-wrong-position",this,{node:r,position:this.position});this.writer.insert(r,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(r.offsetSize),this._nodeToSelect=this.schema.isObject(r)&&!this.schema.checkChild(this.position,"$text")?r:null,this._filterAttributesOf.push(r)}_setAffectedBoundaries(r){this._affectedStart||(this._affectedStart=Ql.fromPosition(r,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(r)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Ql.fromPosition(r,"toNext"))}_mergeOnLeft(){const r=this._firstNode;if(!(r instanceof _s&&this._canMergeLeft(r)))return;const c=Ql._createBefore(r);c.stickiness="toNext";const u=Ql.fromPosition(this.position,"toNext");this._affectedStart.isEqual(c)&&(this._affectedStart.detach(),this._affectedStart=Ql._createAt(c.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Ql._createAt(c.nodeBefore,"end","toNext")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_mergeOnRight(){const r=this._lastNode;if(!(r instanceof _s&&this._canMergeRight(r)))return;const c=Ql._createAfter(r);if(c.stickiness="toNext",!this.position.isEqual(c))throw new it("insertcontent-invalid-insertion-position",this);this.position=$i._createAt(c.nodeBefore,"end");const u=Ql.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(c)&&(this._affectedEnd.detach(),this._affectedEnd=Ql._createAt(c.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Ql._createAt(c.nodeBefore,0,"toPrevious")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_canMergeLeft(r){const c=r.previousSibling;return c instanceof _s&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(c,r)}_canMergeRight(r){const c=r.nextSibling;return c instanceof _s&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(r,c)}_tryAutoparagraphing(r){const c=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,c)&&this.schema.checkChild(c,r)&&(c._appendChild(r),this._handleNode(c))}_checkAndAutoParagraphToAllowedPosition(r){if(this.schema.checkChild(this.position.parent,r))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",r))return!1;this._insertPartialFragment();const c=this.writer.createElement("paragraph");return this.writer.insert(c,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=c,this.position=this.writer.createPositionAt(c,0),!0}_checkAndSplitToAllowedPosition(r){const c=this._getAllowedIn(this.position.parent,r);if(!c)return!1;for(c!=this.position.parent&&this._insertPartialFragment();c!=this.position.parent;)if(this.position.isAtStart){const u=this.position.parent;this.position=this.writer.createPositionBefore(u),u.isEmpty&&u.parent===c&&this.writer.remove(u)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const u=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=u,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(r,c){return this.schema.checkChild(r,c)?r:this.schema.isLimit(r)?null:this._getAllowedIn(r.parent,c)}}function G2(m,r,c="auto"){const u=m.getSelectedElement();if(u&&r.schema.isObject(u)&&!r.schema.isInline(u))return"before"==c||"after"==c?r.createRange(r.createPositionAt(u,c)):r.createRangeOn(u);const _=os(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const C=r.createPositionAfter(_);return m.focus.isTouching(C)?r.createRange(C):r.createRange(r.createPositionBefore(_))}function r4(m,r){const{isForward:c,walker:u,unit:_,schema:C,treatEmojiAsSingleUnit:M}=m,{type:E,item:N,nextPosition:G}=r;if("text"==E)return"word"===m.unit?function(W,dt){let Zt=W.position.textNode;for(Zt||(Zt=dt?W.position.nodeAfter:W.position.nodeBefore);Zt&&Zt.is("$text");){const ue=W.position.offset-Zt.startOffset;if(cs(Zt,ue,dt))Zt=dt?W.position.nodeAfter:W.position.nodeBefore;else{if(X6(Zt.data,ue,dt))break;W.next()}}return W.position}(u,c):function(W,dt,Zt){const ue=W.position.textNode;if(ue){const xe=ue.data;let Ee=W.position.offset-ue.startOffset;for(;cn(xe,Ee)||"character"==dt&&fd(xe,Ee)||Zt&&Zl(xe,Ee);)W.next(),Ee=W.position.offset-ue.startOffset}return W.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(C.isSelectable(N))return $i._createAt(N,c?"after":"before");if(C.checkChild(G,"$text"))return G}else{if(C.isLimit(N))return void u.skip(()=>!0);if(C.checkChild(G,"$text"))return G}}function K6(m,r){const u=$i._createAt(m.root,r?"end":0);return r?new Oi(m,u):new Oi(u,m)}function X6(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function cs(m,r,c){return r===(c?m.offsetSize:0)}class j2 extends(we()){constructor(){super(),this.markers=new Q_,this.document=new J6(this),this.schema=new R6,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,c)=>{c[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((r,c)=>{if("$marker"===c.name)return!0}),function o0(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,C=u.schema,M=[];let E=!1;for(const N of _.getRanges()){const G=Va(N,C);G&&!G.isEqual(N)?(M.push(G),E=!0):M.push(N)}return E&&c.setSelection(function(N){const G=[...N],W=new Set;let dt=1;for(;dt!W.has(ue))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(F2),this.on("insertContent",(r,[c,u])=>{var _,C,M;r.return=(C=c,M=u,(_=this).change(E=>{const N=M||_.document.selection;N.isCollapsed||_.deleteContent(N,{doNotAutoparagraph:!0});const G=new f0(_,E,N.anchor),W=[];let dt;if(C.is("documentFragment")){if(C.markers.size){const xe=[];for(const[Ee,ln]of C.markers){const{start:Mn,end:di}=ln,Ri=Mn.isEqual(di);xe.push({position:Mn,name:Ee,isCollapsed:Ri},{position:di,name:Ee,isCollapsed:Ri})}xe.sort(({position:Ee},{position:ln})=>Ee.isBefore(ln)?1:-1);for(const{position:Ee,name:ln,isCollapsed:Mn}of xe){let di=null,Ri=null;const Jo=Ee.parent===C&&Ee.isAtStart,Da=Ee.parent===C&&Ee.isAtEnd;Jo||Da?Mn&&(Ri=Jo?"start":"end"):(di=E.createElement("$marker"),E.insert(di,Ee)),W.push({name:ln,element:di,collapsed:Ri})}}dt=C.getChildren()}else dt=[C];G.handleNodes(dt);let Zt=G.getSelectionRange();if(C.is("documentFragment")&&W.length){const xe=Zt?Ad.fromRange(Zt):null,Ee={};for(let ln=W.length-1;ln>=0;ln--){const{name:Mn,element:di,collapsed:Ri}=W[ln],Jo=!Ee[Mn];if(Jo&&(Ee[Mn]=[]),di){const Da=E.createPositionAt(di,"before");Ee[Mn].push(Da),E.remove(di)}else{const Da=G.getAffectedRange();if(!Da){Ri&&Ee[Mn].push(G.position);continue}Ee[Mn].push(Ri?Da[Ri]:Jo?Da.start:Da.end)}}for(const[ln,[Mn,di]]of Object.entries(Ee))Mn&&di&&Mn.root===di.root&&E.addMarker(ln,{usingOperation:!0,affectsData:!0,range:new Oi(Mn,di)});xe&&(Zt=xe.toRange(),xe.detach())}Zt&&(N instanceof Qu?E.setSelection(Zt):N.setTo(Zt));const ue=G.getAffectedRange()||_.createRange(N.anchor);return G.destroy(),ue}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function Ku(m,r,c,u={}){if(!m.schema.isObject(r))throw new it("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let C=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(C=m.createSelection(G2(_,m,u.findOptimalPosition)));const M=os(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(N=>{C.isCollapsed||m.deleteContent(C,{doNotAutoparagraph:!0});let G=r;const W=C.anchor.parent;!m.schema.checkChild(W,r)&&m.schema.checkChild(W,"paragraph")&&m.schema.checkChild("paragraph",r)&&(G=N.createElement("paragraph"),N.insert(r,G)),m.schema.setAllowedAttributes(G,E,N);const dt=m.insertContent(G,C);return dt.isCollapsed||u.setSelection&&function(Zt,ue,xe,Ee){const ln=Zt.model;if("on"==xe)return void Zt.setSelection(ue,"on");if("after"!=xe)throw new it("insertobject-invalid-place-parameter-value",ln);let Mn=ue.nextSibling;ln.schema.isInline(ue)?Zt.setSelection(ue,"after"):(!(Mn&&ln.schema.checkChild(Mn,"$text"))&&ln.schema.checkChild(ue.parent,"paragraph")&&(Mn=Zt.createElement("paragraph"),ln.schema.setAllowedAttributes(Mn,Ee,Zt),ln.insertContent(Mn,Zt.createPositionAfter(ue))),Mn&&Zt.setSelection(Mn,0))}(N,r,u.setSelection,E),dt})}(this,c,u,_)}),this.on("canEditAt",r=>{const c=!this.document.isReadOnly;r.return=c,c||r.stop()})}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Sp,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(c){it.rethrowUnexpectedError(c,this)}}enqueueChange(r,c){try{r?"function"==typeof r?(c=r,r=new Sp):r instanceof Sp||(r=new Sp(r)):r=new Sp,this._pendingChanges.push({batch:r,callback:c}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(u){it.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const C=h0(c,u);return this.fire("insertContent",[r,C,u,..._])}insertObject(r,c,u,_,...C){const M=h0(c,u);return this.fire("insertObject",[r,M,_,_,...C])}deleteContent(r,c){p0(this,r,c)}modifySelection(r,c){!function(u,_,C={}){const M=u.schema,E="backward"!=C.direction,N=C.unit?C.unit:"character",G=!!C.treatEmojiAsSingleUnit,dt=new Jd({boundaries:K6(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Zt={walker:dt,schema:M,isForward:E,unit:N,treatEmojiAsSingleUnit:G};let ue;for(;ue=dt.next();){if(ue.done)return;const xe=r4(Zt,ue.value);if(xe)return void(_ instanceof Qu?u.change(Ee=>{Ee.setSelectionFocus(xe)}):_.setFocus(xe))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const C=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return C;const E=M.start.root,N=M.start.getCommonPath(M.end),G=E.getNodeByPath(N);let W;W=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(G,M.start.path[N.length]),_.createPositionAt(G,M.end.path[N.length]+1));const dt=W.end.offset-W.start.offset;for(const Zt of W.getItems({shallow:!0}))Zt.is("$textProxy")?_.appendText(Zt.data,Zt.getAttributes(),C):_.append(_.cloneElement(Zt,!0),C);if(W!=M){const Zt=M._getTransformedByMove(W.start,_.createPositionAt(C,0),dt)[0],ue=_.createRange(_.createPositionAt(C,0),Zt.start);fh(_.createRange(Zt.end,_.createPositionAt(C,"end")),_),fh(ue,_)}return C});var u}hasContent(r,c={}){const u=r instanceof Oi?r:Oi._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:C=!1}=c;if(!C)for(const M of this.markers.getMarkersIntersectingRange(u))if(M.affectsData)return!0;for(const M of u.getItems())if(this.schema.isContent(M)&&(!M.is("$textProxy")||!_||-1!==M.data.search(/\S/)))return!0;return!1}canEditAt(r){const c=h0(r);return this.fire("canEditAt",[c])}createPositionFromPath(r,c,u){return new $i(r,c,u)}createPositionAt(r,c){return $i._createAt(r,c)}createPositionAfter(r){return $i._createAfter(r)}createPositionBefore(r){return $i._createBefore(r)}createRange(r,c){return new Oi(r,c)}createRangeIn(r){return Oi._createIn(r)}createRangeOn(r){return Oi._createOn(r)}createSelection(...r){return new Ju(...r)}createBatch(r){return new Sp(r)}createOperationFromJSON(r){return class uu{static fromJSON(r,c){return Lu[r.__className].fromJSON(r,c)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new gm(this,this._pendingChanges[0].batch);const u=this._pendingChanges[0].callback(this._currentWriter);r.push(u),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return r}}function h0(m,r){if(m)return m instanceof Ju||m instanceof Qu?m:m instanceof Du?r||0===r?new Ju(m,r):m.is("rootElement")?new Ju(m,"in"):new Ju(m,"on"):new Ju(m)}class s4 extends jd{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class gh extends jd{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(r){this.fire(r.type,r)}}class X1{constructor(r){this.document=r}createDocumentFragment(r){return new g1(this.document,r)}createElement(r,c,u){return new Qc(this.document,r,c,u)}createText(r){return new Eo(this.document,r)}clone(r,c=!1){return r._clone(c)}appendChild(r,c){return c._appendChild(r)}insertChild(r,c,u){return u._insertChild(r,c)}removeChildren(r,c,u){return u._removeChildren(r,c)}remove(r){const c=r.parent;return c?this.removeChildren(c.getChildIndex(r),1,c):[]}replace(r,c){const u=r.parent;if(u){const _=u.getChildIndex(r);return this.removeChildren(_,1,u),this.insertChild(_,c,u),!0}return!1}unwrapElement(r){const c=r.parent;if(c){const u=c.getChildIndex(r);this.remove(r),this.insertChild(u,r.getChildren(),c)}}rename(r,c){const u=new Qc(this.document,r,c.getAttributes(),c.getChildren());return this.replace(c,u)?u:null}setAttribute(r,c,u){u._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,u){Xe(r)&&void 0===u?c._setStyle(r):u._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,u){u._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}createPositionAt(r,c){return Zo._createAt(r,c)}createPositionAfter(r){return Zo._createAfter(r)}createPositionBefore(r){return Zo._createBefore(r)}createRange(r,c){return new Xo(r,c)}createRangeOn(r){return Xo._createOn(r)}createRangeIn(r){return Xo._createIn(r)}createSelection(...r){return new Cd(...r)}}class t5{constructor(){this._commands=new Map}add(r,c){this._commands.set(r,c)}get(r){return this._commands.get(r)}execute(r,...c){const u=this.get(r);if(!u)throw new it("commandcollection-command-not-found",this,{commandName:r});return u.execute(...c)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class c4 extends(we()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new g2({language:r.language||c.defaultConfig&&c.defaultConfig.language}),this._context._addEditor(this,!r.context);const _=Array.from(c.builtinPlugins||[]);this.config=new er(r,c.defaultConfig),this.config.define("plugins",_),this.config.define(this._context._getEditorConfig()),this.plugins=new kf(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new t5,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new j2,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const C=new Mg;this.data=new G_(this.model,C),this.editing=new K3(this.model,C),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new ac([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Kp(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(r){throw new it("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new it("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)||(this._readOnlyLocks.add(r),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new it("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)&&(this._readOnlyLocks.delete(r),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const r=this.config,c=r.get("plugins"),u=r.get("removePlugins")||[],_=r.get("extraPlugins")||[],C=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,C)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(c=>this.once("ready",c))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(r,...c){try{return this.commands.execute(r,...c)}catch(u){it.rethrowUnexpectedError(u,this)}}focus(){this.editing.view.focus()}static create(...r){throw new Error("This is an abstract method.")}}function W_(m){return class extends m{setData(r){this.data.set(r)}getData(r){return this.data.get(r)}}}{const m=W_(Object);W_.setData=m.prototype.setData,W_.getData=m.prototype.getData}function J2(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new it("editor-missing-sourceelement",this);const c=this.config.get("updateSourceElementOnDestroy"),u=this.sourceElement instanceof HTMLTextAreaElement;!function wi(m,r){m instanceof HTMLTextAreaElement&&(m.value=r),m.innerHTML=r}(this.sourceElement,c||u?r:"")}}}J2.updateSourceElement=J2(Object).prototype.updateSourceElement;class Q2 extends C_{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Xs({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new it("pendingactions-add-invalid-message",this);const c=new(we());return c.set("message",r),this._actions.add(c),this.hasAny=!0,c}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const fs={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',history:'',image:'',lowVision:'',loupe:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:'',dragIndicator:''};var l4=b(5542);Io()(l4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:$m}=fs,u4={alignLeft:fs.alignLeft,bold:fs.bold,importExport:fs.importExport,paragraph:fs.paragraph,plus:fs.plus,text:fs.text,threeVerticalDots:fs.threeVerticalDots,pilcrow:fs.pilcrow,dragIndicator:fs.dragIndicator};class ys extends aa{constructor(r,c){super(r);const u=this.bindTemplate,_=this.t;this.options=c||{},this.set("ariaLabel",_("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new jc,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new $_(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const C="rtl"===r.uiLanguageDirection;this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[C?"arrowright":"arrowleft","arrowup"],focusNext:[C?"arrowleft":"arrowright","arrowdown"]}});const M=["ck","ck-toolbar",u.to("class"),u.if("isCompact","ck-toolbar_compact")];var E;this.options.shouldGroupWhenFull&&this.options.isFloating&&M.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:M,role:"toolbar","aria-label":u.to("ariaLabel"),style:{maxWidth:u.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(E=this,E.bindTemplate.to(N=>{N.target===E.element&&N.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new vh(this):new Xu(this)}render(){super.render(),this.focusTracker.add(this.element);for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,c,u){this.items.addMany(this._buildItemsFromConfig(r,c,u))}_buildItemsFromConfig(r,c,u){const _=gp(r),C=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,C).map(M=>Wt(M)?this._createNestedToolbarDropdown(M,c,C):"|"===M?new dl:"-"===M?new h2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((C,M,E)=>"|"===C||-1===u.indexOf(C)&&("-"===C?!this.options.shouldGroupWhenFull||(Tt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Wt(C)&&!c.has(C)&&(Tt("toolbarview-item-unavailable",{item:C}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const C=u-r.slice().reverse().findIndex(c);return r.slice(_,C).filter((M,E,N)=>!!c(M)||!(E>0&&N[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:C,items:M,tooltip:E=!0,withText:N=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const G=D1(this.locale);return _||Tt("toolbarview-nested-toolbar-dropdown-missing-label",r),G.class="ck-toolbar__nested-toolbar-dropdown",G.buttonView.set({label:_,tooltip:E,withText:!!N}),!1!==C?G.buttonView.icon=u4[C]||C||$m:G.buttonView.withText=!0,X_(G,()=>G.toolbarView._buildItemsFromConfig(M,c,u)),G}}class $_ extends aa{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Xu{constructor(r){const c=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(u=>u),r.focusables.bindTo(r.items).using(u=>u),r.extendTemplate({attributes:{class:[c.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class vh{constructor(r){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=r,this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),r.itemsView.children.bindTo(this.ungroupedItems).using(c=>c),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),r.children.on("change",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(c,u)=>{const _=u.index,C=Array.from(u.added);for(const M of u.removed)_>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=_;M<_+C.length;M++){const E=C[M-_];M>this.ungroupedItems.length?this.groupedItems.add(E,M-this.ungroupedItems.length):this.ungroupedItems.add(E,M)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!sa(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const r=this.groupedItems.length;let c;for(;this._areItemsOverflowing;)this._groupLastItem(),c=!0;if(!c&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==r&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,c=this.viewLocale.uiLanguageDirection,u=new ce(r.lastChild),_=new ce(r);if(!this.cachedPadding){const C=Mt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(C["ltr"===c?"paddingRight":"paddingLeft"])}return"ltr"===c?u.right>_.right-this.cachedPadding:u.left<_.left+this.cachedPadding}_enableGroupingOnResize(){let r;this.resizeObserver=new yi(this.viewElement,c=>{r&&r===c.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=c.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new dl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,c=r.t,u=D1(r);return u.class="ck-toolbar__grouped-dropdown",u.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",X_(u,this.groupedItems),u.buttonView.set({label:c("Show more items"),tooltip:!0,tooltipPosition:"rtl"===r.uiLanguageDirection?"se":"sw",icon:$m}),u}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Ep extends aa{constructor(r){super(r);const c=this.bindTemplate,u=`ck-editor__label_${Dt()}`,_=new d4(r);this.children=this.createCollection(),this.children.addMany([this._createLabel(u),_]),this.set({label:"",isVisible:!0}),_.set({role:"group",ariaLabelledBy:u}),_.focusTracker.destroy(),_.keystrokes.destroy(),this.items=_.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",c.if("isVisible","ck-hidden",C=>!C)]},children:this.children})}_createLabel(r){const c=new aa(this.locale);return c.setTemplate({tag:"span",attributes:{id:r},children:[{text:this.bindTemplate.to("label")}]}),c}focus(){this.items.first&&this.items.first.focus()}}var g0=b(1046);Io()(g0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class d4 extends aa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Fa,this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new jc,this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:c.to("role"),"aria-label":c.to("ariaLabel"),"aria-labelledby":c.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const r of this.items)r instanceof Ep?this._registerFocusableItemsGroup(r):this._registerFocusableListItem(r);this.items.on("change",(r,c)=>{for(const u of c.removed)u instanceof Ep?this._deregisterFocusableItemsGroup(u):this._deregisterFocusableListItem(u);for(const u of Array.from(c.added).reverse())u instanceof Ep?this._registerFocusableItemsGroup(u,c.index):this._registerFocusableListItem(u,c.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(r,c){this.focusTracker.add(r.element),this.focusables.add(r,c)}_deregisterFocusableListItem(r){this.focusTracker.remove(r.element),this.focusables.remove(r)}_getOnGroupItemsChangeCallback(r){return(c,u)=>{for(const _ of u.removed)this._deregisterFocusableListItem(_);for(const _ of Array.from(u.added).reverse())this._registerFocusableListItem(_,this.items.getIndex(r)+u.index)}}_registerFocusableItemsGroup(r,c){Array.from(r.items).forEach((_,C)=>{this._registerFocusableListItem(_,void 0!==c?c+C:void 0)});const u=this._getOnGroupItemsChangeCallback(r);this._listItemGroupToChangeListeners.set(r,u),r.items.on("change",u)}_deregisterFocusableItemsGroup(r){for(const c of r.items)this._deregisterFocusableListItem(c);r.items.off("change",this._listItemGroupToChangeListeners.get(r)),this._listItemGroupToChangeListeners.delete(r)}}class bm extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",c.if("isVisible","ck-hidden",u=>!u)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Km extends aa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var K_=b(7686);Io()(K_.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new jc,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",c.to("class"),c.if("isVisible","ck-hidden",u=>!u),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(r,c)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),c())}),this.keystrokes.set("arrowleft",(r,c)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),c())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const r=new Hr;return r.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),r.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),r.delegate("execute").to(this),r}_createArrowView(){const r=new Hr,c=r.bindTemplate;return r.icon=vd,r.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":c.to("isOn"),"aria-haspopup":!0,"aria-expanded":c.to("isOn",u=>String(u))}}),r.bind("isEnabled").to(this),r.bind("label").to(this),r.bind("tooltip").to(this),r.delegate("execute").to(this,"open"),r}}var Ch=b(7339);Io()(Ch.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var k1=b(3949);function D1(m,r=m1){const c=new r(m),u=new v_(m),_=new Au(m,c,u);return c.bind("isEnabled").to(_),c instanceof p4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=C=_).on("render",()=>{t({emitter:M,activator:()=>M.isOpen,callback:()=>{M.isOpen=!1},contextElements:()=>[M.element,...M.focusTracker._elements]})}),function(M){M.on("execute",E=>{E.source instanceof xi||(M.isOpen=!1)})}(C),function(M){M.focusTracker.on("change:isFocused",(E,N,G)=>{M.isOpen&&!G&&(M.isOpen=!1)})}(C),function(M){M.keystrokes.set("arrowdown",(E,N)=>{M.isOpen&&(M.panelView.focus(),N())}),M.keystrokes.set("arrowup",(E,N)=>{M.isOpen&&(M.panelView.focusLast(),N())})}(C),function(M){M.on("change:isOpen",(E,N,G)=>{if(G)return;const W=M.panelView.element;W&&W.contains(Mt.document.activeElement)&&M.buttonView.focus()})}(C),function(M){M.on("change:isOpen",(E,N,G)=>{G&&M.panelView.focus()},{priority:"low"})}(C),_;var C,M}function X_(m,r,c={}){m.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),m.isOpen?t2(m,r,c):m.once("change:isOpen",()=>t2(m,r,c),{priority:"highest"}),c.enableActiveItemFocusOnDropdownOpen&&Cm(m,()=>m.toolbarView.items.find(u=>u.isOn))}function t2(m,r,c){const u=m.locale,_=u.t,C=m.toolbarView=new ys(u),M="function"==typeof r?r():r;C.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(C.maxWidth=c.maxWidth),c.class&&(C.class=c.class),c.isCompact&&(C.isCompact=c.isCompact),c.isVertical&&(C.isVertical=!0),M instanceof Fa?C.items.bindTo(M).using(E=>E):C.items.addMany(M),m.panelView.children.add(C),C.items.delegate("execute").to(m)}function Eu(m,r,c={}){m.isOpen?W2(m,r,c):m.once("change:isOpen",()=>W2(m,r,c),{priority:"highest"}),Cm(m,()=>m.listView.items.find(u=>u instanceof bm&&u.children.first.isOn))}function W2(m,r,c){const u=m.locale,_=m.listView=new d4(u),C="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Xm(m,_.items,C,u),m.panelView.children.add(_),_.items.delegate("execute").to(m)}function Cm(m,r){m.on("change:isOpen",()=>{if(!m.isOpen)return;const c=r();c&&("function"==typeof c.focus?c.focus():Tt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:Pt.low-10})}function Xm(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Km(u);if("group"===_.type){const C=new Ep(u);return C.set({label:_.label}),Xm(m,C.items,_.items,u),C.items.delegate("execute").to(m),C}if("button"===_.type||"switchbutton"===_.type){const C=new bm(u);let M;return M="button"===_.type?new Hr(u):new xi(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(C),C.children.add(M),C}return null})}Io()(k1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $2=(m,r,c)=>{const u=new _g(m.locale);return u.set({id:r,ariaDescribedById:c}),u.bind("isReadOnly").to(m,"isEnabled",_=>!_),u.bind("hasError").to(m,"errorText",_=>!!_),u.on("input",()=>{m.errorText=null}),m.bind("isEmpty","isFocused","placeholder").to(u),u},Fp=(m,r=0,c=1)=>m>c?c:mMath.round(c*m)/c,K2=m=>("#"===m[0]&&(m=m.substring(1)),m.length<6?{r:parseInt(m[0]+m[0],16),g:parseInt(m[1]+m[1],16),b:parseInt(m[2]+m[2],16),a:4===m.length?kl(parseInt(m[3]+m[3],16)/255,2):1}:{r:parseInt(m.substring(0,2),16),g:parseInt(m.substring(2,4),16),b:parseInt(m.substring(4,6),16),a:8===m.length?kl(parseInt(m.substring(6,8),16)/255,2):1}),Ip=m=>{const{h:r,s:c,l:u}=(({h:m,s:r,v:c,a:u})=>{const _=(200-r)*c/100;return{h:kl(m),s:kl(_>0&&_<200?r*c/100/(_<=100?_:200-_)*100:0),l:kl(_/2),a:kl(u,2)}})(m);return`hsl(${r}, ${c}%, ${u}%)`},b0=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},C0=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},f4={},x0=m=>{let r=f4[m];return r||(r=document.createElement("template"),r.innerHTML=m,f4[m]=r),r},Th=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let xm=!1;const A0=m=>"touches"in m,X2=(m,r)=>{const c=A0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();Th(m.el,"move",m.getMove({x:Fp((c.pageX-(u.left+window.pageXOffset))/u.width),y:Fp((c.pageY-(u.top+window.pageYOffset))/u.height)}))};class tf{constructor(r,c,u,_){const C=x0(`
`);r.appendChild(C.content.cloneNode(!0));const M=r.querySelector(`[part=${c}]`);M.addEventListener("mousedown",this),M.addEventListener("touchstart",this),M.addEventListener("keydown",this),this.el=M,this.xy=_,this.nodes=[M.firstChild,M]}set dragging(r){const c=r?document.addEventListener:document.removeEventListener;c(xm?"touchmove":"mousemove",this),c(xm?"touchend":"mouseup",this)}handleEvent(r){switch(r.type){case"mousedown":case"touchstart":if(r.preventDefault(),c=r,xm&&!A0(c)||(xm||(xm=A0(c)),0)||!xm&&0!=r.button)return;this.el.focus(),X2(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),X2(this,r);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((c,u)=>{const _=u.keyCode;_>40||c.xy&&_<37||_<33||(u.preventDefault(),Th(c.el,"move",c.getMove({x:39===_?.01:37===_?-.01:34===_?.05:33===_?-.05:35===_?1:36===_?-1:0,y:40===_?.01:38===_?-.01:0},!0)))})(this,r)}var c}style(r){r.forEach((c,u)=>{for(const _ in c)this.nodes[u].style.setProperty(_,c[_])})}}class L extends tf{constructor(r){super(r,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:r}){this.h=r,this.style([{left:r/360*100+"%",color:Ip({h:r,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${kl(r)}`)}getMove(r,c){return{h:c?Fp(this.h+360*r.x,0,360):360*r.x}}}class R extends tf{constructor(r){super(r,"saturation",'aria-label="Color"',!0)}update(r){this.hsva=r,this.style([{top:100-r.v+"%",left:`${r.s}%`,color:Ip(r)},{"background-color":Ip({h:r.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${kl(r.s)}%, Brightness ${kl(r.v)}%`)}getMove(r,c){return{s:c?Fp(this.hsva.s+100*r.x,0,100):100*r.x,v:c?Fp(this.hsva.v-100*r.y,0,100):Math.round(100-100*r.y)}}}const st=Symbol("same"),Qt=Symbol("color"),Fe=Symbol("hsva"),pn=Symbol("update"),Yn=Symbol("parts"),ri=Symbol("css"),_i=Symbol("sliders");class Ki extends HTMLElement{static get observedAttributes(){return["color"]}get[ri](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[_i](){return[R,L]}get color(){return this[Qt]}set color(r){if(!this[st](r)){const c=this.colorModel.toHsva(r);this[pn](c),this[Qt]=r}}constructor(){super();const r=x0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[Yn]=this[_i].map(u=>new u(c))}connectedCallback(){if(this.hasOwnProperty("color")){const r=this.color;delete this.color,this.color=r}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(r,c,u){const _=this.colorModel.fromAttr(u);this[st](_)||(this.color=_)}handleEvent(r){const c=this[Fe],u={...c,...r.detail};let _;this[pn](u),C0(u,c)||this[st](_=this.colorModel.fromHsva(u))||(this[Qt]=_,Th(this,"color-changed",{value:_}))}[st](r){return this.color&&this.colorModel.equal(r,this.color)}[pn](r){this[Fe]=r,this[Yn].forEach(c=>c.update(r))}}const Wi={defaultColor:"#000",toHsva:m=>(({r:m,g:r,b:c,a:u})=>{const _=Math.max(m,r,c),C=_-Math.min(m,r,c),M=C?_===m?(r-c)/C:_===r?2+(c-m)/C:4+(m-r)/C:0;return{h:kl(60*(M<0?M+6:M)),s:kl(_?C/_*100:0),v:kl(_/255*100),a:u}})(K2(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?b0(kl(255*u)):"";return"#"+b0(m)+b0(r)+b0(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),C=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),N=_%6;return{r:kl(255*[c,M,C,C,E,c][N]),g:kl(255*[E,c,c,M,C,C][N]),b:kl(255*[C,C,E,c,c,M][N]),a:kl(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||C0(K2(m),K2(r)),fromAttr:m=>m};class no extends Ki{get colorModel(){return Wi}}customElements.define("hex-color-picker",class extends no{});var qo=b(3398);Io()(qo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),we(Xs);var Ca=b(4157);Io()(Ca.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Aa{constructor(r){this._components=new Map,this.editor=r}*names(){for(const r of this._components.values())yield r.originalName}add(r,c){this._components.set(Ka(r),{callback:c,originalName:r})}create(r){if(!this.has(r))throw new it("componentfactory-item-missing",this,{name:r});return this._components.get(Ka(r)).callback(this.editor.locale)}has(r){return this._components.has(Ka(r))}}function Ka(m){return String(m).toLowerCase()}var za=b(8793);Io()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yc=Object.defineProperty,_l=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,pu=(m,r,c)=>r in m?yc(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,nr=(m,r)=>{for(var c in r||(r={}))Es.call(r,c)&&pu(m,c,r[c]);if(_l)for(var c of _l(r))Wl.call(r,c)&&pu(m,c,r[c]);return m};const e2=vo("px"),ef=Mt.document.body,wh={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},h4=class extends aa{constructor(m){super(m);const r=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",c=>`ck-balloon-panel_${c}`),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",e2),left:r.to("left",e2)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(m){this.show();const r=h4.defaultPositions,c=Object.assign({},{element:this.element,positions:[r.southArrowNorth,r.southArrowNorthMiddleWest,r.southArrowNorthMiddleEast,r.southArrowNorthWest,r.southArrowNorthEast,r.northArrowSouth,r.northArrowSouthMiddleWest,r.northArrowSouthMiddleEast,r.northArrowSouthWest,r.northArrowSouthEast,r.viewportStickyNorth],limiter:ef,fitInViewport:!0},m),u=h4._getOptimalPosition(c)||wh,_=parseInt(u.left),C=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:N=!0}=E;this.top=C,this.left=_,this.position=M,this.withArrow=N}pin(m){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(m):this._stopPinning()},this._startPinning(m),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(m){this.attachTo(m);const r=y0(m.target),c=m.limiter?y0(m.limiter):ef;this.listenTo(Mt.document,"scroll",(u,_)=>{const C=_.target,M=r&&C.contains(r),E=c&&C.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Mt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Mt.document,"scroll"),this.stopListening(Mt.window,"resize")}};let td=h4;function y0(m){return pa(m)?m:Gt(m)?m.commonAncestorContainer:"function"==typeof m?y0(m()):null}function n5(m={}){const{sideOffset:r=td.arrowSideOffset,heightOffset:c=td.arrowHeightOffset,stickyVerticalOffset:u=td.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,N)=>nr({top:C(E,N),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,N)=>nr({top:C(E,N),left:E.left-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,N)=>nr({top:C(E,N),left:E.left-N.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,N)=>nr({top:C(E,N),left:E.left-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,N)=>nr({top:C(E,N),left:E.left-N.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-N.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-N.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,N)=>nr({top:C(E,N),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,N)=>nr({top:C(E,N),left:E.right-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,N)=>nr({top:C(E,N),left:E.right-N.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,N)=>nr({top:C(E,N),left:E.right-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,N)=>nr({top:C(E,N),left:E.right-N.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>nr({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,N)=>nr({top:M(E),left:E.left-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,N)=>nr({top:M(E),left:E.left-N.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,N)=>nr({top:M(E),left:E.left-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,N)=>nr({top:M(E),left:E.left-N.width+r,name:"arrow_ne"},_&&{config:_}),southArrowNorthWest:E=>nr({top:M(E),left:E.left+E.width/2-r,name:"arrow_nw"},_&&{config:_}),southArrowNorthMiddleWest:(E,N)=>nr({top:M(E),left:E.left+E.width/2-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,N)=>nr({top:M(E),left:E.left+E.width/2-N.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,N)=>nr({top:M(E),left:E.left+E.width/2-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,N)=>nr({top:M(E),left:E.left+E.width/2-N.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>nr({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,N)=>nr({top:M(E),left:E.right-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,N)=>nr({top:M(E),left:E.right-N.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,N)=>nr({top:M(E),left:E.right-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,N)=>nr({top:M(E),left:E.right-N.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,N)=>nr({top:E.top+E.height/2-N.height/2,left:E.left-N.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,N)=>nr({top:E.top+E.height/2-N.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,N,G,W)=>{const dt=W||G;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-N.width/2,name:"arrowless",config:nr({withArrow:!1},_)}:null}};function C(E,N){return E.top-N.height-c}function M(E){return E.bottom+c}}td.arrowSideOffset=25,td.arrowHeightOffset=10,td.stickyVerticalOffset=20,td._getOptimalPosition=ts,td.defaultPositions=n5();var o5=b(3332);Io()(o5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const a5="ck-tooltip",ed=class extends(eo()){constructor(m){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,ed._editors.add(m),ed._instance)return ed._instance;ed._instance=this,this.tooltipTextView=new aa(m.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new td(m.locale),this.balloonPanelView.class=a5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=S_(this._pinTooltip,600),this.listenTo(Mt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(m){const r=m.ui.view&&m.ui.view.body;ed._editors.delete(m),this.stopListening(m.ui),r&&r.has(this.balloonPanelView)&&r.remove(this.balloonPanelView),ed._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),ed._instance=null)}static getPositioningFunctions(m){const r=ed.defaultBalloonPositions;return{s:[r.southArrowNorth,r.southArrowNorthEast,r.southArrowNorthWest],n:[r.northArrowSouth],e:[r.eastArrowWest],w:[r.westArrowEast],sw:[r.southArrowNorthEast],se:[r.southArrowNorthWest]}[m]}_onEnterOrFocus(m,{target:r}){const c=T0(r);var u;c&&c!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(c,{text:(u=c).dataset.ckeTooltipText,position:u.dataset.ckeTooltipPosition||"s",cssClass:u.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(m,{target:r,relatedTarget:c}){if("mouseleave"===m.name){if(!pa(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=T0(r),_=T0(c);u&&u!==_&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(m,{target:r}){this._currentElementWithTooltip&&(r.contains(this.balloonPanelView.element)&&r.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(m,{text:r,position:c,cssClass:u}){const _=os(ed._editors.values()).ui.view.body;_.has(this.balloonPanelView)||_.add(this.balloonPanelView),this.tooltipTextView.text=r,this.balloonPanelView.pin({target:m,positions:ed.getPositioningFunctions(c)}),this._resizeObserver=new yi(m,()=>{sa(m)||this._unpinTooltip()}),this.balloonPanelView.class=[a5,u].filter(C=>C).join(" ");for(const C of ed._editors)this.listenTo(C.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=m,this._currentTooltipPosition=c}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const m of ed._editors)this.stopListening(m.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){sa(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:ed.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let Uh=ed;function T0(m){return pa(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Uh.defaultBalloonPositions=n5({heightOffset:5,sideOffset:13}),Uh._editors=new Set,Uh._instance=null;const w0=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Wt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),S_(m,r,{leading:u,maxWait:r,trailing:_})};var r5=Object.defineProperty,Cb=Object.getOwnPropertySymbols,g4=Object.prototype.hasOwnProperty,v4=Object.prototype.propertyIsEnumerable,b4=(m,r,c)=>r in m?r5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class A8 extends(eo()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=w0(this._showBalloon.bind(this),50,{leading:!0}),r.on("ready",this._handleEditorReady.bind(this))}destroy(){const r=this._balloonView;r&&(r.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const r=this.editor;(r.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(c){function u(ue){return ue.length>=40&&ue.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const C=_.split("-"),M=C[0],E=C[1];if(!E)return u(c);try{atob(E)}catch{try{if(atob(M),!atob(M).length)return u(c)}catch{return u(c)}}if(M.length<40||M.length>255)return"INVALID";let N="";try{atob(M),N=atob(E)}catch{return"INVALID"}if(8!==N.length)return"INVALID";const G=Number(N.substring(0,4)),W=Number(N.substring(4,6))-1,dt=Number(N.substring(6,8)),Zt=new Date(G,W,dt);return Zt{this._updateLastFocusedEditableElement(),_?this._showBalloon():this._hideBalloon()}),r.ui.focusTracker.on("change:focusedElement",(c,u,_)=>{this._updateLastFocusedEditableElement(),_&&this._showBalloon()}),r.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const r=this.editor,c=this._balloonView=new td,u=nf(r),_=new M0(r.locale,u.label);c.content.add(_),c.set({class:"ck-powered-by-balloon"}),r.ui.view.body.add(c),r.ui.focusTracker.add(c.element),this._balloonView=c}_showBalloon(){if(!this._lastFocusedEditableElement)return;const r=function(c,u){const _=nf(c);var E;return{target:u,positions:["right"===_.side?Mh(u,E=_,(N,G)=>N.left+N.width-G.width-E.horizontalOffset):function(M,E){return Mh(M,E,N=>N.left+E.horizontalOffset)}(u,_)]}}(this.editor,this._lastFocusedEditableElement);r&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(r))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const r=this.editor,u=r.ui.focusTracker.focusedElement;if(!r.ui.focusTracker.isFocused||!u)return void(this._lastFocusedEditableElement=null);const _=Array.from(r.ui.getEditableElementsNames()).map(C=>r.ui.getEditableElement(C));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class M0 extends aa{constructor(r,c){super(r);const u=new Ps,_=this.bindTemplate;u.set({content:'\n',isColorInherited:!1}),u.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...c?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[c]}]:[],u],on:{dragstart:_.to(C=>C.preventDefault())}}]})}}function Mh(m,r,c){return(u,_)=>{const C=new ce(m);if(C.width<350||C.height<50)return null;let M;M="inside"===r.position?C.bottom-_.height:C.bottom-_.height/2,M-=r.verticalOffset;const E=c(C,_),N=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!N||N.getArea()<_.getArea()?null:{top:M,left:E,name:`position_${r.position}-side_${r.side}`,config:{withArrow:!1}}}}function nf(m){const r=m.config.get("ui.poweredBy"),c=r&&r.position||"border";return((m,r)=>{for(var c in r||(r={}))g4.call(r,c)&&b4(m,c,r[c]);if(Cb)for(var c of Cb(r))v4.call(r,c)&&b4(m,c,r[c]);return m})({position:c,label:"Powered by",verticalOffset:"inside"===c?5:0,horizontalOffset:5,side:"ltr"===m.locale.contentLanguageDirection?"right":"left"},r)}var ep=Object.defineProperty,kh=Object.getOwnPropertySymbols,k0=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,np=(m,r,c)=>r in m?ep(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class s5 extends(we()){constructor(r){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const c=r.editing.view;this.editor=r,this.componentFactory=new Aa(r),this.focusTracker=new as,this.tooltipManager=new Uh(r),this.poweredBy=new A8(r),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(c.document,"layoutChanged",this.update.bind(this)),this.listenTo(c,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null,this.editor.keystrokes.stopListening(r);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(r,c){this._editableElementsMap.set(r,c),c.ckeditorInstance||(c.ckeditorInstance=this.editor),this.focusTracker.add(c);const u=()=>{this.editor.editing.view.getDomRoot(r)||this.editor.keystrokes.listenTo(c)};this.isReady?u():this.once("ready",u)}removeEditableElement(r){const c=this._editableElementsMap.get(r);c&&(this._editableElementsMap.delete(r),this.editor.keystrokes.stopListening(c),this.focusTracker.remove(c),c.ckeditorInstance=null)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(r,c={}){r.isRendered?(this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)):r.once("render",()=>{this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)}),this._focusableToolbarDefinitions.push({toolbarView:r,options:c})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const r=this.editor,c=r.config.get("ui.viewportOffset");if(c)return c;const u=r.config.get("toolbar.viewportTopOffset");return u?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:u}):{top:0}}_initFocusTracking(){const r=this.editor,c=r.editing.view;let u,_;r.keystrokes.set("Alt+F10",(C,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const N=this._getCurrentFocusedToolbarDefinition();N&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let G=0;G<_.length;G++){const W=_.shift();if(_.push(W),W!==N&&this._focusFocusableCandidateToolbar(W)){N&&N.options.afterBlur&&N.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(C,M)=>{const E=this._getCurrentFocusedToolbarDefinition();E&&(u?(u.focus(),u=null):r.editing.view.focus(),E.options.afterBlur&&E.options.afterBlur(),M())})}_getFocusableCandidateToolbarDefinitions(){const r=[];for(const c of this._focusableToolbarDefinitions){const{toolbarView:u,options:_}=c;(sa(u.element)||_.beforeFocus)&&r.push(c)}return r.sort((c,u)=>Ab(c)-Ab(u)),r}_getCurrentFocusedToolbarDefinition(){for(const r of this._focusableToolbarDefinitions)if(r.toolbarView.element&&r.toolbarView.element.contains(this.focusTracker.focusedElement))return r;return null}_focusFocusableCandidateToolbar(r){const{toolbarView:c,options:{beforeFocus:u}}=r;return u&&u(),!!sa(c.element)&&(c.focus(),!0)}_handleScrollToTheSelection(r,c){const u=((_,C)=>{for(var M in C||(C={}))k0.call(C,M)&&np(_,M,C[M]);if(kh)for(var M of kh(C))Np.call(C,M)&&np(_,M,C[M]);return _})({top:0,bottom:0,left:0,right:0},this.viewportOffset);c.viewportOffset.top+=u.top,c.viewportOffset.bottom+=u.bottom,c.viewportOffset.left+=u.left,c.viewportOffset.right+=u.right}}function Ab(m){const{toolbarView:r,options:c}=m;let u=10;return sa(r.element)&&u--,c.isContextual&&u--,u}var D0=b(9688);Io()(D0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class yb extends aa{constructor(r){super(r),this.body=new ji(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class Tb extends yb{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,c=new xu;return c.text=r("Rich Text Editor"),c.extendTemplate({attributes:{class:"ck-voice-label"}}),c}}class wb extends aa{constructor(r,c,u){super(r),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=u,this._hasExternalElement=!!this._editableElement,this._editingView=c}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const r=this._editingView;function c(u){r.change(_=>{const C=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",C),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",C)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(C,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class Dh extends wb{constructor(r,c,u,_={}){super(r,c,u);const C=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>C("Editor editing area: %0",this.name))}render(){super.render();const r=this._editingView;r.change(c=>{const u=r.document.getRoot(this.name);c.setAttribute("aria-label",this._generateLabel(this),u)})}}var C4=b(8847);Io()(C4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class af extends C_{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,c)=>{window.alert(c.message)},{priority:"lowest"})}showSuccess(r,c={}){this._showNotification({message:r,type:"success",namespace:c.namespace,title:c.title})}showInfo(r,c={}){this._showNotification({message:r,type:"info",namespace:c.namespace,title:c.title})}showWarning(r,c={}){this._showNotification({message:r,type:"warning",namespace:c.namespace,title:c.title})}_showNotification(r){this.fire(r.namespace?`show:${r.type}:${r.namespace}`:`show:${r.type}`,{message:r.message,type:r.type,title:r.title||""})}}class S0 extends(we()){constructor(r,c){super(),c&&ml(this,c),r&&this.set(r)}}var x4=b(4650);Io()(x4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var L0=b(7676);Io()(L0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Sh=vo("px");class O0 extends lo{constructor(r){super(r),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const c=this.editor.editing.view,u=c.document.selection.editableElement;return u?c.domConverter.mapViewToDom(u.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this._view||this._createPanelView(),this.hasView(r.view))throw new it("contextualballoon-add-view-exist",[this,r]);const c=r.stackId||"main";if(!this._idToStack.has(c))return this._idToStack.set(c,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(c)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(c));const u=this._idToStack.get(c);r.singleViewMode&&this.showStack(c),u.set(r.view,r),this._viewToStack.set(r.view,u),u===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new it("contextualballoon-remove-view-not-exist",[this,r]);const c=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===c.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(c.values())[c.size-2])),1===c.size?(this._idToStack.delete(this._getStackId(c)),this._numberOfStacks=this._idToStack.size):c.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const c=this._idToStack.get(r);if(!c)throw new it("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==c&&this._showView(Array.from(c.values()).pop())}_createPanelView(){this._view=new td(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(c=>c[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)+1;r[c]||(c=0),this.showStack(this._getStackId(r[c]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)-1;r[c]||(c=r.length-1),this.showStack(this._getStackId(r[c]))}_createRotatorView(){const r=new Zb(this.editor.locale),c=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(u,_)=>!_&&u>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(u,_)=>{if(_<2)return"";const C=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[C,_])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new y8(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(c,u)=>!u&&c>=2?Math.min(c-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:c="",withArrow:u=!0,singleViewMode:_=!1}){this.view.class=c,this.view.withArrow=u,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),_&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&(r.limiter||(r=Object.assign({},r,{limiter:this.positionLimiter})),r=Object.assign({},r,{viewportOffsetConfig:this.editor.ui.viewportOffset})),r}}class Zb extends aa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new as,this.buttonPrevView=this._createButtonView(c("Previous"),''),this.buttonNextView=this._createButtonView(c("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",u.to("isNavigationVisible",_=>_?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:u.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,c){const u=new Hr(this.locale);return u.set({label:r,icon:c,tooltip:!0}),u}}class y8 extends aa{constructor(r,c){super(r);const u=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=c,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",u.to("numberOfPanels",_=>_?"":"ck-hidden")],style:{top:u.to("top",Sh),left:u.to("left",Sh),width:u.to("width",Sh),height:u.to("height",Sh)}},children:this.content}),this.on("change:numberOfPanels",(_,C,M,E)=>{M>E?this._addPanels(M-E):this._removePanels(E-M),this.updatePosition()})}_addPanels(r){for(;r--;){const c=new aa;c.setTemplate({tag:"div"}),this.content.add(c),this.registerChild(c)}}_removePanels(r){for(;r--;){const c=this.content.last;this.content.remove(c),this.deregisterChild(c),c.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:c}=this._balloonPanelView,{width:u,height:_}=new ce(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var Mb=b(5868);Io()(Mb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const rf=vo("px");class Db extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new wr({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:c.to("isSticky",u=>u?"block":"none"),height:c.to("isSticky",u=>u?rf(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new wr({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",c.if("isSticky","ck-sticky-panel__content_sticky"),c.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:c.to("isSticky",u=>u?rf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&rf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&rf(u)),marginLeft:c.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Mt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const r=new ce(this.limiterElement);let c=r.getVisible();if(c){const u=new ce(Mt.window);u.top+=this.viewportTopOffset,u.height-=this.viewportTopOffset,c=c.getIntersection(u)}if(c&&r.topc.bottom){const _=Math.max(r.bottom-c.bottom,0)+this.limiterBottomOffset;r.bottom-_>r.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(_):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",C=>!C),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class Pb extends aa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",r.if("isVisible","ck-hidden",c=>!c)],tabindex:-1},children:[{tag:"span",children:[{text:[r.to("primaryText")]}]},{tag:"span",children:[{text:[r.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class T8 extends aa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new ul({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const r of this.children)this.focusTracker.add(r.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Sb=/[\\^$.*+?()[\]{}|]/g,Lb=RegExp(Sb.source);const l5=function(m){return(m=Cg(m))&&Lb.test(m)?m.replace(Sb,"\\$&"):m};var u5=b(6770);Io()(u5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Na=Object.defineProperty,wd=Object.getOwnPropertySymbols,w8=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,Ud=(m,r,c)=>r in m?Na(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class d5 extends aa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new as,this.keystrokes=new jc,this.resultsView=new T8(r),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),c.infoView&&c.infoView.instance?this.infoView=c.infoView.instance:(this.infoView=new Pb,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new ul({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:C})=>{this.resultsCount=_,this.totalItemsCount=C}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",c.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const r=c=>c.stopPropagation();for(const c of this.focusableChildren)this.focusTracker.add(c.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(r){const c=r?new RegExp(l5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,C)=>{for(var M in C||(C={}))w8.call(C,M)&&Ud(_,M,C[M]);if(wd)for(var M of wd(C))Eb.call(C,M)&&Ud(_,M,C[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new sc(this.locale,this._config.queryView);return this.listenTo(r.fieldView,"input",()=>{this.search(r.fieldView.element.value)}),r.on("reset",()=>this.reset()),r.bind("isEnabled").to(this),r}_enableDefaultInfoViewBehavior(){const r=this.locale.t,c=this.infoView;function u(_,{query:C,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(C,M,E):_}this.on("search",(_,C)=>{if(C.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,N;C.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,N=M.notFound.secondary):(E=r("No results found"),N=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,N=M.noSearchableItems.secondary):(E=r("No searchable items"),N=""),c.set({primaryText:u(E,C),secondaryText:u(N,C),isVisible:!0})}})}}var U8=b(8157);Io()(U8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const E0=class extends d5{constructor(m,r){super(m,r),this._config=r;const c=vo("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const u=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[u.if("isVisible","ck-hidden",_=>!_),u.to("_position",_=>`ck-search__results_${_}`)],style:{width:u.to("_width",c)}}}),this.focusTracker.on("change:isFocused",(_,C,M)=>{this._updateResultsVisibility(),M?this.resultsView.element.scrollTop=0:r.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(_,C)=>{this.resultsView.isVisible=!1,C()}),this.listenTo(Mt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:C})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=C,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new ce(this.queryView.fieldView.element).width;const m=E0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:E0.defaultResultsPositions});this.resultsView._position=m?m.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let qp=E0;qp.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],qp._getOptimalPosition=ts;var Fb=b(8960);Io()(Fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Mo=b(498);Io()(Mo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vo("px");var ip=b(9695);Io()(ip.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vo("px"),vo("px");class qb extends s5{constructor(r,c){super(r),this.view=c,this._toolbarConfig=gp(r.config.get("toolbar")),this._elementReplacer=new Ke,this.listenTo(r.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(r){const u=this.view,_=this.editor.editing.view,C=u.editable,M=_.document.getRoot();C.name=M.rootName,u.render();const E=C.element;this.setEditableElement(C.name,E),u.editable.bind("isFocused").to(this.focusTracker),_.attachDomRoot(E),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const r=this.view,c=this.editor.editing.view;this._elementReplacer.restore(),c.detachDomRoot(r.editable.name),r.destroy()}_initToolbar(){const r=this.view;r.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),r.stickyPanel.limiterElement=r.element,r.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:c})=>c||0),r.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(r.toolbar)}_initPlaceholder(){const r=this.editor,c=r.editing.view,u=c.document.getRoot(),_=r.sourceElement;let C;const M=r.config.get("placeholder");M&&(C="string"==typeof M?M:M[this.view.editable.name]),!C&&_&&"textarea"===_.tagName.toLowerCase()&&(C=_.getAttribute("placeholder")),C&&(u.placeholder=C),Y({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const C=new ce(_.element).height;c.viewportOffset.top+=C}else{const C=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",C),setTimeout(()=>{this.stopListening(_,"change:isSticky",C)},20)}}}var Rb=b(3143);Io()(Rb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class M8 extends Tb{constructor(r,c,u={}){super(r),this.stickyPanel=new Db(r),this.toolbar=new ys(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new Dh(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Hb{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof r.crashNumberLimit?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof r.minimumNonErrorTimePeriod?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=c=>{const u="error"in c?c.error:c.reason;u instanceof Error&&this._handleError(u,c)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,c){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(c)}off(r,c){this._listeners[r]=this._listeners[r].filter(u=>u!==c)}_fire(r,...c){const u=this._listeners[r]||[];for(const _ of u)_.apply(this,[null,...c])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,c){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:c instanceof ErrorEvent?c.filename:void 0,lineno:c instanceof ErrorEvent?c.lineno:void 0,colno:c instanceof ErrorEvent?c.colno:void 0,date:this._now()});const u=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:u}),u?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&null!=r.context&&"ready"===this.state&&this._isErrorComingFromThisItem(r)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Lh(m,r=new Set){const c=[m],u=new Set;let _=0;for(;c.length>_;){const C=c[_++];if(!u.has(C)&&F0(C)&&!r.has(C))if(u.add(C),Symbol.iterator in C)try{for(const M of C)c.push(M)}catch{}else for(const M in C)"defaultValue"!==M&&c.push(C[M])}return u}function F0(m){const r=Object.prototype.toString.call(m),c=typeof m;return!("number"===c||"boolean"===c||"string"===c||"symbol"===c||"function"===c||"[object Date]"===r||"[object RegExp]"===r||"[object Module]"===r||null==m||m._watchdogExcluded||m instanceof EventTarget||m instanceof Event)}function zb(m,r,c=new Set){if(m===r&&"object"==typeof(u=m)&&null!==u)return!0;var u;const _=Lh(m,c),C=Lh(r,c);for(const M of _)if(C.has(M))return!0;return!1}var m5=Object.defineProperty,k8=Object.defineProperties,_5=Object.getOwnPropertyDescriptors,I0=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Yb=Object.prototype.propertyIsEnumerable,mc=(m,r,c)=>r in m?m5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,A4=(m,r)=>{for(var c in r||(r={}))Oh.call(r,c)&&mc(m,c,r[c]);if(I0)for(var c of I0(r))Yb.call(r,c)&&mc(m,c,r[c]);return m};class y4 extends Hb{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=w0(this._save.bind(this),"number"==typeof c.saveInterval?c.saveInterval:5e3),r&&(this._creator=(u,_)=>r.create(u,_)),this._destructor=u=>u.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{const r={},c=[],u=this._config.rootsAttributes||{},_={};for(const[N,G]of Object.entries(this._data.roots))G.isLoaded?(r[N]="",_[N]=u[N]||{}):c.push(N);const C=(M=A4({},this._config),k8(M,_5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete C.initialData,C.extraPlugins.push(N0),this._initUsingData?this.create(r,C,C.context):pa(this._elementOrData)?this.create(this._elementOrData,C,C.context):this.create(this._editables,C,C.context)}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,c=this._config,u){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._initUsingData="string"==typeof r||Object.keys(r).length>0&&"string"==typeof Object.values(r)[0],this._config=this._cloneEditorConfiguration(c)||{},this._config.context=u,this._creator(r,this._config))).then(_=>{this._editor=_,_.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=_.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){const r=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=r}catch(c){console.error(c,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){const r=this._editor,c=r.model.document.roots.filter(E=>E.isAttached()&&"$graveyard"!=E.rootName),{plugins:u}=r,_=u.has("CommentsRepository")&&u.get("CommentsRepository"),C=u.has("TrackChanges")&&u.get("TrackChanges"),M={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};c.forEach(E=>{M.roots[E.rootName]={content:JSON.stringify(Array.from(E.getChildren())),attributes:JSON.stringify(Array.from(E.getAttributes())),isLoaded:E._isLoaded}});for(const E of r.model.markers)E._affectsData&&(M.markers[E.name]={rangeJSON:E.getRange().toJSON(),usingOperation:E._managedUsingOperations,affectsData:E._affectsData});return _&&(M.commentThreads=JSON.stringify(_.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),C&&(M.suggestions=JSON.stringify(C.getSuggestions({toJSON:!0,skipNotAttached:!0}))),M}_getEditables(){const r={};for(const c of this.editor.model.document.getRootNames()){const u=this.editor.ui.getEditableElement(c);u&&(r[c]=u)}return r}_isErrorComingFromThisItem(r){return zb(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return Lo(r,(c,u)=>pa(c)||"context"===u?c:void 0)}}class N0{constructor(r){this.editor=r,this._data=r.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",r=>{r.stop(),this.editor.model.enqueueChange({isUndoable:!1},c=>{this._restoreCollaborationData(),this._restoreEditorData(c)}),this.editor.data.fire("ready")},{priority:999})}_createNode(r,c){if("name"in c){const u=r.createElement(c.name,c.attributes);if(c.children)for(const _ of c.children)u._appendChild(this._createNode(r,_));return u}return r.createText(c.data,c.attributes)}_restoreEditorData(r){const c=this.editor;Object.entries(this._data.roots).forEach(([u,{content:_,attributes:C}])=>{const M=JSON.parse(_),E=JSON.parse(C),N=c.model.document.getRoot(u);for(const[G,W]of E)r.setAttribute(G,W,N);for(const G of M){const W=this._createNode(r,G);r.insert(W,N,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:C}=c.model,M=_,{rangeJSON:{start:E,end:N}}=M,G=((xe,Ee)=>{var ln={};for(var Mn in xe)Oh.call(xe,Mn)&&Ee.indexOf(Mn)<0&&(ln[Mn]=xe[Mn]);if(null!=xe&&I0)for(var Mn of I0(xe))Ee.indexOf(Mn)<0&&Yb.call(xe,Mn)&&(ln[Mn]=xe[Mn]);return ln})(M,["rangeJSON"]),W=C.getRoot(E.root),dt=r.createPositionFromPath(W,E.path,E.stickiness),Zt=r.createPositionFromPath(W,N.path,N.stickiness),ue=r.createRange(dt,Zt);r.addMarker(u,A4({range:ue},G))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),C=this.editor.plugins.get("CommentsRepository");C.hasCommentThread(u.threadId)&&C.getCommentThread(u.threadId).remove(),C.addCommentThread(A4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const sf=Symbol("MainQueueId");class f5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===sf;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(sf),this._queues.get(r)]).then(c),C=_.catch(()=>{});return this._queues.set(r,C),_.finally(()=>{this._activeActions--,this._queues.get(r)===C&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function q0(m){return Array.isArray(m)?m:[m]}class R0 extends(W_(J2(c4))){constructor(r,c={}){if(!Eh(r)&&void 0!==c.initialData)throw new it("editor-create-initial-data",null);var C,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",Eh(C=r)?(M=C)instanceof HTMLTextAreaElement?M.value:M.innerHTML:C),Eh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new M8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new qb(this,_),function(C){if(!No(C.updateSourceElement))throw new it("attachtoform-missing-elementapi-interface",C);const M=C.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const N=M.form,G=()=>C.updateSourceElement();No(N.submit)&&(E=N.submit,N.submit=()=>{G(),E.apply(N)}),N.addEventListener("submit",G),C.on("destroy",()=>{N.removeEventListener("submit",G),E&&(N.submit=E)})}var E}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,c={}){return new Promise(u=>{const _=new this(r,c);u(_.initPlugins().then(()=>_.ui.init(Eh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function Eh(m){return pa(m)}R0.Context=g2,R0.EditorWatchdog=y4,R0.ContextWatchdog=class extends Hb{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new f5,this._watchdogConfig=r,this._creator=c=>m.create(c),this._destructor=c=>c.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(m){this._creator=m}setDestructor(m){this._destructor=m}get context(){return this._context}create(m={}){return this._actionQueues.enqueue(sf,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=q0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let u;if(this._watchdogs.has(c.id))throw new Error(`Item with the given id is already added: '${c.id}'.`);if("editor"===c.type)return u=new y4(null,this._watchdogConfig),u.setCreator(c.creator),u._setExcludedProperties(this._contextProps),c.destructor&&u.setDestructor(c.destructor),this._watchdogs.set(c.id,u),u.on("error",(_,{error:C,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:C}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const N=()=>{u.off("restart",N),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",N)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=q0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c,()=>{const u=this._getWatchdog(c);return this._watchdogs.delete(c),u.destroy()})))}destroy(){return this._actionQueues.enqueue(sf,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(sf,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(m=>{console.error("An error happened during destroying the context or items.",m)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(m=>(this._context=m,this._contextProps=Lh(this._context),Promise.all(Array.from(this._watchdogs.values()).map(r=>(r._setExcludedProperties(this._contextProps),r.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const m=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(r=>r.destroy())).then(()=>this._destructor(m))})}_getWatchdog(m){const r=this._watchdogs.get(m);if(!r)throw new Error(`Item with the given id was not registered: ${m}.`);return r}_isErrorComingFromThisItem(m){for(const r of this._watchdogs.values())if(r._isErrorComingFromThisItem(m))return!1;return zb(this._context,m.context)}};class Fh extends jd{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(C,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,N=new lt(c,_);c.fire(N,{dataTransfer:M.dataTransfer,method:C.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),N.stop.called&&M.stopPropagation()}}this.listenTo(c,"paste",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"drop",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"dragover",u("dragging"),{priority:"low"})}onDomEvent(r){const _={dataTransfer:new jf("clipboardData"in r?r.clipboardData:r.dataTransfer,{cacheFiles:"drop"==r.type||"paste"==r.type})};"drop"!=r.type&&"dragover"!=r.type||(_.dropRange=function(C,M){const E=M.target.ownerDocument,N=M.clientX,G=M.clientY;let W;return E.caretRangeFromPoint&&E.caretRangeFromPoint(N,G)?W=E.caretRangeFromPoint(N,G):M.rangeParent&&(W=E.createRange(),W.setStart(M.rangeParent,M.rangeOffset),W.collapse(!0)),W?C.domConverter.domRangeToView(W):null}(this.view,r)),this.fire(r.type,r,_)}}const h5=["figcaption","li"];function g5(m){let r="";if(m.is("$text")||m.is("$textProxy"))r=m.data;else if(m.is("element","img")&&m.hasAttribute("alt"))r=m.getAttribute("alt");else if(m.is("element","br"))r="\n";else{let c=null;for(const u of m.getChildren()){const _=g5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(h5.includes(c.name)||h5.includes(u.name)?r+="\n":r+="\n\n"),r+=_,c=u}}return r}class Rp extends lo{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Fh),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(r,c,u){const _=this.editor.model.getSelectedContent(c);this.fire("outputTransformation",{dataTransfer:r,content:_,method:u})}_setupPasteDrop(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document;this.listenTo(_,"clipboardInput",(C,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||C.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(C,M)=>{const E=M.dataTransfer;let N;if(M.content)N=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(ue,xe)=>1==xe.length?" ":xe).replace(//g,""):E.getData("text/plain")&&(((G=(G=E.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||G.includes("
"))&&(G=`

${G}

`),dt=G),N=this.editor.data.htmlProcessor.toView(dt)}var G;const W=new lt(this,"inputTransformation");this.fire(W,{content:N,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),W.stop.called&&C.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(C,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(C.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(C,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(C,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,C.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(C,M)=>{r.model.canEditAt(r.model.document.selection)?_(C,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(C,M)=>{const E=r.data.toView(M.content);u.fire("clipboardOutput",{dataTransfer:M.dataTransfer,content:E,method:M.method})},{priority:"low"}),this.listenTo(u,"clipboardOutput",(C,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",g5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class v5{constructor(r,c=20){this._batch=null,this.model=r,this._size=0,this.limit=c,this._isLocked=!1,this._changeCallback=(u,_)=>{_.isLocal&&_.isUndoable&&_!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){this.isLocked&&!r||(this._batch=null,this._size=0)}}class D8 extends Ta{constructor(r,c){super(r),this._buffer=new v5(r.model,c),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const c=this.editor.model,u=c.document,_=r.text||"",C=_.length;let M=u.selection;if(r.selection?M=r.selection:r.range&&(M=c.createSelection(r.range)),!c.canEditAt(M))return;const E=r.resultRange;c.enqueueChange(this._buffer.batch,N=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(N.createText(_,u.selection.getAttributes()),M),E?N.setSelection(E):M.is("documentSelection")||N.setSelection(M),this._buffer.unlock(),this._buffer.input(C)})}}const P8=["insertText","insertReplacementText"];class Bb extends Mu{constructor(r){super(r),this.focusObserver=r.getObserver(V1),D_isAndroid&&P8.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:C,targetRanges:M,inputType:E,domEvent:N}=_;if(!P8.includes(E))return;this.focusObserver.flush();const G=new lt(c,"insertText");c.fire(G,new Gd(r,N,{text:C,selection:r.createSelection(M)})),G.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:C})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new Gd(r,C,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Vb extends lo{static get pluginName(){return"Input"}init(){const r=this.editor,c=r.model,u=r.editing.view,_=c.document.selection;u.addObserver(Bb);const C=new D8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",C),r.commands.add("input",C),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:N,selection:G,resultRange:W}=E,dt=Array.from(G.getRanges()).map(xe=>r.editing.mapper.toModelRange(xe));let Zt=N;if(D_isAndroid){const xe=Array.from(dt[0].getItems()).reduce((Ee,ln)=>Ee+(ln.is("$textProxy")?ln.data:""),"");xe&&(xe.length<=Zt.length?Zt.startsWith(xe)&&(Zt=Zt.substring(xe.length),dt[0].start=dt[0].start.getShiftedBy(xe.length)):xe.startsWith(Zt)&&(dt[0].start=dt[0].start.getShiftedBy(Zt.length),Zt=""))}const ue={text:Zt,selection:c.createSelection(dt)};W&&(ue.resultRange=r.editing.mapper.toModelRange(W)),r.execute("insertText",ue),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&b5(c,C)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||b5(c,C)})}}function b5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class cf extends Ta{constructor(r,c){super(r),this.direction=c,this._buffer=new v5(r.model,r.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(r={}){const c=this.editor.model,u=c.document;c.enqueueChange(this._buffer.batch,_=>{this._buffer.lock();const C=_.createSelection(r.selection||u.selection);if(!c.canEditAt(C))return;const M=r.sequence||1,E=C.isCollapsed;if(C.isCollapsed&&c.modifySelection(C,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(C,M))return void this.editor.execute("paragraph",{selection:C});if(C.isCollapsed)return;let N=0;C.getFirstRange().getMinimalFlatRanges().forEach(G=>{N+=ne(G.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(C,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(N),_.setSelection(C),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const c=this.editor.model,u=c.document.selection,_=c.schema.getLimitElement(u);if(!u.isCollapsed||!u.containsEntireContent(_)||!c.schema.checkChild(_,"paragraph"))return!1;const C=_.getChild(0);return!C||!C.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),C=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(C,_),r.setSelection(C,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),C=u.schema.getLimitElement(_),M=C.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(C,"paragraph")&&"paragraph"!=M.name}}const n2="selection",Ih="backward",Za="forward",jb={deleteContent:{unit:n2,direction:Ih},deleteContentBackward:{unit:"codePoint",direction:Ih},deleteWordBackward:{unit:"word",direction:Ih},deleteHardLineBackward:{unit:n2,direction:Ih},deleteSoftLineBackward:{unit:n2,direction:Ih},deleteContentForward:{unit:"character",direction:Za},deleteWordForward:{unit:"word",direction:Za},deleteHardLineForward:{unit:n2,direction:Za},deleteSoftLineForward:{unit:n2,direction:Za}};class Jb extends Mu{constructor(r){super(r);const c=r.document;let u=0;c.on("keydown",()=>{u++}),c.on("keyup",()=>{u=0}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:N}=C,G=jb[N];if(!G)return;const W={direction:G.direction,unit:G.unit,sequence:u};W.unit==n2&&(W.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===N&&(D_isAndroid&&(W.sequence=1),function(Zt){if(1!=Zt.length||Zt[0].isCollapsed)return!1;const ue=Zt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let xe=0;for(const{nextPosition:Ee}of ue){if(Ee.parent.is("$text")){const ln=Ee.parent.data,Mn=Ee.offset;if(cn(ln,Mn)||fd(ln,Mn)||Zl(ln,Mn))continue;xe++}else xe++;if(xe>1)return!0}return!1}(M)&&(W.unit=n2,W.selectionToRemove=r.createSelection(M)));const dt=new yp(c,"delete",M[0]);c.fire(dt,new Gd(r,E,W)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const C=_.view,M=C.document;let E=null,N=!1;function G(dt){return dt==$a.backspace||dt==$a.delete}function W(dt){return dt==$a.backspace?Ih:Za}M.on("keydown",(dt,{keyCode:Zt})=>{E=Zt,N=!1}),M.on("keyup",(dt,{keyCode:Zt,domEvent:ue})=>{const xe=M.selection,Ee=_.isEnabled&&Zt==E&&G(Zt)&&!xe.isCollapsed&&!N;if(E=null,Ee){const ln=xe.getFirstRange(),Mn=new yp(M,"delete",ln),di={unit:n2,direction:W(Zt),selectionToRemove:xe};M.fire(Mn,new Gd(C,ue,di))}}),M.on("beforeinput",(dt,{inputType:Zt})=>{const ue=jb[Zt];G(E)&&ue&&ue.direction==W(E)&&(N=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Zt,data:ue})=>{E==$a.delete&&"insertText"==Zt&&"\x7f"==ue&&dt.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class t_ extends lo{static get pluginName(){return"Delete"}init(){const r=this.editor,c=r.editing.view,u=c.document,_=r.model.document;c.addObserver(Jb),this._undoOnBackspace=!1;const C=new cf(r,"forward");r.commands.add("deleteForward",C),r.commands.add("forwardDelete",C),r.commands.add("delete",new cf(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:N,sequence:G,selectionToRemove:W,unit:dt}=E,Zt="forward"===N?"deleteForward":"delete",ue={sequence:G};if("selection"==dt){const xe=Array.from(W.getRanges()).map(Ee=>r.editing.mapper.toModelRange(Ee));ue.selection=r.model.createSelection(xe)}else ue.unit=dt;r.execute(Zt,ue),c.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(u,"delete",(M,E)=>{this._undoOnBackspace&&"backward"==E.direction&&1==E.sequence&&"codePoint"==E.unit&&(this._undoOnBackspace=!1,r.execute("undo"),E.preventDefault(),M.stop())},{context:"$capture"}),this.listenTo(_,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class S8 extends lo{static get requires(){return[Vb,t_]}static get pluginName(){return"Typing"}}function T4(m,r){let c=m.start;return{text:Array.from(m.getWalker({ignoreElementEnd:!1})).reduce((u,{item:_})=>_.is("$text")||_.is("$textProxy")?u+_.data:(c=r.createPositionAfter(_),""),""),range:r.createRange(c,m.end)}}class Qb extends(we()){constructor(r,c){super(),this.model=r,this.testCallback=c,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(r.document.selection),this.stopListening(r.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const r=this.model.document;this.listenTo(r.selection,"change:range",(c,{directChange:u})=>{u&&(r.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(r,"change:data",(c,u)=>{!u.isUndo&&u.isLocal&&this._evaluateTextBeforeSelection("data",{batch:u})})}_evaluateTextBeforeSelection(r,c={}){const u=this.model,_=u.document.selection,C=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=T4(C,u),N=this.testCallback(M);if(!N&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!N,N){const G=Object.assign(c,{text:M,range:E});"object"==typeof N&&Object.assign(G,N),this.fire(`matched:${r}`,G)}}}class C5 extends lo{constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const r=this.editor,_=r.locale,C=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!C.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const N=E.keyCode==$a.arrowright,G=E.keyCode==$a.arrowleft;if(!N&&!G)return;const W=_.contentLanguageDirection;let dt=!1;dt="ltr"===W&&N||"rtl"===W&&G?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(C,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&H0(C.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const c=this.attributes,u=this.editor.model.document.selection,_=u.getFirstPosition();return!(this._isGravityOverridden||_.isAtStart&&w4(u,c)||!H0(_,c)||(oa(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,C=_.getFirstPosition();return this._isGravityOverridden?(oa(r),this._restoreGravity(),Zd(u,c,C),!0):C.isAtStart?!!w4(_,c)&&(oa(r),Zd(u,c,C),!0):(E=c,!(!H0(C.getShiftedBy(-1),E)||(C.isAtEnd&&!w4(_,c)&&H0(C,c)?(oa(r),Zd(u,c,C),0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),1))));var E}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function w4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function Zd(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const C=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,N]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||C.push([E,N]);_.setSelectionAttribute(C)}else _.removeSelectionAttribute(r)})}function oa(m){m.preventDefault()}function H0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const C=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==C)return!0}return!1}const x5={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:$d('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:$d("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:$d("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:$d('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:$d('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:$d("'"),to:[null,"\u201a",null,"\u2019"]}},U4={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},A5=["symbols","mathematical","typography","quotes"];function Dl(m){return"string"==typeof m?new RegExp(`(${l5(m)})$`):m}function Z4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function y5(m){return(m.textNode?m.textNode:m.nodeAfter).getAttributes()}function $d(m){return new RegExp(`(^|\\s)(${m})([^${m}]*)(${m})$`)}function Ti(m,r,c,u){return u.createRange(zn(m,r,c,!0,u),zn(m,r,c,!1,u))}function zn(m,r,c,u,_){let C=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;C&&C.getAttribute(r)==c;)M=C,C=u?C.previousSibling:C.nextSibling;return M?_.createPositionAt(M,u?"before":"after"):m}function*H(m,r){for(const c of r)c&&m.getAttributeProperties(c[0]).copyOnEnter&&(yield c)}class Nh extends Ta{execute(){this.editor.model.change(r=>{this.enterBlock(r),this.fire("afterExecute",{writer:r})})}enterBlock(r){const c=this.editor.model,u=c.document.selection,_=c.schema,C=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,N=M.end.parent;if(_.isLimit(E)||_.isLimit(N))return C||E!=N||c.deleteContent(u),!1;if(C){const G=H(r.model.schema,u.getAttributes());return Oc(r,M.start),r.setSelectionAttribute(G),!0}{const G=!(M.start.isAtStart&&M.end.isAtEnd),W=E==N;if(c.deleteContent(u,{leaveUnmerged:G}),G){if(W)return Oc(r,u.focus),!0;r.setSelection(N,0)}}return!1}}function Oc(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const ny={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class M4 extends Mu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,C)=>{u=C.shiftKey}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;let M=C.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=C.domEvent,N=ny[M];if(!N)return;const G=new yp(c,"enter",C.targetRanges[0]);c.fire(G,new Gd(r,E,{isSoft:N.isSoft})),G.stop.called&&_.stop()})}observe(){}stopObserving(){}}class z0 extends lo{static get pluginName(){return"Enter"}init(){const r=this.editor,c=r.editing.view,u=c.document;c.addObserver(M4),r.commands.add("enter",new Nh(r)),this.listenTo(u,"enter",(_,C)=>{u.isComposing||C.preventDefault(),C.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class iy extends Ta{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,C,M){const E=M.isCollapsed,N=M.getFirstRange(),W=N.end.parent,dt=N.start.parent==W;if(E){const Zt=H(_.schema,M.getAttributes());Ma(_,C,N.end),C.removeSelectionAttribute(M.getAttributeKeys()),C.setSelectionAttribute(Zt)}else{const Zt=!(N.start.isAtStart&&N.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Zt}),dt?Ma(_,C,M.focus):Zt&&C.setSelection(W,0)}})(r,u,c.selection),this.fire("afterExecute",{writer:u})})}refresh(){const r=this.editor.model;this.isEnabled=function(u,_){if(_.rangeCount>1)return!1;const C=_.anchor;if(!C||!u.checkChild(C,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,N=M.end.parent;return!((k4(E,u)||k4(N,u))&&E!==N)}(r.schema,r.document.selection)}}function Ma(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function k4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||k4(m.parent,r))}class L8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,C=_.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),u.for("upcast").elementToElement({model:"softBreak",view:"br"}),u.for("downcast").elementToElement({model:"softBreak",view:(M,{writer:E})=>E.createEmptyElement("br")}),_.addObserver(M4),r.commands.add("shiftEnter",new iy(r)),this.listenTo(C,"enter",(M,E)=>{C.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class Wb extends(Le()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const C=u[0];_===C||e_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const C=u[0];_===C||e_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(C=>C.id===r.id);if(e_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&O8(c[_],r);)_++;c.splice(_,0,r)}_removeDescriptor(r){const c=this._stack,u=c.findIndex(_=>_.id===r);u>-1&&c.splice(u,1)}}function e_(m,r){return m&&r&&m.priority==r.priority&&lf(m.classes)==lf(r.classes)}function O8(m,r){return m.priority>r.priority||!(m.prioritylf(r.classes)}function lf(m){return Array.isArray(m)?m.sort().join(","):m}const $b="ck-widget_selected";function Pl(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function uf(m,r,c={}){if(!m.is("containerElement"))throw new it("widget-to-widget-wrong-element-type",null,{element:m});return r.setAttribute("contenteditable","false",m),r.addClass("ck-widget",m),r.setCustomProperty("widget",!0,m),m.getFillerOffset=F8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const C=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),N=new Ps;return N.set("content",''),N.render(),E.appendChild(N.element),E});_.insert(_.createPositionAt(u,0),C),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),T5(m,r),m;var _}function E8(m,r,c){if(r.classes&&c.addClass(Ds(r.classes),m),r.attributes)for(const u in r.attributes)c.setAttribute(u,r.attributes[u],m)}function Kb(m,r,c){if(r.classes&&c.removeClass(Ds(r.classes),m),r.attributes)for(const u in r.attributes)c.removeAttribute(u,m)}function T5(m,r,c=E8,u=Kb){const _=new Wb;_.on("change:top",(C,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(C,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(C,M,E)=>_.remove(M,E),m)}function w5(m,r,c={}){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],m),r.setAttribute("role","textbox",m),c.label&&r.setAttribute("aria-label",c.label,m),r.setAttribute("contenteditable",m.isReadOnly?"false":"true",m),m.on("change:isReadOnly",(u,_,C)=>{r.setAttribute("contenteditable",C?"false":"true",m)}),m.on("change:isFocused",(u,_,C)=>{C?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),T5(m,r),m}function D4(m,r){const c=m.getSelectedElement();if(c){const u=nd(m);if(u)return r.createRange(r.createPositionAt(c,u))}return G2(m,r)}function F8(){return null}const i_="widget-type-around";function op(m,r,c){return!!m&&Pl(m)&&!c.isInline(r)}function nd(m){return m.getAttribute(i_)}var Xb=b(4921);Io()(Xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const eC=["before","after"],P4=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,S4="ck-widget__type-around_disabled";class nC extends lo{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[z0,t_]}init(){const r=this.editor,c=r.editing.view;this.on("change:isEnabled",(u,_,C)=>{c.change(M=>{for(const E of c.document.roots)C?M.removeClass(S4,E):M.addClass(S4,E)}),C||r.model.change(M=>{M.removeSelectionAttribute(i_)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(r,c){const u=this.editor,_=u.editing.view,C=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:C}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...C)=>{this.isEnabled&&u(...C)},_)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,c=nd(r);if(!c)return!1;const u=r.getSelectedElement();return this._insertParagraph(u,c),!0}_enableTypeAroundUIInjection(){const r=this.editor,c=r.model.schema,u=r.locale.t,_={before:u("Insert paragraph before block"),after:u("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(C,M,E)=>{const N=E.mapper.toViewElement(M.item);N&&op(N,M.item,c)&&(function(G,W,dt){const Zt=G.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(ue){const xe=this.toDomElement(ue);return function(Ee,ln){for(const Mn of eC){const di=new wr({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Mn}`],title:ln[Mn],"aria-hidden":"true"},children:[Ee.ownerDocument.importNode(P4,!0)]});Ee.appendChild(di.render())}}(xe,W),function(Ee){const ln=new wr({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Ee.appendChild(ln.render())}(xe),xe});G.insert(G.createPositionAt(dt,"end"),Zt)}(E.writer,_,N),N.getCustomProperty("widgetLabel").push(()=>this.isEnabled?u("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,c=r.model,u=c.document.selection,_=c.schema;function M(E){return`ck-widget_type-around_show-fake-caret_${E}`}this._listenToIfEnabled(r.editing.view.document,"arrowKey",(E,N)=>{this._handleArrowKeyPress(E,N)},{context:[Pl,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,N)=>{N.directChange&&r.model.change(G=>{G.removeSelectionAttribute(i_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&op(r.editing.mapper.toViewElement(E),E,_)||r.model.change(N=>{N.removeSelectionAttribute(i_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,N,G)=>{const W=G.writer;if(this._currentFakeCaretModelElement){const xe=G.mapper.toViewElement(this._currentFakeCaretModelElement);xe&&(W.removeClass(eC.map(M),xe),this._currentFakeCaretModelElement=null)}const dt=N.selection.getSelectedElement();if(!dt)return;const Zt=G.mapper.toViewElement(dt);if(!op(Zt,dt,_))return;const ue=nd(N.selection);ue&&(W.addClass(M(ue),Zt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,N,G)=>{G||r.model.change(W=>{W.removeSelectionAttribute(i_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,C=_.document.selection,M=_.schema,E=u.editing.view,N=function(dt,Zt){const ue=d1(dt,Zt);return"down"===ue||"right"===ue}(c.keyCode,u.locale.contentLanguageDirection),G=E.document.selection.getSelectedElement();let W;op(G,u.editing.mapper.toModelElement(G),M)?W=this._handleArrowKeyPressOnSelectedWidget(N):C.isCollapsed?W=this._handleArrowKeyPressWhenSelectionNextToAWidget(N):c.shiftKey||(W=this._handleArrowKeyPressWhenNonCollapsedSelection(N)),W&&(c.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const c=this.editor.model,u=nd(c.document.selection);return c.change(_=>u?u!==(r?"after":"before")&&(_.removeSelectionAttribute(i_),!0):(_.setSelectionAttribute(i_,r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const c=this.editor,u=c.model,_=u.schema,C=c.plugins.get("Widget"),M=C._getObjectElementNextToSelection(r);return!!op(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{C._setSelectionOverElement(M),E.setSelectionAttribute(i_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,C=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!op(C.toViewElement(E),E,_)&&(u.change(N=>{N.setSelection(E,"on"),N.setSelectionAttribute(i_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const C=_.domTarget.closest(".ck-widget__type-around__button");if(!C)return;const M=C.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(G,W){const dt=G.closest(".ck-widget");return W.mapDomToView(dt)}(C,c.domConverter),N=r.editing.mapper.toModelElement(E);this._insertParagraph(N,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,C)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),N=r.model.schema;let G;this._insertParagraphAccordingToFakeCaretPosition()?G=!0:op(E,M,N)&&(this._insertParagraph(M,C.isSoft?"before":"after"),G=!0),G&&(C.preventDefault(),_.stop())},{context:Pl})}_enableInsertingParagraphsOnTypingKeystroke(){const r=this.editor.editing.view.document;this._listenToIfEnabled(r,"insertText",(c,u)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(u.selection=r.selection)},{priority:"high"}),D_isAndroid?this._listenToIfEnabled(r,"keydown",(c,u)=>{229==u.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(r,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const r=this.editor,u=r.model,_=u.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(C,M)=>{if("atTarget"!=C.eventPhase)return;const E=nd(u.document.selection);if(!E)return;const N=M.direction,G=u.document.selection.getSelectedElement(),W="forward"==N;if("before"===E===W)r.execute("delete",{selection:u.createSelection(G,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(G,E),N);if(dt)if(dt.isCollapsed){const Zt=u.createSelection(dt.start);if(u.modifySelection(Zt,{direction:N}),Zt.focus.isEqual(dt.start)){const ue=function(xe,Ee){let ln=Ee;for(const Mn of Ee.getAncestors({parentFirst:!0})){if(Mn.childCount>1||xe.isLimit(Mn))break;ln=Mn}return ln}(_,dt.start.parent);u.deleteContent(u.createSelection(ue,"on"),{doNotAutoparagraph:!0})}else u.change(ue=>{ue.setSelection(dt),r.execute(W?"deleteForward":"delete")})}else u.change(Zt=>{Zt.setSelection(dt),r.execute(W?"deleteForward":"delete")})}M.preventDefault(),C.stop()},{context:Pl})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[C,M])=>{if(M&&!M.is("documentSelection"))return;const E=nd(u);return E?(_.stop(),c.change(N=>{const G=u.getSelectedElement(),W=c.createPositionAt(G,E),dt=N.createSelection(W),Zt=c.insertContent(C,dt);return N.setSelection(dt),Zt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,C,M={}]=_;if(C&&!C.is("documentSelection"))return;const E=nd(c);E&&(M.findOptimalPosition=E,_[3]=M)},{priority:"high"})}_enableDeleteContentIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(u,[_])=>{_&&!_.is("documentSelection")||nd(c)&&u.stop()},{priority:"high"})}}function oC(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),C="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:N}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(N==C&&u.isBlock(E))return null}return null}function df(m,r,c){const u="backward"==c?r.end:r.start;if(m.checkChild(u,"$text"))return u;for(const{nextPosition:_}of r.getWalker({direction:c}))if(m.checkChild(_,"$text"))return _;return null}var qh=b(3488);Io()(qh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Y0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[nC,t_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{const E=M.writer,N=C.selection;if(N.isCollapsed)return;const G=N.getSelectedElement();if(!G)return;const W=r.editing.mapper.toViewElement(G);var dt;Pl(W)&&M.consumable.consume(N,"selection")&&E.setSelection(E.createRangeOn(W),{fake:!0,label:(dt=W,dt.getCustomProperty("widgetLabel").reduce((Zt,ue)=>"function"==typeof ue?Zt?Zt+". "+ue():ue():Zt?Zt+". "+ue:ue,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,N=E.document.selection;let G=null;for(const W of N.getRanges())for(const dt of W){const Zt=dt.item;Pl(Zt)&&!I8(Zt,G)&&(E.addClass($b,Zt),this._previouslySelected.add(Zt),G=Zt)}},{priority:"low"}),c.addObserver(gh),this.listenTo(u,"mousedown",(..._)=>this._onMousedown(..._)),this.listenTo(u,"arrowKey",(..._)=>{this._handleSelectionChangeOnArrowKeyPress(..._)},{context:[Pl,"$text"]}),this.listenTo(u,"arrowKey",(..._)=>{this._preventDefaultOnArrowKeyPress(..._)},{context:"$root"}),this.listenTo(u,"arrowKey",function iC(m){const r=m.model;return(c,u)=>{const C=u.keyCode==$a.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=$a.arrowup&&!C)return;const N=C;if(M&&!(W=E).isCollapsed&&W.isBackward==N)return;var W;const G=function(W,dt,Zt){const ue=W.model;if(Zt){const xe=dt.isCollapsed?dt.focus:dt.getLastPosition(),Ee=oC(ue,xe,"forward");if(!Ee)return null;const ln=ue.createRange(xe,Ee),Mn=df(ue.schema,ln,"backward");return Mn?ue.createRange(xe,Mn):null}{const xe=dt.isCollapsed?dt.focus:dt.getFirstPosition(),Ee=oC(ue,xe,"backward");if(!Ee)return null;const ln=ue.createRange(Ee,xe),Mn=df(ue.schema,ln,"forward");return Mn?ue.createRange(Mn,xe):null}}(m,E,N);if(G){if(G.isCollapsed&&(E.isCollapsed||M))return;(G.isCollapsed||function(W,dt,Zt){const ue=W.model,xe=W.view.domConverter;if(Zt){const Ri=ue.createSelection(dt.start);ue.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=ue.createRange(Ri.focus,dt.end))}const Ee=W.mapper.toViewRange(dt),ln=xe.viewRangeToDom(Ee),Mn=ce.getDomRangeRects(ln);let di;for(const Ri of Mn)if(void 0!==di){if(Math.round(Ri.top)>=di)return!1;di=Math.max(di,Math.round(Ri.bottom))}else di=Math.round(Ri.bottom);return!0}(m,G,N))&&(r.change(W=>{const dt=N?G.end:G.start;if(M){const Zt=r.createSelection(E.anchor);Zt.setFocus(dt),W.setSelection(Zt)}else W.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,C)=>{this._handleDelete("forward"==C.direction)&&(C.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,C=_.document;let M=c.target;if(function(N){let G=N;for(;G;){if(G.is("editableElement")&&!G.is("rootElement"))return!0;if(Pl(G))return!1;G=G.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const N=u.editing.mapper,G=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,W=N.toModelElement(G);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(W,"in")})}return}if(!Pl(M)&&(M=M.findAncestor(Pl),!M))return;D_isAndroid&&c.preventDefault(),C.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,C=_.schema,M=_.document.selection,E=M.getSelectedElement(),N=d1(u,this.editor.locale.contentLanguageDirection),G="down"==N||"right"==N,W="up"==N||"down"==N;if(E&&C.isObject(E)){const Zt=G?M.getLastPosition():M.getFirstPosition(),ue=C.getNearestSelectionRange(Zt,G?"forward":"backward");return void(ue&&(_.change(xe=>{xe.setSelection(ue)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Zt=M.getFirstPosition(),ue=M.getLastPosition(),xe=Zt.nodeAfter,Ee=ue.nodeBefore;return void((xe&&C.isObject(xe)||Ee&&C.isObject(Ee))&&(_.change(ln=>{ln.setSelection(G?ue:Zt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(G);if(dt&&C.isObject(dt)){if(C.isInline(dt)&&W)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,C=u.document.selection.getSelectedElement();C&&_.isObject(C)&&(c.preventDefault(),r.stop())}_handleDelete(r){const c=this.editor.model.document.selection;if(!this.editor.model.canEditAt(c)||!c.isCollapsed)return;const u=this._getObjectElementNextToSelection(r);return u?(this.editor.model.change(_=>{let C=c.anchor.parent;for(;C.isEmpty;){const M=C;C=M.parent,_.remove(M)}this._setSelectionOverElement(u)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(c=>{c.setSelection(c.createRangeOn(r))})}_getObjectElementNextToSelection(r){const c=this.editor.model,u=c.schema,_=c.document.selection,C=c.createSelection(_);if(c.modifySelection(C,{direction:r?"forward":"backward"}),C.isEqual(_))return null;const M=r?C.focus.nodeBefore:C.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass($b,c);this._previouslySelected.clear()}}function I8(m,r){return!!r&&Array.from(m.getAncestors()).includes(r)}class B0 extends lo{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[O0]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const c=r.plugins.get("BalloonToolbar");this.listenTo(c,"show",u=>{(function(_){const C=_.getSelectedElement();return!(!C||!Pl(C))})(r.editing.view.document.selection)&&u.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:c,items:u,getRelatedElement:_,balloonClassName:C="ck-toolbar-container"}){if(!u.length)return void Tt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,N=new ys(M.locale);if(N.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new it("widget-toolbar-duplicated",this,{toolbarId:r});const G={view:N,getRelatedElement:_,balloonClassName:C,itemsConfig:u,initialized:!1};M.ui.addToolbar(N,{isContextual:!0,beforeFocus:()=>{const W=_(M.editing.view.document.selection);W&&this._showToolbar(G,W)},afterBlur:()=>{this._hideToolbar(G)}}),this._toolbarDefinitions.set(r,G)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const C=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&C)if(this.editor.ui.focusTracker.isFocused){const M=C.getAncestors().length;M>r&&(r=M,c=C,u=_)}else this._isToolbarVisible(_)&&this._hideToolbar(_);else this._isToolbarInBalloon(_)&&this._hideToolbar(_)}u&&this._showToolbar(u,c)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,c){this._isToolbarVisible(r)?U5(this.editor,c):this._isToolbarInBalloon(r)||(r.initialized||(r.initialized=!0,r.view.fillFromConfig(r.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:r.view,position:Z5(this.editor,c),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const u of this._toolbarDefinitions.values())if(this._isToolbarVisible(u)){const _=u.getRelatedElement(this.editor.editing.view.document.selection);U5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function U5(m,r){const c=m.plugins.get("ContextualBalloon"),u=Z5(m,r);c.updatePosition(u)}function Z5(m,r){const u=td.defaultPositions;return{target:m.editing.view.domConverter.mapViewToDom(r),positions:[u.northArrowSouth,u.northArrowSouthWest,u.northArrowSouthEast,u.southArrowNorth,u.southArrowNorthWest,u.southArrowNorthEast,u.viewportStickyNorth]}}we(),we();var rC=b(8506);Io()(rC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const k5=vo("px");class N8 extends aa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",r.if("isVisible","ck-hidden",c=>!c)],style:{left:r.to("left",c=>k5(c)),top:r.to("top",c=>k5(c)),width:r.to("width",c=>k5(c))}}})}}class D5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=Tr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=w0(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=w0(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new N8,this._domEmitter=new(eo()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:r}of this._scrollables.values())r.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(r,c,u,_,C){this.removeDropMarkerDelayed.cancel();const M=sC(this.editor,r,c,u,_,C);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,C){const M=sC(this.editor,r,c,u,_,C);return this.removeDropMarker(),M}removeDropMarker(){const r=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,r.markers.has("drop-target")&&r.change(c=>{c.removeMarker("drop-target")})}_setupDropMarker(){const r=this.editor;r.ui.view.body.add(this._dropTargetLineView),r.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),r.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(c,{writer:u})=>{if(r.model.schema.checkChild(c.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(u);c.markerRange.isCollapsed?this._updateDropTargetLine(c.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(r){const c=this.editor,u=c.model.markers;c.model.change(_=>{u.has("drop-target")?u.get("drop-target").getRange().isEqual(r)||_.updateMarker("drop-target",{range:r}):_.addMarker("drop-target",{range:r,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(r){return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(c){const u=this.toDomElement(c);return u.append("\u2060",c.createElement("span"),"\u2060"),u})}_updateDropTargetLine(r){const c=this.editor.editing,u=r.start.nodeBefore,_=r.start.nodeAfter,C=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,N=_?c.mapper.toViewElement(_):null,G=N?c.view.domConverter.mapViewToDom(N):null,W=c.mapper.toViewElement(C),dt=c.view.domConverter.mapViewToDom(W),Zt=this._getScrollableRect(W),{scrollX:ue,scrollY:xe}=Mt.window,Ee=E?new ce(E):null,ln=G?new ce(G):null,Mn=new ce(dt).excludeScrollbarsAndBorders(),di=Ee?Ee.bottom:Mn.top,Ri=ln?ln.top:Mn.bottom,Jo=Mt.window.getComputedStyle(dt),Da=di<=Ri?(di+Ri)/2:Ri;if(Zt.topZt.is("element")&&!oy(m,Zt));let W=0,dt=G.length;if(0==dt)return M.createRange(M.createPositionAt(N,"end"));for(;Wr in m?cC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class H8 extends lo{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(eo())}static get pluginName(){return"DragDropBlockToolbar"}init(){const r=this.editor;if(this.listenTo(r,"change:isReadOnly",(c,u,_)=>{_?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),D_isAndroid&&this.forceDisabled("noAndroidSupport"),r.plugins.has("BlockToolbar")){const c=r.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(c,"dragstart",(u,_)=>this._handleBlockDragStart(_)),this._domEmitter.listenTo(Mt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,C)=>{c.setAttribute("draggable",C?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,C=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(C[0]),c.createPositionAfter(C[C.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(Fh).onDomEvent(r)}_handleBlockDragging(r){if(!this.isEnabled||!this._isBlockDragging)return;const c=r.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),u=r.clientY,_=document.elementFromPoint(c,u),C=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&C.getObserver(Fh).onDomEvent((M=((N,G)=>{for(var W in G||(G={}))R8.call(G,W)&&uC(N,W,G[W]);if(pf)for(var W of pf(G))P5.call(G,W)&&uC(N,W,G[W]);return N})({},r),q8(M,lC({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var dC=b(903);Io()(dC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class mC extends lo{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Tr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(eo())}static get pluginName(){return"DragDrop"}static get requires(){return[Rp,Y0,D5,H8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(Fh),c.addObserver(gh),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,C)=>{C?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,C)=>{C||this._finalizeDragging(!1)}),D_isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=r.plugins.get(D5);this.listenTo(_,"dragstart",(M,E)=>{if(E.target&&E.target.is("editableElement")||(this._prepareDraggedRange(E.target),!this._draggedRange))return void E.preventDefault();this._draggingUid=Dt(),E.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",E.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const N=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,N,"dragstart");const{dataTransfer:G,domTarget:W,domEvent:dt}=E,{clientX:Zt}=dt;this._updatePreview({dataTransfer:G,domTarget:W,clientX:Zt}),E.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(_,"dragend",(M,E)=>{this._finalizeDragging(!E.dataTransfer.isCanceled&&"move"==E.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Mt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{C.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:N,clientY:G}=E.domEvent;C.updateDropMarker(E.target,E.targetRanges,N,G,this._blockMode),this._draggedRange||(E.dataTransfer.dropEffect="copy"),D_isGecko||("copy"==E.dataTransfer.effectAllowed?E.dataTransfer.dropEffect="copy":["all","copyMove"].includes(E.dataTransfer.effectAllowed)&&(E.dataTransfer.dropEffect="move")),M.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get(D5);this.listenTo(c,"clipboardInput",(_,C)=>{if("drop"!=C.method)return;const{clientX:M,clientY:E}=C.domEvent,N=u.getFinalDropRange(C.target,C.targetRanges,M,E,this._blockMode);return N?(this._draggedRange&&this._draggingUid!=C.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==_C(C.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(N,!0)?(this._finalizeDragging(!1),void _.stop()):void(C.targetRanges=[r.editing.mapper.toViewRange(N)])):(this._finalizeDragging(!1),void _.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const r=this.editor.plugins.get(Rp);r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _=u.targetRanges.map(C=>this.editor.editing.mapper.toModelRange(C));this.editor.model.change(C=>C.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==_C(u.dataTransfer);this._finalizeDragging((!u.resultRange||!u.resultRange.isCollapsed)&&_)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const r=this.editor,c=r.editing.view,u=c.document;this.listenTo(u,"mousedown",(_,C)=>{if(D_isAndroid||!C)return;this._clearDraggableAttributesDelayed.cancel();let M=mf(C.target);if(D_isBlink&&!r.isReadOnly&&!M&&!u.selection.isCollapsed){const E=u.selection.getSelectedElement();E&&Pl(E)||(M=u.selection.editableElement)}M&&(c.change(E=>{E.setAttribute("draggable","true",M)}),this._draggableElement=r.editing.mapper.toModelElement(M))}),this.listenTo(u,"mouseup",()=>{D_isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const r=this.editor.editing;r.view.change(c=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&c.removeAttribute("draggable",r.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(r){const c=this.editor,u=c.model;c.plugins.get(D5).removeDropMarker(),this._clearDraggableAttributes(),c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(r&&this.isEnabled&&u.change(_=>{const C=u.createSelection(this._draggedRange);u.deleteContent(C,{doNotAutoparagraph:!0});const M=C.getFirstPosition().parent;M.isEmpty&&!u.schema.checkChild(M,"$text")&&u.schema.checkChild(M,"paragraph")&&_.insertElement("paragraph",M,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(r){const c=this.editor,u=c.model,_=u.document.selection,C=r?mf(r):null;if(C){const G=c.editing.mapper.toModelElement(C);return this._draggedRange=Ad.fromRange(u.createRangeOn(G)),this._blockMode=u.schema.isBlock(G),void(c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(_.isCollapsed&&!_.getFirstPosition().parent.isEmpty)return;const M=Array.from(_.getSelectedBlocks()),E=_.getFirstRange();if(0==M.length)return void(this._draggedRange=Ad.fromRange(E));const N=fC(u,M);if(M.length>1)this._draggedRange=Ad.fromRange(N),this._blockMode=!0;else if(1==M.length){const G=E.start.isTouching(N.start)&&E.end.isTouching(N.end);this._draggedRange=Ad.fromRange(G?N:E),this._blockMode=G}u.change(G=>G.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Mt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=We(Mt.document,"div",{style:"position: fixed; left: -999999px;"}),Mt.document.body.appendChild(this._previewContainer));const N=new ce(M);if(M.contains(c))return;const G=parseFloat(E.paddingLeft),W=We(Mt.document,"div");W.className="ck ck-content",W.style.width=E.width,W.style.paddingLeft=`${N.left-u+G}px`,D_isiOS&&(W.style.backgroundColor="white"),W.innerHTML=r.getData("text/html"),r.setDragImage(W,0,0),this._previewContainer.appendChild(W)}}function _C(m){return D_isGecko?m.dropEffect:["all","copyMove"].includes(m.effectAllowed)?"move":"copy"}function mf(m){if(m.is("editableElement"))return null;if(m.hasClass("ck-widget__selection-handle"))return m.findAncestor(Pl);if(Pl(m))return m;const r=m.findAncestor(c=>Pl(c)||c.is("editableElement"));return Pl(r)?r:null}function fC(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),C=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),N=C.isTouching(E.start),G=M.isTouching(E.end);if(N&&G)return fC(m,[_])}return m.createRange(C,M)}class hC extends lo{static get pluginName(){return"PastePlainText"}static get requires(){return[Rp]}init(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=c.document.selection;let M=!1;u.addObserver(Fh),this.listenTo(_,"keydown",(E,N)=>{M=N.shiftKey}),r.plugins.get(Rp).on("contentInsertion",(E,N)=>{(M||function(G,W){if(G.childCount>1)return!1;const dt=G.getChild(0);return!W.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(N.content,c.schema))&&c.change(G=>{const W=Array.from(C.getAttributes()).filter(([Zt])=>c.schema.getAttributeProperties(Zt).isFormatting);C.isCollapsed||c.deleteContent(C,{doNotAutoparagraph:!0}),W.push(...C.getAttributes());const dt=G.createRangeIn(N.content);for(const Zt of dt.getItems())Zt.is("$textProxy")&&G.setAttributes(W,Zt)})})}}class gC extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Rp,mC,hC]}}class S5 extends Ta{constructor(r){super(r),this.affectsData=!1}execute(){const r=this.editor.model,c=r.document.selection;let u=r.schema.getLimitElement(c);if(c.containsEntireContent(u)||!vC(r.schema,u))do{if(u=u.parent,!u)return}while(!vC(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function vC(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const bC=Ks("Ctrl+A");class z8 extends lo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,c=r.editing.view.document;r.commands.add("selectAll",new S5(r)),this.listenTo(c,"keydown",(u,_)=>{xc(_)===bC&&(r.execute("selectAll"),_.preventDefault())})}}class O4 extends lo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",c=>{const u=r.commands.get("selectAll"),_=new Hr(c);return _.set({label:(0,c.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),_.bind("isEnabled").to(u,"isEnabled"),this.listenTo(_,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),_})}}class Y8 extends lo{static get requires(){return[z8,O4]}static get pluginName(){return"SelectAll"}}var CC=Object.defineProperty,L5=Object.getOwnPropertySymbols,B8=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable,AC=(m,r,c)=>r in m?CC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Rh extends Ta{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((C,M)=>{for(var E in M||(M={}))B8.call(M,E)&&AC(C,E,M[E]);if(L5)for(var E of L5(M))xC.call(M,E)&&AC(C,E,M[E]);return C})({},u[1]);const _=u[1];_.batchType||(_.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(r.data,"set",(c,u)=>{u[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(r){const c=this.editor.model.document.selection,u={ranges:c.hasOwnRange?Array.from(c.getRanges()):[],isBackward:c.isBackward};this._stack.push({batch:r,selection:u}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,c,u){const _=this.editor.model,C=_.document,M=[],E=r.map(G=>G.getTransformedByOperations(u)),N=E.flat();for(const G of E){const W=G.filter(dt=>dt.root!=C.graveyard).filter(dt=>!yC(dt,N));W.length&&(V8(W),M.push(W[0]))}M.length&&_.change(G=>{G.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const C=r.operations.slice().filter(M=>M.isDocumentOperation);C.reverse();for(const M of C){const N=Array.from(_.history.getOperations(M.baseVersion+1)),G=J_([M.getReversed()],N,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let W of G){const dt=W.affectedSelectable;dt&&!u.canEditAt(dt)&&(W=new zs(W.baseVersion)),c.addOperation(W),u.applyOperation(W),_.history.setOperationAsUndone(M,W)}}}}function V8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class TC extends Rh{execute(r=null){const c=r?this._stack.findIndex(C=>C.batch==r):this._stack.length-1,u=this._stack.splice(c,1)[0],_=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(_,()=>{this._undo(u.batch,_);const C=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,C)}),this.fire("revert",u.batch,_),this.refresh()}}class G8 extends Rh{execute(){const r=this._stack.pop(),c=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(c,()=>{const _=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,_),this._undo(r.batch,c)}),this.refresh()}}class j8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new TC(r),this._redoCommand=new G8(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(c,u)=>{const _=u[0];if(!_.isDocumentOperation)return;const C=_.batch,M=this._redoCommand.createdBatches.has(C),E=this._undoCommand.createdBatches.has(C);this._batchRegistry.has(C)||(this._batchRegistry.add(C),C.isUndoable&&(M?this._undoCommand.addBatch(C):E||(this._undoCommand.addBatch(C),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(c,u,_)=>{this._redoCommand.addBatch(_)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}const O5='',wC='';class J8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?O5:wC,C="ltr"==c.uiLanguageDirection?wC:O5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",C)}_addButton(r,c,u,_){const C=this.editor;C.ui.componentFactory.add(r,M=>{const E=C.commands.get(r),N=new Hr(M);return N.set({label:c,icon:_,keystroke:u,tooltip:!0}),N.bind("isEnabled").to(E,"isEnabled"),this.listenTo(N,"execute",()=>{C.execute(r),C.editing.view.focus()}),N})}}class UC extends lo{static get requires(){return[j8,J8]}static get pluginName(){return"Undo"}}class ZC extends(we()){constructor(){super();const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=c=>{this.loaded=c.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const c=this._reader;return this.total=r.size,new Promise((u,_)=>{c.onload=()=>{const C=c.result;this._data=C,u(C)},c.onerror=()=>{_("error")},c.onabort=()=>{_("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}class ap extends lo{constructor(){super(...arguments),this.loaders=new Xs,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[Q2]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,c)=>c?r/c*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return Tt("filerepository-no-upload-adapter"),null;const c=new E4(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(c),this._loadersMap.set(r,c),r instanceof Promise&&c.file.then(u=>{this._loadersMap.set(u,c)}).catch(()=>{}),c.on("change:uploaded",()=>{let u=0;for(const _ of this.loaders)u+=_.uploaded;this.uploaded=u}),c.on("change:uploadTotal",()=>{let u=0;for(const _ of this.loaders)_.uploadTotal&&(u+=_.uploadTotal);this.uploadTotal=u}),c}destroyLoader(r){const c=r instanceof E4?r:this.getLoader(r);c._destroy(),this.loaders.remove(c),this._loadersMap.forEach((u,_)=>{u===c&&this._loadersMap.delete(_)})}_updatePendingAction(){const r=this.editor.plugins.get(Q2);if(this.loaders.length){if(!this._pendingAction){const c=this.editor.t,u=_=>`${c("Upload in progress")} ${parseInt(_)}%.`;this._pendingAction=r.add(u(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",u)}}else r.remove(this._pendingAction),this._pendingAction=null}}class E4 extends(we()){constructor(r,c){super(),this.id=Dt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new ZC,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(u,_)=>_?u/_*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new it("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new it("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const c={};return c.promise=new Promise((u,_)=>{c.rejecter=_,c.isFulfilled=!1,r.then(C=>{c.isFulfilled=!0,u(C)}).catch(C=>{c.isFulfilled=!0,_(C)})}),c}}class E5 extends aa{constructor(r){super(r),this.buttonView=new Hr(r),this._fileInputView=new Q8(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class Q8 extends aa{constructor(r){super(r),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:c.to("acceptedType"),multiple:c.to("allowMultipleFiles")},on:{change:c.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const MC="abcdefghijklmnopqrstuvwxyz0123456789";class W8{constructor(r,c,u){this.loader=r,this.url=c,this.t=u}upload(){return this.loader.file.then(r=>new Promise((c,u)=>{this._initRequest(),this._initListeners(c,u,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,c,u){const _=this.xhr,C=this.loader,M=(0,this.t)("Cannot upload file:")+` ${u.name}.`;_.addEventListener("error",()=>c(M)),_.addEventListener("abort",()=>c()),_.addEventListener("load",()=>{const E=_.response;if(!E||!E.uploaded)return c(E&&E.error&&E.error.message?E.error.message:M);r({default:E.url})}),_.upload&&_.upload.addEventListener("progress",E=>{E.lengthComputable&&(C.uploadTotal=E.total,C.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function kC(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const C of _){const M=C.split("=");if(decodeURIComponent(M[0].trim().toLowerCase())===u)return decodeURIComponent(M[1])}return null}("ckCsrfToken");var c;return m&&40==m.length||(m=function(u){let _="";const C=new Uint8Array(40);window.crypto.getRandomValues(C);for(let M=0;M.5?E.toUpperCase():E}return _}(),c=m,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(c)+";path=/"),m}()),this.xhr.send(c)}}function Hp(m,r,c,u){let _,C=null;"function"==typeof u?_=u:(C=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(C&&!C.isEnabled||!r.isEnabled)return;const N=os(m.model.document.selection.getRanges());if(!N.isCollapsed||E.isUndo||!E.isLocal)return;const G=Array.from(m.model.document.differ.getChanges()),W=G[0];if(1!=G.length||"insert"!==W.type||"$text"!=W.name||1!=W.length)return;const dt=W.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||C&&!0===C.value)return;const Zt=dt.getChild(0),ue=m.model.createRangeOn(Zt);if(!ue.containsRange(N)&&!N.end.isEqual(ue.end))return;const xe=c.exec(Zt.data.substr(0,N.end.offset));xe&&m.model.enqueueChange(Ee=>{const ln=Ee.createPositionAt(dt,0),Mn=Ee.createPositionAt(dt,xe[0].length),di=new Ad(ln,Mn);if(!1!==_({match:xe})){Ee.remove(di);const Ri=m.model.document.selection.getFirstRange(),Jo=Ee.createRangeIn(dt);!dt.isEmpty||Jo.isEqual(Ri)||Jo.containsRange(Ri,!0)||Ee.remove(dt)}di.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function o2(m,r,c,u){let _,C;c instanceof RegExp?_=c:C=c,C=C||(M=>{let E;const N=[],G=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:W,1:dt,2:Zt,3:ue}=E;W+=E[0].length-(dt+Zt+ue).length;const ln=[W+dt.length+Zt.length,W+dt.length+Zt.length+ue.length];N.push([W,W+dt.length]),N.push(ln),G.push([W+dt.length,W+dt.length+Zt.length])}return{remove:N,format:G}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const N=m.model,G=N.document.selection;if(!G.isCollapsed)return;const W=Array.from(N.document.differ.getChanges()),dt=W[0];if(1!=W.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Zt=G.focus,ue=Zt.parent,{text:xe,range:Ee}=function(Ri,Jo){let Da=Ri.start;return{text:Array.from(Ri.getItems()).reduce(($r,Sl)=>!Sl.is("$text")&&!Sl.is("$textProxy")||Sl.getAttribute("code")?(Da=Jo.createPositionAfter(Sl),""):$r+Sl.data,""),range:Jo.createRange(Da,Ri.end)}}(N.createRange(N.createPositionAt(ue,0),Zt),N),ln=C(xe),Mn=F5(Ee.start,ln.format,N),di=F5(Ee.start,ln.remove,N);Mn.length&&di.length&&N.enqueueChange(Ri=>{if(!1!==u(Ri,Mn)){for(const Jo of di.reverse())Ri.remove(Jo);N.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function F5(m,r,c){return r.filter(u=>void 0!==u[0]&&void 0!==u[1]).map(u=>c.createRange(m.getShiftedBy(u[0]),m.getShiftedBy(u[1])))}function Hh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const C of _)c.setAttribute(r,!0,C);c.removeSelectionAttribute(r)}}class DC extends Ta{constructor(r,c){super(r),this.attributeKey=c}refresh(){const r=this.editor.model,c=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,this.attributeKey)}execute(r={}){const c=this.editor.model,u=c.document.selection,_=void 0===r.forceValue?!this.value:r.forceValue;c.change(C=>{if(u.isCollapsed)_?C.setSelectionAttribute(this.attributeKey,!0):C.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?C.setAttribute(this.attributeKey,_,E):C.removeAttribute(this.attributeKey,E)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,c=r.schema,u=r.document.selection;if(u.isCollapsed)return u.hasAttribute(this.attributeKey);for(const _ of u.getRanges())for(const C of _.getItems())if(c.checkAttribute(C,this.attributeKey))return C.hasAttribute(this.attributeKey);return!1}}const zh="bold";class I5 extends lo{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:zh}),r.model.schema.setAttributeProperties(zh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:zh,view:"strong",upcastAlso:["b",c=>{const u=c.getStyle("font-weight");return u&&("bold"==u||Number(u)>=600)?{name:!0,styles:["font-weight"]}:null}]}),r.commands.add(zh,new DC(r,zh)),r.keystrokes.set("CTRL+B",zh)}}const N5="bold";class q5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(N5,u=>{const _=r.commands.get(N5),C=new Hr(u);return C.set({label:c("Bold"),icon:fs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(N5),r.editing.view.focus()}),C})}}var _f=b(8603);Io()(_f.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Yh="italic";class $8 extends lo{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Yh}),r.model.schema.setAttributeProperties(Yh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Yh,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Yh,new DC(r,Yh)),r.keystrokes.set("CTRL+I",Yh)}}const j0="italic";class N4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(j0,u=>{const _=r.commands.get(j0),C=new Hr(u);return C.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(j0),r.editing.view.focus()}),C})}}class K8 extends Ta{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,C=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const N=C.filter(G=>_a(G)||R5(u,G));this._applyQuote(E,N)}else this._removeQuote(E,C.filter(_a))})}_getValue(){const r=os(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!_a(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=os(this.editor.model.document.selection.getSelectedBlocks());return!!u&&R5(c,u)}_removeQuote(r,c){hi(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const C=r.createPositionBefore(u.start.parent);return void r.move(u,C)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];hi(r,c).reverse().forEach(_=>{let C=_a(_.start);C||(C=r.createElement("blockQuote"),r.wrap(_,C)),u.push(C)}),u.reverse().reduce((_,C)=>_.nextSibling==C?(r.merge(r.createPositionAfter(_)),_):C)}}function _a(m){return"blockQuote"==m.parent.name?m.parent:null}function hi(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const N of E)if("insert"==N.type){const G=N.position.nodeAfter;if(!G)continue;if(G.is("element","blockQuote")&&G.isEmpty)return M.remove(G),!0;if(G.is("element","blockQuote")&&!c.checkChild(N.position,G))return M.unwrap(G),!0;if(G.is("element")){const W=M.createRangeIn(G);for(const dt of W.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==N.type){const G=N.position.parent;if(G.is("element","blockQuote")&&G.isEmpty)return M.remove(G),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,C=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!C.value||_.getLastPosition().parent.isEmpty&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"}),this.listenTo(u,"delete",(M,E)=>{if("backward"!=E.direction||!_.isCollapsed||!C.value)return;const N=_.getLastPosition().parent;N.isEmpty&&!N.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var q4=b(3062);Io()(q4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class SC extends lo{static get pluginName(){return"BlockQuoteUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("blockQuote",u=>{const _=r.commands.get("blockQuote"),C=new Hr(u);return C.set({label:c("Block quote"),icon:fs.quote,tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),C})}}class LC extends lo{static get pluginName(){return"CKBoxUI"}afterInit(){const r=this.editor,c=r.commands.get("ckbox");if(!c)return;const u=r.t;r.ui.componentFactory.add("ckbox",_=>{const C=new Hr(_);return C.set({label:u("Open file manager"),icon:'',tooltip:!0}),C.bind("isOn","isEnabled").to(c,"value","isEnabled"),C.on("execute",()=>{r.execute("ckbox")}),C})}}function OC(m){const r=[];let c=0;for(const _ in m){const C=parseInt(_,10);isNaN(C)||(C>c&&(c=C),r.push(`${m[_]} ${_}w`))}const u=[{srcset:r.join(","),sizes:`(max-width: ${c}px) 100vw, ${c}px`,type:"image/webp"}];return{imageFallbackUrl:m.default,imageSources:u}}class X8 extends Ta{constructor(r){super(r),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");return!(!r.isEnabled&&!c.isEnabled)}_prepareOptions(){const r=this.editor.config.get("ckbox");return{theme:r.theme,language:r.language,tokenUrl:r.tokenUrl,serviceOrigin:r.serviceOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:c=>this.fire("ckbox:choose",c)}}}_initListeners(){const r=this.editor,c=r.model,u=!r.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=We(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(_,C)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),N=function({assets:G,isImageAllowed:W,isLinkAllowed:dt}){return G.map(Zt=>function(ue){const xe=ue.data.metadata;return!!xe&&xe.width&&xe.height}(Zt)?{id:Zt.data.id,type:"image",attributes:tA(Zt)}:{id:Zt.data.id,type:"link",attributes:eA(Zt)}).filter(Zt=>"image"===Zt.type?W:dt)}({assets:C,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==N.length&&c.change(G=>{for(const W of N)this._insertAsset(W,W===N[N.length-1],G),u&&(setTimeout(()=>this._chosenAssets.delete(W),1e3),this._chosenAssets.add(W))})}),this.listenTo(r,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(r,c,u){const _=this.editor.model.document.selection;u.removeSelectionAttribute("linkHref"),"image"===r.type?this._insertImage(r):this._insertLink(r,u),c||u.setSelection(_.getLastPosition())}_insertImage(r){const c=this.editor,{imageFallbackUrl:u,imageSources:_,imageTextAlternative:C}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:C}})}_insertLink(r,c){const u=this.editor,_=u.model,C=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(C.isCollapsed){const N=Jc(C.getAttributes()),G=c.createText(M,N),W=_.insertContent(G);c.setSelection(W)}u.execute("link",E)}}function tA(m){const{imageFallbackUrl:r,imageSources:c}=OC(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function eA(m){return{linkName:m.data.name,linkHref:z5(m)}}function z5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Bh=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(G){_(G)}},M=N=>{try{E(c.throw(N))}catch(G){_(G)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class EC extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ap,Y5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Bh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ap),C=r.plugins.get(Y5);_.createUploadAdapter=N=>new FC(N,C.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(N,{imageElement:G,data:W})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",W.ckboxImageId,G)})})})}}class FC{constructor(r,c,u){this.loader=r,this.token=c,this.editor=u,this.controller=new AbortController,this.serviceOrigin=u.config.get("ckbox.serviceOrigin")}getWorkspaceId(){const r=(0,this.editor.t)("Cannot access default workspace."),c=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),u=function(_,C){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),N=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return C?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||N.includes(C)?C:null:N[0]}(this.token,c);if(null==u)throw At("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Bh(this,null,function*(){const c=new URL("categories",this.serviceOrigin);return c.searchParams.set("limit",50..toString()),c.searchParams.set("offset",r.toString()),c.searchParams.set("workspaceId",this.getWorkspaceId()),this._sendHttpRequest({url:c}).then(u=>Bh(this,null,function*(){if(u.totalCount-(r+50)>0){const _=yield this.getAvailableCategories(r+50);return[...u.items,..._]}return u.items})).catch(()=>{this.controller.signal.throwIfAborted(),At("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Bh(this,null,function*(){const c=function(M){const E=new RegExp("\\.(?[^.]+)$");return M.match(E).groups.ext.toLowerCase()}(r.name),u=yield this.getAvailableCategories();if(!u)return null;const _=this.editor.config.get("ckbox.defaultUploadCategories");if(_){const M=Object.keys(_).find(E=>_[E].find(N=>N.toLowerCase()==c));if(M){const E=u.find(N=>N.id===M||N.name===M);return E?E.id:null}}const C=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return C?C.id:null})}upload(){return Bh(this,null,function*(){const r=this.editor.t,c=r("Cannot determine a category for the uploaded file."),u=yield this.loader.file,_=yield this.getCategoryIdForFile(u);if(!_)return Promise.reject(c);const C=new URL("assets",this.serviceOrigin),M=new FormData;return C.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:C,data:M,onUploadProgress:N=>{N.lengthComputable&&(this.loader.uploadTotal=N.total,this.loader.uploaded=N.loaded)}}).then(N=>Bh(this,null,function*(){const G=OC(N.imageUrls);return{ckboxImageId:N.id,default:G.imageFallbackUrl,sources:G.imageSources}})).catch(()=>{const N=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(N)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const C=this.controller.signal,M=new XMLHttpRequest;M.open(c,r.toString(),!0),M.setRequestHeader("Authorization",this.token.value),M.setRequestHeader("CKBox-Version","CKEditor 5"),M.responseType="json";const E=()=>{M.abort()};return new Promise((N,G)=>{C.addEventListener("abort",E),M.addEventListener("loadstart",()=>{C.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{C.removeEventListener("abort",E)}),M.addEventListener("error",()=>{G()}),M.addEventListener("abort",()=>{G()}),M.addEventListener("load",()=>Bh(this,null,function*(){const W=M.response;return!W||W.statusCode>=400?G(W&&W.message):N(W)})),_&&M.upload.addEventListener("progress",W=>{_(W)}),M.send(u)})}}class Y5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",EC]}init(){return r=this,u=function*(){const _=this.editor,C=!!_.config.get("ckbox"),M=!!window.CKBox;if(!C&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),N=_.config.get("ckbox.tokenUrl");if(N===_.config.get("cloudServices.tokenUrl")){const G=_.plugins.get("CloudServices");this._token=G.token}else this._token=yield E.createToken(N).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new X8(_))},new Promise((_,C)=>{var M=G=>{try{N(u.next(G))}catch(W){C(W)}},E=G=>{try{N(u.throw(G))}catch(W){C(W)}},N=G=>G.done?_(G.value):Promise.resolve(G.value).then(M,E);N((u=u.apply(r,null)).next())});var r,u}getToken(){return this._token}_initConfig(){const r=this.editor;if(r.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:r.locale.uiLanguage,theme:"default",tokenUrl:r.config.get("cloudServices.tokenUrl")}),!r.config.get("ckbox.tokenUrl"))throw new it("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||At("ckbox-plugin-image-feature-missing",r)}_initSchema(){const r=this.editor.model.schema;r.extend("$text",{allowAttributes:"ckboxLinkId"}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.addAttributeCheck((c,u)=>{if(!c.last.getAttribute("linkHref")&&"ckboxLinkId"===u)return!1})}_initConversion(){const r=this.editor;r.conversion.for("downcast").add(c=>{c.on("attribute:ckboxLinkId:imageBlock",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(!N.consume(_.item,u.name))return;const G=[...E.toViewElement(_.item).getChildren()].find(W=>"a"===W.name);G&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),G):M.removeAttribute("data-ckbox-resource-id",G))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(N.consume(_.item,u.name)){if(_.attributeOldValue){const G=iA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),G)}if(_.attributeNewValue){const G=iA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),G):M.wrap(E.toViewRange(_.range),G)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,C)=>{const{writer:M,consumable:E}=C;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const N=_.viewItem.getAttribute("data-ckbox-resource-id");if(N)if(_.modelRange)for(let G of _.modelRange.getItems())G.is("$textProxy")&&(G=G.textNode),oA(G)&&M.setAttribute("ckboxLinkId",N,G);else M.setAttribute("ckboxLinkId",N,_.modelCursor.nodeBefore||_.modelCursor.parent)},{priority:"low"})}),r.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),r.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:c=>c.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const r=this.editor,c=r.model,u=c.document.selection;var _;c.document.registerPostFixer((_=r,C=>{let M=!1;const E=_.model,N=_.commands.get("ckbox");if(!N)return M;for(const G of E.document.differ.getChanges()){if("insert"!==G.type&&"attribute"!==G.type)continue;const W="insert"===G.type?new Oi(G.position,G.position.getShiftedBy(G.length)):G.range,dt="attribute"===G.type&&"linkHref"===G.attributeKey&&null===G.attributeNewValue;for(const Zt of W.getItems()){if(dt&&Zt.hasAttribute("ckboxLinkId")){C.removeAttribute("ckboxLinkId",Zt),M=!0;continue}const ue=nA(Zt,N._chosenAssets);for(const xe of ue){const Ee="image"===xe.type?"ckboxImageId":"ckboxLinkId";xe.id!==Zt.getAttribute(Ee)&&(C.setAttribute(Ee,xe.id,Zt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return C=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(C.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function nA(m,r){const c=m.is("element","imageInline")||m.is("element","imageBlock"),u=m.hasAttribute("linkHref");return[...r].filter(_=>"image"===_.type&&c?_.attributes.imageFallbackUrl===m.getAttribute("src"):"link"===_.type&&u?_.attributes.linkHref===m.getAttribute("linkHref"):void 0)}function iA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function oA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class IC extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const C=r.commands.get("ckfinder"),M=new Hr(_);return M.set({label:u("Insert image or file"),icon:'',tooltip:!0}),M.bind("isEnabled").to(C),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class NC extends Ta{constructor(r){super(r),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");this.isEnabled=r.isEnabled||c.isEnabled}execute(){const r=this.editor,c=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=c&&"modal"!=c)throw new it("ckfinder-unknown-openermethod",r);const u=this.editor.config.get("ckfinder.options")||{};u.chooseFiles=!0;const _=u.onInit;u.language||(u.language=r.locale.uiLanguage),u.onInit=C=>{_&&_(C),C.on("files:choose",M=>{const E=M.data.files.toArray(),N=E.filter(dt=>!dt.isImage()),G=E.filter(dt=>dt.isImage());for(const dt of N)r.execute("link",dt.getUrl());const W=[];for(const dt of G){const Zt=dt.getUrl();W.push(Zt||C.request("file:getProxyUrl",{file:dt}))}W.length&&B5(r,W)}),C.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)B5(r,[E]);else{const N=r.plugins.get("Notification"),G=r.locale.t;N.showWarning(G("Could not obtain resized image URL."),{title:G("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function B5(m,r){if(m.commands.get("insertImage").isEnabled)m.execute("insertImage",{source:r});else{const c=m.plugins.get("Notification"),u=m.locale.t;c.showWarning(u("Could not insert image at the current position."),{title:u("Inserting image failed"),namespace:"ckfinder"})}}class qC extends lo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[af,"LinkEditing"]}init(){const r=this.editor;if(!r.plugins.has("ImageBlockEditing")&&!r.plugins.has("ImageInlineEditing"))throw new it("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new NC(r))}}class aA extends lo{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",ap]}init(){const r=this.editor,c=r.plugins.get("CloudServices"),u=c.token,_=c.uploadUrl;if(!u)return;const C=r.plugins.get("CloudServicesCore");this._uploadGateway=C.createUploadGateway(u,_),r.plugins.get(ap).createUploadAdapter=M=>new rA(this._uploadGateway,M)}}class rA{constructor(r,c){this.uploadGateway=r,this.loader=c}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(c,u)=>{this.loader.uploadTotal=u.total,this.loader.uploaded=u.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class V5 extends Ta{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=os(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&RC(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(C=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&RC(E,c.schema)&&C.rename(E,"paragraph")})}}function RC(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class sA extends Ta{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(C=>{if(_=this._findPositionToInsertParagraph(_,C),!_)return;const M=C.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,C),c.insertContent(M,_),C.setSelection(M,"in")})}_findPositionToInsertParagraph(r,c){const u=this.editor.model;if(u.schema.checkChild(r,"paragraph"))return r;const _=u.schema.findAllowedParent(r,"paragraph");if(!_)return null;const C=r.parent,M=u.schema.checkChild(C,"$text");return C.isEmpty||M&&r.isAtEnd?u.createPositionAfter(C):!C.isEmpty&&M&&r.isAtStart?u.createPositionBefore(C):c.split(r,_).position}}const G5=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new V5(m)),m.commands.add("insertParagraph",new sA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>G5.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let j5=G5;j5.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class J0 extends Ta{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=os(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>R4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(C=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>R4(E,_,c.schema));for(const E of M)E.is("element",_)||C.rename(E,_)})}}function R4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const J5="paragraph";class Q5 extends lo{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[j5]}init(){const r=this.editor,c=r.config.get("heading.options"),u=[];for(const _ of c)"paragraph"!==_.model&&(r.model.schema.register(_.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(_),u.push(_.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new J0(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,C)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",J5)&&0===M.childCount&&C.writer.rename(M,J5)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Pt.low+1})}}var W5=b(8733);Io()(W5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class zC extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,N={Paragraph:E("Paragraph"),"Heading 1":E("Heading 1"),"Heading 2":E("Heading 2"),"Heading 3":E("Heading 3"),"Heading 4":E("Heading 4"),"Heading 5":E("Heading 5"),"Heading 6":E("Heading 6")};return M.config.get("heading.options").map(G=>{const W=N[G.title];return W&&W!=G.title&&(G.title=W),G})}(r),_=c("Choose heading"),C=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},N=new Xs,G=r.commands.get("heading"),W=r.commands.get("paragraph"),dt=[G];for(const ue of u){const xe={type:"button",model:new S0({label:ue.title,class:ue.class,role:"menuitemradio",withText:!0})};"paragraph"===ue.model?(xe.model.bind("isOn").to(W,"value"),xe.model.set("commandName","paragraph"),dt.push(W)):(xe.model.bind("isOn").to(G,"value",Ee=>Ee===ue.model),xe.model.set({commandName:"heading",commandValue:ue.model})),N.add(xe),E[ue.model]=ue.title}const Zt=D1(M);return Eu(Zt,N,{ariaLabel:C,role:"menu"}),Zt.buttonView.set({ariaLabel:C,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:C}),Zt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Zt.bind("isEnabled").toMany(dt,"isEnabled",(...ue)=>ue.some(xe=>xe)),Zt.buttonView.bind("label").to(G,"value",W,"value",(ue,xe)=>{const Ee=ue||xe&&"paragraph";return"boolean"==typeof Ee?_:E[Ee]?E[Ee]:_}),this.listenTo(Zt,"execute",ue=>{const{commandName:xe,commandValue:Ee}=ue.source;r.execute(xe,Ee?{value:Ee}:void 0),r.editing.view.focus()}),Zt})}}function YC(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function cA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return C=>c.isInlineImageView(C)?u&&("block"==C.getStyle("display")||C.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(C){const M={name:!0};return C.hasAttribute("src")&&(M.attributes=["src"]),M}(C):null}function ca(m,r){const c=os(r.getSelectedBlocks());return!c||m.isObject(c)||c.isEmpty&&"listItem"!=c.name?"imageBlock":"imageInline"}function Q0(m){return m&&m.endsWith("px")?parseInt(m):null}function $5(m){const r=Q0(m.getStyle("width")),c=Q0(m.getStyle("height"));return!(!r||!c)}var H4=Object.defineProperty,BC=Object.getOwnPropertySymbols,W0=Object.prototype.hasOwnProperty,lA=Object.prototype.propertyIsEnumerable,z4=(m,r,c)=>r in m?H4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,id=(m,r)=>{for(var c in r||(r={}))W0.call(r,c)&&z4(m,c,r[c]);if(BC)for(var c of BC(r))lA.call(r,c)&&z4(m,c,r[c]);return m};const uA=/^(image|image-inline)$/;class Md extends lo{constructor(){super(...arguments),this._domEmitter=new(eo())}static get pluginName(){return"ImageUtils"}isImage(r){return this.isInlineImage(r)||this.isBlockImage(r)}isInlineImageView(r){return!!r&&r.is("element","img")}isBlockImageView(r){return!!r&&r.is("element","figure")&&r.hasClass("image")}insertImage(r={},c=null,u=null,_={}){const C=this.editor,M=C.model,E=M.document.selection;u=Vh(C,c||E,u),r=id(id({},Object.fromEntries(E.getAttributes())),r);for(const N in r)M.schema.checkAttribute(u,N)||delete r[N];return M.change(N=>{const{setImageSizes:G=!0}=_,W=N.createElement(u,r);return M.insertObject(W,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),W.parent?(G&&this.setImageNaturalSizeAttributes(W),W):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Mt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,C=>{C.setAttribute("width",_.naturalWidth,r),C.setAttribute("height",_.naturalHeight,r)}),this._domEmitter.stopListening(_,"load")}),_.src=c}))}getClosestSelectedImageWidget(r){const c=r.getFirstPosition();if(!c)return null;const u=r.getSelectedElement();if(u&&this.isImageWidget(u))return u;let _=c.parent;for(;_;){if(_.is("element")&&this.isImageWidget(_))return _;_=_.parent}return null}getClosestSelectedImageElement(r){const c=r.getSelectedElement();return this.isImage(c)?c:r.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(r){return r.findAncestor({classes:uA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==Vh(c,u,null)){const C=function(M,E){const G=D4(M,E).start.parent;return G.isEmpty&&!G.is("element","$root")?G.parent:G}(u,c.model);if(c.model.schema.checkChild(C,"imageBlock"))return!0}else if(c.model.schema.checkChild(u.focus,"imageInline"))return!0;return!1}(this.editor,r)&&[...r.focus.getAncestors()].every(u=>!u.is("element","imageBlock"))}toImageWidget(r,c,u){return c.setCustomProperty("image",!0,r),uf(r,c,{label:()=>{const _=this.findViewImgElement(r).getAttribute("alt");return _?`${_} ${u}`:u}})}isImageWidget(r){return!!r.getCustomProperty("image")&&Pl(r)}isBlockImage(r){return!!r&&r.is("element","imageBlock")}isInlineImage(r){return!!r&&r.is("element","imageInline")}findViewImgElement(r){if(this.isInlineImageView(r))return r;const c=this.editor.editing.view;for(const{item:u}of c.createRangeIn(r))if(this.isInlineImageView(u))return u}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function Vh(m,r,c){const u=m.model.schema,_=m.config.get("image.insert.type");return m.plugins.has("ImageBlockEditing")?m.plugins.has("ImageInlineEditing")?c||("inline"===_?"imageInline":"block"===_?"imageBlock":r.is("selection")?ca(u,r):u.checkChild(r,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class K5 extends Ta{refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!(!this.isEnabled||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_=c.model,C=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,C)})}}class VC extends lo{static get requires(){return[Md]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new K5(this.editor))}}var GC=b(1905);Io()(GC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var K0=b(6764);Io()(K0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class jC extends aa{constructor(r){super(r);const c=this.locale.t;this.focusTracker=new as,this.keystrokes=new jc,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),fs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),fs.cancel,"ck-button-cancel","cancel"),this._focusables=new Fa,this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),x({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(r,c,u,_){const C=new Hr(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createLabeledInputView(){const r=this.locale.t,c=new Dr(this.locale,$2);return c.label=r("Text alternative"),c}}function X5(m){const r=m.editing.view,c=td.defaultPositions,u=m.plugins.get("ImageUtils");return{target:r.domConverter.mapViewToDom(u.getClosestSelectedImageWidget(r.document.selection)),positions:[c.northArrowSouth,c.northArrowSouthWest,c.northArrowSouthEast,c.southArrowNorth,c.southArrowNorthWest,c.southArrowNorthEast,c.viewportStickyNorth]}}class JC extends lo{static get requires(){return[O0]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageTextAlternative",u=>{const _=r.commands.get("imageTextAlternative"),C=new Hr(u);return C.set({label:c("Change image text alternative"),icon:fs.lowVision,tooltip:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>!!M),this.listenTo(C,"execute",()=>{this._showForm()}),C})}_createForm(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(A(jC))(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(_,C)=>{this._hideForm(!0),C()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const C=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=X5(_);C.updatePosition(M)}}(r):this._hideForm(!0)}),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const r=this.editor,c=r.commands.get("imageTextAlternative"),u=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:X5(r)}),u.fieldView.value=u.fieldView.element.value=c.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(r=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Y4 extends lo{static get requires(){return[VC,JC]}static get pluginName(){return"ImageTextAlternative"}}function B4(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewElement(_.item),N=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",N),M.removeAttribute("sizes",N)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,N),M.setAttribute("sizes","100vw",N))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function V4(m,r,c){const u=(_,C,M)=>{if(!M.consumable.consume(C.item,_.name))return;const E=M.writer,N=M.mapper.toViewElement(C.item),G=m.findViewImgElement(N);E.setAttribute(C.attributeKey,C.attributeNewValue||"",G)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class pA extends Mu{observe(r){this.listenTo(r,"load",(c,u)=>{const _=u.target;this.checkShouldIgnoreEventFromTarget(_)||"IMG"==_.tagName&&this._fireEvents(u)},{useCapture:!0})}stopObserving(r){this.stopListening(r)}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}var ay=Object.defineProperty,X0=Object.getOwnPropertySymbols,tv=Object.prototype.hasOwnProperty,ev=Object.prototype.propertyIsEnumerable,G4=(m,r,c)=>r in m?ay(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Gh=(m,r)=>{for(var c in r||(r={}))tv.call(r,c)&&G4(m,c,r[c]);if(X0)for(var c of X0(r))ev.call(r,c)&&G4(m,c,r[c]);return m};class nv extends Ta{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Tt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Tt("image-inline-plugin-required")}refresh(){const r=this.editor.plugins.get("ImageUtils");this.isEnabled=r.isImageAllowed()}execute(r){const c=Ds(r.source),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&N&&_.isImage(N)){const G=this.editor.model.createPositionAfter(N);_.insertImage(Gh(Gh({},M),C),G)}else _.insertImage(Gh(Gh({},M),C))})}}class mA extends Ta{refresh(){const r=this.editor.plugins.get("ImageUtils"),c=this.editor.model.document.selection.getSelectedElement();this.isEnabled=r.isImage(c),this.value=this.isEnabled?c.getAttribute("src"):null}execute(r){const c=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(u=>{u.setAttribute("src",r.source,c),u.removeAttribute("srcset",c),u.removeAttribute("sizes",c)})}}class iv extends lo{static get requires(){return[Md]}static get pluginName(){return"ImageEditing"}init(){const r=this.editor,c=r.conversion;r.editing.view.addObserver(pA),c.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const u=new nv(r),_=new mA(r);r.commands.add("insertImage",u),r.commands.add("replaceImageSource",_),r.commands.add("imageInsert",u)}}class ov extends lo{static get requires(){return[Md]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_="imageBlock"===r?"figure":"img";function C(M,E,N,G){M.on(`attribute:${E}:${r}`,(W,dt,Zt)=>{if(!Zt.consumable.consume(dt.item,W.name))return;const ue=Zt.writer,xe=Zt.mapper.toViewElement(dt.item),Ee=u.findViewImgElement(xe);if(null!==dt.attributeNewValue?ue.setAttribute(N,dt.attributeNewValue,Ee):ue.removeAttribute(N,Ee),dt.item.hasAttribute("sources"))return;const ln=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!ln&&!G)return;const Mn=dt.item.getAttribute("width"),di=dt.item.getAttribute("height"),Ri=Ee.getStyle("aspect-ratio");Mn&&di&&!Ri&&ue.setStyle("aspect-ratio",`${Mn}/${di}`,Ee)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>$5(M)?Q0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>$5(M)?Q0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{C(M,"width","width",!0),C(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{C(M,"width","width",!1),C(M,"height","height",!1)})}}class av extends Ta{constructor(r,c){super(r),this._modelElementName=c}refresh(){const r=this.editor.plugins.get("ImageUtils"),c=r.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?r.isInlineImage(c):r.isBlockImage(c)}execute(r={}){const u=this.editor.model,_=this.editor.plugins.get("ImageUtils"),C=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(C.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:N=!0}=r,G=Array.from(u.markers).filter(Zt=>Zt.getRange().containsItem(C)),W=_.insertImage(M,u.createSelection(C,"on"),this._modelElementName,{setImageSizes:N});if(!W)return null;const dt=E.createRangeOn(W);for(const Zt of G){const ue=Zt.getRange(),xe="$graveyard"!=ue.root.rootName?ue.getJoined(dt,!0):dt;E.updateMarker(Zt,{range:xe})}return{oldElement:C,newElement:W}}):null}}class t3 extends lo{static get requires(){return[iv,ov,Md,Rp]}static get pluginName(){return"ImageBlockEditing"}init(){const r=this.editor;r.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),r.plugins.has("ImageInlineEditing")&&(r.commands.add("imageTypeBlock",new av(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>YC(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>_.toImageWidget(YC(M),M,c("image widget"))}),u.for("downcast").add(V4(_,"imageBlock","src")).add(V4(_,"imageBlock","alt")).add(B4(_,"imageBlock")),u.for("upcast").elementToElement({view:cA(r,"imageBlock"),model:(C,{writer:M})=>M.createElement("imageBlock",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)}).add(function(C){const M=(E,N,G)=>{if(!G.consumable.test(N.viewItem,{name:!0,classes:"image"}))return;const W=C.findViewImgElement(N.viewItem);if(!W||!G.consumable.test(W,{name:!0}))return;G.consumable.consume(N.viewItem,{name:!0,classes:"image"});const dt=os(G.convertItem(W,N.modelCursor).modelRange.getItems());dt?(G.convertChildren(N.viewItem,dt),G.updateConversionResult(dt,N)):G.consumable.revert(N.viewItem,{name:!0,classes:"image"})};return E=>{E.on("element:figure",M)}}(_))}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let G;if(!N.every(_.isInlineImageView))return;G=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(G);if("imageBlock"===ca(c.schema,W)){const dt=new X1(u.document),Zt=N.map(ue=>dt.createElement("figure",{class:"image"},ue));E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const G=N.createRangeIn(E.content);for(const W of G.getItems())W.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(W)})})}}var j4=b(3508);Io()(j4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class QC extends lo{static get requires(){return[t3,Y0,Y4]}static get pluginName(){return"ImageBlock"}}class WC extends lo{static get requires(){return[iv,ov,Md,Rp]}static get pluginName(){return"ImageInlineEditing"}init(){const r=this.editor,c=r.model.schema;c.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),c.addChildCheck((u,_)=>{if(u.endsWith("caption")&&"imageInline"===_.name)return!1}),this._setupConversion(),r.plugins.has("ImageBlockEditing")&&(r.commands.add("imageTypeInline",new av(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToElement({model:"imageInline",view:(C,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(C,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add(V4(_,"imageInline","src")).add(V4(_,"imageInline","alt")).add(B4(_,"imageInline")),u.for("upcast").elementToElement({view:cA(r,"imageInline"),model:(C,{writer:M})=>M.createElement("imageInline",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let G;if(!N.every(_.isBlockImageView))return;G=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(G);if("imageInline"===ca(c.schema,W)){const dt=new X1(u.document),Zt=N.map(ue=>1===ue.childCount?(Array.from(ue.getAttributes()).forEach(xe=>dt.setAttribute(...xe,_.findViewImgElement(ue))),ue.getChild(0)):ue);E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const G=N.createRangeIn(E.content);for(const W of G.getItems())W.is("element","imageInline")&&_.setImageNaturalSizeAttributes(W)})})}}class _A extends lo{static get requires(){return[WC,Y0,Y4]}static get pluginName(){return"ImageInline"}}class e3 extends lo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Md]}getCaptionFromImageModelElement(r){for(const c of r.getChildren())if(c&&c.is("element","caption"))return c;return null}getCaptionFromModelSelection(r){const c=this.editor.plugins.get("ImageUtils"),u=r.getFirstPosition().findAncestor("caption");return u&&c.isBlockImage(u.parent)?u:null}matchImageCaptionViewElement(r){const c=this.editor.plugins.get("ImageUtils");return"figcaption"==r.name&&c.isBlockImageView(r.parent)?{name:!0}:null}}class $C extends Ta{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(t3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,C=_.getSelectedElement();if(!C){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(C),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(C)}execute(r={}){const{focusCaptionOnShow:c}=r;this.editor.model.change(u=>{this.value?this._hideImageCaption(u):this._showImageCaption(u,c)})}_showImageCaption(r,c){const u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageCaptionEditing"),C=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);C.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const N=E||r.createElement("caption");r.append(N,M),c&&r.setSelection(N,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),C=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=C.getCaptionFromImageModelElement(E):(M=C.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class fA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Md,e3]}static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,c=r.model.schema;c.isRegistered("caption")?c.extend("caption",{allowIn:"imageBlock"}):c.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),r.commands.add("toggleImageCaption",new $C(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils"),C=r.t;r.conversion.for("upcast").elementToElement({view:M=>_.matchImageCaptionViewElement(M),model:"caption"}),r.conversion.for("dataDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>u.isBlockImage(M.parent)?E.createContainerElement("figcaption"):null}),r.conversion.for("editingDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>{if(!u.isBlockImage(M.parent))return null;const N=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,N),N.placeholder=C("Enter image caption"),Y({view:c,element:N,keepOnFocus:!0});const G=M.parent.getAttribute("alt");return w5(N,E,{label:G?C("Caption for image: %0",[G]):C("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),C=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:N,newElement:G}=E.return;if(!N)return;if(c.isBlockImage(N)){const dt=u.getCaptionFromImageModelElement(N);if(dt)return void this._saveCaption(G,dt)}const W=this._getSavedCaption(N);W&&this._saveCaption(G,W)};_&&this.listenTo(_,"execute",M,{priority:"low"}),C&&this.listenTo(C,"execute",M,{priority:"low"})}_getSavedCaption(r){const c=this._savedCaptionsMap.get(r);return c?_s.fromJSON(c):null}_saveCaption(r,c){this._savedCaptionsMap.set(r,c.toJSON())}_registerCaptionReconversion(){const r=this.editor,c=r.model,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils");c.document.on("change:data",()=>{const C=c.document.differ.getChanges();for(const M of C){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const N=_.getCaptionFromImageModelElement(E);if(!N)return;r.editing.reconvertItem(N)}}})}}class sv extends lo{static get requires(){return[e3]}static get pluginName(){return"ImageCaptionUI"}init(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageCaptionUtils"),_=r.t;r.ui.componentFactory.add("toggleImageCaption",C=>{const M=r.commands.get("toggleImageCaption"),E=new Hr(C);return E.set({icon:fs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",N=>_(N?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const N=u.getCaptionFromModelSelection(r.model.document.selection);if(N){const G=r.editing.mapper.toViewElement(N);c.scrollToTheSelection(),c.change(W=>{W.addClass("image__caption_highlighted",G)})}r.editing.view.focus()}),E})}}var cv=b(2640);function ff(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function hA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const C=KC(_,u),M=C.replace("image/",""),E=new File([_],`image.${M}`,{type:C});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(C=u,(M=C,new Promise((E,N)=>{const G=Mt.document.createElement("img");G.addEventListener("load",()=>{const W=Mt.document.createElement("canvas");W.width=G.width,W.height=G.height,W.getContext("2d").drawImage(G,0,0),W.toBlob(dt=>dt?E(dt):N())}),G.addEventListener("error",()=>N()),G.src=M})).then(M=>{const E=KC(M,C),N=E.replace("image/","");return new File([M],`image.${N}`,{type:E})})).then(r).catch(c):c(_);var C,M})})}function KC(m,r){return m.type?m.type:r.match(/data:(image\/\w+);base64/)?r.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Io()(cv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class lv extends lo{static get pluginName(){return"ImageUploadUI"}init(){const r=this.editor,c=r.t,u=_=>{const C=new E5(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),N=ff(E);return C.set({acceptedType:E.map(G=>`image/${G}`).join(","),allowMultipleFiles:!0}),C.buttonView.set({label:c("Insert image"),icon:fs.image,tooltip:!0}),C.buttonView.bind("isEnabled").to(M),C.on("done",(G,W)=>{const dt=Array.from(W).filter(Zt=>N.test(Zt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),C};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var gA=b(3689);Io()(gA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var uv=b(4036);Io()(uv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var dv=b(3773);Io()(dv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const C=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const N=C.plugins.get("ImageUtils"),G=C.plugins.get(ap),W=E?u.attributeNewValue:null,dt=this.placeholder,Zt=C.editing.mapper.toViewElement(M),ue=_.writer;if("reading"==W)return pv(Zt,ue),void tx(N,dt,Zt,ue);if("uploading"==W){const xe=G.loaders.get(E);return pv(Zt,ue),void(xe?(ex(Zt,ue),function(Ee,ln,Mn,di){const Ri=function(Jo){const Da=Jo.createUIElement("div",{class:"ck-progress-bar"});return Jo.setCustomProperty("progressBar",!0,Da),Da}(ln);ln.insert(ln.createPositionAt(Ee,"end"),Ri),Mn.on("change:uploadedPercent",(Jo,Da,Ts)=>{di.change($r=>{$r.setStyle("width",Ts+"%",Ri)})})}(Zt,ue,xe,C.editing.view),function(Ee,ln,Mn,di){if(di.data){const Ri=Ee.findViewImgElement(ln);Mn.setAttribute("src",di.data,Ri)}}(N,Zt,ue,xe)):tx(N,dt,Zt,ue))}"complete"==W&&G.loaders.get(E)&&function(xe,Ee,ln){const Mn=Ee.createUIElement("div",{class:"ck-image-upload-complete-icon"});Ee.insert(Ee.createPositionAt(xe,"end"),Mn),setTimeout(()=>{ln.change(di=>di.remove(di.createRangeOn(Mn)))},3e3)}(Zt,ue,C.editing.view),n3(Zt,ue,"progressBar"),ex(Zt,ue),ue.removeClass("ck-appear",Zt)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),r.plugins.has("ImageInlineEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function pv(m,r){m.hasClass("ck-appear")||r.addClass("ck-appear",m)}function tx(m,r,c,u){c.hasClass("ck-image-upload-placeholder")||u.addClass("ck-image-upload-placeholder",c);const _=m.findViewImgElement(c);_.getAttribute("src")!==r&&u.setAttribute("src",r,_),nx(c,"placeholder")||u.insert(u.createPositionAfter(_),function(C){const M=C.createUIElement("div",{class:"ck-upload-placeholder-loader"});return C.setCustomProperty("placeholder",!0,M),M}(u))}function ex(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),n3(m,r,"placeholder")}function nx(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function n3(m,r,c){const u=nx(m,c);u&&r.remove(r.createRangeOn(u))}var ix=Object.defineProperty,ox=Object.defineProperties,Q4=Object.getOwnPropertyDescriptors,W4=Object.getOwnPropertySymbols,ry=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable,ax=(m,r,c)=>r in m?ix(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class rx extends Ta{refresh(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.model.document.selection.getSelectedElement();this.isEnabled=c.isImageAllowed()||c.isImage(u)}execute(r){const c=Ds(r.file),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if(E&&N&&_.isImage(N)){const G=this.editor.model.createPositionAfter(N);this._uploadImage(M,C,G)}else this._uploadImage(M,C)})}_uploadImage(r,c,u){const _=this.editor,C=_.plugins.get(ap).createLoader(r),M=_.plugins.get("ImageUtils");var E;C&&M.insertImage((E=((G,W)=>{for(var dt in W||(W={}))ry.call(W,dt)&&ax(G,dt,W[dt]);if(W4)for(var dt of W4(W))_c.call(W,dt)&&ax(G,dt,W[dt]);return G})({},c),ox(E,Q4({uploadId:C.id}))),u)}}class hf extends lo{constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[ap,af,Rp,Md]}static get pluginName(){return"ImageUploadEditing"}init(){const r=this.editor,c=r.model.document,u=r.conversion,_=r.plugins.get(ap),C=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=ff(r.config.get("image.upload.types")),N=new rx(r);r.commands.add("uploadImage",N),r.commands.add("imageUpload",N),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(G,W)=>{if(dt=W.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Zt=Array.from(W.dataTransfer.files).filter(ue=>!!ue&&E.test(ue.type));Zt.length&&(G.stop(),r.model.change(ue=>{W.targetRanges&&ue.setSelection(W.targetRanges.map(xe=>r.editing.mapper.toModelRange(xe))),r.execute("uploadImage",{file:Zt})}))}),this.listenTo(M,"inputTransformation",(G,W)=>{const dt=Array.from(r.editing.view.createRangeIn(W.content)).map(ue=>ue.item).filter(ue=>{return!(!C.isInlineImageView(Ee=ue)||!Ee.getAttribute("src")||!Ee.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Ee.getAttribute("src").match(/^blob:/g)||ue.getAttribute("uploadProcessed"));var Ee}).map(ue=>({promise:hA(ue),imageElement:ue}));if(!dt.length)return;const Zt=new X1(r.editing.view.document);for(const ue of dt){Zt.setAttribute("uploadProcessed",!0,ue.imageElement);const xe=_.createLoader(ue.promise);xe&&(Zt.setAttribute("src","",ue.imageElement),Zt.setAttribute("uploadId",xe.id,ue.imageElement))}}),r.editing.view.document.on("dragover",(G,W)=>{W.preventDefault()}),c.on("change",()=>{const G=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),W=new Set;for(const dt of G)if("insert"==dt.type&&"$text"!=dt.name){const Zt=dt.position.nodeAfter,ue="$graveyard"==dt.position.root.rootName;for(const xe of bA(r,Zt)){const Ee=xe.getAttribute("uploadId");if(!Ee)continue;const ln=_.loaders.get(Ee);ln&&(ue?W.has(Ee)||ln.abort():(W.add(Ee),this._uploadImageElements.set(Ee,xe),"idle"==ln.status&&this._readAndUpload(ln)))}}}),this.on("uploadComplete",(G,{imageElement:W,data:dt})=>{const Zt=dt.urls?dt.urls:dt;this.editor.model.change(ue=>{ue.setAttribute("src",Zt.default,W),this._parseAndSetSrcsetAttributeOnImage(Zt,W,ue),C.setImageNaturalSizeAttributes(W)})},{priority:"low"})}afterInit(){const r=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&r.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&r.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(r){const c=this.editor,u=c.model,_=c.locale.t,C=c.plugins.get(ap),M=c.plugins.get(af),E=c.plugins.get("ImageUtils"),N=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},W=>{W.setAttribute("uploadStatus","reading",N.get(r.id))}),r.read().then(()=>{const W=r.upload(),dt=N.get(r.id);if(D_isSafari){const Zt=c.editing.mapper.toViewElement(dt),ue=E.findViewImgElement(Zt);c.editing.view.once("render",()=>{if(!ue.parent)return;const xe=c.editing.view.domConverter.mapViewToDom(ue.parent);if(!xe)return;const Ee=xe.style.display;xe.style.display="none",xe._ckHack=xe.offsetHeight,xe.style.display=Ee})}return u.enqueueChange({isUndoable:!1},Zt=>{Zt.setAttribute("uploadStatus","uploading",dt)}),W}).then(W=>{u.enqueueChange({isUndoable:!1},dt=>{const Zt=N.get(r.id);dt.setAttribute("uploadStatus","complete",Zt),this.fire("uploadComplete",{data:W,imageElement:Zt})}),G()}).catch(W=>{if("error"!==r.status&&"aborted"!==r.status)throw W;"error"==r.status&&W&&M.showWarning(W,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(N.get(r.id))}),G()});function G(){u.enqueueChange({isUndoable:!1},W=>{const dt=N.get(r.id);W.removeAttribute("uploadId",dt),W.removeAttribute("uploadStatus",dt),N.delete(r.id)}),C.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const C=Object.keys(r).filter(M=>{const E=parseInt(M,10);if(!isNaN(E))return _=Math.max(_,E),!0}).map(M=>`${r[M]} ${M}w`).join(", ");if(""!=C){const M={srcset:C};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function bA(m,r){const c=m.plugins.get("ImageUtils");return Array.from(m.model.createRangeOn(r)).filter(u=>c.isImage(u.item)).map(u=>u.item)}var i3=b(1568);Io()(i3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var sx=b(3535);Io()(sx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var xA=b(6270);Io()(xA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class yA extends Ta{constructor(r,c){super(r),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(c.map(u=>{if(u.isDefault)for(const _ of u.modelElements)this._defaultStyles[_]=u.name;return[u.name,u]}))}refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!!this.isEnabled&&(r.hasAttribute("imageStyle")?r.getAttribute("imageStyle"):this._defaultStyles[r.name])}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("ImageUtils");u.change(C=>{const M=r.value,{setImageSizes:E=!0}=r;let N=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,N)&&(this.editor.execute(_.isBlockImage(N)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),N=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?C.removeAttribute("imageStyle",N):C.setAttribute("imageStyle",M,N),E&&_.setImageNaturalSizeAttributes(N)})}shouldConvertImageType(r,c){return!this._styles.get(r).modelElements.includes(c.name)}}var TA=Object.defineProperty,_v=Object.getOwnPropertySymbols,fv=Object.prototype.hasOwnProperty,wA=Object.prototype.propertyIsEnumerable,$4=(m,r,c)=>r in m?TA(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,hv=(m,r)=>{for(var c in r||(r={}))fv.call(r,c)&&$4(m,c,r[c]);if(_v)for(var c of _v(r))wA.call(r,c)&&$4(m,c,r[c]);return m};const{objectFullWidth:K4,objectInline:cx,objectLeft:gv,objectRight:vv,objectCenter:o3,objectBlockLeft:bv,objectBlockRight:Cv}=fs,Jh={get inline(){return{name:"inline",title:"In line",icon:cx,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:gv,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:bv,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:o3,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:vv,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Cv,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:o3,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:vv,modelElements:["imageBlock"],className:"image-style-side"}}},xv={full:K4,left:bv,right:Cv,center:o3,inlineLeft:gv,inlineRight:vv,inline:cx},lx=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function UA(m){Tt("image-style-configuration-definition-invalid",m)}const a3={normalizeStyles:function(m){return(m.configuredStyles.options||[]).map(r=>{return"string"==typeof(c="string"==typeof(c=r)?Jh[c]?hv({},Jh[c]):{name:c}:function(u,_){const C=hv({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(C[M]=u[M]);return C}(Jh[c.name],c)).icon&&(c.icon=xv[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:C,name:M}=c;if(!(C&&C.length&&M))return UA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!C.some(N=>E.includes(N)))return Tt("image-style-missing-dependency",{style:c,missingPlugins:C.map(N=>"imageBlock"===N?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(r,m))},getDefaultStylesConfiguration:function(m,r){return m&&r?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:m?{options:["block","side"]}:r?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(m){return m.has("ImageBlockEditing")&&m.has("ImageInlineEditing")?[...lx]:[]},warnInvalidStyle:UA,DEFAULT_OPTIONS:Jh,DEFAULT_ICONS:xv,DEFAULT_DROPDOWN_DEFINITIONS:lx};function ZA(m,r){for(const c of r)if(c.name===m)return c}class ux extends lo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Md]}init(){const{normalizeStyles:r,getDefaultStylesConfiguration:c}=a3,u=this.editor,_=u.plugins.has("ImageBlockEditing"),C=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,C)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:C}),this._setupConversion(_,C),this._setupPostFixer(),u.commands.add("imageStyle",new yA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,C=(M=this.normalizedStyles,(N,G,W)=>{if(!W.consumable.consume(G.item,N.name))return;const dt=ZA(G.attributeNewValue,M),Zt=ZA(G.attributeOldValue,M),ue=W.mapper.toViewElement(G.item),xe=W.writer;Zt&&xe.removeClass(Zt.className,ue),dt&&xe.addClass(dt.className,ue)});var M;const E=function(N){const G={imageInline:N.filter(W=>!W.isDefault&&W.modelElements.includes("imageInline")),imageBlock:N.filter(W=>!W.isDefault&&W.modelElements.includes("imageBlock"))};return(W,dt,Zt)=>{if(!dt.modelRange)return;const ue=dt.viewItem,xe=os(dt.modelRange.getItems());if(xe&&Zt.schema.checkAttribute(xe,"imageStyle"))for(const Ee of G[xe.name])Zt.consumable.consume(ue,{classes:Ee.className})&&Zt.writer.setAttribute("imageStyle",Ee.name,xe)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",C),u.data.downcastDispatcher.on("attribute:imageStyle",C),r&&(_.extend("imageBlock",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:figure",E,{priority:"low"})),c&&(_.extend("imageInline",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:img",E,{priority:"low"}))}_setupPostFixer(){const r=this.editor,c=r.model.document,u=r.plugins.get(Md),_=new Map(this.normalizedStyles.map(C=>[C.name,C]));c.registerPostFixer(C=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let N="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(N&&N.is("element","paragraph")&&N.childCount>0&&(N=N.getChild(0)),!u.isImage(N))continue;const G=N.getAttribute("imageStyle");if(!G)continue;const W=_.get(G);W&&W.modelElements.includes(N.name)||(C.removeAttribute("imageStyle",N),M=!0)}return M})}}var MA=b(5083);Io()(MA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class cy extends lo{static get requires(){return[ux]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Wrap text":r("Wrap text"),"Break text":r("Break text"),"In line":r("In line"),"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=this.editor.plugins,c=this.editor.config.get("image.toolbar")||[],u=kA(r.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const C of u)this._createButton(C);const _=kA([...c.filter(Wt),...a3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const C of _)this._createDropdown(C,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let C;const{defaultItem:M,items:E,title:N}=r,G=E.filter(ue=>c.find(({name:xe})=>DA(xe)===ue)).map(ue=>{const xe=u.create(ue);return ue===M&&(C=xe),xe});E.length!==G.length&&a3.warnInvalidStyle({dropdown:r});const W=D1(_,p4),dt=W.buttonView,Zt=dt.arrowView;return X_(W,G,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:PA(N,C.label),class:null,tooltip:!0}),Zt.unbind("label"),Zt.set({label:N}),dt.bind("icon").toMany(G,"isOn",(...ue)=>{const xe=ue.findIndex(wu);return xe<0?C.icon:G[xe].icon}),dt.bind("label").toMany(G,"isOn",(...ue)=>{const xe=ue.findIndex(wu);return PA(N,xe<0?C.label:G[xe].label)}),dt.bind("isOn").toMany(G,"isOn",(...ue)=>ue.some(wu)),dt.bind("class").toMany(G,"isOn",(...ue)=>ue.some(wu)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{G.some(({isOn:ue})=>ue)?W.isOpen=!W.isOpen:C.fire("execute")}),W.bind("isEnabled").toMany(G,"isEnabled",(...ue)=>ue.some(wu)),this.listenTo(W,"execute",()=>{this.editor.editing.view.focus()}),W})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(DA(c),u=>{const _=this.editor.commands.get("imageStyle"),C=new Hr(u);return C.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>M===c),C.on("execute",this._executeCommand.bind(this,c)),C})}_executeCommand(r){this.editor.execute("imageStyle",{value:r}),this.editor.editing.view.focus()}}function kA(m,r){for(const c of m)r[c.title]&&(c.title=r[c.title]);return m}function DA(m){return`imageStyle:${m}`}function PA(m,r){return(m?m+": ":"")+r}class X4 extends lo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new $p(r)),r.commands.add("outdent",new $p(r))}}const SA='',Av='';class r3 extends lo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?SA:Av,C="ltr"==c.uiLanguageDirection?Av:SA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),C)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,C=>{const M=_.commands.get(r),E=new Hr(C);return E.set({label:c,icon:u,tooltip:!0}),E.bind("isEnabled").to(M,"isEnabled"),this.listenTo(E,"execute",()=>{_.execute(r),_.editing.view.focus()}),E})}}class dx{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(c=>this._definitions.add(c)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(c,u,_)=>{if(!_.consumable.test(u.item,"attribute:linkHref")||!u.item.is("selection")&&!_.schema.isInline(u.item))return;const C=_.writer,M=C.document.selection;for(const E of this._definitions){const N=C.createAttributeElement("a",E.attributes,{priority:5});E.classes&&C.addClass(E.classes,N);for(const G in E.styles)C.setStyle(G,E.styles[G],N);C.setCustomProperty("link",!0,N),E.callback(u.attributeNewValue)?u.item.is("selection")?C.wrap(M.getFirstRange(),N):C.wrap(_.mapper.toViewRange(u.range),N):C.unwrap(_.mapper.toViewRange(u.range),N)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:C})=>{const M=C.toViewElement(u.item),E=Array.from(M.getChildren()).find(N=>N.is("element","a"));for(const N of this._definitions){const G=Jc(N.attributes);if(N.callback(u.attributeNewValue)){for(const[W,dt]of G)"class"===W?_.addClass(dt,E):_.setAttribute(W,dt,E);N.classes&&_.addClass(N.classes,E);for(const W in N.styles)_.setStyle(W,N.styles[W],E)}else{for(const[W,dt]of G)"class"===W?_.removeClass(dt,E):_.removeAttribute(W,E);N.classes&&_.removeClass(N.classes,E);for(const W in N.styles)_.removeStyle(W,E)}}})}}}var ly=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const s3=function(m){return ly.test(m)};var _x="\\ud800-\\udfff",yv="["+_x+"]",Tv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",wv="\\ud83c[\\udffb-\\udfff]",fx="[^"+_x+"]",hx="(?:\\ud83c[\\udde6-\\uddff]){2}",c3="[\\ud800-\\udbff][\\udc00-\\udfff]",gx="(?:"+Tv+"|"+wv+")?",vx="[\\ufe0e\\ufe0f]?",uy=vx+gx+"(?:\\u200d(?:"+[fx,hx,c3].join("|")+")"+vx+gx+")*",dy="(?:"+[fx+Tv+"?",Tv,hx,c3,yv].join("|")+")",LA=RegExp(wv+"(?="+wv+")|"+dy+uy,"g");const py=function(r){r=Cg(r);var c=s3(r)?function(m){return s3(m)?function(m){return m.match(LA)||[]}(m):function(m){return m.split("")}(m)}(r):void 0,u=c?c[0]:r.charAt(0),_=c?function(m,r,c){var u=m.length;return b2(m,1,c=void 0===c?u:c)}(c).join(""):r.slice(1);return u.toUpperCase()+_},Cx=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,xx=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Ax=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,my=/^((\w+:(\/{2,})?)|(\W))/i,S1="Ctrl+K";function yx(m,{writer:r}){const c=r.createAttributeElement("a",{href:m},{priority:5});return r.setCustomProperty("link",!0,c),c}function l3(m){const r=String(m);return r.replace(Cx,"").match(xx)?r:"#"}function t6(m,r){return!!m&&r.checkAttribute(m.name,"linkHref")}function Kd(m,r){const c=Ax.test(m)?"mailto:":r,_=!!c&&!Uv(m);return m&&_?c+m:m}function Uv(m){return my.test(m)}function e6(m){window.open(m,"_blank","noopener")}class Zv extends Ta{constructor(){super(...arguments),this.manualDecorators=new Xs,this.automaticDecorators=new dx}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement()||os(c.getSelectedBlocks());t6(u,r.schema)?(this.value=u.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(u,"linkHref")):(this.value=c.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(c,"linkHref"));for(const _ of this.manualDecorators)_.value=this._getDecoratorStateFromModel(_.id)}execute(r,c={}){const u=this.editor.model,_=u.document.selection,C=[],M=[];for(const E in c)c[E]?C.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const N=_.getFirstPosition();if(_.hasAttribute("linkHref")){const G=Tx(_);let W=Ti(N,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===G&&(W=this._updateLinkContent(u,E,W,r)),E.setAttribute("linkHref",r,W),C.forEach(dt=>{E.setAttribute(dt,!0,W)}),M.forEach(dt=>{E.removeAttribute(dt,W)}),E.setSelection(E.createPositionAfter(W.end.nodeBefore))}else if(""!==r){const G=Jc(_.getAttributes());G.set("linkHref",r),C.forEach(dt=>{G.set(dt,!0)});const{end:W}=u.insertContent(E.createText(r,G),N);E.setSelection(W)}["linkHref",...C,...M].forEach(G=>{E.removeSelectionAttribute(G)})}else{const N=u.schema.getValidRanges(_.getRanges(),"linkHref"),G=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&G.push(E.createRangeOn(dt));const W=G.slice();for(const dt of N)this._isRangeToUpdate(dt,G)&&W.push(dt);for(const dt of W){let Zt=dt;if(1===W.length){const ue=Tx(_);_.getAttribute("linkHref")===ue&&(Zt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Zt)))}E.setAttribute("linkHref",r,Zt),C.forEach(ue=>{E.setAttribute(ue,!0,Zt)}),M.forEach(ue=>{E.removeAttribute(ue,Zt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return t6(_,c.schema)?_.getAttribute(r):u.getAttribute(r)}_isRangeToUpdate(r,c){for(const u of c)if(u.containsRange(r))return!1;return!0}_updateLinkContent(r,c,u,_){const C=c.createText(_,{linkHref:_});return r.insertContent(C,u)}}function Tx(m){if(m.isCollapsed){const r=m.getFirstPosition();return r.textNode&&r.textNode.data}{const r=Array.from(m.getFirstRange().getItems());if(r.length>1)return null;const c=r[0];return c.is("$text")||c.is("$textProxy")?c.data:null}}class Mv extends Ta{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=t6(u,r.schema)?r.schema.checkAttribute(u,"linkHref"):r.schema.checkAttributeInSelection(c,"linkHref")}execute(){const c=this.editor.model,u=c.document.selection,_=this.editor.commands.get("link");c.change(C=>{const M=u.isCollapsed?[Ti(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(C.removeAttribute("linkHref",E),_)for(const N of _.manualDecorators)C.removeAttribute(N.id,E)})}}class wx extends(we()){constructor({id:r,label:c,attributes:u,classes:_,styles:C,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=C}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var kv=b(9773);Io()(kv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Ux=Object.defineProperty,Pv=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,kx=(m,r,c)=>r in m?Ux(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,n6=(m,r)=>{for(var c in r||(r={}))Zx.call(r,c)&&kx(m,c,r[c]);if(Pv)for(var c of Pv(r))Mx.call(r,c)&&kx(m,c,r[c]);return m};const o_="automatic",Sv=/^(https?:)?\/\//;class Lv extends lo{static get pluginName(){return"LinkEditing"}static get requires(){return[C5,Vb,Rp]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:yx}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(u,_)=>yx(l3(u),_)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:u=>u.getAttribute("href")}}),r.commands.add("link",new Zv(r)),r.commands.add("unlink",new Mv(r));const c=function(u,_){const C={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&C[M.label]&&(M.label=C[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[C,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${py(C)}`});_.push(E)}return _}(r.config.get("link.decorators")));this._enableAutomaticDecorators(c.filter(u=>u.mode===o_)),this._enableManualDecorators(c.filter(u=>"manual"===u.mode)),r.plugins.get(C5).registerAttribute("linkHref"),function(u,_,C,M){const E=u.editing.view,N=new Set;E.document.registerPostFixer(G=>{const W=u.model.document.selection;let dt=!1;if(W.hasAttribute(_)){const Zt=Ti(W.getFirstPosition(),_,W.getAttribute(_),u.model),ue=u.editing.mapper.toViewRange(Zt);for(const xe of ue.getItems())xe.is("element","a")&&!xe.hasClass(M)&&(G.addClass(M,xe),N.add(xe),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(G=>{function W(){E.change(dt=>{for(const Zt of N.values())dt.removeClass(M,Zt),N.delete(Zt)})}G.on("insert",W,{priority:"highest"}),G.on("remove",W,{priority:"highest"}),G.on("attribute",W,{priority:"highest"}),G.on("selection",W,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(r){const c=this.editor,u=c.commands.get("link").automaticDecorators;c.config.get("link.addTargetToExternalLinks")&&u.add({id:"linkIsExternal",mode:o_,callback:_=>!!_&&Sv.test(_),attributes:{target:"_blank",rel:"noopener noreferrer"}}),u.add(r),u.length&&c.conversion.for("downcast").add(u.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const c=this.editor,u=c.commands.get("link").manualDecorators;r.forEach(_=>{c.model.schema.extend("$text",{allowAttributes:_.id});const C=new wx(_);u.add(C),c.conversion.for("downcast").attributeToElement({model:C.id,view:(M,{writer:E,schema:N},{item:G})=>{if((G.is("selection")||N.isInline(G))&&M){const W=E.createAttributeElement("a",C.attributes,{priority:5});C.classes&&E.addClass(C.classes,W);for(const dt in C.styles)E.setStyle(dt,C.styles[dt],W);return E.setCustomProperty("link",!0,W),W}}}),c.conversion.for("upcast").elementToAttribute({view:n6({name:"a"},C._createPattern()),model:{key:C.id}})})}_enableLinkOpen(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"click",(u,_)=>{if(!(D_isMac?_.domEvent.metaKey:_.domEvent.ctrlKey))return;let C=_.domTarget;if("a"!=C.tagName.toLowerCase()&&(C=C.closest("a")),!C)return;const M=C.getAttribute("href");M&&(u.stop(),_.preventDefault(),e6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const C=r.commands.get("link").value;C&&_.keyCode===$a.enter&&_.altKey&&(u.stop(),e6(C))})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor.model,c=r.document.selection;this.listenTo(r,"insertContent",()=>{const u=c.anchor.nodeBefore,_=c.anchor.nodeAfter;c.hasAttribute("linkHref")&&u&&u.hasAttribute("linkHref")&&(_&&_.hasAttribute("linkHref")||r.change(C=>{rp(C,Dx(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(gh);let u=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{u=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!u)return;u=!1;const _=c.document.selection;if(!_.isCollapsed||!_.hasAttribute("linkHref"))return;const C=_.getFirstPosition(),M=Ti(C,"linkHref",_.getAttribute("linkHref"),c);(C.isTouching(M.start)||C.isTouching(M.end))&&c.change(E=>{rp(E,Dx(c.schema))})})}_enableTypingOverLink(){const r=this.editor;let u=null,_=!1;this.listenTo(r.editing.view.document,"delete",()=>{_=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const C=r.model.document.selection;C.isCollapsed||(_?_=!1:Ov(r)&&function(M){const E=M.document.selection,N=E.getFirstPosition(),G=E.getLastPosition(),W=N.nodeAfter;return!!(W&&W.is("$text")&&W.hasAttribute("linkHref"))&&(W===(G.textNode||G.nodeBefore)||Ti(N,"linkHref",W.getAttribute("linkHref"),M).containsRange(M.createRange(N,G),!0))}(r.model)&&(u=C.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(C,[M])=>{_=!1,Ov(r)&&u&&(r.model.change(E=>{for(const[N,G]of u)E.setAttribute(N,G,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let C=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,N)=>{M="backward"===N.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{C=!1;const E=u.getFirstPosition(),N=u.getAttribute("linkHref");if(!N)return;const G=Ti(E,"linkHref",N,c);C=G.containsPosition(E)||G.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,C||r.model.enqueueChange(E=>{rp(E,Dx(c.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const r=this.editor,c=r.model,u=this.editor.config.get("link.defaultProtocol");u&&this.listenTo(r.plugins.get("ClipboardPipeline"),"contentInsertion",(_,C)=>{c.change(M=>{const E=M.createRangeIn(C.content);for(const N of E.getItems())if(N.hasAttribute("linkHref")){const G=Kd(N.getAttribute("linkHref"),u);M.setAttribute("linkHref",G,N)}})})}}function rp(m,r){m.removeSelectionAttribute("linkHref");for(const c of r)m.removeSelectionAttribute(c)}function Ov(m){return m.model.change(r=>r.batch).isTyping}function Dx(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var u3=b(7754);Io()(u3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class EA extends aa{constructor(r,c){super(r),this.focusTracker=new as,this.keystrokes=new jc,this._focusables=new Fa;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),fs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),fs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const _=["ck","ck-link-form","ck-responsive-form"];c.manualDecorators.length&&_.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:_,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,c)=>(r[c.name]=c.isOn,r),{})}render(){super.render(),x({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const r=this.locale.t,c=new Dr(this.locale,$2);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const C=new Hr(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new xi(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(C,M)=>void 0===M&&void 0===C?!!u.defaultValue:!!C),_.on("execute",()=>{u.set("value",!_.isOn)}),c.add(_)}return c}_createFormChildren(r){const c=this.createCollection();if(c.add(this.urlInputView),r.length){const u=new aa;u.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(_=>({tag:"li",children:[_],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),c.add(u)}return c.add(this.saveButtonView),c.add(this.cancelButtonView),c}}var Sx=b(2347);Io()(Sx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class _y extends aa{constructor(r){super(r),this.focusTracker=new as,this.keystrokes=new jc,this._focusables=new Fa;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),fs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(r,c,u){const _=new Hr(this.locale);return _.set({label:r,icon:c,tooltip:!0}),_.delegate("execute").to(this,u),_}_createPreviewButton(){const r=new Hr(this.locale),c=this.bindTemplate,u=this.t;return r.set({withText:!0,tooltip:u("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:c.to("href",_=>_&&l3(_)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",_=>_||u("This link has no URL")),r.bind("isEnabled").to(this,"href",_=>!!_),r.template.tag="a",r.template.eventListeners={},r}}const zp="link-ui";class FA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[O0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(s4),this._balloon=r.plugins.get(O0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:zp,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:zp,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const r=this.editor,c=new _y(r.locale),u=r.commands.get("link"),_=r.commands.get("unlink");return c.bind("href").to(u,"value"),c.editButtonView.bind("isEnabled").to(u),c.unlinkButtonView.bind("isEnabled").to(_),this.listenTo(c,"edit",()=>{this._addFormView()}),this.listenTo(c,"unlink",()=>{r.execute("unlink"),this._hideUI()}),c.keystrokes.set("Esc",(C,M)=>{this._hideUI(),M()}),c.keystrokes.set(S1,(C,M)=>{this._addFormView(),M()}),c}_createFormView(){const r=this.editor,c=r.commands.get("link"),u=r.config.get("link.defaultProtocol"),_=new(A(EA))(r.locale,c);return _.urlInputView.fieldView.bind("value").to(c,"value"),_.urlInputView.bind("isEnabled").to(c,"isEnabled"),_.saveButtonView.bind("isEnabled").to(c),this.listenTo(_,"submit",()=>{const{value:C}=_.urlInputView.fieldView.element,M=Kd(C,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(C,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const C=new Hr(_);return C.isEnabled=!0,C.label=u("Link"),C.icon='',C.keystroke=S1,C.tooltip=!0,C.isToggleable=!0,C.bind("isEnabled").to(c,"isEnabled"),C.bind("isOn").to(c,"value",M=>!!M),this.listenTo(C,"execute",()=>this._showUI(!0)),C})}_enableBalloonActivators(){const r=this.editor;this.listenTo(r.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),r.keystrokes.set(S1,(u,_)=>{_(),r.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(r,c)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),c())},{priority:"high"}),this.editor.keystrokes.set("Esc",(r,c)=>{this._isUIVisible&&(this._hideUI(),c())}),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const r=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,c=r.editing.view.document;let u=this._getSelectedLinkElement(),_=M();const C=()=>{const E=this._getSelectedLinkElement(),N=M();u&&!E||!u&&N!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=N};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",C),this.listenTo(this._balloon,"change:visibleView",C)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,u=r.document;let _;if(this.editor.model.markers.has(zp)){const C=Array.from(this.editor.editing.mapper.markerNameToElements(zp)),M=r.createRange(r.createPositionBefore(C[0]),r.createPositionAfter(C[C.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const C=this._getSelectedLinkElement();return C?r.domConverter.mapViewToDom(C):r.domConverter.viewRangeToDom(u.selection.getFirstRange())};return{target:_}}_getSelectedLinkElement(){const r=this.editor.editing.view,c=r.document.selection,u=c.getSelectedElement();if(c.isCollapsed||u&&Pl(u))return i6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),C=i6(_.start),M=i6(_.end);return C&&C==M&&r.createRangeIn(C).getTrimmed().isEqual(_)?C:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(zp))c.updateMarker(zp,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:C})=>!r.schema.isContent(C),{boundaries:u});c.addMarker(zp,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(zp,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(zp)&&r.change(c=>{c.removeMarker(zp)})}}function i6(m){return m.getAncestors().find(r=>{return(c=r).is("attributeElement")&&!!c.getCustomProperty("link");var c})||null}const fy=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class o6 extends lo{static get requires(){return[t_]}static get pluginName(){return"AutoLink"}init(){const r=this.editor.model.document.selection;r.on("change:range",()=>{this.isEnabled=!r.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const r=this.editor,c=new Qb(r.model,u=>{if(!((C=u).length>4&&" "===C[C.length-1]&&" "!==C[C.length-2]))return;var C;const _=a6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:C,range:M,url:E}=_;if(!C.isTyping)return;const N=M.end.getShiftedBy(-1),G=N.getShiftedBy(-E.length),W=r.model.createRange(G,N);this._applyAutoLink(E,W)}),c.bind("isEnabled").to(this)}_enableEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("enter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition();if(!_.parent.previousSibling)return;const C=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(C)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),C=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(C)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=T4(r,c),C=a6(u);if(C){const M=c.createRange(_.end.getShiftedBy(-C.length),_.end);this._applyAutoLink(C,M)}}_applyAutoLink(r,c){const u=this.editor.model,_=Kd(r,this.editor.config.get("link.defaultProtocol"));var M;this.isEnabled&&(M=u).schema.checkAttributeInSelection(M.createSelection(c),"linkHref")&&Uv(_)&&!function(C){const M=C.start.nodeAfter;return!!M&&M.hasAttribute("linkHref")}(c)&&this._persistAutoLink(_,c)}_persistAutoLink(r,c){const u=this.editor.model,_=this.editor.plugins.get("Delete");u.enqueueChange(C=>{C.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function a6(m){const r=fy.exec(m);return r?r[2]:null}var p3=b(111);Io()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Ev=b(5730);Io()(Ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m3=b(4564);function Fx(m,r,c,u){const _=r.parent,C=c.mapper,M=c.writer;let E=C.toViewPosition(u.createPositionBefore(m));const N=Ix(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),G=m.previousSibling;if(N&&N.getAttribute("listIndent")==m.getAttribute("listIndent")){const W=C.toViewElement(N);E=M.breakContainer(M.createPositionAfter(W))}else if(G&&"listItem"==G.name){E=C.toViewPosition(u.createPositionAt(G,"end"));const W=C.findMappedViewAncestor(E),dt=function(Zt){for(const ue of Zt.getChildren())if("ul"==ue.name||"ol"==ue.name)return ue;return null}(W);E=dt?M.createPositionBefore(dt):M.createPositionAt(W,"end")}else E=C.toViewPosition(u.createPositionBefore(m));if(E=Iv(E),M.insert(E,_),G&&"listItem"==G.name){const W=C.toViewElement(G),dt=M.createRange(M.createPositionAt(W,0),E).getWalker({ignoreElementEnd:!0});for(const Zt of dt)if(Zt.item.is("element","li")){const ue=M.breakContainer(M.createPositionBefore(Zt.item)),xe=Zt.item.parent,Ee=M.createPositionAt(r,"end");L1(M,Ee.nodeBefore,Ee.nodeAfter),M.move(M.createRangeOn(xe),Ee),dt._position=ue}}else{const W=_.nextSibling;if(W&&(W.is("element","ul")||W.is("element","ol"))){let dt=null;for(const Zt of W.getChildren()){const ue=C.toModelElement(Zt);if(!(ue&&ue.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Zt}dt&&(M.breakContainer(M.createPositionAfter(dt)),M.move(M.createRangeOn(dt.parent),M.createPositionAt(r,"end")))}}L1(M,_,_.nextSibling),L1(M,_.previousSibling,_)}function L1(m,r,c){return!r||!c||"ul"!=r.name&&"ol"!=r.name||r.name!=c.name||r.getAttribute("class")!==c.getAttribute("class")?null:m.mergeContainers(m.createPositionAfter(r))}function Iv(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function Ix(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let C=m;for(;C&&"listItem"==C.name;){const M=C.getAttribute("listIndent");if(c&&_==M||u&&_>M)return C;C="forward"===r.direction?C.nextSibling:C.previousSibling}return null}function Nx(m,r,c,u){m.ui.componentFactory.add(r,_=>{const C=m.commands.get(r),M=new Hr(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(C,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function qx(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},C=u.getAttribute("listIndent"),M=[...new Jd(_)].filter(E=>E.item.is("element")).map(E=>E.item);for(const E of M){if(!E.is("element","listItem")||E.getAttribute("listIndent")C)){if(E.getAttribute("listType")!==u.getAttribute("listType")||E.getAttribute("listStyle")!==u.getAttribute("listStyle")||E.getAttribute("listReversed")!==u.getAttribute("listReversed")||E.getAttribute("listStart")!==u.getAttribute("listStart"))break;"backward"===r?c.unshift(E):c.push(E)}}return c}Io()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const IA=["disc","circle","square"],Rx=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function Nv(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:Ff.call(this)}class NA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;Nx(this.editor,"numberedList",r("Numbered List"),''),Nx(this.editor,"bulletedList",r("Bulleted List"),'')}}const Hx={},hy={},gy={},vy=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:m,typeAttribute:r,listType:c}of vy)Hx[m]=c,hy[m]=r,r&&(gy[r]=m);var qA=b(4721);Io()(qA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var zx=b(6082);Io()(zx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yx=b(2417);Io()(Yx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Rv extends Ta{constructor(r,c){super(r),this._indentBy="forward"==c?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let u=Array.from(r.document.selection.getSelectedBlocks());r.change(_=>{const C=u[u.length-1];let M=C.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>C.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const N=E.getAttribute("listIndent")+this._indentBy;N<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",N,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=os(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const c=r.getAttribute("listIndent"),u=r.getAttribute("listType");let _=r.previousSibling;for(;_&&_.is("element","listItem")&&_.getAttribute("listIndent")>=c;){if(_.getAttribute("listIndent")==c)return _.getAttribute("listType")==u;_=_.previousSibling}return!1}return!0}}class a2 extends Ta{constructor(r,c){super(r),this.type=c}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,_=Array.from(c.document.selection.getSelectedBlocks()).filter(M=>s6(M,c.schema)),C=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(C){let E=_[_.length-1].nextSibling,N=Number.POSITIVE_INFINITY,G=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const W=E.getAttribute("listIndent");W=c;)C>_.getAttribute("listIndent")&&(C=_.getAttribute("listIndent")),_.getAttribute("listIndent")==C&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function s6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class zv extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return IA.includes(c=r)?"bulleted":Rx.includes(c)?"numbered":null;var c}getSelectedListItems(r){return function(c){let u=[...c.document.selection.getSelectedBlocks()].filter(_=>_.is("element","listItem")).map(_=>{const C=c.change(M=>M.createPositionAt(_,0));return[...qx(C,"backward"),...qx(C,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return qx(r,c)}}function Bx(m){return(r,c,u)=>{const _=u.consumable;if(!_.test(c.item,"insert")||!_.test(c.item,"attribute:listType")||!_.test(c.item,"attribute:listIndent"))return;_.consume(c.item,"insert"),_.consume(c.item,"attribute:listType"),_.consume(c.item,"attribute:listIndent");const C=c.item;Fx(C,function Ex(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",C=function(E){const N=E.createContainerElement("li");return N.getFillerOffset=Nv,N}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),C),c.bindElements(m,C),C}(C,u),u,m)}}const Yv=(m,r,c)=>{if(!c.consumable.test(r.item,m.name))return;const u=c.mapper.toViewElement(r.item),_=c.writer;_.breakContainer(_.createPositionBefore(u)),_.breakContainer(_.createPositionAfter(u)),_.rename("numbered"==r.attributeNewValue?"ol":"ul",u.parent)},gf=(m,r,c)=>{c.consumable.consume(r.item,m.name);const u=c.mapper.toViewElement(r.item).parent,_=c.writer;L1(_,u,u.nextSibling),L1(_,u.previousSibling,u)},f3=(m,r,c)=>{if(c.consumable.test(r.item,m.name)&&"listItem"!=r.item.name){let u=c.mapper.toViewPosition(r.range.start);const _=c.writer,C=[];for(;("ul"==u.parent.name||"ol"==u.parent.name)&&(u=_.breakContainer(u),"li"==u.parent.name);){const M=u,E=_.createPositionAt(u.parent,"end");if(!M.isEqual(E)){const N=_.remove(_.createRange(M,E));C.push(N)}u=_.createPositionAfter(u.parent)}if(C.length>0){for(let M=0;M0){const N=L1(_,E,E.nextSibling);N&&N.parent==E&&u.offset--}}L1(_,u.nodeBefore,u.nodeAfter)}}},by=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);L1(c.writer,u.nodeBefore,u.nodeAfter)},Cy=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),C=function(N){let G=0,W=N.parent;for(;W;){if(W.is("element","li"))G++;else{const dt=W.previousSibling;dt&&dt.is("element","li")&&G++}W=W.parent}return G}(r.viewItem);if(u.setAttribute("listIndent",C,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(N,G,W){const{writer:dt,schema:Zt}=W;let ue=dt.createPositionAfter(N);for(const xe of G)if("ul"==xe.name||"ol"==xe.name)ue=W.convertItem(xe,ue).modelCursor;else{const Ee=W.convertItem(xe,dt.createPositionAt(N,"end")),ln=Ee.modelRange.start.nodeAfter;ln&&ln.is("element")&&!Zt.checkChild(N,ln.name)&&(N=Ee.modelCursor.parent.is("element","listItem")?Ee.modelCursor.parent:YA(Ee.modelCursor),ue=dt.createPositionAfter(N))}return ue}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},HA=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){const u=Array.from(r.viewItem.getChildren());for(const _ of u)!_.is("element","li")&&!Qh(_)&&_._remove()}},Bv=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const u=[...r.viewItem.getChildren()];let _=!1;for(const C of u)_&&!Qh(C)&&C._remove(),Qh(C)&&(_=!0)}};function Vv(m){return(r,c)=>{if(c.isPhantom)return;const u=c.modelPosition.nodeBefore;if(u&&u.is("element","listItem")){const _=c.mapper.toViewElement(u),C=_.getAncestors().find(Qh),M=m.createPositionAt(_,0).getWalker();for(const E of M){if("elementStart"==E.type&&E.item.is("element","li")){c.viewPosition=E.previousPosition;break}if("elementEnd"==E.type&&E.item==C){c.viewPosition=E.nextPosition;break}}}}}const zA=function(m,[r,c]){let _,C=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,C&&C.is("element","listItem")){const M=_.getFirstPosition();let E=null;if(M.parent.is("element","listItem")?E=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(E=M.nodeBefore),E){const N=E.getAttribute("listIndent");if(N>0)for(;C&&C.is("element","listItem");)C._setAttribute("listIndent",C.getAttribute("listIndent")+N),C=C.nextSibling}}};function YA(m){const r=new Jd({startPosition:m});let c;do{c=r.next()}while(!c.value.item.is("element","listItem"));return c.value.item}function Vx(m,r,c,u,_,C){const M=Ix(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,N=_.writer,G=M?M.getAttribute("listIndent"):null;let W;if(M)if(G==m){const dt=E.toViewElement(M).parent;W=N.createPositionAfter(dt)}else{const dt=C.createPositionAt(M,"end");W=E.toViewPosition(dt)}else W=c;W=Iv(W);for(const dt of[...u.getChildren()])Qh(dt)&&(W=N.move(N.createRangeOn(dt),W).end,L1(N,dt,dt.nextSibling),L1(N,dt.previousSibling,dt))}function Qh(m){return m.is("element","ol")||m.is("element","ul")}class Gv extends lo{static get pluginName(){return"ListEditing"}static get requires(){return[z0,t_,zv]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const c=r.data,u=r.editing;var _;r.model.document.registerPostFixer(M=>function(E,N){const G=E.document.differ.getChanges(),W=new Map;let dt=!1;for(const Ee of G)if("insert"==Ee.type&&"listItem"==Ee.name)Zt(Ee.position);else if("insert"==Ee.type&&"listItem"!=Ee.name){if("$text"!=Ee.name){const ln=Ee.position.nodeAfter;ln.hasAttribute("listIndent")&&(N.removeAttribute("listIndent",ln),dt=!0),ln.hasAttribute("listType")&&(N.removeAttribute("listType",ln),dt=!0),ln.hasAttribute("listStyle")&&(N.removeAttribute("listStyle",ln),dt=!0),ln.hasAttribute("listReversed")&&(N.removeAttribute("listReversed",ln),dt=!0),ln.hasAttribute("listStart")&&(N.removeAttribute("listStart",ln),dt=!0);for(const Mn of Array.from(E.createRangeIn(ln)).filter(di=>di.item.is("element","listItem")))Zt(Mn.previousPosition)}Zt(Ee.position.getShiftedBy(Ee.length))}else"remove"==Ee.type&&"listItem"==Ee.name?Zt(Ee.position):("attribute"==Ee.type&&"listIndent"==Ee.attributeKey||"attribute"==Ee.type&&"listType"==Ee.attributeKey)&&Zt(Ee.range.start);for(const Ee of W.values())ue(Ee),xe(Ee);return dt;function Zt(Ee){const ln=Ee.nodeBefore;if(ln&&ln.is("element","listItem")){let Mn=ln;if(W.has(Mn))return;for(let di=Mn.previousSibling;di&&di.is("element","listItem");di=Mn.previousSibling)if(Mn=di,W.has(Mn))return;W.set(ln,Mn)}else{const Mn=Ee.nodeAfter;Mn&&Mn.is("element","listItem")&&W.set(Mn,Mn)}}function ue(Ee){let ln=0,Mn=null;for(;Ee&&Ee.is("element","listItem");){const di=Ee.getAttribute("listIndent");if(di>ln){let Ri;null===Mn?(Mn=di-ln,Ri=ln):(Mn>di&&(Mn=di),Ri=di-Mn),N.setAttribute("listIndent",Ri,Ee),dt=!0}else Mn=null,ln=Ee.getAttribute("listIndent")+1;Ee=Ee.nextSibling}}function xe(Ee){let ln=[],Mn=null;for(;Ee&&Ee.is("element","listItem");){const di=Ee.getAttribute("listIndent");if(Mn&&Mn.getAttribute("listIndent")>di&&(ln=ln.slice(0,di+1)),0!=di)if(ln[di]){const Ri=ln[di];Ee.getAttribute("listType")!=Ri&&(N.setAttribute("listType",Ri,Ee),dt=!0)}else ln[di]=Ee.getAttribute("listType");Mn=Ee,Ee=Ee.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",h3),c.mapper.registerViewToModelLength("li",h3),u.mapper.on("modelToViewPosition",Vv(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const N=E.viewPosition,G=N.parent,W=E.mapper;if("ul"==G.name||"ol"==G.name){if(N.isAtEnd){const dt=W.toModelElement(N.nodeBefore),Zt=W.getModelLength(N.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt)}else{const dt=W.toModelElement(N.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==G.name&&N.nodeBefore&&("ul"==N.nodeBefore.name||"ol"==N.nodeBefore.name)){const dt=W.toModelElement(G);let Zt=1,ue=N.nodeBefore;for(;ue&&Qh(ue);)Zt+=W.getModelLength(ue),ue=ue.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt),M.stop()}})),c.mapper.on("modelToViewPosition",Vv(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",Bx(r.model)),M.on("attribute:listType:listItem",Yv,{priority:"high"}),M.on("attribute:listType:listItem",gf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(N,G,W)=>{if(!W.consumable.consume(G.item,"attribute:listIndent"))return;const dt=W.mapper.toViewElement(G.item),Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,xe=ue.previousSibling,Ee=Zt.createRangeOn(ue);Zt.remove(Ee),xe&&xe.nextSibling&&L1(Zt,xe,xe.nextSibling),Vx(G.attributeOldValue+1,G.range.start,Ee.start,dt,W,E),Fx(G.item,dt,W,E);for(const ln of G.item.getChildren())W.consumable.consume(ln,"insert")})),M.on("remove:listItem",function(E){return(N,G,W)=>{const dt=W.mapper.toViewPosition(G.position).getLastMatchingPosition(Mn=>!Mn.item.is("element","li")).nodeAfter,Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,xe=ue.previousSibling,Ee=Zt.createRangeOn(ue),ln=Zt.remove(Ee);xe&&xe.nextSibling&&L1(Zt,xe,xe.nextSibling),Vx(W.mapper.toModelElement(dt).getAttribute("listIndent")+1,G.position,Ee.start,dt,W,E);for(const Mn of Zt.createRangeIn(ln).getItems())W.mapper.unbindViewElement(Mn);N.stop()}}(r.model)),M.on("remove",by,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",Bx(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",HA,{priority:"high"}),M.on("element:ol",HA,{priority:"high"}),M.on("element:li",Bv,{priority:"high"}),M.on("element:li",Cy)}),r.model.on("insertContent",zA,{priority:"high"}),r.commands.add("numberedList",new a2(r,"numbered")),r.commands.add("bulletedList",new a2(r,"bulleted")),r.commands.add("indentList",new Rv(r,"forward")),r.commands.add("outdentList",new Rv(r,"backward"));const C=u.view.document;this.listenTo(C,"enter",(M,E)=>{const N=this.editor.model.document,G=N.selection.getLastPosition().parent;N.selection.isCollapsed&&"listItem"==G.name&&G.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(C,"delete",(M,E)=>{if("backward"!==E.direction)return;const N=this.editor.model.document.selection;if(!N.isCollapsed)return;const G=N.getFirstPosition();if(!G.isAtStart)return;const W=G.parent;"listItem"===W.name&&(W.previousSibling&&"listItem"===W.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const N=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(N).isEnabled&&(r.execute(N),E.stopPropagation(),E.preventDefault(),M.stop())},{context:"li"})}afterInit(){const r=this.editor.commands,c=r.get("indent"),u=r.get("outdent");c&&c.registerChildCommand(r.get("indentList")),u&&u.registerChildCommand(r.get("outdentList"))}}function h3(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=h3(u);return r}Ks("Ctrl+Enter");var jv=b(1199);function Gx(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=C.writer,N=C.mapper.toViewElement(_.item),G=[...N.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(G);const W=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(N,0),W)};return u=>{u.on("attribute:url:media",c)}}function c6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function l6(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function VA(m,r,c,u){m.change(_=>{const C=_.createElement("media",{url:r});m.insertObject(C,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}Io()(jv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ks("Ctrl+Enter");class jx extends Ta{refresh(){const r=this.editor.model,c=r.document.selection,u=l6(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const C=_.getSelectedElement();return!!C&&"media"===C.name}(c)||function(_,C){let E=D4(_,C).start.parent;return E.isEmpty&&!C.schema.isLimit(E)&&(E=E.parent),C.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=l6(u);_?c.change(C=>{C.setAttribute("url",r,_)}):VA(c,r,u,!0)}}class g3{constructor(r,c){const u=c.providers,_=c.extraProviders||[],C=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const N=E.name;return N?!C.has(N):(Tt("media-embed-no-provider-name",{provider:E}),!1)});this.locale=r,this.providerDefinitions=M}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,c,u){return this._getMedia(c).getViewElement(r,u)}_getMedia(r){if(!r)return new Jx(this.locale);r=r.trim();for(const c of this.providerDefinitions){const u=c.html,_=Ds(c.url);for(const C of _){const M=this._getUrlMatches(r,C);if(M)return new Jx(this.locale,r,M,u)}}return null}_getUrlMatches(r,c){let u=r.match(c);if(u)return u;let _=r.replace(/^https?:\/\//,"");return u=_.match(c),u||(_=_.replace(/^www\./,""),u=_.match(c),u||null)}}class Jx{constructor(r,c,u,_){this.url=this._getValidUrl(c),this._locale=r,this._match=u,this._previewRenderer=_}getViewElement(r,c){const u={};let _;if(c.renderForEditingView||c.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(u["data-oembed-url"]=this.url),c.renderForEditingView&&(u.class="ck-media__wrapper");const C=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,C)})}else this.url&&(u.url=this.url),_=r.createEmptyElement(c.elementName,u);return r.setCustomProperty("media-content",!0,_),_}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new Ps,c=this._locale.t;return r.content='',r.viewBox="0 0 64 42",new wr({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[r]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":c("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}var Qx=b(7442);Io()(Qx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Jv extends lo{constructor(r){super(r),r.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:c=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:c=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:c=>{const _=c[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:c=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new g3(r.locale,r.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const r=this.editor,c=r.model.schema,u=r.t,_=r.conversion,C=r.config.get("mediaEmbed.previewsInData"),M=r.config.get("mediaEmbed.elementName"),E=this.registry;r.commands.add("mediaEmbed",new jx(r)),c.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),_.for("dataDowncast").elementToStructure({model:"media",view:(N,{writer:G})=>{const W=N.getAttribute("url");return c6(G,E,W,{elementName:M,renderMediaPreview:!!W&&C})}}),_.for("dataDowncast").add(Gx(E,{elementName:M,renderMediaPreview:C})),_.for("editingDowncast").elementToStructure({model:"media",view:(N,{writer:G})=>{const W=N.getAttribute("url");return dt=c6(G,E,W,{elementName:M,renderForEditingView:!0}),Zt=G,ue=u("media widget"),Zt.setCustomProperty("media",!0,dt),uf(dt,Zt,{label:ue});var dt,Zt,ue}}),_.for("editingDowncast").add(Gx(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:N=>["oembed",M].includes(N.name)&&N.getAttribute("url")?{name:!0}:null,model:(N,{writer:G})=>{const W=N.getAttribute("url");return E.hasMedia(W)?G.createElement("media",{url:W}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(N,{writer:G})=>{const W=N.getAttribute("data-oembed-url");return E.hasMedia(W)?G.createElement("media",{url:W}):null}}).add(N=>{N.on("element:figure",(G,W,dt)=>{if(!dt.consumable.consume(W.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Zt,modelCursor:ue}=dt.convertChildren(W.viewItem,W.modelCursor);W.modelRange=Zt,W.modelCursor=ue,os(Zt.getItems())||dt.consumable.revert(W.viewItem,{name:!0,classes:"media"})})})}}const GA=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class jA extends lo{constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[gC,t_,UC]}static get pluginName(){return"AutoMediaEmbed"}init(){const r=this.editor,c=r.model.document,u=r.plugins.get("ClipboardPipeline");this.listenTo(u,"inputTransformation",()=>{const _=c.selection.getFirstRange(),C=Ql.fromPosition(_.start);C.stickiness="toPrevious";const M=Ql.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(C,M),C.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Mt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,c){const u=this.editor,_=u.plugins.get(Jv).registry,C=new Ad(r,c),M=C.getWalker({ignoreElementEnd:!0});let E="";for(const N of M)N.item.is("$textProxy")&&(E+=N.item.data);E=E.trim(),E.match(GA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Ql.fromPosition(r),this._timeoutId=Mt.window.setTimeout(()=>{u.model.change(N=>{this._timeoutId=null,N.remove(C),C.detach();let G=null;"$graveyard"!==this._positionToInsert.root.rootName&&(G=this._positionToInsert),VA(u.model,E,G,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(t_).requestUndoOnBackspace()},100)):C.detach()}}var Wx=b(9292);Io()(Wx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class yy extends aa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new as,this.keystrokes=new jc,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),fs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),fs.cancel,"ck-button-cancel","cancel"),this._focusables=new Fa,this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),x({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(c=>{this._focusables.add(c),this.focusTracker.add(c.element)}),this.keystrokes.listenTo(this.element);const r=c=>c.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const c=r(this);if(c)return this.urlInputView.errorText=c,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,c=new Dr(this.locale,$2),u=c.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),c.label=r("Media URL"),c.infoText=this._urlInputViewInfoDefault,u.on("input",()=>{c.infoText=u.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=u.element.value.trim()}),c}_createButton(r,c,u,_){const C=new Hr(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}}class JA extends lo{static get requires(){return[Jv]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,c=r.commands.get("mediaEmbed");r.ui.componentFactory.add("mediaEmbed",u=>{const _=D1(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,C=r.buttonView,M=u.plugins.get(Jv).registry;r.once("change:isOpen",()=>{const E=new(A(yy))((N=u.t,G=M,[W=>{if(!W.url.length)return N("The URL must not be empty.")},W=>{if(!G.hasMedia(W.url))return N("This media URL is not supported.")}]),u.locale);var N,G;r.panelView.children.add(E),C.on("open",()=>{E.disableCssTransitions(),E.url=c.value||"",E.urlInputView.fieldView.select(),E.enableCssTransitions()},{priority:"low"}),r.on("submit",()=>{E.isValid()&&(u.execute("mediaEmbed",E.url),u.editing.view.focus())}),r.on("change:isOpen",()=>E.resetFormStatus()),r.on("cancel",()=>{u.editing.view.focus()}),E.delegate("submit","cancel").to(r),E.urlInputView.fieldView.bind("value").to(c,"value"),E.urlInputView.bind("isEnabled").to(c,"isEnabled")}),r.bind("isEnabled").to(c),C.set({label:_("Insert media"),icon:'',tooltip:!0})}}var QA=b(4652);function wy(m){if(m.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(m){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return m;default:return null}}function WA(m,r,c){const u=r.parent,_=c.createElement(m.type),C=u.getChildIndex(r)+1;return c.insertChild(C,_,u),m.style&&c.setStyle("list-style-type",m.style,_),m.startIndex&&m.startIndex>1&&c.setAttribute("start",m.startIndex,_),_}function $A(m){const r={},c=m.getStyle("mso-list");if(c){const u=c.match(/(^|\s{1,100})l(\d+)/i),_=c.match(/\s{0,100}lfo(\d+)/i),C=c.match(/\s{0,100}level(\d+)/i);u&&_&&C&&(r.id=u[2],r.order=_[1],r.indent=parseInt(C[1]))}return r}function Zy(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}Io()(QA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const My=//i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return My.test(r)||h.test(r)}execute(r){const{body:c,stylesString:u}=r._parsedData;(function $x(m,r){if(!m.childCount)return;const c=new X1(m.document),u=function(M,E){const N=E.createRangeIn(M),G=new ms({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),W=[];for(const dt of N)if("elementStart"===dt.type&&G.match(dt.item)){const Zt=$A(dt.item);W.push({element:dt.item,id:Zt.id,order:Zt.order,indent:Zt.indent})}return W}(m,c);if(!u.length)return;let _=null,C=1;u.forEach((M,E)=>{const N=function(xe,Ee){if(!xe)return!0;if(xe.id!==Ee.id)return Ee.indent-xe.indent!=1;const ln=Ee.element.previousSibling;return!ln||!((Mn=ln).is("element","ol")||Mn.is("element","ul"));var Mn}(u[E-1],M),W=(Zt=M,(dt=N?null:u[E-1])?Zt.indent-dt.indent:Zt.indent-1);var dt,Zt;if(N&&(_=null,C=1),!_||0!==W){const xe=function(Ee,ln){const di=/mso-level-number-format:([^;]{0,100});/gi,Ri=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Jo=new RegExp(`@list l${Ee.id}:level${Ee.indent}\\s*({[^}]*)`,"gi").exec(ln);let Da="decimal",Ts="ol",$r=null;if(Jo&&Jo[1]){const Sl=di.exec(Jo[1]);if(Sl&&Sl[1]&&(Da=Sl[1].trim(),Ts="bullet"!==Da&&"image"!==Da?"ol":"ul"),"bullet"===Da){const fl=function(g6){const c2=function(vf){if(vf.getChild(0).is("$text"))return null;for(const l2 of vf.getChildren()){if(!l2.is("element","span"))continue;const y3=l2.getChild(0);if(y3)return y3.is("$text")?y3:y3.getChild(0)}return null}(g6);if(!c2)return null;const Yp=c2._data;return"o"===Yp?"circle":"\xb7"===Yp?"disc":"\xa7"===Yp?"square":null}(Ee.element);fl&&(Da=fl)}else{const fl=Ri.exec(Jo[1]);fl&&fl[1]&&($r=parseInt(fl[1]))}}return{type:Ts,startIndex:$r,style:wy(Da)}}(M,r);if(_)if(M.indent>C){const Ee=_.getChild(_.childCount-1),ln=Ee.getChild(Ee.childCount-1);_=WA(xe,ln,c),C+=1}else M.indentC.indexOf(xe)>-1)?W.push(Zt):Zt.getAttribute("src")||W.push(Zt)}for(const dt of W)E.remove(dt)})(u,m,c),function(C,M,E){const N=E.createRangeIn(M),G=[];for(const Zt of N)if("elementStart"==Zt.type&&Zt.item.is("element","v:shape")){const ue=Zt.item.getAttribute("id");if(C.includes(ue))continue;W(Zt.item.parent.getChildren(),ue)||G.push(Zt.item)}for(const Zt of G){const ue={src:dt(Zt)};Zt.hasAttribute("alt")&&(ue.alt=Zt.getAttribute("alt"));const xe=E.createElement("img",ue);E.insertChild(Zt.index+1,xe,Zt.parent)}function W(Zt,ue){for(const xe of Zt)if(xe.is("element")&&("img"==xe.name&&xe.getAttribute("v:shapes")==ue||W(xe.getChildren(),ue)))return!0;return!1}function dt(Zt){for(const ue of Zt.getChildren())if(ue.is("element")&&ue.getAttribute("src"))return ue.getAttribute("src")}}(u,m,c),function(C,M){const E=M.createRangeIn(C),N=new ms({name:/v:(.+)/}),G=[];for(const W of E)"elementStart"==W.type&&N.match(W.item)&&G.push(W.item);for(const W of G)M.remove(W)}(m,c);const _=function(C,M){const E=M.createRangeIn(C),N=new ms({name:"img"}),G=[];for(const W of E)W.item.is("element")&&N.match(W.item)&&W.item.getAttribute("src").startsWith("file://")&&G.push(W.item);return G}(m,c);_.length&&function(C,M,E){if(C.length===M.length)for(let N=0;NM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?C.nodeAfter:C.nodeBefore}function O(m,r){return!!m&&m.is("element")&&r.includes(m.name)}const q=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class V{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new X1(this.document),{body:u}=r._parsedData;(function(_,C){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);C.remove(M),C.insertChild(E,M.getChildren(),_)}})(u,c),function(_,C){for(const M of C.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const N=E.getChild(0);N&&N.is("element","p")&&C.unwrapElement(N)}}}(u,c),function(_,C){const M=new em(C.document.stylesProcessor),E=new D_(M,{renderingMode:"data"}),N=E.blockElements,G=E.inlineObjectElements,W=[];for(const dt of C.createRangeIn(_)){const Zt=dt.item;if(Zt.is("element","br")){const ue=w(Zt,"forward",C,{blockElements:N,inlineObjectElements:G}),xe=w(Zt,"backward",C,{blockElements:N,inlineObjectElements:G}),Ee=O(ue,N);(O(xe,N)||Ee)&&W.push(Zt)}}for(const dt of W)dt.hasClass("Apple-interchange-newline")?C.remove(dt):C.replace(dt,C.createElement("p"))}(u,c),r.content=u}}const ut=/(\s+)<\/span>/g,(r,c)=>1===c.length?" ":Array(c.length+1).join("\xa0 ").substr(0,c.length))}function Ge(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function Cn(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function ai(m,r){const u=parseInt(r.parent.parent.getAttribute("headingColumns")||"0"),{column:_}=m.getCellLocation(r);return!!u&&_{r.on(`element:${m}`,(c,u,{writer:_})=>{if(!u.modelRange)return;const C=u.modelRange.start.nodeAfter,M=_.createPositionAt(C,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(C.getChildren());if(E.every(N=>N.is("element","$marker"))){const N=_.createElement("paragraph");_.insert(N,_.createPositionAt(C,0));for(const G of E)_.move(_.createRangeOn(G),_.createPositionAt(N,"end"))}},{priority:"low"})}}function yo(m){let r=0,c=0;const u=Array.from(m.getChildren()).filter(_=>"th"===_.name||"td"===_.name);for(;c1||M>1)&&this._recordSpans(_,M,C),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+C}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,c||this.next()}skipRow(r){this._skipRows.add(r)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(r,c=this._row,u=this._column){return{done:!1,value:new ma(this,r,c,u)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const r=this._spannedCells.get(this._row);return r&&r.get(this._column)||null}_recordSpans(r,c,u){const _={cell:r,row:this._row,column:this._column};for(let C=this._row;C0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const r=this._getRowLength(0);for(let c=this._startRow;!this._jumpedToStartRow;c--)r===this._getRowLength(c)&&(this._row=c,this._rowIndex=c,this._jumpedToStartRow=!0)}_getRowLength(r){return[...this._table.getChild(r).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}}class ma{constructor(r,c,u,_){this.cell=c,this.row=r._row,this.column=r._column,this.cellAnchorRow=u,this.cellAnchorColumn=_,this._cellIndex=r._cellIndex,this._rowIndex=r._rowIndex,this._table=r._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function wa(m,r){return(c,{writer:u})=>{const _=c.getAttribute("headingRows")||0,C=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},C);_>0&&u.insert(u.createPositionAt(C,"end"),u.createContainerElement("thead",null,u.createSlot(E=>E.is("element","tableRow")&&E.index<_))),_E.is("element","tableRow")&&E.index>=_)));for(const{positionOffset:E,filter:N}of r.additionalSlots)u.insert(u.createPositionAt(C,E),u.createSlot(N));return u.insert(u.createPositionAt(C,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:N})=>N(E)))),r.asWidget?((N=u).setCustomProperty("table",!0,E=M),uf(E,N,{hasSelectionHandle:!0})):M;var E,N}}function ao(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,C=_.getChildIndex(u),M=new so(_,{row:C}),E=_.getAttribute("headingRows")||0,N=_.getAttribute("headingColumns")||0;let G=null;for(const W of M)if(W.cell==r){const dt=W.row{if(!r.parent.is("element","tableCell")||!Br(r))return null;if(m.asWidget)return c.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const u=c.createContainerElement("p");return c.setCustomProperty("dataPipeline:transparentRendering",!0,u),u}}}function Br(m){return 1==m.parent.childCount&&!!m.getAttributeKeys().next().done}class Tc extends Ta{refresh(){const r=this.editor.model;this.isEnabled=function(_,C){const M=_.getFirstPosition().parent;return C.checkChild(M===M.root?M:M.parent,"table")}(r.document.selection,r.schema)}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("TableUtils"),C=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&C&&(r.headingRows=C),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const N=_.createTable(E,r);u.insertObject(N,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(N.getNodeByPath([0,0,0]),0))})}}class r2 extends Ta{constructor(r,c={}){super(r),this.order=c.order||"below"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="above"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertRows(N,{at:_?E:E+1,copyStructureFromAbove:!_})}}class u6 extends Ta{constructor(r,c={}){super(r),this.order=c.order||"right"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="left"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertColumns(N,{columns:1,at:_?E:E+1})}}class v3 extends Ta{constructor(r,c={}){super(r),this.direction=c.direction||"horizontally"}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===r.length}execute(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?r.splitCellHorizontally(c,2):r.splitCellVertically(c,2)}}function d6(m,r,c){const{startRow:u,startColumn:_,endRow:C,endColumn:M}=r,E=c.createElement("table"),N=C-u+1;for(let W=0;W0&&Ge("headingRows",Ee-Zt,W,xe,0);const ln=parseInt(dt.getAttribute("headingColumns")||"0");ln>0&&Ge("headingColumns",ln-ue,W,xe,0)}(E,m,u,_,c),E}function p6(m,r,c=0){const u=[],_=new so(m,{startRow:c,endRow:r-1});for(const C of _){const{row:M,cellHeight:E}=C;M1&&(E.rowspan=N);const G=parseInt(m.getAttribute("colspan")||"1");G>1&&(E.colspan=G);const W=C+M,dt=[...new so(_,{startRow:C,endRow:W,includeAllSlots:!0})];let Zt,ue=null;for(const xe of dt){const{row:Ee,column:ln,cell:Mn}=xe;Mn===m&&void 0===Zt&&(Zt=ln),void 0!==Zt&&Zt===ln&&Ee===W&&(ue=Cn(c,xe.getPositionBefore(),E))}return Ge("rowspan",M,m,c),ue}function _6(m,r){const c=[],u=new so(m);for(const _ of u){const{column:C,cellWidth:M}=_;C1&&(C.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(C.rowspan=E);const N=Cn(u,u.createPositionAfter(m),C);return Ge("colspan",_,m,u),N}function b3(m,r,c,u,_,C){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&Ge("colspan",_-c+1,m,C,1),r+E-1>u&&Ge("rowspan",u-r+1,m,C,1)}function C3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:C}of new so(m))u[C]++;const _=u.reduce((C,M,E)=>M?C:[...C,E],[]);return _.length>0&&(r.removeColumns(m,{at:_[_.length-1]}),!0)}function Kx(m,r){const c=[],u=r.getRows(m);for(let _=0;_0&&(r.removeRows(m,{at:c[c.length-1]}),!0)}function KA(m,r){C3(m,r)||Kx(m,r)}function XA(m,r){const c=Array.from(new so(m,{startColumn:r.firstColumn,endColumn:r.lastColumn,row:r.lastRow}));return c.every(({cellHeight:_})=>1===_)?r.lastRow:r.lastRow+(c[0].cellHeight-1)}function ky(m,r){const c=Array.from(new so(m,{startRow:r.firstRow,endRow:r.lastRow,column:r.lastColumn}));return c.every(({cellWidth:_})=>1===_)?r.lastColumn:r.lastColumn+(c[0].cellWidth-1)}class Qv extends Ta{constructor(r,c){super(r),this.direction=c.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const r=this._getMergeableCell();this.value=r,this.isEnabled=!!r}execute(){const r=this.editor.model,c=r.document,u=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(c.selection)[0],_=this.value,C=this.direction;r.change(M=>{const E="right"==C||"down"==C,N=E?u:_,G=E?_:u,W=G.parent;var Ee,ln,Mn;ln=N,Mn=M,Dy(Ee=G)||(Dy(ln)&&Mn.remove(Mn.createRangeIn(ln)),Mn.move(Mn.createRangeIn(Ee),Mn.createPositionAt(ln,"end"))),Mn.remove(Ee);const dt=this.isHorizontal?"colspan":"rowspan",Zt=parseInt(u.getAttribute(dt)||"1"),ue=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Zt+ue,N),M.setSelection(M.createRangeIn(N));const xe=this.editor.plugins.get("TableUtils");KA(W.findAncestor("table"),xe)})}_getMergeableCell(){const r=this.editor.model.document,c=this.editor.plugins.get("TableUtils"),u=c.getTableCellsContainingSelection(r.selection)[0];if(!u)return;const _=this.isHorizontal?function(E,N,G){const Zt="right"==N?E.nextSibling:E.previousSibling,ue=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Zt)return;const xe="right"==N?E:Zt,Ee="right"==N?Zt:E,{column:ln}=G.getCellLocation(xe),{column:Mn}=G.getCellLocation(Ee),di=parseInt(xe.getAttribute("colspan")||"1"),Ri=ai(G,xe),Jo=ai(G,Ee);return ue&&Ri!=Jo?void 0:ln+di===Mn?Zt:void 0}(u,this.direction,c):function(E,N,G){const W=E.parent,dt=W.parent,Zt=dt.getChildIndex(W);if("down"==N&&Zt===G.getRows(dt)-1||"up"==N&&0===Zt)return null;const ue=parseInt(E.getAttribute("rowspan")||"1"),xe=dt.getAttribute("headingRows")||0;if(xe&&("down"==N&&Zt+ue===xe||"up"==N&&Zt===xe))return null;const Mn=parseInt(E.getAttribute("rowspan")||"1"),di="down"==N?Zt+Mn:Zt,Ri=[...new so(dt,{endRow:di})],Da=Ri.find($r=>$r.cell===E).column,Ts=Ri.find(({row:$r,cellHeight:Sl,column:fl})=>fl===Da&&("down"==N?$r===di:di===$r+Sl));return Ts&&Ts.cell?Ts.cell:null}(u,this.direction,c);if(!_)return;const C=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(C)||"1");return parseInt(_.getAttribute(C)||"1")===M?_:void 0}}function Dy(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class Py extends Ta{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===C)}else this.isEnabled=!1}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0],M=C.findAncestor("table"),E=c.getCellLocation(C).column;r.change(N=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const W=function(dt,Zt,ue,xe){const Ee=dt.getChild(Math.min(Zt,xe-1));let ln=Ee.getChild(0),Mn=0;for(const di of Ee.getChildren()){if(Mn>ue)return ln;ln=di,Mn+=parseInt(di.getAttribute("colspan")||"1")}return ln}(M,_.first,E,c.getRows(M));N.setSelection(N.createPositionAt(W,0))})}}class Sy extends Ta{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MN.cell===c).column,last:C.find(N=>N.cell===u).column},E=(N=C,G=c,W=u,dt=M,parseInt(W.getAttribute("colspan")||"1")>1?W:G.previousSibling||W.nextSibling?W.nextSibling||G.previousSibling:dt.first?N.reverse().find(({column:ue})=>ueue>dt.last).cell);var N,G,W,dt;this.editor.model.change(N=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),N.setSelection(N.createPositionAt(E,0))})}}class QT extends Ta{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(C=>this._isInHeading(C,C.parent.parent))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),N=this.value?M:E+1,G=C.getAttribute("headingRows")||0;u.change(W=>{if(N){const dt=p6(C,N,N>G?G:0);for(const{cell:Zt}of dt)m6(Zt,N,W)}Ge("headingRows",N,C,W,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(C=>ai(c,C))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),N=this.value?M:E+1;u.change(G=>{if(N){const W=_6(C,N);for(const{cell:dt,column:Zt}of W)f6(dt,Zt,N,G)}Ge("headingColumns",N,C,G,0)})}}class Xd extends lo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(r){const c=r.parent,u=c.parent,_=u.getChildIndex(c),C=new so(u,{row:_});for(const{cell:M,row:E,column:N}of C)if(M===r)return{row:E,column:N}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,C=c.columns||2;return Wn(r,u,0,_,C),c.headingRows&&Ge("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&Ge("headingColumns",Math.min(c.headingColumns,C),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,C=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,N=this.getRows(r),G=this.getColumns(r);if(_>N)throw new it("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(W=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&Ge("headingRows",dt+C,r,W,0),!M&&(0===_||_===N))return void Wn(W,r,_,C,G);const Zt=M?Math.max(_,E):_,ue=new so(r,{endRow:Zt}),xe=new Array(G).fill(1);for(const{row:Ee,column:ln,cellHeight:Mn,cellWidth:di,cell:Ri}of ue){const Jo=Ee+Mn-1,Da=Ee<=E&&E<=Jo;Ee<_&&_<=Jo?(W.setAttribute("rowspan",Mn+C,Ri),xe[ln]=-di):M&&Da&&(xe[ln]=di)}for(let Ee=0;Ee0&&Cn(W,Ri,di>1?{colspan:di}:void 0),Mn+=Math.abs(di)-1}}})}insertColumns(r,c={}){const _=c.at||0,C=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_C-1)throw new it("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(N=>{const G={first:M,last:E},{cellsToMove:W,cellsToTrim:dt}=function(Zt,{first:ue,last:xe}){const Ee=new Map,ln=[];for(const{row:Mn,column:di,cellHeight:Ri,cell:Jo}of new so(Zt,{endRow:xe})){const Da=Mn+Ri-1;if(Mn>=ue&&Mn<=xe&&Da>xe&&Ee.set(di,{cell:Jo,rowspan:Ri-(xe-Mn+1)}),Mn=ue){let Ts;Ts=Da>=xe?xe-ue+1:Da-ue+1,ln.push({cell:Jo,rowspan:Ri-Ts})}}return{cellsToMove:Ee,cellsToTrim:ln}}(r,G);W.size&&function(Zt,ue,xe,Ee){const Mn=[...new so(Zt,{includeAllSlots:!0,row:ue})],di=Zt.getChild(ue);let Ri;for(const{column:Jo,cell:Da,isAnchor:Ts}of Mn)if(xe.has(Jo)){const{cell:$r,rowspan:Sl}=xe.get(Jo),fl=Ri?Ee.createPositionAfter(Ri):Ee.createPositionAt(di,0);Ee.move(Ee.createRangeOn($r),fl),Ge("rowspan",Sl,$r,Ee),Ri=$r}else Ts&&(Ri=Da)}(r,E+1,W,N);for(let Zt=E;Zt>=M;Zt--)N.remove(r.getChild(Zt));for(const{rowspan:Zt,cell:ue}of dt)Ge("rowspan",Zt,ue,N);(function(Zt,{first:ue,last:xe},Ee){const ln=Zt.getAttribute("headingRows")||0;ue{!function(G,W,dt){const Zt=G.getAttribute("headingColumns")||0;if(Zt&&W.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let G=M;G>=_;G--){for(const{cell:W,column:dt,cellWidth:Zt}of[...new so(r)])dt<=G&&Zt>1&&dt+Zt>G?Ge("colspan",Zt-1,W,E):dt===G&&E.remove(W);if(N[G]){const W=0===G?N[1]:N[G-1],dt=parseFloat(N[G].getAttribute("columnWidth")),Zt=parseFloat(W.getAttribute("columnWidth"));E.remove(N[G]),E.setAttribute("columnWidth",dt+Zt+"%",W)}}Kx(r,this)||C3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,C=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:N,updatedSpan:G}=Ly(M,c);Ge("colspan",G,r,E);const W={};N>1&&(W.colspan=N),C>1&&(W.rowspan=C),h6(M>c?c-1:M-1,E,E.createPositionAfter(r),W)}if(Mxe===r),dt=G.filter(({cell:xe,cellWidth:Ee,column:ln})=>xe!==r&&ln===W||lnW);for(const{cell:xe,cellWidth:Ee}of dt)E.setAttribute("colspan",Ee+N,xe);const Zt={};C>1&&(Zt.rowspan=C),h6(N,E,E.createPositionAfter(r),Zt);const ue=_.getAttribute("headingColumns")||0;ue>W&&Ge("headingColumns",ue+N,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,C=_.parent,M=C.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),N=parseInt(r.getAttribute("colspan")||"1");u.change(G=>{if(E>1){const W=[...new so(C,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Zt}=Ly(E,c);Ge("rowspan",Zt,r,G);const{column:ue}=W.find(({cell:Ee})=>Ee===r),xe={};dt>1&&(xe.rowspan=dt),N>1&&(xe.colspan=N);for(const Ee of W){const{column:ln,row:Mn}=Ee;Mn>=M+Zt&&ln===ue&&(Mn+M+Zt)%dt==0&&h6(1,G,Ee.getPositionBefore(),xe)}}if(EM&&G.setAttribute("rowspan",Ee+W,xe);const Zt={};N>1&&(Zt.colspan=N),Wn(G,C,M+1,W,1,Zt);const ue=C.getAttribute("headingRows")||0;ue>M&&Ge("headingRows",ue+W,C,G)}})}getColumns(r){return[...r.getChild(0).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}getRows(r){return Array.from(r.getChildren()).reduce((c,u)=>u.is("element","tableRow")?c+1:c,0)}createTableWalker(r,c={}){return new so(r,c)}getSelectedTableCells(r){const c=[];for(const u of this.sortRanges(r.getRanges())){const _=u.getContainedElement();_&&_.is("element","tableCell")&&c.push(_)}return c}getTableCellsContainingSelection(r){const c=[];for(const u of r.getRanges()){const _=u.start.findAncestor("tableCell");_&&c.push(_)}return c}getSelectionAffectedTableCells(r){const c=this.getSelectedTableCells(r);return c.length?c:this.getTableCellsContainingSelection(r)}getRowIndexes(r){const c=r.map(u=>u.parent.index);return this._getFirstLastIndexesObject(c)}getColumnIndexes(r){const c=r[0].findAncestor("table"),u=[...new so(c)].filter(_=>r.includes(_.cell)).map(_=>_.column);return this._getFirstLastIndexesObject(u)}isSelectionRectangular(r){if(r.length<2||!this._areCellInTheSameTableSection(r))return!1;const c=new Set,u=new Set;let _=0;for(const M of r){const{row:E,column:N}=this.getCellLocation(M),G=parseInt(M.getAttribute("rowspan"))||1,W=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(N),G>1&&c.add(E+G-1),W>1&&u.add(N+W-1),_+=G*W}return function(M,E){const N=Array.from(M.values()),G=Array.from(E.values());return(Math.max(...N)-Math.min(...N)+1)*(Math.max(...G)-Math.min(...G)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Oy)}_getFirstLastIndexesObject(r){const c=r.sort((u,_)=>u-_);return{first:c[0],last:c[c.length-1]}}_areCellInTheSameTableSection(r){const c=r[0].findAncestor("table"),u=this.getRowIndexes(r),_=parseInt(c.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(u,_))return!1;const C=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(C,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),C=_.shift(),{mergeWidth:M,mergeHeight:E}=function(N,G,W){let dt=0,Zt=0;for(const Mn of G){const{row:di,column:Ri}=W.getCellLocation(Mn);dt=Fy(Mn,Ri,dt,"colspan"),Zt=Fy(Mn,di,Zt,"rowspan")}const{row:ue,column:xe}=W.getCellLocation(N);return{mergeWidth:dt-xe,mergeHeight:Zt-ue}}(C,_,c);Ge("colspan",M,C,u),Ge("rowspan",E,C,u);for(const N of _)XT(N,C,u);KA(C.findAncestor("table"),c),u.setSelection(C,"in")})}}function XT(m,r,c){Ey(m)||(Ey(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Ey(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Fy(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class t7 extends Ta{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const N of C.getChild(E).getChildren())M.push(r.createRangeOn(N));r.change(E=>{E.setSelection(M)})}}class Iy extends Ta{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.plugins.get("TableUtils"),c=this.editor.model,u=r.getSelectionAffectedTableCells(c.document.selection),_=u[0],C=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),N=r.getCellLocation(C),G=Math.min(E.column,N.column),W=Math.max(E.column,N.column),dt=[];for(const Zt of new so(M,{startColumn:G,endColumn:W}))dt.push(c.createRangeOn(Zt.cell));c.change(Zt=>{Zt.setSelection(dt)})}}function e9(m,r){let c=!1;const u=function(_){const C=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((N,G)=>G.is("element","tableRow")?N+1:N,0),E=[];for(const{row:N,cell:G,cellHeight:W}of new so(_)){if(W<2)continue;const dt=Ndt&&E.push({cell:G,rowspan:dt-N})}return E}(m);if(u.length){c=!0;for(const _ of u)Ge("rowspan",_.rowspan,_.cell,r,1)}return c}function e7(m,r){let c=!1;const u=function(E){const N=new Array(E.childCount).fill(0);for(const{rowIndex:G}of new so(E,{includeAllSlots:!0}))N[G]++;return N}(m),_=[];for(const[E,N]of u.entries())!N&&m.getChild(E).is("element","tableRow")&&_.push(E);if(_.length){c=!0;for(const E of _.reverse())r.remove(m.getChild(E)),u.splice(E,1)}const C=u.filter((E,N)=>m.getChild(N).is("element","tableRow")),M=C[0];if(!C.every(E=>E===M)){const E=C.reduce((N,G)=>G>N?G:N,0);for(const[N,G]of C.entries()){const W=E-G;if(W){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function a9(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function r9(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&Br(m)!==c.is("element","span")}var qy=b(3881);Io()(qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ry extends lo{constructor(r){super(r),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[Xd]}init(){const r=this.editor,c=r.model,u=c.schema,_=r.conversion,C=r.plugins.get(Xd);u.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),u.register("tableRow",{allowIn:"table",isLimit:!0}),u.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),_.for("upcast").add(M=>{M.on("element:figure",(E,N,G)=>{if(!G.consumable.test(N.viewItem,{name:!0,classes:"table"}))return;const W=function(Zt){for(const ue of Zt.getChildren())if(ue.is("element","table"))return ue}(N.viewItem);if(!W||!G.consumable.test(W,{name:!0}))return;G.consumable.consume(N.viewItem,{name:!0,classes:"table"});const dt=os(G.convertItem(W,N.modelCursor).modelRange.getItems());dt?(G.convertChildren(N.viewItem,G.writer.createPositionAt(dt,"end")),G.updateConversionResult(dt,N)):G.consumable.revert(N.viewItem,{name:!0,classes:"table"})})}),_.for("upcast").add(function Ai(){return m=>{m.on("element:table",(r,c,u)=>{const _=c.viewItem;if(!u.consumable.test(_,{name:!0}))return;const{rows:C,headingRows:M,headingColumns:E}=function(W){let dt,Zt=0;const ue=[],xe=[];let Ee;for(const ln of Array.from(W.getChildren())){if("tbody"!==ln.name&&"thead"!==ln.name&&"tfoot"!==ln.name)continue;"thead"!==ln.name||Ee||(Ee=ln);const Mn=Array.from(ln.getChildren()).filter(di=>di.is("element","tr"));for(const di of Mn)if(Ee&&ln===Ee||"tbody"===ln.name&&Array.from(di.getChildren()).length&&Array.from(di.getChildren()).every(Ri=>Ri.is("element","th")))Zt++,ue.push(di);else{xe.push(di);const Ri=yo(di);(!dt||Riu.convertItem(W,u.writer.createPositionAt(G,"end"))),u.convertChildren(_,u.writer.createPositionAt(G,"end")),G.isEmpty){const W=u.writer.createElement("tableRow");u.writer.insert(W,u.writer.createPositionAt(G,"end")),Cn(u.writer,u.writer.createPositionAt(W,"end"))}u.updateConversionResult(G,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:wa(C,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:wa(C,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,N)=>{N.viewItem.isEmpty&&0==N.modelCursor.index&&E.stop()},{priority:"high"})}),_.for("downcast").elementToElement({model:"tableRow",view:(M,{writer:E})=>M.isEmpty?E.createEmptyElement("tr"):E.createContainerElement("tr")}),_.for("upcast").elementToElement({model:"tableCell",view:"td"}),_.for("upcast").elementToElement({model:"tableCell",view:"th"}),_.for("upcast").add(Vi("td")),_.for("upcast").add(Vi("th")),_.for("editingDowncast").elementToElement({model:"tableCell",view:ao({asWidget:!0})}),_.for("dataDowncast").elementToElement({model:"tableCell",view:ao()}),_.for("editingDowncast").elementToElement({model:"paragraph",view:Ea({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Ea(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:Hy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Hy("rowspan")},view:"rowspan"}),r.config.define("table.defaultHeadings.rows",0),r.config.define("table.defaultHeadings.columns",0),r.commands.add("insertTable",new Tc(r)),r.commands.add("insertTableRowAbove",new r2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new r2(r,{order:"below"})),r.commands.add("insertTableColumnLeft",new u6(r,{order:"left"})),r.commands.add("insertTableColumnRight",new u6(r,{order:"right"})),r.commands.add("removeTableRow",new Py(r)),r.commands.add("removeTableColumn",new Sy(r)),r.commands.add("splitTableCellVertically",new v3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new v3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new KT(r)),r.commands.add("mergeTableCellRight",new Qv(r,{direction:"right"})),r.commands.add("mergeTableCellLeft",new Qv(r,{direction:"left"})),r.commands.add("mergeTableCellDown",new Qv(r,{direction:"down"})),r.commands.add("mergeTableCellUp",new Qv(r,{direction:"up"})),r.commands.add("setTableColumnHeader",new WT(r)),r.commands.add("setTableRowHeader",new QT(r)),r.commands.add("selectTableRow",new t7(r)),r.commands.add("selectTableColumn",new Iy(r)),function t9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;const M=new Set;for(const E of _){let N=null;"insert"==E.type&&"table"==E.name&&(N=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(N=E.position.findAncestor("table")),n9(E)&&(N=E.range.start.findAncestor("table")),N&&!M.has(N)&&(C=e9(N,c)||C,C=e7(N,c)||C,M.add(N))}return C}(r,m))}(c),function i9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(C=o9(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableRow"==M.name&&(C=Ny(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableCell"==M.name&&(C=Wv(M.position.nodeAfter,c)||C),"remove"!=M.type&&"insert"!=M.type||!a9(M)||(C=Wv(M.position.parent,c)||C);return C}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const N=M.document.differ;for(const G of N.getChanges()){let W,dt=!1;if("attribute"==G.type){const Ee=G.range.start.nodeAfter;if(!Ee||!Ee.is("element","table")||"headingRows"!=G.attributeKey&&"headingColumns"!=G.attributeKey)continue;W=Ee,dt="headingRows"==G.attributeKey}else"tableRow"!=G.name&&"tableCell"!=G.name||(W=G.position.findAncestor("table"),dt="tableRow"==G.name);if(!W)continue;const Zt=W.getAttribute("headingRows")||0,ue=W.getAttribute("headingColumns")||0,xe=new so(W);for(const Ee of xe){const ln=Ee.rowr9(Zt,E.mapper));for(const Zt of dt)E.reconvertItem(Zt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function Hy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var zy=b(1613);Io()(zy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ka extends aa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new jc,this.focusTracker=new as,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(u,_)=>`${_} \xd7 ${u}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":c.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:c.to("label")}]}],on:{mousedown:c.to(u=>{u.preventDefault()}),click:c.to(()=>{this.fire("execute")})}}),this.on("boxover",(u,_)=>{const{row:C,column:M}=_.target.dataset;this.items.get(10*(parseInt(C,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,C)=>{if(!C)return;const{row:M,column:E}=C.dataset;this.set({rows:parseInt(M),columns:parseInt(E)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:r,focusTracker:c,gridItems:u,numberOfColumns:_,uiLanguageDirection:C}){const M="number"==typeof _?()=>_:_;function E(W){return dt=>{const Zt=u.find(Ee=>Ee.element===c.focusedElement),ue=u.getIndex(Zt),xe=W(ue,u);u.get(xe).focus(),dt.stopPropagation(),dt.preventDefault()}}function N(W,dt){return W===dt-1?0:W+1}function G(W,dt){return 0===W?dt-1:W-1}r.set("arrowright",E((W,dt)=>"rtl"===C?G(W,dt.length):N(W,dt.length))),r.set("arrowleft",E((W,dt)=>"rtl"===C?N(W,dt.length):G(W,dt.length))),r.set("arrowup",E((W,dt)=>{let Zt=W-M();return Zt<0&&(Zt=W+M()*Math.floor(dt.length/M()),Zt>dt.length-1&&(Zt-=M())),Zt})),r.set("arrowdown",E((W,dt)=>{let Zt=W+M();return Zt>dt.length-1&&(Zt=W%M()),Zt}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const r of this.items)this.focusTracker.add(r.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const r=this.rows,c=this.columns;this.items.map((u,_)=>{const C=Math.floor(_/10){const C=r.commands.get("insertTable"),M=D1(_);let E;return M.bind("isEnabled").to(C),M.buttonView.set({icon:'',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new ka(_),M.panelView.children.add(E),E.delegate("execute").to(M),M.on("execute",()=>{r.execute("insertTable",{rows:E.rows,columns:E.columns}),r.editing.view.focus()}))}),M}),r.ui.componentFactory.add("tableColumn",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:c("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:u?"insertTableColumnLeft":"insertTableColumnRight",label:c("Insert column left")}},{type:"button",model:{commandName:u?"insertTableColumnRight":"insertTableColumnLeft",label:c("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:c("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:c("Select column")}}];return this._prepareDropdown(c("Column"),'',C,_)}),r.ui.componentFactory.add("tableRow",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:c("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:c("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:c("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:c("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:c("Select row")}}];return this._prepareDropdown(c("Row"),'',C,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const C=[{type:"button",model:{commandName:"mergeTableCellUp",label:c("Merge cell up")}},{type:"button",model:{commandName:u?"mergeTableCellRight":"mergeTableCellLeft",label:c("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:c("Merge cell down")}},{type:"button",model:{commandName:u?"mergeTableCellLeft":"mergeTableCellRight",label:c("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:c("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:c("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(c("Merge cells"),'',C,_)})}_prepareDropdown(r,c,u,_){const C=this.editor,M=D1(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...N)=>N.some(G=>G)),this.listenTo(M,"execute",N=>{C.execute(N.source.commandName),N.source instanceof xi||C.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const C=this.editor,M=D1(_,p4),E="mergeTableCells",N=C.commands.get(E),G=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([N,...G],"isEnabled",(...W)=>W.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{C.execute(E),C.editing.view.focus()}),this.listenTo(M,"execute",W=>{C.execute(W.source.commandName),C.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],C=new Xs;for(const M of c)lr(M,u,_,C);return Eu(r,C),_}}function lr(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new S0(m.model),{commandName:C,bindIsOn:M}=m.model,E=r.commands.get(C);c.push(E),_.set({commandName:C}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var n7=b(6945);Io()(n7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class x3 extends lo{static get pluginName(){return"TableSelection"}static get requires(){return[Xd,Xd]}init(){const r=this.editor,u=r.editing.view;this.listenTo(r.model,"deleteContent",(_,C)=>this._handleDeleteContent(_,C),{priority:"high"}),this.listenTo(u.document,"insertText",(_,C)=>this._handleInsertTextEvent(_,C),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const u=this.editor.plugins.get(Xd).getSelectedTableCells(this.editor.model.document.selection);return 0==u.length?null:u}getSelectionAsFragment(){const r=this.editor.plugins.get(Xd),c=this.getSelectedTableCells();return c?this.editor.model.change(u=>{const _=u.createDocumentFragment(),{first:C,last:M}=r.getColumnIndexes(c),{first:E,last:N}=r.getRowIndexes(c),G=c[0].findAncestor("table");let W=N,dt=M;if(r.isSelectionRectangular(c)){const ue={firstColumn:C,lastColumn:M,firstRow:E,lastRow:N};W=XA(G,ue),dt=ky(G,ue)}const Zt=d6(G,{startRow:E,startColumn:C,endRow:W,endColumn:dt},u);return u.insert(Zt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(C=>_.createRangeOn(C)),{backward:u.backward})})}getFocusCell(){const r=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return r&&r.is("element","tableCell")?r:null}getAnchorCell(){const r=os(this.editor.model.document.selection.getRanges()).getContainedElement();return r&&r.is("element","tableCell")?r:null}_defineSelectionConverter(){const r=this.editor,c=new Set;r.conversion.for("editingDowncast").add(u=>u.on("selection",(_,C,M)=>{const E=M.writer;!function(W){for(const dt of c)W.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const N=this.getSelectedTableCells();if(!N)return;for(const W of N){const dt=M.mapper.toViewElement(W);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const G=M.mapper.toViewElement(N[N.length-1]);E.setSelection(G,0)},{priority:"lowest"}))}_enablePluginDisabling(){const r=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const c=this.getSelectedTableCells();if(!c)return;r.model.change(u=>{const _=u.createPositionAt(c[0],0),C=r.model.schema.getNearestSelectionRange(_);u.setSelection(C)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(Xd),_=c[0],C=c[1],M=this.editor.model,E=!C||"backward"==C.direction,N=u.getSelectedTableCells(_);N.length&&(r.stop(),M.change(G=>{const W=N[E?N.length-1:0];M.change(Zt=>{for(const ue of N)M.deleteContent(Zt.createSelection(ue,"in"))});const dt=M.schema.getNearestSelectionRange(G.createPositionAt(W,0));_.is("documentSelection")?G.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const C=u.editing.view,M=u.editing.mapper,E=_.map(N=>C.createRangeOn(M.toViewElement(N)));c.selection=C.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),C=u.getCellLocation(c),M=Math.min(_.row,C.row),E=Math.max(_.row,C.row),N=Math.min(_.column,C.column),G=Math.max(_.column,C.column),W=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:N,endColumn:G};for(const{row:xe,cell:Ee}of new so(r.findAncestor("table"),dt))W[xe-M].push(Ee);const Zt=C.row<_.row,ue=C.column<_.column;return Zt&&W.reverse(),ue&&W.forEach(xe=>xe.reverse()),{cells:W.flat(),backward:Zt||ue}}}class i7 extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[x3,Xd]}init(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"copy",(u,_)=>this._onCopyCut(u,_)),this.listenTo(c,"cut",(u,_)=>this._onCopyCut(u,_)),this.listenTo(r.model,"insertContent",(u,[_,C])=>this._onInsertContent(u,_,C),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(x3);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const C=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());C.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,C=this.editor.plugins.get(Xd);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=C.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(N=>{const G={width:C.getColumns(M),height:C.getRows(M)},W=function(ln,Mn,di,Ri){const Jo=ln[0].findAncestor("table"),Da=Ri.getColumnIndexes(ln),Ts=Ri.getRowIndexes(ln),$r={firstColumn:Da.first,lastColumn:Da.last,firstRow:Ts.first,lastRow:Ts.last},Sl=1===ln.length;return Sl&&($r.lastRow+=Mn.height-1,$r.lastColumn+=Mn.width-1,function(fl,g6,c2,Yp){const vf=Yp.getColumns(fl),l2=Yp.getRows(fl);c2>vf&&Yp.insertColumns(fl,{at:vf,columns:c2-vf}),g6>l2&&Yp.insertRows(fl,{at:l2,rows:g6-l2})}(Jo,$r.lastRow+1,$r.lastColumn+1,Ri)),Sl||!Ri.isSelectionRectangular(ln)?function(fl,g6,c2){const{firstRow:Yp,lastRow:vf,firstColumn:l2,lastColumn:y3}=g6,aT={first:Yp,last:vf},m7={first:l2,last:y3};a7(fl,l2,aT,c2),a7(fl,y3+1,aT,c2),o7(fl,Yp,m7,c2),o7(fl,vf+1,m7,c2,Yp)}(Jo,$r,di):($r.lastRow=XA(Jo,$r),$r.lastColumn=ky(Jo,$r)),$r}(E,G,N,C),Zt=W.lastColumn-W.firstColumn+1,ue={startRow:0,startColumn:0,endRow:Math.min(W.lastRow-W.firstRow+1,G.height)-1,endColumn:Math.min(Zt,G.width)-1};M=d6(M,ue,N);const xe=E[0].findAncestor("table"),Ee=this._replaceSelectedCellsWithPasted(M,G,xe,W,N);if(this.editor.plugins.get("TableSelection").isEnabled){const ln=C.sortRanges(Ee.map(Mn=>N.createRangeOn(Mn)));N.setSelection(ln)}else N.setSelection(Ee[0],0)})):KA(M,C)}_replaceSelectedCellsWithPasted(r,c,u,_,C){const{width:M,height:E}=c,N=function(ln,Mn,di){const Ri=new Array(di).fill(null).map(()=>new Array(Mn).fill(null));for(const{column:Jo,row:Da,cell:Ts}of new so(ln))Ri[Da][Jo]=Ts;return Ri}(r,M,E),G=[...new so(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],W=[];let dt;for(const ln of G){const{row:Mn,column:di}=ln;di===_.firstColumn&&(dt=ln.getPositionBefore());const Da=N[(Mn-_.firstRow)%E][(di-_.firstColumn)%M],Ts=Da?C.cloneElement(Da):null,$r=this._replaceTableSlotCell(ln,Ts,dt,C);$r&&(b3($r,Mn,di,_.lastRow,_.lastColumn,C),W.push($r),dt=C.createPositionAfter($r))}const Zt=parseInt(u.getAttribute("headingRows")||"0"),ue=parseInt(u.getAttribute("headingColumns")||"0"),Ee=_.firstColumnt8(C,M,c)).map(({cell:C})=>m6(C,r,u))}function a7(m,r,c,u){if(!(r<1))return _6(m,r).filter(({row:_,cellHeight:C})=>t8(_,C,c)).map(({cell:_,column:C})=>f6(_,C,r,u))}function t8(m,r,c){const u=m+r-1,{first:_,last:C}=c;return m>=_&&m<=C||m<_&&u>=_}class u9 extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[x3,Xd]}init(){const r=this.editor.editing.view.document;this.listenTo(r,"arrowKey",(...c)=>this._onArrowKey(...c),{context:"table"}),this.listenTo(r,"tab",(...c)=>this._handleTabOnSelectedTable(...c),{context:"figure"}),this.listenTo(r,"tab",(...c)=>this._handleTab(...c),{context:["th","td"]})}_handleTabOnSelectedTable(r,c){const u=this.editor,_=u.model.document.selection.getSelectedElement();_&&_.is("element","table")&&(c.preventDefault(),c.stopPropagation(),r.stop(),u.model.change(C=>{C.setSelection(C.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(Xd),C=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let N=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(N||(N=C.getFocusCell()),!N)return;c.preventDefault(),c.stopPropagation(),r.stop();const G=N.parent,W=G.parent,dt=W.getChildIndex(G),Zt=G.getChildIndex(N),ue=0===Zt;if(!E&&ue&&0===dt)return void u.model.change(Mn=>{Mn.setSelection(Mn.createRangeOn(W))});const xe=Zt===G.childCount-1,Ee=dt===_.getRows(W)-1;if(E&&Ee&&xe&&(u.execute("insertTableRowBelow"),dt===_.getRows(W)-1))return void u.model.change(Mn=>{Mn.setSelection(Mn.createRangeOn(W))});let ln;if(E&&xe)ln=W.getChild(dt+1).getChild(0);else if(!E&&ue){const Mn=W.getChild(dt-1);ln=Mn.getChild(Mn.childCount-1)}else ln=G.getChild(Zt+(E?1:-1));u.model.change(Mn=>{Mn.setSelection(Mn.createRangeIn(ln))})}_onArrowKey(r,c){const _=d1(c.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(_,c.shiftKey)&&(c.preventDefault(),c.stopPropagation(),r.stop())}_handleArrowKeys(r,c){const u=this.editor.plugins.get(Xd),_=this.editor.plugins.get("TableSelection"),C=this.editor.model,M=C.document.selection,E=["right","down"].includes(r),N=u.getSelectedTableCells(M);if(N.length){let W;return W=c?_.getFocusCell():E?N[N.length-1]:N[0],this._navigateFromCellInDirection(W,r,c),!0}const G=M.focus.findAncestor("tableCell");if(!G)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(G))return!1}else{const W=M.getSelectedElement();if(!W||!C.schema.isObject(W))return!1}return!!this._isSelectionAtCellEdge(M,G,E)&&(this._navigateFromCellInDirection(G,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,C=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!C.getLimitElement(M).is("element","tableCell"))return _.createPositionAt(c,u?"end":0).isTouching(M);const E=_.createSelection(M);return _.modifySelection(E,{direction:u?"forward":"backward"}),M.isEqual(E.focus)}_navigateFromCellInDirection(r,c,u=!1){const _=this.editor.model,C=r.findAncestor("table"),M=[...new so(C,{includeAllSlots:!0})],{row:E,column:N}=M[M.length-1],G=M.find(({cell:Ee})=>Ee==r);let{row:W,column:dt}=G;switch(c){case"left":dt--;break;case"up":W--;break;case"right":dt+=G.cellWidth;break;case"down":W+=G.cellHeight}if(W<0||W>E||dt<0&&W<=0||dt>N&&W>=E)return void _.change(Ee=>{Ee.setSelection(Ee.createRangeOn(C))});dt<0?(dt=u?0:N,W--):dt>N&&(dt=u?N:0,W++);const Zt=M.find(Ee=>Ee.row==W&&Ee.column==dt).cell,ue=["right","down"].includes(c),xe=this.editor.plugins.get("TableSelection");if(u&&xe.isEnabled){const Ee=xe.getAnchorCell()||r;xe.setCellSelection(Ee,Zt)}else{const Ee=_.createPositionAt(Zt,ue?0:"end");_.change(ln=>{ln.setSelection(Ee)})}}}class Yy extends jd{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class d9 extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[x3,Xd]}init(){this.editor.editing.view.addObserver(Yy),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(Xd);let u=!1;const _=r.plugins.get(x3);this.listenTo(r.editing.view.document,"mousedown",(C,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const N=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!N)return;const G=this._getModelTableCellFromDomEvent(M);G&&By(N,G)&&(u=!0,_.setCellSelection(N,G),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",C=>{u&&C.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,C=!1;const M=r.plugins.get(x3);this.listenTo(r.editing.view.document,"mousedown",(E,N)=>{this.isEnabled&&M.isEnabled&&(N.domEvent.shiftKey||N.domEvent.ctrlKey||N.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(N)))}),this.listenTo(r.editing.view.document,"mousemove",(E,N)=>{if(!N.domEvent.buttons||!c)return;const G=this._getModelTableCellFromDomEvent(N);G&&By(c,G)&&(u=G,_||u==c||(_=!0)),_&&(C=!0,M.setCellSelection(c,u),N.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,C=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{C&&E.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(r){const u=this.editor.editing.view.createPositionAt(r.target,0);return this.editor.editing.mapper.toModelPosition(u).parent.findAncestor("tableCell",{includeSelf:!0})}}function By(m,r){return m.parent.parent==r.parent.parent}var r7=b(6306);function m9(m){const r=m.getSelectedElement();return r&&s7(r)?r:null}function Vy(m){const r=m.getFirstPosition();if(!r)return null;let c=r.parent;for(;c;){if(c.is("element")&&s7(c))return c;c=c.parent}return null}function s7(m){return!!m.getCustomProperty("table")&&Pl(m)}Io()(r7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var e8=b(7368);Io()(e8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=b(9247);Io()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Jy=b(4070);Io()(Jy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Wy=b(6237);Io()(Wy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Ky=b(5087);Io()(Ky.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var s2=b(7341);Io()(s2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var A3=b(2128);Io()(A3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var tT=b(4101);Io()(tT.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v9=Object.defineProperty,c7=Object.getOwnPropertySymbols,l7=Object.prototype.hasOwnProperty,b9=Object.prototype.propertyIsEnumerable,eT=(m,r,c)=>r in m?v9(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,nT=(m,r)=>{for(var c in r||(r={}))l7.call(r,c)&&eT(m,c,r[c]);if(c7)for(var c of c7(r))b9.call(r,c)&&eT(m,c,r[c]);return m};const C9={autoRefresh:!0};class u7 extends(we()){constructor(r,c={}){if(super(),!r)throw new it("token-missing-token-url",this);c.initValue&&this._validateTokenValue(c.initValue),this.set("value",c.initValue),this._refresh="function"==typeof r?r:()=>{return u=r,new Promise((_,C)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,N=M.response;return E<200||E>299?C(new it("token-cannot-download-new-token",null)):_(N)}),M.addEventListener("error",()=>C(new Error("Network Error"))),M.addEventListener("abort",()=>C(new Error("Abort"))),M.send()});var u},this._options=nT(nT({},C9),c)}init(){return new Promise((r,c)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),r(this)):this.refreshToken().then(r).catch(c)})}refreshToken(){return this._refresh().then(r=>(this._validateTokenValue(r),this.set("value",r),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(r){const c="string"==typeof r,u=!/^".*"$/.test(r),_=c&&3===r.split(".").length;if(!u||!_)throw new it("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const r=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},r)}_getTokenRefreshTimeoutTime(){try{const[,r]=this.value.split("."),{exp:c}=JSON.parse(atob(r));return c?Math.floor((1e3*c-Date.now())/2):36e5}catch{return 36e5}}static create(r,c={}){return new u7(r,c).init()}}const d7=/^data:(\S*?);base64,/;class x9 extends(Le()){constructor(r,c,u){if(super(),!r)throw new it("fileuploader-missing-file",null);if(!c)throw new it("fileuploader-missing-token",null);if(!u)throw new it("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const C=_.match(d7);return!(!C||!C.length)}(r)?function(_,C=512){try{const M=_.match(d7)[1],E=atob(_.replace(d7,"")),N=[];for(let G=0;Gr(u)),this}onError(r){return this.once("error",(c,u)=>r(u)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this.xhr,c=u=>()=>this.fire("error",u);r.addEventListener("error",c("Network Error")),r.addEventListener("abort",c("Abort")),r.upload&&r.upload.addEventListener("progress",u=>{u.lengthComputable&&this.fire("progress",{total:u.total,uploaded:u.loaded})}),r.addEventListener("load",()=>{const u=r.status,_=r.response;if(u<200||u>299)return this.fire("error",_.message||_.error)})}_sendRequest(){const r=new FormData,c=this.xhr;return r.append("file",this.file),new Promise((u,_)=>{c.addEventListener("load",()=>{const C=c.status,M=c.response;return C<200||C>299?_(M.message?new it("fileuploader-uploading-data-failed",this,{message:M.message}):M.error):u(M)}),c.addEventListener("error",()=>_(new Error("Network Error"))),c.addEventListener("abort",()=>_(new Error("Abort"))),c.send(r)})}}class iT{constructor(r,c){if(!r)throw new it("uploadgateway-missing-token",null);if(!c)throw new it("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new x9(r,this._token,this._apiAddress)}}class A9 extends C_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new u7(r,c)}createUploadGateway(r,c){return new iT(r,c)}}var oT=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(G){_(G)}},M=N=>{try{E(c.throw(N))}catch(G){_(G)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class p7 extends R0{}p7.builtinPlugins=[class extends lo{static get requires(){return[gC,z0,Y8,L8,S8,UC]}static get pluginName(){return"Essentials"}},class extends lo{static get requires(){return[ap]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const m=this.editor.config.get("ckfinder.uploadUrl");m&&(this.editor.plugins.get(ap).createUploadAdapter=r=>new W8(r,m,this.editor.t))}},class extends lo{static get requires(){return[t_]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const m=this.editor.commands;m.get("bulletedList")&&Hp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&Hp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&Hp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&Hp(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const m=this.editor.commands;if(m.get("bold")){const r=Hh(this.editor,"bold");o2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),o2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=Hh(this.editor,"italic");o2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),o2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=Hh(this.editor,"code");o2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=Hh(this.editor,"strikethrough");o2(this.editor,this,/(~~)([^~]+)(~~)$/g,r)}}_addHeadingAutoformats(){const m=this.editor.commands.get("heading");m&&m.modelElements.filter(r=>r.match(/^heading[1-6]$/)).forEach(r=>{const u=new RegExp(`^(#{${r[7]}})\\s$`);Hp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Hp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&Hp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Hp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[I5,q5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[$8,N4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[H5,SC]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[Y5,LC]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",qC,IC]}},class extends C_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[A9]}init(){return oT(this,null,function*(){const m=this.context.config.get("cloudServices")||{};for(const[c,u]of Object.entries(m))this[c]=u;if(!this.tokenUrl)return void(this.token=null);const r=this.context.plugins.get("CloudServicesCore");this.token=yield r.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(m){return oT(this,null,function*(){if(this._tokens.has(m))return this.getTokenFor(m);const r=this.context.plugins.get("CloudServicesCore"),c=yield r.createToken(m).init();return this._tokens.set(m,c),c})}getTokenFor(m){const r=this._tokens.get(m);if(!r)throw new it("cloudservices-token-not-registered",this);return r}destroy(){super.destroy();for(const m of this._tokens.values())m.destroy()}},class extends lo{static get pluginName(){return"EasyImage"}static get requires(){return[aA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Tt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[Q5,zC]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[QC,_A]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[fA,sv]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[ux,cy]}static get pluginName(){return"ImageStyle"}},class extends lo{static get requires(){return[B0,Md]}static get pluginName(){return"ImageToolbar"}afterInit(){const m=this.editor,r=m.t,c=m.plugins.get(B0),u=m.plugins.get("ImageUtils");var _;c.register("image",{ariaLabel:r("Image toolbar"),items:(_=m.config.get("image.toolbar")||[],_.map(C=>Wt(C)?C.name:C)),getRelatedElement:C=>u.getClosestSelectedImageWidget(C)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[hf,lv,vA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[X4,r3]}},class extends lo{static get requires(){return[Lv,FA,o6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[Gv,NA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[Jv,JA,jA,Y0]}static get pluginName(){return"MediaEmbed"}},j5,class extends lo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Rp]}init(){const m=this.editor,r=m.plugins.get("ClipboardPipeline"),c=m.editing.view.document,u=[];u.push(new g(c)),u.push(new V(c)),u.push(new Ut(c)),r.on("inputTransformation",(_,C)=>{if(C._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=C.dataTransfer.getData("text/html"),E=u.find(N=>N.isActive(M));E&&(C._parsedData||(C._parsedData=function ge(m,r){const c=new DOMParser,u=Ht(Ht(function(N){const G="",dt=N.indexOf(G);if(dt<0)return N;const Zt=N.indexOf("",dt+G.length);return N.substring(0,dt+G.length)+(Zt>=0?N.substring(Zt):"")}(m=m.replace(//)>-1||t[D].search(/\]>/)>-1||t[D].search(/!DOCTYPE/)>-1)&&(x=!1)):t[D].search(/-->/)>-1||t[D].search(/\]>/)>-1?(k+=t[D],x=!1):/^<\w/.exec(t[D-1])&&/^<\/\w/.exec(t[D])&&/^<[\w:\-\.\,]+/.exec(t[D-1])==/^<\/[\w:\-\.\,]+/.exec(t[D])[0].replace("/","")?(k+=t[D],x||U--):t[D].search(/<\w/)>-1&&-1==t[D].search(/<\//)&&-1==t[D].search(/\/>/)?k=k+=x?t[D]:P[U++]+t[D]:t[D].search(/<\w/)>-1&&t[D].search(/<\//)>-1?k=k+=x?t[D]:P[U]+t[D]:t[D].search(/<\//)>-1?k=k+=x?t[D]:P[--U]+t[D]:t[D].search(/\/>/)>-1?k=k+=x?t[D]:P[U]+t[D]:t[D].search(/<\?/)>-1||t[D].search(/xmlns\:/)>-1||t[D].search(/xmlns\=/)>-1?k+=P[U]+t[D]:k+=t[D];return"\n"==k[0]?k.slice(1):k},v.prototype.json=function(b,t){return t=t||this.step,typeof JSON>"u"?b:"string"==typeof b?JSON.stringify(JSON.parse(b),null,t):"object"==typeof b?JSON.stringify(b,null,t):b},v.prototype.css=function(b,T){var t=b.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),A=t.length,x=0,U="",k=0,D=T?et(T):this.shift;for(k=0;k/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},v.prototype.jsonmin=function(b){return typeof JSON>"u"?b:JSON.stringify(JSON.parse(b),null,0)},v.prototype.cssmin=function(b,T){return(T?b:b.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},v.prototype.sqlmin=function(b){return b.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},at.exports=new v},67824:(at,et,v)=>{"use strict";function d(p){for(var b in p)et.hasOwnProperty(b)||(et[b]=p[b])}Object.defineProperty(et,"__esModule",{value:!0}),d(v(95085)),d(v(26243)),d(v(91786)),d(v(30225)),d(v(76767)),d(v(30345)),d(v(15675)),d(v(86461)),d(v(58802)),d(v(33900)),d(v(88866)),d(v(94655)),d(v(4068)),d(v(33858)),d(v(98237)),d(v(83292))},95085:function(at,et,v){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,x)},function(A,x){function U(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(U.prototype=x.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(15675),b=function(t){function A(x){var U=t.call(this)||this,D=x;return D.trigger&&(U.trigger=D.trigger),D.kick&&(U.kick=D.kick),D.drag&&(U.drag=D.drag),D.on&&(U.on=D.on),U.dragstart=U.dragStart=p.Layout.dragStart,U.dragend=U.dragEnd=p.Layout.dragEnd,U}return d(A,t),A.prototype.trigger=function(x){},A.prototype.kick=function(){},A.prototype.drag=function(){},A.prototype.on=function(x,U){return this},A}(p.Layout);et.LayoutAdaptor=b,et.adaptor=function T(t){return new b(t)}},83292:(at,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(15675),p=v(76767);et.gridify=function b(A,x,U,k){A.cola.start(0,0,0,10,!1);var D=function T(A,x,U,k){A.forEach(function(P){P.routerNode={name:P.name,bounds:P.bounds.inflate(-U)}}),x.forEach(function(P){P.routerNode={bounds:P.bounds.inflate(-k),children:(typeof P.groups<"u"?P.groups.map(function(F){return A.length+F.id}):[]).concat(typeof P.leaves<"u"?P.leaves.map(function(F){return F.index}):[])}});var D=A.concat(x).map(function(P,F){return P.routerNode.id=F,P.routerNode});return new p.GridRouter(D,{getChildren:function(P){return P.children},getBounds:function(P){return P.bounds}},U-k)}(A.cola.nodes(),A.cola.groups(),U,k);return D.routeEdges(A.powerGraph.powerEdges,x,function(P){return P.source.routerNode.id},function(P){return P.target.routerNode.id})},et.powerGraphGridLayout=function t(A,x,U){var k;A.nodes.forEach(function(z,J){return z.index=J}),(new d.Layout).avoidOverlaps(!1).nodes(A.nodes).links(A.links).powerGraphGroups(function(z){(k=z).groups.forEach(function(J){return J.padding=U})});var D=A.nodes.length,P=[],F=A.nodes.slice(0);return F.forEach(function(z,J){return z.index=J}),k.groups.forEach(function(z){var J=z.index=z.id+D;F.push(z),typeof z.leaves<"u"&&z.leaves.forEach(function(K){return P.push({source:J,target:K.index})}),typeof z.groups<"u"&&z.groups.forEach(function(K){return P.push({source:J,target:K.id+D})})}),k.powerEdges.forEach(function(z){P.push({source:z.source.index,target:z.target.index})}),(new d.Layout).size(x).nodes(F).links(P).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(x).avoidOverlaps(!0).nodes(A.nodes).links(A.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(z){(k=z).groups.forEach(function(J){J.padding=U})}).start(50,0,100,0,!1),powerGraph:k}}},26243:(at,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(49346),p=v(22487);et.d3adaptor=function b(t){return!t||function T(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new d.D3StyleLayoutAdaptor:new p.D3StyleLayoutAdaptor(t)}},49346:function(at,et,v){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,x)},function(A,x){function U(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(U.prototype=x.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(15675),b=function(t){function A(){var x=t.call(this)||this;x.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=x;return x.drag=function(){if(!D)var D=d3.behavior.drag().origin(p.Layout.dragOrigin).on("dragstart.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,d3.event),U.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;this.call(D)},x}return d(A,t),A.prototype.trigger=function(x){var U={type:p.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event[U.type](U)},A.prototype.kick=function(){var x=this;d3.timer(function(){return t.prototype.tick.call(x)})},A.prototype.on=function(x,U){return this.event.on("string"==typeof x?x:p.EventType[x],U),this},A}(p.Layout);et.D3StyleLayoutAdaptor=b,et.d3adaptor=function T(){return new b}},22487:function(at,et,v){"use strict";var T,d=this&&this.__extends||(T=function(t,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,U){x.__proto__=U}||function(x,U){for(var k in U)U.hasOwnProperty(k)&&(x[k]=U[k])})(t,A)},function(t,A){function x(){this.constructor=t}T(t,A),t.prototype=null===A?Object.create(A):(x.prototype=A.prototype,new x)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(15675),b=function(T){function t(A){var x=T.call(this)||this;x.d3Context=A,x.event=A.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=x;return x.drag=function(){if(!D)var D=A.drag().subject(p.Layout.dragOrigin).on("start.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,A.event),U.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;arguments[0].call(D)},x}return d(t,T),t.prototype.trigger=function(A){var x={type:p.EventType[A.type],alpha:A.alpha,stress:A.stress};this.event.call(x.type,x)},t.prototype.kick=function(){var A=this,x=this.d3Context.timer(function(){return T.prototype.tick.call(A)&&x.stop()})},t.prototype.on=function(A,x){return this.event.on("string"==typeof A?A:p.EventType[A],x),this},t}(p.Layout);et.D3StyleLayoutAdaptor=b},91786:(at,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function(){function b(){this.locks={}}return b.prototype.add=function(T,t){this.locks[T]=t},b.prototype.clear=function(){this.locks={}},b.prototype.isEmpty=function(){for(var T in this.locks)return!1;return!0},b.prototype.apply=function(T){for(var t in this.locks)T(Number(t),this.locks[t])},b}();et.Locks=v;var d=function(){function b(T,t,A){void 0===A&&(A=null),this.D=t,this.G=A,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new p,this.project=null,this.x=T,this.k=T.length;var x=this.n=T[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new v,this.minD=Number.MAX_VALUE;for(var k,U=x;U--;)for(k=x;--k>U;){var D=t[U][k];D>0&&D1e-9)break;var lt=this.offsetDir();for(x=0;x1&&vt>Dt||!isFinite(Dt)){for(x=0;x1&&(Pt=1);var zt=Dt*Dt,Vt=2*Pt*(vt-Dt)/(zt*vt),it=vt*vt*vt,Tt=2*-Pt/(zt*it);for(isFinite(Vt)||console.log(Vt),x=0;x0?se-(be+1)*ft:se-(be-1)*ft)&&ot<=At&&(this.scaleSnapByMaxH?(this.g[x][F]+=P*Bt*ot,this.H[x][F][F]+=P*Bt):(this.g[x][F]+=Bt*ot,this.H[x][F][F]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(qe,$e){for(x=0;x0;)for(var U=t;U-- >0;)A(x,U)},b.prototype.matrixApply=function(T){b.mApply(this.k,this.n,T)},b.prototype.computeNextPosition=function(T,t){var A=this;this.computeDerivatives(T);var x=this.computeStepSize(this.g);if(this.stepAndProject(T,t,this.g,x),this.project){this.matrixApply(function(k,D){return A.e[k][D]=T[k][D]-t[k][D]});var U=this.computeStepSize(this.e);U=Math.max(.2,Math.min(U,1)),this.stepAndProject(T,t,this.e,U)}},b.prototype.run=function(T){for(var t=Number.MAX_VALUE,A=!1;!A&&T-- >0;){var x=this.rungeKutta();A=Math.abs(t/x-1)>16)/this.range},b.prototype.getNextBetween=function(T,t){return T+this.getNext()*(t-T)},b}();et.PseudoRandom=p},30225:function(at,et,v){"use strict";var ve,d=this&&this.__extends||(ve=function(be,Le){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,$e){qe.__proto__=$e}||function(qe,$e){for(var Xt in $e)$e.hasOwnProperty(Xt)&&(qe[Xt]=$e[Xt])})(be,Le)},function(be,Le){function qe(){this.constructor=be}ve(be,Le),be.prototype=null===Le?Object.create(Le):(qe.prototype=Le.prototype,new qe)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(4068),b=function ve(){};et.Point=b;var T=function ve(be,Le,qe,$e){this.x1=be,this.y1=Le,this.x2=qe,this.y2=$e};et.LineSegment=T;var t=function(ve){function be(){return null!==ve&&ve.apply(this,arguments)||this}return d(be,ve),be}(b);function A(ve,be,Le){return(be.x-ve.x)*(Le.y-ve.y)-(Le.x-ve.x)*(be.y-ve.y)}function x(ve,be,Le){return A(ve,be,Le)>0}function U(ve,be,Le){return A(ve,be,Le)<0}function z(ve,be){var Le=be.slice(0);return Le.push(be[0]),{rtan:J(ve,Le),ltan:K(ve,Le)}}function J(ve,be){var qe,$e,Xt,ae,Le=be.length-1;if(U(ve,be[1],be[0])&&!x(ve,be[Le-1],be[0]))return 0;for(qe=0,$e=Le;;){if($e-qe==1)return x(ve,be[qe],be[$e])?qe:$e;if((ae=U(ve,be[(Xt=Math.floor((qe+$e)/2))+1],be[Xt]))&&!x(ve,be[Xt-1],be[Xt]))return Xt;x(ve,be[qe+1],be[qe])?ae||x(ve,be[qe],be[Xt])?$e=Xt:qe=Xt:ae&&U(ve,be[qe],be[Xt])?$e=Xt:qe=Xt}}function K(ve,be){var qe,$e,Xt,ae,Le=be.length-1;if(x(ve,be[Le-1],be[0])&&!U(ve,be[1],be[0]))return 0;for(qe=0,$e=Le;;){if($e-qe==1)return U(ve,be[qe],be[$e])?qe:$e;if(ae=U(ve,be[(Xt=Math.floor((qe+$e)/2))+1],be[Xt]),x(ve,be[Xt-1],be[Xt])&&!ae)return Xt;U(ve,be[qe+1],be[qe])?ae?U(ve,be[qe],be[Xt])?$e=Xt:qe=Xt:$e=Xt:ae?qe=Xt:x(ve,be[qe],be[Xt])?$e=Xt:qe=Xt}}function ot(ve,be,Le,qe,$e,Xt){var Te,ae;ae=qe(ve[Te=Le(be[0],ve)],be);for(var Kt=!1;!Kt;){for(Kt=!0;Te===ve.length-1&&(Te=0),!$e(be[ae],ve[Te],ve[Te+1]);)++Te;for(;0===ae&&(ae=be.length-1),!Xt(ve[Te],be[ae],be[ae-1]);)--ae,Kt=!1}return{t1:Te,t2:ae}}function vt(ve,be){return ot(ve,be,J,K,x,U)}et.PolyPoint=t,et.isLeft=A,et.ConvexHull=function k(ve){var qe,be=ve.slice(0).sort(function(De,on){return De.x!==on.x?on.x-De.x:on.y-De.y}),Le=ve.length,Xt=be[0].x;for(qe=1;qe=0&&be[qe].x===Wt;qe--);for(Kt=qe+1,qe=Te;++qe<=Kt;)if(!(A(be[0],be[Kt],be[qe])>=0&&qe1&&!(A(ae[ae.length-2],ae[ae.length-1],be[qe])>0);)ae.length-=1;0!=qe&&ae.push(be[qe])}de!=Kt&&ae.push(be[de]);var re=ae.length;for(qe=Kt;--qe>=Te;)if(!(A(be[de],be[Te],be[qe])>=0&&qe>Te)){for(;ae.length>re&&!(A(ae[ae.length-2],ae[ae.length-1],be[qe])>0);)ae.length-=1;0!=qe&&ae.push(be[qe])}}return ae},et.clockwiseRadialSweep=function D(ve,be,Le){be.slice(0).sort(function(qe,$e){return Math.atan2(qe.y-ve.y,qe.x-ve.x)-Math.atan2($e.y-ve.y,$e.x-ve.x)}).forEach(Le)},et.tangent_PolyPolyC=ot,et.LRtangent_PolyPolyC=function lt(ve,be){var Le=vt(be,ve);return{t1:Le.t2,t2:Le.t1}},et.RLtangent_PolyPolyC=vt,et.LLtangent_PolyPolyC=function Dt(ve,be){return ot(ve,be,K,K,U,U)},et.RRtangent_PolyPolyC=function Pt(ve,be){return ot(ve,be,J,J,x,x)};var zt=function ve(be,Le){this.t1=be,this.t2=Le};et.BiTangent=zt;var Vt=function ve(){};et.BiTangents=Vt;var it=function(ve){function be(){return null!==ve&&ve.apply(this,arguments)||this}return d(be,ve),be}(b);et.TVGPoint=it;var Tt=function ve(be,Le,qe,$e){this.id=be,this.polyid=Le,this.polyvertid=qe,this.p=$e,$e.vv=this};et.VisibilityVertex=Tt;var At=function(){function ve(be,Le){this.source=be,this.target=Le}return ve.prototype.length=function(){var be=this.source.p.x-this.target.p.x,Le=this.source.p.y-this.target.p.y;return Math.sqrt(be*be+Le*Le)},ve}();et.VisibilityEdge=At;var ft=function(){function ve(be,Le){if(this.P=be,this.V=[],this.E=[],Le)this.V=Le.V.slice(0),this.E=Le.E.slice(0);else{for(var qe=be.length,$e=0;$e0&&this.E.push(new At(Xt[Te-1].vv,Kt))}Xt.length>1&&this.E.push(new At(Xt[0].vv,Xt[Xt.length-1].vv))}for($e=0;$e0)return!0;return!1},ve}();function Et(ve,be){for(var Le=[],qe=1,$e=be.length;qe<$e;++qe){var Xt=p.Rectangle.lineIntersection(ve.x1,ve.y1,ve.x2,ve.y2,be[qe-1].x,be[qe-1].y,be[qe].x,be[qe].y);Xt&&Le.push(Xt)}return Le}function Bt(ve,be){for(var Le=ve.length-1,qe=be.length-1,$e=new Vt,Xt=0;Xt=0&&_n>=0&&Ae<0&&gn>=0&&we>=0&&un<0?$e.ll=new zt(Xt,Te):on<=0&&_n<=0&&Ae>0&&gn<=0&&we<=0&&un>0?$e.rr=new zt(Xt,Te):on<=0&&_n>0&&Ae<=0&&gn>=0&&we<0&&un>=0?$e.rl=new zt(Xt,Te):on>=0&&_n<0&&Ae>=0&&gn<=0&&we>0&&un<=0&&($e.lr=new zt(Xt,Te))}return $e}function se(ve,be){return!ve.every(function(Le){return!function Ft(ve,be){for(var Le=1,qe=be.length;Le0)return!0}return!1}},76767:(at,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(4068),p=v(98237),b=v(33858),T=function U(k,D,P){this.id=k,this.rect=D,this.children=P,this.leaf=typeof P>"u"||0===P.length};et.NodeWrapper=T;var t=function U(k,D,P,F,z){void 0===F&&(F=null),void 0===z&&(z=null),this.id=k,this.x=D,this.y=P,this.node=F,this.line=z};et.Vert=t;var A=function(){function U(k,D){this.s=k,this.t=D;var P=U.findMatch(k,D),F=D.slice(0).reverse(),z=U.findMatch(k,F);P.length>=z.length?(this.length=P.length,this.si=P.si,this.ti=P.ti,this.reversed=!1):(this.length=z.length,this.si=z.si,this.ti=D.length-z.ti-z.length,this.reversed=!0)}return U.findMatch=function(k,D){for(var P=k.length,F=D.length,z={length:0,si:-1,ti:-1},J=new Array(P),K=0;Kz.length&&(z.length=lt,z.si=K-lt+1,z.ti=ot-lt+1)}else J[K][ot]=0}return z},U.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},U}();et.LongestCommonSubsequence=A;var x=function(){function U(k,D,P){var F=this;void 0===P&&(P=12),this.originalnodes=k,this.groupPadding=P,this.leaves=null,this.nodes=k.map(function(it,Tt){return new T(Tt,D.getBounds(it),D.getChildren(it))}),this.leaves=this.nodes.filter(function(it){return it.leaf}),this.groups=this.nodes.filter(function(it){return!it.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(it){return it.children.forEach(function(Tt){return F.nodes[Tt].parent=it})}),this.root={children:[]},this.nodes.forEach(function(it){typeof it.parent>"u"&&(it.parent=F.root,F.root.children.push(it.id)),it.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(it,Tt){return F.getDepth(it)-F.getDepth(Tt)}),this.backToFront.slice(0).reverse().filter(function(it){return!it.leaf}).forEach(function(it){var Tt=d.Rectangle.empty();it.children.forEach(function(At){return Tt=Tt.union(F.nodes[At].rect)}),it.rect=Tt.inflate(F.groupPadding)});var J=this.midPoints(this.cols.map(function(it){return it.pos})),K=this.midPoints(this.rows.map(function(it){return it.pos})),ot=J[0],lt=J[J.length-1],vt=K[0],Dt=K[K.length-1],Pt=this.rows.map(function(it){return{x1:ot,x2:lt,y1:it.pos,y2:it.pos}}).concat(K.map(function(it){return{x1:ot,x2:lt,y1:it,y2:it}})),zt=this.cols.map(function(it){return{x1:it.pos,x2:it.pos,y1:vt,y2:Dt}}).concat(J.map(function(it){return{x1:it,x2:it,y1:vt,y2:Dt}})),Vt=Pt.concat(zt);Vt.forEach(function(it){return it.verts=[]}),this.verts=[],this.edges=[],Pt.forEach(function(it){return zt.forEach(function(Tt){var At=new t(F.verts.length,Tt.x1,it.y1);it.verts.push(At),Tt.verts.push(At),F.verts.push(At);for(var ft=F.backToFront.length;ft-- >0;){var Et=F.backToFront[ft],Bt=Et.rect,Ft=Math.abs(At.x-Bt.cx()),se=Math.abs(At.y-Bt.cy());if(Ft0;){var F=P.filter(function(J){return J.rect["overlap"+k.toUpperCase()](P[0].rect)}),z={nodes:F,pos:this.avg(F.map(function(J){return J.rect["c"+k]()}))};D.push(z),z.nodes.forEach(function(J){return P.splice(P.indexOf(J),1)})}return D.sort(function(J,K){return J.pos-K.pos}),D},U.prototype.getDepth=function(k){for(var D=0;k.parent!==this.root;)D++,k=k.parent;return D},U.prototype.midPoints=function(k){for(var D=k[1]-k[0],P=[k[0]-D/2],F=1;F.1)&&vt.push(Dt={pos:ot[0][D],segments:[]}),Dt.segments.push(ot)}return vt},U.nudgeSegs=function(k,D,P,F,z,J){var K=F.length;if(!(K<=1)){for(var ot=F.map(function(Et){return new p.Variable(Et[0][k])}),lt=[],vt=0;vt=0&<.push(new p.Constraint(ot[Tt],ot[At],J))}new p.Solver(ot,lt).solve(),ot.forEach(function(Et,Bt){var Ft=F[Bt],se=Et.position();Ft[0][k]=Ft[1][k]=se;var jt=P[Ft.edgeid];Ft.i>0&&(jt[Ft.i-1][1][k]=se),Ft.iMath.PI||z<-Math.PI)&&(z=F-P),z},U.isLeft=function(k,D,P){return(D.x-k.x)*(P.y-k.y)-(D.y-k.y)*(P.x-k.x)<=0},U.getOrder=function(k){for(var D={},P=0;P"u"&&(D[F.l]={}),D[F.l][F.r]=!0}return function(z,J){return typeof D[z]<"u"&&D[z][J]}},U.orderEdges=function(k){for(var D=[],P=0;P=z.length||K.ti+K.length>=J.length)){D.push({l:P,r:F});continue}K.si+K.length>=z.length||K.ti+K.length>=J.length?(ot=z[K.si+1],vt=z[K.si-1],lt=J[K.ti-1]):(ot=z[K.si+K.length-2],lt=z[K.si+K.length],vt=J[K.ti+K.length]),U.isLeft(ot,lt,vt)?D.push({l:F,r:P}):D.push({l:P,r:F})}}return U.getOrder(D)},U.makeSegments=function(k){function D(lt){return{x:lt.x,y:lt.y}}for(var F=[],z=D(k[0]),J=1;J1&&ve>1?1e3:0}).reverse().map(function(At){return P.verts[At]});return Tt.push(this.nodes[z.id].ports[0]),Tt.filter(function(At,ft){return!(ft0&&At.node===z&&Tt[ft-1].node===z)})},U.getRoutePath=function(k,D,P,F){var K,ot,lt,jt,ve,z={routepath:"M "+k[0][0].x+" "+k[0][0].y+" ",arrowpath:""};if(k.length>1)for(var J=0;J0?ot-=vt/Math.abs(vt)*D:lt-=Dt/Math.abs(Dt)*D,z.routepath+="L "+ot+" "+lt+" ";var Pt=k[J+1],zt=Pt[0].x,Vt=Pt[0].y;vt=Pt[1].x-zt,Dt=Pt[1].y-Vt;var ft,Et,At=U.angleBetween2Lines(K,Pt)<0?1:0;Math.abs(vt)>0?(ft=zt+vt/Math.abs(vt)*D,Et=Vt):(ft=zt,Et=Vt+Dt/Math.abs(Dt)*D);var Bt=Math.abs(ft-ot),Ft=Math.abs(Et-lt);z.routepath+="A "+Bt+" "+Ft+" 0 0 "+At+" "+ft+" "+Et+" "}else{var se=[ot,lt];Math.abs(vt)>0?(jt=[ot-=vt/Math.abs(vt)*F,lt+P],ve=[ot,lt-P]):(jt=[ot+P,lt-=Dt/Math.abs(Dt)*F],ve=[ot-P,lt]),z.routepath+="L "+ot+" "+lt+" ",F>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+jt[0]+" "+jt[1]+" L "+ve[0]+" "+ve[1])}}else vt=(ot=(K=k[0])[1].x)-K[0].x,Dt=(lt=K[1].y)-K[0].y,se=[ot,lt],Math.abs(vt)>0?(jt=[ot-=vt/Math.abs(vt)*F,lt+P],ve=[ot,lt-P]):(jt=[ot+P,lt-=Dt/Math.abs(Dt)*F],ve=[ot-P,lt]),z.routepath+="L "+ot+" "+lt+" ",F>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+jt[0]+" "+jt[1]+" L "+ve[0]+" "+ve[1]);return z},U}();et.GridRouter=x},30345:(at,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v_GOLDEN_SECTION=(1+Math.sqrt(5))/2;et.applyPacking=function d(b,T,t,J,z,U){void 0===z&&(z=1),void 0===U&&(U=!0);var P=T,F=t,K=(z=typeof z<"u"?z:1,J=typeof J<"u"?J:0,0),ot=0,lt=0,vt=0,Dt=[];function it(Et,Bt){Dt=[],K=0,ot=0,vt=0;for(var Ft=0;Ft=Et.height&&Dt[se].x+Dt[se].width+Et.width+10-Bt<=1e-4){Ft=Dt[se];break}Dt.push(Et),void 0!==Ft?(Et.x=Ft.x+Ft.width+10,Et.y=Ft.bottom,Et.space_left=Et.height,Et.bottom=Et.y,Ft.space_left-=Et.height+10,Ft.bottom+=Et.height+10):(Et.y=vt,vt+=Et.height+10,Et.x=0,Et.bottom=Et.y,Et.space_left=Et.height),Et.y+Et.height-ot>-1e-4&&(ot=Et.y+Et.height-0),Et.x+Et.width-K>-1e-4&&(K=Et.x+Et.width-0)}0!=b.length&&(function Pt(Et){Et.forEach(function(Ft){!function Bt(Ft){var se=Number.MAX_VALUE,jt=Number.MAX_VALUE,ve=0,be=0;Ft.array.forEach(function(Le){var qe=typeof Le.width<"u"?Le.width:J,$e=typeof Le.height<"u"?Le.height:J;qe/=2,$e/=2,ve=Math.max(Le.x+qe,ve),se=Math.min(Le.x-qe,se),be=Math.max(Le.y+$e,be),jt=Math.min(Le.y-$e,jt)}),Ft.width=ve-se,Ft.height=be-jt}(Ft)})}(b),function Vt(Et,Bt){var Ft=Number.POSITIVE_INFINITY,se=0;Et.sort(function(de,Wt){return Wt.height-de.height});for(var jt=ae=lt=Et.reduce(function(de,Wt){return de.widthlt||Te>1e-4;){if(1!=$e){var ae=ve-(ve-jt)/v_GOLDEN_SECTION;Le=it(Et,ae)}if(0!=$e){var Kt=jt+(ve-jt)/v_GOLDEN_SECTION;qe=it(Et,Kt)}if(Xt=Math.abs(ae-Kt),Te=Math.abs(Le-qe),Leqe?(jt=ae,ae=Kt,Le=qe,$e=1):(ve=Kt,Kt=ae,qe=Le,$e=0),be++>100)break}it(Et,se)}(b),U&&function zt(Et){Et.forEach(function(Bt){var Ft={x:0,y:0};Bt.array.forEach(function(ve){Ft.x+=ve.x,Ft.y+=ve.y}),Ft.x/=Bt.array.length,Ft.y/=Bt.array.length;var jt_x=Bt.x-(Ft.x-Bt.width/2)+P/2-K/2,jt_y=Bt.y-(Ft.y-Bt.height/2)+F/2-ot/2;Bt.array.forEach(function(ve){ve.x+=jt_x,ve.y+=jt_y})})}(b))},et.separateGraphs=function p(b,T){for(var t={},A={},x=[],U=0,k=0;k{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var U,P,d=v(33900),p=v(58802),b=v(91786),T=v(4068),t=v(33858),A=v(30225),x=v(30345);function k(P){return typeof P.leaves<"u"||typeof P.groups<"u"}(P=U=et.EventType||(et.EventType={}))[P.start=0]="start",P[P.tick=1]="tick",P[P.end=2]="end";var D=function(){function P(){var F=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:P.getSourceIndex,getTargetIndex:P.getTargetIndex,setLength:P.setLinkLength,getType:function(z){return"function"==typeof F._linkType?F._linkType(z):0}}}return P.prototype.on=function(F,z){return this.event||(this.event={}),"string"==typeof F?this.event[U[F]]=z:this.event[F]=z,this},P.prototype.trigger=function(F){this.event&&typeof this.event[F.type]<"u"&&this.event[F.type](F)},P.prototype.kick=function(){for(;!this.tick(););},P.prototype.tick=function(){if(this._alpha"u"||typeof J.py>"u")&&(J.px=J.x,J.py=J.y),this._descent.locks.add(K,[J.px,J.py]));var lt=this._descent.rungeKutta();return 0===lt?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=lt),this._lastStress=lt,this.updateNodePositions(),this.trigger({type:U.tick,alpha:this._alpha,stress:this._lastStress}),!1},P.prototype.updateNodePositions=function(){for(var J,F=this._descent.x[0],z=this._descent.x[1],K=this._nodes.length;K--;)(J=this._nodes[K]).x=F[K],J.y=z[K]},P.prototype.nodes=function(F){if(!F){if(0===this._nodes.length&&this._links.length>0){var z=0;this._links.forEach(function(K){z=Math.max(z,K.source,K.target)}),this._nodes=new Array(++z);for(var J=0;J"u"&&(J.padding=1),typeof J.leaves<"u"&&J.leaves.forEach(function(K,ot){"number"==typeof K&&((J.leaves[ot]=z._nodes[K]).parent=J)}),typeof J.groups<"u"&&J.groups.forEach(function(K,ot){"number"==typeof K&&((J.groups[ot]=z._groups[K]).parent=J)})}),this._rootGroup.leaves=this._nodes.filter(function(J){return typeof J.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(J){return typeof J.parent>"u"}),this):this._groups},P.prototype.powerGraphGroups=function(F){var z=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(z.groups),F(z),this},P.prototype.avoidOverlaps=function(F){return arguments.length?(this._avoidOverlaps=F,this):this._avoidOverlaps},P.prototype.handleDisconnected=function(F){return arguments.length?(this._handleDisconnected=F,this):this._handleDisconnected},P.prototype.flowLayout=function(F,z){return arguments.length||(F="y"),this._directedLinkConstraints={axis:F,getMinSeparation:"number"==typeof z?function(){return z}:z},this},P.prototype.links=function(F){return arguments.length?(this._links=F,this):this._links},P.prototype.constraints=function(F){return arguments.length?(this._constraints=F,this):this._constraints},P.prototype.distanceMatrix=function(F){return arguments.length?(this._distanceMatrix=F,this):this._distanceMatrix},P.prototype.size=function(F){return F?(this._canvasSize=F,this):this._canvasSize},P.prototype.defaultNodeSize=function(F){return F?(this._defaultNodeSize=F,this):this._defaultNodeSize},P.prototype.groupCompactness=function(F){return F?(this._groupCompactness=F,this):this._groupCompactness},P.prototype.linkDistance=function(F){return F?(this._linkDistance="function"==typeof F?F:+F,this._linkLengthCalculator=null,this):this._linkDistance},P.prototype.linkType=function(F){return this._linkType=F,this},P.prototype.convergenceThreshold=function(F){return F?(this._threshold="function"==typeof F?F:+F,this):this._threshold},P.prototype.alpha=function(F){return arguments.length?(F=+F,this._alpha?this._alpha=F>0?F:0:F>0&&(this._running||(this._running=!0,this.trigger({type:U.start,alpha:this._alpha=F}),this.kick())),this):this._alpha},P.prototype.getLinkLength=function(F){return"function"==typeof this._linkDistance?+this._linkDistance(F):this._linkDistance},P.setLinkLength=function(F,z){F.length=z},P.prototype.getLinkType=function(F){return"function"==typeof this._linkType?this._linkType(F):0},P.prototype.symmetricDiffLinkLengths=function(F,z){var J=this;return void 0===z&&(z=1),this.linkDistance(function(K){return F*K.length}),this._linkLengthCalculator=function(){return p.symmetricDiffLinkLengths(J._links,J.linkAccessor,z)},this},P.prototype.jaccardLinkLengths=function(F,z){var J=this;return void 0===z&&(z=1),this.linkDistance(function(K){return F*K.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(J._links,J.linkAccessor,z)},this},P.prototype.start=function(F,z,J,K,ot,lt){var vt=this;void 0===F&&(F=0),void 0===z&&(z=0),void 0===J&&(J=0),void 0===K&&(K=0),void 0===ot&&(ot=!0),void 0===lt&&(lt=!0);var se,zt=this.nodes().length,Vt=zt+2*this._groups.length,Tt=this._canvasSize[0],At=this._canvasSize[1],ft=new Array(Vt),Et=new Array(Vt),Bt=null,Ft=this._avoidOverlaps;this._nodes.forEach(function(Xt,Te){Xt.index=Te,typeof Xt.x>"u"&&(Xt.x=Tt/2,Xt.y=At/2),ft[Te]=Xt.x,Et[Te]=Xt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?se=this._distanceMatrix:(se=new t.Calculator(Vt,this._links,P.getSourceIndex,P.getTargetIndex,function(Xt){return vt.getLinkLength(Xt)}).DistanceMatrix(),Bt=b.Descent.createSquareMatrix(Vt,function(){return 2}),this._links.forEach(function(Xt){"number"==typeof Xt.source&&(Xt.source=vt._nodes[Xt.source]),"number"==typeof Xt.target&&(Xt.target=vt._nodes[Xt.target])}),this._links.forEach(function(Xt){var Te=P.getSourceIndex(Xt),ae=P.getTargetIndex(Xt);Bt[Te][ae]=Bt[ae][Te]=Xt.weight||1}));var jt=b.Descent.createSquareMatrix(Vt,function(Xt,Te){return se[Xt][Te]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Dt=zt;this._groups.forEach(function(Te){(function(Te,ae,Kt,de){Bt[Te][ae]=Bt[ae][Te]=Kt,jt[Te][ae]=jt[ae][Te]=.1})(Dt,Dt+1,vt._groupCompactness),ft[Dt]=0,Et[Dt++]=0,ft[Dt]=0,Et[Dt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var be=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,be=be.concat(p.generateDirectedEdgeConstraints(zt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new b.Descent([ft,Et],jt),this._descent.locks.clear(),Dt=0;Dt0&&(this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,be).projectFunctions()),this._descent.run(z),this.separateOverlappingComponents(Tt,At,lt),this.avoidOverlaps(Ft),Ft&&(this._nodes.forEach(function(Xt,Te){Xt.x=ft[Te],Xt.y=Et[Te]}),this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,be,!0).projectFunctions(),this._nodes.forEach(function(Xt,Te){ft[Te]=Xt.x,Et[Te]=Xt.y})),this._descent.G=Bt,this._descent.run(J),K){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=zt,this._descent.scaleSnapByMaxH=zt!=Vt;var $e=b.Descent.createSquareMatrix(Vt,function(Xt,Te){return Xt>=zt||Te>=zt?Bt[Xt][Te]:0});this._descent.G=$e,this._descent.run(K)}return this.updateNodePositions(),this.separateOverlappingComponents(Tt,At,lt),ot?this.resume():this},P.prototype.initialLayout=function(F,z,J){if(this._groups.length>0&&F>0){var K=this._nodes.length,ot=this._links.map(function(vt){return{source:vt.source.index,target:vt.target.index}}),lt=this._nodes.map(function(vt){return{index:vt.index}});this._groups.forEach(function(vt,Dt){lt.push({index:vt.index=K+Dt})}),this._groups.forEach(function(vt,Dt){typeof vt.leaves<"u"&&vt.leaves.forEach(function(Pt){return ot.push({source:vt.index,target:Pt.index})}),typeof vt.groups<"u"&&vt.groups.forEach(function(Pt){return ot.push({source:vt.index,target:Pt.index})})}),(new P).size(this.size()).nodes(lt).links(ot).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(F,0,0,0,!1),this._nodes.forEach(function(vt){z[vt.index]=lt[vt.index].x,J[vt.index]=lt[vt.index].y})}else this._descent.run(F)},P.prototype.separateOverlappingComponents=function(F,z,J){var K=this;if(void 0===J&&(J=!0),!this._distanceMatrix&&this._handleDisconnected){var ot=this._descent.x[0],lt=this._descent.x[1];this._nodes.forEach(function(Dt,Pt){Dt.x=ot[Pt],Dt.y=lt[Pt]});var vt=x.separateGraphs(this._nodes,this._links);x.applyPacking(vt,F,z,this._defaultNodeSize,1,J),this._nodes.forEach(function(Dt,Pt){K._descent.x[0][Pt]=Dt.x,K._descent.x[1][Pt]=Dt.y,Dt.bounds&&(Dt.bounds.setXCentre(Dt.x),Dt.bounds.setYCentre(Dt.y))})}},P.prototype.resume=function(){return this.alpha(.1)},P.prototype.stop=function(){return this.alpha(0)},P.prototype.prepareEdgeRouting=function(F){void 0===F&&(F=0),this._visibilityGraph=new A.TangentVisibilityGraph(this._nodes.map(function(z){return z.bounds.inflate(-F).vertices()}))},P.prototype.routeEdge=function(F,z,J){void 0===z&&(z=5);var K=[],ot=new A.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),lt={x:F.source.x,y:F.source.y},vt={x:F.target.x,y:F.target.y},Dt=ot.addPoint(lt,F.source.index),Pt=ot.addPoint(vt,F.target.index);ot.addEdgeIfVisible(lt,vt,F.source.index,F.target.index),typeof J<"u"&&J(ot);var At=new t.Calculator(ot.V.length,ot.E,function(jt){return jt.source.id},function(jt){return jt.target.id},function(jt){return jt.length()}).PathFromNodeToNode(Dt.id,Pt.id);if(1===At.length||At.length===ot.V.length){var ft=T.makeEdgeBetween(F.source.innerBounds,F.target.innerBounds,z);K=[ft.sourceIntersection,ft.arrowStart]}else{for(var Et=At.length-2,Bt=ot.V[At[Et]].p,Ft=ot.V[At[0]].p,se=(K=[F.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Et);se>=0;--se)K.push(ot.V[At[se]].p);K.push(T.makeEdgeTo(Ft,F.target.innerBounds,z))}return K},P.getSourceIndex=function(F){return"number"==typeof F.source?F.source:F.source.index},P.getTargetIndex=function(F){return"number"==typeof F.target?F.target:F.target.index},P.linkId=function(F){return P.getSourceIndex(F)+"-"+P.getTargetIndex(F)},P.dragStart=function(F){k(F)?P.storeOffset(F,P.dragOrigin(F)):(P.stopNode(F),F.fixed|=2)},P.stopNode=function(F){F.px=F.x,F.py=F.y},P.storeOffset=function(F,z){typeof F.leaves<"u"&&F.leaves.forEach(function(J){J.fixed|=2,P.stopNode(J),J._dragGroupOffsetX=J.x-z.x,J._dragGroupOffsetY=J.y-z.y}),typeof F.groups<"u"&&F.groups.forEach(function(J){return P.storeOffset(J,z)})},P.dragOrigin=function(F){return k(F)?{x:F.bounds.cx(),y:F.bounds.cy()}:F},P.drag=function(F,z){k(F)?(typeof F.leaves<"u"&&F.leaves.forEach(function(J){F.bounds.setXCentre(z.x),F.bounds.setYCentre(z.y),J.px=J._dragGroupOffsetX+z.x,J.py=J._dragGroupOffsetY+z.y}),typeof F.groups<"u"&&F.groups.forEach(function(J){return P.drag(J,z)})):(F.px=z.x,F.py=z.y)},P.dragEnd=function(F){k(F)?(typeof F.leaves<"u"&&F.leaves.forEach(function(z){P.dragEnd(z),delete z._dragGroupOffsetX,delete z._dragGroupOffsetY}),typeof F.groups<"u"&&F.groups.forEach(P.dragEnd)):F.fixed&=-7},P.mouseOver=function(F){F.fixed|=4,F.px=F.x,F.py=F.y},P.mouseOut=function(F){F.fixed&=-5},P}();et.Layout=D},86461:(at,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(33858),p=v(91786),b=v(4068),T=v(58802),t=function(){function k(D,P){this.source=D,this.target=P}return k.prototype.actualLength=function(D){var P=this;return Math.sqrt(D.reduce(function(F,z){var J=z[P.target]-z[P.source];return F+J*J},0))},k}();et.Link3D=t,et.Node3D=function k(D,P,F){void 0===D&&(D=0),void 0===P&&(P=0),void 0===F&&(F=0),this.x=D,this.y=P,this.z=F};var x=function(){function k(D,P,F){var z=this;void 0===F&&(F=1),this.nodes=D,this.links=P,this.idealLinkLength=F,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(k.k);for(var J=0;J"u"&&(K[Dt]=Math.random())}z.result[0][ot]=K.x,z.result[1][ot]=K.y,z.result[2][ot]=K.z})}return k.prototype.linkLength=function(D){return D.actualLength(this.result)},k.prototype.start=function(D){var P=this;void 0===D&&(D=100);var F=this.nodes.length,z=new U;this.useJaccardLinkLengths&&T.jaccardLinkLengths(this.links,z,1.5),this.links.forEach(function(Dt){return Dt.length*=P.idealLinkLength});var J=new d.Calculator(F,this.links,function(Dt){return Dt.source},function(Dt){return Dt.target},function(Dt){return Dt.length}).DistanceMatrix(),K=p.Descent.createSquareMatrix(F,function(Dt,Pt){return J[Dt][Pt]}),ot=p.Descent.createSquareMatrix(F,function(){return 2});this.links.forEach(function(Dt){var Pt=Dt.source,zt=Dt.target;return ot[Pt][zt]=ot[zt][Pt]=1}),this.descent=new p.Descent(this.result,K),this.descent.threshold=.001,this.descent.G=ot,this.constraints&&(this.descent.project=new b.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var lt=0;lt{"use strict";function v(U,k){var D={};for(var P in U)D[P]={};for(var P in k)D[P]={};return Object.keys(D).length}function d(U,k){var D=0;for(var P in U)typeof k[P]<"u"&&++D;return D}function b(U,k,D,P){var F=function p(U,k){var D={},P=function(F,z){typeof D[F]>"u"&&(D[F]={}),D[F][z]={}};return U.forEach(function(F){var z=k.getSourceIndex(F),J=k.getTargetIndex(F);P(z,J),P(J,z)}),D}(U,P);U.forEach(function(z){var J=F[P.getSourceIndex(z)],K=F[P.getTargetIndex(z)];P.setLength(z,1+k*D(J,K))})}function x(U,k,D){var P=[],F=0,z=[],J=[];function K(At){At.index=At.lowlink=F++,z.push(At),At.onStack=!0;for(var ft=0,Et=At.out;ft"u"?(K(Bt),At.lowlink=Math.min(At.lowlink,Bt.lowlink)):Bt.onStack&&(At.lowlink=Math.min(At.lowlink,Bt.index))}if(At.lowlink===At.index){for(var Ft=[];z.length&&((Bt=z.pop()).onStack=!1,Ft.push(Bt),Bt!==At););J.push(Ft.map(function(se){return se.id}))}}for(var ot=0;ot"u"&&K(Tt)}return J}Object.defineProperty(et,"__esModule",{value:!0}),et.symmetricDiffLinkLengths=function T(U,k,D){void 0===D&&(D=1),b(U,D,function(P,F){return Math.sqrt(v(P,F)-d(P,F))},k)},et.jaccardLinkLengths=function t(U,k,D){void 0===D&&(D=1),b(U,D,function(P,F){return Math.min(Object.keys(P).length,Object.keys(F).length)<1.1?0:d(P,F)/v(P,F)},k)},et.generateDirectedEdgeConstraints=function A(U,k,D,P){var F=x(U,k,P),z={};F.forEach(function(K,ot){return K.forEach(function(lt){return z[lt]=ot})});var J=[];return k.forEach(function(K){var ot=P.getSourceIndex(K),lt=P.getTargetIndex(K);z[ot]!==z[lt]&&J.push({axis:D,left:ot,right:lt,gap:P.getMinSeparation(K)})}),J},et.stronglyConnectedComponents=x},33900:(at,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function k(D,P,F){this.source=D,this.target=P,this.type=F};et.PowerEdge=v;var d=function(){function k(D,P,F,z){var J=this;if(this.linkAccessor=F,this.modules=new Array(D),this.roots=[],z)this.initModulesFromGroup(z);else{this.roots.push(new t);for(var K=0;K=this.R))return this.merge(F.a,F.b,D),!0}},k.prototype.nEdges=function(D,P){var F=D.incoming.intersection(P.incoming),z=D.outgoing.intersection(P.outgoing);return this.R-F.count()-z.count()},k.prototype.getGroupHierarchy=function(D){var P=this,F=[];return p(this.roots[0],{},F),this.allEdges().forEach(function(K){var ot=P.modules[K.source],lt=P.modules[K.target];D.push(new v(typeof ot.gid>"u"?K.source:F[ot.gid],typeof lt.gid>"u"?K.target:F[lt.gid],K.type))}),F},k.prototype.allEdges=function(){var D=[];return k.getEdges(this.roots[0],D),D},k.getEdges=function(D,P){D.forAll(function(F){F.getEdges(P),k.getEdges(F.children,P)})},k}();function p(k,D,P){k.forAll(function(F){if(F.isLeaf())D.leaves||(D.leaves=[]),D.leaves.push(F.id);else{var z=D;if(F.gid=P.length,!F.isIsland()||F.isPredefined()){if(z={id:F.gid},F.isPredefined())for(var J in F.definition)z[J]=F.definition[J];D.groups||(D.groups=[]),D.groups.push(F.gid),P.push(z)}p(F.children,z,P)}})}et.Configuration=d;var b=function(){function k(D,P,F,z,J){void 0===P&&(P=new A),void 0===F&&(F=new A),void 0===z&&(z=new t),this.id=D,this.outgoing=P,this.incoming=F,this.children=z,this.definition=J}return k.prototype.getEdges=function(D){var P=this;this.outgoing.forAll(function(F,z){F.forAll(function(J){D.push(new v(P.id,J.id,z))})})},k.prototype.isLeaf=function(){return 0===this.children.count()},k.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},k.prototype.isPredefined=function(){return typeof this.definition<"u"},k}();et.Module=b;var t=function(){function k(){this.table={}}return k.prototype.count=function(){return Object.keys(this.table).length},k.prototype.intersection=function(D){var P=new k;return P.table=function T(k,D){var P={};for(var F in k)F in D&&(P[F]=k[F]);return P}(this.table,D.table),P},k.prototype.intersectionCount=function(D){return this.intersection(D).count()},k.prototype.contains=function(D){return D in this.table},k.prototype.add=function(D){this.table[D.id]=D},k.prototype.remove=function(D){delete this.table[D.id]},k.prototype.forAll=function(D){for(var P in this.table)D(this.table[P])},k.prototype.modules=function(){var D=[];return this.forAll(function(P){P.isPredefined()||D.push(P)}),D},k}();et.ModuleSet=t;var A=function(){function k(){this.sets={},this.n=0}return k.prototype.count=function(){return this.n},k.prototype.contains=function(D){var P=!1;return this.forAllModules(function(F){!P&&F.id==D&&(P=!0)}),P},k.prototype.add=function(D,P){(D in this.sets?this.sets[D]:this.sets[D]=new t).add(P),++this.n},k.prototype.remove=function(D,P){var F=this.sets[D];F.remove(P),0===F.count()&&delete this.sets[D],--this.n},k.prototype.forAll=function(D){for(var P in this.sets)D(this.sets[P],Number(P))},k.prototype.forAllModules=function(D){this.forAll(function(P,F){return P.forAll(D)})},k.prototype.intersection=function(D){var P=new k;return this.forAll(function(F,z){if(z in D.sets){var J=F.intersection(D.sets[z]),K=J.count();K>0&&(P.sets[z]=J,P.n+=K)}}),P},k}();et.LinkSets=A,et.getGroups=function U(k,D,P,F){for(var J=new d(k.length,D,P,F);J.greedyMerge(););var K=[],ot=J.getGroupHierarchy(K);return K.forEach(function(lt){var vt=function(Dt){var Pt=lt[Dt];"number"==typeof Pt&&(lt[Dt]=k[Pt])};vt("source"),vt("target")}),{groups:ot,powerEdges:K}}},88866:(at,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function(){function p(b){this.elem=b,this.subheaps=[]}return p.prototype.toString=function(b){for(var T="",t=!1,A=0;A0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(A){for(var x=this._root;null!==x;){var U=this._comparator(A,x.data);if(0===U)return x.data;x=x.get_child(U>0)}return null},t.prototype.lowerBound=function(A){return this._bound(A,this._comparator)},t.prototype.upperBound=function(A){var x=this._comparator;return this._bound(A,function U(k,D){return x(D,k)})},t.prototype.min=function(){var A=this._root;if(null===A)return null;for(;null!==A.left;)A=A.left;return A.data},t.prototype.max=function(){var A=this._root;if(null===A)return null;for(;null!==A.right;)A=A.right;return A.data},t.prototype.iterator=function(){return new p(this)},t.prototype.each=function(A){for(var U,x=this.iterator();null!==(U=x.next());)A(U)},t.prototype.reach=function(A){for(var U,x=this.iterator();null!==(U=x.prev());)A(U)},t.prototype._bound=function(A,x){for(var U=this._root,k=this.iterator();null!==U;){var D=this._comparator(A,U.data);if(0===D)return k._cursor=U,k;k._ancestors.push(U),U=U.get_child(D>0)}for(var P=k._ancestors.length-1;P>=0;--P)if(x(A,(U=k._ancestors[P]).data)>0)return k._cursor=U,k._ancestors.length=P,k;return k._ancestors.length=0,k},t}();et.TreeBase=d;var p=function(){function t(A){this._tree=A,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._minNode(A)}else if(null===this._cursor.right){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===x)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._maxNode(A)}else if(null===this._cursor.left){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===x)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(A){for(;null!==A.left;)this._ancestors.push(A),A=A.left;this._cursor=A},t.prototype._maxNode=function(A){for(;null!==A.right;)this._ancestors.push(A),A=A.right;this._cursor=A},t}();et.Iterator=p;var b=function(){function t(A){this.data=A,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(A){return A?this.right:this.left},t.prototype.set_child=function(A,x){A?this.right=x:this.left=x},t}(),T=function(t){function A(x){var U=t.call(this)||this;return U._root=null,U._comparator=x,U.size=0,U}return v(A,t),A.prototype.insert=function(x){var U=!1;if(null===this._root)this._root=new b(x),U=!0,this.size++;else{var k=new b(void 0),D=!1,P=!1,F=null,z=k,J=null,K=this._root;for(z.right=this._root;;){if(null===K?(K=new b(x),J.set_child(D,K),U=!0,this.size++):A.is_red(K.left)&&A.is_red(K.right)&&(K.red=!0,K.left.red=!1,K.right.red=!1),A.is_red(K)&&A.is_red(J)){var ot=z.right===F;K===J.get_child(P)?z.set_child(ot,A.single_rotate(F,!P)):z.set_child(ot,A.double_rotate(F,!P))}var lt=this._comparator(K.data,x);if(0===lt)break;P=D,null!==F&&(z=F),F=J,J=K,K=K.get_child(D=lt<0)}this._root=k.right}return this._root.red=!1,U},A.prototype.remove=function(x){if(null===this._root)return!1;var U=new b(void 0),k=U;k.right=this._root;for(var D=null,P=null,F=null,z=!0;null!==k.get_child(z);){var J=z;P=D,D=k,k=k.get_child(z);var K=this._comparator(x,k.data);if(z=K>0,0===K&&(F=k),!A.is_red(k)&&!A.is_red(k.get_child(z)))if(A.is_red(k.get_child(!z))){var ot=A.single_rotate(k,z);D.set_child(J,ot),D=ot}else if(!A.is_red(k.get_child(!z))){var lt=D.get_child(!J);if(null!==lt)if(A.is_red(lt.get_child(!J))||A.is_red(lt.get_child(J))){var vt=P.right===D;A.is_red(lt.get_child(J))?P.set_child(vt,A.double_rotate(D,J)):A.is_red(lt.get_child(!J))&&P.set_child(vt,A.single_rotate(D,J));var Dt=P.get_child(vt);Dt.red=!0,k.red=!0,Dt.left.red=!1,Dt.right.red=!1}else D.red=!1,lt.red=!0,k.red=!0}}return null!==F&&(F.data=k.data,D.set_child(D.right===k,k.get_child(null===k.left)),this.size--),this._root=U.right,null!==this._root&&(this._root.red=!1),null!==F},A.is_red=function(x){return null!==x&&x.red},A.single_rotate=function(x,U){var k=x.get_child(!U);return x.set_child(!U,k.get_child(U)),k.set_child(U,x),x.red=!0,k.red=!1,k},A.double_rotate=function(x,U){return x.set_child(!U,A.single_rotate(x.get_child(!U),!U)),A.single_rotate(x,U)},A}(d);et.RBTree=T},4068:function(at,et,v){"use strict";var At,d=this&&this.__extends||(At=function(ft,Et){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,Ft){Bt.__proto__=Ft}||function(Bt,Ft){for(var se in Ft)Ft.hasOwnProperty(se)&&(Bt[se]=Ft[se])})(ft,Et)},function(ft,Et){function Bt(){this.constructor=ft}At(ft,Et),ft.prototype=null===Et?Object.create(Et):(Bt.prototype=Et.prototype,new Bt)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(98237),b=v(94655);function T(At){return At.bounds=typeof At.leaves<"u"?At.leaves.reduce(function(ft,Et){return Et.bounds.union(ft)},t.empty()):t.empty(),typeof At.groups<"u"&&(At.bounds=At.groups.reduce(function(ft,Et){return T(Et).union(ft)},At.bounds)),At.bounds=At.bounds.inflate(At.padding),At.bounds}et.computeGroupBounds=T;var t=function(){function At(ft,Et,Bt,Ft){this.x=ft,this.X=Et,this.y=Bt,this.Y=Ft}return At.empty=function(){return new At(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},At.prototype.cx=function(){return(this.x+this.X)/2},At.prototype.cy=function(){return(this.y+this.Y)/2},At.prototype.overlapX=function(ft){var Et=this.cx(),Bt=ft.cx();return Et<=Bt&&ft.x0?Bt[0]:null},At.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},At.lineIntersection=function(ft,Et,Bt,Ft,se,jt,ve,be){var Le=Bt-ft,qe=ve-se,$e=Ft-Et,Xt=be-jt,Te=Xt*Le-qe*$e;if(0==Te)return null;var ae=ft-se,Kt=Et-jt,Wt=(qe*Kt-Xt*ae)/Te,De=(Le*Kt-$e*ae)/Te;return Wt>=0&&Wt<=1&&De>=0&&De<=1?{x:ft+Wt*Le,y:Et+Wt*$e}:null},At.prototype.inflate=function(ft){return new At(this.x-ft,this.X+ft,this.y-ft,this.Y+ft)},At}();et.Rectangle=t,et.makeEdgeBetween=function A(At,ft,Et){var Bt=At.rayIntersection(ft.cx(),ft.cy())||{x:At.cx(),y:At.cy()},Ft=ft.rayIntersection(At.cx(),At.cy())||{x:ft.cx(),y:ft.cy()},se=Ft.x-Bt.x,jt=Ft.y-Bt.y,ve=Math.sqrt(se*se+jt*jt),be=ve-Et;return{sourceIntersection:Bt,targetIntersection:Ft,arrowStart:{x:Bt.x+be*se/ve,y:Bt.y+be*jt/ve}}},et.makeEdgeTo=function x(At,ft,Et){var Bt=ft.rayIntersection(At.x,At.y);Bt||(Bt={x:ft.cx(),y:ft.cy()});var Ft=Bt.x-At.x,se=Bt.y-At.y,jt=Math.sqrt(Ft*Ft+se*se);return{x:Bt.x-Et*Ft/jt,y:Bt.y-Et*se/jt}};var U=function At(ft,Et,Bt){this.v=ft,this.r=Et,this.pos=Bt,this.prev=P(),this.next=P()},k=function At(ft,Et,Bt){this.isOpen=ft,this.v=Et,this.pos=Bt};function D(At,ft){return At.pos>ft.pos?1:At.pos0&&(At[Bt].insert(se),se[Ft].insert(At))};Et("next","prev"),Et("prev","next")}};function J(At,ft,Et,Bt){void 0===Bt&&(Bt=!1);var Ft=At.padding,se=typeof At.groups<"u"?At.groups.length:0,jt=typeof At.leaves<"u"?At.leaves.length:0,ve=se?At.groups.reduce(function(_n,Ae){return _n.concat(J(Ae,ft,Et,!0))},[]):[],be=(Bt?2:0)+jt+se,Le=new Array(be),qe=new Array(be),$e=0,Xt=function(_n,Ae){qe[$e]=_n,Le[$e++]=Ae};if(Bt){var Te=At.bounds,ae=ft.getCentre(Te),Kt=ft.getSize(Te)/2,de=ft.getOpen(Te),Wt=ft.getClose(Te),re=ae-Kt+Ft/2,De=ae+Kt-Ft/2;At.minVar.desiredPosition=re,Xt(ft.makeRect(de,Wt,re,Ft),At.minVar),At.maxVar.desiredPosition=De,Xt(ft.makeRect(de,Wt,De,Ft),At.maxVar)}jt&&At.leaves.forEach(function(_n){return Xt(_n.bounds,_n.variable)}),se&&At.groups.forEach(function(_n){var Ae=_n.bounds;Xt(ft.makeRect(ft.getOpen(Ae),ft.getClose(Ae),ft.getCentre(Ae),ft.getSize(Ae)),_n.minVar)});var on=K(qe,Le,ft,Et);return se&&(Le.forEach(function(_n){_n.cOut=[],_n.cIn=[]}),on.forEach(function(_n){_n.left.cOut.push(_n),_n.right.cIn.push(_n)}),At.groups.forEach(function(_n){var Ae=(_n.padding-ft.getSize(_n.bounds))/2;_n.minVar.cIn.forEach(function(gn){return gn.gap+=Ae}),_n.minVar.cOut.forEach(function(gn){gn.left=_n.maxVar,gn.gap+=Ae})})),ve.concat(on)}function K(At,ft,Et,Bt){var Ft,se=At.length,jt=2*se;console.assert(ft.length>=se);var ve=new Array(jt);for(Ft=0;Ftve[Bt]&&(ve[Bt]=be)}jt=ve})}},At.prototype.createAlignment=function(ft){var Et=this,Bt=this.nodes[ft.offsets[0].node].variable;this.makeFeasible(ft);var Ft="x"===ft.axis?this.xConstraints:this.yConstraints;ft.offsets.slice(1).forEach(function(se){Ft.push(new p.Constraint(Bt,Et.nodes[se.node].variable,se.offset,!0))})},At.prototype.createConstraints=function(ft){var Et=this,Bt=function(Ft){return typeof Ft.type>"u"||"separation"===Ft.type};this.xConstraints=ft.filter(function(Ft){return"x"===Ft.axis&&Bt(Ft)}).map(function(Ft){return Et.createSeparation(Ft)}),this.yConstraints=ft.filter(function(Ft){return"y"===Ft.axis&&Bt(Ft)}).map(function(Ft){return Et.createSeparation(Ft)}),ft.filter(function(Ft){return"alignment"===Ft.type}).forEach(function(Ft){return Et.createAlignment(Ft)})},At.prototype.setupVariablesAndBounds=function(ft,Et,Bt,Ft){this.nodes.forEach(function(se,jt){se.fixed?(se.variable.weight=se.fixedWeight?se.fixedWeight:1e3,Bt[jt]=Ft(se)):se.variable.weight=1;var ve=(se.width||0)/2,be=(se.height||0)/2,Le=ft[jt],qe=Et[jt];se.bounds=new t(Le-ve,Le+ve,qe-be,qe+be)})},At.prototype.xProject=function(ft,Et,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(ft,Et,ft,Bt,function(Ft){return Ft.px},this.xConstraints,Pt,function(Ft){return Ft.bounds.setXCentre(Bt[Ft.variable.index]=Ft.variable.position())},function(Ft){var se=Bt[Ft.minVar.index]=Ft.minVar.position(),jt=Bt[Ft.maxVar.index]=Ft.maxVar.position(),ve=Ft.padding/2;Ft.bounds.x=se-ve,Ft.bounds.X=jt+ve})},At.prototype.yProject=function(ft,Et,Bt){!this.rootGroup&&!this.yConstraints||this.project(ft,Et,Et,Bt,function(Ft){return Ft.py},this.yConstraints,zt,function(Ft){return Ft.bounds.setYCentre(Bt[Ft.variable.index]=Ft.variable.position())},function(Ft){var se=Bt[Ft.minVar.index]=Ft.minVar.position(),jt=Bt[Ft.maxVar.index]=Ft.maxVar.position(),ve=Ft.padding/2;Ft.bounds.y=se-ve,Ft.bounds.Y=jt+ve})},At.prototype.projectFunctions=function(){var ft=this;return[function(Et,Bt,Ft){return ft.xProject(Et,Bt,Ft)},function(Et,Bt,Ft){return ft.yProject(Et,Bt,Ft)}]},At.prototype.project=function(ft,Et,Bt,Ft,se,jt,ve,be,Le){this.setupVariablesAndBounds(ft,Et,Ft,se),this.rootGroup&&this.avoidOverlaps&&(T(this.rootGroup),jt=jt.concat(ve(this.rootGroup))),this.solve(this.variables,jt,Bt,Ft),this.nodes.forEach(be),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Le),T(this.rootGroup))},At.prototype.solve=function(ft,Et,Bt,Ft){var se=new p.Solver(ft,Et);se.setStartingPositions(Bt),se.setDesiredPositions(Ft),se.solve()},At}();et.Projection=Tt},33858:(at,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(88866),p=function A(x,U){this.id=x,this.distance=U},b=function A(x){this.id=x,this.neighbours=[]},T=function A(x,U,k){this.node=x,this.prev=U,this.d=k},t=function(){function A(x,U,k,D,P){this.n=x,this.es=U,this.neighbours=new Array(this.n);for(var F=this.n;F--;)this.neighbours[F]=new b(F);for(F=this.es.length;F--;){var z=this.es[F],J=k(z),K=D(z),ot=P(z);this.neighbours[J].neighbours.push(new p(K,ot)),this.neighbours[K].neighbours.push(new p(J,ot))}}return A.prototype.DistanceMatrix=function(){for(var x=new Array(this.n),U=0;Ult&&(K.d=lt,K.prev=z,k.reduceKey(K.q,K,function(Dt,Pt){return Dt.q=Pt}))}}return P},A}();et.Calculator=t},98237:(at,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function(){function x(U){this.scale=U,this.AB=0,this.AD=0,this.A2=0}return x.prototype.addVariable=function(U){var k=this.scale/U.scale,P=U.weight;this.AB+=P*k*(U.offset/U.scale),this.AD+=P*k*U.desiredPosition,this.A2+=P*k*k},x.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},x}();et.PositionStats=v;var d=function(){function x(U,k,D,P){void 0===P&&(P=!1),this.left=U,this.right=k,this.gap=D,this.equality=P,this.active=!1,this.unsatisfiable=!1,this.left=U,this.right=k,this.gap=D,this.equality=P}return x.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},x}();et.Constraint=d;var p=function(){function x(U,k,D){void 0===k&&(k=1),void 0===D&&(D=1),this.desiredPosition=U,this.weight=k,this.scale=D,this.offset=0}return x.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},x.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},x.prototype.visitNeighbours=function(U,k){var D=function(P,F){return P.active&&U!==F&&k(P,F)};this.cOut.forEach(function(P){return D(P,P.right)}),this.cIn.forEach(function(P){return D(P,P.left)})},x}();et.Variable=p;var b=function(){function x(U){this.vars=[],U.offset=0,this.ps=new v(U.scale),this.addVariable(U)}return x.prototype.addVariable=function(U){U.block=this,this.vars.push(U),this.ps.addVariable(U),this.posn=this.ps.getPosn()},x.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var U=0,k=this.vars.length;U=0?this.inactive.push(U):this.bs.merge(U)}}},x.prototype.solve=function(){this.satisfy();for(var U=Number.MAX_VALUE,k=this.bs.cost();Math.abs(U-k)>1e-4;)this.satisfy(),U=k,k=this.bs.cost();return k},x.LAGRANGIAN_TOLERANCE=-1e-4,x.ZERO_UPPERBOUND=-1e-10,x}();et.Solver=t,et.removeOverlapInOneDimension=function A(x,U,k){for(var D=x.map(function(it){return new p(it.desiredCenter)}),P=[],F=x.length,z=0;z{var d={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function p(T){var t=b(T);return v(t)}function b(T){if(!v.o(d,T)){var t=new Error("Cannot find module '"+T+"'");throw t.code="MODULE_NOT_FOUND",t}return d[T]}p.keys=function(){return Object.keys(d)},p.resolve=b,at.exports=p,p.id=46700},7100:(at,et,v)=>{"use strict";v.d(et,{AB:()=>gi,EC:()=>ei,K:()=>dn,g2:()=>An});var d=v(84080),p=v(94650),b=v(42654),T=v(8929),t=v(36787),A=v(29521),x=v(72986),U=v(1059),k=v(7625),D=v(80013),P=v(92198),F=v(99602),z=v(36895),J=v(3238),K=v(40445),ot=v(4859),lt=v(21281),vt=v(98184),Dt=v(24006),Pt=v(59549),zt=v(284),Vt=v(97392),it=v(65412),Tt=v(83353);const At=["ngx-mat-calendar-body",""];function ft(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&tt){const Q=p.oxw();p.xp6(1),p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q.numCols),p.xp6(1),p.hij(" ",Q.label," ")}}function Et(tt,Rt){if(1&tt&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&tt){const Q=p.oxw(2);p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q._firstRowOffset),p.xp6(1),p.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function Bt(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(Be){const Qi=p.CHM(Q).$implicit,Ao=p.oxw(2);return p.KtG(Ao._cellClicked(Qi,Be))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&tt){const Q=Rt.$implicit,Nt=Rt.index,Be=p.oxw().index,Rn=p.oxw();p.Udp("width",Rn._cellWidth)("padding-top",Rn._cellPadding)("padding-bottom",Rn._cellPadding),p.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Rn._isActiveCell(Be,Nt))("mat-calendar-body-range-start",Rn._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Rn._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Rn._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Rn._isComparisonBridgeStart(Q.compareValue,Be,Nt))("mat-calendar-body-comparison-bridge-end",Rn._isComparisonBridgeEnd(Q.compareValue,Be,Nt))("mat-calendar-body-comparison-start",Rn._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Rn._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Rn._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Rn._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Rn._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Rn._isInPreview(Q.compareValue)),p.Q6J("ngClass",Q.cssClasses)("tabindex",Rn._isActiveCell(Be,Nt)?0:-1),p.uIk("data-mat-row",Be)("data-mat-col",Nt)("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-selected",Rn._isSelected(Q)),p.xp6(1),p.ekj("mat-calendar-body-selected",Rn._isSelected(Q))("mat-calendar-body-today",Rn.todayValue===Q.compareValue),p.xp6(1),p.hij(" ",Q.displayValue," ")}}function Ft(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",4),p.YNc(1,Et,2,6,"td",5),p.YNc(2,Bt,4,44,"td",6),p.qZA()),2&tt){const Q=Rt.$implicit,Nt=Rt.index,Be=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Nt&&Be._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",Q)}}function se(tt,Rt){if(1&tt&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&tt){const Q=Rt.$implicit;p.uIk("aria-label",Q.long),p.xp6(1),p.Oqu(Q.narrow)}}const jt=["*"];function ve(tt,Rt){}function be(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._dateSelected(Be))})("_userSelection",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be._userSelected())}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Le(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("monthSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._monthSelectedInYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"month"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function qe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("yearSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._yearSelectedInMultiYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"year"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function $e(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function Xt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function Te(tt,Rt){1&tt&&p._UZ(0,"td")}function ae(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("hour",!0))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_less"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,$e,4,1,"td",3),p.YNc(12,Xt,1,0,"td",8),p.YNc(13,Te,1,0,"td",3),p.qZA()}if(2&tt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(4),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function Kt(tt,Rt){1&tt&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function de(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.formatInput(Be.target))})("keydown.ArrowUp",function(Be){return p.CHM(Q),p.oxw().change("second",!0),p.KtG(Be.preventDefault())})("keydown.ArrowDown",function(Be){return p.CHM(Q),p.oxw().change("second",!1),p.KtG(Be.preventDefault())})("blur",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("second"))}),p.qZA()()()}}function Wt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function re(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&tt){const Q=p.oxw();p.xp6(1),p.Q6J("color",Q.color)("disabled",Q.disabled),p.xp6(1),p.hij(" ",Q.meridian," ")}}function De(tt,Rt){1&tt&&p._UZ(0,"td")}function on(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function _n(tt,Rt){1&tt&&p._UZ(0,"td",6)}function Ae(tt,Rt){1&tt&&p._UZ(0,"td")}function gn(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("hour",!1))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_more"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,De,1,0,"td",3),p.YNc(11,on,4,1,"td",3),p.YNc(12,_n,1,0,"td",8),p.YNc(13,Ae,1,0,"td",3),p.qZA()}if(2&tt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(3),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function we(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(Be){p.CHM(Q);const Rn=p.oxw(2);return p.KtG(Rn.datepicker._selected=Be)}),p.qZA()()}if(2&tt){const Q=p.oxw(2);p.ekj("disable-seconds",!Q.datepicker._showSeconds),p.xp6(1),p.Q6J("showSpinners",Q.datepicker._showSpinners)("showSeconds",Q.datepicker._showSeconds)("disabled",Q.datepicker._disabled)("stepHour",Q.datepicker._stepHour)("stepMinute",Q.datepicker._stepMinute)("stepSecond",Q.datepicker._stepSecond)("ngModel",Q.datepicker._selected)("color",Q.datepicker._color)("enableMeridian",Q.datepicker._enableMeridian)("disableMinute",Q.datepicker._disableMinute)}}function un(tt,Rt){1&tt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function Un(tt,Rt){}function oi(tt,Rt){if(1&tt){const Q=p.EpF();p.ynx(0),p.YNc(1,we,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.datepicker.ok())}),p.YNc(4,un,2,0,"mat-icon",1),p.YNc(5,Un,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&tt){const Q=p.oxw();p.xp6(1),p.Q6J("ngIf",!Q.datepicker._hideTime),p.xp6(2),p.Q6J("color",Q.datepicker._color)("disabled",!Q.valid),p.xp6(1),p.Q6J("ngIf",!Q.datepicker._customIcon),p.xp6(1),p.Q6J("cdkPortalOutlet",Q._templateCustomIconPortal)}}const vi=new p.OlP("ngx-mat-date-formats");class si{constructor(Rt,Q,Nt,Be,Rn={},Qi=Rt,Ao){this.value=Rt,this.displayValue=Q,this.ariaLabel=Nt,this.enabled=Be,this.cssClasses=Rn,this.compareValue=Qi,this.rawValue=Ao}}let Ke=(()=>{class tt{constructor(Q,Nt){this._elementRef=Q,this._ngZone=Nt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this._enterHandler=Be=>{if(this._skipNextFocus&&"focus"===Be.type)this._skipNextFocus=!1;else if(Be.target&&this.isRange){const Rn=this._getCellFromElement(Be.target);Rn&&this._ngZone.run(()=>this.previewChange.emit({value:Rn.enabled?Rn:null,event:Be}))}},this._leaveHandler=Be=>{null!==this.previewEnd&&this.isRange&&Be.target&&ne(Be.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Be}))},Nt.runOutsideAngular(()=>{const Be=Q.nativeElement;Be.addEventListener("mouseenter",this._enterHandler,!0),Be.addEventListener("focus",this._enterHandler,!0),Be.addEventListener("mouseleave",this._leaveHandler,!0),Be.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(Q,Nt){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Nt})}_isSelected(Q){return this.startValue===Q.compareValue||this.endValue===Q.compareValue}ngOnChanges(Q){const Nt=Q.numCols,{rows:Be,numCols:Rn}=this;(Q.rows||Nt)&&(this._firstRowOffset=Be&&Be.length&&Be[0].length?Rn-Be[0].length:0),(Q.cellAspectRatio||Nt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Rn+"%"),(Nt||!this._cellWidth)&&(this._cellWidth=100/Rn+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,Nt){let Be=Q*this.numCols+Nt;return Q&&(Be-=this._firstRowOffset),Be==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{const Nt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Nt&&(Q||(this._skipNextFocus=!0),Nt.focus())})})}_isRangeStart(Q){return ct(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return nt(Q,this.startValue,this.endValue)}_isInRange(Q){return kt(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return ct(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Nt,Be){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Nt][Be-1];if(!Rn){const Qi=this.rows[Nt-1];Rn=Qi&&Qi[Qi.length-1]}return Rn&&!this._isRangeEnd(Rn.compareValue)}_isComparisonBridgeEnd(Q,Nt,Be){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Nt][Be+1];if(!Rn){const Qi=this.rows[Nt+1];Rn=Qi&&Qi[0]}return Rn&&!this._isRangeStart(Rn.compareValue)}_isComparisonEnd(Q){return nt(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return kt(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(Q){return ct(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return nt(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return kt(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let Nt;if(ne(Q)?Nt=Q:ne(Q.parentNode)&&(Nt=Q.parentNode),Nt){const Be=Nt.getAttribute("data-ngx-mat-row"),Rn=Nt.getAttribute("data-ngx-mat-col");if(Be&&Rn)return this.rows[parseInt(Be)][parseInt(Rn)]}return null}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.R0b))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[p.TTD],attrs:At,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(Q,Nt){1&Q&&(p.YNc(0,ft,3,6,"tr",0),p.YNc(1,Ft,3,2,"tr",1)),2&Q&&(p.Q6J("ngIf",Nt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),tt})();function ne(tt){return"TD"===tt.nodeName}function ct(tt,Rt,Q){return null!==Q&&Rt!==Q&&tt=Rt&&tt===Q}function kt(tt,Rt,Q,Nt){return Nt&&null!==Rt&&null!==Q&&Rt!==Q&&tt>=Rt&&tt<=Q}class Jt extends J._A{isSameTime(Rt,Q){return null==Rt||null==Q||this.getHour(Rt)===this.getHour(Q)&&this.getMinute(Rt)===this.getMinute(Q)&&this.getSecond(Rt)===this.getSecond(Q)}copyTime(Rt,Q){this.setHour(Rt,this.getHour(Q)),this.setMinute(Rt,this.getMinute(Q)),this.setSecond(Rt,this.getSecond(Q))}compareDateWithTime(Rt,Q,Nt){let Be=super.compareDate(Rt,Q)||this.getHour(Rt)-this.getHour(Q)||this.getMinute(Rt)-this.getMinute(Q);return Nt&&(Be=Be||this.getSecond(Rt)-this.getSecond(Q)),Be}setTimeByDefaultValues(Rt,Q){if(!Array.isArray(Q))throw Error("@Input DefaultTime should be an array");this.setHour(Rt,Q[0]||0),this.setMinute(Rt,Q[1]||0),this.setSecond(Rt,Q[2]||0)}}const oe=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let Ce=(()=>{class tt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,Nt){let{start:Be,end:Rn}=Nt;return null==Be?Be=Q:null==Rn&&Q&&this._dateAdapter.compareDate(Q,Be)>=0?Rn=Q:(Be=Q,Rn=null),new F.C0(Be,Rn)}createPreview(Q,Nt){let Be=null,Rn=null;return Nt.start&&!Nt.end&&Q&&(Be=Nt.start,Rn=Q),new F.C0(Be,Rn)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(Jt))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const Oe={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},mi=/[^0-9]/g,Li=/^(2[0-3]|[0-1][0-9]|[0-9])$/,ho=/^([0-5][0-9]|[0-9])$/,fi=/^([0-5][0-9]|[0-9])$/;function Bn(tt){const Rt=tt.toString();return Rt.length>1?Rt:`0${Rt}`}function Gn(tt){return Error(`NgxMatDatepicker: No provider found for ${tt}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let ze=(()=>{class tt{constructor(Q,Nt,Be,Rn,Qi){if(this._changeDetectorRef=Q,this._dateFormats=Nt,this._dateAdapter=Be,this._dir=Rn,this._rangeStrategy=Qi,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const Nt=this._activeDate,Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._hasSameMonthAndYear(Nt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof F.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Nt=Q.value,Be=this._dateAdapter.getYear(this.activeDate),Rn=this._dateAdapter.getMonth(this.activeDate),Qi=this._dateAdapter.createDate(Be,Rn,Nt);let Ao,gr;this._selected instanceof F.C0?(Ao=this._getDateInCurrentMonth(this._selected.start),gr=this._getDateInCurrentMonth(this._selected.end)):Ao=gr=this._getDateInCurrentMonth(this._selected),(Ao!==Nt||gr!==Nt)&&this.selectedChange.emit(Qi),this._userSelection.emit({value:Qi,event:Q.event})}_handleCalendarBodyKeydown(Q){const Nt=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.K5:case A.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),Q.preventDefault()));case A.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(Nt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_previewChanged({event:Q,value:Nt}){if(this._rangeStrategy){const Rn=this._rangeStrategy.createPreview(Nt?Nt.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Rn.start),this._previewEnd=this._getCellCompareValue(Rn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Nt=this._dateAdapter.getDayOfWeekNames("narrow");let Rn=this._dateAdapter.getDayOfWeekNames("long").map((Qi,Ao)=>({long:Qi,narrow:Nt[Ao]}));this._weekdays=Rn.slice(Q).concat(Rn.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Nt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Be=0,Rn=this._firstWeekOffset;Be=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,Nt){return!(!Q||!Nt||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Nt)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Nt))}_getCellCompareValue(Q){if(Q){const Nt=this._dateAdapter.getYear(Q),Be=this._dateAdapter.getMonth(Q),Rn=this._dateAdapter.getDate(Q);return new Date(Nt,Be,Rn).getTime()}return null}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof F.C0?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.sBO),p.Y36(vi,8),p.Y36(Jt,8),p.Y36(K.Is,8),p.Y36(oe,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-month-view"]],viewQuery:function(Q,Nt){if(1&Q&&p.Gf(Ke,5),2&Q){let Be;p.iGM(Be=p.CRH())&&(Nt._matCalendarBody=Be.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(Q,Nt){1&Q&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,se,2,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(Rn){return Nt._dateSelected(Rn)})("previewChange",function(Rn){return Nt._previewChanged(Rn)})("keydown",function(Rn){return Nt._handleCalendarBodyKeydown(Rn)}),p.qZA()()),2&Q&&(p.xp6(3),p.Q6J("ngForOf",Nt._weekdays),p.xp6(3),p.Q6J("label",Nt._monthLabel)("rows",Nt._weeks)("todayValue",Nt._todayDate)("startValue",Nt._rangeStart)("endValue",Nt._rangeEnd)("comparisonStart",Nt._comparisonRangeStart)("comparisonEnd",Nt._comparisonRangeEnd)("previewStart",Nt._previewStart)("previewEnd",Nt._previewEnd)("isRange",Nt._isRange)("labelMinRequiredCells",3)("activeCell",Nt._dateAdapter.getDate(Nt.activeDate)-1))},dependencies:[z.sg,Ke],encapsulation:2,changeDetection:0}),tt})(),le=(()=>{class tt{constructor(Q,Nt,Be){if(this._changeDetectorRef=Q,this._dateAdapter=Nt,this._dir=Be,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Nt=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),je(this._dateAdapter,Nt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof F.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Nt=this._dateAdapter.getYear(this._activeDate)-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Be=0,Rn=[];Be<24;Be++)Rn.push(Nt+Be),4==Rn.length&&(this._years.push(Rn.map(Qi=>this._createCellForYear(Qi))),Rn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Nt=Q.value;this.yearSelected.emit(this._dateAdapter.createDate(Nt,0,1));let Be=this._dateAdapter.getMonth(this.activeDate),Rn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Nt,Be,1));this.selectedChange.emit(this._dateAdapter.createDate(Nt,Be,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Nt=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-240:-24);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?240:24);break;case A.K5:case A.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(Nt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_getActiveCell(){return Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(Q){let Nt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return new si(Q,Nt,Nt,this._shouldEnableYear(Q))}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class tt{constructor(Q,Nt,Be,Rn){if(this._changeDetectorRef=Q,this._dateFormats=Nt,this._dateAdapter=Be,this._dir=Rn,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Nt=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._dateAdapter.getYear(Nt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof F.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Nt=Q.value,Be=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Nt,1);this.monthSelected.emit(Be);const Rn=this._dateAdapter.getNumDaysInMonth(Be);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Nt,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Nt=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case A.K5:case A.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(Nt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Nt=>Nt.map(Be=>this._createCellForMonth(Be,Q[Be]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_createCellForMonth(Q,Nt){let Be=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),this._dateFormats.display.monthYearA11yLabel);return new si(Q,Nt.toLocaleUpperCase(),Be,this._shouldEnableMonth(Q))}_shouldEnableMonth(Q){const Nt=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Nt,Q)||this._isYearAndMonthBeforeMinDate(Nt,Q))return!1;if(!this.dateFilter)return!0;for(let Rn=this._dateAdapter.createDate(Nt,Q,1);this._dateAdapter.getMonth(Rn)==Q;Rn=this._dateAdapter.addCalendarDays(Rn,1))if(this.dateFilter(Rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Nt){if(this.maxDate){const Be=this._dateAdapter.getYear(this.maxDate),Rn=this._dateAdapter.getMonth(this.maxDate);return Q>Be||Q===Be&&Nt>Rn}return!1}_isYearAndMonthBeforeMinDate(Q,Nt){if(this.minDate){const Be=this._dateAdapter.getYear(this.minDate),Rn=this._dateAdapter.getMonth(this.minDate);return Q{class tt{constructor(Q,Nt,Be,Rn,Qi){this._intl=Q,this.calendar=Nt,this._dateAdapter=Be,this._dateFormats=Rn,this.calendar.stateChanges.subscribe(()=>Qi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Nt=this._dateAdapter.getYear(this.calendar.activeDate)-Lt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Be=Nt+24-1;return function Ye(tt,Rt){return`${tt} \u2013 ${Rt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Nt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Be,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Q,Nt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Nt)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Nt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Nt):je(this._dateAdapter,Q,Nt,this.calendar.minDate,this.calendar.maxDate)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(F.S8),p.Y36((0,p.Gpc)(()=>Ne)),p.Y36(Jt,8),p.Y36(vi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:jt,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Q,Nt){1&Q&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Nt.currentPeriodClicked()}),p._uU(3),p._UZ(4,"div",3),p.qZA(),p._UZ(5,"div",4),p.Hsn(6),p.TgZ(7,"button",5),p.NdJ("click",function(){return Nt.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return Nt.nextClicked()}),p.qZA()()()),2&Q&&(p.xp6(2),p.uIk("aria-label",Nt.periodButtonLabel),p.xp6(1),p.hij(" ",Nt.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=Nt.calendar.currentView),p.xp6(3),p.Q6J("disabled",!Nt.previousEnabled()),p.uIk("aria-label",Nt.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Nt.nextEnabled()),p.uIk("aria-label",Nt.nextButtonLabel))},dependencies:[ot.lW],encapsulation:2,changeDetection:0}),tt})(),Ne=(()=>{class tt{constructor(Q,Nt,Be,Rn){if(this._dateAdapter=Nt,this._dateFormats=Be,this._changeDetectorRef=Rn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this._userSelection=new p.vpe,this.stateChanges=new T.xQ,!this._dateAdapter)throw Gn("NgxDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._intlChanges=Q.changes.subscribe(()=>{Rn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new d.C5(this.headerComponent||Xe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Q){const Nt=Q.minDate||Q.maxDate||Q.dateFilter;if(Nt&&!Nt.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(Q){Q&&!this._dateAdapter.sameDate(Q,this.selected)&&this.selectedChange.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_userSelected(){this._userSelection.emit()}_goToDateInView(Q,Nt){this.activeDate=Q,this.currentView=Nt}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(F.S8),p.Y36(Jt,8),p.Y36(vi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar"]],viewQuery:function(Q,Nt){if(1&Q&&(p.Gf(ze,5),p.Gf(ye,5),p.Gf(le,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Nt.monthView=Be.first),p.iGM(Be=p.CRH())&&(Nt.yearView=Be.first),p.iGM(Be=p.CRH())&&(Nt.multiYearView=Be.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[p.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(Q,Nt){1&Q&&(p.YNc(0,ve,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,be,1,6,"ngx-mat-month-view",2),p.YNc(3,Le,1,5,"ngx-mat-year-view",3),p.YNc(4,qe,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&Q&&(p.Q6J("cdkPortalOutlet",Nt._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Nt.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[z.RF,z.n9,d.Pl,ze,ye,le],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),tt})(),Tn=(()=>{class tt{constructor(Q,Nt,Be){if(this._dateAdapter=Q,this.cd=Nt,this.formBuilder=Be,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new T.xQ,this.pattern=Li,!this._dateAdapter)throw Gn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(Li)]],minute:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(ho)]],second:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(fi)]]})}get hour(){let Q=Number(this.form.controls.hour.value);return isNaN(Q)?0:Q}get minute(){let Q=Number(this.form.controls.minute.value);return isNaN(Q)?0:Q}get second(){let Q=Number(this.form.controls.second.value);return isNaN(Q)?0:Q}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,k.R)(this._destroyed),(0,D.b)(400)).subscribe(Q=>{this._updateModel()})}ngOnChanges(Q){(Q.disabled||Q.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(Q){null!=Q?this._model=Q:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(Q){this._onChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this._disabled=Q,this.cd.markForCheck()}formatInput(Q){Q.value=Q.value.replace(mi,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(Q,Nt){const Be=this._getNextValueByProp(Q,Nt);this.form.controls[Q].setValue(Bn(Be),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let Q=this._dateAdapter.getHour(this._model);const Nt=this._dateAdapter.getMinute(this._model),Be=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(Q>=Oe.meridian?(Q-=Oe.meridian,this.meridian="PM"):this.meridian="AM",0===Q&&(Q=Oe.meridian)),this.form.controls.hour.setValue(Bn(Q)),this.form.controls.minute.setValue(Bn(Nt)),this.form.controls.second.setValue(Bn(Be))}_updateModel(){let Q=this.hour;this.enableMeridian&&("AM"===this.meridian&&Q===Oe.meridian?Q=0:"PM"===this.meridian&&Q!==Oe.meridian&&(Q+=Oe.meridian)),this._dateAdapter.setHour(this._model,Q),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(Q,Nt){const Be=Q[0].toUpperCase()+Q.slice(1),Rn=Oe[`min${Be}`];let Ao,Qi=Oe[`max${Be}`];return"hour"===Q&&this.enableMeridian&&(Qi=Oe.meridian),null==Nt?(Ao=this[Q]%Qi,"hour"===Q&&this.enableMeridian&&0===Ao&&(Ao=Qi)):(Ao=Nt?this[Q]+this[`step${Be}`]:this[Q]-this[`step${Be}`],"hour"===Q&&this.enableMeridian?(Ao%=Qi+1,0===Ao&&(Ao=Nt?1:Qi)):Ao%=Qi,Ao=Nt?Ao>Qi?Ao-Qi+Rn:Ao:Aott),multi:!0}]),p.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(Q,Nt){1&Q&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,ae,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(Rn){return Nt.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Nt.change("hour",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Nt.change("hour",!1),Rn.preventDefault()})("blur",function(){return Nt.change("hour")}),p.qZA()()(),p.TgZ(8,"td",6),p._uU(9,":"),p.qZA(),p.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),p.NdJ("input",function(Rn){return Nt.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Nt.change("minute",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Nt.change("minute",!1),Rn.preventDefault()})("blur",function(){return Nt.change("minute")}),p.qZA()()(),p.YNc(13,Kt,2,0,"td",8),p.YNc(14,de,3,0,"td",3),p.YNc(15,Wt,1,0,"td",8),p.YNc(16,re,3,3,"td",9),p.qZA(),p.YNc(17,gn,14,6,"tr",3),p.qZA()()()),2&Q&&(p.Q6J("formGroup",Nt.form),p.xp6(3),p.Q6J("ngIf",Nt.showSpinners),p.xp6(10),p.Q6J("ngIf",Nt.showSeconds),p.xp6(1),p.Q6J("ngIf",Nt.showSeconds),p.xp6(1),p.Q6J("ngIf",Nt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Nt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Nt.showSpinners))},dependencies:[z.O5,Pt.KE,zt.Nt,Dt._Y,Dt.Fj,Dt.JJ,Dt.JL,Dt.nD,Dt.sg,Dt.u,Vt.Hw,ot.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),tt})(),he=0;const Re=(0,J.pj)(class{constructor(tt){this._elementRef=tt}});let En=(()=>{class tt extends Re{constructor(Q,Nt,Be){super(Q),this.cd=Nt,this._viewContainerRef=Be}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new d.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(Q,Nt){if(1&Q&&(p.Gf(Ne,5),p.Gf(Tn,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Nt._calendar=Be.first),p.iGM(Be=p.CRH())&&(Nt._timePicker=Be.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Nt){2&Q&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",Nt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[p.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(Q,Nt){1&Q&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(Rn){return Nt.datepicker.select(Rn)})("yearSelected",function(Rn){return Nt.datepicker._selectYear(Rn)})("monthSelected",function(Rn){return Nt.datepicker._selectMonth(Rn)}),p.qZA(),p.YNc(1,oi,6,5,"ng-container",1)),2&Q&&(p.Q6J("id",Nt.datepicker.id)("ngClass",Nt.datepicker.panelClass)("startAt",Nt.datepicker.startAt)("startView",Nt.datepicker.startView)("minDate",Nt.datepicker._minDate)("maxDate",Nt.datepicker._maxDate)("dateFilter",Nt.datepicker._dateFilter)("headerComponent",Nt.datepicker.calendarHeaderComponent)("selected",Nt.datepicker._selected)("dateClass",Nt.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",Nt.isViewMonth))},dependencies:[z.mk,z.O5,d.Pl,Dt.JJ,Dt.On,Vt.Hw,ot.lW,Tn,Ne],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[F.E2.transformPanel,F.E2.fadeInCalendar]},changeDetection:0}),tt})(),gi=(()=>{class tt{constructor(Q,Nt,Be,Rn,Qi,Ao,gr,vr){if(this._dialog=Q,this._overlay=Nt,this._ngZone=Be,this._viewContainerRef=Rn,this._dateAdapter=Ao,this._dir=gr,this._document=vr,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.openedStream=new p.vpe,this.closedStream=new p.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+he++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=b.w.EMPTY,this.stateChanges=new T.xQ,this._selectedChanged=new T.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw Gn("NgxMatDateAdapter");this._scrollStrategy=Qi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get defaultColor(){return this._defaultColor}set defaultColor(Q){this._defaultColor=Q}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,lt.Ig)(Q)}get hideTime(){return this._hideTime}set hideTime(Q){this._hideTime=(0,lt.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Nt=(0,lt.Ig)(Q);Nt!==this._disabled&&(this._disabled=Nt,this.stateChanges.next(Nt))}get opened(){return this._opened}set opened(Q){Q?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(Q){this._showSpinners=Q}get showSeconds(){return this._showSeconds}set showSeconds(Q){this._showSeconds=Q}get stepHour(){return this._stepHour}set stepHour(Q){this._stepHour=Q}get stepMinute(){return this._stepMinute}set stepMinute(Q){this._stepMinute=Q}get stepSecond(){return this._stepSecond}set stepSecond(Q){this._stepSecond=Q}get enableMeridian(){return this._enableMeridian}set enableMeridian(Q){this._enableMeridian=Q}get disableMinute(){return this._disableMinute}set disableMinute(Q){this._disableMinute=Q}get defaultTime(){return this._defaultTime}set defaultTime(Q){this._defaultTime=Q}get _selected(){return this._validSelected}set _selected(Q){this._validSelected=Q}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const Q=this._minValidator(),Nt=this._maxValidator();return null==Q&&null==Nt}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(Q){this._dateAdapter.copyTime(Q,this._selected),this._selected=Q}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}ok(){const Q=this._dateAdapter.clone(this._selected);this._selectedChanged.next(Q),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(Q){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=Q,this._inputSubscription=this.datepickerInput._valueChange.subscribe(Nt=>this._selected=Nt)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const Q=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Q)):Q()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(En,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new d.C5(En,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const Q=new vt.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(Q),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,P.h)(Nt=>Nt.keyCode===A.hY||this.datepickerInput&&Nt.altKey&&Nt.keyCode===A.LH))).subscribe(Nt=>{Nt&&Nt.preventDefault(),this._hasBackdrop&&Nt?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_setColor(){const Q=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=Q),this._dialogRef&&(this._dialogRef.componentInstance.color=Q)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(it.uw),p.Y36(vt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(F.Uu),p.Y36(Jt,8),p.Y36(K.Is,8),p.Y36(z.K0,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(Q,Nt,Be){if(1&Q&&p.Suo(Be,p.Rgc,5),2&Q){let Rn;p.iGM(Rn=p.CRH())&&(Nt._customIcon=Rn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(Q,Nt){},encapsulation:2,changeDetection:0}),tt})();const go={provide:Dt.JU,useExisting:(0,p.Gpc)(()=>An),multi:!0},_o={provide:Dt.Cf,useExisting:(0,p.Gpc)(()=>An),multi:!0};class mn{constructor(Rt,Q){this.target=Rt,this.targetElement=Q,this.value=this.target.value}}let Zi,An=(()=>{class tt{constructor(Q,Nt,Be,Rn){if(this._elementRef=Q,this._dateAdapter=Nt,this._dateFormats=Be,this._formField=Rn,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this._valueChange=new p.vpe,this.stateChanges=new p.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=b.w.EMPTY,this._localeSubscription=b.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Qi=>{const Ao=this._getValidDateOrNull(this._dateAdapter.deserialize(Qi.value));return!this.min||!Ao||this._dateAdapter.compareDateWithTime(this.min,Ao,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:Ao}}},this._maxValidator=Qi=>{const Ao=this._getValidDateOrNull(this._dateAdapter.deserialize(Qi.value));return!this.max||!Ao||this._dateAdapter.compareDateWithTime(this.max,Ao,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:Ao}}},this._filterValidator=Qi=>{const Ao=this._getValidDateOrNull(this._dateAdapter.deserialize(Qi.value));return this._dateFilter&&Ao&&!this._dateFilter(Ao)?{matDatetimePickerFilter:!0}:null},this._validator=Dt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Nt.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(Q){!Q||(this._datepicker=Q,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(Nt=>{this.value=Nt,this._cvaOnChange(Nt),this._onTouched(),this.dateInput.emit(new mn(this,this._elementRef.nativeElement)),this.dateChange.emit(new mn(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(Q){this._dateFilter=Q,this._validatorOnChange()}get value(){return this._value}set value(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=!Q||this._dateAdapter.isValid(Q),Q=this._getValidDateOrNull(Q);const Nt=this.value;this._value=Q,this._formatValue(Q),this._dateAdapter.sameDate(Nt,Q)||this._valueChange.emit(Q)}get min(){return this._min}set min(Q){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get max(){return this._max}set max(Q){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(Q){const Nt=null!=Q&&"false"!=`${Q}`,Be=this._elementRef.nativeElement;this._disabled!==Nt&&(this._disabled=Nt,this.stateChanges.emit(void 0)),Nt&&Be.blur&&Be.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(Q){this.value=Q}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){this._datepicker&&Q.altKey&&Q.keyCode===A.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),Q.preventDefault())}_onInput(Q){const Nt=this._lastValueValid;let Be=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=!Be||this._dateAdapter.isValid(Be),Be=this._getValidDateOrNull(Be);const Rn=this._dateAdapter.isSameTime(Be,this._value);null!=Be&&(!Rn||!this._dateAdapter.sameDate(Be,this._value))||null==Be&&null!=this._value?(this._value=Be,this._cvaOnChange(Be),this._valueChange.emit(Be),this.dateInput.emit(new mn(this,this._elementRef.nativeElement))):Nt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new mn(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(Q){this._elementRef.nativeElement.value=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(Jt,8),p.Y36(vi,8),p.Y36(Pt.KE,8))},tt.\u0275dir=p.lG2({type:tt,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(Q,Nt){1&Q&&p.NdJ("input",function(Rn){return Nt._onInput(Rn.target.value)})("change",function(){return Nt._onChange()})("blur",function(){return Nt._onBlur()})("focus",function(){return Nt._onFocus()})("keydown",function(Rn){return Nt._onKeydown(Rn)}),2&Q&&(p.Ikx("disabled",Nt.disabled),p.uIk("aria-haspopup",Nt._datepicker?"dialog":null)("aria-owns",(null==Nt._datepicker?null:Nt._datepicker.opened)&&Nt._datepicker.id||null)("min",Nt.min?Nt._dateAdapter.toIso8601(Nt.min):null)("max",Nt.max?Nt._dateAdapter.toIso8601(Nt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[p._Bn([go,_o,{provide:zt.Jk,useExisting:tt}])]}),tt})(),sn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({imports:[z.ez,zt.c,Dt.UX,Dt.u5,Vt.Ps,ot.ot]}),tt})(),ei=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[F.Lv,{provide:oe,useClass:Ce}],imports:[z.ez,F.FA,it.Is,d.eL,Dt.u5,Vt.Ps,ot.ot,zt.c,sn]}),tt})();try{Zi=typeof Intl<"u"}catch{Zi=!1}const bo={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},No=fr(31,tt=>String(tt+1)),ua={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},qa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fr(tt,Rt){const Q=Array(tt);for(let Nt=0;Nt{class tt extends Jt{constructor(Q,Nt){super(),this.useUtcForDisplay=!0,super.setLocale(Q),this.useUtcForDisplay=!Nt.TRIDENT,this._clampDate=Nt.TRIDENT||Nt.EDGE}getYear(Q){return Q.getFullYear()}getMonth(Q){return Q.getMonth()}getDate(Q){return Q.getDate()}getDayOfWeek(Q){return Q.getDay()}getMonthNames(Q){if(Zi){const Nt=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return fr(12,Be=>this._stripDirectionalityCharacters(this._format(Nt,new Date(2017,Be,1))))}return bo[Q]}getDateNames(){if(Zi){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fr(31,Nt=>this._stripDirectionalityCharacters(this._format(Q,new Date(2017,0,Nt+1))))}return No}getDayOfWeekNames(Q){if(Zi){const Nt=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return fr(7,Be=>this._stripDirectionalityCharacters(this._format(Nt,new Date(2017,0,Be+1))))}return ua[Q]}getYearName(Q){if(Zi){const Nt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Nt,Q))}return String(this.getYear(Q))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Q){return this.getDate(this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+1,0))}clone(Q){return new Date(Q.getTime())}createDate(Q,Nt,Be){if(Nt<0||Nt>11)throw Error(`Invalid month index "${Nt}". Month index has to be between 0 and 11.`);if(Be<1)throw Error(`Invalid date "${Be}". Date has to be greater than 0.`);let Rn=this._createDateWithOverflow(Q,Nt,Be);if(Rn.getMonth()!=Nt)throw Error(`Invalid date "${Be}" for month with index "${Nt}".`);return Rn}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,Nt){if(!this.isValid(Q))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Zi){this._clampDate&&(Q.getFullYear()<1||Q.getFullYear()>9999)&&(Q=this.clone(Q)).setFullYear(Math.max(1,Math.min(9999,Q.getFullYear()))),Nt={...Nt,timeZone:"utc"};const Be=new Intl.DateTimeFormat(this.locale,Nt);return this._stripDirectionalityCharacters(this._format(Be,Q))}return this._stripDirectionalityCharacters(Q.toDateString())}addCalendarYears(Q,Nt){return this.addCalendarMonths(Q,12*Nt)}addCalendarMonths(Q,Nt){let Be=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+Nt,this.getDate(Q));return this.getMonth(Be)!=((this.getMonth(Q)+Nt)%12+12)%12&&(Be=this._createDateWithOverflow(this.getYear(Be),this.getMonth(Be),0)),Be}addCalendarDays(Q,Nt){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+Nt)}toIso8601(Q){return[Q.getUTCFullYear(),this._2digit(Q.getUTCMonth()+1),this._2digit(Q.getUTCDate())].join("-")}deserialize(Q){if("string"==typeof Q){if(!Q)return null;if(qa.test(Q)){let Nt=new Date(Q);if(this.isValid(Nt))return Nt}}return super.deserialize(Q)}isDateInstance(Q){return Q instanceof Date}isValid(Q){return!isNaN(Q.getTime())}invalid(){return new Date(NaN)}getHour(Q){return Q.getHours()}getMinute(Q){return Q.getMinutes()}getSecond(Q){return Q.getSeconds()}setHour(Q,Nt){Q.setHours(Nt)}setMinute(Q,Nt){Q.setMinutes(Nt)}setSecond(Q,Nt){Q.setSeconds(Nt)}_createDateWithOverflow(Q,Nt,Be){const Rn=new Date(Q,Nt,Be);return Q>=0&&Q<100&&Rn.setFullYear(this.getYear(Rn)-1900),Rn}_2digit(Q){return("00"+Q).slice(-2)}_stripDirectionalityCharacters(Q){return Q.replace(/[\u200e\u200f]/g,"")}_format(Q,Nt){const Be=new Date;return Be.setUTCFullYear(Nt.getFullYear(),Nt.getMonth(),Nt.getDate()),Be.setUTCHours(Nt.getHours(),Nt.getMinutes(),Nt.getSeconds(),Nt.getMilliseconds()),Q.format(Be)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(J.Ad,8),p.LFG(Tt.t4))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const Fn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},He={parse:{dateInput:Fn},display:{dateInput:Fn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Me=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:Jt,useClass:Je}],imports:[Tt.ud]}),tt})(),dn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:vi,useValue:He}],imports:[Me]}),tt})()},37340:(at,et,v)=>{"use strict";v.d(et,{F4:()=>D,IO:()=>K,LC:()=>p,SB:()=>k,X$:()=>T,ZE:()=>Dt,ZN:()=>vt,_j:()=>d,eR:()=>P,jt:()=>t,k1:()=>Pt,l3:()=>b,oB:()=>U,pV:()=>z,ru:()=>A,vP:()=>x});class d{}class p{}const b="*";function T(zt,Vt){return{type:7,name:zt,definitions:Vt,options:{}}}function t(zt,Vt=null){return{type:4,styles:Vt,timings:zt}}function A(zt,Vt=null){return{type:3,steps:zt,options:Vt}}function x(zt,Vt=null){return{type:2,steps:zt,options:Vt}}function U(zt){return{type:6,styles:zt,offset:null}}function k(zt,Vt,it){return{type:0,name:zt,styles:Vt,options:it}}function D(zt){return{type:5,steps:zt}}function P(zt,Vt,it=null){return{type:1,expr:zt,animation:Vt,options:it}}function z(zt=null){return{type:9,options:zt}}function K(zt,Vt,it=null){return{type:11,selector:zt,animation:Vt,options:it}}function lt(zt){Promise.resolve().then(zt)}class vt{constructor(Vt=0,it=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=Vt+it}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}onStart(Vt){this._originalOnStartFns.push(Vt),this._onStartFns.push(Vt)}onDone(Vt){this._originalOnDoneFns.push(Vt),this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Vt){this._position=this.totalTime?Vt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Vt){const it="start"==Vt?this._onStartFns:this._onDoneFns;it.forEach(Tt=>Tt()),it.length=0}}class Dt{constructor(Vt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Vt;let it=0,Tt=0,At=0;const ft=this.players.length;0==ft?lt(()=>this._onFinish()):this.players.forEach(Et=>{Et.onDone(()=>{++it==ft&&this._onFinish()}),Et.onDestroy(()=>{++Tt==ft&&this._onDestroy()}),Et.onStart(()=>{++At==ft&&this._onStart()})}),this.totalTime=this.players.reduce((Et,Bt)=>Math.max(Et,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}init(){this.players.forEach(Vt=>Vt.init())}onStart(Vt){this._onStartFns.push(Vt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[])}onDone(Vt){this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Vt=>Vt.play())}pause(){this.players.forEach(Vt=>Vt.pause())}restart(){this.players.forEach(Vt=>Vt.restart())}finish(){this._onFinish(),this.players.forEach(Vt=>Vt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Vt=>Vt.destroy()),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this.players.forEach(Vt=>Vt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Vt){const it=Vt*this.totalTime;this.players.forEach(Tt=>{const At=Tt.totalTime?Math.min(1,it/Tt.totalTime):1;Tt.setPosition(At)})}getPosition(){const Vt=this.players.reduce((it,Tt)=>null===it||Tt.totalTime>it.totalTime?Tt:it,null);return null!=Vt?Vt.getPosition():0}beforeDestroy(){this.players.forEach(Vt=>{Vt.beforeDestroy&&Vt.beforeDestroy()})}triggerCallback(Vt){const it="start"==Vt?this._onStartFns:this._onDoneFns;it.forEach(Tt=>Tt()),it.length=0}}const Pt="!"},12687:(at,et,v)=>{"use strict";v.d(et,{$s:()=>Bt,Em:()=>be,Kd:()=>mi,X6:()=>ne,ic:()=>qe,kH:()=>Gn,mK:()=>un,qV:()=>we,qm:()=>We,rt:()=>en,s1:()=>ve,tE:()=>Bn,yG:()=>ct});var d=v(36895),p=v(94650),b=v(83353),T=v(8929),t=v(42654),A=v(591),x=v(21086),U=v(29521),k=v(22868),D=v(80013),P=v(92198),F=v(24850),z=v(72986),J=v(31307),K=v(75778),ot=v(7625),lt=v(21281),vt=v(49643),Dt=v(62289);function it(le,je){return(le.getAttribute(je)||"").match(/\S+/g)||[]}const At="cdk-describedby-message",ft="cdk-describedby-host";let Et=0,Bt=(()=>{class le{constructor(Lt,wt){this._platform=wt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Et++,this._document=Lt,this._id=(0,p.f3M)(p.AFp)+"-"+Et++}describe(Lt,wt,Ot){if(!this._canBeDescribed(Lt,wt))return;const ye=Ft(wt,Ot);"string"!=typeof wt?(se(wt,this._id),this._messageRegistry.set(ye,{messageElement:wt,referenceCount:0})):this._messageRegistry.has(ye)||this._createMessageElement(wt,Ot),this._isElementDescribedByMessage(Lt,ye)||this._addMessageReference(Lt,ye)}removeDescription(Lt,wt,Ot){if(!wt||!this._isElementNode(Lt))return;const ye=Ft(wt,Ot);if(this._isElementDescribedByMessage(Lt,ye)&&this._removeMessageReference(Lt,ye),"string"==typeof wt){const Xe=this._messageRegistry.get(ye);Xe&&0===Xe.referenceCount&&this._deleteMessageElement(ye)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Lt=this._document.querySelectorAll(`[${ft}="${this._id}"]`);for(let wt=0;wt0!=Ot.indexOf(At));Lt.setAttribute("aria-describedby",wt.join(" "))}_addMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);(function zt(le,je,Lt){const wt=it(le,je);wt.some(Ot=>Ot.trim()==Lt.trim())||(wt.push(Lt.trim()),le.setAttribute(je,wt.join(" ")))})(Lt,"aria-describedby",Ot.messageElement.id),Lt.setAttribute(ft,this._id),Ot.referenceCount++}_removeMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);Ot.referenceCount--,function Vt(le,je,Lt){const Ot=it(le,je).filter(ye=>ye!=Lt.trim());Ot.length?le.setAttribute(je,Ot.join(" ")):le.removeAttribute(je)}(Lt,"aria-describedby",Ot.messageElement.id),Lt.removeAttribute(ft)}_isElementDescribedByMessage(Lt,wt){const Ot=it(Lt,"aria-describedby"),ye=this._messageRegistry.get(wt),Xe=ye&&ye.messageElement.id;return!!Xe&&-1!=Ot.indexOf(Xe)}_canBeDescribed(Lt,wt){if(!this._isElementNode(Lt))return!1;if(wt&&"object"==typeof wt)return!0;const Ot=null==wt?"":`${wt}`.trim(),ye=Lt.getAttribute("aria-label");return!(!Ot||ye&&ye.trim()===Ot)}_isElementNode(Lt){return Lt.nodeType===this._document.ELEMENT_NODE}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(d.K0),p.LFG(b.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function Ft(le,je){return"string"==typeof le?`${je||""}/${le}`:le}function se(le,je){le.id||(le.id=`${At}-${je}-${Et++}`)}class jt{constructor(je){this._items=je,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Lt=>Lt.disabled,this._pressedLetters=[],this.tabOut=new T.xQ,this.change=new T.xQ,je instanceof p.n_E&&je.changes.subscribe(Lt=>{if(this._activeItem){const Ot=Lt.toArray().indexOf(this._activeItem);Ot>-1&&Ot!==this._activeItemIndex&&(this._activeItemIndex=Ot)}})}skipPredicate(je){return this._skipPredicateFn=je,this}withWrap(je=!0){return this._wrap=je,this}withVerticalOrientation(je=!0){return this._vertical=je,this}withHorizontalOrientation(je){return this._horizontal=je,this}withAllowedModifierKeys(je){return this._allowedModifierKeys=je,this}withTypeAhead(je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(Lt=>this._pressedLetters.push(Lt)),(0,D.b)(je),(0,P.h)(()=>this._pressedLetters.length>0),(0,F.U)(()=>this._pressedLetters.join(""))).subscribe(Lt=>{const wt=this._getItemsArray();for(let Ot=1;Ot!je[ye]||this._allowedModifierKeys.indexOf(ye)>-1);switch(Lt){case U.Mf:return void this.tabOut.next();case U.JH:if(this._vertical&&Ot){this.setNextItemActive();break}return;case U.LH:if(this._vertical&&Ot){this.setPreviousItemActive();break}return;case U.SV:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case U.oh:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case U.Sd:if(this._homeAndEnd&&Ot){this.setFirstItemActive();break}return;case U.uR:if(this._homeAndEnd&&Ot){this.setLastItemActive();break}return;default:return void((Ot||(0,U.Vb)(je,"shiftKey"))&&(je.key&&1===je.key.length?this._letterKeyStream.next(je.key.toLocaleUpperCase()):(Lt>=U.A&&Lt<=U.Z||Lt>=U.xE&&Lt<=U.aO)&&this._letterKeyStream.next(String.fromCharCode(Lt))))}this._pressedLetters=[],je.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(je){const Lt=this._getItemsArray(),wt="number"==typeof je?je:Lt.indexOf(je);this._activeItem=Lt[wt]??null,this._activeItemIndex=wt}_setActiveItemByDelta(je){this._wrap?this._setActiveInWrapMode(je):this._setActiveInDefaultMode(je)}_setActiveInWrapMode(je){const Lt=this._getItemsArray();for(let wt=1;wt<=Lt.length;wt++){const Ot=(this._activeItemIndex+je*wt+Lt.length)%Lt.length;if(!this._skipPredicateFn(Lt[Ot]))return void this.setActiveItem(Ot)}}_setActiveInDefaultMode(je){this._setActiveItemByIndex(this._activeItemIndex+je,je)}_setActiveItemByIndex(je,Lt){const wt=this._getItemsArray();if(wt[je]){for(;this._skipPredicateFn(wt[je]);)if(!wt[je+=Lt])return;this.setActiveItem(je)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class ve extends jt{setActiveItem(je){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(je),this.activeItem&&this.activeItem.setActiveStyles()}}class be extends jt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(je){return this._origin=je,this}setActiveItem(je){super.setActiveItem(je),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class le{constructor(Lt){this._platform=Lt}isDisabled(Lt){return Lt.hasAttribute("disabled")}isVisible(Lt){return function Xt(le){return!!(le.offsetWidth||le.offsetHeight||"function"==typeof le.getClientRects&&le.getClientRects().length)}(Lt)&&"visible"===getComputedStyle(Lt).visibility}isTabbable(Lt){if(!this._platform.isBrowser)return!1;const wt=function $e(le){try{return le.frameElement}catch{return null}}(function Ae(le){return le.ownerDocument&&le.ownerDocument.defaultView||window}(Lt));if(wt&&(-1===De(wt)||!this.isVisible(wt)))return!1;let Ot=Lt.nodeName.toLowerCase(),ye=De(Lt);return Lt.hasAttribute("contenteditable")?-1!==ye:!("iframe"===Ot||"object"===Ot||this._platform.WEBKIT&&this._platform.IOS&&!function on(le){let je=le.nodeName.toLowerCase(),Lt="input"===je&&le.type;return"text"===Lt||"password"===Lt||"select"===je||"textarea"===je}(Lt))&&("audio"===Ot?!!Lt.hasAttribute("controls")&&-1!==ye:"video"===Ot?-1!==ye&&(null!==ye||this._platform.FIREFOX||Lt.hasAttribute("controls")):Lt.tabIndex>=0)}isFocusable(Lt,wt){return function _n(le){return!function ae(le){return function de(le){return"input"==le.nodeName.toLowerCase()}(le)&&"hidden"==le.type}(le)&&(function Te(le){let je=le.nodeName.toLowerCase();return"input"===je||"select"===je||"button"===je||"textarea"===je}(le)||function Kt(le){return function Wt(le){return"a"==le.nodeName.toLowerCase()}(le)&&le.hasAttribute("href")}(le)||le.hasAttribute("contenteditable")||re(le))}(Lt)&&!this.isDisabled(Lt)&&(wt?.ignoreVisibility||this.isVisible(Lt))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(b.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function re(le){if(!le.hasAttribute("tabindex")||void 0===le.tabIndex)return!1;let je=le.getAttribute("tabindex");return!(!je||isNaN(parseInt(je,10)))}function De(le){if(!re(le))return null;const je=parseInt(le.getAttribute("tabindex")||"",10);return isNaN(je)?-1:je}class gn{constructor(je,Lt,wt,Ot,ye=!1){this._element=je,this._checker=Lt,this._ngZone=wt,this._document=Ot,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ye||this.attachAnchors()}get enabled(){return this._enabled}set enabled(je){this._enabled=je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(je,this._startAnchor),this._toggleAnchorTabIndex(je,this._endAnchor))}destroy(){const je=this._startAnchor,Lt=this._endAnchor;je&&(je.removeEventListener("focus",this.startAnchorListener),je.remove()),Lt&&(Lt.removeEventListener("focus",this.endAnchorListener),Lt.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusInitialElement(je)))})}focusFirstTabbableElementWhenReady(je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusFirstTabbableElement(je)))})}focusLastTabbableElementWhenReady(je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusLastTabbableElement(je)))})}_getRegionBoundary(je){const Lt=this._element.querySelectorAll(`[cdk-focus-region-${je}], [cdkFocusRegion${je}], [cdk-focus-${je}]`);return"start"==je?Lt.length?Lt[0]:this._getFirstTabbableElement(this._element):Lt.length?Lt[Lt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(je){const Lt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Lt){if(!this._checker.isFocusable(Lt)){const wt=this._getFirstTabbableElement(Lt);return wt?.focus(je),!!wt}return Lt.focus(je),!0}return this.focusFirstTabbableElement(je)}focusFirstTabbableElement(je){const Lt=this._getRegionBoundary("start");return Lt&&Lt.focus(je),!!Lt}focusLastTabbableElement(je){const Lt=this._getRegionBoundary("end");return Lt&&Lt.focus(je),!!Lt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(je){if(this._checker.isFocusable(je)&&this._checker.isTabbable(je))return je;const Lt=je.children;for(let wt=0;wt=0;wt--){const Ot=Lt[wt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Lt[wt]):null;if(Ot)return Ot}return null}_createAnchor(){const je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,je),je.classList.add("cdk-visually-hidden"),je.classList.add("cdk-focus-trap-anchor"),je.setAttribute("aria-hidden","true"),je}_toggleAnchorTabIndex(je,Lt){je?Lt.setAttribute("tabindex","0"):Lt.removeAttribute("tabindex")}toggleAnchors(je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(je,this._startAnchor),this._toggleAnchorTabIndex(je,this._endAnchor))}_executeOnStable(je){this._ngZone.isStable?je():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(je)}}let we=(()=>{class le{constructor(Lt,wt,Ot){this._checker=Lt,this._ngZone=wt,this._document=Ot}create(Lt,wt=!1){return new gn(Lt,this._checker,this._ngZone,this._document,wt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(qe),p.LFG(p.R0b),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),un=(()=>{class le{constructor(Lt,wt,Ot){this._elementRef=Lt,this._focusTrapFactory=wt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Lt){this.focusTrap.enabled=(0,lt.Ig)(Lt)}get autoCapture(){return this._autoCapture}set autoCapture(Lt){this._autoCapture=(0,lt.Ig)(Lt)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Lt){const wt=Lt.autoCapture;wt&&!wt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,b.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(we),p.Y36(d.K0))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),le})();function ne(le){return 0===le.buttons||0===le.offsetX&&0===le.offsetY}function ct(le){const je=le.touches&&le.touches[0]||le.changedTouches&&le.changedTouches[0];return!(!je||-1!==je.identifier||null!=je.radiusX&&1!==je.radiusX||null!=je.radiusY&&1!==je.radiusY)}const nt=new p.OlP("cdk-input-modality-detector-options"),kt={ignoreKeys:[U.zL,U.jx,U.b2,U.MW,U.JU]},oe=(0,b.i$)({passive:!0,capture:!0});let Ce=(()=>{class le{constructor(Lt,wt,Ot,ye){this._platform=Lt,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=Xe=>{this._options?.ignoreKeys?.some(Ne=>Ne===Xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(Xe))},this._onMousedown=Xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ne(Xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(Xe))},this._onTouchstart=Xe=>{ct(Xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(Xe))},this._options={...kt,...ye},this.modalityDetected=this._modality.pipe((0,J.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,K.x)()),Lt.isBrowser&&wt.runOutsideAngular(()=>{Ot.addEventListener("keydown",this._onKeydown,oe),Ot.addEventListener("mousedown",this._onMousedown,oe),Ot.addEventListener("touchstart",this._onTouchstart,oe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oe),document.removeEventListener("mousedown",this._onMousedown,oe),document.removeEventListener("touchstart",this._onTouchstart,oe))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(b.t4),p.LFG(p.R0b),p.LFG(d.K0),p.LFG(nt,8))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Oe=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Dn(){return null}}),Sn=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class le{constructor(Lt,wt,Ot,ye){this._ngZone=wt,this._defaultOptions=ye,this._document=Ot,this._liveElement=Lt||this._createLiveElement()}announce(Lt,...wt){const Ot=this._defaultOptions;let ye,Xe;return 1===wt.length&&"number"==typeof wt[0]?Xe=wt[0]:[ye,Xe]=wt,this.clear(),clearTimeout(this._previousTimeout),ye||(ye=Ot&&Ot.politeness?Ot.politeness:"polite"),null==Xe&&Ot&&(Xe=Ot.duration),this._liveElement.setAttribute("aria-live",ye),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ne=>this._currentResolve=Ne)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Lt,"number"==typeof Xe&&(this._previousTimeout=setTimeout(()=>this.clear(),Xe)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Lt="cdk-live-announcer-element",wt=this._document.getElementsByClassName(Lt),Ot=this._document.createElement("div");for(let ye=0;ye{class le{constructor(Lt,wt,Ot,ye,Xe){this._ngZone=Lt,this._platform=wt,this._inputModalityDetector=Ot,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 T.xQ,this._rootNodeFocusAndBlurListener=Ne=>{for(let he=(0,b.sA)(Ne);he;he=he.parentElement)"focus"===Ne.type?this._onFocus(Ne,he):this._onBlur(Ne,he)},this._document=ye,this._detectionMode=Xe?.detectionMode||0}monitor(Lt,wt=!1){const Ot=(0,lt.fI)(Lt);if(!this._platform.isBrowser||1!==Ot.nodeType)return(0,x.of)(null);const ye=(0,b.kV)(Ot)||this._getDocument(),Xe=this._elementInfo.get(Ot);if(Xe)return wt&&(Xe.checkChildren=!0),Xe.subject;const Ne={checkChildren:wt,subject:new T.xQ,rootNode:ye};return this._elementInfo.set(Ot,Ne),this._registerGlobalListeners(Ne),Ne.subject}stopMonitoring(Lt){const wt=(0,lt.fI)(Lt),Ot=this._elementInfo.get(wt);Ot&&(Ot.subject.complete(),this._setClasses(wt),this._elementInfo.delete(wt),this._removeGlobalListeners(Ot))}focusVia(Lt,wt,Ot){const ye=(0,lt.fI)(Lt);ye===this._getDocument().activeElement?this._getClosestElementsInfo(ye).forEach(([Ne,Tn])=>this._originChanged(Ne,wt,Tn)):(this._setOrigin(wt),"function"==typeof ye.focus&&ye.focus(Ot))}ngOnDestroy(){this._elementInfo.forEach((Lt,wt)=>this.stopMonitoring(wt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Lt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Lt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Lt&&this._isLastInteractionFromInputLabel(Lt)?"mouse":"program"}_shouldBeAttributedToTouch(Lt){return 1===this._detectionMode||!!Lt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Lt,wt){Lt.classList.toggle("cdk-focused",!!wt),Lt.classList.toggle("cdk-touch-focused","touch"===wt),Lt.classList.toggle("cdk-keyboard-focused","keyboard"===wt),Lt.classList.toggle("cdk-mouse-focused","mouse"===wt),Lt.classList.toggle("cdk-program-focused","program"===wt)}_setOrigin(Lt,wt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Lt,this._originFromTouchInteraction="touch"===Lt&&wt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Lt,wt){const Ot=this._elementInfo.get(wt),ye=(0,b.sA)(Lt);!Ot||!Ot.checkChildren&&wt!==ye||this._originChanged(wt,this._getFocusOrigin(ye),Ot)}_onBlur(Lt,wt){const Ot=this._elementInfo.get(wt);!Ot||Ot.checkChildren&&Lt.relatedTarget instanceof Node&&wt.contains(Lt.relatedTarget)||(this._setClasses(wt),this._emitOrigin(Ot,null))}_emitOrigin(Lt,wt){Lt.subject.observers.length&&this._ngZone.run(()=>Lt.subject.next(wt))}_registerGlobalListeners(Lt){if(!this._platform.isBrowser)return;const wt=Lt.rootNode,Ot=this._rootNodeFocusListenerCount.get(wt)||0;Ot||this._ngZone.runOutsideAngular(()=>{wt.addEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.addEventListener("blur",this._rootNodeFocusAndBlurListener,fi)}),this._rootNodeFocusListenerCount.set(wt,Ot+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ot.R)(this._stopInputModalityDetector)).subscribe(ye=>{this._setOrigin(ye,!0)}))}_removeGlobalListeners(Lt){const wt=Lt.rootNode;if(this._rootNodeFocusListenerCount.has(wt)){const Ot=this._rootNodeFocusListenerCount.get(wt);Ot>1?this._rootNodeFocusListenerCount.set(wt,Ot-1):(wt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fi),this._rootNodeFocusListenerCount.delete(wt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Lt,wt,Ot){this._setClasses(Lt,wt),this._emitOrigin(Ot,wt),this._lastFocusOrigin=wt}_getClosestElementsInfo(Lt){const wt=[];return this._elementInfo.forEach((Ot,ye)=>{(ye===Lt||Ot.checkChildren&&ye.contains(Lt))&&wt.push([ye,Ot])}),wt}_isLastInteractionFromInputLabel(Lt){const{_mostRecentTarget:wt,mostRecentModality:Ot}=this._inputModalityDetector;if("mouse"!==Ot||!wt||wt===Lt||"INPUT"!==Lt.nodeName&&"TEXTAREA"!==Lt.nodeName||Lt.disabled)return!1;const ye=Lt.labels;if(ye)for(let Xe=0;Xe{class le{constructor(Lt,wt){this._elementRef=Lt,this._focusMonitor=wt,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Lt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Lt,1===Lt.nodeType&&Lt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(wt=>{this._focusOrigin=wt,this.cdkFocusChange.emit(wt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(Bn))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),le})();const Ye="cdk-high-contrast-black-on-white",fn="cdk-high-contrast-white-on-black",ze="cdk-high-contrast-active";let We=(()=>{class le{constructor(Lt,wt){this._platform=Lt,this._document=wt,this._breakpointSubscription=(0,p.f3M)(Dt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Lt=this._document.createElement("div");Lt.style.backgroundColor="rgb(1,2,3)",Lt.style.position="absolute",this._document.body.appendChild(Lt);const wt=this._document.defaultView||window,Ot=wt&&wt.getComputedStyle?wt.getComputedStyle(Lt):null,ye=(Ot&&Ot.backgroundColor||"").replace(/ /g,"");switch(Lt.remove(),ye){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Lt=this._document.body.classList;Lt.remove(ze,Ye,fn),this._hasCheckedHighContrastMode=!0;const wt=this.getHighContrastMode();1===wt?Lt.add(ze,Ye):2===wt&&Lt.add(ze,fn)}}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(b.t4),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),en=(()=>{class le{constructor(Lt){Lt._applyBodyHighContrastModeCssClasses()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(We))},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({imports:[vt.Q8]}),le})()},40445:(at,et,v)=>{"use strict";v.d(et,{Is:()=>x,vT:()=>k});var d=v(94650),p=v(36895);const b=new d.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,d.f3M)(p.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class D{constructor(F){if(this.value="ltr",this.change=new d.vpe,F){const J=F.documentElement?F.documentElement.dir:null;this.value=function A(D){const P=D?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((F.body?F.body.dir:null)||J||"ltr")}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(F){return new(F||D)(d.LFG(b,8))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),k=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({}),D})()},64425:(at,et,v)=>{"use strict";v.d(et,{TU:()=>T});var d=v(36895),p=v(94650);class b{constructor(k,D){this._document=D;const P=this._textarea=this._document.createElement("textarea"),F=P.style;F.position="fixed",F.top=F.opacity="0",F.left="-999em",P.setAttribute("aria-hidden","true"),P.value=k,P.readOnly=!0,this._document.body.appendChild(P)}copy(){const k=this._textarea;let D=!1;try{if(k){const P=this._document.activeElement;k.select(),k.setSelectionRange(0,k.value.length),D=this._document.execCommand("copy"),P&&P.focus()}}catch{}return D}destroy(){const k=this._textarea;k&&(k.remove(),this._textarea=void 0)}}let T=(()=>{class U{constructor(D){this._document=D}copy(D){const P=this.beginCopy(D),F=P.copy();return P.destroy(),F}beginCopy(D){return new b(D,this._document)}}return U.\u0275fac=function(D){return new(D||U)(p.LFG(d.K0))},U.\u0275prov=p.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},21281:(at,et,v)=>{"use strict";v.d(et,{Eq:()=>t,HM:()=>A,Ig:()=>p,du:()=>U,fI:()=>x,su:()=>b,t6:()=>T});var d=v(94650);function p(k){return null!=k&&"false"!=`${k}`}function b(k,D=0){return T(k)?Number(k):D}function T(k){return!isNaN(parseFloat(k))&&!isNaN(Number(k))}function t(k){return Array.isArray(k)?k:[k]}function A(k){return null==k?"":"string"==typeof k?k:`${k}px`}function x(k){return k instanceof d.SBq?k.nativeElement:k}function U(k,D=/\s+/){const P=[];if(null!=k){const F=Array.isArray(k)?k:`${k}`.split(D);for(const z of F){const J=`${z}`.trim();J&&P.push(J)}}return P}},95017:(at,et,v)=>{"use strict";v.d(et,{A8:()=>P,Ov:()=>k,Z9:()=>t,eX:()=>U,k:()=>F,o2:()=>T,yy:()=>x});var d=v(71762),p=v(8929),b=v(94650);class T{}function t(z){return z&&"function"==typeof z.connect&&!(z instanceof d.c)}class x{applyChanges(J,K,ot,lt,vt){J.forEachOperation((Dt,Pt,zt)=>{let Vt,it;if(null==Dt.previousIndex){const Tt=ot(Dt,Pt,zt);Vt=K.createEmbeddedView(Tt.templateRef,Tt.context,Tt.index),it=1}else null==zt?(K.remove(Pt),it=3):(Vt=K.get(Pt),K.move(Vt,zt),it=2);vt&&vt({context:Vt?.context,operation:it,record:Dt})})}detach(){}}class U{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(J,K,ot,lt,vt){J.forEachOperation((Dt,Pt,zt)=>{let Vt,it;null==Dt.previousIndex?(Vt=this._insertView(()=>ot(Dt,Pt,zt),zt,K,lt(Dt)),it=Vt?1:0):null==zt?(this._detachAndCacheView(Pt,K),it=3):(Vt=this._moveView(Pt,zt,K,lt(Dt)),it=2),vt&&vt({context:Vt?.context,operation:it,record:Dt})})}detach(){for(const J of this._viewCache)J.destroy();this._viewCache=[]}_insertView(J,K,ot,lt){const vt=this._insertViewFromCache(K,ot);if(vt)return void(vt.context.$implicit=lt);const Dt=J();return ot.createEmbeddedView(Dt.templateRef,Dt.context,Dt.index)}_detachAndCacheView(J,K){const ot=K.detach(J);this._maybeCacheView(ot,K)}_moveView(J,K,ot,lt){const vt=ot.get(J);return ot.move(vt,K),vt.context.$implicit=lt,vt}_maybeCacheView(J,K){if(this._viewCache.lengththis._markSelected(vt)):this._markSelected(K[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...J){this._verifyValueAssignment(J),J.forEach(ot=>this._markSelected(ot));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}deselect(...J){this._verifyValueAssignment(J),J.forEach(ot=>this._unmarkSelected(ot));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}setSelection(...J){this._verifyValueAssignment(J);const K=this.selected,ot=new Set(J);J.forEach(vt=>this._markSelected(vt)),K.filter(vt=>!ot.has(vt)).forEach(vt=>this._unmarkSelected(vt));const lt=this._hasQueuedChanges();return this._emitChangeEvent(),lt}toggle(J){return this.isSelected(J)?this.deselect(J):this.select(J)}clear(J=!0){this._unmarkAll();const K=this._hasQueuedChanges();return J&&this._emitChangeEvent(),K}isSelected(J){if(this.compareWith){for(const K of this._selection)if(this.compareWith(K,J))return!0;return!1}return this._selection.has(J)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(J){this._multiple&&this.selected&&this._selected.sort(J)}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(J){this.isSelected(J)||(this._multiple||this._unmarkAll(),this.isSelected(J)||this._selection.add(J),this._emitChanges&&this._selectedToEmit.push(J))}_unmarkSelected(J){this.isSelected(J)&&(this._selection.delete(J),this._emitChanges&&this._deselectedToEmit.push(J))}_unmarkAll(){this.isEmpty()||this._selection.forEach(J=>this._unmarkSelected(J))}_verifyValueAssignment(J){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let P=(()=>{class z{constructor(){this._listeners=[]}notify(K,ot){for(let lt of this._listeners)lt(K,ot)}listen(K){return this._listeners.push(K),()=>{this._listeners=this._listeners.filter(ot=>K!==ot)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(K){return new(K||z)},z.\u0275prov=b.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const F=new b.OlP("_ViewRepeater")},73555:(at,et,v)=>{"use strict";v.d(et,{Wj:()=>fi,Zt:()=>le,_t:()=>je,bA:()=>Ae});var d=v(94650),p=v(36895),b=v(67376),T=v(83353),t=v(21281),A=v(12687),x=v(8929),U=v(42654),k=v(61715),D=v(90352),P=v(56498),F=v(36787),z=v(7625),J=v(1059),K=v(24850),ot=v(72986),lt=v(22868),vt=v(87545),Dt=v(40445);function Pt(Lt,wt,Ot){for(let ye in wt)if(wt.hasOwnProperty(ye)){const Xe=wt[ye];Xe?Lt.setProperty(ye,Xe,Ot?.has(ye)?"important":""):Lt.removeProperty(ye)}return Lt}function zt(Lt,wt){const Ot=wt?"":"none";Pt(Lt.style,{"touch-action":wt?"":"none","-webkit-user-drag":wt?"":"none","-webkit-tap-highlight-color":wt?"":"transparent","user-select":Ot,"-ms-user-select":Ot,"-webkit-user-select":Ot,"-moz-user-select":Ot})}function Vt(Lt,wt,Ot){Pt(Lt.style,{position:wt?"":"fixed",top:wt?"":"0",opacity:wt?"":"0",left:wt?"":"-999em"},Ot)}function it(Lt,wt){return wt&&"none"!=wt?Lt+" "+wt:Lt}function Tt(Lt){const wt=Lt.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Lt)*wt}function ft(Lt,wt){return Lt.getPropertyValue(wt).split(",").map(ye=>ye.trim())}function Et(Lt){const wt=Lt.getBoundingClientRect();return{top:wt.top,right:wt.right,bottom:wt.bottom,left:wt.left,width:wt.width,height:wt.height,x:wt.x,y:wt.y}}function Bt(Lt,wt,Ot){const{top:ye,bottom:Xe,left:Ne,right:Tn}=Lt;return Ot>=ye&&Ot<=Xe&&wt>=Ne&&wt<=Tn}function Ft(Lt,wt,Ot){Lt.top+=wt,Lt.bottom=Lt.top+Lt.height,Lt.left+=Ot,Lt.right=Lt.left+Lt.width}function se(Lt,wt,Ot,ye){const{top:Xe,right:Ne,bottom:Tn,left:he,width:Re,height:En}=Lt,gi=Re*wt,go=En*wt;return ye>Xe-go&&yehe-gi&&Ot{this.positions.set(Ot,{scrollPosition:{top:Ot.scrollTop,left:Ot.scrollLeft},clientRect:Et(Ot)})})}handleScroll(wt){const Ot=(0,T.sA)(wt),ye=this.positions.get(Ot);if(!ye)return null;const Xe=ye.scrollPosition;let Ne,Tn;if(Ot===this._document){const En=this.getViewportScrollPosition();Ne=En.top,Tn=En.left}else Ne=Ot.scrollTop,Tn=Ot.scrollLeft;const he=Xe.top-Ne,Re=Xe.left-Tn;return this.positions.forEach((En,gi)=>{En.clientRect&&Ot!==gi&&Ot.contains(gi)&&Ft(En.clientRect,he,Re)}),Xe.top=Ne,Xe.left=Tn,{top:he,left:Re}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ve(Lt){const wt=Lt.cloneNode(!0),Ot=wt.querySelectorAll("[id]"),ye=Lt.nodeName.toLowerCase();wt.removeAttribute("id");for(let Xe=0;Xe{if(this.beforeStarted.next(),this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&this._initializeDragSequence(Re,he)}else this.disabled||this._initializeDragSequence(this._rootElement,he)},this._pointerMove=he=>{const Re=this._getPointerPositionOnPage(he);if(!this._hasStartedDragging){if(Math.abs(Re.x-this._pickupPositionOnPage.x)+Math.abs(Re.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const mn=Date.now()>=this._dragStartTime+this._getDragStartDelay(he),An=this._dropContainer;if(!mn)return void this._endDragSequence(he);(!An||!An.isDragging()&&!An.isReceiving())&&(he.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(he)))}return}he.preventDefault();const En=this._getConstrainedPointerPosition(Re);if(this._hasMoved=!0,this._lastKnownPointerPosition=Re,this._updatePointerDirectionDelta(En),this._dropContainer)this._updateActiveDropContainer(En,Re);else{const gi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,go=this._activeTransform;go.x=En.x-gi.x+this._passiveTransform.x,go.y=En.y-gi.y+this._passiveTransform.y,this._applyRootElementTransform(go.x,go.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:En,event:he,distance:this._getDragDistance(En),delta:this._pointerDirectionDelta})})},this._pointerUp=he=>{this._endDragSequence(he)},this._nativeDragStart=he=>{if(this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&he.preventDefault()}else this.disabled||he.preventDefault()},this.withRootElement(wt).withParent(Ot.parentDragRef||null),this._parentPositions=new jt(ye),Tn.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(wt){const Ot=(0,t.Ig)(wt);Ot!==this._disabled&&(this._disabled=Ot,this._toggleNativeDragInteractions(),this._handles.forEach(ye=>zt(ye,Ot)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(wt){this._handles=wt.map(ye=>(0,t.fI)(ye)),this._handles.forEach(ye=>zt(ye,this.disabled)),this._toggleNativeDragInteractions();const Ot=new Set;return this._disabledHandles.forEach(ye=>{this._handles.indexOf(ye)>-1&&Ot.add(ye)}),this._disabledHandles=Ot,this}withPreviewTemplate(wt){return this._previewTemplate=wt,this}withPlaceholderTemplate(wt){return this._placeholderTemplate=wt,this}withRootElement(wt){const Ot=(0,t.fI)(wt);return Ot!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Ot.addEventListener("mousedown",this._pointerDown,Te),Ot.addEventListener("touchstart",this._pointerDown,Xt),Ot.addEventListener("dragstart",this._nativeDragStart,Te)}),this._initialTransform=void 0,this._rootElement=Ot),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(wt){return this._boundaryElement=wt?(0,t.fI)(wt):null,this._resizeSubscription.unsubscribe(),wt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(wt){return this._parentDragRef=wt,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(wt){!this._disabledHandles.has(wt)&&this._handles.indexOf(wt)>-1&&(this._disabledHandles.add(wt),zt(wt,!0))}enableHandle(wt){this._disabledHandles.has(wt)&&(this._disabledHandles.delete(wt),zt(wt,this.disabled))}withDirection(wt){return this._direction=wt,this}_withDropContainer(wt){this._dropContainer=wt}getFreeDragPosition(){const wt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:wt.x,y:wt.y}}setFreeDragPosition(wt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=wt.x,this._passiveTransform.y=wt.y,this._dropContainer||this._applyRootElementTransform(wt.x,wt.y),this}withPreviewContainer(wt){return this._previewContainer=wt,this}_sortFromLastPointerPosition(){const wt=this._lastKnownPointerPosition;wt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(wt),wt)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(wt){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:wt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(wt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Ot=this._getPointerPositionOnPage(wt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Ot),dropPoint:Ot,event:wt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(wt){De(wt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Ot=this._dropContainer;if(Ot){const ye=this._rootElement,Xe=ye.parentNode,Ne=this._placeholder=this._createPlaceholderElement(),Tn=this._anchor=this._anchor||this._document.createComment(""),he=this._getShadowRoot();Xe.insertBefore(Tn,ye),this._initialTransform=ye.style.transform||"",this._preview=this._createPreviewElement(),Vt(ye,!1,Kt),this._document.body.appendChild(Xe.replaceChild(Ne,ye)),this._getPreviewInsertionPoint(Xe,he).appendChild(this._preview),this.started.next({source:this,event:wt}),Ot.start(),this._initialContainer=Ot,this._initialIndex=Ot.getItemIndex(this)}else this.started.next({source:this,event:wt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Ot?Ot.getScrollableParents():[])}_initializeDragSequence(wt,Ot){this._parentDragRef&&Ot.stopPropagation();const ye=this.isDragging(),Xe=De(Ot),Ne=!Xe&&0!==Ot.button,Tn=this._rootElement,he=(0,T.sA)(Ot),Re=!Xe&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),En=Xe?(0,A.yG)(Ot):(0,A.X6)(Ot);if(he&&he.draggable&&"mousedown"===Ot.type&&Ot.preventDefault(),ye||Ne||Re||En)return;if(this._handles.length){const _o=Tn.style;this._rootElementTapHighlight=_o.webkitTapHighlightColor||"",_o.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(_o=>this._updateOnScroll(_o)),this._boundaryElement&&(this._boundaryRect=Et(this._boundaryElement));const gi=this._previewTemplate;this._pickupPositionInElement=gi&&gi.template&&!gi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,wt,Ot);const go=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Ot);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:go.x,y:go.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Ot)}_cleanupDragArtifacts(wt){Vt(this._rootElement,!0,Kt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Ot=this._dropContainer,ye=Ot.getItemIndex(this),Xe=this._getPointerPositionOnPage(wt),Ne=this._getDragDistance(Xe),Tn=Ot._isOverContainer(Xe.x,Xe.y);this.ended.next({source:this,distance:Ne,dropPoint:Xe,event:wt}),this.dropped.next({item:this,currentIndex:ye,previousIndex:this._initialIndex,container:Ot,previousContainer:this._initialContainer,isPointerOverContainer:Tn,distance:Ne,dropPoint:Xe,event:wt}),Ot.drop(this,ye,this._initialIndex,this._initialContainer,Tn,Ne,Xe,wt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:wt,y:Ot},{x:ye,y:Xe}){let Ne=this._initialContainer._getSiblingContainerFromPosition(this,wt,Ot);!Ne&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(wt,Ot)&&(Ne=this._initialContainer),Ne&&Ne!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Ne,this._dropContainer.enter(this,wt,Ot,Ne===this._initialContainer&&Ne.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Ne,currentIndex:Ne.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ye,Xe),this._dropContainer._sortItem(this,wt,Ot,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(wt,Ot):this._applyPreviewTransform(wt-this._pickupPositionInElement.x,Ot-this._pickupPositionInElement.y))}_createPreviewElement(){const wt=this._previewTemplate,Ot=this.previewClass,ye=wt?wt.template:null;let Xe;if(ye&&wt){const Ne=wt.matchSize?this._initialClientRect:null,Tn=wt.viewContainer.createEmbeddedView(ye,wt.context);Tn.detectChanges(),Xe=on(Tn,this._document),this._previewRef=Tn,wt.matchSize?_n(Xe,Ne):Xe.style.transform=Wt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Xe=ve(this._rootElement),_n(Xe,this._initialClientRect),this._initialTransform&&(Xe.style.transform=this._initialTransform);return Pt(Xe.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Kt),zt(Xe,!1),Xe.classList.add("cdk-drag-preview"),Xe.setAttribute("dir",this._direction),Ot&&(Array.isArray(Ot)?Ot.forEach(Ne=>Xe.classList.add(Ne)):Xe.classList.add(Ot)),Xe}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const wt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(wt.left,wt.top);const Ot=function At(Lt){const wt=getComputedStyle(Lt),Ot=ft(wt,"transition-property"),ye=Ot.find(he=>"transform"===he||"all"===he);if(!ye)return 0;const Xe=Ot.indexOf(ye),Ne=ft(wt,"transition-duration"),Tn=ft(wt,"transition-delay");return Tt(Ne[Xe])+Tt(Tn[Xe])}(this._preview);return 0===Ot?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ye=>{const Xe=Tn=>{(!Tn||(0,T.sA)(Tn)===this._preview&&"transform"===Tn.propertyName)&&(this._preview?.removeEventListener("transitionend",Xe),ye(),clearTimeout(Ne))},Ne=setTimeout(Xe,1.5*Ot);this._preview.addEventListener("transitionend",Xe)}))}_createPlaceholderElement(){const wt=this._placeholderTemplate,Ot=wt?wt.template:null;let ye;return Ot?(this._placeholderRef=wt.viewContainer.createEmbeddedView(Ot,wt.context),this._placeholderRef.detectChanges(),ye=on(this._placeholderRef,this._document)):ye=ve(this._rootElement),ye.style.pointerEvents="none",ye.classList.add("cdk-drag-placeholder"),ye}_getPointerPositionInElement(wt,Ot,ye){const Xe=Ot===this._rootElement?null:Ot,Ne=Xe?Xe.getBoundingClientRect():wt,Tn=De(ye)?ye.targetTouches[0]:ye,he=this._getViewportScrollPosition();return{x:Ne.left-wt.left+(Tn.pageX-Ne.left-he.left),y:Ne.top-wt.top+(Tn.pageY-Ne.top-he.top)}}_getPointerPositionOnPage(wt){const Ot=this._getViewportScrollPosition(),ye=De(wt)?wt.touches[0]||wt.changedTouches[0]||{pageX:0,pageY:0}:wt,Xe=ye.pageX-Ot.left,Ne=ye.pageY-Ot.top;if(this._ownerSVGElement){const Tn=this._ownerSVGElement.getScreenCTM();if(Tn){const he=this._ownerSVGElement.createSVGPoint();return he.x=Xe,he.y=Ne,he.matrixTransform(Tn.inverse())}}return{x:Xe,y:Ne}}_getConstrainedPointerPosition(wt){const Ot=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ye,y:Xe}=this.constrainPosition?this.constrainPosition(wt,this,this._initialClientRect,this._pickupPositionInElement):wt;if("x"===this.lockAxis||"x"===Ot?Xe=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Ot)&&(ye=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Ne,y:Tn}=this._pickupPositionInElement,he=this._boundaryRect,{width:Re,height:En}=this._getPreviewRect(),gi=he.top+Tn,go=he.bottom-(En-Tn);ye=re(ye,he.left+Ne,he.right-(Re-Ne)),Xe=re(Xe,gi,go)}return{x:ye,y:Xe}}_updatePointerDirectionDelta(wt){const{x:Ot,y:ye}=wt,Xe=this._pointerDirectionDelta,Ne=this._pointerPositionAtLastDirectionChange,Tn=Math.abs(Ot-Ne.x),he=Math.abs(ye-Ne.y);return Tn>this._config.pointerDirectionChangeThreshold&&(Xe.x=Ot>Ne.x?1:-1,Ne.x=Ot),he>this._config.pointerDirectionChangeThreshold&&(Xe.y=ye>Ne.y?1:-1,Ne.y=ye),Xe}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const wt=this._handles.length>0||!this.isDragging();wt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=wt,zt(this._rootElement,wt))}_removeRootElementListeners(wt){wt.removeEventListener("mousedown",this._pointerDown,Te),wt.removeEventListener("touchstart",this._pointerDown,Xt),wt.removeEventListener("dragstart",this._nativeDragStart,Te)}_applyRootElementTransform(wt,Ot){const ye=Wt(wt,Ot),Xe=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Xe.transform&&"none"!=Xe.transform?Xe.transform:""),Xe.transform=it(ye,this._initialTransform)}_applyPreviewTransform(wt,Ot){const ye=this._previewTemplate?.template?void 0:this._initialTransform,Xe=Wt(wt,Ot);this._preview.style.transform=it(Xe,ye)}_getDragDistance(wt){const Ot=this._pickupPositionOnPage;return Ot?{x:wt.x-Ot.x,y:wt.y-Ot.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:wt,y:Ot}=this._passiveTransform;if(0===wt&&0===Ot||this.isDragging()||!this._boundaryElement)return;const ye=this._rootElement.getBoundingClientRect(),Xe=this._boundaryElement.getBoundingClientRect();if(0===Xe.width&&0===Xe.height||0===ye.width&&0===ye.height)return;const Ne=Xe.left-ye.left,Tn=ye.right-Xe.right,he=Xe.top-ye.top,Re=ye.bottom-Xe.bottom;Xe.width>ye.width?(Ne>0&&(wt+=Ne),Tn>0&&(wt-=Tn)):wt=0,Xe.height>ye.height?(he>0&&(Ot+=he),Re>0&&(Ot-=Re)):Ot=0,(wt!==this._passiveTransform.x||Ot!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Ot,x:wt})}_getDragStartDelay(wt){const Ot=this.dragStartDelay;return"number"==typeof Ot?Ot:De(wt)?Ot.touch:Ot?Ot.mouse:0}_updateOnScroll(wt){const Ot=this._parentPositions.handleScroll(wt);if(Ot){const ye=(0,T.sA)(wt);this._boundaryRect&&ye!==this._boundaryElement&&ye.contains(this._boundaryElement)&&Ft(this._boundaryRect,Ot.top,Ot.left),this._pickupPositionOnPage.x+=Ot.left,this._pickupPositionOnPage.y+=Ot.top,this._dropContainer||(this._activeTransform.x-=Ot.left,this._activeTransform.y-=Ot.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,T.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(wt,Ot){const ye=this._previewContainer||"global";if("parent"===ye)return wt;if("global"===ye){const Xe=this._document;return Ot||Xe.fullscreenElement||Xe.webkitFullscreenElement||Xe.mozFullScreenElement||Xe.msFullscreenElement||Xe.body}return(0,t.fI)(ye)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(wt){return this._handles.find(Ot=>wt.target&&(wt.target===Ot||Ot.contains(wt.target)))}}function Wt(Lt,wt){return`translate3d(${Math.round(Lt)}px, ${Math.round(wt)}px, 0)`}function re(Lt,wt,Ot){return Math.max(wt,Math.min(Ot,Lt))}function De(Lt){return"t"===Lt.type[0]}function on(Lt,wt){const Ot=Lt.rootNodes;if(1===Ot.length&&Ot[0].nodeType===wt.ELEMENT_NODE)return Ot[0];const ye=wt.createElement("div");return Ot.forEach(Xe=>ye.appendChild(Xe)),ye}function _n(Lt,wt){Lt.style.width=`${wt.width}px`,Lt.style.height=`${wt.height}px`,Lt.style.transform=Wt(wt.left,wt.top)}function Ae(Lt,wt,Ot){const ye=un(wt,Lt.length-1),Xe=un(Ot,Lt.length-1);if(ye===Xe)return;const Ne=Lt[ye],Tn=Xe0)return null;const he="horizontal"===this.orientation,Re=Ne.findIndex(ei=>ei.drag===wt),En=Ne[Tn],go=En.clientRect,_o=Re>Tn?1:-1,mn=this._getItemOffsetPx(Ne[Re].clientRect,go,_o),An=this._getSiblingOffsetPx(Re,Ne,_o),sn=Ne.slice();return Ae(Ne,Re,Tn),Ne.forEach((ei,Zi)=>{if(sn[Zi]===ei)return;const bo=ei.drag===wt,No=bo?mn:An,ua=bo?wt.getPlaceholderElement():ei.drag.getRootElement();ei.offset+=No,he?(ua.style.transform=it(`translate3d(${Math.round(ei.offset)}px, 0, 0)`,ei.initialTransform),Ft(ei.clientRect,0,No)):(ua.style.transform=it(`translate3d(0, ${Math.round(ei.offset)}px, 0)`,ei.initialTransform),Ft(ei.clientRect,No,0))}),this._previousSwap.overlaps=Bt(go,Ot,ye),this._previousSwap.drag=En.drag,this._previousSwap.delta=he?Xe.x:Xe.y,{previousIndex:Re,currentIndex:Tn}}enter(wt,Ot,ye,Xe){const Ne=null==Xe||Xe<0?this._getItemIndexFromPointerPosition(wt,Ot,ye):Xe,Tn=this._activeDraggables,he=Tn.indexOf(wt),Re=wt.getPlaceholderElement();let En=Tn[Ne];if(En===wt&&(En=Tn[Ne+1]),!En&&(null==Ne||-1===Ne||Ne-1&&Tn.splice(he,1),En&&!this._dragDropRegistry.isDragging(En)){const gi=En.getRootElement();gi.parentElement.insertBefore(Re,gi),Tn.splice(Ne,0,wt)}else(0,t.fI)(this._element).appendChild(Re),Tn.push(wt);Re.style.transform="",this._cacheItemPositions()}withItems(wt){this._activeDraggables=wt.slice(),this._cacheItemPositions()}withSortPredicate(wt){this._sortPredicate=wt}reset(){this._activeDraggables.forEach(wt=>{const Ot=wt.getRootElement();if(Ot){const ye=this._itemPositions.find(Xe=>Xe.drag===wt)?.initialTransform;Ot.style.transform=ye||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(wt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ye=>ye.drag===wt)}updateOnScroll(wt,Ot){this._itemPositions.forEach(({clientRect:ye})=>{Ft(ye,wt,Ot)}),this._itemPositions.forEach(({drag:ye})=>{this._dragDropRegistry.isDragging(ye)&&ye._sortFromLastPointerPosition()})}_cacheItemPositions(){const wt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Ot=>{const ye=Ot.getVisibleElement();return{drag:Ot,offset:0,initialTransform:ye.style.transform||"",clientRect:Et(ye)}}).sort((Ot,ye)=>wt?Ot.clientRect.left-ye.clientRect.left:Ot.clientRect.top-ye.clientRect.top)}_getItemOffsetPx(wt,Ot,ye){const Xe="horizontal"===this.orientation;let Ne=Xe?Ot.left-wt.left:Ot.top-wt.top;return-1===ye&&(Ne+=Xe?Ot.width-wt.width:Ot.height-wt.height),Ne}_getSiblingOffsetPx(wt,Ot,ye){const Xe="horizontal"===this.orientation,Ne=Ot[wt].clientRect,Tn=Ot[wt+-1*ye];let he=Ne[Xe?"width":"height"]*ye;if(Tn){const Re=Xe?"left":"top",En=Xe?"right":"bottom";-1===ye?he-=Tn.clientRect[Re]-Ne[En]:he+=Ne[Re]-Tn.clientRect[En]}return he}_shouldEnterAsFirstChild(wt,Ot){if(!this._activeDraggables.length)return!1;const ye=this._itemPositions,Xe="horizontal"===this.orientation;if(ye[0].drag!==this._activeDraggables[0]){const Tn=ye[ye.length-1].clientRect;return Xe?wt>=Tn.right:Ot>=Tn.bottom}{const Tn=ye[0].clientRect;return Xe?wt<=Tn.left:Ot<=Tn.top}}_getItemIndexFromPointerPosition(wt,Ot,ye,Xe){const Ne="horizontal"===this.orientation,Tn=this._itemPositions.findIndex(({drag:he,clientRect:Re})=>{if(he===wt)return!1;if(Xe){const En=Ne?Xe.x:Xe.y;if(he===this._previousSwap.drag&&this._previousSwap.overlaps&&En===this._previousSwap.delta)return!1}return Ne?Ot>=Math.floor(Re.left)&&Ot=Math.floor(Re.top)&&ye!0,this.sortPredicate=()=>!0,this.beforeStarted=new x.xQ,this.entered=new x.xQ,this.exited=new x.xQ,this.dropped=new x.xQ,this.sorted=new x.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,D.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Tn=this._scrollNode,he=this.autoScrollStep;1===this._verticalScrollDirection?Tn.scrollBy(0,-he):2===this._verticalScrollDirection&&Tn.scrollBy(0,he),1===this._horizontalScrollDirection?Tn.scrollBy(-he,0):2===this._horizontalScrollDirection&&Tn.scrollBy(he,0)})},this.element=(0,t.fI)(wt),this._document=ye,this.withScrollableParents([this.element]),Ot.registerDropContainer(this),this._parentPositions=new jt(ye),this._sortStrategy=new Un(this.element,Ot),this._sortStrategy.withSortPredicate((Tn,he)=>this.sortPredicate(Tn,he,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(wt,Ot,ye,Xe){this._draggingStarted(),null==Xe&&this.sortingDisabled&&(Xe=this._draggables.indexOf(wt)),this._sortStrategy.enter(wt,Ot,ye,Xe),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:wt,container:this,currentIndex:this.getItemIndex(wt)})}exit(wt){this._reset(),this.exited.next({item:wt,container:this})}drop(wt,Ot,ye,Xe,Ne,Tn,he,Re={}){this._reset(),this.dropped.next({item:wt,currentIndex:Ot,previousIndex:ye,container:this,previousContainer:Xe,isPointerOverContainer:Ne,distance:Tn,dropPoint:he,event:Re})}withItems(wt){const Ot=this._draggables;return this._draggables=wt,wt.forEach(ye=>ye._withDropContainer(this)),this.isDragging()&&(Ot.filter(Xe=>Xe.isDragging()).every(Xe=>-1===wt.indexOf(Xe))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(wt){return this._sortStrategy.direction=wt,this}connectedTo(wt){return this._siblings=wt.slice(),this}withOrientation(wt){return this._sortStrategy.orientation=wt,this}withScrollableParents(wt){const Ot=(0,t.fI)(this.element);return this._scrollableElements=-1===wt.indexOf(Ot)?[Ot,...wt]:wt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(wt){return this._isDragging?this._sortStrategy.getItemIndex(wt):this._draggables.indexOf(wt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(wt,Ot,ye,Xe){if(this.sortingDisabled||!this._clientRect||!se(this._clientRect,.05,Ot,ye))return;const Ne=this._sortStrategy.sort(wt,Ot,ye,Xe);Ne&&this.sorted.next({previousIndex:Ne.previousIndex,currentIndex:Ne.currentIndex,container:this,item:wt})}_startScrollingIfNecessary(wt,Ot){if(this.autoScrollDisabled)return;let ye,Xe=0,Ne=0;if(this._parentPositions.positions.forEach((Tn,he)=>{he===this._document||!Tn.clientRect||ye||se(Tn.clientRect,.05,wt,Ot)&&([Xe,Ne]=function ct(Lt,wt,Ot,ye){const Xe=Ke(wt,ye),Ne=ne(wt,Ot);let Tn=0,he=0;if(Xe){const Re=Lt.scrollTop;1===Xe?Re>0&&(Tn=1):Lt.scrollHeight-Re>Lt.clientHeight&&(Tn=2)}if(Ne){const Re=Lt.scrollLeft;1===Ne?Re>0&&(he=1):Lt.scrollWidth-Re>Lt.clientWidth&&(he=2)}return[Tn,he]}(he,Tn.clientRect,wt,Ot),(Xe||Ne)&&(ye=he))}),!Xe&&!Ne){const{width:Tn,height:he}=this._viewportRuler.getViewportSize(),Re={width:Tn,height:he,top:0,right:Tn,bottom:he,left:0};Xe=Ke(Re,Ot),Ne=ne(Re,wt),ye=window}ye&&(Xe!==this._verticalScrollDirection||Ne!==this._horizontalScrollDirection||ye!==this._scrollNode)&&(this._verticalScrollDirection=Xe,this._horizontalScrollDirection=Ne,this._scrollNode=ye,(Xe||Ne)&&ye?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const wt=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=wt.msScrollSnapType||wt.scrollSnapType||"",wt.scrollSnapType=wt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const wt=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(wt).clientRect}_reset(){this._isDragging=!1;const wt=(0,t.fI)(this.element).style;wt.scrollSnapType=wt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Ot=>Ot._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(wt,Ot){return null!=this._clientRect&&Bt(this._clientRect,wt,Ot)}_getSiblingContainerFromPosition(wt,Ot,ye){return this._siblings.find(Xe=>Xe._canReceive(wt,Ot,ye))}_canReceive(wt,Ot,ye){if(!this._clientRect||!Bt(this._clientRect,Ot,ye)||!this.enterPredicate(wt,this))return!1;const Xe=this._getShadowRoot().elementFromPoint(Ot,ye);if(!Xe)return!1;const Ne=(0,t.fI)(this.element);return Xe===Ne||Ne.contains(Xe)}_startReceiving(wt,Ot){const ye=this._activeSiblings;!ye.has(wt)&&Ot.every(Xe=>this.enterPredicate(Xe,this)||this._draggables.indexOf(Xe)>-1)&&(ye.add(wt),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(wt){this._activeSiblings.delete(wt),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(wt=>{if(this.isDragging()){const Ot=this._parentPositions.handleScroll(wt);Ot&&this._sortStrategy.updateOnScroll(Ot.top,Ot.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const wt=(0,T.kV)((0,t.fI)(this.element));this._cachedShadowRoot=wt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const wt=this._sortStrategy.getActiveItemsSnapshot().filter(Ot=>Ot.isDragging());this._siblings.forEach(Ot=>Ot._startReceiving(this,wt))}}function Ke(Lt,wt){const{top:Ot,bottom:ye,height:Xe}=Lt,Ne=.05*Xe;return wt>=Ot-Ne&&wt<=Ot+Ne?1:wt>=ye-Ne&&wt<=ye+Ne?2:0}function ne(Lt,wt){const{left:Ot,right:ye,width:Xe}=Lt,Ne=.05*Xe;return wt>=Ot-Ne&&wt<=Ot+Ne?1:wt>=ye-Ne&&wt<=ye+Ne?2:0}const nt=(0,T.i$)({passive:!1,capture:!0});let kt=(()=>{class Lt{constructor(Ot,ye){this._ngZone=Ot,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Xe=>Xe.isDragging(),this.pointerMove=new x.xQ,this.pointerUp=new x.xQ,this.scroll=new x.xQ,this._preventDefaultWhileDragging=Xe=>{this._activeDragInstances.length>0&&Xe.preventDefault()},this._persistentTouchmoveListener=Xe=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Xe.preventDefault(),this.pointerMove.next(Xe))},this._document=ye}registerDropContainer(Ot){this._dropInstances.has(Ot)||this._dropInstances.add(Ot)}registerDragItem(Ot){this._dragInstances.add(Ot),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,nt)})}removeDropContainer(Ot){this._dropInstances.delete(Ot)}removeDragItem(Ot){this._dragInstances.delete(Ot),this.stopDragging(Ot),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,nt)}startDragging(Ot,ye){if(!(this._activeDragInstances.indexOf(Ot)>-1)&&(this._activeDragInstances.push(Ot),1===this._activeDragInstances.length)){const Xe=ye.type.startsWith("touch");this._globalListeners.set(Xe?"touchend":"mouseup",{handler:Ne=>this.pointerUp.next(Ne),options:!0}).set("scroll",{handler:Ne=>this.scroll.next(Ne),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:nt}),Xe||this._globalListeners.set("mousemove",{handler:Ne=>this.pointerMove.next(Ne),options:nt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Ne,Tn)=>{this._document.addEventListener(Tn,Ne.handler,Ne.options)})})}}stopDragging(Ot){const ye=this._activeDragInstances.indexOf(Ot);ye>-1&&(this._activeDragInstances.splice(ye,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Ot){return this._activeDragInstances.indexOf(Ot)>-1}scrolled(Ot){const ye=[this.scroll];return Ot&&Ot!==this._document&&ye.push(new P.y(Xe=>this._ngZone.runOutsideAngular(()=>{const Tn=he=>{this._activeDragInstances.length&&Xe.next(he)};return Ot.addEventListener("scroll",Tn,!0),()=>{Ot.removeEventListener("scroll",Tn,!0)}}))),(0,F.T)(...ye)}ngOnDestroy(){this._dragInstances.forEach(Ot=>this.removeDragItem(Ot)),this._dropInstances.forEach(Ot=>this.removeDropContainer(Ot)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Ot,ye)=>{this._document.removeEventListener(ye,Ot.handler,Ot.options)}),this._globalListeners.clear()}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(d.R0b),d.LFG(p.K0))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Jt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let oe=(()=>{class Lt{constructor(Ot,ye,Xe,Ne){this._document=Ot,this._ngZone=ye,this._viewportRuler=Xe,this._dragDropRegistry=Ne}createDrag(Ot,ye=Jt){return new de(Ot,ye,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Ot){return new si(Ot,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(p.K0),d.LFG(d.R0b),d.LFG(b.rL),d.LFG(kt))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Ce=new d.OlP("CDK_DRAG_PARENT"),Oe=new d.OlP("CdkDropListGroup"),Sn=new d.OlP("CDK_DRAG_CONFIG");let Li=0;const ho=new d.OlP("CdkDropList");let fi=(()=>{class Lt{constructor(Ot,ye,Xe,Ne,Tn,he,Re){this.element=Ot,this._changeDetectorRef=Xe,this._scrollDispatcher=Ne,this._dir=Tn,this._group=he,this._destroyed=new x.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Li++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.sorted=new d.vpe,this._unsortedItems=new Set,this._dropListRef=ye.createDropList(Ot),this._dropListRef.data=this,Re&&this._assignDefaults(Re),this._dropListRef.enterPredicate=(En,gi)=>this.enterPredicate(En.data,gi.data),this._dropListRef.sortPredicate=(En,gi,go)=>this.sortPredicate(En,gi.data,go.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Lt._dropLists.push(this),he&&he._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Ot){this._dropListRef.disabled=this._disabled=(0,t.Ig)(Ot)}addItem(Ot){this._unsortedItems.add(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Ot){this._unsortedItems.delete(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Ot,ye)=>Ot._dragRef.getVisibleElement().compareDocumentPosition(ye._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Ot=Lt._dropLists.indexOf(this);Ot>-1&&Lt._dropLists.splice(Ot,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Ot){this._dir&&this._dir.change.pipe((0,J.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(ye=>Ot.withDirection(ye)),Ot.beforeStarted.subscribe(()=>{const ye=(0,t.Eq)(this.connectedTo).map(Xe=>"string"==typeof Xe?Lt._dropLists.find(Tn=>Tn.id===Xe):Xe);if(this._group&&this._group._items.forEach(Xe=>{-1===ye.indexOf(Xe)&&ye.push(Xe)}),!this._scrollableParentsResolved){const Xe=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Ne=>Ne.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Xe),this._scrollableParentsResolved=!0}Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.sortingDisabled=(0,t.Ig)(this.sortingDisabled),Ot.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),Ot.autoScrollStep=(0,t.su)(this.autoScrollStep,2),Ot.connectedTo(ye.filter(Xe=>Xe&&Xe!==this).map(Xe=>Xe._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Ot){Ot.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(ye=>{this.entered.emit({container:this,item:ye.item.data,currentIndex:ye.currentIndex})}),Ot.exited.subscribe(ye=>{this.exited.emit({container:this,item:ye.item.data}),this._changeDetectorRef.markForCheck()}),Ot.sorted.subscribe(ye=>{this.sorted.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,container:this,item:ye.item.data})}),Ot.dropped.subscribe(ye=>{this.dropped.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,previousContainer:ye.previousContainer.data,container:ye.container.data,item:ye.item.data,isPointerOverContainer:ye.isPointerOverContainer,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Ot){const{lockAxis:ye,draggingDisabled:Xe,sortingDisabled:Ne,listAutoScrollDisabled:Tn,listOrientation:he}=Ot;this.disabled=Xe??!1,this.sortingDisabled=Ne??!1,this.autoScrollDisabled=Tn??!1,this.orientation=he||"vertical",ye&&(this.lockAxis=ye)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Ot=>Ot._dragRef))}}return Lt._dropLists=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(oe),d.Y36(d.sBO),d.Y36(b.mF),d.Y36(Dt.Is,8),d.Y36(Oe,12),d.Y36(Sn,8))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ot,ye){2&Ot&&(d.uIk("id",ye.id),d.ekj("cdk-drop-list-disabled",ye.disabled)("cdk-drop-list-dragging",ye._dropListRef.isDragging())("cdk-drop-list-receiving",ye._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[d._Bn([{provide:Oe,useValue:void 0},{provide:ho,useExisting:Lt}])]}),Lt})();const Bn=new d.OlP("CdkDragHandle"),Ye=new d.OlP("CdkDragPlaceholder"),ze=new d.OlP("CdkDragPreview");let le=(()=>{class Lt{constructor(Ot,ye,Xe,Ne,Tn,he,Re,En,gi,go,_o){this.element=Ot,this.dropContainer=ye,this._ngZone=Ne,this._viewContainerRef=Tn,this._dir=Re,this._changeDetectorRef=gi,this._selfHandle=go,this._parentDrag=_o,this._destroyed=new x.xQ,this.started=new d.vpe,this.released=new d.vpe,this.ended=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.dropped=new d.vpe,this.moved=new P.y(mn=>{const An=this._dragRef.moved.pipe((0,K.U)(sn=>({source:this,pointerPosition:sn.pointerPosition,event:sn.event,delta:sn.delta,distance:sn.distance}))).subscribe(mn);return()=>{An.unsubscribe()}}),this._dragRef=En.createDrag(Ot,{dragStartThreshold:he&&null!=he.dragStartThreshold?he.dragStartThreshold:5,pointerDirectionChangeThreshold:he&&null!=he.pointerDirectionChangeThreshold?he.pointerDirectionChangeThreshold:5,zIndex:he?.zIndex}),this._dragRef.data=this,Lt._dragInstances.push(this),he&&this._assignDefaults(he),ye&&(this._dragRef._withDropContainer(ye._dropListRef),ye.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Ot){this._disabled=(0,t.Ig)(Ot),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(Ot){this._dragRef.setFreeDragPosition(Ot)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ot.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Ot){const ye=Ot.rootElementSelector,Xe=Ot.freeDragPosition;ye&&!ye.firstChange&&this._updateRootElement(),Xe&&!Xe.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Ot=Lt._dragInstances.indexOf(this);Ot>-1&&Lt._dragInstances.splice(Ot,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Ot=this.element.nativeElement;let ye=Ot;this.rootElementSelector&&(ye=void 0!==Ot.closest?Ot.closest(this.rootElementSelector):Ot.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(ye||Ot)}_getBoundaryElement(){const Ot=this.boundaryElement;return Ot?"string"==typeof Ot?this.element.nativeElement.closest(Ot):(0,t.fI)(Ot):null}_syncInputs(Ot){Ot.beforeStarted.subscribe(()=>{if(!Ot.isDragging()){const ye=this._dir,Xe=this.dragStartDelay,Ne=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Tn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.dragStartDelay="object"==typeof Xe&&Xe?Xe:(0,t.su)(Xe),Ot.constrainPosition=this.constrainPosition,Ot.previewClass=this.previewClass,Ot.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Ne).withPreviewTemplate(Tn).withPreviewContainer(this.previewContainer||"global"),ye&&Ot.withDirection(ye.value)}}),Ot.beforeStarted.pipe((0,ot.q)(1)).subscribe(()=>{if(this._parentDrag)return void Ot.withParent(this._parentDrag._dragRef);let ye=this.element.nativeElement.parentElement;for(;ye;){if(ye.classList.contains("cdk-drag")){Ot.withParent(Lt._dragInstances.find(Xe=>Xe.element.nativeElement===ye)?._dragRef||null);break}ye=ye.parentElement}})}_handleEvents(Ot){Ot.started.subscribe(ye=>{this.started.emit({source:this,event:ye.event}),this._changeDetectorRef.markForCheck()}),Ot.released.subscribe(ye=>{this.released.emit({source:this,event:ye.event})}),Ot.ended.subscribe(ye=>{this.ended.emit({source:this,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event}),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(ye=>{this.entered.emit({container:ye.container.data,item:this,currentIndex:ye.currentIndex})}),Ot.exited.subscribe(ye=>{this.exited.emit({container:ye.container.data,item:this})}),Ot.dropped.subscribe(ye=>{this.dropped.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,previousContainer:ye.previousContainer.data,container:ye.container.data,isPointerOverContainer:ye.isPointerOverContainer,item:this,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event})})}_assignDefaults(Ot){const{lockAxis:ye,dragStartDelay:Xe,constrainPosition:Ne,previewClass:Tn,boundaryElement:he,draggingDisabled:Re,rootElementSelector:En,previewContainer:gi}=Ot;this.disabled=Re??!1,this.dragStartDelay=Xe||0,ye&&(this.lockAxis=ye),Ne&&(this.constrainPosition=Ne),Tn&&(this.previewClass=Tn),he&&(this.boundaryElement=he),En&&(this.rootElementSelector=En),gi&&(this.previewContainer=gi)}_setupHandlesListener(){this._handles.changes.pipe((0,J.O)(this._handles),(0,lt.b)(Ot=>{const ye=Ot.filter(Xe=>Xe._parentDrag===this).map(Xe=>Xe.element);this._selfHandle&&this.rootElementSelector&&ye.push(this.element),this._dragRef.withHandles(ye)}),(0,vt.w)(Ot=>(0,F.T)(...Ot.map(ye=>ye._stateChanges.pipe((0,J.O)(ye))))),(0,z.R)(this._destroyed)).subscribe(Ot=>{const ye=this._dragRef,Xe=Ot.element.nativeElement;Ot.disabled?ye.disableHandle(Xe):ye.enableHandle(Xe)})}}return Lt._dragInstances=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(ho,12),d.Y36(p.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(Sn,8),d.Y36(Dt.Is,8),d.Y36(oe),d.Y36(d.sBO),d.Y36(Bn,10),d.Y36(Ce,12))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDrag",""]],contentQueries:function(Ot,ye,Xe){if(1&Ot&&(d.Suo(Xe,ze,5),d.Suo(Xe,Ye,5),d.Suo(Xe,Bn,5)),2&Ot){let Ne;d.iGM(Ne=d.CRH())&&(ye._previewTemplate=Ne.first),d.iGM(Ne=d.CRH())&&(ye._placeholderTemplate=Ne.first),d.iGM(Ne=d.CRH())&&(ye._handles=Ne)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ot,ye){2&Ot&&d.ekj("cdk-drag-disabled",ye.disabled)("cdk-drag-dragging",ye._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[d._Bn([{provide:Ce,useExisting:Lt}]),d.TTD]}),Lt})(),je=(()=>{class Lt{}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({providers:[oe],imports:[b.ZD]}),Lt})()},29521:(at,et,v)=>{"use strict";v.d(et,{A:()=>ae,JH:()=>Pt,JU:()=>A,K5:()=>t,Ku:()=>z,LH:()=>vt,L_:()=>F,MW:()=>Sn,Mf:()=>b,SV:()=>Dt,Sd:()=>ot,VM:()=>J,Vb:()=>fc,Z:()=>Dn,ZH:()=>p,aO:()=>Le,b2:()=>Or,hY:()=>P,jx:()=>x,oh:()=>lt,uR:()=>K,xE:()=>At,yY:()=>Tt,zL:()=>U});const p=8,b=9,t=13,A=16,x=17,U=18,P=27,F=32,z=33,J=34,K=35,ot=36,lt=37,vt=38,Dt=39,Pt=40,Tt=46,At=48,Le=57,ae=65,Dn=90,Sn=91,Or=224;function fc(dr,...Gr){return Gr.length?Gr.some(Qr=>dr[Qr]):dr.altKey||dr.shiftKey||dr.ctrlKey||dr.metaKey}},62289:(at,et,v)=>{"use strict";v.d(et,{Yg:()=>Pt,u3:()=>Vt,xu:()=>J});var d=v(94650),p=v(21281),b=v(8929),T=v(23426),t=v(61221),A=v(56498),x=v(72986),U=v(31307),k=v(80013),D=v(24850),P=v(1059),F=v(7625),z=v(83353);let J=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=d.oAB({type:it}),it.\u0275inj=d.cJS({}),it})();const K=new Set;let ot,lt=(()=>{class it{constructor(At){this._platform=At,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dt}matchMedia(At){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt(it){if(!K.has(it))try{ot||(ot=document.createElement("style"),ot.setAttribute("type","text/css"),document.head.appendChild(ot)),ot.sheet&&(ot.sheet.insertRule(`@media ${it} {body{ }}`,0),K.add(it))}catch(Tt){console.error(Tt)}}(At),this._matchMedia(At)}}return it.\u0275fac=function(At){return new(At||it)(d.LFG(z.t4))},it.\u0275prov=d.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function Dt(it){return{matches:"all"===it||""===it,media:it,addListener:()=>{},removeListener:()=>{}}}let Pt=(()=>{class it{constructor(At,ft){this._mediaMatcher=At,this._zone=ft,this._queries=new Map,this._destroySubject=new b.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(At){return zt((0,p.Eq)(At)).some(Et=>this._registerQuery(Et).mql.matches)}observe(At){const Et=zt((0,p.Eq)(At)).map(Ft=>this._registerQuery(Ft).observable);let Bt=(0,T.aj)(Et);return Bt=(0,t.z)(Bt.pipe((0,x.q)(1)),Bt.pipe((0,U.T)(1),(0,k.b)(0))),Bt.pipe((0,D.U)(Ft=>{const se={matches:!1,breakpoints:{}};return Ft.forEach(({matches:jt,query:ve})=>{se.matches=se.matches||jt,se.breakpoints[ve]=jt}),se}))}_registerQuery(At){if(this._queries.has(At))return this._queries.get(At);const ft=this._mediaMatcher.matchMedia(At),Bt={observable:new A.y(Ft=>{const se=jt=>this._zone.run(()=>Ft.next(jt));return ft.addListener(se),()=>{ft.removeListener(se)}}).pipe((0,P.O)(ft),(0,D.U)(({matches:Ft})=>({query:At,matches:Ft})),(0,F.R)(this._destroySubject)),mql:ft};return this._queries.set(At,Bt),Bt}}return it.\u0275fac=function(At){return new(At||it)(d.LFG(lt),d.LFG(d.R0b))},it.\u0275prov=d.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function zt(it){return it.map(Tt=>Tt.split(",")).reduce((Tt,At)=>Tt.concat(At)).map(Tt=>Tt.trim())}const Vt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(at,et,v)=>{"use strict";v.d(et,{Q8:()=>k,wD:()=>U});var d=v(21281),p=v(94650),b=v(56498),T=v(8929),t=v(80013);let A=(()=>{class D{create(F){return typeof MutationObserver>"u"?null:new MutationObserver(F)}}return D.\u0275fac=function(F){return new(F||D)},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),x=(()=>{class D{constructor(F){this._mutationObserverFactory=F,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((F,z)=>this._cleanupObserver(z))}observe(F){const z=(0,d.fI)(F);return new b.y(J=>{const ot=this._observeElement(z).subscribe(J);return()=>{ot.unsubscribe(),this._unobserveElement(z)}})}_observeElement(F){if(this._observedElements.has(F))this._observedElements.get(F).count++;else{const z=new T.xQ,J=this._mutationObserverFactory.create(K=>z.next(K));J&&J.observe(F,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(F,{observer:J,stream:z,count:1})}return this._observedElements.get(F).stream}_unobserveElement(F){this._observedElements.has(F)&&(this._observedElements.get(F).count--,this._observedElements.get(F).count||this._cleanupObserver(F))}_cleanupObserver(F){if(this._observedElements.has(F)){const{observer:z,stream:J}=this._observedElements.get(F);z&&z.disconnect(),J.complete(),this._observedElements.delete(F)}}}return D.\u0275fac=function(F){return new(F||D)(p.LFG(A))},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),U=(()=>{class D{constructor(F,z,J){this._contentObserver=F,this._elementRef=z,this._ngZone=J,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,d.Ig)(F),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(F){this._debounce=(0,d.su)(F),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const F=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?F.pipe((0,t.b)(this.debounce)):F).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return D.\u0275fac=function(F){return new(F||D)(p.Y36(x),p.Y36(p.SBq),p.Y36(p.R0b))},D.\u0275dir=p.lG2({type:D,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=p.oAB({type:D}),D.\u0275inj=p.cJS({providers:[A]}),D})()},98184:(at,et,v)=>{"use strict";v.d(et,{Iu:()=>Le,U8:()=>si,X_:()=>Tt,Xj:()=>be,_G:()=>Xt,aV:()=>Ae,pI:()=>Un,xu:()=>un});var d=v(67376),p=v(36895),b=v(94650),T=v(21281),t=v(83353),A=v(40445),x=v(84080),U=v(8929),k=v(42654),D=v(36787),P=v(72986),F=v(7625),z=v(44290),J=v(29521);const K=(0,t.Mq)();class ot{constructor(ct,nt){this._viewportRuler=ct,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=nt}attach(){}enable(){if(this._canBeEnabled()){const ct=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ct.style.left||"",this._previousHTMLStyles.top=ct.style.top||"",ct.style.left=(0,T.HM)(-this._previousScrollPosition.left),ct.style.top=(0,T.HM)(-this._previousScrollPosition.top),ct.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ct=this._document.documentElement,kt=ct.style,Jt=this._document.body.style,oe=kt.scrollBehavior||"",Ce=Jt.scrollBehavior||"";this._isEnabled=!1,kt.left=this._previousHTMLStyles.left,kt.top=this._previousHTMLStyles.top,ct.classList.remove("cdk-global-scrollblock"),K&&(kt.scrollBehavior=Jt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(kt.scrollBehavior=oe,Jt.scrollBehavior=Ce)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const nt=this._document.body,kt=this._viewportRuler.getViewportSize();return nt.scrollHeight>kt.height||nt.scrollWidth>kt.width}}class vt{constructor(ct,nt,kt,Jt){this._scrollDispatcher=ct,this._ngZone=nt,this._viewportRuler=kt,this._config=Jt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ct){this._overlayRef=ct}enable(){if(this._scrollSubscription)return;const ct=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ct.subscribe(()=>{const nt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(nt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ct.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dt{enable(){}disable(){}attach(){}}function Pt(ne,ct){return ct.some(nt=>ne.bottomnt.bottom||ne.rightnt.right)}function zt(ne,ct){return ct.some(nt=>ne.topnt.bottom||ne.leftnt.right)}class Vt{constructor(ct,nt,kt,Jt){this._scrollDispatcher=ct,this._viewportRuler=nt,this._ngZone=kt,this._config=Jt,this._scrollSubscription=null}attach(ct){this._overlayRef=ct}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const nt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:kt,height:Jt}=this._viewportRuler.getViewportSize();Pt(nt,[{width:kt,height:Jt,bottom:Jt,right:kt,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let it=(()=>{class ne{constructor(nt,kt,Jt,oe){this._scrollDispatcher=nt,this._viewportRuler=kt,this._ngZone=Jt,this.noop=()=>new Dt,this.close=Ce=>new vt(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ce),this.block=()=>new ot(this._viewportRuler,this._document),this.reposition=Ce=>new Vt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ce),this._document=oe}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(d.mF),b.LFG(d.rL),b.LFG(b.R0b),b.LFG(p.K0))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();class Tt{constructor(ct){if(this.scrollStrategy=new Dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ct){const nt=Object.keys(ct);for(const kt of nt)void 0!==ct[kt]&&(this[kt]=ct[kt])}}}class Et{constructor(ct,nt){this.connectionPair=ct,this.scrollableViewProperties=nt}}let se=(()=>{class ne{constructor(nt){this._attachedOverlays=[],this._document=nt}ngOnDestroy(){this.detach()}add(nt){this.remove(nt),this._attachedOverlays.push(nt)}remove(nt){const kt=this._attachedOverlays.indexOf(nt);kt>-1&&this._attachedOverlays.splice(kt,1),0===this._attachedOverlays.length&&this.detach()}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(p.K0))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),jt=(()=>{class ne extends se{constructor(nt,kt){super(nt),this._ngZone=kt,this._keydownListener=Jt=>{const oe=this._attachedOverlays;for(let Ce=oe.length-1;Ce>-1;Ce--)if(oe[Ce]._keydownEvents.observers.length>0){const Oe=oe[Ce]._keydownEvents;this._ngZone?this._ngZone.run(()=>Oe.next(Jt)):Oe.next(Jt);break}}}add(nt){super.add(nt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(p.K0),b.LFG(b.R0b,8))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ve=(()=>{class ne extends se{constructor(nt,kt,Jt){super(nt),this._platform=kt,this._ngZone=Jt,this._cursorStyleIsSet=!1,this._pointerDownListener=oe=>{this._pointerDownEventTarget=(0,t.sA)(oe)},this._clickListener=oe=>{const Ce=(0,t.sA)(oe),Oe="click"===oe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ce;this._pointerDownEventTarget=null;const Dn=this._attachedOverlays.slice();for(let Sn=Dn.length-1;Sn>-1;Sn--){const mi=Dn[Sn];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(Ce)||mi.overlayElement.contains(Oe))break;const Li=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Li.next(oe)):Li.next(oe)}}}add(nt){if(super.add(nt),!this._isAttached){const kt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(kt)):this._addEventListeners(kt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=kt.style.cursor,kt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const nt=this._document.body;nt.removeEventListener("pointerdown",this._pointerDownListener,!0),nt.removeEventListener("click",this._clickListener,!0),nt.removeEventListener("auxclick",this._clickListener,!0),nt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(nt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(nt){nt.addEventListener("pointerdown",this._pointerDownListener,!0),nt.addEventListener("click",this._clickListener,!0),nt.addEventListener("auxclick",this._clickListener,!0),nt.addEventListener("contextmenu",this._clickListener,!0)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(p.K0),b.LFG(t.t4),b.LFG(b.R0b,8))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),be=(()=>{class ne{constructor(nt,kt){this._platform=kt,this._document=nt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const nt="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Jt=this._document.querySelectorAll(`.${nt}[platform="server"], .${nt}[platform="test"]`);for(let oe=0;oethis._backdropClick.next(Li),this._backdropTransitionendHandler=Li=>{this._disposeBackdrop(Li.target)},this._keydownEvents=new U.xQ,this._outsidePointerEvents=new U.xQ,Jt.scrollStrategy&&(this._scrollStrategy=Jt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Jt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ct){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const nt=this._portalOutlet.attach(ct);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof nt?.onDestroy&&nt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),nt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ct=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ct}dispose(){const ct=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,ct&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ct){ct!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ct,this.hasAttached()&&(ct.attach(this),this.updatePosition()))}updateSize(ct){this._config={...this._config,...ct},this._updateElementSize()}setDirection(ct){this._config={...this._config,direction:ct},this._updateElementDirection()}addPanelClass(ct){this._pane&&this._toggleClasses(this._pane,ct,!0)}removePanelClass(ct){this._pane&&this._toggleClasses(this._pane,ct,!1)}getDirection(){const ct=this._config.direction;return ct?"string"==typeof ct?ct:ct.value:"ltr"}updateScrollStrategy(ct){ct!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ct,this.hasAttached()&&(ct.attach(this),ct.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ct=this._pane.style;ct.width=(0,T.HM)(this._config.width),ct.height=(0,T.HM)(this._config.height),ct.minWidth=(0,T.HM)(this._config.minWidth),ct.minHeight=(0,T.HM)(this._config.minHeight),ct.maxWidth=(0,T.HM)(this._config.maxWidth),ct.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(ct){this._pane.style.pointerEvents=ct?"":"none"}_attachBackdrop(){const ct="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(ct)})}):this._backdropElement.classList.add(ct)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ct=this._backdropElement;if(ct){if(this._animationsDisabled)return void this._disposeBackdrop(ct);ct.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ct.addEventListener("transitionend",this._backdropTransitionendHandler)}),ct.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ct)},500))}}_toggleClasses(ct,nt,kt){const Jt=(0,T.Eq)(nt||[]).filter(oe=>!!oe);Jt.length&&(kt?ct.classList.add(...Jt):ct.classList.remove(...Jt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ct=this._ngZone.onStable.pipe((0,F.R)((0,D.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ct.unsubscribe())})})}_disposeScrollStrategy(){const ct=this._scrollStrategy;ct&&(ct.disable(),ct.detach&&ct.detach())}_disposeBackdrop(ct){ct&&(ct.removeEventListener("click",this._backdropClickHandler),ct.removeEventListener("transitionend",this._backdropTransitionendHandler),ct.remove(),this._backdropElement===ct&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qe="cdk-overlay-connected-position-bounding-box",$e=/([A-Za-z%]+)$/;class Xt{constructor(ct,nt,kt,Jt,oe){this._viewportRuler=nt,this._document=kt,this._platform=Jt,this._overlayContainer=oe,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 U.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ct)}get positions(){return this._preferredPositions}attach(ct){this._validatePositions(),ct.hostElement.classList.add(qe),this._overlayRef=ct,this._boundingBox=ct.hostElement,this._pane=ct.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ct=this._originRect,nt=this._overlayRect,kt=this._viewportRect,Jt=this._containerRect,oe=[];let Ce;for(let Oe of this._preferredPositions){let Dn=this._getOriginPoint(ct,Jt,Oe),Sn=this._getOverlayPoint(Dn,nt,Oe),mi=this._getOverlayFit(Sn,nt,kt,Oe);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Oe,Dn);this._canFitWithFlexibleDimensions(mi,Sn,kt)?oe.push({position:Oe,origin:Dn,overlayRect:nt,boundingBoxRect:this._calculateBoundingBoxRect(Dn,Oe)}):(!Ce||Ce.overlayFit.visibleAreaDn&&(Dn=mi,Oe=Sn)}return this._isPushed=!1,void this._applyPosition(Oe.position,Oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ce.position,Ce.originPoint);this._applyPosition(Ce.position,Ce.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ct=this._lastPosition;if(ct){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const nt=this._getOriginPoint(this._originRect,this._containerRect,ct);this._applyPosition(ct,nt)}else this.apply()}withScrollableContainers(ct){return this._scrollables=ct,this}withPositions(ct){return this._preferredPositions=ct,-1===ct.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ct){return this._viewportMargin=ct,this}withFlexibleDimensions(ct=!0){return this._hasFlexibleDimensions=ct,this}withGrowAfterOpen(ct=!0){return this._growAfterOpen=ct,this}withPush(ct=!0){return this._canPush=ct,this}withLockedPosition(ct=!0){return this._positionLocked=ct,this}setOrigin(ct){return this._origin=ct,this}withDefaultOffsetX(ct){return this._offsetX=ct,this}withDefaultOffsetY(ct){return this._offsetY=ct,this}withTransformOriginOn(ct){return this._transformOriginSelector=ct,this}_getOriginPoint(ct,nt,kt){let Jt,oe;if("center"==kt.originX)Jt=ct.left+ct.width/2;else{const Ce=this._isRtl()?ct.right:ct.left,Oe=this._isRtl()?ct.left:ct.right;Jt="start"==kt.originX?Ce:Oe}return nt.left<0&&(Jt-=nt.left),oe="center"==kt.originY?ct.top+ct.height/2:"top"==kt.originY?ct.top:ct.bottom,nt.top<0&&(oe-=nt.top),{x:Jt,y:oe}}_getOverlayPoint(ct,nt,kt){let Jt,oe;return Jt="center"==kt.overlayX?-nt.width/2:"start"===kt.overlayX?this._isRtl()?-nt.width:0:this._isRtl()?0:-nt.width,oe="center"==kt.overlayY?-nt.height/2:"top"==kt.overlayY?0:-nt.height,{x:ct.x+Jt,y:ct.y+oe}}_getOverlayFit(ct,nt,kt,Jt){const oe=Kt(nt);let{x:Ce,y:Oe}=ct,Dn=this._getOffset(Jt,"x"),Sn=this._getOffset(Jt,"y");Dn&&(Ce+=Dn),Sn&&(Oe+=Sn);let ho=0-Oe,fi=Oe+oe.height-kt.height,Bn=this._subtractOverflows(oe.width,0-Ce,Ce+oe.width-kt.width),Gn=this._subtractOverflows(oe.height,ho,fi),Ye=Bn*Gn;return{visibleArea:Ye,isCompletelyWithinViewport:oe.width*oe.height===Ye,fitsInViewportVertically:Gn===oe.height,fitsInViewportHorizontally:Bn==oe.width}}_canFitWithFlexibleDimensions(ct,nt,kt){if(this._hasFlexibleDimensions){const Jt=kt.bottom-nt.y,oe=kt.right-nt.x,Ce=ae(this._overlayRef.getConfig().minHeight),Oe=ae(this._overlayRef.getConfig().minWidth),Sn=ct.fitsInViewportHorizontally||null!=Oe&&Oe<=oe;return(ct.fitsInViewportVertically||null!=Ce&&Ce<=Jt)&&Sn}return!1}_pushOverlayOnScreen(ct,nt,kt){if(this._previousPushAmount&&this._positionLocked)return{x:ct.x+this._previousPushAmount.x,y:ct.y+this._previousPushAmount.y};const Jt=Kt(nt),oe=this._viewportRect,Ce=Math.max(ct.x+Jt.width-oe.width,0),Oe=Math.max(ct.y+Jt.height-oe.height,0),Dn=Math.max(oe.top-kt.top-ct.y,0),Sn=Math.max(oe.left-kt.left-ct.x,0);let mi=0,Li=0;return mi=Jt.width<=oe.width?Sn||-Ce:ct.xBn&&!this._isInitialRender&&!this._growAfterOpen&&(Ce=ct.y-Bn/2)}if("end"===nt.overlayX&&!Jt||"start"===nt.overlayX&&Jt)ho=kt.width-ct.x+this._viewportMargin,mi=ct.x-this._viewportMargin;else if("start"===nt.overlayX&&!Jt||"end"===nt.overlayX&&Jt)Li=ct.x,mi=kt.right-ct.x;else{const fi=Math.min(kt.right-ct.x+kt.left,ct.x),Bn=this._lastBoundingBoxSize.width;mi=2*fi,Li=ct.x-fi,mi>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(Li=ct.x-Bn/2)}return{top:Ce,left:Li,bottom:Oe,right:ho,width:mi,height:oe}}_setBoundingBoxStyles(ct,nt){const kt=this._calculateBoundingBoxRect(ct,nt);!this._isInitialRender&&!this._growAfterOpen&&(kt.height=Math.min(kt.height,this._lastBoundingBoxSize.height),kt.width=Math.min(kt.width,this._lastBoundingBoxSize.width));const Jt={};if(this._hasExactPosition())Jt.top=Jt.left="0",Jt.bottom=Jt.right=Jt.maxHeight=Jt.maxWidth="",Jt.width=Jt.height="100%";else{const oe=this._overlayRef.getConfig().maxHeight,Ce=this._overlayRef.getConfig().maxWidth;Jt.height=(0,T.HM)(kt.height),Jt.top=(0,T.HM)(kt.top),Jt.bottom=(0,T.HM)(kt.bottom),Jt.width=(0,T.HM)(kt.width),Jt.left=(0,T.HM)(kt.left),Jt.right=(0,T.HM)(kt.right),Jt.alignItems="center"===nt.overlayX?"center":"end"===nt.overlayX?"flex-end":"flex-start",Jt.justifyContent="center"===nt.overlayY?"center":"bottom"===nt.overlayY?"flex-end":"flex-start",oe&&(Jt.maxHeight=(0,T.HM)(oe)),Ce&&(Jt.maxWidth=(0,T.HM)(Ce))}this._lastBoundingBoxSize=kt,Te(this._boundingBox.style,Jt)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ct,nt){const kt={},Jt=this._hasExactPosition(),oe=this._hasFlexibleDimensions,Ce=this._overlayRef.getConfig();if(Jt){const mi=this._viewportRuler.getViewportScrollPosition();Te(kt,this._getExactOverlayY(nt,ct,mi)),Te(kt,this._getExactOverlayX(nt,ct,mi))}else kt.position="static";let Oe="",Dn=this._getOffset(nt,"x"),Sn=this._getOffset(nt,"y");Dn&&(Oe+=`translateX(${Dn}px) `),Sn&&(Oe+=`translateY(${Sn}px)`),kt.transform=Oe.trim(),Ce.maxHeight&&(Jt?kt.maxHeight=(0,T.HM)(Ce.maxHeight):oe&&(kt.maxHeight="")),Ce.maxWidth&&(Jt?kt.maxWidth=(0,T.HM)(Ce.maxWidth):oe&&(kt.maxWidth="")),Te(this._pane.style,kt)}_getExactOverlayY(ct,nt,kt){let Jt={top:"",bottom:""},oe=this._getOverlayPoint(nt,this._overlayRect,ct);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),"bottom"===ct.overlayY?Jt.bottom=this._document.documentElement.clientHeight-(oe.y+this._overlayRect.height)+"px":Jt.top=(0,T.HM)(oe.y),Jt}_getExactOverlayX(ct,nt,kt){let Ce,Jt={left:"",right:""},oe=this._getOverlayPoint(nt,this._overlayRect,ct);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),Ce=this._isRtl()?"end"===ct.overlayX?"left":"right":"end"===ct.overlayX?"right":"left","right"===Ce?Jt.right=this._document.documentElement.clientWidth-(oe.x+this._overlayRect.width)+"px":Jt.left=(0,T.HM)(oe.x),Jt}_getScrollVisibility(){const ct=this._getOriginRect(),nt=this._pane.getBoundingClientRect(),kt=this._scrollables.map(Jt=>Jt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zt(ct,kt),isOriginOutsideView:Pt(ct,kt),isOverlayClipped:zt(nt,kt),isOverlayOutsideView:Pt(nt,kt)}}_subtractOverflows(ct,...nt){return nt.reduce((kt,Jt)=>kt-Math.max(Jt,0),ct)}_getNarrowedViewportRect(){const ct=this._document.documentElement.clientWidth,nt=this._document.documentElement.clientHeight,kt=this._viewportRuler.getViewportScrollPosition();return{top:kt.top+this._viewportMargin,left:kt.left+this._viewportMargin,right:kt.left+ct-this._viewportMargin,bottom:kt.top+nt-this._viewportMargin,width:ct-2*this._viewportMargin,height:nt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ct,nt){return"x"===nt?ct.offsetX??this._offsetX:ct.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(ct){this._pane&&(0,T.Eq)(ct).forEach(nt=>{""!==nt&&-1===this._appliedPanelClasses.indexOf(nt)&&(this._appliedPanelClasses.push(nt),this._pane.classList.add(nt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ct=>{this._pane.classList.remove(ct)}),this._appliedPanelClasses=[])}_getOriginRect(){const ct=this._origin;if(ct instanceof b.SBq)return ct.nativeElement.getBoundingClientRect();if(ct instanceof Element)return ct.getBoundingClientRect();const nt=ct.width||0,kt=ct.height||0;return{top:ct.y,bottom:ct.y+kt,left:ct.x,right:ct.x+nt,height:kt,width:nt}}}function Te(ne,ct){for(let nt in ct)ct.hasOwnProperty(nt)&&(ne[nt]=ct[nt]);return ne}function ae(ne){if("number"!=typeof ne&&null!=ne){const[ct,nt]=ne.split($e);return nt&&"px"!==nt?null:parseFloat(ct)}return ne||null}function Kt(ne){return{top:Math.floor(ne.top),right:Math.floor(ne.right),bottom:Math.floor(ne.bottom),left:Math.floor(ne.left),width:Math.floor(ne.width),height:Math.floor(ne.height)}}const re="cdk-global-overlay-wrapper";class De{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ct){const nt=ct.getConfig();this._overlayRef=ct,this._width&&!nt.width&&ct.updateSize({width:this._width}),this._height&&!nt.height&&ct.updateSize({height:this._height}),ct.hostElement.classList.add(re),this._isDisposed=!1}top(ct=""){return this._bottomOffset="",this._topOffset=ct,this._alignItems="flex-start",this}left(ct=""){return this._xOffset=ct,this._xPosition="left",this}bottom(ct=""){return this._topOffset="",this._bottomOffset=ct,this._alignItems="flex-end",this}right(ct=""){return this._xOffset=ct,this._xPosition="right",this}start(ct=""){return this._xOffset=ct,this._xPosition="start",this}end(ct=""){return this._xOffset=ct,this._xPosition="end",this}width(ct=""){return this._overlayRef?this._overlayRef.updateSize({width:ct}):this._width=ct,this}height(ct=""){return this._overlayRef?this._overlayRef.updateSize({height:ct}):this._height=ct,this}centerHorizontally(ct=""){return this.left(ct),this._xPosition="center",this}centerVertically(ct=""){return this.top(ct),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ct=this._overlayRef.overlayElement.style,nt=this._overlayRef.hostElement.style,kt=this._overlayRef.getConfig(),{width:Jt,height:oe,maxWidth:Ce,maxHeight:Oe}=kt,Dn=!("100%"!==Jt&&"100vw"!==Jt||Ce&&"100%"!==Ce&&"100vw"!==Ce),Sn=!("100%"!==oe&&"100vh"!==oe||Oe&&"100%"!==Oe&&"100vh"!==Oe),mi=this._xPosition,Li=this._xOffset,ho="rtl"===this._overlayRef.getConfig().direction;let fi="",Bn="",Gn="";Dn?Gn="flex-start":"center"===mi?(Gn="center",ho?Bn=Li:fi=Li):ho?"left"===mi||"end"===mi?(Gn="flex-end",fi=Li):("right"===mi||"start"===mi)&&(Gn="flex-start",Bn=Li):"left"===mi||"start"===mi?(Gn="flex-start",fi=Li):("right"===mi||"end"===mi)&&(Gn="flex-end",Bn=Li),ct.position=this._cssPosition,ct.marginLeft=Dn?"0":fi,ct.marginTop=Sn?"0":this._topOffset,ct.marginBottom=this._bottomOffset,ct.marginRight=Dn?"0":Bn,nt.justifyContent=Gn,nt.alignItems=Sn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ct=this._overlayRef.overlayElement.style,nt=this._overlayRef.hostElement,kt=nt.style;nt.classList.remove(re),kt.justifyContent=kt.alignItems=ct.marginTop=ct.marginBottom=ct.marginLeft=ct.marginRight=ct.position="",this._overlayRef=null,this._isDisposed=!0}}let on=(()=>{class ne{constructor(nt,kt,Jt,oe){this._viewportRuler=nt,this._document=kt,this._platform=Jt,this._overlayContainer=oe}global(){return new De}flexibleConnectedTo(nt){return new Xt(nt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(d.rL),b.LFG(p.K0),b.LFG(t.t4),b.LFG(be))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),_n=0,Ae=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi,Li,ho,fi){this.scrollStrategies=nt,this._overlayContainer=kt,this._componentFactoryResolver=Jt,this._positionBuilder=oe,this._keyboardDispatcher=Ce,this._injector=Oe,this._ngZone=Dn,this._document=Sn,this._directionality=mi,this._location=Li,this._outsideClickDispatcher=ho,this._animationsModuleType=fi}create(nt){const kt=this._createHostElement(),Jt=this._createPaneElement(kt),oe=this._createPortalOutlet(Jt),Ce=new Tt(nt);return Ce.direction=Ce.direction||this._directionality.value,new Le(oe,kt,Jt,Ce,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(nt){const kt=this._document.createElement("div");return kt.id="cdk-overlay-"+_n++,kt.classList.add("cdk-overlay-pane"),nt.appendChild(kt),kt}_createHostElement(){const nt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(nt),nt}_createPortalOutlet(nt){return this._appRef||(this._appRef=this._injector.get(b.z2F)),new x.u0(nt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(it),b.LFG(be),b.LFG(b._Vd),b.LFG(on),b.LFG(jt),b.LFG(b.zs3),b.LFG(b.R0b),b.LFG(p.K0),b.LFG(A.Is),b.LFG(p.Ye),b.LFG(ve),b.LFG(b.QbO,8))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const gn=[{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"}],we=new b.OlP("cdk-connected-overlay-scroll-strategy");let un=(()=>{class ne{constructor(nt){this.elementRef=nt}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.Y36(b.SBq))},ne.\u0275dir=b.lG2({type:ne,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ne})(),Un=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce){this._overlay=nt,this._dir=Ce,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new b.vpe,this.positionChange=new b.vpe,this.attach=new b.vpe,this.detach=new b.vpe,this.overlayKeydown=new b.vpe,this.overlayOutsideClick=new b.vpe,this._templatePortal=new x.UE(kt,Jt),this._scrollStrategyFactory=oe,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(nt){this._offsetX=nt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(nt){this._offsetY=nt,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(nt){this._hasBackdrop=(0,T.Ig)(nt)}get lockPosition(){return this._lockPosition}set lockPosition(nt){this._lockPosition=(0,T.Ig)(nt)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(nt){this._flexibleDimensions=(0,T.Ig)(nt)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(nt){this._growAfterOpen=(0,T.Ig)(nt)}get push(){return this._push}set push(nt){this._push=(0,T.Ig)(nt)}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(nt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),nt.origin&&this.open&&this._position.apply()),nt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gn);const nt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=nt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=nt.detachments().subscribe(()=>this.detach.emit()),nt.keydownEvents().subscribe(kt=>{this.overlayKeydown.next(kt),kt.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(kt)&&(kt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(kt=>{this.overlayOutsideClick.next(kt)})}_buildConfig(){const nt=this._position=this.positionStrategy||this._createPositionStrategy(),kt=new Tt({direction:this._dir,positionStrategy:nt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(kt.width=this.width),(this.height||0===this.height)&&(kt.height=this.height),(this.minWidth||0===this.minWidth)&&(kt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(kt.minHeight=this.minHeight),this.backdropClass&&(kt.backdropClass=this.backdropClass),this.panelClass&&(kt.panelClass=this.panelClass),kt}_updatePositionStrategy(nt){const kt=this.positions.map(Jt=>({originX:Jt.originX,originY:Jt.originY,overlayX:Jt.overlayX,overlayY:Jt.overlayY,offsetX:Jt.offsetX||this.offsetX,offsetY:Jt.offsetY||this.offsetY,panelClass:Jt.panelClass||void 0}));return nt.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(kt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const nt=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(nt),nt}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof un?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(nt=>{this.backdropClick.emit(nt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(nt=>{this.positionChange.emit(nt),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.Y36(Ae),b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(we),b.Y36(A.Is,8))},ne.\u0275dir=b.lG2({type:ne,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[b.TTD]}),ne})();const vi={provide:we,deps:[Ae],useFactory:function oi(ne){return()=>ne.scrollStrategies.reposition()}};let si=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=b.oAB({type:ne}),ne.\u0275inj=b.cJS({providers:[Ae,vi],imports:[A.vT,x.eL,d.Cl,d.Cl]}),ne})()},83353:(at,et,v)=>{"use strict";v.d(et,{Mq:()=>J,Oy:()=>zt,_i:()=>K,ht:()=>Dt,i$:()=>P,kV:()=>vt,qK:()=>U,sA:()=>Pt,t4:()=>T,ud:()=>t});var d=v(94650),p=v(36895);let b;try{b=typeof Intl<"u"&&Intl.v8BreakIterator}catch{b=!1}let A,T=(()=>{class Vt{constructor(Tt){this._platformId=Tt,this.isBrowser=this._platformId?(0,p.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!b)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Vt.\u0275fac=function(Tt){return new(Tt||Vt)(d.LFG(d.Lbi))},Vt.\u0275prov=d.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"}),Vt})(),t=(()=>{class Vt{}return Vt.\u0275fac=function(Tt){return new(Tt||Vt)},Vt.\u0275mod=d.oAB({type:Vt}),Vt.\u0275inj=d.cJS({}),Vt})();const x=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function U(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(x),A;let Vt=document.createElement("input");return A=new Set(x.filter(it=>(Vt.setAttribute("type",it),Vt.type===it))),A}let k,F,z,ot;function P(Vt){return function D(){if(null==k&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>k=!0}))}finally{k=k||!1}return k}()?Vt:!!Vt.capture}function J(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const Vt=Element.prototype.scrollTo;z=!!Vt&&!/\{\s*\[native code\]\s*\}/.test(Vt.toString())}}return z}function K(){if("object"!=typeof document||!document)return 0;if(null==F){const Vt=document.createElement("div"),it=Vt.style;Vt.dir="rtl",it.width="1px",it.overflow="auto",it.visibility="hidden",it.pointerEvents="none",it.position="absolute";const Tt=document.createElement("div"),At=Tt.style;At.width="2px",At.height="1px",Vt.appendChild(Tt),document.body.appendChild(Vt),F=0,0===Vt.scrollLeft&&(Vt.scrollLeft=1,F=0===Vt.scrollLeft?1:2),Vt.remove()}return F}function vt(Vt){if(function lt(){if(null==ot){const Vt=typeof document<"u"?document.head:null;ot=!(!Vt||!Vt.createShadowRoot&&!Vt.attachShadow)}return ot}()){const it=Vt.getRootNode?Vt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&it instanceof ShadowRoot)return it}return null}function Dt(){let Vt=typeof document<"u"&&document?document.activeElement:null;for(;Vt&&Vt.shadowRoot;){const it=Vt.shadowRoot.activeElement;if(it===Vt)break;Vt=it}return Vt}function Pt(Vt){return Vt.composedPath?Vt.composedPath()[0]:Vt.target}function zt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(at,et,v)=>{"use strict";v.d(et,{C5:()=>D,Pl:()=>Dt,UE:()=>P,eL:()=>zt,en:()=>z,ig:()=>lt,u0:()=>K});var d=v(94650),p=v(36895);class k{attach(Tt){return this._attachedHost=Tt,Tt.attach(this)}detach(){let Tt=this._attachedHost;null!=Tt&&(this._attachedHost=null,Tt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Tt){this._attachedHost=Tt}}class D extends k{constructor(Tt,At,ft,Et){super(),this.component=Tt,this.viewContainerRef=At,this.injector=ft,this.componentFactoryResolver=Et}}class P extends k{constructor(Tt,At,ft,Et){super(),this.templateRef=Tt,this.viewContainerRef=At,this.context=ft,this.injector=Et}get origin(){return this.templateRef.elementRef}attach(Tt,At=this.context){return this.context=At,super.attach(Tt)}detach(){return this.context=void 0,super.detach()}}class F extends k{constructor(Tt){super(),this.element=Tt instanceof d.SBq?Tt.nativeElement:Tt}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Tt){return Tt instanceof D?(this._attachedPortal=Tt,this.attachComponentPortal(Tt)):Tt instanceof P?(this._attachedPortal=Tt,this.attachTemplatePortal(Tt)):this.attachDomPortal&&Tt instanceof F?(this._attachedPortal=Tt,this.attachDomPortal(Tt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Tt){this._disposeFn=Tt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class K extends z{constructor(Tt,At,ft,Et,Bt){super(),this.outletElement=Tt,this._componentFactoryResolver=At,this._appRef=ft,this._defaultInjector=Et,this.attachDomPortal=Ft=>{const se=Ft.element,jt=this._document.createComment("dom-portal");se.parentNode.insertBefore(jt,se),this.outletElement.appendChild(se),this._attachedPortal=Ft,super.setDisposeFn(()=>{jt.parentNode&&jt.parentNode.replaceChild(se,jt)})},this._document=Bt}attachComponentPortal(Tt){const ft=(Tt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Tt.component);let Et;return Tt.viewContainerRef?(Et=Tt.viewContainerRef.createComponent(ft,Tt.viewContainerRef.length,Tt.injector||Tt.viewContainerRef.injector),this.setDisposeFn(()=>Et.destroy())):(Et=ft.create(Tt.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(Et.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Et.hostView),Et.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Et)),this._attachedPortal=Tt,Et}attachTemplatePortal(Tt){let At=Tt.viewContainerRef,ft=At.createEmbeddedView(Tt.templateRef,Tt.context,{injector:Tt.injector});return ft.rootNodes.forEach(Et=>this.outletElement.appendChild(Et)),ft.detectChanges(),this.setDisposeFn(()=>{let Et=At.indexOf(ft);-1!==Et&&At.remove(Et)}),this._attachedPortal=Tt,ft}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Tt){return Tt.hostView.rootNodes[0]}}let lt=(()=>{class it extends P{constructor(At,ft){super(At,ft)}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(d.Rgc),d.Y36(d.s_b))},it.\u0275dir=d.lG2({type:it,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),it})(),Dt=(()=>{class it extends z{constructor(At,ft,Et){super(),this._componentFactoryResolver=At,this._viewContainerRef=ft,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Bt=>{const Ft=Bt.element,se=this._document.createComment("dom-portal");Bt.setAttachedHost(this),Ft.parentNode.insertBefore(se,Ft),this._getRootNode().appendChild(Ft),this._attachedPortal=Bt,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(Ft,se)})},this._document=Et}get portal(){return this._attachedPortal}set portal(At){this.hasAttached()&&!At&&!this._isInitialized||(this.hasAttached()&&super.detach(),At&&super.attach(At),this._attachedPortal=At||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(At){At.setAttachedHost(this);const ft=null!=At.viewContainerRef?At.viewContainerRef:this._viewContainerRef,Bt=(At.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(At.component),Ft=ft.createComponent(Bt,ft.length,At.injector||ft.injector);return ft!==this._viewContainerRef&&this._getRootNode().appendChild(Ft.hostView.rootNodes[0]),super.setDisposeFn(()=>Ft.destroy()),this._attachedPortal=At,this._attachedRef=Ft,this.attached.emit(Ft),Ft}attachTemplatePortal(At){At.setAttachedHost(this);const ft=this._viewContainerRef.createEmbeddedView(At.templateRef,At.context,{injector:At.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=At,this._attachedRef=ft,this.attached.emit(ft),ft}_getRootNode(){const At=this._viewContainerRef.element.nativeElement;return At.nodeType===At.ELEMENT_NODE?At:At.parentNode}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(p.K0))},it.\u0275dir=d.lG2({type:it,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),it})(),zt=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=d.oAB({type:it}),it.\u0275inj=d.cJS({}),it})()},67376:(at,et,v)=>{"use strict";v.d(et,{Cl:()=>$e,PQ:()=>it,ZD:()=>qe,mF:()=>Vt,rL:()=>At});var d=v(21281),p=v(94650),b=v(8929),T=v(21086),t=v(56498),A=v(23753),k=(v(90352),v(8139),v(57138)),D=v(92198),P=v(7625),F=v(83353),z=v(36895),J=v(40445);let Vt=(()=>{class Xt{constructor(ae,Kt,de){this._ngZone=ae,this._platform=Kt,this._scrolled=new b.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=de}register(ae){this.scrollContainers.has(ae)||this.scrollContainers.set(ae,ae.elementScrolled().subscribe(()=>this._scrolled.next(ae)))}deregister(ae){const Kt=this.scrollContainers.get(ae);Kt&&(Kt.unsubscribe(),this.scrollContainers.delete(ae))}scrolled(ae=20){return this._platform.isBrowser?new t.y(Kt=>{this._globalSubscription||this._addGlobalListener();const de=ae>0?this._scrolled.pipe((0,k.e)(ae)).subscribe(Kt):this._scrolled.subscribe(Kt);return this._scrolledCount++,()=>{de.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ae,Kt)=>this.deregister(Kt)),this._scrolled.complete()}ancestorScrolled(ae,Kt){const de=this.getAncestorScrollContainers(ae);return this.scrolled(Kt).pipe((0,D.h)(Wt=>!Wt||de.indexOf(Wt)>-1))}getAncestorScrollContainers(ae){const Kt=[];return this.scrollContainers.forEach((de,Wt)=>{this._scrollableContainsElement(Wt,ae)&&Kt.push(Wt)}),Kt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ae,Kt){let de=(0,d.fI)(Kt),Wt=ae.getElementRef().nativeElement;do{if(de==Wt)return!0}while(de=de.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ae=this._getWindow();return(0,A.R)(ae.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(p.R0b),p.LFG(F.t4),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),it=(()=>{class Xt{constructor(ae,Kt,de,Wt){this.elementRef=ae,this.scrollDispatcher=Kt,this.ngZone=de,this.dir=Wt,this._destroyed=new b.xQ,this._elementScrolled=new t.y(re=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(re)))}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(ae){const Kt=this.elementRef.nativeElement,de=this.dir&&"rtl"==this.dir.value;null==ae.left&&(ae.left=de?ae.end:ae.start),null==ae.right&&(ae.right=de?ae.start:ae.end),null!=ae.bottom&&(ae.top=Kt.scrollHeight-Kt.clientHeight-ae.bottom),de&&0!=(0,F._i)()?(null!=ae.left&&(ae.right=Kt.scrollWidth-Kt.clientWidth-ae.left),2==(0,F._i)()?ae.left=ae.right:1==(0,F._i)()&&(ae.left=ae.right?-ae.right:ae.right)):null!=ae.right&&(ae.left=Kt.scrollWidth-Kt.clientWidth-ae.right),this._applyScrollToOptions(ae)}_applyScrollToOptions(ae){const Kt=this.elementRef.nativeElement;(0,F.Mq)()?Kt.scrollTo(ae):(null!=ae.top&&(Kt.scrollTop=ae.top),null!=ae.left&&(Kt.scrollLeft=ae.left))}measureScrollOffset(ae){const Kt="left",Wt=this.elementRef.nativeElement;if("top"==ae)return Wt.scrollTop;if("bottom"==ae)return Wt.scrollHeight-Wt.clientHeight-Wt.scrollTop;const re=this.dir&&"rtl"==this.dir.value;return"start"==ae?ae=re?"right":Kt:"end"==ae&&(ae=re?Kt:"right"),re&&2==(0,F._i)()?ae==Kt?Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft:Wt.scrollLeft:re&&1==(0,F._i)()?ae==Kt?Wt.scrollLeft+Wt.scrollWidth-Wt.clientWidth:-Wt.scrollLeft:ae==Kt?Wt.scrollLeft:Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.Y36(p.SBq),p.Y36(Vt),p.Y36(p.R0b),p.Y36(J.Is,8))},Xt.\u0275dir=p.lG2({type:Xt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Xt})(),At=(()=>{class Xt{constructor(ae,Kt,de){this._platform=ae,this._change=new b.xQ,this._changeListener=Wt=>{this._change.next(Wt)},this._document=de,Kt.runOutsideAngular(()=>{if(ae.isBrowser){const Wt=this._getWindow();Wt.addEventListener("resize",this._changeListener),Wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ae=this._getWindow();ae.removeEventListener("resize",this._changeListener),ae.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ae={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ae}getViewportRect(){const ae=this.getViewportScrollPosition(),{width:Kt,height:de}=this.getViewportSize();return{top:ae.top,left:ae.left,bottom:ae.top+de,right:ae.left+Kt,height:de,width:Kt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ae=this._document,Kt=this._getWindow(),de=ae.documentElement,Wt=de.getBoundingClientRect();return{top:-Wt.top||ae.body.scrollTop||Kt.scrollY||de.scrollTop||0,left:-Wt.left||ae.body.scrollLeft||Kt.scrollX||de.scrollLeft||0}}change(ae=20){return ae>0?this._change.pipe((0,k.e)(ae)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ae=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ae.innerWidth,height:ae.innerHeight}:{width:0,height:0}}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(F.t4),p.LFG(p.R0b),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),qe=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({}),Xt})(),$e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({imports:[J.vT,qe,J.vT,qe]}),Xt})()},12138:(at,et,v)=>{"use strict";v.d(et,{B8:()=>Pt,KL:()=>z,U5:()=>it,be:()=>Dt,gx:()=>vt,po:()=>Vt,st:()=>zt,u6:()=>J});var d=v(12687),p=v(40445),b=v(21281),T=v(29521),t=v(94650),A=v(83353),x=v(8929),U=v(21086),k=v(1059),D=v(7625);function P(Tt,At){1&Tt&&t.Hsn(0)}const F=["*"];let z=(()=>{class Tt{constructor(ft){this._elementRef=ft}focus(){this._elementRef.nativeElement.focus()}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.SBq))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Tt})(),J=(()=>{class Tt{constructor(ft){this.template=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.Rgc))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepLabel",""]]}),Tt})(),K=0;const vt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Dt=(()=>{class Tt{constructor(ft,Et){this._stepper=ft,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Et||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ft){this._editable=(0,b.Ig)(ft)}get optional(){return this._optional}set optional(ft){this._optional=(0,b.Ig)(ft)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ft){this._completedOverride=(0,b.Ig)(ft)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ft){this._customError=(0,b.Ig)(ft)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36((0,t.Gpc)(()=>Pt)),t.Y36(vt,8))},Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["cdk-step"]],contentQueries:function(ft,Et,Bt){if(1&ft&&t.Suo(Bt,J,5),2&ft){let Ft;t.iGM(Ft=t.CRH())&&(Et.stepLabel=Ft.first)}},viewQuery:function(ft,Et){if(1&ft&&t.Gf(t.Rgc,7),2&ft){let Bt;t.iGM(Bt=t.CRH())&&(Et.content=Bt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(ft,Et){1&ft&&(t.F$t(),t.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Tt})(),Pt=(()=>{class Tt{constructor(ft,Et,Bt){this._dir=ft,this._changeDetectorRef=Et,this._elementRef=Bt,this._destroyed=new x.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=K++}get linear(){return this._linear}set linear(ft){this._linear=(0,b.Ig)(ft)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ft){const Et=(0,b.su)(ft);this.steps&&this._steps?(this._isValidIndex(Et),this.selected?._markAsInteracted(),this._selectedIndex!==Et&&!this._anyControlsInvalidOrPending(Et)&&(Et>=this._selectedIndex||this.steps.toArray()[Et].editable)&&this._updateSelectedItemIndex(Et)):this._selectedIndex=Et}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ft){this.selectedIndex=ft&&this.steps?this.steps.toArray().indexOf(ft):-1}get orientation(){return this._orientation}set orientation(ft){this._orientation=ft,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ft)}ngAfterContentInit(){this._steps.changes.pipe((0,k.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(ft=>{this.steps.reset(ft.filter(Et=>Et._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,k.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(ft=>{this._sortedHeaders.reset(ft.toArray().sort((Et,Bt)=>Et._elementRef.nativeElement.compareDocumentPosition(Bt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new d.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,U.of)()).pipe((0,k.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(ft=>this._keyManager.withHorizontalOrientation(ft)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ft=>ft.reset()),this._stateChanged()}_getStepLabelId(ft){return`cdk-step-label-${this._groupId}-${ft}`}_getStepContentId(ft){return`cdk-step-content-${this._groupId}-${ft}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ft){const Et=ft-this._selectedIndex;return Et<0?"rtl"===this._layoutDirection()?"next":"previous":Et>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ft,Et="number"){const Bt=this.steps.toArray()[ft],Ft=this._isCurrentStep(ft);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,Ft):this._getGuidelineLogic(Bt,Ft,Et)}_getDefaultIndicatorLogic(ft,Et){return ft._showError()&&ft.hasError&&!Et?"error":!ft.completed||Et?"number":ft.editable?"edit":"done"}_getGuidelineLogic(ft,Et,Bt="number"){return ft._showError()&&ft.hasError&&!Et?"error":ft.completed&&!Et?"done":ft.completed&&Et?Bt:ft.editable&&Et?"edit":Bt}_isCurrentStep(ft){return this._selectedIndex===ft}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ft){const Et=this.steps.toArray();this.selectionChange.emit({selectedIndex:ft,previouslySelectedIndex:this._selectedIndex,selectedStep:Et[ft],previouslySelectedStep:Et[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ft):this._keyManager.updateActiveItem(ft),this._selectedIndex=ft,this._stateChanged()}_onKeydown(ft){const Et=(0,T.Vb)(ft),Bt=ft.keyCode,Ft=this._keyManager;null==Ft.activeItemIndex||Et||Bt!==T.L_&&Bt!==T.K5?Ft.onKeydown(ft):(this.selectedIndex=Ft.activeItemIndex,ft.preventDefault())}_anyControlsInvalidOrPending(ft){return!!(this._linear&&ft>=0)&&this.steps.toArray().slice(0,ft).some(Et=>{const Bt=Et.stepControl;return(Bt?Bt.invalid||Bt.pending||!Et.interacted:!Et.completed)&&!Et.optional&&!Et._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ft=this._elementRef.nativeElement,Et=(0,A.ht)();return ft===Et||ft.contains(Et)}_isValidIndex(ft){return ft>-1&&(!this.steps||ft{class Tt{constructor(ft){this._stepper=ft,this.type="submit"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Pt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.next()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),Vt=(()=>{class Tt{constructor(ft){this._stepper=ft,this.type="button"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Pt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.previous()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),it=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[p.vT]}),Tt})()},39349:(at,et,v)=>{"use strict";v.d(et,{IC:()=>z,Ky:()=>J,Lq:()=>P});var d=v(83353),p=v(94650),b=v(21281),T=v(68896),t=v(8929),A=v(23753),x=v(57138),U=v(7625),k=v(36895);const D=(0,d.i$)({passive:!0});let P=(()=>{class K{constructor(lt,vt){this._platform=lt,this._ngZone=vt,this._monitoredElements=new Map}monitor(lt){if(!this._platform.isBrowser)return T.E;const vt=(0,b.fI)(lt),Dt=this._monitoredElements.get(vt);if(Dt)return Dt.subject;const Pt=new t.xQ,zt="cdk-text-field-autofilled",Vt=it=>{"cdk-text-field-autofill-start"!==it.animationName||vt.classList.contains(zt)?"cdk-text-field-autofill-end"===it.animationName&&vt.classList.contains(zt)&&(vt.classList.remove(zt),this._ngZone.run(()=>Pt.next({target:it.target,isAutofilled:!1}))):(vt.classList.add(zt),this._ngZone.run(()=>Pt.next({target:it.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{vt.addEventListener("animationstart",Vt,D),vt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(vt,{subject:Pt,unlisten:()=>{vt.removeEventListener("animationstart",Vt,D)}}),Pt}stopMonitoring(lt){const vt=(0,b.fI)(lt),Dt=this._monitoredElements.get(vt);Dt&&(Dt.unlisten(),Dt.subject.complete(),vt.classList.remove("cdk-text-field-autofill-monitored"),vt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(vt))}ngOnDestroy(){this._monitoredElements.forEach((lt,vt)=>this.stopMonitoring(vt))}}return K.\u0275fac=function(lt){return new(lt||K)(p.LFG(d.t4),p.LFG(p.R0b))},K.\u0275prov=p.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),z=(()=>{class K{constructor(lt,vt,Dt,Pt){this._elementRef=lt,this._platform=vt,this._ngZone=Dt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=zt=>{this._hasFocus="focus"===zt.type},this._document=Pt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(lt){this._minRows=(0,b.su)(lt),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(lt){this._maxRows=(0,b.su)(lt),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(lt){lt=(0,b.Ig)(lt),this._enabled!==lt&&((this._enabled=lt)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(lt){this._cachedPlaceholderHeight=void 0,lt?this._textareaElement.setAttribute("placeholder",lt):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const lt=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.minHeight=lt)}_setMaxHeight(){const lt=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.maxHeight=lt)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const lt=this._getWindow();(0,A.R)(lt,"resize").pipe((0,x.e)(16),(0,U.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let lt=this._textareaElement.cloneNode(!1);lt.rows=1,lt.style.position="absolute",lt.style.visibility="hidden",lt.style.border="none",lt.style.padding="0",lt.style.height="",lt.style.minHeight="",lt.style.maxHeight="",lt.style.overflow="hidden",this._textareaElement.parentNode.appendChild(lt),this._cachedLineHeight=lt.clientHeight,lt.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const lt=this._textareaElement,vt=lt.style.marginBottom||"",Dt=this._platform.FIREFOX,Pt=Dt&&this._hasFocus,zt=Dt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Pt&&(lt.style.marginBottom=`${lt.clientHeight}px`),lt.classList.add(zt);const Vt=lt.scrollHeight-4;return lt.classList.remove(zt),Pt&&(lt.style.marginBottom=vt),Vt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const lt=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=lt}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(lt=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const vt=this._elementRef.nativeElement,Dt=vt.value;if(!lt&&this._minRows===this._previousMinRows&&Dt===this._previousValue)return;const Pt=this._measureScrollHeight(),zt=Math.max(Pt,this._cachedPlaceholderHeight||0);vt.style.height=`${zt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(vt)):setTimeout(()=>this._scrollToCaretPosition(vt))}),this._previousValue=Dt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(lt){const{selectionStart:vt,selectionEnd:Dt}=lt;!this._destroyed.isStopped&&this._hasFocus&<.setSelectionRange(vt,Dt)}}return K.\u0275fac=function(lt){return new(lt||K)(p.Y36(p.SBq),p.Y36(d.t4),p.Y36(p.R0b),p.Y36(k.K0,8))},K.\u0275dir=p.lG2({type:K,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(lt,vt){1<&&p.NdJ("input",function(){return vt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),K})(),J=(()=>{class K{}return K.\u0275fac=function(lt){return new(lt||K)},K.\u0275mod=p.oAB({type:K}),K.\u0275inj=p.cJS({}),K})()},57851:(at,et,v)=>{"use strict";v.d(et,{C2:()=>z,HI:()=>K,Hs:()=>At,Ud:()=>jt,VY:()=>J,XJ:()=>se,Xx:()=>Bt,_0:()=>Tt,cu:()=>ot,nZ:()=>be,rO:()=>vt});var d=v(95017),p=v(54715),b=v(8929),T=v(591),t=v(21086),A=v(72986),x=v(92198),U=v(7625),k=v(94650),D=v(21281),P=v(40445);class F{constructor(){this.expansionModel=new d.Ov(!0)}toggle(qe){this.expansionModel.toggle(this._trackByValue(qe))}expand(qe){this.expansionModel.select(this._trackByValue(qe))}collapse(qe){this.expansionModel.deselect(this._trackByValue(qe))}isExpanded(qe){return this.expansionModel.isSelected(this._trackByValue(qe))}toggleDescendants(qe){this.expansionModel.isSelected(this._trackByValue(qe))?this.collapseDescendants(qe):this.expandDescendants(qe)}collapseAll(){this.expansionModel.clear()}expandDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.select(...$e.map(Xt=>this._trackByValue(Xt)))}collapseDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.deselect(...$e.map(Xt=>this._trackByValue(Xt)))}_trackByValue(qe){return this.trackBy?this.trackBy(qe):qe}}class z extends F{constructor(qe,$e,Xt){super(),this.getLevel=qe,this.isExpandable=$e,this.options=Xt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(qe){const Xt=[];for(let Te=this.dataNodes.indexOf(qe)+1;Tethis._trackByValue(qe)))}}class J extends F{constructor(qe,$e){super(),this.getChildren=qe,this.options=$e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const qe=this.dataNodes.reduce(($e,Xt)=>[...$e,...this.getDescendants(Xt),Xt],[]);this.expansionModel.select(...qe.map($e=>this._trackByValue($e)))}getDescendants(qe){const $e=[];return this._getDescendants($e,qe),$e.splice(1)}_getDescendants(qe,$e){qe.push($e);const Xt=this.getChildren($e);Array.isArray(Xt)?Xt.forEach(Te=>this._getDescendants(qe,Te)):(0,p.b)(Xt)&&Xt.pipe((0,A.q)(1),(0,x.h)(Boolean)).subscribe(Te=>{for(const ae of Te)this._getDescendants(qe,ae)})}}const K=new k.OlP("CDK_TREE_NODE_OUTLET_NODE");let ot=(()=>{class Le{constructor($e,Xt){this.viewContainer=$e,this._node=Xt}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.s_b),k.Y36(K,8))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodeOutlet",""]]}),Le})();class lt{constructor(qe){this.$implicit=qe}}let vt=(()=>{class Le{constructor($e){this.template=$e}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.Rgc))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Le})(),Tt=(()=>{class Le{constructor($e,Xt){this._differs=$e,this._changeDetectorRef=Xt,this._onDestroy=new b.xQ,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource($e){this._dataSource!==$e&&this._switchDataSource($e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const $e=this._nodeDefs.filter(Xt=>!Xt.when);this._defaultNodeDef=$e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource($e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),$e||this._nodeOutlet.viewContainer.clear(),this._dataSource=$e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let $e;(0,d.Z9)(this._dataSource)?$e=this._dataSource.connect(this):(0,p.b)(this._dataSource)?$e=this._dataSource:Array.isArray(this._dataSource)&&($e=(0,t.of)(this._dataSource)),$e&&(this._dataSubscription=$e.pipe((0,U.R)(this._onDestroy)).subscribe(Xt=>this.renderNodeChanges(Xt)))}renderNodeChanges($e,Xt=this._dataDiffer,Te=this._nodeOutlet.viewContainer,ae){const Kt=Xt.diff($e);!Kt||(Kt.forEachOperation((de,Wt,re)=>{if(null==de.previousIndex)this.insertNode($e[re],re,Te,ae);else if(null==re)Te.remove(Wt),this._levels.delete(de.item);else{const De=Te.get(Wt);Te.move(De,re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef($e,Xt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ae=>ae.when&&ae.when(Xt,$e))||this._defaultNodeDef}insertNode($e,Xt,Te,ae){const Kt=this._getNodeDef($e,Xt),de=new lt($e);de.level=this.treeControl.getLevel?this.treeControl.getLevel($e):typeof ae<"u"&&this._levels.has(ae)?this._levels.get(ae)+1:0,this._levels.set($e,de.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(Kt.template,de,Xt),At.mostRecentTreeNode&&(At.mostRecentTreeNode.data=$e)}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.ZZ4),k.Y36(k.sBO))},Le.\u0275cmp=k.Xpm({type:Le,selectors:[["cdk-tree"]],contentQueries:function($e,Xt,Te){if(1&$e&&k.Suo(Te,vt,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt._nodeDefs=ae)}},viewQuery:function($e,Xt){if(1&$e&&k.Gf(ot,7),2&$e){let Te;k.iGM(Te=k.CRH())&&(Xt._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function($e,Xt){1&$e&&k.GkF(0,0)},dependencies:[ot],encapsulation:2}),Le})(),At=(()=>{class Le{constructor($e,Xt){this._elementRef=$e,this._tree=Xt,this._destroyed=new b.xQ,this._dataChanges=new b.xQ,Le.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role($e){this._elementRef.nativeElement.setAttribute("role",$e)}get data(){return this._data}set data($e){$e!==this._data&&(this._data=$e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ft(Le){let qe=Le.parentElement;for(;qe&&!Et(qe);)qe=qe.parentElement;return qe?qe.classList.contains("cdk-nested-tree-node")?(0,D.su)(qe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Le.mostRecentTreeNode===this&&(Le.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Le.mostRecentTreeNode=null,Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.SBq),k.Y36(Tt))},Le.\u0275dir=k.lG2({type:Le,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function($e,Xt){2&$e&&k.uIk("aria-expanded",Xt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Le})();function Et(Le){const qe=Le.classList;return!(!qe?.contains("cdk-nested-tree-node")&&!qe?.contains("cdk-tree"))}let Bt=(()=>{class Le extends At{constructor($e,Xt,Te){super($e,Xt),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const $e=this._tree.treeControl.getChildren(this.data);Array.isArray($e)?this.updateChildrenNodes($e):(0,p.b)($e)&&$e.pipe((0,U.R)(this._destroyed)).subscribe(Xt=>this.updateChildrenNodes(Xt)),this.nodeOutlet.changes.pipe((0,U.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes($e){const Xt=this._getNodeOutlet();$e&&(this._children=$e),Xt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Xt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const $e=this._getNodeOutlet();$e&&($e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const $e=this.nodeOutlet;return $e&&$e.find(Xt=>!Xt._node||Xt._node===this)}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.SBq),k.Y36(Tt),k.Y36(k.ZZ4))},Le.\u0275dir=k.lG2({type:Le,selectors:[["cdk-nested-tree-node"]],contentQueries:function($e,Xt,Te){if(1&$e&&k.Suo(Te,ot,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt.nodeOutlet=ae)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[k._Bn([{provide:At,useExisting:Le},{provide:K,useExisting:Le}]),k.qOj]}),Le})();const Ft=/([A-Za-z%]+)$/;let se=(()=>{class Le{constructor($e,Xt,Te,ae){this._treeNode=$e,this._tree=Xt,this._element=Te,this._dir=ae,this._destroyed=new b.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ae&&ae.change.pipe((0,U.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),$e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level($e){this._setLevelInput($e)}get indent(){return this._indent}set indent($e){this._setIndentInput($e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const $e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Xt=this._level??$e;return"number"==typeof Xt?`${Xt*this._indent}${this.indentUnits}`:null}_setPadding($e=!1){const Xt=this._paddingIndent();if(Xt!==this._currentPadding||$e){const Te=this._element.nativeElement,ae=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Kt="paddingLeft"===ae?"paddingRight":"paddingLeft";Te.style[ae]=Xt||"",Te.style[Kt]="",this._currentPadding=Xt}}_setLevelInput($e){this._level=(0,D.su)($e,null),this._setPadding()}_setIndentInput($e){let Xt=$e,Te="px";if("string"==typeof $e){const ae=$e.split(Ft);Xt=ae[0],Te=ae[1]||Te}this.indentUnits=Te,this._indent=(0,D.su)(Xt),this._setPadding()}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(At),k.Y36(Tt),k.Y36(k.SBq),k.Y36(P.Is,8))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Le})(),jt=(()=>{class Le{constructor($e,Xt){this._tree=$e,this._treeNode=Xt,this._recursive=!1}get recursive(){return this._recursive}set recursive($e){this._recursive=(0,D.Ig)($e)}_toggle($e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),$e.stopPropagation()}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(Tt),k.Y36(At))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function($e,Xt){1&$e&&k.NdJ("click",function(ae){return Xt._toggle(ae)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Le})(),be=(()=>{class Le{}return Le.\u0275fac=function($e){return new($e||Le)},Le.\u0275mod=k.oAB({type:Le}),Le.\u0275inj=k.cJS({}),Le})()},36895:(at,et,v)=>{"use strict";v.d(et,{Do:()=>Pt,ED:()=>Mc,EM:()=>Bc,H9:()=>ql,HT:()=>t,JF:()=>ks,JJ:()=>Nl,K0:()=>x,Mx:()=>Rn,NF:()=>_u,Nd:()=>zc,O5:()=>dr,Ov:()=>Cl,PC:()=>Wr,PM:()=>Mr,RF:()=>Zc,S$:()=>lt,V_:()=>D,Ye:()=>zt,b0:()=>Dt,bD:()=>gc,ez:()=>Rl,i8:()=>Dc,mk:()=>Qi,n9:()=>al,q:()=>b,qS:()=>Be,rS:()=>Rc,sg:()=>ir,tP:()=>Ns,uU:()=>xl,w_:()=>A});var d=v(94650);let p=null;function b(){return p}function t(Mt){p||(p=Mt)}class A{}const x=new d.OlP("DocumentToken");let U=(()=>{class Mt{historyGo(Gt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function k(){return(0,d.LFG)(P)}()},providedIn:"platform"}),Mt})();const D=new d.OlP("Location Initialized");let P=(()=>{class Mt extends U{constructor(Gt){super(),this._doc=Gt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return b().getBaseHref(this._doc)}onPopState(Gt){const Qe=b().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("popstate",Gt,!1),()=>Qe.removeEventListener("popstate",Gt)}onHashChange(Gt){const Qe=b().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("hashchange",Gt,!1),()=>Qe.removeEventListener("hashchange",Gt)}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(Gt){this.location.pathname=Gt}pushState(Gt,Qe,Ln){F()?this._history.pushState(Gt,Qe,Ln):this.location.hash=Ln}replaceState(Gt,Qe,Ln){F()?this._history.replaceState(Gt,Qe,Ln):this.location.hash=Ln}forward(){this._history.forward()}back(){this._history.back()}historyGo(Gt=0){this._history.go(Gt)}getState(){return this._history.state}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.LFG(x))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function z(){return new P((0,d.LFG)(x))}()},providedIn:"platform"}),Mt})();function F(){return!!window.history.pushState}function J(Mt,me){if(0==Mt.length)return me;if(0==me.length)return Mt;let Gt=0;return Mt.endsWith("/")&&Gt++,me.startsWith("/")&&Gt++,2==Gt?Mt+me.substring(1):1==Gt?Mt+me:Mt+"/"+me}function K(Mt){const me=Mt.match(/#|\?|$/),Gt=me&&me.index||Mt.length;return Mt.slice(0,Gt-("/"===Mt[Gt-1]?1:0))+Mt.slice(Gt)}function ot(Mt){return Mt&&"?"!==Mt[0]?"?"+Mt:Mt}let lt=(()=>{class Mt{historyGo(Gt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return(0,d.f3M)(Dt)},providedIn:"root"}),Mt})();const vt=new d.OlP("appBaseHref");let Dt=(()=>{class Mt extends lt{constructor(Gt,Qe){super(),this._platformLocation=Gt,this._removeListenerFns=[],this._baseHref=Qe??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(x).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Gt){this._removeListenerFns.push(this._platformLocation.onPopState(Gt),this._platformLocation.onHashChange(Gt))}getBaseHref(){return this._baseHref}prepareExternalUrl(Gt){return J(this._baseHref,Gt)}path(Gt=!1){const Qe=this._platformLocation.pathname+ot(this._platformLocation.search),Ln=this._platformLocation.hash;return Ln&&Gt?`${Qe}${Ln}`:Qe}pushState(Gt,Qe,Ln,It){const ce=this.prepareExternalUrl(Ln+ot(It));this._platformLocation.pushState(Gt,Qe,ce)}replaceState(Gt,Qe,Ln,It){const ce=this.prepareExternalUrl(Ln+ot(It));this._platformLocation.replaceState(Gt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Gt=0){this._platformLocation.historyGo?.(Gt)}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.LFG(U),d.LFG(vt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Pt=(()=>{class Mt extends lt{constructor(Gt,Qe){super(),this._platformLocation=Gt,this._baseHref="",this._removeListenerFns=[],null!=Qe&&(this._baseHref=Qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Gt){this._removeListenerFns.push(this._platformLocation.onPopState(Gt),this._platformLocation.onHashChange(Gt))}getBaseHref(){return this._baseHref}path(Gt=!1){let Qe=this._platformLocation.hash;return null==Qe&&(Qe="#"),Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(Gt){const Qe=J(this._baseHref,Gt);return Qe.length>0?"#"+Qe:Qe}pushState(Gt,Qe,Ln,It){let ce=this.prepareExternalUrl(Ln+ot(It));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(Gt,Qe,ce)}replaceState(Gt,Qe,Ln,It){let ce=this.prepareExternalUrl(Ln+ot(It));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(Gt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Gt=0){this._platformLocation.historyGo?.(Gt)}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.LFG(U),d.LFG(vt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),zt=(()=>{class Mt{constructor(Gt){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Gt;const Qe=this._locationStrategy.getBaseHref();this._baseHref=K(Tt(Qe)),this._locationStrategy.onPopState(Ln=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ln.state,type:Ln.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Gt=!1){return this.normalize(this._locationStrategy.path(Gt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Gt,Qe=""){return this.path()==this.normalize(Gt+ot(Qe))}normalize(Gt){return Mt.stripTrailingSlash(function it(Mt,me){return Mt&&me.startsWith(Mt)?me.substring(Mt.length):me}(this._baseHref,Tt(Gt)))}prepareExternalUrl(Gt){return Gt&&"/"!==Gt[0]&&(Gt="/"+Gt),this._locationStrategy.prepareExternalUrl(Gt)}go(Gt,Qe="",Ln=null){this._locationStrategy.pushState(Ln,"",Gt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(Gt+ot(Qe)),Ln)}replaceState(Gt,Qe="",Ln=null){this._locationStrategy.replaceState(Ln,"",Gt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(Gt+ot(Qe)),Ln)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Gt=0){this._locationStrategy.historyGo?.(Gt)}onUrlChange(Gt){return this._urlChangeListeners.push(Gt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(Gt);this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Gt="",Qe){this._urlChangeListeners.forEach(Ln=>Ln(Gt,Qe))}subscribe(Gt,Qe,Ln){return this._subject.subscribe({next:Gt,error:Qe,complete:Ln})}}return Mt.normalizeQueryParams=ot,Mt.joinWithSlash=J,Mt.stripTrailingSlash=K,Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.LFG(lt))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function Vt(){return new zt((0,d.LFG)(lt))}()},providedIn:"root"}),Mt})();function Tt(Mt){return Mt.replace(/\/index.html$/,"")}const At={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Percent=1]="Percent",ft[ft.Currency=2]="Currency",ft[ft.Scientific=3]="Scientific",ft))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),Ft=(()=>((Ft=Ft||{})[Ft.Narrow=0]="Narrow",Ft[Ft.Abbreviated=1]="Abbreviated",Ft[Ft.Wide=2]="Wide",Ft[Ft.Short=3]="Short",Ft))(),se=(()=>((se=se||{})[se.Short=0]="Short",se[se.Medium=1]="Medium",se[se.Long=2]="Long",se[se.Full=3]="Full",se))(),jt=(()=>((jt=jt||{})[jt.Decimal=0]="Decimal",jt[jt.Group=1]="Group",jt[jt.List=2]="List",jt[jt.PercentSign=3]="PercentSign",jt[jt.PlusSign=4]="PlusSign",jt[jt.MinusSign=5]="MinusSign",jt[jt.Exponential=6]="Exponential",jt[jt.SuperscriptingExponent=7]="SuperscriptingExponent",jt[jt.PerMille=8]="PerMille",jt[jt.Infinity=9]="Infinity",jt[jt.NaN=10]="NaN",jt[jt.TimeSeparator=11]="TimeSeparator",jt[jt.CurrencyDecimal=12]="CurrencyDecimal",jt[jt.CurrencyGroup=13]="CurrencyGroup",jt))();function Kt(Mt,me){return si((0,d.cg1)(Mt)[d.wAp.DateFormat],me)}function de(Mt,me){return si((0,d.cg1)(Mt)[d.wAp.TimeFormat],me)}function Wt(Mt,me){return si((0,d.cg1)(Mt)[d.wAp.DateTimeFormat],me)}function re(Mt,me){const Gt=(0,d.cg1)(Mt),Qe=Gt[d.wAp.NumberSymbols][me];if(typeof Qe>"u"){if(me===jt.CurrencyDecimal)return Gt[d.wAp.NumberSymbols][jt.Decimal];if(me===jt.CurrencyGroup)return Gt[d.wAp.NumberSymbols][jt.Group]}return Qe}function De(Mt,me){return(0,d.cg1)(Mt)[d.wAp.NumberFormats][me]}function un(Mt){if(!Mt[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Mt[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function si(Mt,me){for(let Gt=me;Gt>-1;Gt--)if(typeof Mt[Gt]<"u")return Mt[Gt];throw new Error("Locale data API: locale data undefined")}function Ke(Mt){const[me,Gt]=Mt.split(":");return{hours:+me,minutes:+Gt}}const kt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Jt={},oe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.ShortGMT=1]="ShortGMT",Ce[Ce.Long=2]="Long",Ce[Ce.Extended=3]="Extended",Ce))(),Oe=(()=>((Oe=Oe||{})[Oe.FullYear=0]="FullYear",Oe[Oe.Month=1]="Month",Oe[Oe.Date=2]="Date",Oe[Oe.Hours=3]="Hours",Oe[Oe.Minutes=4]="Minutes",Oe[Oe.Seconds=5]="Seconds",Oe[Oe.FractionalSeconds=6]="FractionalSeconds",Oe[Oe.Day=7]="Day",Oe))(),Dn=(()=>((Dn=Dn||{})[Dn.DayPeriods=0]="DayPeriods",Dn[Dn.Days=1]="Days",Dn[Dn.Months=2]="Months",Dn[Dn.Eras=3]="Eras",Dn))();function Sn(Mt,me,Gt,Qe){let Ln=function Re(Mt){if(gi(Mt))return Mt;if("number"==typeof Mt&&!isNaN(Mt))return new Date(Mt);if("string"==typeof Mt){if(Mt=Mt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Mt)){const[Ln,It=1,ce=1]=Mt.split("-").map(Ze=>+Ze);return mi(Ln,It-1,ce)}const Gt=parseFloat(Mt);if(!isNaN(Mt-Gt))return new Date(Gt);let Qe;if(Qe=Mt.match(kt))return function En(Mt){const me=new Date(0);let Gt=0,Qe=0;const Ln=Mt[8]?me.setUTCFullYear:me.setFullYear,It=Mt[8]?me.setUTCHours:me.setHours;Mt[9]&&(Gt=Number(Mt[9]+Mt[10]),Qe=Number(Mt[9]+Mt[11])),Ln.call(me,Number(Mt[1]),Number(Mt[2])-1,Number(Mt[3]));const ce=Number(Mt[4]||0)-Gt,Ze=Number(Mt[5]||0)-Qe,tn=Number(Mt[6]||0),bn=Math.floor(1e3*parseFloat("0."+(Mt[7]||0)));return It.call(me,ce,Ze,tn,bn),me}(Qe)}const me=new Date(Mt);if(!gi(me))throw new Error(`Unable to convert "${Mt}" into a date`);return me}(Mt);me=Li(Gt,me)||me;let Ze,ce=[];for(;me;){if(Ze=oe.exec(me),!Ze){ce.push(me);break}{ce=ce.concat(Ze.slice(1));const Jn=ce.pop();if(!Jn)break;me=Jn}}let tn=Ln.getTimezoneOffset();Qe&&(tn=Ne(Qe,tn),Ln=function he(Mt,me,Gt){const Qe=Gt?-1:1,Ln=Mt.getTimezoneOffset();return function Tn(Mt,me){return(Mt=new Date(Mt.getTime())).setMinutes(Mt.getMinutes()+me),Mt}(Mt,Qe*(Ne(me,Ln)-Ln))}(Ln,Qe,!0));let bn="";return ce.forEach(Jn=>{const Qn=function Xe(Mt){if(ye[Mt])return ye[Mt];let me;switch(Mt){case"G":case"GG":case"GGG":me=fn(Dn.Eras,Ft.Abbreviated);break;case"GGGG":me=fn(Dn.Eras,Ft.Wide);break;case"GGGGG":me=fn(Dn.Eras,Ft.Narrow);break;case"y":me=Gn(Oe.FullYear,1,0,!1,!0);break;case"yy":me=Gn(Oe.FullYear,2,0,!0,!0);break;case"yyy":me=Gn(Oe.FullYear,3,0,!1,!0);break;case"yyyy":me=Gn(Oe.FullYear,4,0,!1,!0);break;case"Y":me=Ot(1);break;case"YY":me=Ot(2,!0);break;case"YYY":me=Ot(3);break;case"YYYY":me=Ot(4);break;case"M":case"L":me=Gn(Oe.Month,1,1);break;case"MM":case"LL":me=Gn(Oe.Month,2,1);break;case"MMM":me=fn(Dn.Months,Ft.Abbreviated);break;case"MMMM":me=fn(Dn.Months,Ft.Wide);break;case"MMMMM":me=fn(Dn.Months,Ft.Narrow);break;case"LLL":me=fn(Dn.Months,Ft.Abbreviated,Bt.Standalone);break;case"LLLL":me=fn(Dn.Months,Ft.Wide,Bt.Standalone);break;case"LLLLL":me=fn(Dn.Months,Ft.Narrow,Bt.Standalone);break;case"w":me=wt(1);break;case"ww":me=wt(2);break;case"W":me=wt(1,!0);break;case"d":me=Gn(Oe.Date,1);break;case"dd":me=Gn(Oe.Date,2);break;case"c":case"cc":me=Gn(Oe.Day,1);break;case"ccc":me=fn(Dn.Days,Ft.Abbreviated,Bt.Standalone);break;case"cccc":me=fn(Dn.Days,Ft.Wide,Bt.Standalone);break;case"ccccc":me=fn(Dn.Days,Ft.Narrow,Bt.Standalone);break;case"cccccc":me=fn(Dn.Days,Ft.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":me=fn(Dn.Days,Ft.Abbreviated);break;case"EEEE":me=fn(Dn.Days,Ft.Wide);break;case"EEEEE":me=fn(Dn.Days,Ft.Narrow);break;case"EEEEEE":me=fn(Dn.Days,Ft.Short);break;case"a":case"aa":case"aaa":me=fn(Dn.DayPeriods,Ft.Abbreviated);break;case"aaaa":me=fn(Dn.DayPeriods,Ft.Wide);break;case"aaaaa":me=fn(Dn.DayPeriods,Ft.Narrow);break;case"b":case"bb":case"bbb":me=fn(Dn.DayPeriods,Ft.Abbreviated,Bt.Standalone,!0);break;case"bbbb":me=fn(Dn.DayPeriods,Ft.Wide,Bt.Standalone,!0);break;case"bbbbb":me=fn(Dn.DayPeriods,Ft.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":me=fn(Dn.DayPeriods,Ft.Abbreviated,Bt.Format,!0);break;case"BBBB":me=fn(Dn.DayPeriods,Ft.Wide,Bt.Format,!0);break;case"BBBBB":me=fn(Dn.DayPeriods,Ft.Narrow,Bt.Format,!0);break;case"h":me=Gn(Oe.Hours,1,-12);break;case"hh":me=Gn(Oe.Hours,2,-12);break;case"H":me=Gn(Oe.Hours,1);break;case"HH":me=Gn(Oe.Hours,2);break;case"m":me=Gn(Oe.Minutes,1);break;case"mm":me=Gn(Oe.Minutes,2);break;case"s":me=Gn(Oe.Seconds,1);break;case"ss":me=Gn(Oe.Seconds,2);break;case"S":me=Gn(Oe.FractionalSeconds,1);break;case"SS":me=Gn(Oe.FractionalSeconds,2);break;case"SSS":me=Gn(Oe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=We(Ce.Short);break;case"ZZZZZ":me=We(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=We(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=We(Ce.Long);break;default:return null}return ye[Mt]=me,me}(Jn);bn+=Qn?Qn(Ln,Gt,tn):"''"===Jn?"'":Jn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bn}function mi(Mt,me,Gt){const Qe=new Date(0);return Qe.setFullYear(Mt,me,Gt),Qe.setHours(0,0,0),Qe}function Li(Mt,me){const Gt=function be(Mt){return(0,d.cg1)(Mt)[d.wAp.LocaleId]}(Mt);if(Jt[Gt]=Jt[Gt]||{},Jt[Gt][me])return Jt[Gt][me];let Qe="";switch(me){case"shortDate":Qe=Kt(Mt,se.Short);break;case"mediumDate":Qe=Kt(Mt,se.Medium);break;case"longDate":Qe=Kt(Mt,se.Long);break;case"fullDate":Qe=Kt(Mt,se.Full);break;case"shortTime":Qe=de(Mt,se.Short);break;case"mediumTime":Qe=de(Mt,se.Medium);break;case"longTime":Qe=de(Mt,se.Long);break;case"fullTime":Qe=de(Mt,se.Full);break;case"short":const Ln=Li(Mt,"shortTime"),It=Li(Mt,"shortDate");Qe=ho(Wt(Mt,se.Short),[Ln,It]);break;case"medium":const ce=Li(Mt,"mediumTime"),Ze=Li(Mt,"mediumDate");Qe=ho(Wt(Mt,se.Medium),[ce,Ze]);break;case"long":const tn=Li(Mt,"longTime"),bn=Li(Mt,"longDate");Qe=ho(Wt(Mt,se.Long),[tn,bn]);break;case"full":const Jn=Li(Mt,"fullTime"),Qn=Li(Mt,"fullDate");Qe=ho(Wt(Mt,se.Full),[Jn,Qn])}return Qe&&(Jt[Gt][me]=Qe),Qe}function ho(Mt,me){return me&&(Mt=Mt.replace(/\{([^}]+)}/g,function(Gt,Qe){return null!=me&&Qe in me?me[Qe]:Gt})),Mt}function fi(Mt,me,Gt="-",Qe,Ln){let It="";(Mt<0||Ln&&Mt<=0)&&(Ln?Mt=1-Mt:(Mt=-Mt,It=Gt));let ce=String(Mt);for(;ce.length0||Ze>-Gt)&&(Ze+=Gt),Mt===Oe.Hours)0===Ze&&-12===Gt&&(Ze=12);else if(Mt===Oe.FractionalSeconds)return function Bn(Mt,me){return fi(Mt,3).substring(0,me)}(Ze,me);const tn=re(ce,jt.MinusSign);return fi(Ze,me,tn,Qe,Ln)}}function fn(Mt,me,Gt=Bt.Format,Qe=!1){return function(Ln,It){return function ze(Mt,me,Gt,Qe,Ln,It){switch(Gt){case Dn.Months:return function $e(Mt,me,Gt){const Qe=(0,d.cg1)(Mt),It=si([Qe[d.wAp.MonthsFormat],Qe[d.wAp.MonthsStandalone]],me);return si(It,Gt)}(me,Ln,Qe)[Mt.getMonth()];case Dn.Days:return function qe(Mt,me,Gt){const Qe=(0,d.cg1)(Mt),It=si([Qe[d.wAp.DaysFormat],Qe[d.wAp.DaysStandalone]],me);return si(It,Gt)}(me,Ln,Qe)[Mt.getDay()];case Dn.DayPeriods:const ce=Mt.getHours(),Ze=Mt.getMinutes();if(It){const bn=function Un(Mt){const me=(0,d.cg1)(Mt);return un(me),(me[d.wAp.ExtraData][2]||[]).map(Qe=>"string"==typeof Qe?Ke(Qe):[Ke(Qe[0]),Ke(Qe[1])])}(me),Jn=function oi(Mt,me,Gt){const Qe=(0,d.cg1)(Mt);un(Qe);const It=si([Qe[d.wAp.ExtraData][0],Qe[d.wAp.ExtraData][1]],me)||[];return si(It,Gt)||[]}(me,Ln,Qe),Qn=bn.findIndex(yi=>{if(Array.isArray(yi)){const[wi,vo]=yi,xo=ce>=wi.hours&&Ze>=wi.minutes,To=ce0?Math.floor(Ln/60):Math.ceil(Ln/60);switch(Mt){case Ce.Short:return(Ln>=0?"+":"")+fi(ce,2,It)+fi(Math.abs(Ln%60),2,It);case Ce.ShortGMT:return"GMT"+(Ln>=0?"+":"")+fi(ce,1,It);case Ce.Long:return"GMT"+(Ln>=0?"+":"")+fi(ce,2,It)+":"+fi(Math.abs(Ln%60),2,It);case Ce.Extended:return 0===Qe?"Z":(Ln>=0?"+":"")+fi(ce,2,It)+":"+fi(Math.abs(Ln%60),2,It);default:throw new Error(`Unknown zone width "${Mt}"`)}}}function Lt(Mt){return mi(Mt.getFullYear(),Mt.getMonth(),Mt.getDate()+(4-Mt.getDay()))}function wt(Mt,me=!1){return function(Gt,Qe){let Ln;if(me){const It=new Date(Gt.getFullYear(),Gt.getMonth(),1).getDay()-1,ce=Gt.getDate();Ln=1+Math.floor((ce+It)/7)}else{const It=Lt(Gt),ce=function je(Mt){const me=mi(Mt,0,1).getDay();return mi(Mt,0,1+(me<=4?4:11)-me)}(It.getFullYear()),Ze=It.getTime()-ce.getTime();Ln=1+Math.round(Ze/6048e5)}return fi(Ln,Mt,re(Qe,jt.MinusSign))}}function Ot(Mt,me=!1){return function(Gt,Qe){return fi(Lt(Gt).getFullYear(),Mt,re(Qe,jt.MinusSign),me)}}const ye={};function Ne(Mt,me){Mt=Mt.replace(/:/g,"");const Gt=Date.parse("Jan 01, 1970 00:00:00 "+Mt)/6e4;return isNaN(Gt)?me:Gt}function gi(Mt){return Mt instanceof Date&&!isNaN(Mt.valueOf())}const go=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ua(Mt,me,Gt,Qe,Ln,It,ce=!1){let Ze="",tn=!1;if(isFinite(Mt)){let bn=function Me(Mt){let Qe,Ln,It,ce,Ze,me=Math.abs(Mt)+"",Gt=0;for((Ln=me.indexOf("."))>-1&&(me=me.replace(".","")),(It=me.search(/e/i))>0?(Ln<0&&(Ln=It),Ln+=+me.slice(It+1),me=me.substring(0,It)):Ln<0&&(Ln=me.length),It=0;"0"===me.charAt(It);It++);if(It===(Ze=me.length))Qe=[0],Ln=1;else{for(Ze--;"0"===me.charAt(Ze);)Ze--;for(Ln-=It,Qe=[],ce=0;It<=Ze;It++,ce++)Qe[ce]=Number(me.charAt(It))}return Ln>22&&(Qe=Qe.splice(0,21),Gt=Ln-1,Ln=1),{digits:Qe,exponent:Gt,integerLen:Ln}}(Mt);ce&&(bn=function He(Mt){if(0===Mt.digits[0])return Mt;const me=Mt.digits.length-Mt.integerLen;return Mt.exponent?Mt.exponent+=2:(0===me?Mt.digits.push(0,0):1===me&&Mt.digits.push(0),Mt.integerLen+=2),Mt}(bn));let Jn=me.minInt,Qn=me.minFrac,yi=me.maxFrac;if(It){const sa=It.match(go);if(null===sa)throw new Error(`${It} is not a valid digit info`);const ha=sa[1],ts=sa[3],Hs=sa[5];null!=ha&&(Jn=tt(ha)),null!=ts&&(Qn=tt(ts)),null!=Hs?yi=tt(Hs):null!=ts&&Qn>yi&&(yi=Qn)}!function dn(Mt,me,Gt){if(me>Gt)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${Gt}).`);let Qe=Mt.digits,Ln=Qe.length-Mt.integerLen;const It=Math.min(Math.max(me,Ln),Gt);let ce=It+Mt.integerLen,Ze=Qe[ce];if(ce>0){Qe.splice(Math.max(Mt.integerLen,ce));for(let Qn=ce;Qn=5)if(ce-1<0){for(let Qn=0;Qn>ce;Qn--)Qe.unshift(0),Mt.integerLen++;Qe.unshift(1),Mt.integerLen++}else Qe[ce-1]++;for(;Ln=bn?vo.pop():tn=!1),yi>=10?1:0},0);Jn&&(Qe.unshift(Jn),Mt.integerLen++)}(bn,Qn,yi);let wi=bn.digits,vo=bn.integerLen;const xo=bn.exponent;let To=[];for(tn=wi.every(sa=>!sa);vo0?To=wi.splice(vo,wi.length):(To=wi,wi=[0]);const va=[];for(wi.length>=me.lgSize&&va.unshift(wi.splice(-me.lgSize,wi.length).join(""));wi.length>me.gSize;)va.unshift(wi.splice(-me.gSize,wi.length).join(""));wi.length&&va.unshift(wi.join("")),Ze=va.join(re(Gt,Qe)),To.length&&(Ze+=re(Gt,Ln)+To.join("")),xo&&(Ze+=re(Gt,jt.Exponential)+"+"+xo)}else Ze=re(Gt,jt.Infinity);return Ze=Mt<0&&!tn?me.negPre+Ze+me.negSuf:me.posPre+Ze+me.posSuf,Ze}function Fn(Mt,me="-"){const Gt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Qe=Mt.split(";"),Ln=Qe[0],It=Qe[1],ce=-1!==Ln.indexOf(".")?Ln.split("."):[Ln.substring(0,Ln.lastIndexOf("0")+1),Ln.substring(Ln.lastIndexOf("0")+1)],Ze=ce[0],tn=ce[1]||"";Gt.posPre=Ze.substring(0,Ze.indexOf("#"));for(let Jn=0;Jn{class Mt{constructor(Gt,Qe,Ln,It){this._iterableDiffers=Gt,this._keyValueDiffers=Qe,this._ngEl=Ln,this._renderer=It,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Gt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Gt?Gt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Gt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Gt?Gt.split(/\s+/):Gt,this._rawClass&&((0,d.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Gt=this._iterableDiffer.diff(this._rawClass);Gt&&this._applyIterableChanges(Gt)}else if(this._keyValueDiffer){const Gt=this._keyValueDiffer.diff(this._rawClass);Gt&&this._applyKeyValueChanges(Gt)}}_applyKeyValueChanges(Gt){Gt.forEachAddedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),Gt.forEachChangedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),Gt.forEachRemovedItem(Qe=>{Qe.previousValue&&this._toggleClass(Qe.key,!1)})}_applyIterableChanges(Gt){Gt.forEachAddedItem(Qe=>{if("string"!=typeof Qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,d.AaK)(Qe.item)}`);this._toggleClass(Qe.item,!0)}),Gt.forEachRemovedItem(Qe=>this._toggleClass(Qe.item,!1))}_applyClasses(Gt){Gt&&(Array.isArray(Gt)||Gt instanceof Set?Gt.forEach(Qe=>this._toggleClass(Qe,!0)):Object.keys(Gt).forEach(Qe=>this._toggleClass(Qe,!!Gt[Qe])))}_removeClasses(Gt){Gt&&(Array.isArray(Gt)||Gt instanceof Set?Gt.forEach(Qe=>this._toggleClass(Qe,!1)):Object.keys(Gt).forEach(Qe=>this._toggleClass(Qe,!1)))}_toggleClass(Gt,Qe){(Gt=Gt.trim())&&Gt.split(/\s+/g).forEach(Ln=>{Qe?this._renderer.addClass(this._ngEl.nativeElement,Ln):this._renderer.removeClass(this._ngEl.nativeElement,Ln)})}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Mt})();class us{constructor(me,Gt,Qe,Ln){this.$implicit=me,this.ngForOf=Gt,this.index=Qe,this.count=Ln}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ir=(()=>{class Mt{constructor(Gt,Qe,Ln){this._viewContainer=Gt,this._template=Qe,this._differs=Ln,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Gt){this._ngForOf=Gt,this._ngForOfDirty=!0}set ngForTrackBy(Gt){this._trackByFn=Gt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Gt){Gt&&(this._template=Gt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Gt=this._ngForOf;!this._differ&&Gt&&(this._differ=this._differs.find(Gt).create(this.ngForTrackBy))}if(this._differ){const Gt=this._differ.diff(this._ngForOf);Gt&&this._applyChanges(Gt)}}_applyChanges(Gt){const Qe=this._viewContainer;Gt.forEachOperation((Ln,It,ce)=>{if(null==Ln.previousIndex)Qe.createEmbeddedView(this._template,new us(Ln.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)Qe.remove(null===It?void 0:It);else if(null!==It){const Ze=Qe.get(It);Qe.move(Ze,ce),Or(Ze,Ln)}});for(let Ln=0,It=Qe.length;Ln{Or(Qe.get(Ln.currentIndex),Ln)})}static ngTemplateContextGuard(Gt,Qe){return!0}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Mt})();function Or(Mt,me){Mt.context.$implicit=me.item}let dr=(()=>{class Mt{constructor(Gt,Qe){this._viewContainer=Gt,this._context=new Gr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Qe}set ngIf(Gt){this._context.$implicit=this._context.ngIf=Gt,this._updateView()}set ngIfThen(Gt){Qr("ngIfThen",Gt),this._thenTemplateRef=Gt,this._thenViewRef=null,this._updateView()}set ngIfElse(Gt){Qr("ngIfElse",Gt),this._elseTemplateRef=Gt,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(Gt,Qe){return!0}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Mt})();class Gr{constructor(){this.$implicit=null,this.ngIf=null}}function Qr(Mt,me){if(me&&!me.createEmbeddedView)throw new Error(`${Mt} must be a TemplateRef, but received '${(0,d.AaK)(me)}'.`)}class Er{constructor(me,Gt){this._viewContainerRef=me,this._templateRef=Gt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Zc=(()=>{class Mt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Gt){this._ngSwitch=Gt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Gt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Gt)}_matchCase(Gt){const Qe=Gt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Qe}_updateDefaultCases(Gt){if(this._defaultViews&&Gt!==this._defaultUsed){this._defaultUsed=Gt;for(let Qe=0;Qe{class Mt{constructor(Gt,Qe,Ln){this.ngSwitch=Ln,Ln._addCase(),this._view=new Er(Gt,Qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Zc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Mt})(),Mc=(()=>{class Mt{constructor(Gt,Qe,Ln){Ln._addDefault(new Er(Gt,Qe))}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Zc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Mt})(),Wr=(()=>{class Mt{constructor(Gt,Qe,Ln){this._ngEl=Gt,this._differs=Qe,this._renderer=Ln,this._ngStyle=null,this._differ=null}set ngStyle(Gt){this._ngStyle=Gt,!this._differ&&Gt&&(this._differ=this._differs.find(Gt).create())}ngDoCheck(){if(this._differ){const Gt=this._differ.diff(this._ngStyle);Gt&&this._applyChanges(Gt)}}_setStyle(Gt,Qe){const[Ln,It]=Gt.split("."),ce=-1===Ln.indexOf("-")?void 0:d.JOm.DashCase;null!=Qe?this._renderer.setStyle(this._ngEl.nativeElement,Ln,It?`${Qe}${It}`:Qe,ce):this._renderer.removeStyle(this._ngEl.nativeElement,Ln,ce)}_applyChanges(Gt){Gt.forEachRemovedItem(Qe=>this._setStyle(Qe.key,null)),Gt.forEachAddedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue)),Gt.forEachChangedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue))}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Mt})(),Ns=(()=>{class Mt{constructor(Gt){this._viewContainerRef=Gt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Gt){if(Gt.ngTemplateOutlet||Gt.ngTemplateOutletInjector){const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ln,ngTemplateOutletContext:It,ngTemplateOutletInjector:ce}=this;this._viewRef=Qe.createEmbeddedView(Ln,It,ce?{injector:ce}:void 0)}else this._viewRef=null}else this._viewRef&&Gt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.s_b))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),Mt})();function hr(Mt,me){return new d.vHH(2100,!1)}class nu{createSubscription(me,Gt){return me.subscribe({next:Gt,error:Qe=>{throw Qe}})}dispose(me){me.unsubscribe()}}class c1{createSubscription(me,Gt){return me.then(Gt,Qe=>{throw Qe})}dispose(me){}}const hc=new c1,bl=new nu;let Cl=(()=>{class Mt{constructor(Gt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Gt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Gt){return this._obj?Gt!==this._obj?(this._dispose(),this.transform(Gt)):this._latestValue:(Gt&&this._subscribe(Gt),this._latestValue)}_subscribe(Gt){this._obj=Gt,this._strategy=this._selectStrategy(Gt),this._subscription=this._strategy.createSubscription(Gt,Qe=>this._updateLatestValue(Gt,Qe))}_selectStrategy(Gt){if((0,d.QGY)(Gt))return hc;if((0,d.F4k)(Gt))return bl;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Gt,Qe){Gt===this._obj&&(this._latestValue=Qe,this._ref.markForCheck())}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.sBO,16))},Mt.\u0275pipe=d.Yjl({name:"async",type:Mt,pure:!1,standalone:!0}),Mt})(),Dc=(()=>{class Mt{transform(Gt){if(null==Gt)return null;if("string"!=typeof Gt)throw hr();return Gt.toLowerCase()}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)},Mt.\u0275pipe=d.Yjl({name:"lowercase",type:Mt,pure:!0,standalone:!0}),Mt})();const Ys=/(?:[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;let Rc=(()=>{class Mt{transform(Gt){if(null==Gt)return null;if("string"!=typeof Gt)throw hr();return Gt.replace(Ys,Qe=>Qe[0].toUpperCase()+Qe.slice(1).toLowerCase())}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)},Mt.\u0275pipe=d.Yjl({name:"titlecase",type:Mt,pure:!0,standalone:!0}),Mt})();const Bs=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let xl=(()=>{class Mt{constructor(Gt,Qe){this.locale=Gt,this.defaultTimezone=Qe}transform(Gt,Qe="mediumDate",Ln,It){if(null==Gt||""===Gt||Gt!=Gt)return null;try{return Sn(Gt,Qe,It||this.locale,Ln??this.defaultTimezone??void 0)}catch(ce){throw hr()}}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.soG,16),d.Y36(Bs,24))},Mt.\u0275pipe=d.Yjl({name:"date",type:Mt,pure:!0,standalone:!0}),Mt})(),zc=(()=>{class Mt{constructor(Gt){this.differs=Gt,this.keyValues=[],this.compareFn=Zs}transform(Gt,Qe=Zs){if(!Gt||!(Gt instanceof Map)&&"object"!=typeof Gt)return null;this.differ||(this.differ=this.differs.find(Gt).create());const Ln=this.differ.diff(Gt),It=Qe!==this.compareFn;return Ln&&(this.keyValues=[],Ln.forEachItem(ce=>{this.keyValues.push(function Gs(Mt,me){return{key:Mt,value:me}}(ce.key,ce.currentValue))})),(Ln||It)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.aQg,16))},Mt.\u0275pipe=d.Yjl({name:"keyvalue",type:Mt,pure:!1,standalone:!0}),Mt})();function Zs(Mt,me){const Gt=Mt.key,Qe=me.key;if(Gt===Qe)return 0;if(void 0===Gt)return 1;if(void 0===Qe)return-1;if(null===Gt)return 1;if(null===Qe)return-1;if("string"==typeof Gt&&"string"==typeof Qe)return Gt{class Mt{constructor(Gt){this._locale=Gt}transform(Gt,Qe,Ln){if(!Ro(Gt))return null;Ln=Ln||this._locale;try{return function Je(Mt,me,Gt){return ua(Mt,Fn(De(me,ft.Decimal),re(me,jt.MinusSign)),me,jt.Group,jt.Decimal,Gt)}(or(Gt),Ln,Qe)}catch(It){throw hr()}}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.soG,16))},Mt.\u0275pipe=d.Yjl({name:"number",type:Mt,pure:!0,standalone:!0}),Mt})(),ql=(()=>{class Mt{constructor(Gt,Qe="USD"){this._locale=Gt,this._defaultCurrencyCode=Qe}transform(Gt,Qe=this._defaultCurrencyCode,Ln="symbol",It,ce){if(!Ro(Gt))return null;ce=ce||this._locale,"boolean"==typeof Ln&&(Ln=Ln?"symbol":"code");let Ze=Qe||this._defaultCurrencyCode;"code"!==Ln&&(Ze="symbol"===Ln||"symbol-narrow"===Ln?function ne(Mt,me,Gt="en"){const Qe=function gn(Mt){return(0,d.cg1)(Mt)[d.wAp.Currencies]}(Gt)[Mt]||At[Mt]||[],Ln=Qe[1];return"narrow"===me&&"string"==typeof Ln?Ln:Qe[0]||Mt}(Ze,"symbol"===Ln?"wide":"narrow",ce):Ln);try{return function qa(Mt,me,Gt,Qe,Ln){const ce=Fn(De(me,ft.Currency),re(me,jt.MinusSign));return ce.minFrac=function nt(Mt){let me;const Gt=At[Mt];return Gt&&(me=Gt[2]),"number"==typeof me?me:2}(Qe),ce.maxFrac=ce.minFrac,ua(Mt,ce,me,jt.CurrencyGroup,jt.CurrencyDecimal,Ln).replace("\xa4",Gt).replace("\xa4","").trim()}(or(Gt),ce,Ze,Qe,It)}catch(tn){throw hr()}}}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)(d.Y36(d.soG,16),d.Y36(d.EJc,16))},Mt.\u0275pipe=d.Yjl({name:"currency",type:Mt,pure:!0,standalone:!0}),Mt})();function Ro(Mt){return!(null==Mt||""===Mt||Mt!=Mt)}function or(Mt){if("string"==typeof Mt&&!isNaN(Number(Mt)-parseFloat(Mt)))return Number(Mt);if("number"!=typeof Mt)throw new Error(`${Mt} is not a number`);return Mt}let Rl=(()=>{class Mt{}return Mt.\u0275fac=function(Gt){return new(Gt||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({}),Mt})();const gc="browser";function _u(Mt){return Mt===gc}function Mr(Mt){return"server"===Mt}let Bc=(()=>{class Mt{}return Mt.\u0275prov=(0,d.Yz7)({token:Mt,providedIn:"root",factory:()=>new vs((0,d.LFG)(x),window)}),Mt})();class vs{constructor(me,Gt){this.document=me,this.window=Gt,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const Gt=function ar(Mt,me){const Gt=Mt.getElementById(me)||Mt.getElementsByName(me)[0];if(Gt)return Gt;if("function"==typeof Mt.createTreeWalker&&Mt.body&&(Mt.body.createShadowRoot||Mt.body.attachShadow)){const Qe=Mt.createTreeWalker(Mt.body,NodeFilter.SHOW_ELEMENT);let Ln=Qe.currentNode;for(;Ln;){const It=Ln.shadowRoot;if(It){const ce=It.getElementById(me)||It.querySelector(`[name="${me}"]`);if(ce)return ce}Ln=Qe.nextNode()}}return null}(this.document,me);Gt&&(this.scrollToElement(Gt),Gt.focus())}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const Gt=this.window.history;Gt&&Gt.scrollRestoration&&(Gt.scrollRestoration=me)}}scrollToElement(me){const Gt=me.getBoundingClientRect(),Qe=Gt.left+this.window.pageXOffset,Ln=Gt.top+this.window.pageYOffset,It=this.offset();this.window.scrollTo(Qe-It[0],Ln-It[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=bc(this.window.history)||bc(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function bc(Mt){return Object.getOwnPropertyDescriptor(Mt,"scrollRestoration")}class ks{}},80529:(at,et,v)=>{"use strict";v.d(et,{JF:()=>nt,LE:()=>vt,PG:()=>U,TP:()=>qe,Zn:()=>se,eN:()=>be});var d=v(36895),p=v(94650),b=v(21086),T=v(56498),t=v(21406),A=v(92198),x=v(24850);class U{}class k{}class D{constructor(Ce){this.normalizedNames=new Map,this.lazyUpdate=null,Ce?this.lazyInit="string"==typeof Ce?()=>{this.headers=new Map,Ce.split("\n").forEach(Oe=>{const Dn=Oe.indexOf(":");if(Dn>0){const Sn=Oe.slice(0,Dn),mi=Sn.toLowerCase(),Li=Oe.slice(Dn+1).trim();this.maybeSetNormalizedName(Sn,mi),this.headers.has(mi)?this.headers.get(mi).push(Li):this.headers.set(mi,[Li])}})}:()=>{this.headers=new Map,Object.keys(Ce).forEach(Oe=>{let Dn=Ce[Oe];const Sn=Oe.toLowerCase();"string"==typeof Dn&&(Dn=[Dn]),Dn.length>0&&(this.headers.set(Sn,Dn),this.maybeSetNormalizedName(Oe,Sn))})}:this.headers=new Map}has(Ce){return this.init(),this.headers.has(Ce.toLowerCase())}get(Ce){this.init();const Oe=this.headers.get(Ce.toLowerCase());return Oe&&Oe.length>0?Oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ce){return this.init(),this.headers.get(Ce.toLowerCase())||null}append(Ce,Oe){return this.clone({name:Ce,value:Oe,op:"a"})}set(Ce,Oe){return this.clone({name:Ce,value:Oe,op:"s"})}delete(Ce,Oe){return this.clone({name:Ce,value:Oe,op:"d"})}maybeSetNormalizedName(Ce,Oe){this.normalizedNames.has(Oe)||this.normalizedNames.set(Oe,Ce)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ce=>this.applyUpdate(Ce)),this.lazyUpdate=null))}copyFrom(Ce){Ce.init(),Array.from(Ce.headers.keys()).forEach(Oe=>{this.headers.set(Oe,Ce.headers.get(Oe)),this.normalizedNames.set(Oe,Ce.normalizedNames.get(Oe))})}clone(Ce){const Oe=new D;return Oe.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,Oe.lazyUpdate=(this.lazyUpdate||[]).concat([Ce]),Oe}applyUpdate(Ce){const Oe=Ce.name.toLowerCase();switch(Ce.op){case"a":case"s":let Dn=Ce.value;if("string"==typeof Dn&&(Dn=[Dn]),0===Dn.length)return;this.maybeSetNormalizedName(Ce.name,Oe);const Sn=("a"===Ce.op?this.headers.get(Oe):void 0)||[];Sn.push(...Dn),this.headers.set(Oe,Sn);break;case"d":const mi=Ce.value;if(mi){let Li=this.headers.get(Oe);if(!Li)return;Li=Li.filter(ho=>-1===mi.indexOf(ho)),0===Li.length?(this.headers.delete(Oe),this.normalizedNames.delete(Oe)):this.headers.set(Oe,Li)}else this.headers.delete(Oe),this.normalizedNames.delete(Oe)}}forEach(Ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Oe=>Ce(this.normalizedNames.get(Oe),this.headers.get(Oe)))}}class F{encodeKey(Ce){return ot(Ce)}encodeValue(Ce){return ot(Ce)}decodeKey(Ce){return decodeURIComponent(Ce)}decodeValue(Ce){return decodeURIComponent(Ce)}}const J=/%(\d[a-f0-9])/gi,K={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ot(oe){return encodeURIComponent(oe).replace(J,(Ce,Oe)=>K[Oe]??Ce)}function lt(oe){return`${oe}`}class vt{constructor(Ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ce.encoder||new F,Ce.fromString){if(Ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(oe,Ce){const Oe=new Map;return oe.length>0&&oe.replace(/^\?/,"").split("&").forEach(Sn=>{const mi=Sn.indexOf("="),[Li,ho]=-1==mi?[Ce.decodeKey(Sn),""]:[Ce.decodeKey(Sn.slice(0,mi)),Ce.decodeValue(Sn.slice(mi+1))],fi=Oe.get(Li)||[];fi.push(ho),Oe.set(Li,fi)}),Oe}(Ce.fromString,this.encoder)}else Ce.fromObject?(this.map=new Map,Object.keys(Ce.fromObject).forEach(Oe=>{const Dn=Ce.fromObject[Oe],Sn=Array.isArray(Dn)?Dn.map(lt):[lt(Dn)];this.map.set(Oe,Sn)})):this.map=null}has(Ce){return this.init(),this.map.has(Ce)}get(Ce){this.init();const Oe=this.map.get(Ce);return Oe?Oe[0]:null}getAll(Ce){return this.init(),this.map.get(Ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ce,Oe){return this.clone({param:Ce,value:Oe,op:"a"})}appendAll(Ce){const Oe=[];return Object.keys(Ce).forEach(Dn=>{const Sn=Ce[Dn];Array.isArray(Sn)?Sn.forEach(mi=>{Oe.push({param:Dn,value:mi,op:"a"})}):Oe.push({param:Dn,value:Sn,op:"a"})}),this.clone(Oe)}set(Ce,Oe){return this.clone({param:Ce,value:Oe,op:"s"})}delete(Ce,Oe){return this.clone({param:Ce,value:Oe,op:"d"})}toString(){return this.init(),this.keys().map(Ce=>{const Oe=this.encoder.encodeKey(Ce);return this.map.get(Ce).map(Dn=>Oe+"="+this.encoder.encodeValue(Dn)).join("&")}).filter(Ce=>""!==Ce).join("&")}clone(Ce){const Oe=new vt({encoder:this.encoder});return Oe.cloneFrom=this.cloneFrom||this,Oe.updates=(this.updates||[]).concat(Ce),Oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ce=>this.map.set(Ce,this.cloneFrom.map.get(Ce))),this.updates.forEach(Ce=>{switch(Ce.op){case"a":case"s":const Oe=("a"===Ce.op?this.map.get(Ce.param):void 0)||[];Oe.push(lt(Ce.value)),this.map.set(Ce.param,Oe);break;case"d":if(void 0===Ce.value){this.map.delete(Ce.param);break}{let Dn=this.map.get(Ce.param)||[];const Sn=Dn.indexOf(lt(Ce.value));-1!==Sn&&Dn.splice(Sn,1),Dn.length>0?this.map.set(Ce.param,Dn):this.map.delete(Ce.param)}}}),this.cloneFrom=this.updates=null)}}class Pt{constructor(){this.map=new Map}set(Ce,Oe){return this.map.set(Ce,Oe),this}get(Ce){return this.map.has(Ce)||this.map.set(Ce,Ce.defaultValue()),this.map.get(Ce)}delete(Ce){return this.map.delete(Ce),this}has(Ce){return this.map.has(Ce)}keys(){return this.map.keys()}}function Vt(oe){return typeof ArrayBuffer<"u"&&oe instanceof ArrayBuffer}function it(oe){return typeof Blob<"u"&&oe instanceof Blob}function Tt(oe){return typeof FormData<"u"&&oe instanceof FormData}class ft{constructor(Ce,Oe,Dn,Sn){let mi;if(this.url=Oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ce.toUpperCase(),function zt(oe){switch(oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Sn?(this.body=void 0!==Dn?Dn:null,mi=Sn):mi=Dn,mi&&(this.reportProgress=!!mi.reportProgress,this.withCredentials=!!mi.withCredentials,mi.responseType&&(this.responseType=mi.responseType),mi.headers&&(this.headers=mi.headers),mi.context&&(this.context=mi.context),mi.params&&(this.params=mi.params)),this.headers||(this.headers=new D),this.context||(this.context=new Pt),this.params){const Li=this.params.toString();if(0===Li.length)this.urlWithParams=Oe;else{const ho=Oe.indexOf("?");this.urlWithParams=Oe+(-1===ho?"?":hoYe.set(fn,Ce.setHeaders[fn]),fi)),Ce.setParams&&(Bn=Object.keys(Ce.setParams).reduce((Ye,fn)=>Ye.set(fn,Ce.setParams[fn]),Bn)),new ft(Oe,Dn,mi,{params:Bn,headers:fi,context:Gn,reportProgress:ho,responseType:Sn,withCredentials:Li})}}var Et=(()=>((Et=Et||{})[Et.Sent=0]="Sent",Et[Et.UploadProgress=1]="UploadProgress",Et[Et.ResponseHeader=2]="ResponseHeader",Et[Et.DownloadProgress=3]="DownloadProgress",Et[Et.Response=4]="Response",Et[Et.User=5]="User",Et))();class Bt{constructor(Ce,Oe=200,Dn="OK"){this.headers=Ce.headers||new D,this.status=void 0!==Ce.status?Ce.status:Oe,this.statusText=Ce.statusText||Dn,this.url=Ce.url||null,this.ok=this.status>=200&&this.status<300}}class Ft extends Bt{constructor(Ce={}){super(Ce),this.type=Et.ResponseHeader}clone(Ce={}){return new Ft({headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class se extends Bt{constructor(Ce={}){super(Ce),this.type=Et.Response,this.body=void 0!==Ce.body?Ce.body:null}clone(Ce={}){return new se({body:void 0!==Ce.body?Ce.body:this.body,headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class jt extends Bt{constructor(Ce){super(Ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ce.url||"(unknown url)"}`:`Http failure response for ${Ce.url||"(unknown url)"}: ${Ce.status} ${Ce.statusText}`,this.error=Ce.error||null}}function ve(oe,Ce){return{body:Ce,headers:oe.headers,context:oe.context,observe:oe.observe,params:oe.params,reportProgress:oe.reportProgress,responseType:oe.responseType,withCredentials:oe.withCredentials}}let be=(()=>{class oe{constructor(Oe){this.handler=Oe}request(Oe,Dn,Sn={}){let mi;if(Oe instanceof ft)mi=Oe;else{let fi,Bn;fi=Sn.headers instanceof D?Sn.headers:new D(Sn.headers),Sn.params&&(Bn=Sn.params instanceof vt?Sn.params:new vt({fromObject:Sn.params})),mi=new ft(Oe,Dn,void 0!==Sn.body?Sn.body:null,{headers:fi,context:Sn.context,params:Bn,reportProgress:Sn.reportProgress,responseType:Sn.responseType||"json",withCredentials:Sn.withCredentials})}const Li=(0,b.of)(mi).pipe((0,t.b)(fi=>this.handler.handle(fi)));if(Oe instanceof ft||"events"===Sn.observe)return Li;const ho=Li.pipe((0,A.h)(fi=>fi instanceof se));switch(Sn.observe||"body"){case"body":switch(mi.responseType){case"arraybuffer":return ho.pipe((0,x.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return fi.body}));case"blob":return ho.pipe((0,x.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof Blob))throw new Error("Response is not a Blob.");return fi.body}));case"text":return ho.pipe((0,x.U)(fi=>{if(null!==fi.body&&"string"!=typeof fi.body)throw new Error("Response is not a string.");return fi.body}));default:return ho.pipe((0,x.U)(fi=>fi.body))}case"response":return ho;default:throw new Error(`Unreachable: unhandled observe type ${Sn.observe}}`)}}delete(Oe,Dn={}){return this.request("DELETE",Oe,Dn)}get(Oe,Dn={}){return this.request("GET",Oe,Dn)}head(Oe,Dn={}){return this.request("HEAD",Oe,Dn)}jsonp(Oe,Dn){return this.request("JSONP",Oe,{params:(new vt).append(Dn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Oe,Dn={}){return this.request("OPTIONS",Oe,Dn)}patch(Oe,Dn,Sn={}){return this.request("PATCH",Oe,ve(Sn,Dn))}post(Oe,Dn,Sn={}){return this.request("POST",Oe,ve(Sn,Dn))}put(Oe,Dn,Sn={}){return this.request("PUT",Oe,ve(Sn,Dn))}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(U))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Le{constructor(Ce,Oe){this.next=Ce,this.interceptor=Oe}handle(Ce){return this.interceptor.intercept(Ce,this.next)}}const qe=new p.OlP("HTTP_INTERCEPTORS");let $e=(()=>{class oe{intercept(Oe,Dn){return Dn.handle(Oe)}}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const _n=/^\)\]\}',?\n/;let gn=(()=>{class oe{constructor(Oe){this.xhrFactory=Oe}handle(Oe){if("JSONP"===Oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Dn=>{const Sn=this.xhrFactory.build();if(Sn.open(Oe.method,Oe.urlWithParams),Oe.withCredentials&&(Sn.withCredentials=!0),Oe.headers.forEach((ze,We)=>Sn.setRequestHeader(ze,We.join(","))),Oe.headers.has("Accept")||Sn.setRequestHeader("Accept","application/json, text/plain, */*"),!Oe.headers.has("Content-Type")){const ze=Oe.detectContentTypeHeader();null!==ze&&Sn.setRequestHeader("Content-Type",ze)}if(Oe.responseType){const ze=Oe.responseType.toLowerCase();Sn.responseType="json"!==ze?ze:"text"}const mi=Oe.serializeBody();let Li=null;const ho=()=>{if(null!==Li)return Li;const ze=Sn.statusText||"OK",We=new D(Sn.getAllResponseHeaders()),en=function Ae(oe){return"responseURL"in oe&&oe.responseURL?oe.responseURL:/^X-Request-URL:/m.test(oe.getAllResponseHeaders())?oe.getResponseHeader("X-Request-URL"):null}(Sn)||Oe.url;return Li=new Ft({headers:We,status:Sn.status,statusText:ze,url:en}),Li},fi=()=>{let{headers:ze,status:We,statusText:en,url:le}=ho(),je=null;204!==We&&(je=typeof Sn.response>"u"?Sn.responseText:Sn.response),0===We&&(We=je?200:0);let Lt=We>=200&&We<300;if("json"===Oe.responseType&&"string"==typeof je){const wt=je;je=je.replace(_n,"");try{je=""!==je?JSON.parse(je):null}catch(Ot){je=wt,Lt&&(Lt=!1,je={error:Ot,text:je})}}Lt?(Dn.next(new se({body:je,headers:ze,status:We,statusText:en,url:le||void 0})),Dn.complete()):Dn.error(new jt({error:je,headers:ze,status:We,statusText:en,url:le||void 0}))},Bn=ze=>{const{url:We}=ho(),en=new jt({error:ze,status:Sn.status||0,statusText:Sn.statusText||"Unknown Error",url:We||void 0});Dn.error(en)};let Gn=!1;const Ye=ze=>{Gn||(Dn.next(ho()),Gn=!0);let We={type:Et.DownloadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),"text"===Oe.responseType&&!!Sn.responseText&&(We.partialText=Sn.responseText),Dn.next(We)},fn=ze=>{let We={type:Et.UploadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),Dn.next(We)};return Sn.addEventListener("load",fi),Sn.addEventListener("error",Bn),Sn.addEventListener("timeout",Bn),Sn.addEventListener("abort",Bn),Oe.reportProgress&&(Sn.addEventListener("progress",Ye),null!==mi&&Sn.upload&&Sn.upload.addEventListener("progress",fn)),Sn.send(mi),Dn.next({type:Et.Sent}),()=>{Sn.removeEventListener("error",Bn),Sn.removeEventListener("abort",Bn),Sn.removeEventListener("load",fi),Sn.removeEventListener("timeout",Bn),Oe.reportProgress&&(Sn.removeEventListener("progress",Ye),null!==mi&&Sn.upload&&Sn.upload.removeEventListener("progress",fn)),Sn.readyState!==Sn.DONE&&Sn.abort()}})}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(d.JF))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const we=new p.OlP("XSRF_COOKIE_NAME"),un=new p.OlP("XSRF_HEADER_NAME");class Un{}let oi=(()=>{class oe{constructor(Oe,Dn,Sn){this.doc=Oe,this.platform=Dn,this.cookieName=Sn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Oe=this.doc.cookie||"";return Oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(Oe,this.cookieName),this.lastCookieString=Oe),this.lastToken}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(we))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),vi=(()=>{class oe{constructor(Oe,Dn){this.tokenService=Oe,this.headerName=Dn}intercept(Oe,Dn){const Sn=Oe.url.toLowerCase();if("GET"===Oe.method||"HEAD"===Oe.method||Sn.startsWith("http://")||Sn.startsWith("https://"))return Dn.handle(Oe);const mi=this.tokenService.getToken();return null!==mi&&!Oe.headers.has(this.headerName)&&(Oe=Oe.clone({headers:Oe.headers.set(this.headerName,mi)})),Dn.handle(Oe)}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(Un),p.LFG(un))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),si=(()=>{class oe{constructor(Oe,Dn){this.backend=Oe,this.injector=Dn,this.chain=null}handle(Oe){if(null===this.chain){const Dn=this.injector.get(qe,[]);this.chain=Dn.reduceRight((Sn,mi)=>new Le(Sn,mi),this.backend)}return this.chain.handle(Oe)}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(k),p.LFG(p.zs3))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),ct=(()=>{class oe{static disable(){return{ngModule:oe,providers:[{provide:vi,useClass:$e}]}}static withOptions(Oe={}){return{ngModule:oe,providers:[Oe.cookieName?{provide:we,useValue:Oe.cookieName}:[],Oe.headerName?{provide:un,useValue:Oe.headerName}:[]]}}}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[vi,{provide:qe,useExisting:vi,multi:!0},{provide:Un,useClass:oi},{provide:we,useValue:"XSRF-TOKEN"},{provide:un,useValue:"X-XSRF-TOKEN"}]}),oe})(),nt=(()=>{class oe{}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[be,{provide:U,useClass:si},gn,{provide:k,useExisting:gn}],imports:[ct.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),oe})()},94650:(at,et,v)=>{"use strict";v.d(et,{$8M:()=>Id,$Z:()=>Os,AFp:()=>dx,ALo:()=>zC,AaK:()=>U,AsE:()=>sf,B6R:()=>je,BQk:()=>Mh,CHM:()=>hu,CRH:()=>WC,CZH:()=>r3,CqO:()=>Np,D6c:()=>Wx,DdM:()=>NC,Dn7:()=>$5,EJc:()=>gx,EiD:()=>Bf,EpF:()=>ep,F$t:()=>Dh,F4k:()=>k0,FYo:()=>jg,FiY:()=>tc,G48:()=>Nx,Gf:()=>rv,GfV:()=>Qg,GkF:()=>nf,Gpc:()=>P,Gre:()=>Rp,HOy:()=>q0,Hsn:()=>C4,Ikx:()=>Z4,JOm:()=>_1,JVY:()=>Lg,Jf7:()=>um,KtG:()=>Qs,L6k:()=>D_,LAX:()=>Rm,LFG:()=>Dr,LSH:()=>Ig,Lbi:()=>_x,Lck:()=>Yh,MAs:()=>g4,MGl:()=>af,MMx:()=>_a,NdJ:()=>np,O4$:()=>Ei,OlP:()=>Tr,Oqu:()=>y4,PXZ:()=>Px,Q6J:()=>v4,QGY:()=>kh,QP$:()=>gi,QbO:()=>wv,Qsj:()=>J3,R0b:()=>Kd,RDi:()=>xd,Rgc:()=>Vh,SBq:()=>q_,Sil:()=>bx,Suo:()=>QC,TTD:()=>iu,TgZ:()=>Zh,Tol:()=>Ib,Udp:()=>p5,VKq:()=>B5,W1O:()=>cv,WFA:()=>s5,WLB:()=>qC,XFs:()=>si,Xpm:()=>le,Xts:()=>P2,Y36:()=>_r,YKP:()=>I4,YNc:()=>r5,Yjl:()=>Tn,Yz7:()=>de,Z0I:()=>on,ZZ4:()=>l6,_Bn:()=>q5,_UZ:()=>Z0,_Vd:()=>Hm,_c5:()=>GA,_uU:()=>A4,aQg:()=>g3,c2e:()=>fx,cJS:()=>re,cg1:()=>Oc,d8E:()=>y5,dDg:()=>Zx,dqk:()=>Sn,dwT:()=>Nh,eBb:()=>Og,eFA:()=>zp,ekj:()=>E0,eoX:()=>Mx,evT:()=>Kf,f3M:()=>hp,g9A:()=>mx,gM2:()=>H4,h0i:()=>_f,hGG:()=>jA,hij:()=>N0,iGM:()=>j4,ifc:()=>Dn,ip1:()=>Av,jDz:()=>R5,kL8:()=>M4,kYT:()=>ye,kcU:()=>u1,lG2:()=>Ne,lcZ:()=>ca,lnq:()=>f5,lqb:()=>$i,lri:()=>Ux,mCW:()=>B1,n5z:()=>Ks,n_E:()=>Md,oAB:()=>Ot,oJD:()=>sm,oxw:()=>Tb,pB0:()=>Y1,q3G:()=>oc,qLn:()=>lm,qOj:()=>xm,qZA:()=>U0,qzn:()=>rm,rWj:()=>Pv,s9C:()=>P0,sBO:()=>Nv,sIi:()=>_i,s_b:()=>K0,soG:()=>c3,tb:()=>yv,tp0:()=>N1,uIk:()=>du,uOi:()=>O_,vHH:()=>K,vpe:()=>id,wAp:()=>Ma,xi3:()=>Q0,xp6:()=>Bm,ynx:()=>M0,z2F:()=>m3,z3N:()=>Zu,zSh:()=>ss,zs3:()=>Vm});var d=v(8929),p=v(42654),b=v(56498),T=v(36787),t=v(12474);function A(h){for(let g in h)if(h[g]===A)return g;throw Error("Could not find renamed property on target object.")}function x(h,g){for(const w in g)g.hasOwnProperty(w)&&!h.hasOwnProperty(w)&&(h[w]=g[w])}function U(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(U).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const w=g.indexOf("\n");return-1===w?g:g.substring(0,w)}function k(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const D=A({__forward_ref__:A});function P(h){return h.__forward_ref__=P,h.toString=function(){return U(this())},h}function F(h){return z(h)?h():h}function z(h){return"function"==typeof h&&h.hasOwnProperty(D)&&h.__forward_ref__===P}class K extends Error{constructor(g,w){super(function ot(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,w)),this.code=g}}function lt(h){return"string"==typeof h?h:null==h?"":String(h)}function Vt(h,g){throw new K(-201,!1)}function $e(h,g){null==h&&function Xt(h,g,w,O){throw new Error(`ASSERTION ERROR: ${h}`+(null==O?"":` [Expected=> ${w} ${O} ${g} <=Actual]`))}(g,h,null,"!=")}function de(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function re(h){return{providers:h.providers||[],imports:h.imports||[]}}function De(h){return _n(h,un)||_n(h,oi)}function on(h){return null!==De(h)}function _n(h,g){return h.hasOwnProperty(g)?h[g]:null}function we(h){return h&&(h.hasOwnProperty(Un)||h.hasOwnProperty(vi))?h[Un]:null}const un=A({\u0275prov:A}),Un=A({\u0275inj:A}),oi=A({ngInjectableDef:A}),vi=A({ngInjectorDef:A});var si=(()=>((si=si||{})[si.Default=0]="Default",si[si.Host=1]="Host",si[si.Self=2]="Self",si[si.SkipSelf=4]="SkipSelf",si[si.Optional=8]="Optional",si))();let Ke;function ct(h){const g=Ke;return Ke=h,g}function nt(h,g,w){const O=De(h);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:w&si.Optional?null:void 0!==g?g:void Vt(U(h))}function Jt(h){return{toString:h}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Dn=(()=>{return(h=Dn||(Dn={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Dn;var h})();const Sn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ho={},fi=[],Bn=A({\u0275cmp:A}),Gn=A({\u0275dir:A}),Ye=A({\u0275pipe:A}),fn=A({\u0275mod:A}),ze=A({\u0275fac:A}),We=A({__NG_ELEMENT_ID__:A});let en=0;function le(h){return Jt(()=>{const w=!0===h.standalone,O={},q={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:O,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||fi,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Dn.Emulated,id:"c"+en++,styles:h.styles||fi,_:null,setInput:null,schemas:h.schemas||null,tView:null},V=h.dependencies,ut=h.features;return q.inputs=Xe(h.inputs,O),q.outputs=Xe(h.outputs),ut&&ut.forEach(Ut=>Ut(q)),q.directiveDefs=V?()=>("function"==typeof V?V():V).map(Lt).filter(wt):null,q.pipeDefs=V?()=>("function"==typeof V?V():V).map(En).filter(wt):null,q})}function je(h,g,w){const O=h.\u0275cmp;O.directiveDefs=()=>("function"==typeof g?g():g).map(Lt),O.pipeDefs=()=>("function"==typeof w?w():w).map(En)}function Lt(h){return he(h)||Re(h)}function wt(h){return null!==h}function Ot(h){return Jt(()=>({type:h.type,bootstrap:h.bootstrap||fi,declarations:h.declarations||fi,imports:h.imports||fi,exports:h.exports||fi,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function ye(h,g){return Jt(()=>{const w=go(h,!0);w.declarations=g.declarations||fi,w.imports=g.imports||fi,w.exports=g.exports||fi})}function Xe(h,g){if(null==h)return ho;const w={};for(const O in h)if(h.hasOwnProperty(O)){let q=h[O],V=q;Array.isArray(q)&&(V=q[1],q=q[0]),w[q]=O,g&&(g[q]=V)}return w}const Ne=le;function Tn(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function he(h){return h[Bn]||null}function Re(h){return h[Gn]||null}function En(h){return h[Ye]||null}function gi(h){const g=he(h)||Re(h)||En(h);return null!==g&&g.standalone}function go(h,g){const w=h[fn]||null;if(!w&&!0===g)throw new Error(`Type ${U(h)} does not have '\u0275mod' property.`);return w}const Q=18;function Qr(h){return Array.isArray(h)&&"object"==typeof h[1]}function Er(h){return Array.isArray(h)&&!0===h[1]}function Zc(h){return 0!=(8&h.flags)}function al(h){return 2==(2&h.flags)}function Mc(h){return 1==(1&h.flags)}function Is(h){return null!==h.template}function kc(h){return 0!=(256&h[2])}function Zs(h,g){return h.hasOwnProperty(ze)?h[ze]:null}class Nl{constructor(g,w,O){this.previousValue=g,this.currentValue=w,this.firstChange=O}isFirstChange(){return this.firstChange}}function iu(){return ql}function ql(h){return h.type.prototype.ngOnChanges&&(h.setInput=or),Ro}function Ro(){const h=Iu(this),g=h?.current;if(g){const w=h.previous;if(w===ho)h.previous=g;else for(let O in g)w[O]=g[O];h.current=null,this.ngOnChanges(g)}}function or(h,g,w,O){const q=Iu(h)||function Rl(h,g){return h[lc]=g}(h,{previous:ho,current:null}),V=q.current||(q.current={}),ut=q.previous,Ut=this.declaredInputs[w],Ht=ut[Ut];V[Ut]=new Nl(Ht&&Ht.currentValue,g,ut===ho),h[O]=g}iu.ngInherit=!0;const lc="__ngSimpleChanges__";function Iu(h){return h[lc]||null}function pr(h){for(;Array.isArray(h);)h=h[0];return h}function bc(h,g){return pr(g[h])}function ar(h,g){return pr(g[h.index])}function ks(h,g){return h.data[g]}function qs(h,g){return h[g]}function bs(h,g){const w=g[h];return Qr(w)?w:w[0]}function Rs(h){return 64==(64&h[2])}function uc(h,g){return null==g?null:h[g]}function Js(h){h[Q]=0}function Fr(h,g){h[5]+=g;let w=h,O=h[3];for(;null!==O&&(1===g&&1===w[5]||-1===g&&0===w[5]);)O[5]+=g,w=O,O=O[3]}const ra={lFrame:_t(null),bindingsEnabled:!0};function Cc(){return ra.bindingsEnabled}function Bi(){return ra.lFrame.lView}function Pa(){return ra.lFrame.tView}function hu(h){return ra.lFrame.contextLView=h,h[8]}function Qs(h){return ra.lFrame.contextLView=null,h}function kr(){let h=pe();for(;null!==h&&64===h.type;)h=h.parent;return h}function pe(){return ra.lFrame.currentTNode}function qt(h,g){const w=ra.lFrame;w.currentTNode=h,w.isParent=g}function rt(){return ra.lFrame.isParent}function ki(){ra.lFrame.isParent=!1}function Ir(){const h=ra.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function Nr(){return ra.lFrame.bindingIndex}function tr(){return ra.lFrame.bindingIndex++}function Tl(h){const g=ra.lFrame,w=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,w}function Jp(h,g){const w=ra.lFrame;w.bindingIndex=w.bindingRootIndex=h,au(g)}function au(h){ra.lFrame.currentDirectiveIndex=h}function Sc(h){const g=ra.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function sl(){return ra.lFrame.currentQueryIndex}function wl(h){ra.lFrame.currentQueryIndex=h}function _p(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function Ul(h,g,w){if(w&si.SkipSelf){let q=g,V=h;for(;!(q=q.parent,null!==q||w&si.Host||(q=_p(V),null===q||(V=V[15],10&q.type))););if(null===q)return!1;g=q,h=V}const O=ra.lFrame=Yi();return O.currentTNode=g,O.lView=h,!0}function cl(h){const g=Yi(),w=h[1];ra.lFrame=g,g.currentTNode=w.firstChild,g.lView=h,g.tView=w,g.contextLView=h,g.bindingIndex=w.bindingStartIndex,g.inI18n=!1}function Yi(){const h=ra.lFrame,g=null===h?null:h.child;return null===g?_t(h):g}function _t(h){const g={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:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function ru(){const h=ra.lFrame;return ra.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const gu=ru;function Ua(){const h=ru();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function qr(){return ra.lFrame.selectedIndex}function ws(h){ra.lFrame.selectedIndex=h}function Ra(){const h=ra.lFrame;return ks(h.tView,h.selectedIndex)}function Ei(){ra.lFrame.currentNamespace="svg"}function u1(){!function zl(){ra.lFrame.currentNamespace=null}()}function Pi(h,g){for(let w=g.directiveStart,O=g.directiveEnd;w=O)break}else g[Ht]<0&&(h[Q]+=65536),(Ut>11>16&&(3&h[2])===g){h[2]+=2048;try{V.call(Ut)}finally{}}}else try{V.call(Ut)}finally{}}class vu{constructor(g,w,O){this.factory=g,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=O}}function Qe(h,g,w){let O=0;for(;Og){ut=V-1;break}}}for(;V>16}(h),O=g;for(;w>0;)O=O[15],w--;return O}let yi=!0;function wi(h){const g=yi;return yi=h,g}let va=0;const sa={};function ts(h,g){const w=es(h,g);if(-1!==w)return w;const O=g[1];O.firstCreatePass&&(h.injectorIndex=g.length,Hs(O.data,h),Hs(g,null),Hs(O.blueprint,null));const q=ns(h,g),V=h.injectorIndex;if(tn(q)){const ut=bn(q),Ut=Qn(q,g),Ht=Ut[1].data;for(let ge=0;ge<8;ge++)g[V+ge]=Ut[ut+ge]|Ht[ut+ge]}return g[V+8]=q,V}function Hs(h,g){h.push(0,0,0,0,0,0,0,0,g)}function es(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function ns(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let w=0,O=null,q=g;for(;null!==q;){if(O=Ds(q),null===O)return-1;if(w++,q=q[15],-1!==O.injectorIndex)return O.injectorIndex|w<<16}return-1}function ps(h,g,w){!function ha(h,g,w){let O;"string"==typeof w?O=w.charCodeAt(0)||0:w.hasOwnProperty(We)&&(O=w[We]),null==O&&(O=w[We]=va++);const q=255&O;g.data[h+(q>>5)]|=1<=0?255&g:xc:g}(w);if("function"==typeof V){if(!Ul(g,h,O))return O&si.Host?$s(q,0,O):Lc(g,w,O,q);try{const ut=V(O);if(null!=ut||O&si.Optional)return ut;Vt()}finally{gu()}}else if("number"==typeof V){let ut=null,Ut=es(h,g),Ht=-1,ge=O&si.Host?g[16][6]:null;for((-1===Ut||O&si.SkipSelf)&&(Ht=-1===Ut?ns(h,g):g[Ut+8],-1!==Ht&&$a(O,!1)?(ut=g[1],Ut=bn(Ht),g=Qn(Ht,g)):Ut=-1);-1!==Ut;){const Ge=g[1];if(Qp(V,Ut,Ge.data)){const Cn=rr(Ut,g,w,ut,O,ge);if(Cn!==sa)return Cn}Ht=g[Ut+8],-1!==Ht&&$a(O,g[1].data[Ut+8]===ge)&&Qp(V,Ut,g)?(ut=Ge,Ut=bn(Ht),g=Qn(Ht,g)):Ut=-1}}return q}function rr(h,g,w,O,q,V){const ut=g[1],Ut=ut.data[h+8],Ge=sr(Ut,ut,w,null==O?al(Ut)&&yi:O!=ut&&0!=(3&Ut.type),q&si.Host&&V===Ut);return null!==Ge?Cs(g,ut,Ge,Ut):sa}function sr(h,g,w,O,q){const V=h.providerIndexes,ut=g.data,Ut=1048575&V,Ht=h.directiveStart,Ge=V>>20,ai=q?Ut+Ge:h.directiveEnd;for(let Ai=O?Ut:Ut+Ge;Ai=Ht&&Vi.type===w)return Ai}if(q){const Ai=ut[Ht];if(Ai&&Is(Ai)&&Ai.type===w)return Ht}return null}function Cs(h,g,w,O){let q=h[w];const V=g.data;if(function Ws(h){return h instanceof vu}(q)){const ut=q;ut.resolving&&function Dt(h,g){const w=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new K(-200,`Circular dependency in DI detected for ${h}${w}`)}(function vt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():lt(h)}(V[w]));const Ut=wi(ut.canSeeViewProviders);ut.resolving=!0;const Ht=ut.injectImpl?ct(ut.injectImpl):null;Ul(h,O,si.Default);try{q=h[w]=ut.factory(void 0,V,h,O),g.firstCreatePass&&w>=O.directiveStart&&function Di(h,g,w){const{ngOnChanges:O,ngOnInit:q,ngDoCheck:V}=g.type.prototype;if(O){const ut=ql(g);(w.preOrderHooks||(w.preOrderHooks=[])).push(h,ut),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,ut)}q&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-h,q),V&&((w.preOrderHooks||(w.preOrderHooks=[])).push(h,V),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,V))}(w,V[w],g)}finally{null!==Ht&&ct(Ht),wi(Ut),ut.resolving=!1,gu()}}return q}function Qp(h,g,w){return!!(w[g+(h>>5)]&1<{const g=h.prototype.constructor,w=g[ze]||bu(g),O=Object.prototype;let q=Object.getPrototypeOf(h.prototype).constructor;for(;q&&q!==O;){const V=q[ze]||bu(q);if(V&&V!==w)return V;q=Object.getPrototypeOf(q)}return V=>new V})}function bu(h){return z(h)?()=>{const g=bu(F(h));return g&&g()}:Zs(h)}function Ds(h){const g=h[1],w=g.type;return 2===w?g.declTNode:1===w?h[6]:null}function Id(h){return function Rr(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const w=h.attrs;if(w){const O=w.length;let q=0;for(;q{const O=function os(h){return function(...w){if(h){const O=h(...w);for(const q in O)this[q]=O[q]}}}(g);function q(...V){if(this instanceof q)return O.apply(this,V),this;const ut=new q(...V);return Ut.annotation=ut,Ut;function Ut(Ht,ge,Ge){const Cn=Ht.hasOwnProperty(Hu)?Ht[Hu]:Object.defineProperty(Ht,Hu,{value:[]})[Hu];for(;Cn.length<=Ge;)Cn.push(null);return(Cn[Ge]=Cn[Ge]||[]).push(ut),Ht}}return w&&(q.prototype=Object.create(w.prototype)),q.prototype.ngMetadataName=h,q.annotationCls=q,q})}class Tr{constructor(g,w){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=de({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function jo(h,g){void 0===g&&(g=h);for(let w=0;wArray.isArray(w)?gd(w,g):g(w))}function f_(h,g,w){g>=h.length?h.push(w):h.splice(g,0,w)}function fp(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function Nd(h,g){const w=[];for(let O=0;O=0?h[1|O]=w:(O=~O,function bt(h,g,w,O){let q=h.length;if(q==g)h.push(w,O);else if(1===q)h.push(O,h[0]),h[0]=w;else{for(q--,h.push(h[q-1],h[q]);q>g;)h[q]=h[q-2],q--;h[g]=w,h[g+1]=O}}(h,O,g,w)),O}function ke(h,g){const w=kn(h,g);if(w>=0)return h[1|w]}function kn(h,g){return function Fi(h,g,w){let O=0,q=h.length>>w;for(;q!==O;){const V=O+(q-O>>1),ut=h[V<g?q=V:O=V+1}return~(q<((_1=_1||{})[_1.Important=1]="Important",_1[_1.DashCase=2]="DashCase",_1))();const Xp=new Map;let Df=0;const Tu="__ngContext__";function Ss(h,g){Qr(g)?(h[Tu]=g[20],function Cg(h){Xp.set(h[20],h)}(g)):h[Tu]=g}function Sf(h,g){return undefined(h,g)}function T_(h){const g=h[3];return Er(g)?g[3]:g}function Lf(h){return Zg(h[13])}function A2(h){return Zg(h[4])}function Zg(h){for(;null!==h&&!Er(h);)h=h[4];return h}function Uu(h,g,w,O,q){if(null!=O){let V,ut=!1;Er(O)?V=O:Qr(O)&&(ut=!0,O=O[0]);const Ut=pr(O);0===h&&null!==w?null==q?te(g,w,Ut):xs(g,w,Ut,q||null,!0):1===h&&null!==w?xs(g,w,Ut,q||null,!0):2===h?function g1(h,g,w){const O=em(h,g);O&&function kg(h,g,w,O){h.removeChild(g,w,O)}(h,O,g,w)}(g,Ut,ut):3===h&&g.destroyNode(Ut),null!=V&&function Cr(h,g,w,O,q){const V=w[7];V!==pr(w)&&Uu(g,h,O,V,q);for(let Ut=10;Ut0&&(h[w-1][4]=O[4]);const V=fp(h,10+g);!function Ef(h,g){As(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(O[1],O);const ut=V[19];null!==ut&&ut.detachView(V[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Xo(h,g){if(!(128&g[2])){const w=g[11];w.destroyNode&&As(h,g,w,3,null,null),function Em(h){let g=h[13];if(!g)return Ap(h[1],h);for(;g;){let w=null;if(Qr(g))w=g[13];else{const O=g[10];O&&(w=O)}if(!w){for(;g&&!g[4]&&g!==h;)Qr(g)&&Ap(g[1],g),g=g[3];null===g&&(g=h),Qr(g)&&Ap(g[1],g),w=g&&g[4]}g=w}}(g)}}function Ap(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function U_(h,g){let w;if(null!=h&&null!=(w=h.destroyHooks))for(let O=0;O=0?O[q=ge]():O[q=-ge].unsubscribe(),V+=2}else{const ut=O[q=w[V+1]];w[V].call(ut)}if(null!==O){for(let V=q+1;Vh,createScript:h=>h,createScriptURL:h=>h})}catch{}return z1}()?.createHTML(h)||h}function xd(h){v1=h}function Vd(){if(void 0===b1&&(b1=null,Sn.trustedTypes))try{b1=Sn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return b1}function Vl(h){return Vd()?.createHTML(h)||h}function M_(h){return Vd()?.createScriptURL(h)||h}class C1{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class M2 extends C1{getTypeName(){return"HTML"}}class Pg extends C1{getTypeName(){return"Style"}}class x1 extends C1{getTypeName(){return"Script"}}class Sg extends C1{getTypeName(){return"URL"}}class qf extends C1{getTypeName(){return"ResourceURL"}}function Zu(h){return h instanceof C1?h.changingThisBreaksApplicationSecurity:h}function rm(h,g){const w=function k_(h){return h instanceof C1&&h.getTypeName()||null}(h);if(null!=w&&w!==g){if("ResourceURL"===w&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===g}function Lg(h){return new M2(h)}function D_(h){return new Pg(h)}function Og(h){return new x1(h)}function Rm(h){return new Sg(h)}function Y1(h){return new qf(h)}class Mu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const w=(new window.DOMParser).parseFromString(rs(g),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(g):(w.removeChild(w.firstChild),w)}catch{return null}}}class ml{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const O=this.inertDocument.createElement("body");w.appendChild(O)}}getInertBodyElement(g){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=rs(g),w;const O=this.inertDocument.createElement("body");return O.innerHTML=rs(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(g){const w=g.attributes;for(let q=w.length-1;0"),!0}endElement(g){const w=g.nodeName.toLowerCase();Vu.hasOwnProperty(w)&&!ku.hasOwnProperty(w)&&(this.buf.push(""))}chars(g){this.buf.push(Yf(g))}checkClobberedElement(g,w){if(w&&(g.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return w}}const zf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L_=/([^\#-~ |!])/g;function Yf(h){return h.replace(/&/g,"&").replace(zf,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(L_,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let D2;function Bf(h,g){let w=null;try{D2=D2||function Rf(h){const g=new ml(h);return function Gd(){try{return!!(new window.DOMParser).parseFromString(rs(""),"text/html")}catch{return!1}}()?new Mu(g):g}(h);let O=g?String(g):"";w=D2.getInertBodyElement(O);let q=5,V=O;do{if(0===q)throw new Error("Failed to sanitize html because the input is unstable");q--,O=V,V=w.innerHTML,w=D2.getInertBodyElement(O)}while(O!==V);return rs((new Eg).sanitizeChildren(A1(w)||w))}finally{if(w){const O=A1(w)||w;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function A1(h){return"content"in h&&function H3(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var oc=(()=>((oc=oc||{})[oc.NONE=0]="NONE",oc[oc.HTML=1]="HTML",oc[oc.STYLE=2]="STYLE",oc[oc.SCRIPT=3]="SCRIPT",oc[oc.URL=4]="URL",oc[oc.RESOURCE_URL=5]="RESOURCE_URL",oc))();function sm(h){const g=ia();return g?Vl(g.sanitize(oc.HTML,h)||""):rm(h,"HTML")?Vl(Zu(h)):Bf(function qm(){return void 0!==v1?v1:typeof document<"u"?document:void 0}(),lt(h))}function Ig(h){const g=ia();return g?g.sanitize(oc.URL,h)||"":rm(h,"URL")?Zu(h):B1(lt(h))}function O_(h){const g=ia();if(g)return M_(g.sanitize(oc.RESOURCE_URL,h)||"");if(rm(h,"ResourceURL"))return M_(Zu(h));throw new K(904,!1)}function ia(){const h=Bi();return h&&h[12]}const P2=new Tr("ENVIRONMENT_INITIALIZER"),Hg=new Tr("INJECTOR",-1),V1=new Tr("INJECTOR_DEF_TYPES");class ju{get(g,w=da){if(w===da){const O=new Error(`NullInjectorError: No provider for ${U(g)}!`);throw O.name="NullInjectorError",O}return w}}function $c(...h){return{\u0275providers:jf(0,h)}}function jf(h,...g){const w=[],O=new Set;let q;return gd(g,V=>{const ut=V;Yg(ut,w,[],O)&&(q||(q=[]),q.push(ut))}),void 0!==q&&zg(q,w),w}function zg(h,g){for(let w=0;w{g.push(V)})}}function Yg(h,g,w,O){if(!(h=F(h)))return!1;let q=null,V=we(h);const ut=!V&&he(h);if(V||ut){if(ut&&!ut.standalone)return!1;q=h}else{const Ht=h.ngModule;if(V=we(Ht),!V)return!1;q=Ht}const Ut=O.has(q);if(ut){if(Ut)return!1;if(O.add(q),ut.dependencies){const Ht="function"==typeof ut.dependencies?ut.dependencies():ut.dependencies;for(const ge of Ht)Yg(ge,g,w,O)}}else{if(!V)return!1;{if(null!=V.imports&&!Ut){let ge;O.add(q);try{gd(V.imports,Ge=>{Yg(Ge,g,w,O)&&(ge||(ge=[]),ge.push(Ge))})}finally{}void 0!==ge&&zg(ge,g)}if(!Ut){const ge=Zs(q)||(()=>new q);g.push({provide:q,useFactory:ge,deps:fi},{provide:V1,useValue:q,multi:!0},{provide:P2,useValue:()=>Dr(q),multi:!0})}const Ht=V.providers;null==Ht||Ut||gd(Ht,Ge=>{g.push(Ge)})}}return q!==h&&void 0!==h.providers}const Bg=A({provide:String,useValue:A});function y1(h){return null!==h&&"object"==typeof h&&Bg in h}function Du(h){return"function"==typeof h}const ss=new Tr("Set Injector scope."),Gl={},_s={};let Jd;function G1(){return void 0===Jd&&(Jd=new ju),Jd}class $i{}class Tp extends $i{constructor(g,w,O,q){super(),this.parent=w,this.source=O,this.scopes=q,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vg(g,ut=>this.processProvider(ut)),this.records.set(Hg,Oi(void 0,this)),q.has("environment")&&this.records.set($i,Oi(void 0,this));const V=this.records.get(ss);null!=V&&"string"==typeof V.value&&this.scopes.add(V.value),this.injectorDefTypes=new Set(this.get(V1.multi,fi,si.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const w=Ac(this),O=ct(void 0);try{return g()}finally{Ac(w),ct(O)}}get(g,w=da,O=si.Default){this.assertNotDestroyed();const q=Ac(this),V=ct(void 0);try{if(!(O&si.SkipSelf)){let Ut=this.records.get(g);if(void 0===Ut){const Ht=function Jf(h){return"function"==typeof h||"object"==typeof h&&h instanceof Tr}(g)&&De(g);Ut=Ht&&this.injectableDefInScope(Ht)?Oi(cm(g),Gl):null,this.records.set(g,Ut)}if(null!=Ut)return this.hydrate(g,Ut)}return(O&si.Self?G1():this.parent).get(g,w=O&si.Optional&&w===da?null:w)}catch(ut){if("NullInjectorError"===ut.name){if((ut[xi]=ut[xi]||[]).unshift(U(g)),q)throw ut;return function I1(h,g,w,O){const q=h[xi];throw g[h_]&&q.unshift(g[h_]),h.message=function fg(h,g,w,O=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let q=U(g);if(Array.isArray(g))q=g.map(U).join(" -> ");else if("object"==typeof g){let V=[];for(let ut in g)if(g.hasOwnProperty(ut)){let Ut=g[ut];V.push(ut+":"+("string"==typeof Ut?JSON.stringify(Ut):U(Ut)))}q=`{${V.join(", ")}}`}return`${w}${O?"("+O+")":""}[${q}]: ${h.replace(ga,"\n ")}`}("\n"+h.message,q,w,O),h.ngTokenPath=q,h[xi]=null,h}(ut,g,"R3InjectorError",this.source)}throw ut}finally{ct(V),Ac(q)}}resolveInjectorInitializers(){const g=Ac(this),w=ct(void 0);try{const O=this.get(P2.multi,fi,si.Self);for(const q of O)q()}finally{Ac(g),ct(w)}}toString(){const g=[],w=this.records;for(const O of w.keys())g.push(U(O));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processProvider(g){let w=Du(g=F(g))?g:F(g&&g.provide);const O=function I_(h){return y1(h)?Oi(void 0,h.useValue):Oi(N_(h),Gl)}(g);if(Du(g)||!0!==g.multi)this.records.get(w);else{let q=this.records.get(w);q||(q=Oi(void 0,Gl,!0),q.factory=()=>Rd(q.multi),this.records.set(w,q)),w=g,q.multi.push(g)}this.records.set(w,O)}hydrate(g,w){return w.value===Gl&&(w.value=_s,w.value=w.factory()),"object"==typeof w.value&&w.value&&function V3(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(g){if(!g.providedIn)return!1;const w=F(g.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function cm(h){const g=De(h),w=null!==g?g.factory:Zs(h);if(null!==w)return w;if(h instanceof Tr)throw new K(204,!1);if(h instanceof Function)return function F_(h){const g=h.length;if(g>0)throw Nd(g,"?"),new K(204,!1);const w=function Ae(h){const g=h&&(h[un]||h[oi]);if(g){const w=function gn(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${w}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${w}" class.`),g}return null}(h);return null!==w?()=>w.factory(h):()=>new h}(h);throw new K(204,!1)}function N_(h,g,w){let O;if(Du(h)){const q=F(h);return Zs(q)||cm(q)}if(y1(h))O=()=>F(h.useValue);else if(function Kc(h){return!(!h||!h.useFactory)}(h))O=()=>h.useFactory(...Rd(h.deps||[]));else if(function Y3(h){return!(!h||!h.useExisting)}(h))O=()=>Dr(F(h.useExisting));else{const q=F(h&&(h.useClass||h.provide));if(!function B3(h){return!!h.deps}(h))return Zs(q)||cm(q);O=()=>new q(...Rd(h.deps))}return O}function Oi(h,g,w=!1){return{factory:h,value:g,multi:w?[]:void 0}}function S2(h){return!!h.\u0275providers}function Vg(h,g){for(const w of h)Array.isArray(w)?Vg(w,g):S2(w)?Vg(w.\u0275providers,g):g(w)}class L2{}class Gg{resolveComponentFactory(g){throw function O2(h){const g=Error(`No component factory found for ${U(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let Hm=(()=>{class h{}return h.NULL=new Gg,h})();function G3(){return zm(kr(),Bi())}function zm(h,g){return new q_(ar(h,g))}let q_=(()=>{class h{constructor(w){this.nativeElement=w}}return h.__NG_ELEMENT_ID__=G3,h})();function Ju(h){return h instanceof q_?h.nativeElement:h}class jg{}let J3=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function R_(){const h=Bi(),w=bs(kr().index,h);return(Qr(w)?w:h)[11]}(),h})(),Jg=(()=>{class h{}return h.\u0275prov=de({token:h,providedIn:"root",factory:()=>null}),h})();class Qg{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const Ad=new Qg("14.3.0"),Ym={};function Qu(h){return h.ngOriginalError}class lm{constructor(){this._console=console}handleError(g){const w=this._findOriginalError(g);this._console.error("ERROR",g),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(g){let w=g&&Qu(g);for(;w&&Qu(w);)w=Qu(w);return w||null}}function um(h){return h.ownerDocument.defaultView}function Kf(h){return h.ownerDocument}function Qd(h){return h instanceof Function?h():h}function F2(h,g,w){let O=h.length;for(;;){const q=h.indexOf(g,w);if(-1===q)return q;if(0===q||h.charCodeAt(q-1)<=32){const V=g.length;if(q+V===O||h.charCodeAt(q+V)<=32)return q}w=q+1}}const Kg="ng-template";function Xg(h,g,w){let O=0;for(;OV?"":q[Cn+1].toLowerCase();const Ai=8&O?ai:null;if(Ai&&-1!==F2(Ai,ge,0)||2&O&&ge!==ai){if(yd(O))return!1;ut=!0}}}}else{if(!ut&&!yd(O)&&!yd(Ht))return!1;if(ut&&yd(Ht))continue;ut=!1,O=Ht|1&O}}return yd(O)||ut}function yd(h){return 0==(1&h)}function $3(h,g,w,O){if(null===g)return-1;let q=0;if(O||!w){let V=!1;for(;q-1)for(w++;w0?'="'+Ut+'"':"")+"]"}else 8&O?q+="."+ut:4&O&&(q+=" "+ut);else""!==q&&!yd(ut)&&(g+=lu(V,q),q=""),O=ut,V=V||!yd(O);w++}return""!==q&&(g+=lu(V,q)),g}const Va={};function Bm(h){wp(Pa(),Bi(),qr()+h,!1)}function wp(h,g,w,O){if(!O)if(3==(3&g[2])){const V=h.preOrderCheckHooks;null!==V&&Lo(g,V,w)}else{const V=h.preOrderHooks;null!==V&&pa(g,V,0,w)}ws(w)}function X3(h,g=null,w=null,O){const q=Wu(h,g,w,O);return q.resolveInjectorInitializers(),q}function Wu(h,g=null,w=null,O,q=new Set){const V=[w||fi,$c(h)];return O=O||("object"==typeof h?void 0:U(h)),new Tp(V,g||G1(),O||null,q)}let Vm=(()=>{class h{static create(w,O){if(Array.isArray(w))return X3({name:""},O,w,"");{const q=w.name??"";return X3({name:q},w.parent,w.providers,q)}}}return h.THROW_IF_NOT_FOUND=da,h.NULL=new ju,h.\u0275prov=de({token:h,providedIn:"any",factory:()=>Dr(Hg)}),h.__NG_ELEMENT_ID__=-1,h})();function _r(h,g=si.Default){const w=Bi();return null===w?Dr(h,g):is(kr(),w,F(h),g)}function Os(){throw new Error("invalid")}function Q1(h,g){return h<<17|g<<2}function Yr(h){return h>>17&32767}function U1(h){return 2|h}function tl(h){return(131068&h)>>2}function Lu(h,g){return-131069&h|g<<2}function Ga(h){return 1|h}function u0(h,g){const w=h.contentQueries;if(null!==w)for(let O=0;O22&&wp(h,g,22,!1),w(O,q)}finally{ws(V)}}function V2(h,g,w){if(Zc(g)){const q=g.directiveEnd;for(let V=g.directiveStart;V0;){const w=h[--g];if("number"==typeof w&&w<0)return w}return 0})(Ut)!=Ht&&Ut.push(Ht),Ut.push(O,q,ut)}}function X1(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function c4(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function J2(h,g,w){if(w){if(g.exportAs)for(let O=0;O0&&v0(w)}}function v0(h){for(let O=Lf(h);null!==O;O=A2(O))for(let q=10;q0&&v0(V)}const w=h[1].components;if(null!==w)for(let O=0;O0&&v0(q)}}function d4(h,g){const w=bs(g,h),O=w[1];(function bm(h,g){for(let w=g.length;w-1&&(Zo(g,O),fp(w,O))}this._attachedToViewContainer=!1}Xo(this._lView[1],this._lView)}onDestroy(g){_h(this._lView[1],this._lView,null,g)}markForCheck(){K_(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){bh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ff(h,g){As(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=g}}class $2 extends Xm{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;bh(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class Fp extends Hm{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const w=he(g);return new Ip(w,this.ngModule)}}function kl(h){const g=[];for(let w in h)h.hasOwnProperty(w)&&g.push({propName:h[w],templateName:w});return g}class Ah{constructor(g,w){this.injector=g,this.parentInjector=w}get(g,w,O){const q=this.injector.get(g,Ym,O);return q!==Ym||w===Ym?q:this.parentInjector.get(g,w,O)}}class Ip extends L2{constructor(g,w){super(),this.componentDef=g,this.ngModule=w,this.componentType=g.type,this.selector=function n0(h){return h.map(j1).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return kl(this.componentDef.inputs)}get outputs(){return kl(this.componentDef.outputs)}create(g,w,O,q){let V=(q=q||this.ngModule)instanceof $i?q:q?.injector;V&&null!==this.componentDef.getStandaloneInjector&&(V=this.componentDef.getStandaloneInjector(V)||V);const ut=V?new Ah(g,V):g,Ut=ut.get(jg,null);if(null===Ut)throw new K(407,!1);const Ht=ut.get(Jg,null),ge=Ut.createRenderer(null,this.componentDef),Ge=this.componentDef.selectors[0][0]||"div",Cn=O?function m0(h,g,w){return h.selectRootElement(g,w===Dn.ShadowDom)}(ge,O,this.componentDef.encapsulation):Qc(ge,Ge,function K2(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(Ge)),ai=this.componentDef.onPush?288:272,Ai=p0(0,null,null,1,0,null,null,null,null,null),Vi=K1(null,Ai,null,ai,null,null,Ut,ge,Ht,ut,null);let yo,so;cl(Vi);try{const ma=function C0(h,g,w,O,q,V){const ut=w[1];w[22]=h;const Ht=Q_(ut,22,2,"#host",null),ge=Ht.mergedAttrs=g.hostAttrs;null!==ge&&(W2(Ht,ge,!0),null!==h&&(Qe(q,h,ge),null!==Ht.classes&&Nm(q,h,Ht.classes),null!==Ht.styles&&ic(q,h,Ht.styles)));const Ge=O.createRenderer(h,g),Cn=K1(w,mh(g),null,g.onPush?32:16,w[22],Ht,O,Ge,V||null,null,null);return ut.firstCreatePass&&(ps(ts(Ht,w),ut,g.type),c4(ut,Ht),Q2(Ht,w.length,1)),Km(w,Cn),w[22]=Cn}(Cn,this.componentDef,Vi,Ut,ge);if(Cn)if(O)Qe(ge,Cn,["ng-version",Ad.full]);else{const{attrs:wa,classes:ao}=function o0(h){const g=[],w=[];let O=1,q=2;for(;O0&&Nm(ge,Cn,ao.join(" "))}if(so=ks(Ai,22),void 0!==w){const wa=so.projection=[];for(let ao=0;ao=0;O--){const q=h[O];q.hostVars=g+=q.hostVars,q.hostAttrs=ce(q.hostAttrs,w=ce(w,q.hostAttrs))}}(O)}function X2(h){return h===ho?{}:h===fi?[]:h}function tf(h,g){const w=h.viewQuery;h.viewQuery=w?(O,q)=>{g(O,q),w(O,q)}:g}function L(h,g){const w=h.contentQueries;h.contentQueries=w?(O,q,V)=>{g(O,q,V),w(O,q,V)}:g}function R(h,g){const w=h.hostBindings;h.hostBindings=w?(O,q)=>{g(O,q),w(O,q)}:g}let pn=null;function Yn(){if(!pn){const h=Sn.Symbol;if(h&&h.iterator)pn=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wUt(pr(Br[O.index])):O.index;let Ea=null;if(!Ut&&Ht&&(Ea=function Ab(h,g,w,O){const q=h.cleanup;if(null!=q)for(let V=0;VHt?Ut[Ht]:null}"string"==typeof ut&&(V+=2)}return null}(h,g,q,O.index)),null!==Ea)(Ea.__ngLastListenerFn__||Ea).__ngNextListenerFn__=V,Ea.__ngLastListenerFn__=V,Ai=!1;else{V=yb(O,g,Cn,V,!1);const Br=w.listen(ma,q,V);ai.push(V,Br),Ge&&Ge.push(q,ao,wa,wa+1)}}else V=yb(O,g,Cn,V,!1);const Vi=O.outputs;let yo;if(Ai&&null!==Vi&&(yo=Vi[q])){const so=yo.length;if(so)for(let ma=0;ma0;)g=g[15],h--;return g}(h,ra.lFrame.contextLView))[8]}(h)}function wb(h,g){let w=null;const O=function q6(h){const g=h.attrs;if(null!=g){const w=g.indexOf(5);if(0==(1&w))return g[w+1]}return null}(h);for(let q=0;q=0}const sc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pb(h){return h.substring(sc.key,sc.keyEnd)}function Lb(h,g){const w=sc.textEnd;return w===g?-1:(g=sc.keyEnd=function wd(h,g,w){for(;g32;)g++;return g}(h,sc.key=g,w),Na(h,g,w))}function Na(h,g,w){for(;g=0;w=Lb(g,w))ie(h,Pb(g),!0)}function P1(h,g,w,O){const q=Bi(),V=Pa(),ut=Tl(2);V.firstUpdatePass&&qb(V,h,ut,O),g!==Va&&xa(q,ut,g)&&_5(V,V.data[qr()],q,q[11],h,q[ut+1]=function Yb(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=U(Zu(h)))),h}(g,w),O,ut)}function ip(h,g,w,O){const q=Pa(),V=Tl(2);q.firstUpdatePass&&qb(q,null,V,O);const ut=Bi();if(w!==Va&&xa(ut,V,w)){const Ut=q.data[qr()];if(mc(Ut,O)&&!Nb(q,V)){let Ht=O?Ut.classesWithoutHost:Ut.stylesWithoutHost;null!==Ht&&(w=k(Ht,w||"")),b4(q,Ut,ut,w,O)}else!function k8(h,g,w,O,q,V,ut,Ut){q===Va&&(q=fi);let Ht=0,ge=0,Ge=0=h.expandoStartIndex}function qb(h,g,w,O){const q=h.data;if(null===q[w+1]){const V=q[qr()],ut=Nb(h,w);mc(V,O)&&null===g&&!ut&&(g=!1),g=function Rb(h,g,w,O){const q=Sc(h);let V=O?g.residualClasses:g.residualStyles;if(null===q)0===(O?g.classBindings:g.styleBindings)&&(w=F0(w=Lh(null,h,g,w,O),g.attrs,O),V=null);else{const ut=g.directiveStylingLast;if(-1===ut||h[ut]!==q)if(w=Lh(q,h,g,w,O),null===V){let Ht=function Z8(h,g,w){const O=w?g.classBindings:g.styleBindings;if(0!==tl(O))return h[Yr(O)]}(h,g,O);void 0!==Ht&&Array.isArray(Ht)&&(Ht=Lh(null,h,g,Ht[1],O),Ht=F0(Ht,g.attrs,O),function M8(h,g,w,O){h[Yr(w?g.classBindings:g.styleBindings)]=O}(h,g,O,Ht))}else V=function Hb(h,g,w){let O;const q=g.directiveEnd;for(let V=1+g.directiveStylingLast;V0)&&(ge=!0)}else Ge=w;if(q)if(0!==Ht){const ai=Yr(h[Ut+1]);h[O+1]=Q1(ai,Ut),0!==ai&&(h[ai+1]=Lu(h[ai+1],O)),h[Ut+1]=function Su(h,g){return 131071&h|g<<17}(h[Ut+1],O)}else h[O+1]=Q1(Ut,0),0!==Ut&&(h[Ut+1]=Lu(h[Ut+1],O)),Ut=O;else h[O+1]=Q1(Ht,0),0===Ut?Ut=O:h[Ht+1]=Lu(h[Ht+1],O),Ht=O;ge&&(h[O+1]=U1(h[O+1])),rf(h,Ge,O,!0),rf(h,Ge,O,!1),function kb(h,g,w,O,q){const V=q?h.residualClasses:h.residualStyles;null!=V&&"string"==typeof g&&kn(V,g)>=0&&(w[O+1]=Ga(w[O+1]))}(g,Ge,h,O,V),ut=Q1(Ut,Ht),V?g.classBindings=ut:g.styleBindings=ut}(q,V,g,w,ut,O)}}function Lh(h,g,w,O,q){let V=null;const ut=w.directiveEnd;let Ut=w.directiveStylingLast;for(-1===Ut?Ut=w.directiveStart:Ut++;Ut0;){const Ht=h[q],ge=Array.isArray(Ht),Ge=ge?Ht[1]:Ht,Cn=null===Ge;let ai=w[q+1];ai===Va&&(ai=Cn?fi:void 0);let Ai=Cn?ke(ai,O):Ge===O?ai:void 0;if(ge&&!Oh(Ai)&&(Ai=ke(Ht,O)),Oh(Ai)&&(Ut=Ai,ut))return Ut;const Vi=h[q+1];q=ut?Yr(Vi):tl(Vi)}if(null!==g){let Ht=V?g.residualClasses:g.residualStyles;null!=Ht&&(Ut=ke(Ht,O))}return Ut}function Oh(h){return void 0!==h}function mc(h,g){return 0!=(h.flags&(g?16:32))}function A4(h,g=""){const w=Bi(),O=Pa(),q=h+22,V=O.firstCreatePass?Q_(O,q,1,g,null):O.data[q],ut=w[q]=function Mg(h,g){return h.createText(g)}(w[11],g);Jr(O,w,ut,V),qt(V,!1)}function y4(h){return N0("",h,""),y4}function N0(h,g,w){const O=Bi(),q=_l(O,h,g,w);return q!==Va&&Eu(O,qr(),q),N0}function sf(h,g,w,O,q){const V=Bi(),ut=function Es(h,g,w,O,q,V){const Ut=Aa(h,Nr(),w,q);return Tl(2),Ut?g+lt(w)+O+lt(q)+V:Va}(V,h,g,w,O,q);return ut!==Va&&Eu(V,qr(),ut),sf}function f5(h,g,w,O,q,V,ut){const Ut=Bi(),Ht=function Wl(h,g,w,O,q,V,ut,Ut){const ge=Ka(h,Nr(),w,q,ut);return Tl(3),ge?g+lt(w)+O+lt(q)+V+lt(ut)+Ut:Va}(Ut,h,g,w,O,q,V,ut);return Ht!==Va&&Eu(Ut,qr(),Ht),f5}function q0(h,g,w,O,q,V,ut,Ut,Ht){const ge=Bi(),Ge=function pu(h,g,w,O,q,V,ut,Ut,Ht,ge){const Cn=za(h,Nr(),w,q,ut,Ht);return Tl(4),Cn?g+lt(w)+O+lt(q)+V+lt(ut)+Ut+lt(Ht)+ge:Va}(ge,h,g,w,O,q,V,ut,Ut,Ht);return Ge!==Va&&Eu(ge,qr(),Ge),q0}function Rp(h,g,w){ip(ie,Mo,_l(Bi(),h,g,w),!0)}function Z4(h,g,w){const O=Bi();return xa(O,tr(),g)&&Ku(Pa(),Ra(),O,h,g,O[11],w,!0),Z4}function y5(h,g,w){const O=Bi();if(xa(O,tr(),g)){const V=Pa(),ut=Ra();Ku(V,ut,O,h,g,D1(Sc(V.data),ut,O),w,!0)}return y5}const $d=void 0;var zn=["en",[["a","p"],["AM","PM"],$d],[["AM","PM"],$d,$d],[["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"]],$d,[["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"]],$d,[["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}",$d,"{1} 'at' {0}",$d],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Ti(h){const w=Math.floor(Math.abs(h)),O=h.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===O?1:5}];let H={};function Nh(h,g,w){"string"!=typeof g&&(w=g,g=h[Ma.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),H[g]=h,w&&(H[g][Ma.ExtraData]=w)}function Oc(h){const g=function k4(h){return h.toLowerCase().replace(/_/g,"-")}(h);let w=z0(g);if(w)return w;const O=g.split("-")[0];if(w=z0(O),w)return w;if("en"===O)return zn;throw new K(701,!1)}function M4(h){return Oc(h)[Ma.PluralCase]}function z0(h){return h in H||(H[h]=Sn.ng&&Sn.ng.common&&Sn.ng.common.locales&&Sn.ng.common.locales[h]),H[h]}var Ma=(()=>((Ma=Ma||{})[Ma.LocaleId=0]="LocaleId",Ma[Ma.DayPeriodsFormat=1]="DayPeriodsFormat",Ma[Ma.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ma[Ma.DaysFormat=3]="DaysFormat",Ma[Ma.DaysStandalone=4]="DaysStandalone",Ma[Ma.MonthsFormat=5]="MonthsFormat",Ma[Ma.MonthsStandalone=6]="MonthsStandalone",Ma[Ma.Eras=7]="Eras",Ma[Ma.FirstDayOfWeek=8]="FirstDayOfWeek",Ma[Ma.WeekendRange=9]="WeekendRange",Ma[Ma.DateFormat=10]="DateFormat",Ma[Ma.TimeFormat=11]="TimeFormat",Ma[Ma.DateTimeFormat=12]="DateTimeFormat",Ma[Ma.NumberSymbols=13]="NumberSymbols",Ma[Ma.NumberFormats=14]="NumberFormats",Ma[Ma.CurrencyCode=15]="CurrencyCode",Ma[Ma.CurrencySymbol=16]="CurrencySymbol",Ma[Ma.CurrencyName=17]="CurrencyName",Ma[Ma.Currencies=18]="Currencies",Ma[Ma.Directionality=19]="Directionality",Ma[Ma.PluralCase=20]="PluralCase",Ma[Ma.ExtraData=21]="ExtraData",Ma))();const e_="en-US";let Pl=e_;function Hp(h,g,w,O,q){if(h=F(h),Array.isArray(h))for(let V=0;V>20;if(Du(h)||!h.multi){const Ai=new vu(Ht,q,_r),Vi=Hh(Ut,g,q?Ge:Ge+ai,Cn);-1===Vi?(ps(ts(ge,ut),V,Ut),o2(V,h,g.length),g.push(Ut),ge.directiveStart++,ge.directiveEnd++,q&&(ge.providerIndexes+=1048576),w.push(Ai),ut.push(Ai)):(w[Vi]=Ai,ut[Vi]=Ai)}else{const Ai=Hh(Ut,g,Ge+ai,Cn),Vi=Hh(Ut,g,Ge,Ge+ai),yo=Ai>=0&&w[Ai],so=Vi>=0&&w[Vi];if(q&&!so||!q&&!yo){ps(ts(ge,ut),V,Ut);const ma=function N5(h,g,w,O,q){const V=new vu(h,w,_r);return V.multi=[],V.index=g,V.componentProviders=0,F5(V,q,O&&!w),V}(q?zh:DC,w.length,q,O,Ht);!q&&so&&(w[Vi].providerFactory=ma),o2(V,h,g.length,0),g.push(Ut),ge.directiveStart++,ge.directiveEnd++,q&&(ge.providerIndexes+=1048576),w.push(ma),ut.push(ma)}else o2(V,h,Ai>-1?Ai:Vi,F5(w[q?Vi:Ai],Ht,!q&&O));!q&&O&&so&&w[Vi].componentProviders++}}}function o2(h,g,w,O){const q=Du(g),V=function E_(h){return!!h.useClass}(g);if(q||V){const Ht=(V?F(g.useClass):g).prototype.ngOnDestroy;if(Ht){const ge=h.destroyHooks||(h.destroyHooks=[]);if(!q&&g.multi){const Ge=ge.indexOf(w);-1===Ge?ge.push(w,[O,Ht]):ge[Ge+1].push(O,Ht)}else ge.push(w,Ht)}}}function F5(h,g,w){return w&&h.componentProviders++,h.multi.push(g)-1}function Hh(h,g,w,O){for(let q=w;q{w.providersResolver=(O,q)=>function W8(h,g,w){const O=Pa();if(O.firstCreatePass){const q=Is(h);Hp(w,O.data,O.blueprint,q,!0),Hp(g,O.data,O.blueprint,q,!1)}}(O,q?q(h):h,g)}}class _f{}class I4{}function Yh(h,g){return new j0(h,g??null)}class j0 extends _f{constructor(g,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fp(this);const O=go(g);this._bootstrapComponents=Qd(O.bootstrap),this._r3Injector=Wu(g,w,[{provide:_f,useValue:this},{provide:Hm,useValue:this.componentFactoryResolver}],U(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(w=>w()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class N4 extends I4{constructor(g){super(),this.moduleType=g}create(g){return new j0(this.moduleType,g)}}class K8 extends _f{constructor(g,w,O){super(),this.componentFactoryResolver=new Fp(this),this.instance=null;const q=new Tp([...g,{provide:_f,useValue:this},{provide:Hm,useValue:this.componentFactoryResolver}],w||G1(),O,new Set(["environment"]));this.injector=q,q.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function _a(h,g,w=null){return new K8(h,g,w).injector}let hi=(()=>{class h{constructor(w){this._injector=w,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(w){if(!w.standalone)return null;if(!this.cachedInjectors.has(w.id)){const O=jf(0,w.type),q=O.length>0?_a([O],this._injector,`Standalone[${w.type.name}]`):null;this.cachedInjectors.set(w.id,q)}return this.cachedInjectors.get(w.id)}ngOnDestroy(){try{for(const w of this.cachedInjectors.values())null!==w&&w.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=de({token:h,providedIn:"environment",factory:()=>new h(Dr($i))}),h})();function R5(h){h.getStandaloneInjector=g=>g.get(hi).getOrCreateStandaloneInjector(h)}function NC(h,g,w){const O=Ir()+h,q=Bi();return q[O]===Va?ea(q,O,w?g.call(w):g()):function Ca(h,g){return h[g]}(q,O)}function B5(h,g,w,O){return R4(Bi(),Ir(),h,g,w,O)}function qC(h,g,w,O,q){return J5(Bi(),Ir(),h,g,w,O,q)}function J0(h,g){const w=h[g];return w===Va?void 0:w}function R4(h,g,w,O,q,V){const ut=g+w;return xa(h,ut,q)?ea(h,ut+1,V?O.call(V,q):O(q)):J0(h,ut+1)}function J5(h,g,w,O,q,V,ut){const Ut=g+w;return Aa(h,Ut,q,V)?ea(h,Ut+2,ut?O.call(ut,q,V):O(q,V)):J0(h,Ut+2)}function zC(h,g){const w=Pa();let O;const q=h+22;w.firstCreatePass?(O=function YC(h,g){if(g)for(let w=g.length-1;w>=0;w--){const O=g[w];if(h===O.name)return O}}(g,w.pipeRegistry),w.data[q]=O,O.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(q,O.onDestroy)):O=w.data[q];const V=O.factory||(O.factory=Zs(O.type)),ut=ct(_r);try{const Ut=wi(!1),Ht=V();return wi(Ut),function Cb(h,g,w,O){w>=h.data.length&&(h.data[w]=null,h.blueprint[w]=null),g[w]=O}(w,Bi(),q,Ht),Ht}finally{ct(ut)}}function ca(h,g,w){const O=h+22,q=Bi(),V=qs(q,O);return W0(q,O)?R4(q,Ir(),g,V.transform,w,V):V.transform(w)}function Q0(h,g,w,O){const q=h+22,V=Bi(),ut=qs(V,q);return W0(V,q)?J5(V,Ir(),g,ut.transform,w,O,ut):ut.transform(w,O)}function $5(h,g,w,O,q){const V=h+22,ut=Bi(),Ut=qs(ut,V);return W0(ut,V)?function Q5(h,g,w,O,q,V,ut,Ut){const Ht=g+w;return Ka(h,Ht,q,V,ut)?ea(h,Ht+3,Ut?O.call(Ut,q,V,ut):O(q,V,ut)):J0(h,Ht+3)}(ut,Ir(),g,Ut.transform,w,O,q,Ut):Ut.transform(w,O,q)}function H4(h,g,w,O,q,V){const ut=h+22,Ut=Bi(),Ht=qs(Ut,ut);return W0(Ut,ut)?function W5(h,g,w,O,q,V,ut,Ut,Ht){const ge=g+w;return za(h,ge,q,V,ut,Ut)?ea(h,ge+4,Ht?O.call(Ht,q,V,ut,Ut):O(q,V,ut,Ut)):J0(h,ge+4)}(Ut,Ir(),g,Ht.transform,w,O,q,V,Ht):Ht.transform(w,O,q,V)}function W0(h,g){return h[1].data[g].pure}function z4(h){return g=>{setTimeout(h,void 0,g)}}const id=class lA extends d.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,w,O){let q=g,V=w||(()=>null),ut=O;if(g&&"object"==typeof g){const Ht=g;q=Ht.next?.bind(Ht),V=Ht.error?.bind(Ht),ut=Ht.complete?.bind(Ht)}this.__isAsync&&(V=z4(V),q&&(q=z4(q)),ut&&(ut=z4(ut)));const Ut=super.subscribe({next:q,error:V,complete:ut});return g instanceof p.w&&g.add(Ut),Ut}};function uA(){return this._results[Yn()]()}class Md{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const w=Yn(),O=Md.prototype;O[w]||(O[w]=uA)}get changes(){return this._changes||(this._changes=new id)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,w){return this._results.reduce(g,w)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,w){const O=this;O.dirty=!1;const q=jo(g);(this._changesDetected=!function B(h,g,w){if(h.length!==g.length)return!1;for(let O=0;O{class h{}return h.__NG_ELEMENT_ID__=GC,h})();const K5=Vh,VC=class extends K5{constructor(g,w,O){super(),this._declarationLView=g,this._declarationTContainer=w,this.elementRef=O}createEmbeddedView(g,w){const O=this._declarationTContainer.tViews,q=K1(this._declarationLView,O,g,16,null,O.declTNode,null,null,null,null,w||null);q[17]=this._declarationLView[this._declarationTContainer.index];const ut=this._declarationLView[19];return null!==ut&&(q[19]=ut.createEmbeddedView(O)),M1(O,q,g),new Xm(q)}};function GC(){return $0(kr(),Bi())}function $0(h,g){return 4&h.type?new VC(g,h,zm(h,g)):null}let K0=(()=>{class h{}return h.__NG_ELEMENT_ID__=dA,h})();function dA(){return B4(kr(),Bi())}const jC=K0,X5=class extends jC{constructor(g,w,O){super(),this._lContainer=g,this._hostTNode=w,this._hostLView=O}get element(){return zm(this._hostTNode,this._hostLView)}get injector(){return new su(this._hostTNode,this._hostLView)}get parentInjector(){const g=ns(this._hostTNode,this._hostLView);if(tn(g)){const w=Qn(g,this._hostLView),O=bn(g);return new su(w[1].data[O+8],w)}return new su(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const w=JC(this._lContainer);return null!==w&&w[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,w,O){let q,V;"number"==typeof O?q=O:null!=O&&(q=O.index,V=O.injector);const ut=g.createEmbeddedView(w||{},V);return this.insert(ut,q),ut}createComponent(g,w,O,q,V){const ut=g&&!function Uo(h){return"function"==typeof h}(g);let Ut;if(ut)Ut=w;else{const Cn=w||{};Ut=Cn.index,O=Cn.injector,q=Cn.projectableNodes,V=Cn.environmentInjector||Cn.ngModuleRef}const Ht=ut?g:new Ip(he(g)),ge=O||this.parentInjector;if(!V&&null==Ht.ngModule){const ai=(ut?ge:this.parentInjector).get($i,null);ai&&(V=ai)}const Ge=Ht.create(ge,q,void 0,V);return this.insert(Ge.hostView,Ut),Ge}insert(g,w){const O=g._lView,q=O[1];if(function js(h){return Er(h[3])}(O)){const Ge=this.indexOf(g);if(-1!==Ge)this.detach(Ge);else{const Cn=O[3],ai=new X5(Cn,Cn[6],Cn[3]);ai.detach(ai.indexOf(g))}}const V=this._adjustIndex(w),ut=this._lContainer;!function Fm(h,g,w,O){const q=10+O,V=w.length;O>0&&(w[q-1][4]=g),O0)O.push(ut[Ut/2]);else{const ge=V[Ut+1],Ge=g[-Ht];for(let Cn=10;Cn{class h{constructor(w){this.appInits=w,this.resolve=X4,this.reject=X4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,q)=>{this.resolve=O,this.reject=q})}runInitializers(){if(this.initialized)return;const w=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let q=0;q{V.subscribe({complete:Ut,error:Ht})});w.push(ut)}}Promise.all(w).then(()=>{O()}).catch(q=>{this.reject(q)}),0===w.length&&O(),this.initialized=!0}}return h.\u0275fac=function(w){return new(w||h)(Dr(Av,8))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const dx=new Tr("AppId",{providedIn:"root",factory:function px(){return`${s3()}${s3()}${s3()}`}});function s3(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const mx=new Tr("Platform Initializer"),_x=new Tr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yv=new Tr("appBootstrapListener"),wv=new Tr("AnimationModuleType");let fx=(()=>{class h{log(w){console.log(w)}warn(w){console.warn(w)}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const c3=new Tr("LocaleId",{providedIn:"root",factory:()=>hp(c3,si.Optional|si.SkipSelf)||function hx(){return typeof $localize<"u"&&$localize.locale||e_}()}),gx=new Tr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class LA{constructor(g,w){this.ngModuleFactory=g,this.componentFactories=w}}let bx=(()=>{class h{compileModuleSync(w){return new N4(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const O=this.compileModuleSync(w),V=Qd(go(w).declarations).reduce((ut,Ut)=>{const Ht=he(Ut);return Ht&&ut.push(new Ip(Ht)),ut},[]);return new LA(O,V)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const yx=(()=>Promise.resolve(0))();function l3(h){typeof Zone>"u"?yx.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class Kd{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:w=!1,shouldCoalesceRunChangeDetection:O=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new id(!1),this.onMicrotaskEmpty=new id(!1),this.onStable=new id(!1),this.onError=new id(!1),typeof Zone>"u")throw new K(908,!1);Zone.assertZonePatched();const q=this;if(q._nesting=0,q._outer=q._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const V=Zone.AsyncStackTaggingZoneSpec;q._inner=q._inner.fork(new V("Angular"))}Zone.TaskTrackingZoneSpec&&(q._inner=q._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(q._inner=q._inner.fork(Zone.longStackTraceZoneSpec)),q.shouldCoalesceEventChangeDetection=!O&&w,q.shouldCoalesceRunChangeDetection=O,q.lastRequestAnimationFrameId=-1,q.nativeRequestAnimationFrame=function t6(){let h=Sn.requestAnimationFrame,g=Sn.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const w=h[Zone.__symbol__("OriginalDelegate")];w&&(h=w);const O=g[Zone.__symbol__("OriginalDelegate")];O&&(g=O)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function Tx(h){const g=()=>{!function Zv(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(Sn,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Mv(h),h.isCheckStableRunning=!0,e6(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Mv(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,O,q,V,ut,Ut)=>{try{return wx(h),w.invokeTask(q,V,ut,Ut)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||h.shouldCoalesceRunChangeDetection)&&g(),kv(h)}},onInvoke:(w,O,q,V,ut,Ut,Ht)=>{try{return wx(h),w.invoke(q,V,ut,Ut,Ht)}finally{h.shouldCoalesceRunChangeDetection&&g(),kv(h)}},onHasTask:(w,O,q,V)=>{w.hasTask(q,V),O===q&&("microTask"==V.change?(h._hasPendingMicrotasks=V.microTask,Mv(h),e6(h)):"macroTask"==V.change&&(h.hasPendingMacrotasks=V.macroTask))},onHandleError:(w,O,q,V)=>(w.handleError(q,V),h.runOutsideAngular(()=>h.onError.emit(V)),!1)})}(q)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kd.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(Kd.isInAngularZone())throw new K(909,!1)}run(g,w,O){return this._inner.run(g,w,O)}runTask(g,w,O,q){const V=this._inner,ut=V.scheduleEventTask("NgZoneEvent: "+q,g,Uv,X4,X4);try{return V.runTask(ut,w,O)}finally{V.cancelTask(ut)}}runGuarded(g,w,O){return this._inner.runGuarded(g,w,O)}runOutsideAngular(g){return this._outer.run(g)}}const Uv={};function e6(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Mv(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function wx(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function kv(h){h._nesting--,e6(h)}class Dv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new id,this.onMicrotaskEmpty=new id,this.onStable=new id,this.onError=new id}run(g,w,O){return g.apply(w,O)}runGuarded(g,w,O){return g.apply(w,O)}runOutsideAngular(g){return g()}runTask(g,w,O,q){return g.apply(w,O)}}const Ux=new Tr(""),Pv=new Tr("");let n6,Zx=(()=>{class h{constructor(w,O,q){this._ngZone=w,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,n6||(function kx(h){n6=h}(q),q.addToWindow(O)),this._watchAngularEvents(),w.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kd.assertNotInAngularZone(),l3(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())l3(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(w)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,O,q){let V=-1;O&&O>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(ut=>ut.timeoutId!==V),w(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:w,timeoutId:V,updateCb:q})}whenStable(w,O,q){if(q&&!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(w,O,q),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,O,q){return[]}}return h.\u0275fac=function(w){return new(w||h)(Dr(Kd),Dr(Mx),Dr(Pv))},h.\u0275prov=de({token:h,factory:h.\u0275fac}),h})(),Mx=(()=>{class h{constructor(){this._applications=new Map}registerApplication(w,O){this._applications.set(w,O)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,O=!0){return n6?.findTestabilityInTree(this,w,O)??null}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),o_=null;const Sv=new Tr("AllowMultipleToken"),Lv=new Tr("PlatformDestroyListeners");class Px{constructor(g,w){this.name=g,this.token=w}}function zp(h,g,w=[]){const O=`Platform: ${g}`,q=new Tr(O);return(V=[])=>{let ut=o6();if(!ut||ut.injector.get(Sv,!1)){const Ut=[...w,...V,{provide:q,useValue:!0}];h?h(Ut):function EA(h){if(o_&&!o_.get(Sv,!1))throw new K(400,!1);o_=h;const g=h.get(a6);(function Lx(h){const g=h.get(mx,null);g&&g.forEach(w=>w())})(h)}(function i6(h=[],g){return Vm.create({name:g,providers:[{provide:ss,useValue:"platform"},{provide:Lv,useValue:new Set([()=>o_=null])},...h]})}(Ut,O))}return function FA(h){const g=o6();if(!g)throw new K(401,!1);return g}()}}function o6(){return o_?.get(a6)??null}let a6=(()=>{class h{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,O){const q=function Ox(h,g){let w;return w="noop"===h?new Dv:("zone.js"===h?void 0:h)||new Kd(g),w}(O?.ngZone,function p3(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(O)),V=[{provide:Kd,useValue:q}];return q.run(()=>{const ut=Vm.create({providers:V,parent:this.injector,name:w.moduleType.name}),Ut=w.create(ut),Ht=Ut.injector.get(lm,null);if(!Ht)throw new K(402,!1);return q.runOutsideAngular(()=>{const ge=q.onError.subscribe({next:Ge=>{Ht.handleError(Ge)}});Ut.onDestroy(()=>{_3(this._modules,Ut),ge.unsubscribe()})}),function Ev(h,g,w){try{const O=w();return kh(O)?O.catch(q=>{throw g.runOutsideAngular(()=>h.handleError(q)),q}):O}catch(O){throw g.runOutsideAngular(()=>h.handleError(O)),O}}(Ht,q,()=>{const ge=Ut.injector.get(r3);return ge.runInitializers(),ge.donePromise.then(()=>(function uf(h){$e(h,"Expected localeId to be defined"),"string"==typeof h&&(Pl=h.toLowerCase().replace(/_/g,"-"))}(Ut.injector.get(c3,e_)||e_),this._moduleDoBootstrap(Ut),Ut))})})}bootstrapModule(w,O=[]){const q=Fv({},O);return function Ov(h,g,w){const O=new N4(w);return Promise.resolve(O)}(0,0,w).then(V=>this.bootstrapModuleFactory(V,q))}_moduleDoBootstrap(w){const O=w.injector.get(m3);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(q=>O.bootstrap(q));else{if(!w.instance.ngDoBootstrap)throw new K(403,!1);w.instance.ngDoBootstrap(O)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const w=this._injector.get(Lv,null);w&&(w.forEach(O=>O()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(w){return new(w||h)(Dr(Vm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Fv(h,g){return Array.isArray(g)?g.reduce(Fv,h):{...h,...g}}let m3=(()=>{class h{constructor(w,O,q){this._zone=w,this._injector=O,this._exceptionHandler=q,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const V=new b.y(Ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ut.next(this._stable),Ut.complete()})}),ut=new b.y(Ut=>{let Ht;this._zone.runOutsideAngular(()=>{Ht=this._zone.onStable.subscribe(()=>{Kd.assertNotInAngularZone(),l3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ut.next(!0))})})});const ge=this._zone.onUnstable.subscribe(()=>{Kd.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ut.next(!1)}))});return()=>{Ht.unsubscribe(),ge.unsubscribe()}});this.isStable=(0,T.T)(V,ut.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,O){const q=w instanceof L2;if(!this._injector.get(r3).done)throw!q&&gi(w),new K(405,false);let ut;ut=q?w:this._injector.get(Hm).resolveComponentFactory(w),this.componentTypes.push(ut.componentType);const Ut=function u3(h){return h.isBoundToModule}(ut)?void 0:this._injector.get(_f),ge=ut.create(Vm.NULL,[],O||ut.selector,Ut),Ge=ge.location.nativeElement,Cn=ge.injector.get(Ux,null);return Cn?.registerApplication(Ge),ge.onDestroy(()=>{this.detachView(ge.hostView),_3(this.components,ge),Cn?.unregisterApplication(Ge)}),this._loadComponent(ge),ge}tick(){if(this._runningTick)throw new K(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const O=w;this._views.push(O),O.attachToAppRef(this)}detachView(w){const O=w;_3(this._views,O),O.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(yv,[]).concat(this._bootstrapListeners).forEach(q=>q(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>_3(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new K(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(w){return new(w||h)(Dr(Kd),Dr($i),Dr(lm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function _3(h,g){const w=h.indexOf(g);w>-1&&h.splice(w,1)}let L1=!0;function Nx(){L1=!1}let Nv=(()=>{class h{}return h.__NG_ELEMENT_ID__=NA,h})();function NA(h){return function Hx(h,g,w){if(al(h)&&!w){const O=bs(h.index,g);return new Xm(O,O)}return 47&h.type?new Xm(g[16],g):null}(kr(),Bi(),16==(16&h))}class Vv{constructor(){}supports(g){return _i(g)}create(g){return new YA(g)}}const zA=(h,g)=>g;class YA{constructor(g){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=g||zA}forEachItem(g){let w;for(w=this._itHead;null!==w;w=w._next)g(w)}forEachOperation(g){let w=this._itHead,O=this._removalsHead,q=0,V=null;for(;w||O;){const ut=!O||w&&w.currentIndex{ut=this._trackByFn(q,Ut),null!==w&&Object.is(w.trackById,ut)?(O&&(w=this._verifyReinsertion(w,Ut,ut,q)),Object.is(w.item,Ut)||this._addIdentityChange(w,Ut)):(w=this._mismatch(w,Ut,ut,q),O=!0),w=w._next,q++}),this.length=q;return this._truncate(w),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,w,O,q){let V;return null===g?V=this._itTail:(V=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._reinsertAfter(g,V,q)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(O,q))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._moveAfter(g,V,q)):g=this._addAfter(new Vx(w,O),V,q),g}_verifyReinsertion(g,w,O,q){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==V?g=this._reinsertAfter(V,g._prev,q):g.currentIndex!=q&&(g.currentIndex=q,this._addToMoves(g,q)),g}_truncate(g){for(;null!==g;){const w=g._next;this._addToRemovals(this._unlink(g)),g=w}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,w,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const q=g._prevRemoved,V=g._nextRemoved;return null===q?this._removalsHead=V:q._nextRemoved=V,null===V?this._removalsTail=q:V._prevRemoved=q,this._insertAfter(g,w,O),this._addToMoves(g,O),g}_moveAfter(g,w,O){return this._unlink(g),this._insertAfter(g,w,O),this._addToMoves(g,O),g}_addAfter(g,w,O){return this._insertAfter(g,w,O),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,w,O){const q=null===w?this._itHead:w._next;return g._next=q,g._prev=w,null===q?this._itTail=g:q._prev=g,null===w?this._itHead=g:w._next=g,null===this._linkedRecords&&(this._linkedRecords=new Gv),this._linkedRecords.put(g),g.currentIndex=O,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const w=g._prev,O=g._next;return null===w?this._itHead=O:w._next=O,null===O?this._itTail=w:O._prev=w,g}_addToMoves(g,w){return g.previousIndex===w||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gv),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,w){return g.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Vx{constructor(g,w){this.item=g,this.trackById=w,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Qh{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,w){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===w||w<=O.currentIndex)&&Object.is(O.trackById,g))return O;return null}remove(g){const w=g._prevDup,O=g._nextDup;return null===w?this._head=O:w._nextDup=O,null===O?this._tail=w:O._prevDup=w,null===this._head}}class Gv{constructor(){this.map=new Map}put(g){const w=g.trackById;let O=this.map.get(w);O||(O=new Qh,this.map.set(w,O)),O.add(g)}get(g,w){const q=this.map.get(g);return q?q.get(g,w):null}remove(g){const w=g.trackById;return this.map.get(w).remove(g)&&this.map.delete(w),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function h3(h,g,w){const O=h.previousIndex;if(null===O)return O;let q=0;return w&&O{if(w&&w.key===q)this._maybeAddToChanges(w,O),this._appendAfter=w,w=w._next;else{const V=this._getOrCreateRecordForKey(q,O);w=this._insertBeforeOrAppend(w,V)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let O=w;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,w){if(g){const O=g._prev;return w._next=g,w._prev=O,g._prev=w,O&&(O._next=w),g===this._mapHead&&(this._mapHead=w),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(g,w){if(this._records.has(g)){const q=this._records.get(g);this._maybeAddToChanges(q,w);const V=q._prev,ut=q._next;return V&&(V._next=ut),ut&&(ut._prev=V),q._next=null,q._prev=null,q}const O=new Gx(g);return this._records.set(g,O),O.currentValue=w,this._addToAdditions(O),O}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,w){Object.is(w,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=w,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,w){g instanceof Map?g.forEach(w):Object.keys(g).forEach(O=>w(g[O],O))}}class Gx{constructor(g){this.key=g,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 c6(){return new l6([new Vv])}let l6=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(null!=O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||c6()),deps:[[h,new N1,new tc]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(null!=O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:c6}),h})();function jx(){return new g3([new jv])}let g3=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||jx()),deps:[[h,new N1,new tc]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:jx}),h})();const GA=zp(null,"core",[]);let jA=(()=>{class h{constructor(w){}}return h.\u0275fac=function(w){return new(w||h)(Dr(m3))},h.\u0275mod=Ot({type:h}),h.\u0275inj=re({}),h})();function Wx(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},85863:(at,et,v)=>{"use strict";function d(D){for(let P in D){let F=D[P]??"";switch(P){case"display":D.display="flex"===F?["-webkit-flex","flex"]:"inline-flex"===F?["-webkit-inline-flex","inline-flex"]:F;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":D["-webkit-"+P]=F;break;case"flex-direction":D["-webkit-flex-direction"]=F,D["flex-direction"]=F;break;case"order":D.order=D["-webkit-"+P]=isNaN(+F)?"0":F}}return D}v.d(et,{Ar:()=>T,GK:()=>d,iQ:()=>b,kt:()=>k,tj:()=>A});const p="inline",b=["row","column","row-reverse","column-reverse"];function T(D){let[P,F,z]=t(D);return function U(D,P=null,F=!1){return{display:F?"inline-flex":"flex","box-sizing":"border-box","flex-direction":D,"flex-wrap":P||null}}(P,F,z)}function t(D){D=D?.toLowerCase()??"";let[P,F,z]=D.split(" ");return b.find(J=>J===P)||(P=b[0]),F===p&&(F=z!==p?z:"",z=p),[P,x(F),!!z]}function A(D){let[P]=t(D);return P.indexOf("row")>-1}function x(D){if(D)switch(D.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":D="wrap-reverse";break;case"no":case"none":case"nowrap":D="nowrap";break;default:D="wrap"}return D}function k(D,...P){if(null==D)throw TypeError("Cannot convert undefined or null to object");for(let F of P)if(null!=F)for(let z in F)F.hasOwnProperty(z)&&(D[z]=F[z]);return D}},32233:(at,et,v)=>{"use strict";v.d(et,{Bs:()=>Dt,FL:()=>fi,IR:()=>z,Ot:()=>mi,QI:()=>zt,RK:()=>Vt,WU:()=>lt,g5:()=>ot,iR:()=>ct,wY:()=>vt,yB:()=>Ke});var d=v(94650),p=v(36895),b=v(591),T=v(56498),t=v(36787),A=v(8929),x=v(85863),U=v(92198),k=v(22868);const P={provide:d.tb,useFactory:function D(Bn,Gn){return()=>{if((0,p.NF)(Gn)){const Ye=Array.from(Bn.querySelectorAll(`[class*=${F}]`)),fn=/\bflex-layout-.+?\b/g;Ye.forEach(ze=>{ze.classList.contains(`${F}ssr`)&&ze.parentNode?ze.parentNode.removeChild(ze):ze.className.replace(fn,"")})}}},deps:[p.K0,d.Lbi],multi:!0},F="flex-layout-";let z=(()=>{class Bn{}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)},Bn.\u0275mod=d.oAB({type:Bn}),Bn.\u0275inj=d.cJS({providers:[P]}),Bn})();class J{constructor(Gn=!1,Ye="all",fn="",ze="",We=0){this.matches=Gn,this.mediaQuery=Ye,this.mqAlias=fn,this.suffix=ze,this.priority=We,this.property=""}clone(){return new J(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let K=(()=>{class Bn{constructor(){this.stylesheet=new Map}addStyleToElement(Ye,fn,ze){const We=this.stylesheet.get(Ye);We?We.set(fn,ze):this.stylesheet.set(Ye,new Map([[fn,ze]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Ye,fn){const ze=this.stylesheet.get(Ye);let We="";if(ze){const en=ze.get(fn);("number"==typeof en||"string"==typeof en)&&(We=en+"")}return We}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const ot={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},lt=new d.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ot}),vt=new d.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Dt=new d.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Pt(Bn,Gn){return Bn=Bn?.clone()??new J,Gn&&(Bn.mqAlias=Gn.alias,Bn.mediaQuery=Gn.mediaQuery,Bn.suffix=Gn.suffix,Bn.priority=Gn.priority),Bn}class zt{constructor(){this.shouldCache=!0}sideEffect(Gn,Ye,fn){}}let Vt=(()=>{class Bn{constructor(Ye,fn,ze,We){this._serverStylesheet=Ye,this._serverModuleLoaded=fn,this._platformId=ze,this.layoutConfig=We}applyStyleToElement(Ye,fn,ze=null){let We={};"string"==typeof fn&&(We[fn]=ze,fn=We),We=this.layoutConfig.disableVendorPrefixes?fn:(0,x.GK)(fn),this._applyMultiValueStyleToElement(We,Ye)}applyStyleToElements(Ye,fn=[]){const ze=this.layoutConfig.disableVendorPrefixes?Ye:(0,x.GK)(Ye);fn.forEach(We=>{this._applyMultiValueStyleToElement(ze,We)})}getFlowDirection(Ye){const fn="flex-direction";let ze=this.lookupStyle(Ye,fn);return[ze||"row",this.lookupInlineStyle(Ye,fn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?ze:""]}hasWrap(Ye){return"wrap"===this.lookupStyle(Ye,"flex-wrap")}lookupAttributeValue(Ye,fn){return Ye.getAttribute(fn)??""}lookupInlineStyle(Ye,fn){return(0,p.NF)(this._platformId)?Ye.style.getPropertyValue(fn):function it(Bn,Gn){return ft(Bn)[Gn]??""}(Ye,fn)}lookupStyle(Ye,fn,ze=!1){let We="";return Ye&&((We=this.lookupInlineStyle(Ye,fn))||((0,p.NF)(this._platformId)?ze||(We=getComputedStyle(Ye).getPropertyValue(fn)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(Ye,fn)))),We?We.trim():""}_applyMultiValueStyleToElement(Ye,fn){Object.keys(Ye).sort().forEach(ze=>{const We=Ye[ze],en=Array.isArray(We)?We:[We];en.sort();for(let le of en)le=le?le+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?fn.style.setProperty(ze,le):Tt(fn,ze,le):this._serverStylesheet.addStyleToElement(fn,ze,le)})}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(K),d.LFG(vt),d.LFG(d.Lbi),d.LFG(lt))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();function Tt(Bn,Gn,Ye){Gn=Gn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const fn=ft(Bn);fn[Gn]=Ye??"",function At(Bn,Gn){let Ye="";for(const fn in Gn)Gn[fn]&&(Ye+=`${fn}:${Gn[fn]};`);Bn.setAttribute("style",Ye)}(Bn,fn)}function ft(Bn){const Gn={},Ye=Bn.getAttribute("style");if(Ye){const fn=Ye.split(/;+/g);for(let ze=0;ze0){const en=We.indexOf(":");if(-1===en)throw new Error(`Invalid CSS style: ${We}`);Gn[We.substr(0,en).trim()]=We.substr(en+1).trim()}}}return Gn}function Et(Bn,Gn){return(Gn&&Gn.priority||0)-(Bn&&Bn.priority||0)}function Bt(Bn,Gn){return(Bn.priority||0)-(Gn.priority||0)}let Ft=(()=>{class Bn{constructor(Ye,fn,ze){this._zone=Ye,this._platformId=fn,this._document=ze,this.source=new b.X(new J(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Ye=[];return this.registry.forEach((fn,ze)=>{fn.matches&&Ye.push(ze)}),Ye}isActive(Ye){return this.registry.get(Ye)?.matches??this.registerQuery(Ye).some(ze=>ze.matches)}observe(Ye,fn=!1){if(Ye&&Ye.length){const ze=this._observable$.pipe((0,U.h)(en=>!fn||Ye.indexOf(en.mediaQuery)>-1)),We=new T.y(en=>{const le=this.registerQuery(Ye);if(le.length){const je=le.pop();le.forEach(Lt=>{en.next(Lt)}),this.source.next(je)}en.complete()});return(0,t.T)(We,ze)}return this._observable$}registerQuery(Ye){const fn=Array.isArray(Ye)?Ye:[Ye],ze=[];return function jt(Bn,Gn){const Ye=Bn.filter(fn=>!se[fn]);if(Ye.length>0){const fn=Ye.join(", ");try{const ze=Gn.createElement("style");ze.setAttribute("type","text/css"),ze.styleSheet||ze.appendChild(Gn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${fn} {.fx-query-test{ }}\n`)),Gn.head.appendChild(ze),Ye.forEach(We=>se[We]=ze)}catch(ze){console.error(ze)}}}(fn,this._document),fn.forEach(We=>{const en=je=>{this._zone.run(()=>this.source.next(new J(je.matches,We)))};let le=this.registry.get(We);le||(le=this.buildMQL(We),le.addListener(en),this.pendingRemoveListenerFns.push(()=>le.removeListener(en)),this.registry.set(We,le)),le.matches&&ze.push(new J(!0,We))}),ze}ngOnDestroy(){let Ye;for(;Ye=this.pendingRemoveListenerFns.pop();)Ye()}buildMQL(Ye){return function be(Bn,Gn){return Gn&&window.matchMedia("all").addListener?window.matchMedia(Bn):function ve(Bn){const Gn=new EventTarget;return Gn.matches="all"===Bn||""===Bn,Gn.media=Bn,Gn.addListener=()=>{},Gn.removeListener=()=>{},Gn.addEventListener=()=>{},Gn.dispatchEvent=()=>!1,Gn.onchange=null,Gn}(Bn)}(Ye,(0,p.NF)(this._platformId))}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(d.R0b),d.LFG(d.Lbi),d.LFG(p.K0))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const se={},Le=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],qe="(orientation: portrait) and (max-width: 599.98px)",$e="(orientation: landscape) and (max-width: 959.98px)",Xt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Te="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ae="(orientation: portrait) and (min-width: 840px)",Kt="(orientation: landscape) and (min-width: 1280px)",de={HANDSET:`${qe}, ${$e}`,TABLET:`${Xt} , ${Te}`,WEB:`${ae}, ${Kt} `,HANDSET_PORTRAIT:`${qe}`,TABLET_PORTRAIT:`${Xt} `,WEB_PORTRAIT:`${ae}`,HANDSET_LANDSCAPE:`${$e}`,TABLET_LANDSCAPE:`${Te}`,WEB_LANDSCAPE:`${Kt}`},Wt=[{alias:"handset",priority:2e3,mediaQuery:de.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:de.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:de.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:de.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:de.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:de.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:de.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:de.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:de.WEB_PORTRAIT,overlapping:!0}],re=/(\.|-|_)/g;function De(Bn){let Gn=Bn.length>0?Bn.charAt(0):"",Ye=Bn.length>1?Bn.slice(1):"";return Gn.toUpperCase()+Ye}const gn=new d.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Bn=(0,d.f3M)(Dt),Gn=(0,d.f3M)(lt),Ye=[].concat.apply([],(Bn||[]).map(ze=>Array.isArray(ze)?ze:[ze]));return function Ae(Bn,Gn=[]){const Ye={};return Bn.forEach(fn=>{Ye[fn.alias]=fn}),Gn.forEach(fn=>{Ye[fn.alias]?(0,x.kt)(Ye[fn.alias],fn):Ye[fn.alias]=fn}),function _n(Bn){return Bn.forEach(Gn=>{Gn.suffix||(Gn.suffix=function on(Bn){return Bn.replace(re,"|").split("|").map(De).join("")}(Gn.alias),Gn.overlapping=!!Gn.overlapping)}),Bn}(Object.keys(Ye).map(fn=>Ye[fn]))}((Gn.disableDefaultBps?[]:Le).concat(Gn.addOrientationBps?Wt:[]),Ye)}});let we=(()=>{class Bn{constructor(Ye){this.findByMap=new Map,this.items=[...Ye].sort(Bt)}findByAlias(Ye){return Ye?this.findWithPredicate(Ye,fn=>fn.alias===Ye):null}findByQuery(Ye){return this.findWithPredicate(Ye,fn=>fn.mediaQuery===Ye)}get overlappings(){return this.items.filter(Ye=>Ye.overlapping)}get aliases(){return this.items.map(Ye=>Ye.alias)}get suffixes(){return this.items.map(Ye=>Ye?.suffix??"")}findWithPredicate(Ye,fn){let ze=this.findByMap.get(Ye);return ze||(ze=this.items.find(fn)??null,this.findByMap.set(Ye,ze)),ze??null}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(gn))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const un="print",Un={alias:un,mediaQuery:un,priority:1e3};let oi=(()=>{class Bn{constructor(Ye,fn,ze){this.breakpoints=Ye,this.layoutConfig=fn,this._document=ze,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new vi,this.deactivations=[]}withPrintQuery(Ye){return[...Ye,un]}isPrintEvent(Ye){return Ye.mediaQuery.startsWith(un)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Ye=>this.breakpoints.findByAlias(Ye)).filter(Ye=>null!==Ye)}getEventBreakpoints({mediaQuery:Ye}){const fn=this.breakpoints.findByQuery(Ye);return(fn?[...this.printBreakPoints,fn]:this.printBreakPoints).sort(Et)}updateEvent(Ye){let fn=this.breakpoints.findByQuery(Ye.mediaQuery);return this.isPrintEvent(Ye)&&(fn=this.getEventBreakpoints(Ye)[0],Ye.mediaQuery=fn?.mediaQuery??""),Pt(Ye,fn)}registerBeforeAfterPrintHooks(Ye){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const fn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Ye,this.getEventBreakpoints(new J(!0,un))),Ye.updateStyles())},ze=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Ye),Ye.updateStyles())};this._document.defaultView.addEventListener("beforeprint",fn),this._document.defaultView.addEventListener("afterprint",ze),this.beforePrintEventListeners.push(fn),this.afterPrintEventListeners.push(ze)}interceptEvents(Ye){return fn=>{this.isPrintEvent(fn)?fn.matches&&!this.isPrinting?(this.startPrinting(Ye,this.getEventBreakpoints(fn)),Ye.updateStyles()):!fn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Ye),Ye.updateStyles()):this.collectActivations(Ye,fn)}}blockPropagation(){return Ye=>!(this.isPrinting||this.isPrintEvent(Ye))}startPrinting(Ye,fn){this.isPrinting=!0,this.formerActivations=Ye.activatedBreakpoints,Ye.activatedBreakpoints=this.queue.addPrintBreakpoints(fn)}stopPrinting(Ye){Ye.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Ye,fn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!fn.matches){const ze=this.breakpoints.findByQuery(fn.mediaQuery);if(ze){const We=this.formerActivations&&this.formerActivations.includes(ze),en=!this.formerActivations&&Ye.activatedBreakpoints.includes(ze);(We||en)&&(this.deactivations.push(ze),this.deactivations.sort(Et))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("beforeprint",Ye)),this.afterPrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("afterprint",Ye)))}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(we),d.LFG(lt),d.LFG(p.K0))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();class vi{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Gn){return Gn.push(Un),Gn.sort(Et),Gn.forEach(Ye=>this.addBreakpoint(Ye)),this.printBreakpoints}addBreakpoint(Gn){Gn&&void 0===this.printBreakpoints.find(fn=>fn.mediaQuery===Gn.mediaQuery)&&(this.printBreakpoints=function si(Bn){return Bn?.mediaQuery.startsWith(un)??!1}(Gn)?[Gn,...this.printBreakpoints]:[...this.printBreakpoints,Gn])}clear(){this.printBreakpoints=[]}}let Ke=(()=>{class Bn{constructor(Ye,fn,ze){this.matchMedia=Ye,this.breakpoints=fn,this.hook=ze,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new A.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Ye){this._activatedBreakpoints=[...Ye]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Ye){this._useFallbacks=Ye}onMediaChange(Ye){const fn=this.findByQuery(Ye.mediaQuery);if(fn){Ye=Pt(Ye,fn);const ze=this.activatedBreakpoints.indexOf(fn);Ye.matches&&-1===ze?(this._activatedBreakpoints.push(fn),this._activatedBreakpoints.sort(Et),this.updateStyles()):!Ye.matches&&-1!==ze&&(this._activatedBreakpoints.splice(ze,1),this._activatedBreakpoints.sort(Et),this.updateStyles())}}init(Ye,fn,ze,We,en=[]){ne(this.updateMap,Ye,fn,ze),ne(this.clearMap,Ye,fn,We),this.buildElementKeyMap(Ye,fn),this.watchExtraTriggers(Ye,fn,en)}getValue(Ye,fn,ze){const We=this.elementMap.get(Ye);if(We){const en=void 0!==ze?We.get(ze):this.getActivatedValues(We,fn);if(en)return en.get(fn)}}hasValue(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);if(We)return void 0!==We.get(fn)||!1}return!1}setValue(Ye,fn,ze,We){let en=this.elementMap.get(Ye);if(en){const je=(en.get(We)??new Map).set(fn,ze);en.set(We,je),this.elementMap.set(Ye,en)}else en=(new Map).set(We,(new Map).set(fn,ze)),this.elementMap.set(Ye,en);const le=this.getValue(Ye,fn);void 0!==le&&this.updateElement(Ye,fn,le)}trackValue(Ye,fn){return this.subject.asObservable().pipe((0,U.h)(ze=>ze.element===Ye&&ze.key===fn))}updateStyles(){this.elementMap.forEach((Ye,fn)=>{const ze=new Set(this.elementKeyMap.get(fn));let We=this.getActivatedValues(Ye);We&&We.forEach((en,le)=>{this.updateElement(fn,le,en),ze.delete(le)}),ze.forEach(en=>{if(We=this.getActivatedValues(Ye,en),We){const le=We.get(en);this.updateElement(fn,en,le)}else this.clearElement(fn,en)})})}clearElement(Ye,fn){const ze=this.clearMap.get(Ye);if(ze){const We=ze.get(fn);We&&(We(),this.subject.next({element:Ye,key:fn,value:""}))}}updateElement(Ye,fn,ze){const We=this.updateMap.get(Ye);if(We){const en=We.get(fn);en&&(en(ze),this.subject.next({element:Ye,key:fn,value:ze}))}}releaseElement(Ye){const fn=this.watcherMap.get(Ye);fn&&(fn.forEach(We=>We.unsubscribe()),this.watcherMap.delete(Ye));const ze=this.elementMap.get(Ye);ze&&(ze.forEach((We,en)=>ze.delete(en)),this.elementMap.delete(Ye))}triggerUpdate(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);We&&(fn?this.updateElement(Ye,fn,We.get(fn)):We.forEach((en,le)=>this.updateElement(Ye,le,en)))}}buildElementKeyMap(Ye,fn){let ze=this.elementKeyMap.get(Ye);ze||(ze=new Set,this.elementKeyMap.set(Ye,ze)),ze.add(fn)}watchExtraTriggers(Ye,fn,ze){if(ze&&ze.length){let We=this.watcherMap.get(Ye);if(We||(We=new Map,this.watcherMap.set(Ye,We)),!We.get(fn)){const le=(0,t.T)(...ze).subscribe(()=>{const je=this.getValue(Ye,fn);this.updateElement(Ye,fn,je)});We.set(fn,le)}}}findByQuery(Ye){return this.breakpoints.findByQuery(Ye)}getActivatedValues(Ye,fn){for(let We=0;Wefn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Ye)).pipe((0,k.b)(this.hook.interceptEvents(this)),(0,U.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(Ft),d.LFG(we),d.LFG(oi))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();function ne(Bn,Gn,Ye,fn){if(void 0!==fn){const ze=Bn.get(Gn)??new Map;ze.set(Ye,fn),Bn.set(Gn,ze)}}let ct=(()=>{class Bn{constructor(Ye,fn,ze,We){this.elementRef=Ye,this.styleBuilder=fn,this.styler=ze,this.marshal=We,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new A.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(Ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,this.marshal.activatedAlias)}ngOnChanges(Ye){Object.keys(Ye).forEach(fn=>{if(-1!==this.inputs.indexOf(fn)){const ze=fn.split(".").slice(1).join(".");this.setValue(Ye[fn].currentValue,ze)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Ye=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Ye)}addStyles(Ye,fn){const ze=this.styleBuilder,We=ze.shouldCache;let en=this.styleCache.get(Ye);(!en||!We)&&(en=ze.buildStyles(Ye,fn),We&&this.styleCache.set(Ye,en)),this.mru={...en},this.applyStyleToElement(en),ze.sideEffect(Ye,en,fn)}clearStyles(){Object.keys(this.mru).forEach(Ye=>{this.mru[Ye]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Ye,fn=!1){if(Ye){const[ze,We]=this.styler.getFlowDirection(Ye);if(!We&&fn){const en=(0,x.Ar)(ze);this.styler.applyStyleToElements(en,[Ye])}return ze.trim()}return"row"}hasWrap(Ye){return this.styler.hasWrap(Ye)}applyStyleToElement(Ye,fn,ze=this.nativeElement){this.styler.applyStyleToElement(ze,Ye,fn)}setValue(Ye,fn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,fn)}updateWithValue(Ye){this.currentValue!==Ye&&(this.addStyles(Ye),this.currentValue=Ye)}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.Y36(d.SBq),d.Y36(zt),d.Y36(Vt),d.Y36(Ke))},Bn.\u0275dir=d.lG2({type:Bn,features:[d.TTD]}),Bn})();function mi(Bn,Gn="1",Ye="1"){let fn=[Gn,Ye,Bn],ze=Bn.indexOf("calc");if(ze>0){fn[2]=Li(Bn.substring(ze).trim());let We=Bn.substr(0,ze).trim().split(" ");2==We.length&&(fn[0]=We[0],fn[1]=We[1])}else if(0==ze)fn[2]=Li(Bn.trim());else{let We=Bn.split(" ");fn=3===We.length?We:[Gn,Ye,Bn]}return fn}function Li(Bn){return Bn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function fi(Bn,Gn){if(void 0===Gn)return Bn;const Ye=fn=>{const ze=+fn.slice(0,-"x".length);return Bn.endsWith("x")&&!isNaN(ze)?`${ze*Gn.value}${Gn.unit}`:Bn};return Bn.includes(" ")?Bn.split(" ").map(Ye).join(" "):Ye(Bn)}EventTarget},55829:(at,et,v)=>{"use strict";v.d(et,{Zl:()=>be,aT:()=>$e,b8:()=>Vt,oO:()=>ot});var d=v(94650),p=v(32233),b=v(36895),T=v(21281),t=v(7625),A=v(11481);let z=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,De,on){super(ae,null,Kt,de),this.ngClassInstance=on,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new b.mk(Wt,re,ae,De)),this.init(),this.setValue("","")}set klass(ae){this.ngClassInstance.klass=ae,this.setValue(ae,"")}updateWithValue(ae){this.ngClassInstance.ngClass=ae,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(b.mk,10))},Xt.\u0275dir=d.lG2({type:Xt,inputs:{klass:["class","klass"]},features:[d.qOj]}),Xt})();const J=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ot=(()=>{class Xt extends z{constructor(){super(...arguments),this.inputs=J}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[d.qOj]}),Xt})(),lt=(()=>{class Xt extends p.QI{buildStyles(ae,Kt){return{display:"true"===ae?Kt.display||(Kt.isServer?"initial":""):"none"}}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275prov=d.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),vt=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,De,on){super(ae,Kt,de,Wt),this.layoutConfig=re,this.platformId=De,this.serverModuleLoaded=on,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ae=Array.from(this.nativeElement.children);for(let de=0;de{if(-1!==this.inputs.indexOf(Kt)){const de=Kt.split("."),Wt=de.slice(1).join("."),re=ae[Kt].currentValue;let De=""===re||0!==re&&(0,T.Ig)(re);"fxHide"===de[0]&&(De=!De),this.setValue(De,Wt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ae=>{this.marshal.trackValue(this.nativeElement,ae).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(ae=!0){if(""===ae)return;const Kt=(0,b.PM)(this.platformId);this.addStyles(ae?"true":"false",{display:this.display,isServer:Kt}),Kt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(lt),d.Y36(p.RK),d.Y36(p.yB),d.Y36(p.WU),d.Y36(d.Lbi),d.Y36(p.wY))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj,d.TTD]}),Xt})();const Dt=new WeakMap,Pt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Vt=(()=>{class Xt extends vt{constructor(){super(...arguments),this.inputs=Pt}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[d.qOj]}),Xt})();class it{constructor(Te,ae,Kt=!0){this.key=Te,this.value=ae,this.key=Kt?Te.replace(/['"]/g,"").trim():Te.trim(),this.value=Kt?ae.replace(/['"]/g,"").trim():ae.trim(),this.value=this.value.replace(/;/,"")}}function Tt(Xt){let Te=typeof Xt;return"object"===Te?Xt.constructor===Array?"array":Xt.constructor===Set?"set":"object":Te}function Bt(Xt){const[Te,...ae]=Xt.split(":");return new it(Te,ae.join(":"))}function Ft(Xt,Te){return Te.key&&(Xt[Te.key]=Te.value),Xt}let se=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,De,on,_n,Ae){super(ae,null,Kt,de),this.sanitizer=Wt,this.ngStyleInstance=on,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new b.PC(ae,re,De)),this.init();const gn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(gn),this.isServer=_n&&(0,b.PM)(Ae)}updateWithValue(ae){const Kt=this.buildStyleMap(ae);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Kt},this.isServer&&this.applyStyleToElement(Kt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ae){const Kt=de=>this.sanitizer.sanitize(d.q3G.STYLE,de)??"";if(ae)switch(Tt(ae)){case"string":return Le(function At(Xt,Te=";"){return String(Xt).trim().split(Te).map(ae=>ae.trim()).filter(ae=>""!==ae)}(ae),Kt);case"array":return Le(ae,Kt);default:return function Et(Xt,Te){let ae=[];return"set"===Tt(Xt)?Xt.forEach(Kt=>ae.push(Kt)):Object.keys(Xt).forEach(Kt=>{ae.push(`${Kt}:${Xt[Kt]}`)}),function ft(Xt,Te){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(Te&&(Kt.value=Te(Kt.value)),Kt)).reduce(Ft,{})}(ae,Te)}(ae,Kt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(A.H7),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(b.PC,10),d.Y36(p.wY),d.Y36(d.Lbi))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj]}),Xt})();const jt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let be=(()=>{class Xt extends se{constructor(){super(...arguments),this.inputs=jt}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[d.qOj]}),Xt})();function Le(Xt,Te){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(Te&&(Kt.value=Te(Kt.value)),Kt)).reduce(Ft,{})}let $e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=d.oAB({type:Xt}),Xt.\u0275inj=d.cJS({imports:[p.IR]}),Xt})()},1576:(at,et,v)=>{"use strict";v.d(et,{SQ:()=>vt,Wh:()=>mi,XD:()=>ct,ae:()=>en,s9:()=>Jt,xw:()=>P,yH:()=>ve});var d=v(94650),p=v(40445),b=v(32233),T=v(85863),t=v(8929),A=v(7625);let x=(()=>{class le extends b.QI{buildStyles(Lt,{display:wt}){const Ot=(0,T.Ar)(Lt);return{...Ot,display:"none"===wt?wt:Ot.display}}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const U=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let D=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye,Xe){super(Lt,Ot,wt,ye),this._config=Xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Lt){const Ot=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=F.get(Ot)??new Map,F.set(Ot,this.styleCache),this.currentValue!==Lt&&(this.addStyles(Lt,{display:Ot}),this.currentValue=Lt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(x),d.Y36(b.yB),d.Y36(b.WU))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),P=(()=>{class le extends D{constructor(){super(...arguments),this.inputs=U}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[d.qOj]}),le})();const F=new Map,z={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let J=(()=>{class le extends b.QI{constructor(Lt,wt){super(),this._styler=Lt,this._config=wt}buildStyles(Lt,wt){return Lt.endsWith(it)?(Lt=Lt.slice(0,Lt.indexOf(it)),function At(le,je){const[Lt,wt]=le.split(" "),ye=he=>`-${he}`;let Xe="0px",Ne=ye(wt??Lt),Tn="0px";return"rtl"===je?Tn=ye(Lt):Xe=ye(Lt),{margin:`0px ${Xe} ${Ne} ${Tn}`}}(Lt=(0,b.FL)(Lt,this._config.multiplier),wt.directionality)):{}}sideEffect(Lt,wt,Ot){const ye=Ot.items;if(Lt.endsWith(it)){Lt=Lt.slice(0,Lt.indexOf(it));const Xe=function Tt(le,je){const[Lt,wt]=le.split(" ");let ye="0px",Ne="0px";return"rtl"===je?Ne=Lt:ye=Lt,{padding:`0px ${ye} ${wt??Lt} ${Ne}`}}(Lt=(0,b.FL)(Lt,this._config.multiplier),Ot.directionality);this._styler.applyStyleToElements(Xe,Ot.items)}else{Lt=(0,b.FL)(Lt,this._config.multiplier),Lt=this.addFallbackUnit(Lt);const Xe=ye.pop(),Ne=function Et(le,je){const Lt=ft(je.directionality,je.layout),wt={...z};return wt[Lt]=le,wt}(Lt,Ot);this._styler.applyStyleToElements(Ne,ye),this._styler.applyStyleToElements(z,[Xe])}}addFallbackUnit(Lt){return isNaN(+Lt)?Lt:`${Lt}${this._config.defaultUnit}`}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(b.RK),d.LFG(b.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const K=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let lt=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye,Xe,Ne){super(Lt,Xe,ye,Ne),this.zone=wt,this.directionality=Ot,this.styleUtils=ye,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Tn=[this.directionality.change,this.observerSubject.asObservable()];this.init(Tn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Lt=this.nativeElement.children,wt=[];for(let Ot=Lt.length;Ot--;)wt[Ot]=Lt[Ot];return wt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Lt){const Ot=Lt.value.split(" ");this.layout=Ot[0],T.iQ.find(ye=>ye===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Lt){const wt=this.childrenNodes.filter(Ot=>1===Ot.nodeType&&this.willDisplay(Ot)).sort((Ot,ye)=>{const Xe=+this.styler.lookupStyle(Ot,"order"),Ne=+this.styler.lookupStyle(ye,"order");return isNaN(Xe)||isNaN(Ne)||Xe===Ne?0:Xe>Ne?1:-1});if(wt.length>0){const Ot=this.directionality.value,ye=this.layout;"row"===ye&&"rtl"===Ot?this.styleCache=Dt:"row"===ye&&"rtl"!==Ot?this.styleCache=zt:"column"===ye&&"rtl"===Ot?this.styleCache=Pt:"column"===ye&&"rtl"!==Ot&&(this.styleCache=Vt),this.addStyles(Lt,{directionality:Ot,items:wt,layout:ye})}}clearStyles(){const Lt=Object.keys(this.mru).length>0,wt=Lt?"padding":ft(this.directionality.value,this.layout);Lt&&super.clearStyles(),this.styleUtils.applyStyleToElements({[wt]:""},this.childrenNodes)}willDisplay(Lt){const wt=this.marshal.getValue(Lt,"show-hide");return!0===wt||void 0===wt&&"none"!==this.styleUtils.lookupStyle(Lt,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Lt=>{Lt.some(Ot=>Ot.addedNodes&&Ot.addedNodes.length>0||Ot.removedNodes&&Ot.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(p.Is),d.Y36(b.RK),d.Y36(J),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),vt=(()=>{class le extends lt{constructor(){super(...arguments),this.inputs=K}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[d.qOj]}),le})();const Dt=new Map,Pt=new Map,zt=new Map,Vt=new Map,it=" grid";function ft(le,je){switch(je){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===le?"margin-left":"margin-right";case"row-reverse":return"rtl"===le?"margin-right":"margin-left"}}let Bt=(()=>{class le extends b.QI{constructor(Lt){super(),this.layoutConfig=Lt}buildStyles(Lt,wt){let[Ot,ye,...Xe]=Lt.split(" "),Ne=Xe.join(" ");const Tn=wt.direction.indexOf("column")>-1?"column":"row",he=(0,T.tj)(Tn)?"max-width":"max-height",Re=(0,T.tj)(Tn)?"min-width":"min-height",En=String(Ne).indexOf("calc")>-1,gi=En||"auto"===Ne,go=String(Ne).indexOf("%")>-1&&!En,_o=String(Ne).indexOf("px")>-1||String(Ne).indexOf("rem")>-1||String(Ne).indexOf("em")>-1||String(Ne).indexOf("vw")>-1||String(Ne).indexOf("vh")>-1;let mn=En||_o;Ot="0"==Ot?0:Ot,ye="0"==ye?0:ye;const An=!Ot&&!ye;let sn={};const ei={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ne||""){case"":const Zi=!1!==this.layoutConfig.useColumnBasisZero;Ne="row"===Tn?"0%":Zi?"0.000000001px":"auto";break;case"initial":case"nogrow":Ot=0,Ne="auto";break;case"grow":Ne="100%";break;case"noshrink":ye=0,Ne="auto";break;case"auto":break;case"none":Ot=0,ye=0,Ne="auto";break;default:!mn&&!go&&!isNaN(Ne)&&(Ne+="%"),"0%"===Ne&&(mn=!0),"0px"===Ne&&(Ne="0%"),sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":ye,"flex-basis":mn?Ne:"100%"}:{flex:`${Ot} ${ye} ${mn?Ne:"100%"}`})}return sn.flex||sn["flex-grow"]||(sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":ye,"flex-basis":Ne}:{flex:`${Ot} ${ye} ${Ne}`})),"0%"!==Ne&&"0px"!==Ne&&"0.000000001px"!==Ne&&"auto"!==Ne&&(sn[Re]=An||mn&&Ot?Ne:null,sn[he]=An||!gi&&ye?Ne:null),sn[Re]||sn[he]?wt.hasWrap&&(sn[En?"flex-basis":"flex"]=sn[he]?En?sn[he]:`${Ot} ${ye} ${sn[he]}`:En?sn[Re]:`${Ot} ${ye} ${sn[Re]}`):sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":ye,"flex-basis":Ne}:{flex:`${Ot} ${ye} ${Ne}`}),(0,T.kt)(sn,{"box-sizing":"border-box"})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(b.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Ft=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let jt=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye,Xe){super(Lt,ye,wt,Xe),this.layoutConfig=Ot,this.marshal=Xe,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Lt){this.flexShrink=Lt||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Lt){this.flexGrow=Lt||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,A.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Lt){const Ot=Lt.value.split(" ");this.direction=Ot[0],this.wrap=void 0!==Ot[1]&&"wrap"===Ot[1],this.triggerUpdate()}updateWithValue(Lt){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const Ot=this.direction,ye=Ot.startsWith("row"),Xe=this.wrap;ye&&Xe?this.styleCache=qe:ye&&!Xe?this.styleCache=be:!ye&&Xe?this.styleCache=$e:!ye&&!Xe&&(this.styleCache=Le);const Ne=String(Lt).replace(";",""),Tn=(0,b.Ot)(Ne,this.flexGrow,this.flexShrink);this.addStyles(Tn.join(" "),{direction:Ot,hasWrap:Xe})}triggerReflow(){const Lt=this.activatedValue;if(void 0!==Lt){const wt=(0,b.Ot)(Lt+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,wt.join(" "))}}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(b.WU),d.Y36(Bt),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[d.qOj]}),le})(),ve=(()=>{class le extends jt{constructor(){super(...arguments),this.inputs=Ft}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[d.qOj]}),le})();const be=new Map,Le=new Map,qe=new Map,$e=new Map;let oi=(()=>{class le extends b.QI{buildStyles(Lt){const wt={};switch(Lt=Lt||"stretch"){case"start":wt["align-self"]="flex-start";break;case"end":wt["align-self"]="flex-end";break;default:wt["align-self"]=Lt}return wt}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const vi=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let Ke=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye){super(Lt,Ot,wt,ye),this.DIRECTIVE_KEY="flex-align",this.styleCache=ne,this.init()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(oi),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})();const ne=new Map;let ct=(()=>{class le extends Ke{constructor(){super(...arguments),this.inputs=vi}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[d.qOj]}),le})();const nt={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let kt=(()=>{class le extends b.QI{buildStyles(Lt){return nt}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),Jt=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye){super(Lt,Ot,wt,ye),this.styleCache=oe,this.addStyles("")}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(kt),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[d.qOj]}),le})();const oe=new Map;let Ce=(()=>{class le extends b.QI{buildStyles(Lt,wt){const Ot={},[ye,Xe]=Lt.split(" ");switch(ye){case"center":Ot["justify-content"]="center";break;case"space-around":Ot["justify-content"]="space-around";break;case"space-between":Ot["justify-content"]="space-between";break;case"space-evenly":Ot["justify-content"]="space-evenly";break;case"end":case"flex-end":Ot["justify-content"]="flex-end";break;default:Ot["justify-content"]="flex-start"}switch(Xe){case"start":case"flex-start":Ot["align-items"]=Ot["align-content"]="flex-start";break;case"center":Ot["align-items"]=Ot["align-content"]="center";break;case"end":case"flex-end":Ot["align-items"]=Ot["align-content"]="flex-end";break;case"space-between":Ot["align-content"]="space-between",Ot["align-items"]="stretch";break;case"space-around":Ot["align-content"]="space-around",Ot["align-items"]="stretch";break;case"baseline":Ot["align-content"]="stretch",Ot["align-items"]="baseline";break;default:Ot["align-items"]=Ot["align-content"]="stretch"}return(0,T.kt)(Ot,{display:wt.inline?"inline-flex":"flex","flex-direction":wt.layout,"box-sizing":"border-box","max-width":"stretch"===Xe?(0,T.tj)(wt.layout)?null:"100%":null,"max-height":"stretch"===Xe&&(0,T.tj)(wt.layout)?"100%":null})}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Oe=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Sn=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye){super(Lt,Ot,wt,ye),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Lt){const wt=this.layout||"row",Ot=this.inline;"row"===wt&&Ot?this.styleCache=Gn:"row"!==wt||Ot?"row-reverse"===wt&&Ot?this.styleCache=fn:"row-reverse"!==wt||Ot?"column"===wt&&Ot?this.styleCache=Ye:"column"!==wt||Ot?"column-reverse"===wt&&Ot?this.styleCache=ze:"column-reverse"===wt&&!Ot&&(this.styleCache=Bn):this.styleCache=ho:this.styleCache=fi:this.styleCache=Li,this.addStyles(Lt,{layout:wt,inline:Ot})}onLayoutChange(Lt){const wt=Lt.value.split(" ");this.layout=wt[0],this.inline=Lt.value.includes("inline"),T.iQ.find(Ot=>Ot===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(Ce),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),mi=(()=>{class le extends Sn{constructor(){super(...arguments),this.inputs=Oe}}return le.\u0275fac=function(){let je;return function(wt){return(je||(je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[d.qOj]}),le})();const Li=new Map,ho=new Map,fi=new Map,Bn=new Map,Gn=new Map,Ye=new Map,fn=new Map,ze=new Map;let en=(()=>{class le{}return le.\u0275fac=function(Lt){return new(Lt||le)},le.\u0275mod=d.oAB({type:le}),le.\u0275inj=d.cJS({imports:[b.IR,p.vT]}),le})()},24006:(at,et,v)=>{"use strict";v.d(et,{CE:()=>Gs,Cf:()=>vt,F:()=>vr,Fd:()=>pr,Fj:()=>J,JJ:()=>si,JL:()=>Ke,JU:()=>U,NI:()=>Or,On:()=>Wr,Q7:()=>Hl,QS:()=>Qs,UX:()=>rl,Zs:()=>ks,_Y:()=>Ns,a5:()=>un,kI:()=>zt,nD:()=>uc,nJ:()=>Re,oH:()=>Bs,p4:()=>fc,qQ:()=>vs,qu:()=>Pa,sg:()=>pd,u:()=>Nl,u5:()=>Vc,wV:()=>hr,x0:()=>Vs});var d=v(94650),p=v(36895),b=v(5254),T=v(30567),t=v(24850);let A=(()=>{class pe{constructor(qt,rt){this._renderer=qt,this._elementRef=rt,this.onChange=ki=>{},this.onTouched=()=>{}}setProperty(qt,rt){this._renderer.setProperty(this._elementRef.nativeElement,qt,rt)}registerOnTouched(qt){this.onTouched=qt}registerOnChange(qt){this.onChange=qt}setDisabledState(qt){this.setProperty("disabled",qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq))},pe.\u0275dir=d.lG2({type:pe}),pe})(),x=(()=>{class pe extends A{}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const U=new d.OlP("NgValueAccessor"),P={provide:U,useExisting:(0,d.Gpc)(()=>J),multi:!0},z=new d.OlP("CompositionEventMode");let J=(()=>{class pe extends A{constructor(qt,rt,ki){super(qt,rt),this._compositionMode=ki,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function F(){const pe=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(pe.toLowerCase())}())}writeValue(qt){this.setProperty("value",qt??"")}_handleInput(qt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(qt)}_compositionStart(){this._composing=!0}_compositionEnd(qt){this._composing=!1,this._compositionMode&&this.onChange(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(z,8))},pe.\u0275dir=d.lG2({type:pe,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(qt,rt){1&qt&&d.NdJ("input",function(Go){return rt._handleInput(Go.target.value)})("blur",function(){return rt.onTouched()})("compositionstart",function(){return rt._compositionStart()})("compositionend",function(Go){return rt._compositionEnd(Go.target.value)})},features:[d._Bn([P]),d.qOj]}),pe})();function ot(pe){return null==pe||("string"==typeof pe||Array.isArray(pe))&&0===pe.length}function lt(pe){return null!=pe&&"number"==typeof pe.length}const vt=new d.OlP("NgValidators"),Dt=new d.OlP("NgAsyncValidators"),Pt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zt{static min(ee){return Vt(ee)}static max(ee){return it(ee)}static required(ee){return Tt(ee)}static requiredTrue(ee){return At(ee)}static email(ee){return function ft(pe){return ot(pe.value)||Pt.test(pe.value)?null:{email:!0}}(ee)}static minLength(ee){return function Et(pe){return ee=>ot(ee.value)||!lt(ee.value)?null:ee.value.length{if(ot(rt.value))return null;const ki=rt.value;return ee.test(ki)?null:{pattern:{requiredPattern:qt,actualValue:ki}}}}(ee)}static nullValidator(ee){return null}static compose(ee){return Xt(ee)}static composeAsync(ee){return ae(ee)}}function Vt(pe){return ee=>{if(ot(ee.value)||ot(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt{if(ot(ee.value)||ot(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt>pe?{max:{max:pe,actual:ee.value}}:null}}function Tt(pe){return ot(pe.value)?{required:!0}:null}function At(pe){return!0===pe.value?null:{required:!0}}function Bt(pe){return ee=>lt(ee.value)&&ee.value.length>pe?{maxlength:{requiredLength:pe,actualLength:ee.value.length}}:null}function se(pe){return null}function jt(pe){return null!=pe}function ve(pe){return(0,d.QGY)(pe)?(0,b.D)(pe):pe}function be(pe){let ee={};return pe.forEach(qt=>{ee=null!=qt?{...ee,...qt}:ee}),0===Object.keys(ee).length?null:ee}function Le(pe,ee){return ee.map(qt=>qt(pe))}function $e(pe){return pe.map(ee=>function qe(pe){return!pe.validate}(ee)?ee:qt=>ee.validate(qt))}function Xt(pe){if(!pe)return null;const ee=pe.filter(jt);return 0==ee.length?null:function(qt){return be(Le(qt,ee))}}function Te(pe){return null!=pe?Xt($e(pe)):null}function ae(pe){if(!pe)return null;const ee=pe.filter(jt);return 0==ee.length?null:function(qt){const rt=Le(qt,ee).map(ve);return(0,T.D)(rt).pipe((0,t.U)(be))}}function Kt(pe){return null!=pe?ae($e(pe)):null}function de(pe,ee){return null===pe?[ee]:Array.isArray(pe)?[...pe,ee]:[pe,ee]}function Wt(pe){return pe._rawValidators}function re(pe){return pe._rawAsyncValidators}function De(pe){return pe?Array.isArray(pe)?pe:[pe]:[]}function on(pe,ee){return Array.isArray(pe)?pe.includes(ee):pe===ee}function _n(pe,ee){const qt=De(ee);return De(pe).forEach(ki=>{on(qt,ki)||qt.push(ki)}),qt}function Ae(pe,ee){return De(ee).filter(qt=>!on(pe,qt))}class gn{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(ee){this._rawValidators=ee||[],this._composedValidatorFn=Te(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=Kt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee){this.control&&this.control.reset(ee)}hasError(ee,qt){return!!this.control&&this.control.hasError(ee,qt)}getError(ee,qt){return this.control?this.control.getError(ee,qt):null}}class we extends gn{get formDirective(){return null}get path(){return null}}class un extends gn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Un{constructor(ee){this._cd=ee}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let si=(()=>{class pe extends Un{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(un,2))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)},features:[d.qOj]}),pe})(),Ke=(()=>{class pe extends Un{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)("ng-submitted",rt.isSubmitted)},features:[d.qOj]}),pe})();const ze="VALID",We="INVALID",en="PENDING",le="DISABLED";function je(pe){return(ye(pe)?pe.validators:pe)||null}function Lt(pe){return Array.isArray(pe)?Te(pe):pe||null}function wt(pe,ee){return(ye(ee)?ee.asyncValidators:pe)||null}function Ot(pe){return Array.isArray(pe)?Kt(pe):pe||null}function ye(pe){return null!=pe&&!Array.isArray(pe)&&"object"==typeof pe}function Xe(pe,ee,qt){const rt=pe.controls;if(!(ee?Object.keys(rt):rt).length)throw new d.vHH(1e3,"");if(!rt[qt])throw new d.vHH(1001,"")}function Ne(pe,ee,qt){pe._forEachChild((rt,ki)=>{if(void 0===qt[ki])throw new d.vHH(1002,"")})}class Tn{constructor(ee,qt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ee,this._rawAsyncValidators=qt,this._composedValidatorFn=Lt(this._rawValidators),this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===ze}get invalid(){return this.status===We}get pending(){return this.status==en}get disabled(){return this.status===le}get enabled(){return this.status!==le}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._rawValidators=ee,this._composedValidatorFn=Lt(ee)}setAsyncValidators(ee){this._rawAsyncValidators=ee,this._composedAsyncValidatorFn=Ot(ee)}addValidators(ee){this.setValidators(_n(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(_n(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(Ae(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(Ae(ee,this._rawAsyncValidators))}hasValidator(ee){return on(this._rawValidators,ee)}hasAsyncValidator(ee){return on(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(qt=>{qt.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(qt=>{qt.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=en,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=le,this.errors=null,this._forEachChild(rt=>{rt.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!0))}enable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=ze,this._forEachChild(rt=>{rt.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ze||this.status===en)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(qt=>qt._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?le:ze}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=en,this._hasOwnPendingAsyncValidator=!0;const qt=ve(this.asyncValidator(this));this._asyncValidationSubscription=qt.subscribe(rt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(rt,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,qt={}){this.errors=ee,this._updateControlsErrors(!1!==qt.emitEvent)}get(ee){let qt=ee;return null==qt||(Array.isArray(qt)||(qt=qt.split(".")),0===qt.length)?null:qt.reduce((rt,ki)=>rt&&rt._find(ki),this)}getError(ee,qt){const rt=qt?this.get(qt):this;return rt&&rt.errors?rt.errors[ee]:null}hasError(ee,qt){return!!this.getError(ee,qt)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?le:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(en)?en:this._anyControlsHaveStatus(We)?We:ze}_anyControlsHaveStatus(ee){return this._anyControls(qt=>qt.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){ye(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}}class he extends Tn{constructor(ee,qt,rt){super(je(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ee,qt){return this.controls[ee]?this.controls[ee]:(this.controls[ee]=qt,qt.setParent(this),qt._registerOnCollectionChange(this._onCollectionChange),qt)}addControl(ee,qt,rt={}){this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}removeControl(ee,qt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}setControl(ee,qt,rt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],qt&&this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}contains(ee){return this.controls.hasOwnProperty(ee)&&this.controls[ee].enabled}setValue(ee,qt={}){Ne(this,0,ee),Object.keys(ee).forEach(rt=>{Xe(this,!0,rt),this.controls[rt].setValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(Object.keys(ee).forEach(rt=>{const ki=this.controls[rt];ki&&ki.patchValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee={},qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this._reduceChildren({},(ee,qt,rt)=>(ee[rt]=qt.getRawValue(),ee))}_syncPendingControls(){let ee=this._reduceChildren(!1,(qt,rt)=>!!rt._syncPendingControls()||qt);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){Object.keys(this.controls).forEach(qt=>{const rt=this.controls[qt];rt&&ee(rt,qt)})}_setUpControls(){this._forEachChild(ee=>{ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ee){for(const[qt,rt]of Object.entries(this.controls))if(this.contains(qt)&&ee(rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(qt,rt,ki)=>((rt.enabled||this.disabled)&&(qt[ki]=rt.value),qt))}_reduceChildren(ee,qt){let rt=ee;return this._forEachChild((ki,Go)=>{rt=qt(rt,ki,Go)}),rt}_allControlsDisabled(){for(const ee of Object.keys(this.controls))if(this.controls[ee].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ee){return this.controls.hasOwnProperty(ee)?this.controls[ee]:null}}const Re=he;class gi extends he{}function _o(pe,ee){return[...ee.path,pe]}function mn(pe,ee){Zi(pe,ee),ee.valueAccessor.writeValue(pe.value),pe.disabled&&ee.valueAccessor.setDisabledState?.(!0),function No(pe,ee){ee.valueAccessor.registerOnChange(qt=>{pe._pendingValue=qt,pe._pendingChange=!0,pe._pendingDirty=!0,"change"===pe.updateOn&&qa(pe,ee)})}(pe,ee),function fr(pe,ee){const qt=(rt,ki)=>{ee.valueAccessor.writeValue(rt),ki&&ee.viewToModelUpdate(rt)};pe.registerOnChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnChange(qt)})}(pe,ee),function ua(pe,ee){ee.valueAccessor.registerOnTouched(()=>{pe._pendingTouched=!0,"blur"===pe.updateOn&&pe._pendingChange&&qa(pe,ee),"submit"!==pe.updateOn&&pe.markAsTouched()})}(pe,ee),function ei(pe,ee){if(ee.valueAccessor.setDisabledState){const qt=rt=>{ee.valueAccessor.setDisabledState(rt)};pe.registerOnDisabledChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnDisabledChange(qt)})}}(pe,ee)}function An(pe,ee,qt=!0){const rt=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(rt),ee.valueAccessor.registerOnTouched(rt)),bo(pe,ee),pe&&(ee._invokeOnDestroyCallbacks(),pe._registerOnCollectionChange(()=>{}))}function sn(pe,ee){pe.forEach(qt=>{qt.registerOnValidatorChange&&qt.registerOnValidatorChange(ee)})}function Zi(pe,ee){const qt=Wt(pe);null!==ee.validator?pe.setValidators(de(qt,ee.validator)):"function"==typeof qt&&pe.setValidators([qt]);const rt=re(pe);null!==ee.asyncValidator?pe.setAsyncValidators(de(rt,ee.asyncValidator)):"function"==typeof rt&&pe.setAsyncValidators([rt]);const ki=()=>pe.updateValueAndValidity();sn(ee._rawValidators,ki),sn(ee._rawAsyncValidators,ki)}function bo(pe,ee){let qt=!1;if(null!==pe){if(null!==ee.validator){const ki=Wt(pe);if(Array.isArray(ki)&&ki.length>0){const Go=ki.filter(La=>La!==ee.validator);Go.length!==ki.length&&(qt=!0,pe.setValidators(Go))}}if(null!==ee.asyncValidator){const ki=re(pe);if(Array.isArray(ki)&&ki.length>0){const Go=ki.filter(La=>La!==ee.asyncValidator);Go.length!==ki.length&&(qt=!0,pe.setAsyncValidators(Go))}}}const rt=()=>{};return sn(ee._rawValidators,rt),sn(ee._rawAsyncValidators,rt),qt}function qa(pe,ee){pe._pendingDirty&&pe.markAsDirty(),pe.setValue(pe._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(pe._pendingValue),pe._pendingChange=!1}function Je(pe,ee){Zi(pe,ee)}function Rt(pe,ee){if(!pe.hasOwnProperty("model"))return!1;const qt=pe.model;return!!qt.isFirstChange()||!Object.is(ee,qt.currentValue)}function Nt(pe,ee){pe._syncPendingControls(),ee.forEach(qt=>{const rt=qt.control;"submit"===rt.updateOn&&rt._pendingChange&&(qt.viewToModelUpdate(rt._pendingValue),rt._pendingChange=!1)})}function Be(pe,ee){if(!ee)return null;let qt,rt,ki;return Array.isArray(ee),ee.forEach(Go=>{Go.constructor===J?qt=Go:function Q(pe){return Object.getPrototypeOf(pe.constructor)===x}(Go)?rt=Go:ki=Go}),ki||rt||qt||null}const Ao={provide:we,useExisting:(0,d.Gpc)(()=>vr)},gr=(()=>Promise.resolve())();let vr=(()=>{class pe extends we{constructor(qt,rt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new he({},Te(qt),Kt(rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);qt.control=rt.registerControl(qt.name,qt.control),mn(qt.control,qt),qt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(qt)})}getControl(qt){return this.form.get(qt.path)}removeControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name),this._directives.delete(qt)})}addFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path),ki=new he({});Je(ki,qt),rt.registerControl(qt.name,ki),ki.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name)})}getFormGroup(qt){return this.form.get(qt.path)}updateModel(qt,rt){gr.then(()=>{this.form.get(qt.path).setValue(rt)})}setValue(qt){this.control.setValue(qt)}onSubmit(qt){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(qt){return qt.pop(),qt.length?this.form.get(qt):this.form}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(Go){return rt.onSubmit(Go)})("reset",function(){return rt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Ao]),d.qOj]}),pe})();function us(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}function ir(pe){return"object"==typeof pe&&null!==pe&&2===Object.keys(pe).length&&"value"in pe&&"disabled"in pe}const Or=class extends Tn{constructor(ee=null,qt,rt){super(je(qt),wt(rt,qt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(qt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ye(qt)&&(qt.nonNullable||qt.initialValueIsDefault)&&(this.defaultValue=ir(ee)?ee.value:ee)}setValue(ee,qt={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==qt.emitModelToViewChange&&this._onChange.forEach(rt=>rt(this.value,!1!==qt.emitViewToModelChange)),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){this.setValue(ee,qt)}reset(ee=this.defaultValue,qt={}){this._applyFormState(ee),this.markAsPristine(qt),this.markAsUntouched(qt),this.setValue(this.value,qt),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){us(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){us(this._onDisabledChange,ee)}_forEachChild(ee){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ee){ir(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},fc=Or;let Gr=(()=>{class pe extends we{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const kc={provide:un,useExisting:(0,d.Gpc)(()=>Wr)},vl=(()=>Promise.resolve())();let Wr=(()=>{class pe extends un{constructor(qt,rt,ki,Go,La){super(),this._changeDetectorRef=La,this.control=new Or,this._registered=!1,this.update=new d.vpe,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,Go)}ngOnChanges(qt){if(this._checkForErrors(),!this._registered||"name"in qt){if(this._registered&&(this._checkName(),this.formDirective)){const rt=qt.name.previousValue;this.formDirective.removeControl({name:rt,path:this._getPath(rt)})}this._setUpControl()}"isDisabled"in qt&&this._updateDisabled(qt),Rt(qt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){mn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(qt){vl.then(()=>{this.control.setValue(qt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(qt){const rt=qt.isDisabled.currentValue,ki=0!==rt&&(0,d.D6c)(rt);vl.then(()=>{ki&&!this.control.disabled?this.control.disable():!ki&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(qt){return this._parent?_o(qt,this._parent):[qt]}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,9),d.Y36(vt,10),d.Y36(Dt,10),d.Y36(U,10),d.Y36(d.sBO,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[d._Bn([kc]),d.qOj,d.TTD]}),pe})(),Ns=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),pe})();const s1={provide:U,useExisting:(0,d.Gpc)(()=>hr),multi:!0};let hr=(()=>{class pe extends x{writeValue(qt){this.setProperty("value",qt??"")}registerOnChange(qt){this.onChange=rt=>{qt(""==rt?null:parseFloat(rt))}}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("input",function(Go){return rt.onChange(Go.target.value)})("blur",function(){return rt.onTouched()})},features:[d._Bn([s1]),d.qOj]}),pe})(),hc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({}),pe})();const Rc=new d.OlP("NgModelWithFormControlWarning"),Hc={provide:un,useExisting:(0,d.Gpc)(()=>Bs)};let Bs=(()=>{class pe extends un{constructor(qt,rt,ki,Go){super(),this._ngModelWarningConfig=Go,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(qt),this._setAsyncValidators(rt),this.valueAccessor=Be(0,ki)}set isDisabled(qt){}ngOnChanges(qt){if(this._isControlChanged(qt)){const rt=qt.form.previousValue;rt&&An(rt,this,!1),mn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Rt(qt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&An(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}_isControlChanged(qt){return qt.hasOwnProperty("form")}}return pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(vt,10),d.Y36(Dt,10),d.Y36(U,10),d.Y36(Rc,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[d._Bn([Hc]),d.qOj,d.TTD]}),pe})();const xl={provide:we,useExisting:(0,d.Gpc)(()=>pd)};let pd=(()=>{class pe extends we{constructor(qt,rt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(qt),this._setAsyncValidators(rt)}ngOnChanges(qt){this._checkFormPresent(),qt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(qt){const rt=this.form.get(qt.path);return mn(rt,qt),rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(qt),rt}getControl(qt){return this.form.get(qt.path)}removeControl(qt){An(qt.control||null,qt,!1),function Rn(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}(this.directives,qt)}addFormGroup(qt){this._setUpFormContainer(qt)}removeFormGroup(qt){this._cleanUpFormContainer(qt)}getFormGroup(qt){return this.form.get(qt.path)}addFormArray(qt){this._setUpFormContainer(qt)}removeFormArray(qt){this._cleanUpFormContainer(qt)}getFormArray(qt){return this.form.get(qt.path)}updateModel(qt,rt){this.form.get(qt.path).setValue(rt)}onSubmit(qt){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_updateDomValue(){this.directives.forEach(qt=>{const rt=qt.control,ki=this.form.get(qt.path);rt!==ki&&(An(rt||null,qt),(pe=>pe instanceof Or)(ki)&&(mn(ki,qt),qt.control=ki))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(qt){const rt=this.form.get(qt.path);Je(rt,qt),rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(qt){if(this.form){const rt=this.form.get(qt.path);rt&&function Fn(pe,ee){return bo(pe,ee)}(rt,qt)&&rt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zi(this.form,this),this._oldForm&&bo(this._oldForm,this)}_checkFormPresent(){}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroup",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(Go){return rt.onSubmit(Go)})("reset",function(){return rt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([xl]),d.qOj,d.TTD]}),pe})();const Il={provide:we,useExisting:(0,d.Gpc)(()=>Vs)};let Vs=(()=>{class pe extends Gr{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki)}_checkParentType(){zc(this._parent)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,13),d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[d._Bn([Il]),d.qOj]}),pe})();const Al={provide:we,useExisting:(0,d.Gpc)(()=>Gs)};let Gs=(()=>{class pe extends we{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){zc(this._parent)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,13),d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[d._Bn([Al]),d.qOj]}),pe})();function zc(pe){return!(pe instanceof Vs||pe instanceof pd||pe instanceof Gs)}const Zs={provide:un,useExisting:(0,d.Gpc)(()=>Nl)};let Nl=(()=>{class pe extends un{constructor(qt,rt,ki,Go,La){super(),this._ngModelWarningConfig=La,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,Go)}set isDisabled(qt){}ngOnChanges(qt){this._added||this._setUpControl(),Rt(qt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}get path(){return _o(null==this.name?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}}return pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,13),d.Y36(vt,10),d.Y36(Dt,10),d.Y36(U,10),d.Y36(Rc,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([Zs]),d.qOj,d.TTD]}),pe})();function Mr(pe){return"number"==typeof pe?pe:parseFloat(pe)}let vc=(()=>{class pe{constructor(){this._validator=se}ngOnChanges(qt){if(this.inputName in qt){const rt=this.normalizeInput(qt[this.inputName].currentValue);this._enabled=this.enabled(rt),this._validator=this._enabled?this.createValidator(rt):se,this._onChange&&this._onChange()}}validate(qt){return this._validator(qt)}registerOnValidatorChange(qt){this._onChange=qt}enabled(qt){return null!=qt}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,features:[d.TTD]}),pe})();const Wa={provide:vt,useExisting:(0,d.Gpc)(()=>pr),multi:!0};let pr=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=qt=>Mr(qt),this.createValidator=qt=>it(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("max",rt._enabled?rt.max:null)},inputs:{max:"max"},features:[d._Bn([Wa]),d.qOj]}),pe})();const Bc={provide:vt,useExisting:(0,d.Gpc)(()=>vs),multi:!0};let vs=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=qt=>Mr(qt),this.createValidator=qt=>Vt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("min",rt._enabled?rt.min:null)},inputs:{min:"min"},features:[d._Bn([Bc]),d.qOj]}),pe})();const bc={provide:vt,useExisting:(0,d.Gpc)(()=>Hl),multi:!0},ar={provide:vt,useExisting:(0,d.Gpc)(()=>ks),multi:!0};let Hl=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=qt=>Tt}enabled(qt){return qt}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([bc]),d.qOj]}),pe})(),ks=(()=>{class pe extends Hl{constructor(){super(...arguments),this.createValidator=qt=>At}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},features:[d._Bn([ar]),d.qOj]}),pe})();const js={provide:vt,useExisting:(0,d.Gpc)(()=>uc),multi:!0};let uc=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=qt=>function _u(pe){return"number"==typeof pe?pe:parseInt(pe,10)}(qt),this.createValidator=qt=>Bt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("maxlength",rt._enabled?rt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[d._Bn([js]),d.qOj]}),pe})(),jr=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[hc]}),pe})(),Vc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[jr]}),pe})(),rl=(()=>{class pe{static withConfig(qt){return{ngModule:pe,providers:[{provide:Rc,useValue:qt.warnOnNgModelWithFormControl}]}}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[jr]}),pe})();class Cc extends Tn{constructor(ee,qt,rt){super(je(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ee){return this.controls[this._adjustIndex(ee)]}push(ee,qt={}){this.controls.push(ee),this._registerControl(ee),this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}insert(ee,qt,rt={}){this.controls.splice(ee,0,qt),this._registerControl(qt),this.updateValueAndValidity({emitEvent:rt.emitEvent})}removeAt(ee,qt={}){let rt=this._adjustIndex(ee);rt<0&&(rt=0),this.controls[rt]&&this.controls[rt]._registerOnCollectionChange(()=>{}),this.controls.splice(rt,1),this.updateValueAndValidity({emitEvent:qt.emitEvent})}setControl(ee,qt,rt={}){let ki=this._adjustIndex(ee);ki<0&&(ki=0),this.controls[ki]&&this.controls[ki]._registerOnCollectionChange(()=>{}),this.controls.splice(ki,1),qt&&(this.controls.splice(ki,0,qt),this._registerControl(qt)),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ee,qt={}){Ne(this,0,ee),ee.forEach((rt,ki)=>{Xe(this,!1,ki),this.at(ki).setValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(ee.forEach((rt,ki)=>{this.at(ki)&&this.at(ki).patchValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee=[],qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this.controls.map(ee=>ee.getRawValue())}clear(ee={}){this.controls.length<1||(this._forEachChild(qt=>qt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ee.emitEvent}))}_adjustIndex(ee){return ee<0?ee+this.length:ee}_syncPendingControls(){let ee=this.controls.reduce((qt,rt)=>!!rt._syncPendingControls()||qt,!1);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){this.controls.forEach((qt,rt)=>{ee(qt,rt)})}_updateValue(){this.value=this.controls.filter(ee=>ee.enabled||this.disabled).map(ee=>ee.value)}_anyControls(ee){return this.controls.some(qt=>qt.enabled&&ee(qt))}_setUpControls(){this._forEachChild(ee=>this._registerControl(ee))}_allControlsDisabled(){for(const ee of this.controls)if(ee.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ee){ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)}_find(ee){return this.at(ee)??null}}function Bi(pe){return!!pe&&(void 0!==pe.asyncValidators||void 0!==pe.validators||void 0!==pe.updateOn)}let Pa=(()=>{class pe{constructor(){this.useNonNullable=!1}get nonNullable(){const qt=new pe;return qt.useNonNullable=!0,qt}group(qt,rt=null){const ki=this._reduceControls(qt);let Go={};return Bi(rt)?Go=rt:null!==rt&&(Go.validators=rt.validator,Go.asyncValidators=rt.asyncValidator),new he(ki,Go)}record(qt,rt=null){const ki=this._reduceControls(qt);return new gi(ki,rt)}control(qt,rt,ki){let Go={};return this.useNonNullable?(Bi(rt)?Go=rt:(Go.validators=rt,Go.asyncValidators=ki),new Or(qt,{...Go,nonNullable:!0})):new Or(qt,rt,ki)}array(qt,rt,ki){const Go=qt.map(La=>this._createControl(La));return new Cc(Go,rt,ki)}_reduceControls(qt){const rt={};return Object.keys(qt).forEach(ki=>{rt[ki]=this._createControl(qt[ki])}),rt}_createControl(qt){return qt instanceof Or||qt instanceof Tn?qt:Array.isArray(qt)?this.control(qt[0],qt.length>1?qt[1]:null,qt.length>2?qt[2]:null):this.control(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})(),Qs=(()=>{class pe extends Pa{group(qt,rt=null){return super.group(qt,rt)}control(qt,rt,ki){return super.control(qt,rt,ki)}array(qt,rt,ki){return super.array(qt,rt,ki)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})()},47957:(at,et,v)=>{"use strict";v.d(et,{Bb:()=>_n,XC:()=>$e,ZL:()=>on});var d=v(12687),p=v(21281),b=v(83353),T=v(94650),t=v(3238),A=v(42654),x=v(8929),U=v(88514),k=v(36787),D=v(21086),P=v(23753),F=v(36895),z=v(98184),J=v(67376),K=v(40445),ot=v(29521),lt=v(84080),vt=v(24006),Dt=v(59549),Pt=v(1059),zt=v(87545),Vt=v(72986),it=v(92198),Tt=v(24850),At=v(22868),ft=v(18583);const Et=["panel"];function Bt(Ae,gn){if(1&Ae&&(T.TgZ(0,"div",0,1),T.Hsn(2),T.qZA()),2&Ae){const we=gn.id,un=T.oxw();T.Q6J("id",un.id)("ngClass",un._classList),T.uIk("aria-label",un.ariaLabel||null)("aria-labelledby",un._getPanelAriaLabelledby(we))}}const Ft=["*"];let se=0;class jt{constructor(gn,we){this.source=gn,this.option=we}}const ve=(0,t.Kr)(class{}),be=new T.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Le(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let qe=(()=>{class Ae extends ve{constructor(we,un,Un,oi){super(),this._changeDetectorRef=we,this._elementRef=un,this._activeOptionChanges=A.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T.vpe,this.opened=new T.vpe,this.closed=new T.vpe,this.optionActivated=new T.vpe,this._classList={},this.id="mat-autocomplete-"+se++,this.inertGroups=oi?.SAFARI||!1,this._autoActiveFirstOption=!!Un.autoActiveFirstOption,this._autoSelectActiveOption=!!Un.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,p.Ig)(we)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(we){this._autoSelectActiveOption=(0,p.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,p.du)(we).reduce((un,Un)=>(un[Un]=!0,un),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new d.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const un=new jt(this,we);this.optionSelected.emit(un)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return Ae.\u0275fac=function(we){return new(we||Ae)(T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(be),T.Y36(b.t4))},Ae.\u0275dir=T.lG2({type:Ae,viewQuery:function(we,un){if(1&we&&(T.Gf(T.Rgc,7),T.Gf(Et,5)),2&we){let Un;T.iGM(Un=T.CRH())&&(un.template=Un.first),T.iGM(Un=T.CRH())&&(un.panel=Un.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[T.qOj]}),Ae})(),$e=(()=>{class Ae extends qe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ae.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(Ae)))(un||Ae)}}(),Ae.\u0275cmp=T.Xpm({type:Ae,selectors:[["mat-autocomplete"]],contentQueries:function(we,un,Un){if(1&we&&(T.Suo(Un,t.K7,5),T.Suo(Un,t.ey,5)),2&we){let oi;T.iGM(oi=T.CRH())&&(un.optionGroups=oi),T.iGM(oi=T.CRH())&&(un.options=oi)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[T._Bn([{provide:t.HF,useExisting:Ae}]),T.qOj],ngContentSelectors:Ft,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,un){1&we&&(T.F$t(),T.YNc(0,Bt,3,4,"ng-template"))},dependencies:[F.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Ae})();const ae=new T.OlP("mat-autocomplete-scroll-strategy"),de={provide:ae,deps:[z.aV],useFactory:function Kt(Ae){return()=>Ae.scrollStrategies.reposition()}},Wt={provide:vt.JU,useExisting:(0,T.Gpc)(()=>on),multi:!0};let De=(()=>{class Ae{constructor(we,un,Un,oi,vi,si,Ke,ne,ct,nt,kt){this._element=we,this._overlay=un,this._viewContainerRef=Un,this._zone=oi,this._changeDetectorRef=vi,this._dir=Ke,this._formField=ne,this._document=ct,this._viewportRuler=nt,this._defaults=kt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new x.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,U.P)(()=>{const Jt=this.autocomplete?this.autocomplete.options:null;return Jt?Jt.changes.pipe((0,Pt.O)(Jt),(0,zt.w)(()=>(0,k.T)(...Jt.map(oe=>oe.onSelectionChange)))):this._zone.onStable.pipe((0,Vt.q)(1),(0,zt.w)(()=>this.optionSelections))}),this._scrollStrategy=si}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,p.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();typeof we<"u"&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();typeof we<"u"&&we.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,k.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,it.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,it.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,Tt.U)(we=>we instanceof t.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,k.T)((0,P.R)(this._document,"click"),(0,P.R)(this._document,"auxclick"),(0,P.R)(this._document,"touchend")).pipe((0,it.h)(we=>{const un=(0,b.sA)(we),Un=this._formField?this._formField._elementRef.nativeElement:null,oi=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&un!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Un||!Un.contains(un))&&(!oi||!oi.contains(un))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(un)}))}writeValue(we){Promise.resolve(null).then(()=>this._assignOptionValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const un=we.keyCode,Un=(0,ot.Vb)(we);if(un===ot.hY&&!Un&&we.preventDefault(),this.activeOption&&un===ot.K5&&this.panelOpen&&!Un)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const oi=this.autocomplete._keyManager.activeItem,vi=un===ot.LH||un===ot.JH;un===ot.Mf||vi&&!Un&&this.panelOpen?this.autocomplete._keyManager.onKeydown(we):vi&&this._canOpen()&&this.openPanel(),(vi||this.autocomplete._keyManager.activeItem!==oi)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(we){let un=we.target,Un=un.value;"number"===un.type&&(Un=""==Un?null:parseFloat(Un)),this._previousValue!==Un&&(this._previousValue=Un,this._pendingAutoselectedOption=null,this._onChange(Un),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,Vt.q)(1)),un=this.autocomplete.options.changes.pipe((0,At.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ft.g)(0));return(0,k.T)(we,un).pipe((0,zt.w)(()=>(this._zone.run(()=>{const Un=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Un!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Vt.q)(1)).subscribe(Un=>this._setValueAndClose(Un))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(we){const un=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we;this._updateNativeInputValue(un??"")}_updateNativeInputValue(we){this._formField?this._formField._control.value=we:this._element.nativeElement.value=we,this._previousValue=we}_setValueAndClose(we){const un=we?we.source:this._pendingAutoselectedOption;un&&(this._clearPreviousSelectedOption(un),this._assignOptionValue(un.value),this._onChange(un.value),this.autocomplete._emitSelectEvent(un),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(un=>{un!==we&&un.selected&&un.deselect()})}_attachOverlay(){let we=this._overlayRef;we?(this._positionStrategy.setOrigin(this._getConnectedElement()),we.updateSize({width:this._getPanelWidth()})):(this._portal=new lt.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),we=this._overlay.create(this._getOverlayConfig()),this._overlayRef=we,this._handleOverlayEvents(we),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&we&&we.updateSize({width:this._getPanelWidth()})})),we&&!we.hasAttached()&&(we.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const un=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&un!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const un=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Un=this._aboveClass,oi=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Un},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Un}];let vi;vi="above"===this.position?oi:"below"===this.position?un:[...un,...oi],we.withPositions(vi)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(we){const un=this.autocomplete,Un=(0,t.CB)(we,un.options,un.optionGroups);if(0===we&&1===Un)un._setScrollTop(0);else if(un.panel){const oi=un.options.toArray()[we];if(oi){const vi=oi._getHostElement(),si=(0,t.jH)(vi.offsetTop,vi.offsetHeight,un._getScrollTop(),un.panel.nativeElement.offsetHeight);un._setScrollTop(si)}}}_handleOverlayEvents(we){we.keydownEvents().subscribe(un=>{(un.keyCode===ot.hY&&!(0,ot.Vb)(un)||un.keyCode===ot.LH&&(0,ot.Vb)(un,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),un.stopPropagation(),un.preventDefault())}),we.outsidePointerEvents().subscribe()}}return Ae.\u0275fac=function(we){return new(we||Ae)(T.Y36(T.SBq),T.Y36(z.aV),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(T.sBO),T.Y36(ae),T.Y36(K.Is,8),T.Y36(Dt.G_,9),T.Y36(F.K0,8),T.Y36(J.rL),T.Y36(be,8))},Ae.\u0275dir=T.lG2({type:Ae,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[T.TTD]}),Ae})(),on=(()=>{class Ae extends De{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ae.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(Ae)))(un||Ae)}}(),Ae.\u0275dir=T.lG2({type:Ae,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,un){1&we&&T.NdJ("focusin",function(){return un._handleFocus()})("blur",function(){return un._onTouched()})("input",function(oi){return un._handleInput(oi)})("keydown",function(oi){return un._handleKeydown(oi)})("click",function(){return un._handleClick()}),2&we&&T.uIk("autocomplete",un.autocompleteAttribute)("role",un.autocompleteDisabled?null:"combobox")("aria-autocomplete",un.autocompleteDisabled?null:"list")("aria-activedescendant",un.panelOpen&&un.activeOption?un.activeOption.id:null)("aria-expanded",un.autocompleteDisabled?null:un.panelOpen.toString())("aria-owns",un.autocompleteDisabled||!un.panelOpen||null==un.autocomplete?null:un.autocomplete.id)("aria-haspopup",un.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[T._Bn([Wt]),T.qOj]}),Ae})(),_n=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275mod=T.oAB({type:Ae}),Ae.\u0275inj=T.cJS({providers:[de],imports:[z.U8,t.Ng,t.BQ,F.ez,J.ZD,t.Ng,t.BQ]}),Ae})()},42673:(at,et,v)=>{"use strict";v.d(et,{g:()=>k,k:()=>U});var d=v(94650),p=v(3238),b=v(12687),T=v(21281);let t=0;const A=(0,p.Id)(class{}),x="mat-badge-content";let U=(()=>{class D extends A{constructor(F,z,J,K,ot){super(),this._ngZone=F,this._elementRef=z,this._ariaDescriber=J,this._renderer=K,this._animationMode=ot,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(F){this._setColor(F),this._color=F}get overlap(){return this._overlap}set overlap(F){this._overlap=(0,T.Ig)(F)}get content(){return this._content}set content(F){this._updateRenderedContent(F)}get description(){return this._description}set description(F){this._updateHostAriaDescription(F)}get hidden(){return this._hidden}set hidden(F){this._hidden=(0,T.Ig)(F)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const F=this._renderer.createElement("span"),z="mat-badge-active";return F.setAttribute("id",`mat-badge-content-${this._id}`),F.setAttribute("aria-hidden","true"),F.classList.add(x),"NoopAnimations"===this._animationMode&&F.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(F),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{F.classList.add(z)})}):F.classList.add(z),F}_updateRenderedContent(F){const z=`${F??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(F){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),F&&this._ariaDescriber.describe(this._elementRef.nativeElement,F),this._description=F}_setColor(F){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),F&&z.add(`mat-badge-${F}`)}_clearExistingBadges(){const F=this._elementRef.nativeElement.querySelectorAll(`:scope > .${x}`);for(const z of Array.from(F))z!==this._badgeElement&&z.remove()}}return D.\u0275fac=function(F){return new(F||D)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(b.$s),d.Y36(d.Qsj),d.Y36(d.QbO,8))},D.\u0275dir=d.lG2({type:D,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(F,z){2&F&&d.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[d.qOj]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({imports:[b.rt,p.BQ,p.BQ]}),D})()},90811:(at,et,v)=>{"use strict";v.d(et,{A9:()=>J,Yi:()=>ot,vV:()=>lt});var d=v(12687),p=v(21281),b=v(95017),T=v(94650),t=v(24006),A=v(3238);const x=["button"],U=["*"],k=new T.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),D=new T.OlP("MatButtonToggleGroup"),P={provide:t.JU,useExisting:(0,T.Gpc)(()=>J),multi:!0};let F=0;class z{constructor(Dt,Pt){this.source=Dt,this.value=Pt}}let J=(()=>{class vt{constructor(Pt,zt){this._changeDetector=Pt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+F++,this.valueChange=new T.vpe,this.change=new T.vpe,this.appearance=zt&&zt.appearance?zt.appearance:"standard"}get name(){return this._name}set name(Pt){this._name=Pt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Pt){this._vertical=(0,p.Ig)(Pt)}get value(){const Pt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Pt.map(zt=>zt.value):Pt[0]?Pt[0].value:void 0}set value(Pt){this._setSelectionByValue(Pt),this.valueChange.emit(this.value)}get selected(){const Pt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Pt:Pt[0]||null}get multiple(){return this._multiple}set multiple(Pt){this._multiple=(0,p.Ig)(Pt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Pt){this._disabled=(0,p.Ig)(Pt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new b.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Pt=>Pt.checked))}writeValue(Pt){this.value=Pt,this._changeDetector.markForCheck()}registerOnChange(Pt){this._controlValueAccessorChangeFn=Pt}registerOnTouched(Pt){this._onTouched=Pt}setDisabledState(Pt){this.disabled=Pt}_emitChangeEvent(Pt){const zt=new z(Pt,this.value);this._controlValueAccessorChangeFn(zt.value),this.change.emit(zt)}_syncButtonToggle(Pt,zt,Vt=!1,it=!1){!this.multiple&&this.selected&&!Pt.checked&&(this.selected.checked=!1),this._selectionModel?zt?this._selectionModel.select(Pt):this._selectionModel.deselect(Pt):it=!0,it?Promise.resolve().then(()=>this._updateModelValue(Pt,Vt)):this._updateModelValue(Pt,Vt)}_isSelected(Pt){return this._selectionModel&&this._selectionModel.isSelected(Pt)}_isPrechecked(Pt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(zt=>null!=Pt.value&&zt===Pt.value):Pt.value===this._rawValue)}_setSelectionByValue(Pt){this._rawValue=Pt,this._buttonToggles&&(this.multiple&&Pt?(Array.isArray(Pt),this._clearSelection(),Pt.forEach(zt=>this._selectValue(zt))):(this._clearSelection(),this._selectValue(Pt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Pt=>Pt.checked=!1)}_selectValue(Pt){const zt=this._buttonToggles.find(Vt=>null!=Vt.value&&Vt.value===Pt);zt&&(zt.checked=!0,this._selectionModel.select(zt))}_updateModelValue(Pt,zt){zt&&this._emitChangeEvent(Pt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Pt=>Pt._markForCheck())}}return vt.\u0275fac=function(Pt){return new(Pt||vt)(T.Y36(T.sBO),T.Y36(k,8))},vt.\u0275dir=T.lG2({type:vt,selectors:[["mat-button-toggle-group"]],contentQueries:function(Pt,zt,Vt){if(1&Pt&&T.Suo(Vt,ot,5),2&Pt){let it;T.iGM(it=T.CRH())&&(zt._buttonToggles=it)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Pt,zt){2&Pt&&(T.uIk("aria-disabled",zt.disabled),T.ekj("mat-button-toggle-vertical",zt.vertical)("mat-button-toggle-group-appearance-standard","standard"===zt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[T._Bn([P,{provide:D,useExisting:vt}])]}),vt})();const K=(0,A.Kr)(class{});let ot=(()=>{class vt extends K{constructor(Pt,zt,Vt,it,Tt,At){super(),this._changeDetectorRef=zt,this._elementRef=Vt,this._focusMonitor=it,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T.vpe;const ft=Number(Tt);this.tabIndex=ft||0===ft?ft:null,this.buttonToggleGroup=Pt,this.appearance=At&&At.appearance?At.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Pt){this._appearance=Pt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Pt){const zt=(0,p.Ig)(Pt);zt!==this._checked&&(this._checked=zt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Pt){this._disabled=(0,p.Ig)(Pt)}ngOnInit(){const Pt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+F++,Pt&&(Pt._isPrechecked(this)?this.checked=!0:Pt._isSelected(this)!==this._checked&&Pt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Pt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Pt&&Pt._isSelected(this)&&Pt._syncButtonToggle(this,!1,!1,!0)}focus(Pt){this._buttonElement.nativeElement.focus(Pt)}_onButtonClick(){const Pt=!!this._isSingleSelector()||!this._checked;Pt!==this._checked&&(this._checked=Pt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new z(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return vt.\u0275fac=function(Pt){return new(Pt||vt)(T.Y36(D,8),T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(d.tE),T.$8M("tabindex"),T.Y36(k,8))},vt.\u0275cmp=T.Xpm({type:vt,selectors:[["mat-button-toggle"]],viewQuery:function(Pt,zt){if(1&Pt&&T.Gf(x,5),2&Pt){let Vt;T.iGM(Vt=T.CRH())&&(zt._buttonElement=Vt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Pt,zt){1&Pt&&T.NdJ("focus",function(){return zt.focus()}),2&Pt&&(T.uIk("aria-label",null)("aria-labelledby",null)("id",zt.id)("name",null),T.ekj("mat-button-toggle-standalone",!zt.buttonToggleGroup)("mat-button-toggle-checked",zt.checked)("mat-button-toggle-disabled",zt.disabled)("mat-button-toggle-appearance-standard","standard"===zt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[T.qOj],ngContentSelectors:U,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(Pt,zt){if(1&Pt&&(T.F$t(),T.TgZ(0,"button",0,1),T.NdJ("click",function(){return zt._onButtonClick()}),T.TgZ(2,"span",2),T.Hsn(3),T.qZA()(),T._UZ(4,"span",3)(5,"span",4)),2&Pt){const Vt=T.MAs(1);T.Q6J("id",zt.buttonId)("disabled",zt.disabled||null),T.uIk("tabindex",zt.disabled?-1:zt.tabIndex)("aria-pressed",zt.checked)("name",zt._getButtonName())("aria-label",zt.ariaLabel)("aria-labelledby",zt.ariaLabelledby),T.xp6(5),T.Q6J("matRippleTrigger",Vt)("matRippleDisabled",zt.disableRipple||zt.disabled)}},dependencies:[A.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),vt})(),lt=(()=>{class vt{}return vt.\u0275fac=function(Pt){return new(Pt||vt)},vt.\u0275mod=T.oAB({type:vt}),vt.\u0275inj=T.cJS({imports:[A.BQ,A.si,A.BQ]}),vt})()},4859:(at,et,v)=>{"use strict";v.d(et,{lW:()=>D,ot:()=>F});var d=v(94650),p=v(3238),b=v(12687);const T=["mat-button",""],t=["*"],U=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],k=(0,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(z){this._elementRef=z}})));let D=(()=>{class z extends k{constructor(K,ot,lt){super(K),this._focusMonitor=ot,this._animationMode=lt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const vt of U)this._hasHostAttributes(vt)&&this._getHostElement().classList.add(vt);K.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(K,ot){K?this._focusMonitor.focusVia(this._getHostElement(),K,ot):this._getHostElement().focus(ot)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...K){return K.some(ot=>this._getHostElement().hasAttribute(ot))}}return z.\u0275fac=function(K){return new(K||z)(d.Y36(d.SBq),d.Y36(b.tE),d.Y36(d.QbO,8))},z.\u0275cmp=d.Xpm({type:z,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(K,ot){if(1&K&&d.Gf(p.wG,5),2&K){let lt;d.iGM(lt=d.CRH())&&(ot.ripple=lt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(K,ot){2&K&&(d.uIk("disabled",ot.disabled||null),d.ekj("_mat-animation-noopable","NoopAnimations"===ot._animationMode)("mat-button-disabled",ot.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[d.qOj],attrs:T,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(K,ot){1&K&&(d.F$t(),d.TgZ(0,"span",0),d.Hsn(1),d.qZA(),d._UZ(2,"span",1)(3,"span",2)),2&K&&(d.xp6(2),d.ekj("mat-button-ripple-round",ot.isRoundButton||ot.isIconButton),d.Q6J("matRippleDisabled",ot._isRippleDisabled())("matRippleCentered",ot.isIconButton)("matRippleTrigger",ot._getHostElement()))},dependencies:[p.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),F=(()=>{class z{}return z.\u0275fac=function(K){return new(K||z)},z.\u0275mod=d.oAB({type:z}),z.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),z})()},73546:(at,et,v)=>{"use strict";v.d(et,{$j:()=>P,C1:()=>Vt,G2:()=>J,QW:()=>it,a8:()=>Pt,dk:()=>zt,dn:()=>k,hq:()=>F,n5:()=>D,nc:()=>ot});var d=v(94650),p=v(3238);const b=["*",[["mat-card-footer"]]],T=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],A=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],x=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],U=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let k=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Tt})(),D=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Tt})(),P=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Tt})(),F=(()=>{class Tt{constructor(){this.align="start"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("mat-card-actions-align-end","end"===Et.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Tt})(),J=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Tt})(),ot=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Tt})(),Pt=(()=>{class Tt{constructor(ft){this._animationMode=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(d.Y36(d.QbO,8))},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode)},exportAs:["matCard"],ngContentSelectors:T,decls:2,vars:0,template:function(ft,Et){1&ft&&(d.F$t(b),d.Hsn(0),d.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Tt})(),zt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:A,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ft,Et){1&ft&&(d.F$t(t),d.Hsn(0),d.TgZ(1,"div",0),d.Hsn(2,1),d.qZA(),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:U,decls:4,vars:0,template:function(ft,Et){1&ft&&(d.F$t(x),d.TgZ(0,"div"),d.Hsn(1),d.qZA(),d.Hsn(2,1),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Tt})(),it=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),Tt})()},56709:(at,et,v)=>{"use strict";v.d(et,{e_:()=>zt,oG:()=>Dt,p9:()=>it});var d=v(12687),p=v(21281),b=v(94650),T=v(24006),t=v(3238),A=v(49643);const x=["input"],U=["label"],k=function(Tt){return{enterDuration:Tt}},D=["*"],P=new b.OlP("mat-checkbox-default-options",{providedIn:"root",factory:F});function F(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const J=F(),K={provide:T.JU,useExisting:(0,b.Gpc)(()=>Dt),multi:!0};class ot{}const lt=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Tt){this._elementRef=Tt}}))));let vt=(()=>{class Tt extends lt{constructor(ft,Et,Bt,Ft,se,jt,ve){super(Et),this._changeDetectorRef=Bt,this._ngZone=Ft,this._animationMode=jt,this._options=ve,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new b.vpe,this.indeterminateChange=new b.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||J,this.color=this.defaultColor=this._options.color||J.color,this.tabIndex=parseInt(se)||0,this.id=this._uniqueId=`${ft}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ft){this._required=(0,p.Ig)(ft)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ft){const Et=(0,p.Ig)(ft);Et!=this.checked&&(this._checked=Et,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ft){const Et=(0,p.Ig)(ft);Et!==this.disabled&&(this._disabled=Et,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ft){const Et=ft!=this._indeterminate;this._indeterminate=(0,p.Ig)(ft),Et&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ft){this.checked=!!ft}registerOnChange(ft){this._controlValueAccessorChangeFn=ft}registerOnTouched(ft){this._onTouched=ft}setDisabledState(ft){this.disabled=ft}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ft){let Et=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Et!==ft&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Et,ft),this._currentCheckState=ft,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const Ft=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(Ft)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ft=this._options?.clickAction;this.disabled||"noop"===ft?!this.disabled&&"noop"===ft&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ft&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ft){ft.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ft,Et){if("NoopAnimations"===this._animationMode)return"";switch(ft){case 0:if(1===Et)return this._animationClasses.uncheckedToChecked;if(3==Et)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Et?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Et?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Et?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ft){const Et=this._inputElement;Et&&(Et.nativeElement.indeterminate=ft)}}return Tt.\u0275fac=function(ft){b.$Z()},Tt.\u0275dir=b.lG2({type:Tt,viewQuery:function(ft,Et){if(1&ft&&(b.Gf(x,5),b.Gf(U,5),b.Gf(t.wG,5)),2&ft){let Bt;b.iGM(Bt=b.CRH())&&(Et._inputElement=Bt.first),b.iGM(Bt=b.CRH())&&(Et._labelElement=Bt.first),b.iGM(Bt=b.CRH())&&(Et.ripple=Bt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[b.qOj]}),Tt})(),Dt=(()=>{class Tt extends vt{constructor(ft,Et,Bt,Ft,se,jt,ve){super("mat-checkbox-",ft,Et,Ft,se,jt,ve),this._focusMonitor=Bt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ft){const Et=new ot;return Et.source=this,Et.checked=ft,Et}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ft=>{ft||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ft){ft.stopPropagation(),super._handleInputClick()}focus(ft,Et){ft?this._focusMonitor.focusVia(this._inputElement,ft,Et):this._inputElement.nativeElement.focus(Et)}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(d.tE),b.Y36(b.R0b),b.$8M("tabindex"),b.Y36(b.QbO,8),b.Y36(P,8))},Tt.\u0275cmp=b.Xpm({type:Tt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ft,Et){2&ft&&(b.Ikx("id",Et.id),b.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),b.ekj("mat-checkbox-indeterminate",Et.indeterminate)("mat-checkbox-checked",Et.checked)("mat-checkbox-disabled",Et.disabled)("mat-checkbox-label-before","before"==Et.labelPosition)("_mat-animation-noopable","NoopAnimations"===Et._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[b._Bn([K]),b.qOj],ngContentSelectors:D,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ft,Et){if(1&ft&&(b.F$t(),b.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),b.NdJ("change",function(Ft){return Et._onInteractionEvent(Ft)})("click",function(Ft){return Et._onInputClick(Ft)}),b.qZA(),b.TgZ(5,"span",5),b._UZ(6,"span",6),b.qZA(),b._UZ(7,"span",7),b.TgZ(8,"span",8),b.O4$(),b.TgZ(9,"svg",9),b._UZ(10,"path",10),b.qZA(),b.kcU(),b._UZ(11,"span",11),b.qZA()(),b.TgZ(12,"span",12,13),b.NdJ("cdkObserveContent",function(){return Et._onLabelTextChange()}),b.TgZ(14,"span",14),b._uU(15,"\xa0"),b.qZA(),b.Hsn(16),b.qZA()()),2&ft){const Bt=b.MAs(1),Ft=b.MAs(13);b.uIk("for",Et.inputId),b.xp6(2),b.ekj("mat-checkbox-inner-container-no-side-margin",!Ft.textContent||!Ft.textContent.trim()),b.xp6(1),b.Q6J("id",Et.inputId)("required",Et.required)("checked",Et.checked)("disabled",Et.disabled)("tabIndex",Et.tabIndex),b.uIk("value",Et.value)("name",Et.name)("aria-label",Et.ariaLabel||null)("aria-labelledby",Et.ariaLabelledby)("aria-checked",Et._getAriaChecked())("aria-describedby",Et.ariaDescribedby),b.xp6(2),b.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Et._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",b.VKq(19,k,"NoopAnimations"===Et._animationMode?0:150))}},dependencies:[t.wG,A.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Tt})();const Pt={provide:T.Cf,useExisting:(0,b.Gpc)(()=>zt),multi:!0};let zt=(()=>{class Tt extends T.Zs{}return Tt.\u0275fac=function(){let At;return function(Et){return(At||(At=b.n5z(Tt)))(Et||Tt)}}(),Tt.\u0275dir=b.lG2({type:Tt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[b._Bn([Pt]),b.qOj]}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=b.oAB({type:Tt}),Tt.\u0275inj=b.cJS({}),Tt})(),it=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=b.oAB({type:Tt}),Tt.\u0275inj=b.cJS({imports:[t.si,t.BQ,A.Q8,Vt,t.BQ,Vt]}),Tt})()},3238:(at,et,v)=>{"use strict";v.d(et,{yN:()=>vt,mZ:()=>Dt,_A:()=>Le,rD:()=>re,sG:()=>qe,Ad:()=>ve,K7:()=>Sn,HF:()=>oe,Y2:()=>ne,BQ:()=>Vt,X2:()=>De,uc:()=>Ae,XK:()=>de,ey:()=>Bn,Ng:()=>fn,rN:()=>ho,nP:()=>kt,us:()=>Jt,wG:()=>ct,si:()=>nt,IR:()=>si,CB:()=>Gn,jH:()=>Ye,pj:()=>Et,Kr:()=>Bt,Id:()=>ft,FD:()=>se,dB:()=>jt,sb:()=>Ft,E0:()=>on});var d=v(94650),p=v(12687),b=v(40445),t=v(36895),A=v(83353),x=v(21281),U=v(56498),k=v(8929),D=v(1059),P=v(29521);function J(ze,We){if(1&ze&&d._UZ(0,"mat-pseudo-checkbox",4),2&ze){const en=d.oxw();d.Q6J("state",en.selected?"checked":"unchecked")("disabled",en.disabled)}}function K(ze,We){if(1&ze&&(d.TgZ(0,"span",5),d._uU(1),d.qZA()),2&ze){const en=d.oxw();d.xp6(1),d.hij("(",en.group.label,")")}}const ot=["*"];let vt=(()=>{class ze{}return ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ze})(),Dt=(()=>{class ze{}return ze.COMPLEX="375ms",ze.ENTERING="225ms",ze.EXITING="195ms",ze})();const zt=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function Pt(){return!0}});let Vt=(()=>{class ze{constructor(en,le,je){this._sanityChecks=le,this._document=je,this._hasDoneGlobalChecks=!1,en._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(en){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[en])}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(p.qm),d.LFG(zt,8),d.LFG(t.K0))},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[b.vT,b.vT]}),ze})();function ft(ze){return class extends ze{constructor(...We){super(...We),this._disabled=!1}get disabled(){return this._disabled}set disabled(We){this._disabled=(0,x.Ig)(We)}}}function Et(ze,We){return class extends ze{constructor(...en){super(...en),this.defaultColor=We,this.color=We}get color(){return this._color}set color(en){const le=en||this.defaultColor;le!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),le&&this._elementRef.nativeElement.classList.add(`mat-${le}`),this._color=le)}}}function Bt(ze){return class extends ze{constructor(...We){super(...We),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(We){this._disableRipple=(0,x.Ig)(We)}}}function Ft(ze,We=0){return class extends ze{constructor(...en){super(...en),this._tabIndex=We,this.defaultTabIndex=We}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(en){this._tabIndex=null!=en?(0,x.su)(en):this.defaultTabIndex}}}function se(ze){return class extends ze{constructor(...We){super(...We),this.errorState=!1}updateErrorState(){const We=this.errorState,Lt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Lt!==We&&(this.errorState=Lt,this.stateChanges.next())}}}function jt(ze){return class extends ze{constructor(...We){super(...We),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new U.y(en=>{this._isInitialized?this._notifySubscriber(en):this._pendingSubscribers.push(en)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(We){We.next(),We.complete()}}}const ve=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function be(){return(0,d.f3M)(d.soG)}});class Le{constructor(){this._localeChanges=new k.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(We){return this.isDateInstance(We)&&this.isValid(We)?We:null}deserialize(We){return null==We||this.isDateInstance(We)&&this.isValid(We)?We:this.invalid()}setLocale(We){this.locale=We,this._localeChanges.next()}compareDate(We,en){return this.getYear(We)-this.getYear(en)||this.getMonth(We)-this.getMonth(en)||this.getDate(We)-this.getDate(en)}sameDate(We,en){if(We&&en){let le=this.isValid(We),je=this.isValid(en);return le&&je?!this.compareDate(We,en):le==je}return We==en}clampDate(We,en,le){return en&&this.compareDate(We,en)<0?en:le&&this.compareDate(We,le)>0?le:We}}const qe=new d.OlP("mat-date-formats"),$e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Xt(ze,We){const en=Array(ze);for(let le=0;le{class ze extends Le{constructor(en,le){super(),this.useUtcForDisplay=!1,super.setLocale(en)}getYear(en){return en.getFullYear()}getMonth(en){return en.getMonth()}getDate(en){return en.getDate()}getDayOfWeek(en){return en.getDay()}getMonthNames(en){const le=new Intl.DateTimeFormat(this.locale,{month:en,timeZone:"utc"});return Xt(12,je=>this._format(le,new Date(2017,je,1)))}getDateNames(){const en=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Xt(31,le=>this._format(en,new Date(2017,0,le+1)))}getDayOfWeekNames(en){const le=new Intl.DateTimeFormat(this.locale,{weekday:en,timeZone:"utc"});return Xt(7,je=>this._format(le,new Date(2017,0,je+1)))}getYearName(en){const le=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(le,en)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(en){return this.getDate(this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+1,0))}clone(en){return new Date(en.getTime())}createDate(en,le,je){let Lt=this._createDateWithOverflow(en,le,je);return Lt.getMonth(),Lt}today(){return new Date}parse(en,le){return"number"==typeof en?new Date(en):en?new Date(Date.parse(en)):null}format(en,le){if(!this.isValid(en))throw Error("NativeDateAdapter: Cannot format invalid date.");const je=new Intl.DateTimeFormat(this.locale,{...le,timeZone:"utc"});return this._format(je,en)}addCalendarYears(en,le){return this.addCalendarMonths(en,12*le)}addCalendarMonths(en,le){let je=this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+le,this.getDate(en));return this.getMonth(je)!=((this.getMonth(en)+le)%12+12)%12&&(je=this._createDateWithOverflow(this.getYear(je),this.getMonth(je),0)),je}addCalendarDays(en,le){return this._createDateWithOverflow(this.getYear(en),this.getMonth(en),this.getDate(en)+le)}toIso8601(en){return[en.getUTCFullYear(),this._2digit(en.getUTCMonth()+1),this._2digit(en.getUTCDate())].join("-")}deserialize(en){if("string"==typeof en){if(!en)return null;if($e.test(en)){let le=new Date(en);if(this.isValid(le))return le}}return super.deserialize(en)}isDateInstance(en){return en instanceof Date}isValid(en){return!isNaN(en.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(en,le,je){const Lt=new Date;return Lt.setFullYear(en,le,je),Lt.setHours(0,0,0,0),Lt}_2digit(en){return("00"+en).slice(-2)}_format(en,le){const je=new Date;return je.setUTCFullYear(le.getFullYear(),le.getMonth(),le.getDate()),je.setUTCHours(le.getHours(),le.getMinutes(),le.getSeconds(),le.getMilliseconds()),en.format(je)}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(ve,8),d.LFG(A.t4))},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const ae={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Kt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:Le,useClass:Te}]}),ze})(),de=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:qe,useValue:ae}],imports:[Kt]}),ze})(),re=(()=>{class ze{isErrorState(en,le){return!!(en&&en.invalid&&(en.touched||le&&le.submitted))}}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),De=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})();function on(ze,We,en="mat"){ze.changes.pipe((0,D.O)(ze)).subscribe(({length:le})=>{_n(We,`${en}-2-line`,!1),_n(We,`${en}-3-line`,!1),_n(We,`${en}-multi-line`,!1),2===le||3===le?_n(We,`${en}-${le}-line`,!0):le>3&&_n(We,`${en}-multi-line`,!0)})}function _n(ze,We,en){ze.nativeElement.classList.toggle(We,en)}let Ae=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})();class gn{constructor(We,en,le,je=!1){this._renderer=We,this.element=en,this.config=le,this._animationForciblyDisabledThroughCss=je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const we={enterDuration:225,exitDuration:150},Un=(0,A.i$)({passive:!0}),oi=["mousedown","touchstart"],vi=["mouseup","mouseleave","touchend","touchcancel"];class si{constructor(We,en,le,je){this._target=We,this._ngZone=en,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,je.isBrowser&&(this._containerElement=(0,x.fI)(le))}fadeInRipple(We,en,le={}){const je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Lt={...we,...le.animation};le.centered&&(We=je.left+je.width/2,en=je.top+je.height/2);const wt=le.radius||function Ke(ze,We,en){const le=Math.max(Math.abs(ze-en.left),Math.abs(ze-en.right)),je=Math.max(Math.abs(We-en.top),Math.abs(We-en.bottom));return Math.sqrt(le*le+je*je)}(We,en,je),Ot=We-je.left,ye=en-je.top,Xe=Lt.enterDuration,Ne=document.createElement("div");Ne.classList.add("mat-ripple-element"),Ne.style.left=Ot-wt+"px",Ne.style.top=ye-wt+"px",Ne.style.height=2*wt+"px",Ne.style.width=2*wt+"px",null!=le.color&&(Ne.style.backgroundColor=le.color),Ne.style.transitionDuration=`${Xe}ms`,this._containerElement.appendChild(Ne);const Tn=window.getComputedStyle(Ne),Re=Tn.transitionDuration,En="none"===Tn.transitionProperty||"0s"===Re||"0s, 0s"===Re,gi=new gn(this,Ne,le,En);Ne.style.transform="scale3d(1, 1, 1)",gi.state=0,le.persistent||(this._mostRecentTransientRipple=gi);let go=null;return!En&&(Xe||Lt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _o=()=>this._finishRippleTransition(gi),mn=()=>this._destroyRipple(gi);Ne.addEventListener("transitionend",_o),Ne.addEventListener("transitioncancel",mn),go={onTransitionEnd:_o,onTransitionCancel:mn}}),this._activeRipples.set(gi,go),(En||!Xe)&&this._finishRippleTransition(gi),gi}fadeOutRipple(We){if(2===We.state||3===We.state)return;const en=We.element,le={...we,...We.config.animation};en.style.transitionDuration=`${le.exitDuration}ms`,en.style.opacity="0",We.state=2,(We._animationForciblyDisabledThroughCss||!le.exitDuration)&&this._finishRippleTransition(We)}fadeOutAll(){this._getActiveRipples().forEach(We=>We.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(We=>{We.config.persistent||We.fadeOut()})}setupTriggerEvents(We){const en=(0,x.fI)(We);!en||en===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=en,this._registerEvents(oi))}handleEvent(We){"mousedown"===We.type?this._onMousedown(We):"touchstart"===We.type?this._onTouchStart(We):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vi),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(We){0===We.state?this._startFadeOutTransition(We):2===We.state&&this._destroyRipple(We)}_startFadeOutTransition(We){const en=We===this._mostRecentTransientRipple,{persistent:le}=We.config;We.state=1,!le&&(!en||!this._isPointerDown)&&We.fadeOut()}_destroyRipple(We){const en=this._activeRipples.get(We)??null;this._activeRipples.delete(We),this._activeRipples.size||(this._containerRect=null),We===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),We.state=3,null!==en&&(We.element.removeEventListener("transitionend",en.onTransitionEnd),We.element.removeEventListener("transitioncancel",en.onTransitionCancel)),We.element.remove()}_onMousedown(We){const en=(0,p.X6)(We),le=this._lastTouchStartEvent&&Date.now(){!We.config.persistent&&(1===We.state||We.config.terminateOnPointerUp&&0===We.state)&&We.fadeOut()}))}_registerEvents(We){this._ngZone.runOutsideAngular(()=>{We.forEach(en=>{this._triggerElement.addEventListener(en,this,Un)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(oi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Un)}),this._pointerUpEventsRegistered&&vi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Un)}))}}const ne=new d.OlP("mat-ripple-global-options");let ct=(()=>{class ze{constructor(en,le,je,Lt,wt){this._elementRef=en,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Lt||{},this._rippleRenderer=new si(this,le,en,je)}get disabled(){return this._disabled}set disabled(en){en&&this.fadeOutAllNonPersistent(),this._disabled=en,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(en){this._trigger=en,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(en,le=0,je){return"number"==typeof en?this._rippleRenderer.fadeInRipple(en,le,{...this.rippleConfig,...je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...en})}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(A.t4),d.Y36(ne,8),d.Y36(d.QbO,8))},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(en,le){2&en&&d.ekj("mat-ripple-unbounded",le.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ze})(),nt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})(),kt=(()=>{class ze{constructor(en){this._animationMode=en,this.state="unchecked",this.disabled=!1}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.QbO,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(en,le){2&en&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===le.state)("mat-pseudo-checkbox-checked","checked"===le.state)("mat-pseudo-checkbox-disabled",le.disabled)("_mat-animation-noopable","NoopAnimations"===le._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(en,le){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),ze})(),Jt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt]}),ze})();const oe=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),Sn=new d.OlP("MatOptgroup");let Li=0;class ho{constructor(We,en=!1){this.source=We,this.isUserInput=en}}let fi=(()=>{class ze{constructor(en,le,je,Lt){this._element=en,this._changeDetectorRef=le,this._parent=je,this.group=Lt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Li++,this.onSelectionChange=new d.vpe,this._stateChanges=new k.xQ}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(en){this._disabled=(0,x.Ig)(en)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(en,le){const je=this._getHostElement();"function"==typeof je.focus&&je.focus(le)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(en){(en.keyCode===P.K5||en.keyCode===P.L_)&&!(0,P.Vb)(en)&&(this._selectViaInteraction(),en.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const en=this.viewValue;en!==this._mostRecentViewValue&&(this._mostRecentViewValue=en,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(en=!1){this.onSelectionChange.emit(new ho(this,en))}}return ze.\u0275fac=function(en){d.$Z()},ze.\u0275dir=d.lG2({type:ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})(),Bn=(()=>{class ze extends fi{constructor(en,le,je,Lt){super(en,le,je,Lt)}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(oe,8),d.Y36(Sn,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(en,le){1&en&&d.NdJ("click",function(){return le._selectViaInteraction()})("keydown",function(Lt){return le._handleKeydown(Lt)}),2&en&&(d.Ikx("id",le.id),d.uIk("tabindex",le._getTabIndex())("aria-selected",le._getAriaSelected())("aria-disabled",le.disabled.toString()),d.ekj("mat-selected",le.selected)("mat-option-multiple",le.multiple)("mat-active",le.active)("mat-option-disabled",le.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:ot,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(en,le){1&en&&(d.F$t(),d.YNc(0,J,1,2,"mat-pseudo-checkbox",0),d.TgZ(1,"span",1),d.Hsn(2),d.qZA(),d.YNc(3,K,2,1,"span",2),d._UZ(4,"div",3)),2&en&&(d.Q6J("ngIf",le.multiple),d.xp6(3),d.Q6J("ngIf",le.group&&le.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",le._getHostElement())("matRippleDisabled",le.disabled||le.disableRipple))},dependencies:[ct,t.O5,kt],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-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-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),ze})();function Gn(ze,We,en){if(en.length){let le=We.toArray(),je=en.toArray(),Lt=0;for(let wt=0;wten+le?Math.max(0,ze-le+We):en}let fn=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[nt,t.ez,Vt,Jt]}),ze})()},99602:(at,et,v)=>{"use strict";v.d(et,{C0:()=>Un,E2:()=>en,FA:()=>He,Lv:()=>wt,Mq:()=>Ne,S8:()=>De,Uu:()=>je,hl:()=>go,nW:()=>mn});var d=v(12687),p=v(98184),b=v(84080),T=v(36895),t=v(94650),A=v(4859),x=v(67376),U=v(3238),k=v(8929),D=v(42654),P=v(36787),F=v(21086),z=v(29521),J=v(40445),K=v(72986),ot=v(1059),lt=v(92198),vt=v(21281),Dt=v(83353),Pt=v(37340),zt=v(24006),Vt=v(59549),it=v(284);const Tt=["mat-calendar-body",""];function At(Me,dn){if(1&Me&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Me){const tt=t.oxw();t.xp6(1),t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt.numCols),t.xp6(1),t.hij(" ",tt.label," ")}}function ft(Me,dn){if(1&Me&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Me){const tt=t.oxw(2);t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt._firstRowOffset),t.xp6(1),t.hij(" ",tt._firstRowOffset>=tt.labelMinRequiredCells?tt.label:""," ")}}function Et(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._cellClicked(Be,Q))})("focus",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._emitActiveDateChange(Be,Q))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Me){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw().index,Nt=t.oxw();t.Udp("width",Nt._cellWidth)("padding-top",Nt._cellPadding)("padding-bottom",Nt._cellPadding),t.uIk("data-mat-row",Q)("data-mat-col",Rt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!tt.enabled)("mat-calendar-body-active",Nt._isActiveCell(Q,Rt))("mat-calendar-body-range-start",Nt._isRangeStart(tt.compareValue))("mat-calendar-body-range-end",Nt._isRangeEnd(tt.compareValue))("mat-calendar-body-in-range",Nt._isInRange(tt.compareValue))("mat-calendar-body-comparison-bridge-start",Nt._isComparisonBridgeStart(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-bridge-end",Nt._isComparisonBridgeEnd(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-start",Nt._isComparisonStart(tt.compareValue))("mat-calendar-body-comparison-end",Nt._isComparisonEnd(tt.compareValue))("mat-calendar-body-in-comparison-range",Nt._isInComparisonRange(tt.compareValue))("mat-calendar-body-preview-start",Nt._isPreviewStart(tt.compareValue))("mat-calendar-body-preview-end",Nt._isPreviewEnd(tt.compareValue))("mat-calendar-body-in-preview",Nt._isInPreview(tt.compareValue)),t.Q6J("ngClass",tt.cssClasses)("tabindex",Nt._isActiveCell(Q,Rt)?0:-1),t.uIk("aria-label",tt.ariaLabel)("aria-disabled",!tt.enabled||null)("aria-pressed",Nt._isSelected(tt.compareValue))("aria-current",Nt.todayValue===tt.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Nt._isSelected(tt.compareValue))("mat-calendar-body-comparison-identical",Nt._isComparisonIdentical(tt.compareValue))("mat-calendar-body-today",Nt.todayValue===tt.compareValue),t.xp6(1),t.hij(" ",tt.displayValue," ")}}function Bt(Me,dn){if(1&Me&&(t.TgZ(0,"tr",4),t.YNc(1,ft,2,6,"td",5),t.YNc(2,Et,5,47,"td",6),t.qZA()),2&Me){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Rt&&Q._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",tt)}}function Ft(Me,dn){if(1&Me&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Me){const tt=dn.$implicit;t.xp6(2),t.Oqu(tt.long),t.xp6(2),t.Oqu(tt.narrow)}}const se=["*"];function jt(Me,dn){}function ve(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt.activeDate=Q)})("_userSelection",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._dateSelected(Q))}),t.qZA()}if(2&Me){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)("comparisonStart",tt.comparisonStart)("comparisonEnd",tt.comparisonEnd)}}function be(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt.activeDate=Q)})("monthSelected",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._monthSelectedInYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._goToDateInView(Q,"month"))}),t.qZA()}if(2&Me){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function Le(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt.activeDate=Q)})("yearSelected",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._yearSelectedInMultiYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._goToDateInView(Q,"year"))}),t.qZA()}if(2&Me){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function qe(Me,dn){}const $e=["button"];function Xt(Me,dn){1&Me&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],ae=["[matDatepickerToggleIcon]"];let De=(()=>{class Me{constructor(){this.changes=new k.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(tt,Rt){return`${tt} \u2013 ${Rt}`}formatYearRangeLabel(tt,Rt){return`${tt} to ${Rt}`}}return Me.\u0275fac=function(tt){return new(tt||Me)},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();class on{constructor(dn,tt,Rt,Q,Nt={},Be=dn,Rn){this.value=dn,this.displayValue=tt,this.ariaLabel=Rt,this.enabled=Q,this.cssClasses=Nt,this.compareValue=Be,this.rawValue=Rn}}let _n=(()=>{class Me{constructor(tt,Rt){this._elementRef=tt,this._ngZone=Rt,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=Q=>{if(this._skipNextFocus&&"focus"===Q.type)this._skipNextFocus=!1;else if(Q.target&&this.isRange){const Nt=this._getCellFromElement(Q.target);Nt&&this._ngZone.run(()=>this.previewChange.emit({value:Nt.enabled?Nt:null,event:Q}))}},this._leaveHandler=Q=>{null!==this.previewEnd&&this.isRange&&Q.target&&this._getCellFromElement(Q.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Q}))},Rt.runOutsideAngular(()=>{const Q=tt.nativeElement;Q.addEventListener("mouseenter",this._enterHandler,!0),Q.addEventListener("focus",this._enterHandler,!0),Q.addEventListener("mouseleave",this._leaveHandler,!0),Q.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(tt,Rt){tt.enabled&&this.selectedValueChange.emit({value:tt.value,event:Rt})}_emitActiveDateChange(tt,Rt){tt.enabled&&this.activeDateChange.emit({value:tt.value,event:Rt})}_isSelected(tt){return this.startValue===tt||this.endValue===tt}ngOnChanges(tt){const Rt=tt.numCols,{rows:Q,numCols:Nt}=this;(tt.rows||Rt)&&(this._firstRowOffset=Q&&Q.length&&Q[0].length?Nt-Q[0].length:0),(tt.cellAspectRatio||Rt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Nt+"%"),(Rt||!this._cellWidth)&&(this._cellWidth=100/Nt+"%")}ngOnDestroy(){const tt=this._elementRef.nativeElement;tt.removeEventListener("mouseenter",this._enterHandler,!0),tt.removeEventListener("focus",this._enterHandler,!0),tt.removeEventListener("mouseleave",this._leaveHandler,!0),tt.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(tt,Rt){let Q=tt*this.numCols+Rt;return tt&&(Q-=this._firstRowOffset),Q==this.activeCell}_focusActiveCell(tt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>{setTimeout(()=>{const Rt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Rt&&(tt||(this._skipNextFocus=!0),Rt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(tt){return gn(tt,this.startValue,this.endValue)}_isRangeEnd(tt){return we(tt,this.startValue,this.endValue)}_isInRange(tt){return un(tt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(tt){return gn(tt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(tt,Rt,Q){if(!this._isComparisonStart(tt)||this._isRangeStart(tt)||!this._isInRange(tt))return!1;let Nt=this.rows[Rt][Q-1];if(!Nt){const Be=this.rows[Rt-1];Nt=Be&&Be[Be.length-1]}return Nt&&!this._isRangeEnd(Nt.compareValue)}_isComparisonBridgeEnd(tt,Rt,Q){if(!this._isComparisonEnd(tt)||this._isRangeEnd(tt)||!this._isInRange(tt))return!1;let Nt=this.rows[Rt][Q+1];if(!Nt){const Be=this.rows[Rt+1];Nt=Be&&Be[0]}return Nt&&!this._isRangeStart(Nt.compareValue)}_isComparisonEnd(tt){return we(tt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(tt){return un(tt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(tt){return this.comparisonStart===this.comparisonEnd&&tt===this.comparisonStart}_isPreviewStart(tt){return gn(tt,this.previewStart,this.previewEnd)}_isPreviewEnd(tt){return we(tt,this.previewStart,this.previewEnd)}_isInPreview(tt){return un(tt,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(tt){let Rt;if(Ae(tt)?Rt=tt:Ae(tt.parentNode)&&(Rt=tt.parentNode),Rt){const Q=Rt.getAttribute("data-mat-row"),Nt=Rt.getAttribute("data-mat-col");if(Q&&Nt)return this.rows[parseInt(Q)][parseInt(Nt)]}return null}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(t.R0b))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:Tt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(tt,Rt){1&tt&&(t.YNc(0,At,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&tt&&(t.Q6J("ngIf",Rt._firstRowOffset=dn&&Me===tt}function un(Me,dn,tt,Rt){return Rt&&null!==dn&&null!==tt&&dn!==tt&&Me>=dn&&Me<=tt}class Un{constructor(dn,tt){this.start=dn,this.end=tt}}let oi=(()=>{class Me{constructor(tt,Rt){this.selection=tt,this._adapter=Rt,this._selectionChanged=new k.xQ,this.selectionChanged=this._selectionChanged,this.selection=tt}updateSelection(tt,Rt){const Q=this.selection;this.selection=tt,this._selectionChanged.next({selection:tt,source:Rt,oldValue:Q})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(tt){return this._adapter.isDateInstance(tt)&&this._adapter.isValid(tt)}}return Me.\u0275fac=function(tt){t.$Z()},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),vi=(()=>{class Me extends oi{constructor(tt){super(null,tt)}add(tt){super.updateSelection(tt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const tt=new Me(this._adapter);return tt.updateSelection(this.selection,this),tt}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.LFG(U._A))},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const ne={provide:oi,deps:[[new t.FiY,new t.tp0,oi],U._A],useFactory:function Ke(Me,dn){return Me||new vi(dn)}},kt=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Dn=(()=>{class Me{constructor(tt,Rt,Q,Nt,Be){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Nt,this._rangeStrategy=Be,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(tt){const Rt=this._activeDate,Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._hasSameMonthAndYear(Rt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnChanges(tt){const Rt=tt.comparisonStart||tt.comparisonEnd;Rt&&!Rt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(tt){const Rt=tt.value,Q=this._getDateFromDayOfMonth(Rt);let Nt,Be;this._selected instanceof Un?(Nt=this._getDateInCurrentMonth(this._selected.start),Be=this._getDateInCurrentMonth(this._selected.end)):Nt=Be=this._getDateInCurrentMonth(this._selected),(Nt!==Rt||Be!==Rt)&&this.selectedChange.emit(Q),this._userSelection.emit({value:Q,event:tt.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=tt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=tt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&tt.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(tt)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:tt}),tt.preventDefault(),tt.stopPropagation()));default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let tt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(tt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(tt){this._matCalendarBody._focusActiveCell(tt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:tt,value:Rt}){if(this._rangeStrategy){const Nt=this._rangeStrategy.createPreview(Rt?Rt.rawValue:null,this.selected,tt);this._previewStart=this._getCellCompareValue(Nt.start),this._previewEnd=this._getCellCompareValue(Nt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(tt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),tt)}_initWeekdays(){const tt=this._dateAdapter.getFirstDayOfWeek(),Rt=this._dateAdapter.getDayOfWeekNames("narrow");let Nt=this._dateAdapter.getDayOfWeekNames("long").map((Be,Rn)=>({long:Be,narrow:Rt[Rn]}));this._weekdays=Nt.slice(tt).concat(Nt.slice(0,tt))}_createWeekCells(){const tt=this._dateAdapter.getNumDaysInMonth(this.activeDate),Rt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Q=0,Nt=this._firstWeekOffset;Q=0)&&(!this.maxDate||this._dateAdapter.compareDate(tt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(tt))}_getDateInCurrentMonth(tt){return tt&&this._hasSameMonthAndYear(tt,this.activeDate)?this._dateAdapter.getDate(tt):null}_hasSameMonthAndYear(tt,Rt){return!(!tt||!Rt||this._dateAdapter.getMonth(tt)!=this._dateAdapter.getMonth(Rt)||this._dateAdapter.getYear(tt)!=this._dateAdapter.getYear(Rt))}_getCellCompareValue(tt){if(tt){const Rt=this._dateAdapter.getYear(tt),Q=this._dateAdapter.getMonth(tt),Nt=this._dateAdapter.getDate(tt);return new Date(Rt,Q,Nt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(tt){tt instanceof Un?(this._rangeStart=this._getCellCompareValue(tt.start),this._rangeEnd=this._getCellCompareValue(tt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(tt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(tt){return!this.dateFilter||this.dateFilter(tt)}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.sBO),t.Y36(U.sG,8),t.Y36(U._A,8),t.Y36(J.Is,8),t.Y36(kt,8))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-month-view"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(_n,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._matCalendarBody=Q.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(tt,Rt){1&tt&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,Ft,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(Nt){return Rt._dateSelected(Nt)})("activeDateChange",function(Nt){return Rt._updateActiveDate(Nt)})("previewChange",function(Nt){return Rt._previewChanged(Nt)})("keyup",function(Nt){return Rt._handleCalendarBodyKeyup(Nt)})("keydown",function(Nt){return Rt._handleCalendarBodyKeydown(Nt)}),t.qZA()()),2&tt&&(t.xp6(3),t.Q6J("ngForOf",Rt._weekdays),t.xp6(3),t.Q6J("label",Rt._monthLabel)("rows",Rt._weeks)("todayValue",Rt._todayDate)("startValue",Rt._rangeStart)("endValue",Rt._rangeEnd)("comparisonStart",Rt._comparisonRangeStart)("comparisonEnd",Rt._comparisonRangeEnd)("previewStart",Rt._previewStart)("previewEnd",Rt._previewEnd)("isRange",Rt._isRange)("labelMinRequiredCells",3)("activeCell",Rt._dateAdapter.getDate(Rt.activeDate)-1))},dependencies:[T.sg,_n],encapsulation:2,changeDetection:0}),Me})(),Li=(()=>{class Me{constructor(tt,Rt,Q){this._changeDetectorRef=tt,this._dateAdapter=Rt,this._dir=Q,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),ho(this._dateAdapter,Rt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedYear(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Rt=this._dateAdapter.getYear(this._activeDate)-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Q=0,Nt=[];Q<24;Q++)Nt.push(Rt+Q),4==Nt.length&&(this._years.push(Nt.map(Be=>this._createCellForYear(Be))),Nt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(Rt,0,1),Nt=this._getDateFromYear(Rt);this.yearSelected.emit(Q),this.selectedChange.emit(Nt)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromYear(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?-240:-24);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?240:24);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_getActiveCell(){return fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(tt){const Rt=this._dateAdapter.getMonth(this.activeDate),Q=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(tt,Rt,1));return this._dateAdapter.createDate(tt,Rt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForYear(tt){const Rt=this._dateAdapter.createDate(tt,0,1),Q=this._dateAdapter.getYearName(Rt),Nt=this.dateClass?this.dateClass(Rt,"multi-year"):void 0;return new on(tt,Q,Q,this._shouldEnableYear(tt),Nt)}_shouldEnableYear(tt){if(null==tt||this.maxDate&&tt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tt{class Me{constructor(tt,Rt,Q,Nt){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Nt,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._dateAdapter.getYear(Rt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedMonth(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Rt,1);this.monthSelected.emit(Q);const Nt=this._getDateFromMonth(Rt);this.selectedChange.emit(Nt)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let tt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Rt=>Rt.map(Q=>this._createCellForMonth(Q,tt[Q]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(tt){return tt&&this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(tt):null}_getDateFromMonth(tt){const Rt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Q=this._dateAdapter.getNumDaysInMonth(Rt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForMonth(tt,Rt){const Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Nt=this._dateAdapter.format(Q,this._dateFormats.display.monthYearA11yLabel),Be=this.dateClass?this.dateClass(Q,"year"):void 0;return new on(tt,Rt.toLocaleUpperCase(),Nt,this._shouldEnableMonth(tt),Be)}_shouldEnableMonth(tt){const Rt=this._dateAdapter.getYear(this.activeDate);if(null==tt||this._isYearAndMonthAfterMaxDate(Rt,tt)||this._isYearAndMonthBeforeMinDate(Rt,tt))return!1;if(!this.dateFilter)return!0;for(let Nt=this._dateAdapter.createDate(Rt,tt,1);this._dateAdapter.getMonth(Nt)==tt;Nt=this._dateAdapter.addCalendarDays(Nt,1))if(this.dateFilter(Nt))return!0;return!1}_isYearAndMonthAfterMaxDate(tt,Rt){if(this.maxDate){const Q=this._dateAdapter.getYear(this.maxDate),Nt=this._dateAdapter.getMonth(this.maxDate);return tt>Q||tt===Q&&Rt>Nt}return!1}_isYearAndMonthBeforeMinDate(tt,Rt){if(this.minDate){const Q=this._dateAdapter.getYear(this.minDate),Nt=this._dateAdapter.getMonth(this.minDate);return tt{class Me{constructor(tt,Rt,Q,Nt,Be){this._intl=tt,this.calendar=Rt,this._dateAdapter=Q,this._dateFormats=Nt,this._buttonDescriptionId="mat-calendar-button-"+fn++,this.calendar.stateChanges.subscribe(()=>Be.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Rt=this._dateAdapter.getYear(this.calendar.activeDate)-fi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Q=Rt+24-1,Nt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Rt,0,1)),Be=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return this._intl.formatYearRange(Nt,Be)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(tt,Rt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt)&&this._dateAdapter.getMonth(tt)==this._dateAdapter.getMonth(Rt):"year"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt):ho(this._dateAdapter,tt,Rt,this.calendar.minDate,this.calendar.maxDate)}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(De),t.Y36((0,t.Gpc)(()=>We)),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:se,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(tt,Rt){1&tt&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Rt.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Rt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Rt.nextClicked()}),t.qZA()()()),2&tt&&(t.xp6(2),t.uIk("aria-label",Rt.periodButtonLabel)("aria-describedby",Rt._buttonDescriptionId),t.xp6(1),t.uIk("id",Rt._buttonDescriptionId),t.xp6(1),t.Oqu(Rt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Rt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Rt.previousEnabled()),t.uIk("aria-label",Rt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Rt.nextEnabled()),t.uIk("aria-label",Rt.nextButtonLabel))},dependencies:[A.lW],encapsulation:2,changeDetection:0}),Me})(),We=(()=>{class Me{constructor(tt,Rt,Q,Nt){this._dateAdapter=Rt,this._dateFormats=Q,this._changeDetectorRef=Nt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new k.xQ,this._intlChanges=tt.changes.subscribe(()=>{Nt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get activeDate(){return this._clampedActiveDate}set activeDate(tt){this._clampedActiveDate=this._dateAdapter.clampDate(tt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(tt){const Rt=this._currentView!==tt?tt:null;this._currentView=tt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Rt&&this.viewChanged.emit(Rt)}ngAfterContentInit(){this._calendarHeaderPortal=new b.C5(this.headerComponent||ze),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(tt){const Rt=tt.minDate&&!this._dateAdapter.sameDate(tt.minDate.previousValue,tt.minDate.currentValue)?tt.minDate:void 0,Q=tt.maxDate&&!this._dateAdapter.sameDate(tt.maxDate.previousValue,tt.maxDate.currentValue)?tt.maxDate:void 0,Nt=Rt||Q||tt.dateFilter;if(Nt&&!Nt.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(tt){const Rt=tt.value;(this.selected instanceof Un||Rt&&!this._dateAdapter.sameDate(Rt,this.selected))&&this.selectedChange.emit(Rt),this._userSelection.emit(tt)}_yearSelectedInMultiYearView(tt){this.yearSelected.emit(tt)}_monthSelectedInYearView(tt){this.monthSelected.emit(tt)}_goToDateInView(tt,Rt){this.activeDate=tt,this.currentView=Rt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(De),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar"]],viewQuery:function(tt,Rt){if(1&tt&&(t.Gf(Dn,5),t.Gf(Ye,5),t.Gf(Li,5)),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt.monthView=Q.first),t.iGM(Q=t.CRH())&&(Rt.yearView=Q.first),t.iGM(Q=t.CRH())&&(Rt.multiYearView=Q.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([ne]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(tt,Rt){1&tt&&(t.YNc(0,jt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,ve,1,8,"mat-month-view",2),t.YNc(3,be,1,6,"mat-year-view",3),t.YNc(4,Le,1,6,"mat-multi-year-view",4),t.qZA()),2&tt&&(t.Q6J("cdkPortalOutlet",Rt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Rt.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,d.kH,b.Pl,Dn,Ye,Li],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Me})();const en={transformPanel:(0,Pt.X$)("transformPanel",[(0,Pt.eR)("void => enter-dropdown",(0,Pt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Pt.F4)([(0,Pt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Pt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Pt.eR)("void => enter-dialog",(0,Pt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Pt.F4)([(0,Pt.oB)({opacity:0,transform:"scale(0.7)"}),(0,Pt.oB)({transform:"none",opacity:1})]))),(0,Pt.eR)("* => void",(0,Pt.jt)("100ms linear",(0,Pt.oB)({opacity:0})))]),fadeInCalendar:(0,Pt.X$)("fadeInCalendar",[(0,Pt.SB)("void",(0,Pt.oB)({opacity:0})),(0,Pt.SB)("enter",(0,Pt.oB)({opacity:1})),(0,Pt.eR)("void => *",(0,Pt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let le=0;const je=new t.OlP("mat-datepicker-scroll-strategy"),wt={provide:je,deps:[p.aV],useFactory:function Lt(Me){return()=>Me.scrollStrategies.reposition()}},Ot=(0,U.pj)(class{constructor(Me){this._elementRef=Me}});let ye=(()=>{class Me extends Ot{constructor(tt,Rt,Q,Nt,Be,Rn){super(tt),this._changeDetectorRef=Rt,this._globalModel=Q,this._dateAdapter=Nt,this._rangeSelectionStrategy=Be,this._subscriptions=new D.w,this._animationDone=new k.xQ,this._actionsPortal=null,this._closeButtonText=Rn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(tt){const Rt=this._model.selection,Q=tt.value,Nt=Rt instanceof Un;if(Nt&&this._rangeSelectionStrategy){const Be=this._rangeSelectionStrategy.selectionFinished(Q,Rt,tt.event);this._model.updateSelection(Be,this)}else Q&&(Nt||!this._dateAdapter.sameDate(Q,Rt))&&this._model.add(Q);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(tt,Rt){this._model=tt?this._globalModel.clone():this._globalModel,this._actionsPortal=tt,Rt&&this._changeDetectorRef.detectChanges()}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oi),t.Y36(U._A),t.Y36(kt,8),t.Y36(De))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-content"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(We,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._calendar=Q.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(tt,Rt){1&tt&&t.WFA("@transformPanel.done",function(){return Rt._animationDone.next()}),2&tt&&(t.d8E("@transformPanel",Rt._animationState),t.ekj("mat-datepicker-content-touch",Rt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(tt,Rt){if(1&tt&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Nt){return Rt.datepicker._selectYear(Nt)})("monthSelected",function(Nt){return Rt.datepicker._selectMonth(Nt)})("viewChanged",function(Nt){return Rt.datepicker._viewChanged(Nt)})("_userSelection",function(Nt){return Rt._handleUserSelection(Nt)}),t.qZA(),t.YNc(2,qe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Rt._closeButtonFocused=!0})("blur",function(){return Rt._closeButtonFocused=!1})("click",function(){return Rt.datepicker.close()}),t._uU(4),t.qZA()()),2&tt){let Q;t.ekj("mat-datepicker-content-container-with-custom-header",Rt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Rt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(Q=Rt._dialogLabelId)&&void 0!==Q?Q:void 0),t.xp6(1),t.Q6J("id",Rt.datepicker.id)("ngClass",Rt.datepicker.panelClass)("startAt",Rt.datepicker.startAt)("startView",Rt.datepicker.startView)("minDate",Rt.datepicker._getMinDate())("maxDate",Rt.datepicker._getMaxDate())("dateFilter",Rt.datepicker._getDateFilter())("headerComponent",Rt.datepicker.calendarHeaderComponent)("selected",Rt._getSelected())("dateClass",Rt.datepicker.dateClass)("comparisonStart",Rt.comparisonStart)("comparisonEnd",Rt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Rt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Rt._closeButtonFocused),t.Q6J("color",Rt.color||"primary"),t.xp6(1),t.Oqu(Rt._closeButtonText)}},dependencies:[T.mk,A.lW,d.mK,b.Pl,We],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[en.transformPanel,en.fadeInCalendar]},changeDetection:0}),Me})(),Xe=(()=>{class Me{constructor(tt,Rt,Q,Nt,Be,Rn,Qi){this._overlay=tt,this._ngZone=Rt,this._viewContainerRef=Q,this._dateAdapter=Be,this._dir=Rn,this._model=Qi,this._inputStateChanges=D.w.EMPTY,this._document=(0,t.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+le++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k.xQ,this._scrollStrategy=Nt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(tt){this._color=tt}get touchUi(){return this._touchUi}set touchUi(tt){this._touchUi=(0,vt.Ig)(tt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(tt){const Rt=(0,vt.Ig)(tt);Rt!==this._disabled&&(this._disabled=Rt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(tt){this._restoreFocus=(0,vt.Ig)(tt)}get panelClass(){return this._panelClass}set panelClass(tt){this._panelClass=(0,vt.du)(tt)}get opened(){return this._opened}set opened(tt){(0,vt.Ig)(tt)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(tt){const Rt=tt.xPosition||tt.yPosition;if(Rt&&!Rt.firstChange&&this._overlayRef){const Q=this._overlayRef.getConfig().positionStrategy;Q instanceof p._G&&(this._setConnectedPositions(Q),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(tt){this._model.add(tt)}_selectYear(tt){this.yearSelected.emit(tt)}_selectMonth(tt){this.monthSelected.emit(tt)}_viewChanged(tt){this.viewChanged.emit(tt)}registerInput(tt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=tt,this._inputStateChanges=tt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(tt){this._actionsPortal=tt,this._componentRef?.instance._assignActions(tt,!0)}removeActions(tt){tt===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Dt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const tt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Rt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Q,location:Nt}=this._componentRef;Q._startExitAnimation(),Q._animationDone.pipe((0,K.q)(1)).subscribe(()=>{const Be=this._document.activeElement;tt&&(!Be||Be===this._document.activeElement||Nt.nativeElement.contains(Be))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}tt?setTimeout(Rt):Rt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(tt){tt.datepicker=this,tt.color=this.color,tt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),tt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const tt=this.touchUi,Rt=new b.C5(ye,this._viewContainerRef),Q=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:tt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[tt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:tt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(tt?"dialog":"popup")}));this._getCloseStream(Q).subscribe(Nt=>{Nt&&Nt.preventDefault(),this.close()}),Q.keydownEvents().subscribe(Nt=>{const Be=Nt.keyCode;(Be===z.LH||Be===z.JH||Be===z.oh||Be===z.SV||Be===z.Ku||Be===z.VM)&&Nt.preventDefault()}),this._componentRef=Q.attach(Rt),this._forwardContentValues(this._componentRef.instance),tt||this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>Q.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const tt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(tt)}_setConnectedPositions(tt){const Rt="end"===this.xPosition?"end":"start",Q="start"===Rt?"end":"start",Nt="above"===this.yPosition?"bottom":"top",Be="top"===Nt?"bottom":"top";return tt.withPositions([{originX:Rt,originY:Be,overlayX:Rt,overlayY:Nt},{originX:Rt,originY:Nt,overlayX:Rt,overlayY:Be},{originX:Q,originY:Be,overlayX:Q,overlayY:Nt},{originX:Q,originY:Nt,overlayX:Q,overlayY:Be}])}_getCloseStream(tt){return(0,P.T)(tt.backdropClick(),tt.detachments(),tt.keydownEvents().pipe((0,lt.h)(Rt=>Rt.keyCode===z.hY&&!(0,z.Vb)(Rt)||this.datepickerInput&&(0,z.Vb)(Rt,"altKey")&&Rt.keyCode===z.LH)))}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(je),t.Y36(U._A,8),t.Y36(J.Is,8),t.Y36(oi))},Me.\u0275dir=t.lG2({type:Me,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Me})(),Ne=(()=>{class Me extends Xe{}return Me.\u0275fac=function(){let dn;return function(Rt){return(dn||(dn=t.n5z(Me)))(Rt||Me)}}(),Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ne,{provide:Xe,useExisting:Me}]),t.qOj],decls:0,vars:0,template:function(tt,Rt){},encapsulation:2,changeDetection:0}),Me})();class Tn{constructor(dn,tt){this.target=dn,this.targetElement=tt,this.value=this.target.value}}let he=(()=>{class Me{constructor(tt,Rt,Q){this._elementRef=tt,this._dateAdapter=Rt,this._dateFormats=Q,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new k.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.w.EMPTY,this._localeSubscription=D.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Nt=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Nt.value));return!Be||this._matchesFilter(Be)?null:{matDatepickerFilter:!0}},this._minValidator=Nt=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Nt.value)),Rn=this._getMinDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)<=0?null:{matDatepickerMin:{min:Rn,actual:Be}}},this._maxValidator=Nt=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Nt.value)),Rn=this._getMaxDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)>=0?null:{matDatepickerMax:{max:Rn,actual:Be}}},this._lastValueValid=!1,this._localeSubscription=Rt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(tt){this._assignValueProgrammatically(tt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(tt){const Rt=(0,vt.Ig)(tt),Q=this._elementRef.nativeElement;this._disabled!==Rt&&(this._disabled=Rt,this.stateChanges.next(void 0)),Rt&&this._isInitialized&&Q.blur&&Q.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(tt){this._model=tt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Rt=>{if(this._shouldHandleChangeEvent(Rt)){const Q=this._getValueFromModel(Rt.selection);this._lastValueValid=this._isValidValue(Q),this._cvaOnChange(Q),this._onTouched(),this._formatValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)),this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(tt){(function Re(Me,dn){const tt=Object.keys(Me);for(let Rt of tt){const{previousValue:Q,currentValue:Nt}=Me[Rt];if(!dn.isDateInstance(Q)||!dn.isDateInstance(Nt))return!0;if(!dn.sameDate(Q,Nt))return!0}return!1})(tt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(tt){this._validatorOnChange=tt}validate(tt){return this._validator?this._validator(tt):null}writeValue(tt){this._assignValueProgrammatically(tt)}registerOnChange(tt){this._cvaOnChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt}_onKeydown(tt){tt.altKey&&tt.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),tt.preventDefault())}_onInput(tt){const Rt=this._lastValueValid;let Q=this._dateAdapter.parse(tt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q);const Nt=!this._dateAdapter.sameDate(Q,this.value);!Q||Nt?this._cvaOnChange(Q):(tt&&!this.value&&this._cvaOnChange(Q),Rt!==this._lastValueValid&&this._validatorOnChange()),Nt&&(this._assignValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(tt){this._elementRef.nativeElement.value=null!=tt?this._dateAdapter.format(tt,this._dateFormats.display.dateInput):""}_assignValue(tt){this._model?(this._assignValueToModel(tt),this._pendingValue=null):this._pendingValue=tt}_isValidValue(tt){return!tt||this._dateAdapter.isValid(tt)}_parentDisabled(){return!1}_assignValueProgrammatically(tt){tt=this._dateAdapter.deserialize(tt),this._lastValueValid=this._isValidValue(tt),tt=this._dateAdapter.getValidDateOrNull(tt),this._assignValue(tt),this._formatValue(tt)}_matchesFilter(tt){const Rt=this._getDateFilter();return!Rt||Rt(tt)}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8))},Me.\u0275dir=t.lG2({type:Me,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Me})();const En={provide:zt.JU,useExisting:(0,t.Gpc)(()=>go),multi:!0},gi={provide:zt.Cf,useExisting:(0,t.Gpc)(()=>go),multi:!0};let go=(()=>{class Me extends he{constructor(tt,Rt,Q,Nt){super(tt,Rt,Q),this._formField=Nt,this._closedSubscription=D.w.EMPTY,this._validator=zt.kI.compose(super._getValidators())}set matDatepicker(tt){tt&&(this._datepicker=tt,this._closedSubscription=tt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(tt.registerInput(this)))}get min(){return this._min}set min(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._min)||(this._min=Rt,this._validatorOnChange())}get max(){return this._max}set max(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._max)||(this._max=Rt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(tt){const Rt=this._matchesFilter(this.value);this._dateFilter=tt,this._matchesFilter(this.value)!==Rt&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(tt){return tt}_assignValueToModel(tt){this._model&&this._model.updateSelection(tt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(tt){return tt.source!==this}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(Vt.G_,8))},Me.\u0275dir=t.lG2({type:Me,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(tt,Rt){1&tt&&t.NdJ("input",function(Nt){return Rt._onInput(Nt.target.value)})("change",function(){return Rt._onChange()})("blur",function(){return Rt._onBlur()})("keydown",function(Nt){return Rt._onKeydown(Nt)}),2&tt&&(t.Ikx("disabled",Rt.disabled),t.uIk("aria-haspopup",Rt._datepicker?"dialog":null)("aria-owns",(null==Rt._datepicker?null:Rt._datepicker.opened)&&Rt._datepicker.id||null)("min",Rt.min?Rt._dateAdapter.toIso8601(Rt.min):null)("max",Rt.max?Rt._dateAdapter.toIso8601(Rt.max):null)("data-mat-calendar",Rt._datepicker?Rt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([En,gi,{provide:it.Jk,useExisting:Me}]),t.qOj]}),Me})(),_o=(()=>{class Me{}return Me.\u0275fac=function(tt){return new(tt||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["","matDatepickerToggleIcon",""]]}),Me})(),mn=(()=>{class Me{constructor(tt,Rt,Q){this._intl=tt,this._changeDetectorRef=Rt,this._stateChanges=D.w.EMPTY;const Nt=Number(Q);this.tabIndex=Nt||0===Nt?Nt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(tt){this._disabled=(0,vt.Ig)(tt)}ngOnChanges(tt){tt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(tt){this.datepicker&&!this.disabled&&(this.datepicker.open(),tt.stopPropagation())}_watchStateChanges(){const tt=this.datepicker?this.datepicker.stateChanges:(0,F.of)(),Rt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,F.of)(),Q=this.datepicker?(0,P.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,F.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,P.T)(this._intl.changes,tt,Rt,Q).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(De),t.Y36(t.sBO),t.$8M("tabindex"))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-toggle"]],contentQueries:function(tt,Rt,Q){if(1&tt&&t.Suo(Q,_o,5),2&tt){let Nt;t.iGM(Nt=t.CRH())&&(Rt._customIcon=Nt.first)}},viewQuery:function(tt,Rt){if(1&tt&&t.Gf($e,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._button=Q.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(tt,Rt){1&tt&&t.NdJ("click",function(Nt){return Rt._open(Nt)}),2&tt&&(t.uIk("tabindex",null)("data-mat-calendar",Rt.datepicker?Rt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Rt.datepicker&&Rt.datepicker.opened)("mat-accent",Rt.datepicker&&"accent"===Rt.datepicker.color)("mat-warn",Rt.datepicker&&"warn"===Rt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ae,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(tt,Rt){1&tt&&(t.F$t(Te),t.TgZ(0,"button",0,1),t.YNc(2,Xt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&tt&&(t.Q6J("disabled",Rt.disabled)("disableRipple",Rt.disableRipple),t.uIk("aria-haspopup",Rt.datepicker?"dialog":null)("aria-label",Rt.ariaLabel||Rt._intl.openCalendarLabel)("tabindex",Rt.disabled?-1:Rt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Rt._customIcon))},dependencies:[T.O5,A.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Me})(),He=(()=>{class Me{}return Me.\u0275fac=function(tt){return new(tt||Me)},Me.\u0275mod=t.oAB({type:Me}),Me.\u0275inj=t.cJS({providers:[De,wt],imports:[T.ez,A.ot,p.U8,d.rt,b.eL,U.BQ,x.ZD]}),Me})()},65412:(at,et,v)=>{"use strict";v.d(et,{WI:()=>Kt,uw:()=>gn,H8:()=>vi,ZT:()=>un,xY:()=>oi,Is:()=>Ke,so:()=>Te,uh:()=>Un});var d=v(12687),p=v(98184),b=v(83353),T=v(84080),t=v(36895),A=v(94650),x=v(29521),U=v(8929),k=v(88514),D=v(21086),P=v(40445),F=v(1059);function z(ne,ct){}class J{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}}let ot=(()=>{class ne extends T.en{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn){super(),this._elementRef=nt,this._focusTrapFactory=kt,this._config=oe,this._interactivityChecker=Ce,this._ngZone=Oe,this._overlayRef=Dn,this._focusMonitor=Sn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Li=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Li},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Jt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(nt){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachComponentPortal(nt);return this._contentAttached(),kt}attachTemplatePortal(nt){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachTemplatePortal(nt);return this._contentAttached(),kt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(nt,kt){this._interactivityChecker.isFocusable(nt)||(nt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Jt=()=>{nt.removeEventListener("blur",Jt),nt.removeEventListener("mousedown",Jt),nt.removeAttribute("tabindex")};nt.addEventListener("blur",Jt),nt.addEventListener("mousedown",Jt)})),nt.focus(kt)}_focusByCssSelector(nt,kt){let Jt=this._elementRef.nativeElement.querySelector(nt);Jt&&this._forceFocus(Jt,kt)}_trapFocus(){const nt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||nt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(kt=>{kt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const nt=this._config.restoreFocus;let kt=null;if("string"==typeof nt?kt=this._document.querySelector(nt):"boolean"==typeof nt?kt=nt?this._elementFocusedBeforeDialogWasOpened:null:nt&&(kt=nt),this._config.restoreFocus&&kt&&"function"==typeof kt.focus){const Jt=(0,b.ht)(),oe=this._elementRef.nativeElement;(!Jt||Jt===this._document.body||Jt===oe||oe.contains(Jt))&&(this._focusMonitor?(this._focusMonitor.focusVia(kt,this._closeInteractionType),this._closeInteractionType=null):kt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const nt=this._elementRef.nativeElement,kt=(0,b.ht)();return nt===kt||nt.contains(kt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(J),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["cdk-dialog-container"]],viewQuery:function(nt,kt){if(1&nt&&A.Gf(T.Pl,7),2&nt){let Jt;A.iGM(Jt=A.CRH())&&(kt._portalOutlet=Jt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(nt,kt){2&nt&&A.uIk("id",kt._config.id||null)("role",kt._config.role)("aria-modal",kt._config.ariaModal)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(nt,kt){1&nt&&A.YNc(0,z,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ne})();class lt{constructor(ct,nt){this.overlayRef=ct,this.config=nt,this.closed=new U.xQ,this.disableClose=nt.disableClose,this.backdropClick=ct.backdropClick(),this.keydownEvents=ct.keydownEvents(),this.outsidePointerEvents=ct.outsidePointerEvents(),this.id=nt.id,this.keydownEvents.subscribe(kt=>{kt.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(kt)&&(kt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(ct,nt){if(this.containerInstance){const kt=this.closed;this.containerInstance._closeInteractionType=nt?.focusOrigin||"program",this.overlayRef.dispose(),kt.next(ct),kt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ct="",nt=""){return this.overlayRef.updateSize({width:ct,height:nt}),this}addPanelClass(ct){return this.overlayRef.addPanelClass(ct),this}removePanelClass(ct){return this.overlayRef.removePanelClass(ct),this}}const vt=new A.OlP("DialogScrollStrategy"),Dt=new A.OlP("DialogData"),Pt=new A.OlP("DefaultDialogConfig"),Vt={provide:vt,deps:[p.aV],useFactory:function zt(ne){return()=>ne.scrollStrategies.block()}};let it=0,Tt=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce,Oe){this._overlay=nt,this._injector=kt,this._defaultOptions=Jt,this._parentDialog=oe,this._overlayContainer=Ce,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,F.O)(void 0))),this._scrollStrategy=Oe}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(nt,kt){(kt={...this._defaultOptions||new J,...kt}).id=kt.id||"cdk-dialog-"+it++,kt.id&&this.getDialogById(kt.id);const oe=this._getOverlayConfig(kt),Ce=this._overlay.create(oe),Oe=new lt(Ce,kt),Dn=this._attachContainer(Ce,Oe,kt);return Oe.containerInstance=Dn,this._attachDialogContent(nt,Oe,Dn,kt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Oe),Oe.closed.subscribe(()=>this._removeOpenDialog(Oe,!0)),this.afterOpened.next(Oe),Oe}closeAll(){At(this.openDialogs,nt=>nt.close())}getDialogById(nt){return this.openDialogs.find(kt=>kt.id===nt)}ngOnDestroy(){At(this._openDialogsAtThisLevel,nt=>{!1===nt.config.closeOnDestroy&&this._removeOpenDialog(nt,!1)}),At(this._openDialogsAtThisLevel,nt=>nt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(nt){const kt=new p.X_({positionStrategy:nt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:nt.scrollStrategy||this._scrollStrategy(),panelClass:nt.panelClass,hasBackdrop:nt.hasBackdrop,direction:nt.direction,minWidth:nt.minWidth,minHeight:nt.minHeight,maxWidth:nt.maxWidth,maxHeight:nt.maxHeight,width:nt.width,height:nt.height,disposeOnNavigation:nt.closeOnNavigation});return nt.backdropClass&&(kt.backdropClass=nt.backdropClass),kt}_attachContainer(nt,kt,Jt){const oe=Jt.injector||Jt.viewContainerRef?.injector,Ce=[{provide:J,useValue:Jt},{provide:lt,useValue:kt},{provide:p.Iu,useValue:nt}];let Oe;Jt.container?"function"==typeof Jt.container?Oe=Jt.container:(Oe=Jt.container.type,Ce.push(...Jt.container.providers(Jt))):Oe=ot;const Dn=new T.C5(Oe,Jt.viewContainerRef,A.zs3.create({parent:oe||this._injector,providers:Ce}),Jt.componentFactoryResolver);return nt.attach(Dn).instance}_attachDialogContent(nt,kt,Jt,oe){if(nt instanceof A.Rgc){const Ce=this._createInjector(oe,kt,Jt,void 0);let Oe={$implicit:oe.data,dialogRef:kt};oe.templateContext&&(Oe={...Oe,..."function"==typeof oe.templateContext?oe.templateContext():oe.templateContext}),Jt.attachTemplatePortal(new T.UE(nt,null,Oe,Ce))}else{const Ce=this._createInjector(oe,kt,Jt,this._injector),Oe=Jt.attachComponentPortal(new T.C5(nt,oe.viewContainerRef,Ce,oe.componentFactoryResolver));kt.componentInstance=Oe.instance}}_createInjector(nt,kt,Jt,oe){const Ce=nt.injector||nt.viewContainerRef?.injector,Oe=[{provide:Dt,useValue:nt.data},{provide:lt,useValue:kt}];return nt.providers&&("function"==typeof nt.providers?Oe.push(...nt.providers(kt,nt,Jt)):Oe.push(...nt.providers)),nt.direction&&(!Ce||!Ce.get(P.Is,null,A.XFs.Optional))&&Oe.push({provide:P.Is,useValue:{value:nt.direction,change:(0,D.of)()}}),A.zs3.create({parent:Ce||oe,providers:Oe})}_removeOpenDialog(nt,kt){const Jt=this.openDialogs.indexOf(nt);Jt>-1&&(this.openDialogs.splice(Jt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((oe,Ce)=>{oe?Ce.setAttribute("aria-hidden",oe):Ce.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),kt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const nt=this._overlayContainer.getContainerElement();if(nt.parentElement){const kt=nt.parentElement.children;for(let Jt=kt.length-1;Jt>-1;Jt--){const oe=kt[Jt];oe!==nt&&"SCRIPT"!==oe.nodeName&&"STYLE"!==oe.nodeName&&!oe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(oe,oe.getAttribute("aria-hidden")),oe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const nt=this._parentDialog;return nt?nt._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(Pt,8),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(vt))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function At(ne,ct){let nt=ne.length;for(;nt--;)ct(ne[nt])}let ft=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[Tt,Vt],imports:[p.U8,T.eL,d.rt,T.eL]}),ne})();var Et=v(3238),Bt=v(36787),Ft=v(92198),se=v(72986),jt=v(37340);function ve(ne,ct){}const be={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Le={dialogContainer:(0,jt.X$)("dialogContainer",[(0,jt.SB)("void, exit",(0,jt.oB)({opacity:0,transform:"scale(0.7)"})),(0,jt.SB)("enter",(0,jt.oB)({transform:"none"})),(0,jt.eR)("* => enter",(0,jt.ru)([(0,jt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,jt.oB)({transform:"none",opacity:1})),(0,jt.IO)("@*",(0,jt.pV)(),{optional:!0})]),be),(0,jt.eR)("* => void, * => exit",(0,jt.ru)([(0,jt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,jt.oB)({opacity:0})),(0,jt.IO)("@*",(0,jt.pV)(),{optional:!0})]),be)])};class qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",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,this.enterAnimationDuration=be.params.enterAnimationDuration,this.exitAnimationDuration=be.params.exitAnimationDuration}}let $e=(()=>{class ne extends ot{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn){super(nt,kt,Jt,oe,Ce,Oe,Dn,Sn),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(nt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:nt})}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(nt,kt){},encapsulation:2}),ne})(),Xt=(()=>{class ne extends $e{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi){super(nt,kt,Jt,oe,Ce,Oe,Dn,mi),this._changeDetectorRef=Sn,this._state="enter"}_onAnimationDone({toState:nt,totalTime:kt}){"enter"===nt?this._openAnimationDone(kt):"exit"===nt&&this._animationStateChanged.next({state:"closed",totalTime:kt})}_onAnimationStart({toState:nt,totalTime:kt}){"enter"===nt?this._animationStateChanged.next({state:"opening",totalTime:kt}):("exit"===nt||"void"===nt)&&this._animationStateChanged.next({state:"closing",totalTime:kt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||be.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||be.params.exitAnimationDuration}}}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(A.sBO),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(nt,kt){1&nt&&A.WFA("@dialogContainer.start",function(oe){return kt._onAnimationStart(oe)})("@dialogContainer.done",function(oe){return kt._onAnimationDone(oe)}),2&nt&&(A.Ikx("id",kt._config.id),A.uIk("aria-modal",kt._config.ariaModal)("role",kt._config.role)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null),A.d8E("@dialogContainer",kt._getAnimationState()))},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(nt,kt){1&nt&&A.YNc(0,ve,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Le.dialogContainer]}}),ne})();class Te{constructor(ct,nt,kt){this._ref=ct,this._containerInstance=kt,this._afterOpened=new U.xQ,this._beforeClosed=new U.xQ,this._state=0,this.disableClose=nt.disableClose,this.id=ct.id,kt._animationStateChanged.pipe((0,Ft.h)(Jt=>"opened"===Jt.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),kt._animationStateChanged.pipe((0,Ft.h)(Jt=>"closed"===Jt.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ct.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ft.h)(Jt=>Jt.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Jt)))).subscribe(Jt=>{this.disableClose||(Jt.preventDefault(),ae(this,"keydown"===Jt.type?"keyboard":"mouse"))})}close(ct){this._result=ct,this._containerInstance._animationStateChanged.pipe((0,Ft.h)(nt=>"closing"===nt.state),(0,se.q)(1)).subscribe(nt=>{this._beforeClosed.next(ct),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),nt.totalTime+100)}),this._state=1,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(ct){let nt=this._ref.config.positionStrategy;return ct&&(ct.left||ct.right)?ct.left?nt.left(ct.left):nt.right(ct.right):nt.centerHorizontally(),ct&&(ct.top||ct.bottom)?ct.top?nt.top(ct.top):nt.bottom(ct.bottom):nt.centerVertically(),this._ref.updatePosition(),this}updateSize(ct="",nt=""){return this._ref.updateSize(ct,nt),this}addPanelClass(ct){return this._ref.addPanelClass(ct),this}removePanelClass(ct){return this._ref.removePanelClass(ct),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ae(ne,ct,nt){return ne._closeInteractionType=ct,ne.close(nt)}const Kt=new A.OlP("MatDialogData"),de=new A.OlP("mat-dialog-default-options"),Wt=new A.OlP("mat-dialog-scroll-strategy"),on={provide:Wt,deps:[p.aV],useFactory:function De(ne){return()=>ne.scrollStrategies.block()}};let _n=0,Ae=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi,Li){this._overlay=nt,this._defaultOptions=Jt,this._parentDialog=oe,this._dialogRefConstructor=Dn,this._dialogContainerType=Sn,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,F.O)(void 0))),this._scrollStrategy=Oe,this._dialog=kt.get(Tt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const nt=this._parentDialog;return nt?nt._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(nt,kt){let Jt;(kt={...this._defaultOptions||new qe,...kt}).id=kt.id||`${this._idPrefix}${_n++}`,kt.scrollStrategy=kt.scrollStrategy||this._scrollStrategy();const oe=this._dialog.open(nt,{...kt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:qe,useValue:kt},{provide:J,useValue:kt}]},templateContext:()=>({dialogRef:Jt}),providers:(Ce,Oe,Dn)=>(Jt=new this._dialogRefConstructor(Ce,kt,Dn),Jt.updatePosition(kt?.position),[{provide:this._dialogContainerType,useValue:Dn},{provide:this._dialogDataToken,useValue:Oe.data},{provide:this._dialogRefConstructor,useValue:Jt}])});return Jt.componentInstance=oe.componentInstance,this.openDialogs.push(Jt),this.afterOpened.next(Jt),Jt.afterClosed().subscribe(()=>{const Ce=this.openDialogs.indexOf(Jt);Ce>-1&&(this.openDialogs.splice(Ce,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Jt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(nt){return this.openDialogs.find(kt=>kt.id===nt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(nt){let kt=nt.length;for(;kt--;)nt[kt].close()}}return ne.\u0275fac=function(nt){A.$Z()},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),gn=(()=>{class ne extends Ae{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn){super(nt,kt,oe,Oe,Dn,Ce,Te,Xt,Kt,Sn)}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(t.Ye,8),A.LFG(de,8),A.LFG(Wt),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(A.QbO,8))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),we=0,un=(()=>{class ne{constructor(nt,kt,Jt){this.dialogRef=nt,this._elementRef=kt,this._dialog=Jt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=si(this._elementRef,this._dialog.openDialogs))}ngOnChanges(nt){const kt=nt._matDialogClose||nt._matDialogCloseResult;kt&&(this.dialogResult=kt.currentValue)}_onButtonClick(nt){ae(this.dialogRef,0===nt.screenX&&0===nt.screenY?"keyboard":"mouse",this.dialogResult)}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(nt,kt){1&nt&&A.NdJ("click",function(oe){return kt._onButtonClick(oe)}),2&nt&&A.uIk("aria-label",kt.ariaLabel||null)("type",kt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[A.TTD]}),ne})(),Un=(()=>{class ne{constructor(nt,kt,Jt){this._dialogRef=nt,this._elementRef=kt,this._dialog=Jt,this.id="mat-dialog-title-"+we++}ngOnInit(){this._dialogRef||(this._dialogRef=si(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const nt=this._dialogRef._containerInstance;nt&&!nt._ariaLabelledBy&&(nt._ariaLabelledBy=this.id)})}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(nt,kt){2&nt&&A.Ikx("id",kt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ne})(),oi=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ne})(),vi=(()=>{class ne{constructor(){this.align="start"}}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(nt,kt){2&nt&&A.ekj("mat-dialog-actions-align-center","center"===kt.align)("mat-dialog-actions-align-end","end"===kt.align)},inputs:{align:"align"}}),ne})();function si(ne,ct){let nt=ne.nativeElement.parentElement;for(;nt&&!nt.classList.contains("mat-dialog-container");)nt=nt.parentElement;return nt?ct.find(kt=>kt.id===nt.id):null}let Ke=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[gn,on],imports:[ft,p.U8,T.eL,Et.BQ,Et.BQ]}),ne})()},44850:(at,et,v)=>{"use strict";v.d(et,{d:()=>T,t:()=>t});var d=v(94650),p=v(21281),b=v(3238);let T=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(U){this._vertical=(0,p.Ig)(U)}get inset(){return this._inset}set inset(U){this._inset=(0,p.Ig)(U)}}return A.\u0275fac=function(U){return new(U||A)},A.\u0275cmp=d.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(U,k){2&U&&(d.uIk("aria-orientation",k.vertical?"vertical":"horizontal"),d.ekj("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(U,k){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),A})(),t=(()=>{class A{}return A.\u0275fac=function(U){return new(U||A)},A.\u0275mod=d.oAB({type:A}),A.\u0275inj=d.cJS({imports:[b.BQ,b.BQ]}),A})()},37084:(at,et,v)=>{"use strict";v.d(et,{pp:()=>on,To:()=>_n,ib:()=>Te,u4:()=>re,yz:()=>Wt,yK:()=>De});var d=v(94650),p=v(95017),b=v(21281),T=v(8929),t=v(42654);let A=0;const x=new d.OlP("CdkAccordion");let U=(()=>{class Ae{constructor(){this._stateChanges=new T.xQ,this._openCloseAllActions=new T.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(we){this._multi=(0,b.Ig)(we)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(we){this._stateChanges.next(we)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:x,useExisting:Ae}]),d.TTD]}),Ae})(),k=0,D=(()=>{class Ae{constructor(we,un,Un){this.accordion=we,this._changeDetectorRef=un,this._expansionDispatcher=Un,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new d.vpe,this.opened=new d.vpe,this.destroyed=new d.vpe,this.expandedChange=new d.vpe,this.id="cdk-accordion-child-"+k++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Un.listen((oi,vi)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===vi&&this.id!==oi&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(we){we=(0,b.Ig)(we),this._expanded!==we&&(this._expanded=we,this.expandedChange.emit(we),we?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,b.Ig)(we)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(we=>{this.disabled||(this.expanded=we)})}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(x,12),d.Y36(d.sBO),d.Y36(p.A8))},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[d._Bn([{provide:x,useValue:void 0}])]}),Ae})(),P=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275mod=d.oAB({type:Ae}),Ae.\u0275inj=d.cJS({}),Ae})();var F=v(84080),z=v(36895),J=v(3238),K=v(12687),ot=v(75778),lt=v(1059),vt=v(92198),Dt=v(72986),Pt=v(29521),zt=v(68896),Vt=v(36787),it=v(37340);const Tt=["body"];function At(Ae,gn){}const ft=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Et=["mat-expansion-panel-header","*","mat-action-row"];function Bt(Ae,gn){if(1&Ae&&d._UZ(0,"span",2),2&Ae){const we=d.oxw();d.Q6J("@indicatorRotate",we._getExpandedState())}}const Ft=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],jt=new d.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",be={indicatorRotate:(0,it.X$)("indicatorRotate",[(0,it.SB)("collapsed, void",(0,it.oB)({transform:"rotate(0deg)"})),(0,it.SB)("expanded",(0,it.oB)({transform:"rotate(180deg)"})),(0,it.eR)("expanded <=> collapsed, void => collapsed",(0,it.jt)(ve))]),bodyExpansion:(0,it.X$)("bodyExpansion",[(0,it.SB)("collapsed, void",(0,it.oB)({height:"0px",visibility:"hidden"})),(0,it.SB)("expanded",(0,it.oB)({height:"*",visibility:"visible"})),(0,it.eR)("expanded <=> collapsed, void => collapsed",(0,it.jt)(ve))])},Le=new d.OlP("MAT_EXPANSION_PANEL");let qe=(()=>{class Ae{constructor(we,un){this._template=we,this._expansionPanel=un}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(d.Rgc),d.Y36(Le,8))},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ae})(),$e=0;const Xt=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class Ae extends D{constructor(we,un,Un,oi,vi,si,Ke){super(we,un,Un),this._viewContainerRef=oi,this._animationMode=si,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new T.xQ,this._headerId="mat-expansion-panel-header-"+$e++,this._bodyAnimationDone=new T.xQ,this.accordion=we,this._document=vi,this._bodyAnimationDone.pipe((0,ot.x)((ne,ct)=>ne.fromState===ct.fromState&&ne.toState===ct.toState)).subscribe(ne=>{"void"!==ne.fromState&&("expanded"===ne.toState?this.afterExpand.emit():"collapsed"===ne.toState&&this.afterCollapse.emit())}),Ke&&(this.hideToggle=Ke.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(we){this._hideToggle=(0,b.Ig)(we)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(we){this._togglePosition=we}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,lt.O)(null),(0,vt.h)(()=>this.expanded&&!this._portal),(0,Dt.q)(1)).subscribe(()=>{this._portal=new F.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(we){this._inputChanges.next(we)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const we=this._document.activeElement,un=this._body.nativeElement;return we===un||un.contains(we)}return!1}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(jt,12),d.Y36(d.sBO),d.Y36(p.A8),d.Y36(d.s_b),d.Y36(z.K0),d.Y36(d.QbO,8),d.Y36(Xt,8))},Ae.\u0275cmp=d.Xpm({type:Ae,selectors:[["mat-expansion-panel"]],contentQueries:function(we,un,Un){if(1&we&&d.Suo(Un,qe,5),2&we){let oi;d.iGM(oi=d.CRH())&&(un._lazyContent=oi.first)}},viewQuery:function(we,un){if(1&we&&d.Gf(Tt,5),2&we){let Un;d.iGM(Un=d.CRH())&&(un._body=Un.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(we,un){2&we&&d.ekj("mat-expanded",un.expanded)("_mat-animation-noopable","NoopAnimations"===un._animationMode)("mat-expansion-panel-spacing",un._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[d._Bn([{provide:jt,useValue:void 0},{provide:Le,useExisting:Ae}]),d.qOj,d.TTD],ngContentSelectors:Et,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(we,un){1&we&&(d.F$t(ft),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(oi){return un._bodyAnimationDone.next(oi)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,At,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&we&&(d.xp6(1),d.Q6J("@bodyExpansion",un._getExpandedState())("id",un.id),d.uIk("aria-labelledby",un._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",un._portal))},dependencies:[F.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[be.bodyExpansion]},changeDetection:0}),Ae})();class Kt{}const de=(0,J.sb)(Kt);let Wt=(()=>{class Ae extends de{constructor(we,un,Un,oi,vi,si,Ke){super(),this.panel=we,this._element=un,this._focusMonitor=Un,this._changeDetectorRef=oi,this._animationMode=si,this._parentChangeSubscription=t.w.EMPTY;const ne=we.accordion?we.accordion._stateChanges.pipe((0,vt.h)(ct=>!(!ct.hideToggle&&!ct.togglePosition))):zt.E;this.tabIndex=parseInt(Ke||"")||0,this._parentChangeSubscription=(0,Vt.T)(we.opened,we.closed,ne,we._inputChanges.pipe((0,vt.h)(ct=>!!(ct.hideToggle||ct.disabled||ct.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),we.closed.pipe((0,vt.h)(()=>we._containsFocus())).subscribe(()=>Un.focusVia(un,"program")),vi&&(this.expandedHeight=vi.expandedHeight,this.collapsedHeight=vi.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const we=this._isExpanded();return we&&this.expandedHeight?this.expandedHeight:!we&&this.collapsedHeight?this.collapsedHeight:null}_keydown(we){switch(we.keyCode){case Pt.L_:case Pt.K5:(0,Pt.Vb)(we)||(we.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(we))}}focus(we,un){we?this._focusMonitor.focusVia(this._element,we,un):this._element.nativeElement.focus(un)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(we=>{we&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(Te,1),d.Y36(d.SBq),d.Y36(K.tE),d.Y36(d.sBO),d.Y36(Xt,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},Ae.\u0275cmp=d.Xpm({type:Ae,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(we,un){1&we&&d.NdJ("click",function(){return un._toggle()})("keydown",function(oi){return un._keydown(oi)}),2&we&&(d.uIk("id",un.panel._headerId)("tabindex",un.tabIndex)("aria-controls",un._getPanelId())("aria-expanded",un._isExpanded())("aria-disabled",un.panel.disabled),d.Udp("height",un._getHeaderHeight()),d.ekj("mat-expanded",un._isExpanded())("mat-expansion-toggle-indicator-after","after"===un._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===un._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===un._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:se,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(we,un){1&we&&(d.F$t(Ft),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Bt,1,1,"span",1)),2&we&&(d.ekj("mat-content-hide-toggle",!un._showToggle()),d.xp6(4),d.Q6J("ngIf",un._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[be.indicatorRotate]},changeDetection:0}),Ae})(),re=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ae})(),De=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ae})(),on=(()=>{class Ae extends U{constructor(){super(...arguments),this._ownHeaders=new d.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(we){this._hideToggle=(0,b.Ig)(we)}ngAfterContentInit(){this._headers.changes.pipe((0,lt.O)(this._headers)).subscribe(we=>{this._ownHeaders.reset(we.filter(un=>un.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(we){this._keyManager.onKeydown(we)}_handleHeaderFocus(we){this._keyManager.updateActiveItem(we)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ae.\u0275fac=function(){let gn;return function(un){return(gn||(gn=d.n5z(Ae)))(un||Ae)}}(),Ae.\u0275dir=d.lG2({type:Ae,selectors:[["mat-accordion"]],contentQueries:function(we,un,Un){if(1&we&&d.Suo(Un,Wt,5),2&we){let oi;d.iGM(oi=d.CRH())&&(un._headers=oi)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(we,un){2&we&&d.ekj("mat-accordion-multi",un.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:jt,useExisting:Ae}]),d.qOj]}),Ae})(),_n=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275mod=d.oAB({type:Ae}),Ae.\u0275inj=d.cJS({imports:[z.ez,J.BQ,P,F.eL]}),Ae})()},59549:(at,et,v)=>{"use strict";v.d(et,{Eo:()=>qe,G_:()=>vi,KE:()=>si,R9:()=>Ae,TO:()=>be,bx:()=>de,hX:()=>Wt,lN:()=>Ke,o2:()=>oi,qo:()=>on});var d=v(49643),p=v(36895),b=v(94650),T=v(3238),t=v(40445),A=v(21281),x=v(8929),U=v(36787),k=v(23753),D=v(1059),P=v(7625),F=v(72986),z=v(37340),J=v(83353);const K=["connectionContainer"],ot=["inputContainer"],lt=["label"];function vt(ne,ct){1&ne&&(b.ynx(0),b.TgZ(1,"div",14),b._UZ(2,"div",15)(3,"div",16)(4,"div",17),b.qZA(),b.TgZ(5,"div",18),b._UZ(6,"div",15)(7,"div",16)(8,"div",17),b.qZA(),b.BQk())}function Dt(ne,ct){if(1&ne){const nt=b.EpF();b.TgZ(0,"div",19),b.NdJ("cdkObserveContent",function(){b.CHM(nt);const Jt=b.oxw();return b.KtG(Jt.updateOutlineGap())}),b.Hsn(1,1),b.qZA()}if(2&ne){const nt=b.oxw();b.Q6J("cdkObserveContentDisabled","outline"!=nt.appearance)}}function Pt(ne,ct){if(1&ne&&(b.ynx(0),b.Hsn(1,2),b.TgZ(2,"span"),b._uU(3),b.qZA(),b.BQk()),2&ne){const nt=b.oxw(2);b.xp6(3),b.Oqu(nt._control.placeholder)}}function zt(ne,ct){1&ne&&b.Hsn(0,3,["*ngSwitchCase","true"])}function Vt(ne,ct){1&ne&&(b.TgZ(0,"span",23),b._uU(1," *"),b.qZA())}function it(ne,ct){if(1&ne){const nt=b.EpF();b.TgZ(0,"label",20,21),b.NdJ("cdkObserveContent",function(){b.CHM(nt);const Jt=b.oxw();return b.KtG(Jt.updateOutlineGap())}),b.YNc(2,Pt,4,1,"ng-container",12),b.YNc(3,zt,1,0,"ng-content",12),b.YNc(4,Vt,2,0,"span",22),b.qZA()}if(2&ne){const nt=b.oxw();b.ekj("mat-empty",nt._control.empty&&!nt._shouldAlwaysFloat())("mat-form-field-empty",nt._control.empty&&!nt._shouldAlwaysFloat())("mat-accent","accent"==nt.color)("mat-warn","warn"==nt.color),b.Q6J("cdkObserveContentDisabled","outline"!=nt.appearance)("id",nt._labelId)("ngSwitch",nt._hasLabel()),b.uIk("for",nt._control.id)("aria-owns",nt._control.id),b.xp6(2),b.Q6J("ngSwitchCase",!1),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngIf",!nt.hideRequiredMarker&&nt._control.required&&!nt._control.disabled)}}function Tt(ne,ct){1&ne&&(b.TgZ(0,"div",24),b.Hsn(1,4),b.qZA())}function At(ne,ct){if(1&ne&&(b.TgZ(0,"div",25),b._UZ(1,"span",26),b.qZA()),2&ne){const nt=b.oxw();b.xp6(1),b.ekj("mat-accent","accent"==nt.color)("mat-warn","warn"==nt.color)}}function ft(ne,ct){if(1&ne&&(b.TgZ(0,"div"),b.Hsn(1,5),b.qZA()),2&ne){const nt=b.oxw();b.Q6J("@transitionMessages",nt._subscriptAnimationState)}}function Et(ne,ct){if(1&ne&&(b.TgZ(0,"div",30),b._uU(1),b.qZA()),2&ne){const nt=b.oxw(2);b.Q6J("id",nt._hintLabelId),b.xp6(1),b.Oqu(nt.hintLabel)}}function Bt(ne,ct){if(1&ne&&(b.TgZ(0,"div",27),b.YNc(1,Et,2,2,"div",28),b.Hsn(2,6),b._UZ(3,"div",29),b.Hsn(4,7),b.qZA()),2&ne){const nt=b.oxw();b.Q6J("@transitionMessages",nt._subscriptAnimationState),b.xp6(1),b.Q6J("ngIf",nt.hintLabel)}}const Ft=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],se=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let jt=0;const ve=new b.OlP("MatError");let be=(()=>{class ne{constructor(nt,kt){this.id="mat-error-"+jt++,nt||kt.nativeElement.setAttribute("aria-live","polite")}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.$8M("aria-live"),b.Y36(b.SBq))},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(nt,kt){2&nt&&b.uIk("id",kt.id)},inputs:{id:"id"},features:[b._Bn([{provide:ve,useExisting:ne}])]}),ne})();const Le={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qe=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne}),ne})(),ae=0;const Kt=new b.OlP("MatHint");let de=(()=>{class ne{constructor(){this.align="start",this.id="mat-hint-"+ae++}}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(nt,kt){2&nt&&(b.uIk("id",kt.id)("align",null),b.ekj("mat-form-field-hint-end","end"===kt.align))},inputs:{align:"align",id:"id"},features:[b._Bn([{provide:Kt,useExisting:ne}])]}),ne})(),Wt=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-label"]]}),ne})(),re=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-placeholder"]]}),ne})();const De=new b.OlP("MatPrefix");let on=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["","matPrefix",""]],features:[b._Bn([{provide:De,useExisting:ne}])]}),ne})();const _n=new b.OlP("MatSuffix");let Ae=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["","matSuffix",""]],features:[b._Bn([{provide:_n,useExisting:ne}])]}),ne})(),gn=0;const Un=(0,T.pj)(class{constructor(ne){this._elementRef=ne}},"primary"),oi=new b.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),vi=new b.OlP("MatFormField");let si=(()=>{class ne extends Un{constructor(nt,kt,Jt,oe,Ce,Oe,Dn){super(nt),this._changeDetectorRef=kt,this._dir=Jt,this._defaults=oe,this._platform=Ce,this._ngZone=Oe,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new x.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+gn++,this._labelId="mat-form-field-label-"+gn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Dn,this.appearance=oe?.appearance||"legacy",oe&&(this._hideRequiredMarker=Boolean(oe.hideRequiredMarker),oe.color&&(this.color=this.defaultColor=oe.color))}get appearance(){return this._appearance}set appearance(nt){const kt=this._appearance;this._appearance=nt||this._defaults?.appearance||"legacy","outline"===this._appearance&&kt!==nt&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(nt){this._hideRequiredMarker=(0,A.Ig)(nt)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(nt){this._hintLabel=nt,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(nt){nt!==this._floatLabel&&(this._floatLabel=nt||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(nt){this._explicitFormFieldControl=nt}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const nt=this._control;nt.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${nt.controlType}`),nt.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),nt.ngControl&&nt.ngControl.valueChanges&&nt.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,U.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(nt){const kt=this._control?this._control.ngControl:null;return kt&&kt[nt]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,k.R)(this._label.nativeElement,"transitionend").pipe((0,F.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let nt=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&nt.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const kt=this._hintChildren?this._hintChildren.find(oe=>"start"===oe.align):null,Jt=this._hintChildren?this._hintChildren.find(oe=>"end"===oe.align):null;kt?nt.push(kt.id):this._hintLabel&&nt.push(this._hintLabelId),Jt&&nt.push(Jt.id)}else this._errorChildren&&nt.push(...this._errorChildren.map(kt=>kt.id));this._control.setDescribedByIds(nt)}}_validateControlChild(){}updateOutlineGap(){const nt=this._label?this._label.nativeElement:null,kt=this._connectionContainerRef.nativeElement,Jt=".mat-form-field-outline-start",oe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!nt||!nt.children.length||!nt.textContent.trim()){const mi=kt.querySelectorAll(`${Jt}, ${oe}`);for(let Li=0;Li0?.75*Bn+10:0}for(let mi=0;mi{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=b.oAB({type:ne}),ne.\u0275inj=b.cJS({imports:[p.ez,T.BQ,d.Q8,T.BQ]}),ne})()},90782:(at,et,v)=>{"use strict";v.d(et,{DX:()=>F,Il:()=>At,N6:()=>ft});var d=v(94650),p=v(3238),b=v(21281),T=v(40445);const t=["*"];class k{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const Ft=Math.max(...this.tracker);return Ft>1?this.rowCount+Ft-1:this.rowCount}update(Ft,se){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(Ft),this.tracker.fill(0,0,this.tracker.length),this.positions=se.map(jt=>this._trackTile(jt))}_trackTile(Ft){const se=this._findMatchingGap(Ft.colspan);return this._markTilePosition(se,Ft),this.columnIndex=se+Ft.colspan,new D(this.rowIndex,se)}_findMatchingGap(Ft){let se=-1,jt=-1;do{this.columnIndex+Ft>this.tracker.length?(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),jt=this._findGapEndIndex(se)):(se=this.tracker.indexOf(0,this.columnIndex),-1!=se?(jt=this._findGapEndIndex(se),this.columnIndex=se+1):(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),jt=this._findGapEndIndex(se)))}while(jt-se{class Bt{constructor(se,jt){this._element=se,this._gridList=jt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(se){this._rowspan=Math.round((0,b.su)(se))}get colspan(){return this._colspan}set colspan(se){this._colspan=Math.round((0,b.su)(se))}_setStyle(se,jt){this._element.nativeElement.style[se]=jt}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(P,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(se,jt){2&se&&d.uIk("rowspan",jt.rowspan)("colspan",jt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(se,jt){1&se&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})();const lt=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class vt{constructor(){this._rows=0,this._rowspan=0}init(Ft,se,jt,ve){this._gutterSize=it(Ft),this._rows=se.rowCount,this._rowspan=se.rowspan,this._cols=jt,this._direction=ve}getBaseTileSize(Ft,se){return`(${Ft}% - (${this._gutterSize} * ${se}))`}getTilePosition(Ft,se){return 0===se?"0":Vt(`(${Ft} + ${this._gutterSize}) * ${se}`)}getTileSize(Ft,se){return`(${Ft} * ${se}) + (${se-1} * ${this._gutterSize})`}setStyle(Ft,se,jt){let ve=100/this._cols,be=(this._cols-1)/this._cols;this.setColStyles(Ft,jt,ve,be),this.setRowStyles(Ft,se,ve,be)}setColStyles(Ft,se,jt,ve){let be=this.getBaseTileSize(jt,ve);Ft._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(be,se)),Ft._setStyle("width",Vt(this.getTileSize(be,Ft.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(Ft){return`${this._rowspan} * ${this.getTileSize(Ft,1)}`}getComputedHeight(){return null}}class Dt extends vt{constructor(Ft){super(),this.fixedRowHeight=Ft}init(Ft,se,jt,ve){super.init(Ft,se,jt,ve),this.fixedRowHeight=it(this.fixedRowHeight),lt.test(this.fixedRowHeight)}setRowStyles(Ft,se){Ft._setStyle("top",this.getTilePosition(this.fixedRowHeight,se)),Ft._setStyle("height",Vt(this.getTileSize(this.fixedRowHeight,Ft.rowspan)))}getComputedHeight(){return["height",Vt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(Ft){Ft._setListStyle(["height",null]),Ft._tiles&&Ft._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}class Pt extends vt{constructor(Ft){super(),this._parseRatio(Ft)}setRowStyles(Ft,se,jt,ve){this.baseTileHeight=this.getBaseTileSize(jt/this.rowHeightRatio,ve),Ft._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,se)),Ft._setStyle("paddingTop",Vt(this.getTileSize(this.baseTileHeight,Ft.rowspan)))}getComputedHeight(){return["paddingBottom",Vt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(Ft){Ft._setListStyle(["paddingBottom",null]),Ft._tiles.forEach(se=>{se._setStyle("marginTop",null),se._setStyle("paddingTop",null)})}_parseRatio(Ft){const se=Ft.split(":");this.rowHeightRatio=parseFloat(se[0])/parseFloat(se[1])}}class zt extends vt{setRowStyles(Ft,se){let be=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);Ft._setStyle("top",this.getTilePosition(be,se)),Ft._setStyle("height",Vt(this.getTileSize(be,Ft.rowspan)))}reset(Ft){Ft._tiles&&Ft._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}function Vt(Bt){return`calc(${Bt})`}function it(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let At=(()=>{class Bt{constructor(se,jt){this._element=se,this._dir=jt,this._gutter="1px"}get cols(){return this._cols}set cols(se){this._cols=Math.max(1,Math.round((0,b.su)(se)))}get gutterSize(){return this._gutter}set gutterSize(se){this._gutter=`${se??""}`}get rowHeight(){return this._rowHeight}set rowHeight(se){const jt=`${se??""}`;jt!==this._rowHeight&&(this._rowHeight=jt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(se){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===se?new zt:se&&se.indexOf(":")>-1?new Pt(se):new Dt(se)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new k);const se=this._tileCoordinator,jt=this._tiles.filter(be=>!be._gridList||be._gridList===this),ve=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,jt),this._tileStyler.init(this.gutterSize,se,this.cols,ve),jt.forEach((be,Le)=>{const qe=se.positions[Le];this._tileStyler.setStyle(be,qe.row,qe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(se){se&&(this._element.nativeElement.style[se[0]]=se[1])}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(T.Is,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(se,jt,ve){if(1&se&&d.Suo(ve,F,5),2&se){let be;d.iGM(be=d.CRH())&&(jt._tiles=be)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(se,jt){2&se&&d.uIk("cols",jt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:P,useExisting:Bt}])],ngContentSelectors:t,decls:2,vars:0,template:function(se,jt){1&se&&(d.F$t(),d.TgZ(0,"div"),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})(),ft=(()=>{class Bt{}return Bt.\u0275fac=function(se){return new(se||Bt)},Bt.\u0275mod=d.oAB({type:Bt}),Bt.\u0275inj=d.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Bt})()},97392:(at,et,v)=>{"use strict";v.d(et,{Hw:()=>ae,Ps:()=>Kt});var d=v(94650),p=v(3238),b=v(21281),T=v(36895),t=v(21086),A=v(61737),x=v(30567),U=v(42654),k=v(22868),D=v(24850),P=v(27221),F=v(40537),z=v(12474),J=v(72986),K=v(80529),ot=v(11481);const lt=["*"];let vt;function Pt(de){return function Dt(){if(void 0===vt&&(vt=null,typeof window<"u")){const de=window;void 0!==de.trustedTypes&&(vt=de.trustedTypes.createPolicy("angular#components",{createHTML:Wt=>Wt}))}return vt}()?.createHTML(de)||de}function zt(de){return Error(`Unable to find icon with the name "${de}"`)}function it(de){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${de}".`)}function Tt(de){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${de}".`)}class At{constructor(Wt,re,De){this.url=Wt,this.svgText=re,this.options=De}}let ft=(()=>{class de{constructor(re,De,on,_n){this._httpClient=re,this._sanitizer=De,this._errorHandler=_n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=on}addSvgIcon(re,De,on){return this.addSvgIconInNamespace("",re,De,on)}addSvgIconLiteral(re,De,on){return this.addSvgIconLiteralInNamespace("",re,De,on)}addSvgIconInNamespace(re,De,on,_n){return this._addSvgIconConfig(re,De,new At(on,null,_n))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,De,on,_n){const Ae=this._sanitizer.sanitize(d.q3G.HTML,on);if(!Ae)throw Tt(on);const gn=Pt(Ae);return this._addSvgIconConfig(re,De,new At("",gn,_n))}addSvgIconSet(re,De){return this.addSvgIconSetInNamespace("",re,De)}addSvgIconSetLiteral(re,De){return this.addSvgIconSetLiteralInNamespace("",re,De)}addSvgIconSetInNamespace(re,De,on){return this._addSvgIconSetConfig(re,new At(De,null,on))}addSvgIconSetLiteralInNamespace(re,De,on){const _n=this._sanitizer.sanitize(d.q3G.HTML,De);if(!_n)throw Tt(De);const Ae=Pt(_n);return this._addSvgIconSetConfig(re,new At("",Ae,on))}registerFontClassAlias(re,De=re){return this._fontCssClassesByAlias.set(re,De),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const De=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,re);if(!De)throw it(re);const on=this._cachedIconsByUrl.get(De);return on?(0,t.of)(Ft(on)):this._loadSvgIconFromConfig(new At(re,null)).pipe((0,k.b)(_n=>this._cachedIconsByUrl.set(De,_n)),(0,D.U)(_n=>Ft(_n)))}getNamedSvgIcon(re,De=""){const on=se(De,re);let _n=this._svgIconConfigs.get(on);if(_n)return this._getSvgFromConfig(_n);if(_n=this._getIconConfigFromResolvers(De,re),_n)return this._svgIconConfigs.set(on,_n),this._getSvgFromConfig(_n);const Ae=this._iconSetConfigs.get(De);return Ae?this._getSvgFromIconSetConfigs(re,Ae):(0,A._)(zt(on))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,t.of)(Ft(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,D.U)(De=>Ft(De)))}_getSvgFromIconSetConfigs(re,De){const on=this._extractIconWithNameFromAnySet(re,De);if(on)return(0,t.of)(on);const _n=De.filter(Ae=>!Ae.svgText).map(Ae=>this._loadSvgIconSetFromConfig(Ae).pipe((0,P.K)(gn=>{const un=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,Ae.url)} failed: ${gn.message}`;return this._errorHandler.handleError(new Error(un)),(0,t.of)(null)})));return(0,x.D)(_n).pipe((0,D.U)(()=>{const Ae=this._extractIconWithNameFromAnySet(re,De);if(!Ae)throw zt(re);return Ae}))}_extractIconWithNameFromAnySet(re,De){for(let on=De.length-1;on>=0;on--){const _n=De[on];if(_n.svgText&&_n.svgText.toString().indexOf(re)>-1){const Ae=this._svgElementFromConfig(_n),gn=this._extractSvgIconFromSet(Ae,re,_n.options);if(gn)return gn}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,k.b)(De=>re.svgText=De),(0,D.U)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,t.of)(null):this._fetchIcon(re).pipe((0,k.b)(De=>re.svgText=De))}_extractSvgIconFromSet(re,De,on){const _n=re.querySelector(`[id="${De}"]`);if(!_n)return null;const Ae=_n.cloneNode(!0);if(Ae.removeAttribute("id"),"svg"===Ae.nodeName.toLowerCase())return this._setSvgAttributes(Ae,on);if("symbol"===Ae.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ae),on);const gn=this._svgElementFromString(Pt(""));return gn.appendChild(Ae),this._setSvgAttributes(gn,on)}_svgElementFromString(re){const De=this._document.createElement("DIV");De.innerHTML=re;const on=De.querySelector("svg");if(!on)throw Error(" tag not found");return on}_toSvgElement(re){const De=this._svgElementFromString(Pt("")),on=re.attributes;for(let _n=0;_nPt(un)),(0,F.x)(()=>this._inProgressUrlFetches.delete(Ae)),(0,z.B)());return this._inProgressUrlFetches.set(Ae,we),we}_addSvgIconConfig(re,De,on){return this._svgIconConfigs.set(se(re,De),on),this}_addSvgIconSetConfig(re,De){const on=this._iconSetConfigs.get(re);return on?on.push(De):this._iconSetConfigs.set(re,[De]),this}_svgElementFromConfig(re){if(!re.svgElement){const De=this._svgElementFromString(re.svgText);this._setSvgAttributes(De,re.options),re.svgElement=De}return re.svgElement}_getIconConfigFromResolvers(re,De){for(let on=0;onWt?Wt.pathname+Wt.search:""}}}),$e=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xt=$e.map(de=>`[${de}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let ae=(()=>{class de extends ve{constructor(re,De,on,_n,Ae,gn){super(re),this._iconRegistry=De,this._location=_n,this._errorHandler=Ae,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=U.w.EMPTY,gn&&(gn.color&&(this.color=this.defaultColor=gn.color),gn.fontSet&&(this.fontSet=gn.fontSet)),on||re.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(re){this._inline=(0,b.Ig)(re)}get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}get fontSet(){return this._fontSet}set fontSet(re){const De=this._cleanupFontValue(re);De!==this._fontSet&&(this._fontSet=De,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(re){const De=this._cleanupFontValue(re);De!==this._fontIcon&&(this._fontIcon=De,this._updateFontIconClasses())}_splitIconName(re){if(!re)return["",""];const De=re.split(":");switch(De.length){case 1:return["",De[0]];case 2:return De;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const De=this._location.getPathname();De!==this._previousPath&&(this._previousPath=De,this._prependPathToReferences(De))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const De=this._location.getPathname();this._previousPath=De,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(De),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let De=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();De--;){const on=re.childNodes[De];(1!==on.nodeType||"svg"===on.nodeName.toLowerCase())&&on.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,De=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(on=>on.length>0);this._previousFontSetClass.forEach(on=>re.classList.remove(on)),De.forEach(on=>re.classList.add(on)),this._previousFontSetClass=De,this.fontIcon!==this._previousFontIconClass&&!De.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const De=this._elementsWithExternalReferences;De&&De.forEach((on,_n)=>{on.forEach(Ae=>{_n.setAttribute(Ae.name,`url('${re}#${Ae.value}')`)})})}_cacheChildrenWithExternalReferences(re){const De=re.querySelectorAll(Xt),on=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _n=0;_n{const gn=De[_n],we=gn.getAttribute(Ae),un=we?we.match(Te):null;if(un){let Un=on.get(gn);Un||(Un=[],on.set(gn,Un)),Un.push({name:Ae,value:un[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[De,on]=this._splitIconName(re);De&&(this._svgNamespace=De),on&&(this._svgName=on),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(on,De).pipe((0,J.q)(1)).subscribe(_n=>this._setSvgElement(_n),_n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${De}:${on}! ${_n.message}`))})}}}return de.\u0275fac=function(re){return new(re||de)(d.Y36(d.SBq),d.Y36(ft),d.$8M("aria-hidden"),d.Y36(Le),d.Y36(d.qLn),d.Y36(be,8))},de.\u0275cmp=d.Xpm({type:de,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(re,De){2&re&&(d.uIk("data-mat-icon-type",De._usingFontIcon()?"font":"svg")("data-mat-icon-name",De._svgName||De.fontIcon)("data-mat-icon-namespace",De._svgNamespace||De.fontSet)("fontIcon",De._usingFontIcon()?De.fontIcon:null),d.ekj("mat-icon-inline",De.inline)("mat-icon-no-color","primary"!==De.color&&"accent"!==De.color&&"warn"!==De.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:lt,decls:1,vars:0,template:function(re,De){1&re&&(d.F$t(),d.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),de})(),Kt=(()=>{class de{}return de.\u0275fac=function(re){return new(re||de)},de.\u0275mod=d.oAB({type:de}),de.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),de})()},284:(at,et,v)=>{"use strict";v.d(et,{Jk:()=>D,Nt:()=>J,c:()=>K});var d=v(21281),p=v(83353),b=v(39349),T=v(94650),t=v(24006),A=v(3238),x=v(59549),U=v(8929);const D=new T.OlP("MAT_INPUT_VALUE_ACCESSOR"),P=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let F=0;const z=(0,A.FD)(class{constructor(ot,lt,vt,Dt){this._defaultErrorStateMatcher=ot,this._parentForm=lt,this._parentFormGroup=vt,this.ngControl=Dt,this.stateChanges=new U.xQ}});let J=(()=>{class ot extends z{constructor(vt,Dt,Pt,zt,Vt,it,Tt,At,ft,Et){super(it,zt,Vt,Pt),this._elementRef=vt,this._platform=Dt,this._autofillMonitor=At,this._formField=Et,this._uid="mat-input-"+F++,this.focused=!1,this.stateChanges=new U.xQ,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(se=>(0,p.qK)().has(se)),this._iOSKeyupListener=se=>{const jt=se.target;!jt.value&&0===jt.selectionStart&&0===jt.selectionEnd&&(jt.setSelectionRange(1,1),jt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,Ft=Bt.nodeName.toLowerCase();this._inputValueAccessor=Tt||Bt,this._previousNativeValue=this.value,this.id=this.id,Dt.IOS&&ft.runOutsideAngular(()=>{vt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Ft,this._isTextarea="textarea"===Ft,this._isInFormField=!!Et,this._isNativeSelect&&(this.controlType=Bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(vt){this._disabled=(0,d.Ig)(vt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(vt){this._id=vt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(vt){this._required=(0,d.Ig)(vt)}get type(){return this._type}set type(vt){this._type=vt||"text",this._validateType(),!this._isTextarea&&(0,p.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(vt){vt!==this.value&&(this._inputValueAccessor.value=vt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(vt){this._readonly=(0,d.Ig)(vt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(vt=>{this.autofilled=vt.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._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(vt){this._elementRef.nativeElement.focus(vt)}_focusChanged(vt){vt!==this.focused&&(this.focused=vt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const vt=this._formField,Dt=vt&&"legacy"===vt.appearance&&!vt._hasLabel?.()?null:this.placeholder;if(Dt!==this._previousPlaceholder){const Pt=this._elementRef.nativeElement;this._previousPlaceholder=Dt,Dt?Pt.setAttribute("placeholder",Dt):Pt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const vt=this._elementRef.nativeElement.value;this._previousNativeValue!==vt&&(this._previousNativeValue=vt,this.stateChanges.next())}_validateType(){P.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let vt=this._elementRef.nativeElement.validity;return vt&&vt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const vt=this._elementRef.nativeElement,Dt=vt.options[0];return this.focused||vt.multiple||!this.empty||!!(vt.selectedIndex>-1&&Dt&&Dt.label)}return this.focused||!this.empty}setDescribedByIds(vt){vt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",vt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const vt=this._elementRef.nativeElement;return this._isNativeSelect&&(vt.multiple||vt.size>1)}}return ot.\u0275fac=function(vt){return new(vt||ot)(T.Y36(T.SBq),T.Y36(p.t4),T.Y36(t.a5,10),T.Y36(t.F,8),T.Y36(t.sg,8),T.Y36(A.rD),T.Y36(D,10),T.Y36(b.Lq),T.Y36(T.R0b),T.Y36(x.G_,8))},ot.\u0275dir=T.lG2({type:ot,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(vt,Dt){1&vt&&T.NdJ("focus",function(){return Dt._focusChanged(!0)})("blur",function(){return Dt._focusChanged(!1)})("input",function(){return Dt._onInput()}),2&vt&&(T.Ikx("disabled",Dt.disabled)("required",Dt.required),T.uIk("id",Dt.id)("data-placeholder",Dt.placeholder)("name",Dt.name||null)("readonly",Dt.readonly&&!Dt._isNativeSelect||null)("aria-invalid",Dt.empty&&Dt.required?null:Dt.errorState)("aria-required",Dt.required),T.ekj("mat-input-server",Dt._isServer)("mat-native-select-inline",Dt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[T._Bn([{provide:x.Eo,useExisting:ot}]),T.qOj,T.TTD]}),ot})(),K=(()=>{class ot{}return ot.\u0275fac=function(vt){return new(vt||ot)},ot.\u0275mod=T.oAB({type:ot}),ot.\u0275inj=T.cJS({providers:[A.rD],imports:[b.Ky,x.lN,A.BQ,b.Ky,x.lN]}),ot})()},96338:(at,et,v)=>{"use strict";v.d(et,{Hk:()=>At,Nh:()=>Bt,Tg:()=>se,gs:()=>Ft,i$:()=>ft,ie:()=>Xt});var d=v(36895),p=v(94650),b=v(3238),T=v(21281),t=v(8929),A=v(7625),F=(v(1059),v(12687),v(95017),v(29521),v(24006),v(44850));const z=["*"],K=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ot=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],zt=(0,b.Id)((0,b.Kr)(class{})),Vt=(0,b.Kr)(class{}),it=new p.OlP("MatList"),Tt=new p.OlP("MatNavList");let At=(()=>{class Te extends zt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(){let ae;return function(de){return(ae||(ae=p.n5z(Te)))(de||Te)}}(),Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[p._Bn([{provide:Tt,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),ft=(()=>{class Te extends zt{constructor(Kt){super(),this._elementRef=Kt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(Kt.nativeElement.classList.add("mat-action-list"),Kt.nativeElement.setAttribute("role","group"))}_getListType(){const Kt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Kt?"list":"mat-action-list"===Kt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(Kt){return new(Kt||Te)(p.Y36(p.SBq))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:it,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),Et=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Bt=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),Ft=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Te})(),se=(()=>{class Te extends Vt{constructor(Kt,de,Wt,re){super(),this._element=Kt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Wt||re&&"action-list"===re._getListType()),this._list=Wt||re;const De=this._getHostElement();"button"===De.nodeName.toLowerCase()&&!De.hasAttribute("type")&&De.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{de.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Kt){this._disabled=(0,T.Ig)(Kt)}ngAfterContentInit(){(0,b.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Te.\u0275fac=function(Kt){return new(Kt||Te)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Tt,8),p.Y36(it,8))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Kt,de,Wt){if(1&Kt&&(p.Suo(Wt,Et,5),p.Suo(Wt,Bt,5),p.Suo(Wt,b.X2,5)),2&Kt){let re;p.iGM(re=p.CRH())&&(de._avatar=re.first),p.iGM(re=p.CRH())&&(de._icon=re.first),p.iGM(re=p.CRH())&&(de._lines=re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Kt,de){2&Kt&&p.ekj("mat-list-item-disabled",de.disabled)("mat-list-item-with-avatar",de._avatar||de._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:ot,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(Kt,de){1&Kt&&(p.F$t(K),p.TgZ(0,"span",0),p._UZ(1,"span",1),p.Hsn(2),p.TgZ(3,"span",2),p.Hsn(4,1),p.qZA(),p.Hsn(5,2),p.qZA()),2&Kt&&(p.xp6(1),p.Q6J("matRippleTrigger",de._getHostElement())("matRippleDisabled",de._isRippleDisabled()))},dependencies:[b.wG],encapsulation:2,changeDetection:0}),Te})(),Xt=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275mod=p.oAB({type:Te}),Te.\u0275inj=p.cJS({imports:[b.uc,b.si,b.BQ,b.us,d.ez,b.uc,b.BQ,b.us,F.t]}),Te})()},28255:(at,et,v)=>{"use strict";v.d(et,{OP:()=>ae,Tx:()=>oi,VK:()=>De,p6:()=>Un});var d=v(12687),p=v(21281),b=v(29521),T=v(94650),t=v(8929),A=v(42654),x=v(36787),U=v(21086),k=v(8139),D=v(1059),P=v(87545),F=v(72986),z=v(7625),J=v(92198),K=v(18583),ot=v(37340),lt=v(84080),vt=v(36895),Dt=v(3238),Pt=v(40445),zt=v(98184),Vt=v(83353),it=v(67376);const Tt=["mat-menu-item",""];function At(vi,si){1&vi&&(T.O4$(),T.TgZ(0,"svg",2),T._UZ(1,"polygon",3),T.qZA())}const ft=["*"];function Et(vi,si){if(1&vi){const Ke=T.EpF();T.TgZ(0,"div",0),T.NdJ("keydown",function(ct){T.CHM(Ke);const nt=T.oxw();return T.KtG(nt._handleKeydown(ct))})("click",function(){T.CHM(Ke);const ct=T.oxw();return T.KtG(ct.closed.emit("click"))})("@transformMenu.start",function(ct){T.CHM(Ke);const nt=T.oxw();return T.KtG(nt._onAnimationStart(ct))})("@transformMenu.done",function(ct){T.CHM(Ke);const nt=T.oxw();return T.KtG(nt._onAnimationDone(ct))}),T.TgZ(1,"div",1),T.Hsn(2),T.qZA()()}if(2&vi){const Ke=T.oxw();T.Q6J("id",Ke.panelId)("ngClass",Ke._classList)("@transformMenu",Ke._panelAnimationState),T.uIk("aria-label",Ke.ariaLabel||null)("aria-labelledby",Ke.ariaLabelledby||null)("aria-describedby",Ke.ariaDescribedby||null)}}const Bt={transformMenu:(0,ot.X$)("transformMenu",[(0,ot.SB)("void",(0,ot.oB)({opacity:0,transform:"scale(0.8)"})),(0,ot.eR)("void => enter",(0,ot.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ot.oB)({opacity:1,transform:"scale(1)"}))),(0,ot.eR)("* => void",(0,ot.jt)("100ms 25ms linear",(0,ot.oB)({opacity:0})))]),fadeInItems:(0,ot.X$)("fadeInItems",[(0,ot.SB)("showing",(0,ot.oB)({opacity:1})),(0,ot.eR)("void => *",[(0,ot.oB)({opacity:0}),(0,ot.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},jt=new T.OlP("MatMenuContent"),Xt=new T.OlP("MAT_MENU_PANEL"),Te=(0,Dt.Kr)((0,Dt.Id)(class{}));let ae=(()=>{class vi extends Te{constructor(Ke,ne,ct,nt,kt){super(),this._elementRef=Ke,this._document=ne,this._focusMonitor=ct,this._parentMenu=nt,this._changeDetectorRef=kt,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,nt?.addItem?.(this)}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._getHostElement(),Ke,ne):this._getHostElement().focus(ne),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Ke){this.disabled&&(Ke.preventDefault(),Ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Ke=this._elementRef.nativeElement.cloneNode(!0),ne=Ke.querySelectorAll("mat-icon, .material-icons");for(let ct=0;ct{class vi{constructor(Ke,ne,ct,nt){this._elementRef=Ke,this._ngZone=ne,this._defaultOptions=ct,this._changeDetectorRef=nt,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new T.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new T.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Wt++}get xPosition(){return this._xPosition}set xPosition(Ke){this._xPosition=Ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Ke){this._yPosition=Ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Ke){this._overlapTrigger=(0,p.Ig)(Ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ke){this._hasBackdrop=(0,p.Ig)(Ke)}set panelClass(Ke){const ne=this._previousPanelClass;ne&&ne.length&&ne.split(" ").forEach(ct=>{this._classList[ct]=!1}),this._previousPanelClass=Ke,Ke&&Ke.length&&(Ke.split(" ").forEach(ct=>{this._classList[ct]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Ke){this.panelClass=Ke}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new d.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(Ke=>(0,x.T)(...Ke.map(ne=>ne._focused)))).subscribe(Ke=>this._keyManager.updateActiveItem(Ke)),this._directDescendantItems.changes.subscribe(Ke=>{const ne=this._keyManager;if("enter"===this._panelAnimationState&&ne.activeItem?._hasFocus()){const ct=Ke.toArray(),nt=Math.max(0,Math.min(ct.length-1,ne.activeItemIndex||0));ct[nt]&&!ct[nt].disabled?ne.setActiveItem(nt):ne.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(ne=>(0,x.T)(...ne.map(ct=>ct._hovered))))}addItem(Ke){}removeItem(Ke){}_handleKeydown(Ke){const ne=Ke.keyCode,ct=this._keyManager;switch(ne){case b.hY:(0,b.Vb)(Ke)||(Ke.preventDefault(),this.closed.emit("keydown"));break;case b.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case b.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ne===b.LH||ne===b.JH)&&ct.setFocusOrigin("keyboard"),void ct.onKeydown(Ke)}Ke.stopPropagation()}focusFirstItem(Ke="program"){this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(()=>{let ne=null;if(this._directDescendantItems.length&&(ne=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ne||!ne.contains(document.activeElement)){const ct=this._keyManager;ct.setFocusOrigin(Ke).setFirstItemActive(),!ct.activeItem&&ne&&ne.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Ke){const ne=Math.min(this._baseElevation+Ke,24),ct=`${this._elevationPrefix}${ne}`,nt=Object.keys(this._classList).find(kt=>kt.startsWith(this._elevationPrefix));(!nt||nt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ct]=!0,this._previousElevation=ct)}setPositionClasses(Ke=this.xPosition,ne=this.yPosition){const ct=this._classList;ct["mat-menu-before"]="before"===Ke,ct["mat-menu-after"]="after"===Ke,ct["mat-menu-above"]="above"===ne,ct["mat-menu-below"]="below"===ne,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Ke){this._animationDone.next(Ke),this._isAnimating=!1}_onAnimationStart(Ke){this._isAnimating=!0,"enter"===Ke.toState&&0===this._keyManager.activeItemIndex&&(Ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(Ke=>{this._directDescendantItems.reset(Ke.filter(ne=>ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return vi.\u0275fac=function(Ke){return new(Ke||vi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},vi.\u0275dir=T.lG2({type:vi,contentQueries:function(Ke,ne,ct){if(1&Ke&&(T.Suo(ct,jt,5),T.Suo(ct,ae,5),T.Suo(ct,ae,4)),2&Ke){let nt;T.iGM(nt=T.CRH())&&(ne.lazyContent=nt.first),T.iGM(nt=T.CRH())&&(ne._allItems=nt),T.iGM(nt=T.CRH())&&(ne.items=nt)}},viewQuery:function(Ke,ne){if(1&Ke&&T.Gf(T.Rgc,5),2&Ke){let ct;T.iGM(ct=T.CRH())&&(ne.templateRef=ct.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),vi})(),De=(()=>{class vi extends re{constructor(Ke,ne,ct,nt){super(Ke,ne,ct,nt),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return vi.\u0275fac=function(Ke){return new(Ke||vi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},vi.\u0275cmp=T.Xpm({type:vi,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Ke,ne){2&Ke&&T.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[T._Bn([{provide:Xt,useExisting:vi}]),T.qOj],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Ke,ne){1&Ke&&(T.F$t(),T.YNc(0,Et,3,6,"ng-template"))},dependencies:[vt.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bt.transformMenu,Bt.fadeInItems]},changeDetection:0}),vi})();const on=new T.OlP("mat-menu-scroll-strategy"),Ae={provide:on,deps:[zt.aV],useFactory:function _n(vi){return()=>vi.scrollStrategies.reposition()}},we=(0,Vt.i$)({passive:!0});let un=(()=>{class vi{constructor(Ke,ne,ct,nt,kt,Jt,oe,Ce,Oe){this._overlay=Ke,this._element=ne,this._viewContainerRef=ct,this._menuItemInstance=Jt,this._dir=oe,this._focusMonitor=Ce,this._ngZone=Oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=Dn=>{(0,d.yG)(Dn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new T.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=nt,this._parentMaterialMenu=kt instanceof re?kt:void 0,ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,we),Jt&&(Jt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Ke){this.menu=Ke}get menu(){return this._menu}set menu(Ke){Ke!==this._menu&&(this._menu=Ke,this._menuCloseSubscription.unsubscribe(),Ke&&(this._menuCloseSubscription=Ke.close.subscribe(ne=>{this._destroyMenu(ne),("click"===ne||"tab"===ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ne)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,we),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Ke=this.menu;if(this._menuOpen||!Ke)return;const ne=this._createOverlay(Ke),ct=ne.getConfig(),nt=ct.positionStrategy;this._setPosition(Ke,nt),ct.hasBackdrop=Ke.hasBackdrop??!this.triggersSubmenu(),ne.attach(this._getPortal(Ke)),Ke.lazyContent&&Ke.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Ke),Ke instanceof re&&(Ke._startAnimation(),Ke._directDescendantItems.changes.pipe((0,z.R)(Ke.close)).subscribe(()=>{nt.withLockedPosition(!1).reapplyLastPosition(),nt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._element,Ke,ne):this._element.nativeElement.focus(ne)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Ke){if(!this._overlayRef||!this.menuOpen)return;const ne=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ne instanceof re?(ne._resetAnimation(),ne.lazyContent?ne._animationDone.pipe((0,J.h)(ct=>"void"===ct.toState),(0,F.q)(1),(0,z.R)(ne.lazyContent._attached)).subscribe({next:()=>ne.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ne?.lazyContent?.detach())}_initMenu(Ke){Ke.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Ke.direction=this.dir,this._setMenuElevation(Ke),Ke.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Ke){if(Ke.setElevation){let ne=0,ct=Ke.parentMenu;for(;ct;)ne++,ct=ct.parentMenu;Ke.setElevation(ne)}}_setIsMenuOpen(Ke){this._menuOpen=Ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Ke)}_createOverlay(Ke){if(!this._overlayRef){const ne=this._getOverlayConfig(Ke);this._subscribeToPositions(Ke,ne.positionStrategy),this._overlayRef=this._overlay.create(ne),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Ke){return new zt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Ke.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Ke.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Ke,ne){Ke.setPositionClasses&&ne.positionChanges.subscribe(ct=>{const nt="start"===ct.connectionPair.overlayX?"after":"before",kt="top"===ct.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Ke.setPositionClasses(nt,kt)):Ke.setPositionClasses(nt,kt)})}_setPosition(Ke,ne){let[ct,nt]="before"===Ke.xPosition?["end","start"]:["start","end"],[kt,Jt]="above"===Ke.yPosition?["bottom","top"]:["top","bottom"],[oe,Ce]=[kt,Jt],[Oe,Dn]=[ct,nt],Sn=0;if(this.triggersSubmenu()){if(Dn=ct="before"===Ke.xPosition?"start":"end",nt=Oe="end"===ct?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}Sn="bottom"===kt?this._parentInnerPadding:-this._parentInnerPadding}}else Ke.overlapTrigger||(oe="top"===kt?"bottom":"top",Ce="top"===Jt?"bottom":"top");ne.withPositions([{originX:ct,originY:oe,overlayX:Oe,overlayY:kt,offsetY:Sn},{originX:nt,originY:oe,overlayX:Dn,overlayY:kt,offsetY:Sn},{originX:ct,originY:Ce,overlayX:Oe,overlayY:Jt,offsetY:-Sn},{originX:nt,originY:Ce,overlayX:Dn,overlayY:Jt,offsetY:-Sn}])}_menuClosingActions(){const Ke=this._overlayRef.backdropClick(),ne=this._overlayRef.detachments(),ct=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,U.of)(),nt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,J.h)(kt=>kt!==this._menuItemInstance),(0,J.h)(()=>this._menuOpen)):(0,U.of)();return(0,x.T)(Ke,ct,nt,ne)}_handleMousedown(Ke){(0,d.X6)(Ke)||(this._openedBy=0===Ke.button?"mouse":void 0,this.triggersSubmenu()&&Ke.preventDefault())}_handleKeydown(Ke){const ne=Ke.keyCode;(ne===b.K5||ne===b.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ne===b.SV&&"ltr"===this.dir||ne===b.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Ke){this.triggersSubmenu()?(Ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,J.h)(Ke=>Ke===this._menuItemInstance&&!Ke.disabled),(0,K.g)(0,k.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof re&&this.menu._isAnimating?this.menu._animationDone.pipe((0,F.q)(1),(0,K.g)(0,k.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Ke){return(!this._portal||this._portal.templateRef!==Ke.templateRef)&&(this._portal=new lt.UE(Ke.templateRef,this._viewContainerRef)),this._portal}}return vi.\u0275fac=function(Ke){return new(Ke||vi)(T.Y36(zt.aV),T.Y36(T.SBq),T.Y36(T.s_b),T.Y36(on),T.Y36(Xt,8),T.Y36(ae,10),T.Y36(Pt.Is,8),T.Y36(d.tE),T.Y36(T.R0b))},vi.\u0275dir=T.lG2({type:vi,hostVars:3,hostBindings:function(Ke,ne){1&Ke&&T.NdJ("click",function(nt){return ne._handleClick(nt)})("mousedown",function(nt){return ne._handleMousedown(nt)})("keydown",function(nt){return ne._handleKeydown(nt)}),2&Ke&&T.uIk("aria-haspopup",ne.menu?"menu":null)("aria-expanded",ne.menuOpen||null)("aria-controls",ne.menuOpen?ne.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),vi})(),Un=(()=>{class vi extends un{}return vi.\u0275fac=function(){let si;return function(ne){return(si||(si=T.n5z(vi)))(ne||vi)}}(),vi.\u0275dir=T.lG2({type:vi,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[T.qOj]}),vi})(),oi=(()=>{class vi{}return vi.\u0275fac=function(Ke){return new(Ke||vi)},vi.\u0275mod=T.oAB({type:vi}),vi.\u0275inj=T.cJS({providers:[Ae],imports:[vt.ez,Dt.BQ,Dt.si,zt.U8,it.ZD,Dt.BQ]}),vi})()},98739:(at,et,v)=>{"use strict";v.d(et,{NW:()=>Tt,TU:()=>At});var d=v(36895),p=v(94650),b=v(3238),T=v(4859),t=v(84385),A=v(10266),x=v(21281),U=v(8929),k=v(59549);function D(ft,Et){if(1&ft&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&ft){const Bt=Et.$implicit;p.Q6J("value",Bt),p.xp6(1),p.hij(" ",Bt," ")}}function P(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(se){p.CHM(Bt);const jt=p.oxw(2);return p.KtG(jt._changePageSize(se.value))}),p.YNc(2,D,2,2,"mat-option",18),p.qZA()()}if(2&ft){const Bt=p.oxw(2);p.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),p.xp6(1),p.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function F(ft,Et){if(1&ft&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&ft){const Bt=p.oxw(2);p.xp6(1),p.Oqu(Bt.pageSize)}}function z(ft,Et){if(1&ft&&(p.TgZ(0,"div",12)(1,"div",13),p._uU(2),p.qZA(),p.YNc(3,P,3,8,"mat-form-field",14),p.YNc(4,F,2,1,"div",15),p.qZA()),2&ft){const Bt=p.oxw();p.xp6(2),p.hij(" ",Bt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function J(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),p.uIk("aria-label",Bt._intl.firstPageLabel)}}function K(ft,Et){if(1&ft){const Bt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),p.uIk("aria-label",Bt._intl.lastPageLabel)}}let ot=(()=>{class ft{constructor(){this.changes=new U.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Bt,Ft,se)=>{if(0==se||0==Ft)return`0 of ${se}`;const jt=Bt*Ft;return`${jt+1} \u2013 ${jt<(se=Math.max(se,0))?Math.min(jt+Ft,se):jt+Ft} of ${se}`}}}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275prov=p.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const vt={provide:ot,deps:[[new p.FiY,new p.tp0,ot]],useFactory:function lt(ft){return ft||new ot}},zt=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Vt=(0,b.Id)((0,b.dB)(class{}));let it=(()=>{class ft extends Vt{constructor(Bt,Ft,se){if(super(),this._intl=Bt,this._changeDetectorRef=Ft,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),se){const{pageSize:jt,pageSizeOptions:ve,hidePageSize:be,showFirstLastButtons:Le}=se;null!=jt&&(this._pageSize=jt),null!=ve&&(this._pageSizeOptions=ve),null!=be&&(this._hidePageSize=be),null!=Le&&(this._showFirstLastButtons=Le)}}get pageIndex(){return this._pageIndex}set pageIndex(Bt){this._pageIndex=Math.max((0,x.su)(Bt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Bt){this._length=(0,x.su)(Bt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Bt){this._pageSize=Math.max((0,x.su)(Bt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Bt){this._pageSizeOptions=(Bt||[]).map(Ft=>(0,x.su)(Ft)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Bt){this._hidePageSize=(0,x.Ig)(Bt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Bt){this._showFirstLastButtons=(0,x.Ig)(Bt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Bt)}previousPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Bt)}firstPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Bt)}lastPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Bt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Bt=this.getNumberOfPages()-1;return this.pageIndexBt-Ft),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ft.\u0275fac=function(Bt){p.$Z()},ft.\u0275dir=p.lG2({type:ft,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),ft})(),Tt=(()=>{class ft extends it{constructor(Bt,Ft,se){super(Bt,Ft,se),se&&null!=se.formFieldAppearance&&(this._formFieldAppearance=se.formFieldAppearance)}}return ft.\u0275fac=function(Bt){return new(Bt||ft)(p.Y36(ot),p.Y36(p.sBO),p.Y36(zt,8))},ft.\u0275cmp=p.Xpm({type:ft,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[p.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Bt,Ft){1&Bt&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,z,5,3,"div",2),p.TgZ(3,"div",3)(4,"div",4),p._uU(5),p.qZA(),p.YNc(6,J,3,5,"button",5),p.TgZ(7,"button",6),p.NdJ("click",function(){return Ft.previousPage()}),p.O4$(),p.TgZ(8,"svg",7),p._UZ(9,"path",8),p.qZA()(),p.kcU(),p.TgZ(10,"button",9),p.NdJ("click",function(){return Ft.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,K,3,5,"button",11),p.qZA()()()),2&Bt&&(p.xp6(2),p.Q6J("ngIf",!Ft.hidePageSize),p.xp6(3),p.hij(" ",Ft._intl.getRangeLabel(Ft.pageIndex,Ft.pageSize,Ft.length)," "),p.xp6(1),p.Q6J("ngIf",Ft.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",Ft._intl.previousPageLabel)("matTooltipDisabled",Ft._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Ft._previousButtonsDisabled()),p.uIk("aria-label",Ft._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",Ft._intl.nextPageLabel)("matTooltipDisabled",Ft._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Ft._nextButtonsDisabled()),p.uIk("aria-label",Ft._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",Ft.showFirstLastButtons))},dependencies:[d.sg,d.O5,T.lW,k.KE,t.gD,b.ey,A.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ft})(),At=(()=>{class ft{}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275mod=p.oAB({type:ft}),ft.\u0275inj=p.cJS({providers:[vt],imports:[d.ez,T.ot,t.LD,A.AV,b.BQ]}),ft})()},73162:(at,et,v)=>{"use strict";v.d(et,{Cv:()=>ot,pW:()=>J});var d=v(94650),p=v(36895),b=v(3238),T=v(21281),t=v(42654),A=v(23753),x=v(92198);const U=["primaryValueBar"],k=(0,b.pj)(class{constructor(lt){this._elementRef=lt}},"primary"),D=new d.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const lt=(0,d.f3M)(p.K0),vt=lt?lt.location:null;return{getPathname:()=>vt?vt.pathname+vt.search:""}}}),F=new d.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let z=0,J=(()=>{class lt extends k{constructor(Dt,Pt,zt,Vt,it,Tt){super(Dt),this._ngZone=Pt,this._animationMode=zt,this._changeDetectorRef=Tt,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new d.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+z++;const At=Vt?Vt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${At}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===zt,it&&(it.color&&(this.color=this.defaultColor=it.color),this.mode=it.mode||this.mode)}get value(){return this._value}set value(Dt){this._value=K((0,T.su)(Dt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Dt){this._bufferValue=K(Dt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Dt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,A.R)(Dt,"transitionend").pipe((0,x.h)(Pt=>Pt.target===Dt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return lt.\u0275fac=function(Dt){return new(Dt||lt)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.QbO,8),d.Y36(D,8),d.Y36(F,8),d.Y36(d.sBO))},lt.\u0275cmp=d.Xpm({type:lt,selectors:[["mat-progress-bar"]],viewQuery:function(Dt,Pt){if(1&Dt&&d.Gf(U,5),2&Dt){let zt;d.iGM(zt=d.CRH())&&(Pt._primaryValueBar=zt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Dt,Pt){2&Dt&&(d.uIk("aria-valuenow","indeterminate"===Pt.mode||"query"===Pt.mode?null:Pt.value)("mode",Pt.mode),d.ekj("_mat-animation-noopable",Pt._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[d.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Dt,Pt){1&Dt&&(d.TgZ(0,"div",0),d.O4$(),d.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),d._UZ(4,"circle",3),d.qZA()(),d._UZ(5,"rect",4),d.qZA(),d.kcU(),d._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),d.qZA()),2&Dt&&(d.xp6(3),d.Q6J("id",Pt.progressbarId),d.xp6(2),d.uIk("fill",Pt._rectangleFillValue),d.xp6(1),d.Q6J("ngStyle",Pt._bufferTransform()),d.xp6(1),d.Q6J("ngStyle",Pt._primaryTransform()))},dependencies:[p.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),lt})();function K(lt,vt=0,Dt=100){return Math.max(vt,Math.min(Dt,lt))}let ot=(()=>{class lt{}return lt.\u0275fac=function(Dt){return new(Dt||lt)},lt.\u0275mod=d.oAB({type:lt}),lt.\u0275inj=d.cJS({imports:[p.ez,b.BQ,b.BQ]}),lt})()},51572:(at,et,v)=>{"use strict";v.d(et,{Cq:()=>lt,Ou:()=>ot});var d=v(21281),p=v(83353),b=v(67376),T=v(36895),t=v(94650),A=v(3238),x=v(42654);function U(Dt,Pt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+zt._spinnerAnimationLabel)("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._getCircleRadius())}}function k(Dt,Pt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._getCircleRadius())}}const F=(0,A.pj)(class{constructor(Dt){this._elementRef=Dt}},"primary"),z=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function J(){return{diameter:100}}});class ot extends F{constructor(Pt,zt,Vt,it,Tt,At,ft,Et){super(Pt),this._document=Vt,this._diameter=100,this._value=0,this._resizeSubscription=x.w.EMPTY,this.mode="determinate";const Bt=ot._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Vt.head)||Bt.set(Vt.head,new Set([100])),this._noopAnimations="NoopAnimations"===it&&!!Tt&&!Tt._forceAnimations,"mat-spinner"===Pt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Tt&&(Tt.color&&(this.color=this.defaultColor=Tt.color),Tt.diameter&&(this.diameter=Tt.diameter),Tt.strokeWidth&&(this.strokeWidth=Tt.strokeWidth)),zt.isBrowser&&zt.SAFARI&&ft&&At&&Et&&(this._resizeSubscription=ft.change(150).subscribe(()=>{"indeterminate"===this.mode&&Et.run(()=>At.markForCheck())}))}get diameter(){return this._diameter}set diameter(Pt){this._diameter=(0,d.su)(Pt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Pt){this._strokeWidth=(0,d.su)(Pt)}get value(){return"determinate"===this.mode?this._value:0}set value(Pt){this._value=Math.max(0,Math.min(100,(0,d.su)(Pt)))}ngOnInit(){const Pt=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(Pt)||this._document.head,this._attachStyleNode(),Pt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Pt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Pt} ${Pt}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Pt){const zt=50*(Pt.currentScale??1);return`${zt}% ${zt}%`}_attachStyleNode(){const Pt=this._styleRoot,zt=this._diameter,Vt=ot._diameters;let it=Vt.get(Pt);if(!it||!it.has(zt)){const Tt=this._document.createElement("style");Tt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Tt.textContent=this._getAnimationText(),Pt.appendChild(Tt),it||(it=new Set,Vt.set(Pt,it)),it.add(zt)}}_getAnimationText(){const Pt=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Pt).replace(/END_VALUE/g,""+.2*Pt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ot._diameters=new WeakMap,ot.\u0275fac=function(Pt){return new(Pt||ot)(t.Y36(t.SBq),t.Y36(p.t4),t.Y36(T.K0,8),t.Y36(t.QbO,8),t.Y36(z),t.Y36(t.sBO),t.Y36(b.rL),t.Y36(t.R0b))},ot.\u0275cmp=t.Xpm({type:ot,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Pt,zt){2&Pt&&(t.uIk("aria-valuemin","determinate"===zt.mode?0:null)("aria-valuemax","determinate"===zt.mode?100:null)("aria-valuenow","determinate"===zt.mode?zt.value:null)("mode",zt.mode),t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.ekj("_mat-animation-noopable",zt._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Pt,zt){1&Pt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,U,1,11,"circle",2),t.YNc(3,k,1,9,"circle",3),t.qZA()),2&Pt&&(t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===zt.mode),t.uIk("viewBox",zt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let lt=(()=>{class Dt{}return Dt.\u0275fac=function(zt){return new(zt||Dt)},Dt.\u0275mod=t.oAB({type:Dt}),Dt.\u0275inj=t.cJS({imports:[A.BQ,T.ez,A.BQ]}),Dt})()},71948:(at,et,v)=>{"use strict";v.d(et,{Fk:()=>Vt,U0:()=>zt,VQ:()=>lt});var d=v(94650),p=v(3238),b=v(12687),T=v(21281),t=v(95017),A=v(24006);const x=["input"],U=function(it){return{enterDuration:it}},k=["*"],D=new d.OlP("mat-radio-default-options",{providedIn:"root",factory:function P(){return{color:"accent"}}});let F=0;const z={provide:A.JU,useExisting:(0,d.Gpc)(()=>lt),multi:!0};class J{constructor(Tt,At){this.source=Tt,this.value=At}}const K=new d.OlP("MatRadioGroup");let ot=(()=>{class it{constructor(At){this._changeDetector=At,this._value=null,this._name="mat-radio-group-"+F++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new d.vpe}get name(){return this._name}set name(At){this._name=At,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(At){this._labelPosition="before"===At?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(At){this._selected=At,this.value=At?At.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At),this._markRadiosForCheck()}get required(){return this._required}set required(At){this._required=(0,T.Ig)(At),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(At=>{At.name=this.name,At._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ft=>{ft.checked=this.value===ft.value,ft.checked&&(this._selected=ft)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new J(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(At=>At._markForCheck())}writeValue(At){this.value=At,this._changeDetector.markForCheck()}registerOnChange(At){this._controlValueAccessorChangeFn=At}registerOnTouched(At){this.onTouched=At}setDisabledState(At){this.disabled=At,this._changeDetector.markForCheck()}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(d.sBO))},it.\u0275dir=d.lG2({type:it,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),it})(),lt=(()=>{class it extends ot{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=d.n5z(it)))(ft||it)}}(),it.\u0275dir=d.lG2({type:it,selectors:[["mat-radio-group"]],contentQueries:function(At,ft,Et){if(1&At&&d.Suo(Et,zt,5),2&At){let Bt;d.iGM(Bt=d.CRH())&&(ft._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([z,{provide:K,useExisting:it}]),d.qOj]}),it})();class vt{constructor(Tt){this._elementRef=Tt}}const Dt=(0,p.Kr)((0,p.sb)(vt));let Pt=(()=>{class it extends Dt{constructor(At,ft,Et,Bt,Ft,se,jt,ve){super(ft),this._changeDetector=Et,this._focusMonitor=Bt,this._radioDispatcher=Ft,this._providerOverride=jt,this._uniqueId="mat-radio-"+ ++F,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=At,this._noopAnimations="NoopAnimations"===se,ve&&(this.tabIndex=(0,T.su)(ve,0)),this._removeUniqueSelectionListener=Ft.listen((be,Le)=>{be!==this.id&&Le===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(At){const ft=(0,T.Ig)(At);this._checked!==ft&&(this._checked=ft,ft&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ft&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ft&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===At),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(At){this._labelPosition=At}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(At){this._setDisabled((0,T.Ig)(At))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(At){this._required=(0,T.Ig)(At)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(At){this._color=At}get inputId(){return`${this.id||this._uniqueId}-input`}focus(At,ft){ft?this._focusMonitor.focusVia(this._inputElement,ft,At):this._inputElement.nativeElement.focus(At)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(At=>{!At&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new J(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(At){At.stopPropagation()}_onInputInteraction(At){if(At.stopPropagation(),!this.checked&&!this.disabled){const ft=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ft&&this.radioGroup._emitChangeEvent())}}_setDisabled(At){this._disabled!==At&&(this._disabled=At,this._changeDetector.markForCheck())}_updateTabIndex(){const At=this.radioGroup;let ft;if(ft=At&&At.selected&&!this.disabled?At.selected===this?this.tabIndex:-1:this.tabIndex,ft!==this._previousTabIndex){const Et=this._inputElement?.nativeElement;Et&&(Et.setAttribute("tabindex",ft+""),this._previousTabIndex=ft)}}}return it.\u0275fac=function(At){d.$Z()},it.\u0275dir=d.lG2({type:it,viewQuery:function(At,ft){if(1&At&&d.Gf(x,5),2&At){let Et;d.iGM(Et=d.CRH())&&(ft._inputElement=Et.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[d.qOj]}),it})(),zt=(()=>{class it extends Pt{constructor(At,ft,Et,Bt,Ft,se,jt,ve){super(At,ft,Et,Bt,Ft,se,jt,ve)}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(K,8),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(b.tE),d.Y36(t.A8),d.Y36(d.QbO,8),d.Y36(D,8),d.$8M("tabindex"))},it.\u0275cmp=d.Xpm({type:it,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(At,ft){1&At&&d.NdJ("focus",function(){return ft._inputElement.nativeElement.focus()}),2&At&&(d.uIk("tabindex",null)("id",ft.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-radio-checked",ft.checked)("mat-radio-disabled",ft.disabled)("_mat-animation-noopable",ft._noopAnimations)("mat-primary","primary"===ft.color)("mat-accent","accent"===ft.color)("mat-warn","warn"===ft.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[d.qOj],ngContentSelectors:k,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(At,ft){if(1&At&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2),d._UZ(3,"span",3)(4,"span",4),d.TgZ(5,"input",5,6),d.NdJ("change",function(Bt){return ft._onInputInteraction(Bt)})("click",function(Bt){return ft._onInputClick(Bt)}),d.qZA(),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()(),d.TgZ(9,"span",9)(10,"span",10),d._uU(11,"\xa0"),d.qZA(),d.Hsn(12),d.qZA()()),2&At){const Et=d.MAs(1);d.uIk("for",ft.inputId),d.xp6(5),d.Q6J("id",ft.inputId)("checked",ft.checked)("disabled",ft.disabled)("required",ft.required),d.uIk("name",ft.name)("value",ft.value)("aria-label",ft.ariaLabel)("aria-labelledby",ft.ariaLabelledby)("aria-describedby",ft.ariaDescribedby),d.xp6(2),d.Q6J("matRippleTrigger",Et)("matRippleDisabled",ft._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(17,U,ft._noopAnimations?0:150)),d.xp6(2),d.ekj("mat-radio-label-before","before"==ft.labelPosition)}},dependencies:[p.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),it})(),Vt=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=d.oAB({type:it}),it.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),it})()},84385:(at,et,v)=>{"use strict";v.d(et,{LD:()=>si,gD:()=>vi});var d=v(98184),p=v(36895),b=v(94650),T=v(3238),t=v(59549),A=v(67376),x=v(12687),U=v(40445),k=v(21281),D=v(95017),P=v(29521),F=v(24006),z=v(8929),J=v(88514),K=v(36787),ot=v(1059),lt=v(87545),vt=v(72986),Dt=v(92198),Pt=v(24850),zt=v(75778),Vt=v(7625),it=v(37340);const Tt=["trigger"],At=["panel"];function ft(Ke,ne){if(1&Ke&&(b.TgZ(0,"span",8),b._uU(1),b.qZA()),2&Ke){const ct=b.oxw();b.xp6(1),b.Oqu(ct.placeholder)}}function Et(Ke,ne){if(1&Ke&&(b.TgZ(0,"span",12),b._uU(1),b.qZA()),2&Ke){const ct=b.oxw(2);b.xp6(1),b.Oqu(ct.triggerValue)}}function Bt(Ke,ne){1&Ke&&b.Hsn(0,0,["*ngSwitchCase","true"])}function Ft(Ke,ne){if(1&Ke&&(b.TgZ(0,"span",9),b.YNc(1,Et,2,1,"span",10),b.YNc(2,Bt,1,0,"ng-content",11),b.qZA()),2&Ke){const ct=b.oxw();b.Q6J("ngSwitch",!!ct.customTrigger),b.xp6(2),b.Q6J("ngSwitchCase",!0)}}function se(Ke,ne){if(1&Ke){const ct=b.EpF();b.TgZ(0,"div",13)(1,"div",14,15),b.NdJ("@transformPanel.done",function(kt){b.CHM(ct);const Jt=b.oxw();return b.KtG(Jt._panelDoneAnimatingStream.next(kt.toState))})("keydown",function(kt){b.CHM(ct);const Jt=b.oxw();return b.KtG(Jt._handleKeydown(kt))}),b.Hsn(3,1),b.qZA()()}if(2&Ke){const ct=b.oxw();b.Q6J("@transformPanelWrap",void 0),b.xp6(1),b.Gre("mat-select-panel ",ct._getPanelTheme(),""),b.Udp("transform-origin",ct._transformOrigin)("font-size",ct._triggerFontSize,"px"),b.Q6J("ngClass",ct.panelClass)("@transformPanel",ct.multiple?"showing-multiple":"showing"),b.uIk("id",ct.id+"-panel")("aria-multiselectable",ct.multiple)("aria-label",ct.ariaLabel||null)("aria-labelledby",ct._getPanelAriaLabelledby())}}const jt=[[["mat-select-trigger"]],"*"],ve=["mat-select-trigger","*"],be={transformPanelWrap:(0,it.X$)("transformPanelWrap",[(0,it.eR)("* => void",(0,it.IO)("@transformPanel",[(0,it.pV)()],{optional:!0}))]),transformPanel:(0,it.X$)("transformPanel",[(0,it.SB)("void",(0,it.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,it.SB)("showing",(0,it.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,it.SB)("showing-multiple",(0,it.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,it.eR)("void => *",(0,it.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,it.eR)("* => void",(0,it.jt)("100ms 25ms linear",(0,it.oB)({opacity:0})))])};let Xt=0;const De=new b.OlP("mat-select-scroll-strategy"),_n=new b.OlP("MAT_SELECT_CONFIG"),Ae={provide:De,deps:[d.aV],useFactory:function on(Ke){return()=>Ke.scrollStrategies.reposition()}};class gn{constructor(ne,ct){this.source=ne,this.value=ct}}const we=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(Ke,ne,ct,nt,kt){this._elementRef=Ke,this._defaultErrorStateMatcher=ne,this._parentForm=ct,this._parentFormGroup=nt,this.ngControl=kt,this.stateChanges=new z.xQ}})))),un=new b.OlP("MatSelectTrigger");let oi=(()=>{class Ke extends we{constructor(ct,nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi,Li,ho,fi,Bn){super(oe,Jt,Oe,Dn,mi),this._viewportRuler=ct,this._changeDetectorRef=nt,this._ngZone=kt,this._dir=Ce,this._parentFormField=Sn,this._liveAnnouncer=fi,this._defaultOptions=Bn,this._panelOpen=!1,this._compareWith=(Gn,Ye)=>Gn===Ye,this._uid="mat-select-"+Xt++,this._triggerAriaLabelledBy=null,this._destroy=new z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Xt++,this._panelDoneAnimatingStream=new z.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,J.P)(()=>{const Gn=this.options;return Gn?Gn.changes.pipe((0,ot.O)(Gn),(0,lt.w)(()=>(0,K.T)(...Gn.map(Ye=>Ye.onSelectionChange)))):this._ngZone.onStable.pipe((0,vt.q)(1),(0,lt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new b.vpe,this._openedStream=this.openedChange.pipe((0,Dt.h)(Gn=>Gn),(0,Pt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Dt.h)(Gn=>!Gn),(0,Pt.U)(()=>{})),this.selectionChange=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Bn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Bn.typeaheadDebounceInterval),this._scrollStrategyFactory=ho,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Li)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ct){this._placeholder=ct,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(F.kI.required)??!1}set required(ct){this._required=(0,k.Ig)(ct),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ct){this._multiple=(0,k.Ig)(ct)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ct){this._disableOptionCentering=(0,k.Ig)(ct)}get compareWith(){return this._compareWith}set compareWith(ct){this._compareWith=ct,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ct){this._assignValue(ct)&&this._onChange(ct)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ct){this._typeaheadDebounceInterval=(0,k.su)(ct)}get id(){return this._id}set id(ct){this._id=ct||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,zt.x)(),(0,Vt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Vt.R)(this._destroy)).subscribe(ct=>{ct.added.forEach(nt=>nt.select()),ct.removed.forEach(nt=>nt.deselect())}),this.options.changes.pipe((0,ot.O)(null),(0,Vt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ct=this._getTriggerAriaLabelledby(),nt=this.ngControl;if(ct!==this._triggerAriaLabelledBy){const kt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ct,ct?kt.setAttribute("aria-labelledby",ct):kt.removeAttribute("aria-labelledby")}nt&&(this._previousControl!==nt.control&&(void 0!==this._previousControl&&null!==nt.disabled&&nt.disabled!==this.disabled&&(this.disabled=nt.disabled),this._previousControl=nt.control),this.updateErrorState())}ngOnChanges(ct){(ct.disabled||ct.userAriaDescribedBy)&&this.stateChanges.next(),ct.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(ct){this._assignValue(ct)}registerOnChange(ct){this._onChange=ct}registerOnTouched(ct){this._onTouched=ct}setDisabledState(ct){this.disabled=ct,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const ct=this._selectionModel.selected.map(nt=>nt.viewValue);return this._isRtl()&&ct.reverse(),ct.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ct){this.disabled||(this.panelOpen?this._handleOpenKeydown(ct):this._handleClosedKeydown(ct))}_handleClosedKeydown(ct){const nt=ct.keyCode,kt=nt===P.JH||nt===P.LH||nt===P.oh||nt===P.SV,Jt=nt===P.K5||nt===P.L_,oe=this._keyManager;if(!oe.isTyping()&&Jt&&!(0,P.Vb)(ct)||(this.multiple||ct.altKey)&&kt)ct.preventDefault(),this.open();else if(!this.multiple){const Ce=this.selected;oe.onKeydown(ct);const Oe=this.selected;Oe&&Ce!==Oe&&this._liveAnnouncer.announce(Oe.viewValue,1e4)}}_handleOpenKeydown(ct){const nt=this._keyManager,kt=ct.keyCode,Jt=kt===P.JH||kt===P.LH,oe=nt.isTyping();if(Jt&&ct.altKey)ct.preventDefault(),this.close();else if(oe||kt!==P.K5&&kt!==P.L_||!nt.activeItem||(0,P.Vb)(ct))if(!oe&&this._multiple&&kt===P.A&&ct.ctrlKey){ct.preventDefault();const Ce=this.options.some(Oe=>!Oe.disabled&&!Oe.selected);this.options.forEach(Oe=>{Oe.disabled||(Ce?Oe.select():Oe.deselect())})}else{const Ce=nt.activeItemIndex;nt.onKeydown(ct),this._multiple&&Jt&&ct.shiftKey&&nt.activeItem&&nt.activeItemIndex!==Ce&&nt.activeItem._selectViaInteraction()}else ct.preventDefault(),nt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,vt.q)(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(ct){if(this._selectionModel.selected.forEach(nt=>nt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ct)Array.isArray(ct),ct.forEach(nt=>this._selectOptionByValue(nt)),this._sortValues();else{const nt=this._selectOptionByValue(ct);nt?this._keyManager.updateActiveItem(nt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ct){const nt=this.options.find(kt=>{if(this._selectionModel.isSelected(kt))return!1;try{return null!=kt.value&&this._compareWith(kt.value,ct)}catch{return!1}});return nt&&this._selectionModel.select(nt),nt}_assignValue(ct){return!!(ct!==this._value||this._multiple&&Array.isArray(ct))&&(this.options&&this._setSelectionByValue(ct),this._value=ct,!0)}_initKeyManager(){this._keyManager=new x.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const ct=(0,K.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Vt.R)(ct)).subscribe(nt=>{this._onSelect(nt.source,nt.isUserInput),nt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,K.T)(...this.options.map(nt=>nt._stateChanges)).pipe((0,Vt.R)(ct)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ct,nt){const kt=this._selectionModel.isSelected(ct);null!=ct.value||this._multiple?(kt!==ct.selected&&(ct.selected?this._selectionModel.select(ct):this._selectionModel.deselect(ct)),nt&&this._keyManager.setActiveItem(ct),this.multiple&&(this._sortValues(),nt&&this.focus())):(ct.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ct.value)),kt!==this._selectionModel.isSelected(ct)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ct=this.options.toArray();this._selectionModel.sort((nt,kt)=>this.sortComparator?this.sortComparator(nt,kt,ct):ct.indexOf(nt)-ct.indexOf(kt)),this.stateChanges.next()}}_propagateChanges(ct){let nt=null;nt=this.multiple?this.selected.map(kt=>kt.value):this.selected?this.selected.value:ct,this._value=nt,this.valueChange.emit(nt),this._onChange(nt),this.selectionChange.emit(this._getChangeEvent(nt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(ct){this._elementRef.nativeElement.focus(ct)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ct=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ct?ct+" ":"")+this.ariaLabelledby:ct}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ct=this._parentFormField?.getLabelId();let nt=(ct?ct+" ":"")+this._valueId;return this.ariaLabelledby&&(nt+=" "+this.ariaLabelledby),nt}_panelDoneAnimating(ct){this.openedChange.emit(ct)}setDescribedByIds(ct){ct.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ct.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ke.\u0275fac=function(ct){return new(ct||Ke)(b.Y36(A.rL),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(T.rD),b.Y36(b.SBq),b.Y36(U.Is,8),b.Y36(F.F,8),b.Y36(F.sg,8),b.Y36(t.G_,8),b.Y36(F.a5,10),b.$8M("tabindex"),b.Y36(De),b.Y36(x.Kd),b.Y36(_n,8))},Ke.\u0275dir=b.lG2({type:Ke,viewQuery:function(ct,nt){if(1&ct&&(b.Gf(Tt,5),b.Gf(At,5),b.Gf(d.pI,5)),2&ct){let kt;b.iGM(kt=b.CRH())&&(nt.trigger=kt.first),b.iGM(kt=b.CRH())&&(nt.panel=kt.first),b.iGM(kt=b.CRH())&&(nt._overlayDir=kt.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[b.qOj,b.TTD]}),Ke})(),vi=(()=>{class Ke extends oi{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(ct,nt,kt){const Jt=this._getItemHeight();return Math.min(Math.max(0,Jt*ct-nt+Jt/2),kt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ct){const nt=(0,T.CB)(ct,this.options,this.optionGroups),kt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ct&&1===nt?0:(0,T.jH)((ct+nt)*kt,kt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ct){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ct)}_getChangeEvent(ct){return new gn(this,ct)}_calculateOverlayOffsetX(){const ct=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),nt=this._viewportRuler.getViewportSize(),kt=this._isRtl(),Jt=this.multiple?56:32;let oe;if(this.multiple)oe=40;else if(this.disableOptionCentering)oe=16;else{let Dn=this._selectionModel.selected[0]||this.options.first;oe=Dn&&Dn.group?32:16}kt||(oe*=-1);const Ce=0-(ct.left+oe-(kt?Jt:0)),Oe=ct.right+oe-nt.width+(kt?0:Jt);Ce>0?oe+=Ce+8:Oe>0&&(oe-=Oe+8),this._overlayDir.offsetX=Math.round(oe),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ct,nt,kt){const Jt=this._getItemHeight(),oe=(Jt-this._triggerRect.height)/2,Ce=Math.floor(256/Jt);let Oe;return this.disableOptionCentering?0:(Oe=0===this._scrollTop?ct*Jt:this._scrollTop===kt?(ct-(this._getItemCount()-Ce))*Jt+(Jt-(this._getItemCount()*Jt-256)%Jt):nt-Jt/2,Math.round(-1*Oe-oe))}_checkOverlayWithinViewport(ct){const nt=this._getItemHeight(),kt=this._viewportRuler.getViewportSize(),Jt=this._triggerRect.top-8,oe=kt.height-this._triggerRect.bottom-8,Ce=Math.abs(this._offsetY),Dn=Math.min(this._getItemCount()*nt,256)-Ce-this._triggerRect.height;Dn>oe?this._adjustPanelUp(Dn,oe):Ce>Jt?this._adjustPanelDown(Ce,Jt,ct):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ct,nt){const kt=Math.round(ct-nt);this._scrollTop-=kt,this._offsetY-=kt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ct,nt,kt){const Jt=Math.round(ct-nt);if(this._scrollTop+=Jt,this._offsetY+=Jt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=kt)return this._scrollTop=kt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ct=this._getItemHeight(),nt=this._getItemCount(),kt=Math.min(nt*ct,256),oe=nt*ct-kt;let Ce;Ce=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Ce+=(0,T.CB)(Ce,this.options,this.optionGroups);const Oe=kt/2;this._scrollTop=this._calculateOverlayScroll(Ce,Oe,oe),this._offsetY=this._calculateOverlayOffsetY(Ce,Oe,oe),this._checkOverlayWithinViewport(oe)}_getOriginBasedOnOption(){const ct=this._getItemHeight(),nt=(ct-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-nt+ct/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ke.\u0275fac=function(){let ne;return function(nt){return(ne||(ne=b.n5z(Ke)))(nt||Ke)}}(),Ke.\u0275cmp=b.Xpm({type:Ke,selectors:[["mat-select"]],contentQueries:function(ct,nt,kt){if(1&ct&&(b.Suo(kt,un,5),b.Suo(kt,T.ey,5),b.Suo(kt,T.K7,5)),2&ct){let Jt;b.iGM(Jt=b.CRH())&&(nt.customTrigger=Jt.first),b.iGM(Jt=b.CRH())&&(nt.options=Jt),b.iGM(Jt=b.CRH())&&(nt.optionGroups=Jt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(ct,nt){1&ct&&b.NdJ("keydown",function(Jt){return nt._handleKeydown(Jt)})("focus",function(){return nt._onFocus()})("blur",function(){return nt._onBlur()}),2&ct&&(b.uIk("id",nt.id)("tabindex",nt.tabIndex)("aria-controls",nt.panelOpen?nt.id+"-panel":null)("aria-expanded",nt.panelOpen)("aria-label",nt.ariaLabel||null)("aria-required",nt.required.toString())("aria-disabled",nt.disabled.toString())("aria-invalid",nt.errorState)("aria-activedescendant",nt._getAriaActiveDescendant()),b.ekj("mat-select-disabled",nt.disabled)("mat-select-invalid",nt.errorState)("mat-select-required",nt.required)("mat-select-empty",nt.empty)("mat-select-multiple",nt.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[b._Bn([{provide:t.Eo,useExisting:Ke},{provide:T.HF,useExisting:Ke}]),b.qOj],ngContentSelectors:ve,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ct,nt){if(1&ct&&(b.F$t(jt),b.TgZ(0,"div",0,1),b.NdJ("click",function(){return nt.toggle()}),b.TgZ(3,"div",2),b.YNc(4,ft,2,1,"span",3),b.YNc(5,Ft,3,2,"span",4),b.qZA(),b.TgZ(6,"div",5),b._UZ(7,"div",6),b.qZA()(),b.YNc(8,se,4,14,"ng-template",7),b.NdJ("backdropClick",function(){return nt.close()})("attach",function(){return nt._onAttached()})("detach",function(){return nt.close()})),2&ct){const kt=b.MAs(1);b.uIk("aria-owns",nt.panelOpen?nt.id+"-panel":null),b.xp6(3),b.Q6J("ngSwitch",nt.empty),b.uIk("id",nt._valueId),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1),b.xp6(3),b.Q6J("cdkConnectedOverlayPanelClass",nt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",nt._scrollStrategy)("cdkConnectedOverlayOrigin",kt)("cdkConnectedOverlayOpen",nt.panelOpen)("cdkConnectedOverlayPositions",nt._positions)("cdkConnectedOverlayMinWidth",null==nt._triggerRect?null:nt._triggerRect.width)("cdkConnectedOverlayOffsetY",nt._offsetY)}},dependencies:[p.mk,p.RF,p.n9,p.ED,d.pI,d.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{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;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[be.transformPanelWrap,be.transformPanel]},changeDetection:0}),Ke})(),si=(()=>{class Ke{}return Ke.\u0275fac=function(ct){return new(ct||Ke)},Ke.\u0275mod=b.oAB({type:Ke}),Ke.\u0275inj=b.cJS({providers:[Ae],imports:[p.ez,d.U8,T.Ng,T.BQ,A.ZD,t.lN,T.Ng,T.BQ]}),Ke})()},23267:(at,et,v)=>{"use strict";v.d(et,{JX:()=>Wt,Rh:()=>de,SJ:()=>De,TM:()=>re});var d=v(67376),p=v(36895),b=v(94650),T=v(3238),t=v(12687),A=v(40445),x=v(21281),U=v(29521),k=v(83353),D=v(8929),P=v(23753),F=v(36787),z=v(92198),J=v(24850),K=v(77604),ot=v(7625),lt=v(75778),vt=v(72986),Dt=v(1059),Pt=v(80013),zt=v(37340);const Vt=["*"],it=["content"];function Tt(on,_n){if(1&on){const Ae=b.EpF();b.TgZ(0,"div",2),b.NdJ("click",function(){b.CHM(Ae);const we=b.oxw();return b.KtG(we._onBackdropClicked())}),b.qZA()}if(2&on){const Ae=b.oxw();b.ekj("mat-drawer-shown",Ae._isShowingBackdrop())}}function At(on,_n){1&on&&(b.TgZ(0,"mat-drawer-content"),b.Hsn(1,2),b.qZA())}const ft=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Et=["mat-drawer","mat-drawer-content","*"];function Bt(on,_n){if(1&on){const Ae=b.EpF();b.TgZ(0,"div",2),b.NdJ("click",function(){b.CHM(Ae);const we=b.oxw();return b.KtG(we._onBackdropClicked())}),b.qZA()}if(2&on){const Ae=b.oxw();b.ekj("mat-drawer-shown",Ae._isShowingBackdrop())}}function Ft(on,_n){1&on&&(b.TgZ(0,"mat-sidenav-content"),b.Hsn(1,2),b.qZA())}const se=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],jt=["mat-sidenav","mat-sidenav-content","*"],be={transformDrawer:(0,zt.X$)("transform",[(0,zt.SB)("open, open-instant",(0,zt.oB)({transform:"none",visibility:"visible"})),(0,zt.SB)("void",(0,zt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,zt.eR)("void => open-instant",(0,zt.jt)("0ms")),(0,zt.eR)("void <=> open, open-instant => void",(0,zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qe=new b.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Xt(){return!1}}),$e=new b.OlP("MAT_DRAWER_CONTAINER");let Te=(()=>{class on extends d.PQ{constructor(Ae,gn,we,un,Un){super(we,un,Un),this._changeDetectorRef=Ae,this._container=gn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(b.sBO),b.Y36((0,b.Gpc)(()=>Kt)),b.Y36(b.SBq),b.Y36(d.mF),b.Y36(b.R0b))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Ae,gn){2&Ae&&b.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[b._Bn([{provide:d.PQ,useExisting:on}]),b.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(Ae,gn){1&Ae&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),ae=(()=>{class on{constructor(Ae,gn,we,un,Un,oi,vi,si){this._elementRef=Ae,this._focusTrapFactory=gn,this._focusMonitor=we,this._platform=un,this._ngZone=Un,this._interactivityChecker=oi,this._doc=vi,this._container=si,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new D.xQ,this._animationEnd=new D.xQ,this._animationState="void",this.openedChange=new b.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(Ke=>Ke),(0,J.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&0===Ke.toState.indexOf("open")),(0,K.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(Ke=>!Ke),(0,J.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&"void"===Ke.toState),(0,K.h)(void 0)),this._destroyed=new D.xQ,this.onPositionChanged=new b.vpe,this._modeChanged=new D.xQ,this.openedChange.subscribe(Ke=>{Ke?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(Ke=>Ke.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ke)),(0,ot.R)(this._destroyed)).subscribe(Ke=>this._ngZone.run(()=>{this.close(),Ke.stopPropagation(),Ke.preventDefault()}))}),this._animationEnd.pipe((0,lt.x)((Ke,ne)=>Ke.fromState===ne.fromState&&Ke.toState===ne.toState)).subscribe(Ke=>{const{fromState:ne,toState:ct}=Ke;(0===ct.indexOf("open")&&"void"===ne||"void"===ct&&0===ne.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Ae){(Ae="end"===Ae?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Ae),this._position=Ae,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Ae){this._mode=Ae,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Ae){this._disableClose=(0,x.Ig)(Ae)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Ae){("true"===Ae||"false"===Ae||null==Ae)&&(Ae=(0,x.Ig)(Ae)),this._autoFocus=Ae}get opened(){return this._opened}set opened(Ae){this.toggle((0,x.Ig)(Ae))}_forceFocus(Ae,gn){this._interactivityChecker.isFocusable(Ae)||(Ae.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const we=()=>{Ae.removeEventListener("blur",we),Ae.removeEventListener("mousedown",we),Ae.removeAttribute("tabindex")};Ae.addEventListener("blur",we),Ae.addEventListener("mousedown",we)})),Ae.focus(gn)}_focusByCssSelector(Ae,gn){let we=this._elementRef.nativeElement.querySelector(Ae);we&&this._forceFocus(we,gn)}_takeFocus(){if(!this._focusTrap)return;const Ae=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(gn=>{!gn&&"function"==typeof this._elementRef.nativeElement.focus&&Ae.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Ae){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Ae):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Ae=this._doc.activeElement;return!!Ae&&this._elementRef.nativeElement.contains(Ae)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Ae){return this.toggle(!0,Ae)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Ae=!this.opened,gn){Ae&&gn&&(this._openedVia=gn);const we=this._setOpen(Ae,!Ae&&this._isFocusWithinDrawer(),this._openedVia||"program");return Ae||(this._openedVia=null),we}_setOpen(Ae,gn,we){return this._opened=Ae,Ae?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",gn&&this._restoreFocus(we)),this._updateFocusTrapState(),new Promise(un=>{this.openedChange.pipe((0,vt.q)(1)).subscribe(Un=>un(Un?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Ae){const gn=this._elementRef.nativeElement,we=gn.parentNode;"end"===Ae?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),we.insertBefore(this._anchor,gn)),we.appendChild(gn)):this._anchor&&this._anchor.parentNode.insertBefore(gn,this._anchor)}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(b.SBq),b.Y36(t.qV),b.Y36(t.tE),b.Y36(k.t4),b.Y36(b.R0b),b.Y36(t.ic),b.Y36(p.K0,8),b.Y36($e,8))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-drawer"]],viewQuery:function(Ae,gn){if(1&Ae&&b.Gf(it,5),2&Ae){let we;b.iGM(we=b.CRH())&&(gn._content=we.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ae,gn){1&Ae&&b.WFA("@transform.start",function(un){return gn._animationStarted.next(un)})("@transform.done",function(un){return gn._animationEnd.next(un)}),2&Ae&&(b.uIk("align",null),b.d8E("@transform",gn._animationState),b.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ae,gn){1&Ae&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[be.transformDrawer]},changeDetection:0}),on})(),Kt=(()=>{class on{constructor(Ae,gn,we,un,Un,oi=!1,vi){this._dir=Ae,this._element=gn,this._ngZone=we,this._changeDetectorRef=un,this._animationMode=vi,this._drawers=new b.n_E,this.backdropClick=new b.vpe,this._destroyed=new D.xQ,this._doCheckSubject=new D.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new D.xQ,Ae&&Ae.change.pipe((0,ot.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Un.change().pipe((0,ot.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=oi}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Ae){this._autosize=(0,x.Ig)(Ae)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Ae){this._backdropOverride=null==Ae?null:(0,x.Ig)(Ae)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Dt.O)(this._allDrawers),(0,ot.R)(this._destroyed)).subscribe(Ae=>{this._drawers.reset(Ae.filter(gn=>!gn._container||gn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Dt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Ae=>{this._watchDrawerToggle(Ae),this._watchDrawerPosition(Ae),this._watchDrawerMode(Ae)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Pt.b)(10),(0,ot.R)(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(Ae=>Ae.open())}close(){this._drawers.forEach(Ae=>Ae.close())}updateContentMargins(){let Ae=0,gn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Ae+=this._left._getWidth();else if("push"==this._left.mode){const we=this._left._getWidth();Ae+=we,gn-=we}if(this._right&&this._right.opened)if("side"==this._right.mode)gn+=this._right._getWidth();else if("push"==this._right.mode){const we=this._right._getWidth();gn+=we,Ae-=we}Ae=Ae||null,gn=gn||null,(Ae!==this._contentMargins.left||gn!==this._contentMargins.right)&&(this._contentMargins={left:Ae,right:gn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Ae){Ae._animationStarted.pipe((0,z.h)(gn=>gn.fromState!==gn.toState),(0,ot.R)(this._drawers.changes)).subscribe(gn=>{"open-instant"!==gn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Ae.mode&&Ae.openedChange.pipe((0,ot.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Ae.opened))}_watchDrawerPosition(Ae){!Ae||Ae.onPositionChanged.pipe((0,ot.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,vt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Ae){Ae&&Ae._modeChanged.pipe((0,ot.R)((0,F.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Ae){const gn=this._element.nativeElement.classList,we="mat-drawer-container-has-open";Ae?gn.add(we):gn.remove(we)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Ae=>{"end"==Ae.position?this._end=Ae:this._start=Ae}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Ae=>Ae&&!Ae.disableClose&&this._canHaveBackdrop(Ae)).forEach(Ae=>Ae._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Ae){return"side"!==Ae.mode||!!this._backdropOverride}_isDrawerOpen(Ae){return null!=Ae&&Ae.opened}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(A.Is,8),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(d.rL),b.Y36(qe),b.Y36(b.QbO,8))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-drawer-container"]],contentQueries:function(Ae,gn,we){if(1&Ae&&(b.Suo(we,Te,5),b.Suo(we,ae,5)),2&Ae){let un;b.iGM(un=b.CRH())&&(gn._content=un.first),b.iGM(un=b.CRH())&&(gn._allDrawers=un)}},viewQuery:function(Ae,gn){if(1&Ae&&b.Gf(Te,5),2&Ae){let we;b.iGM(we=b.CRH())&&(gn._userContent=we.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ae,gn){2&Ae&&b.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[b._Bn([{provide:$e,useExisting:on}])],ngContentSelectors:Et,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ae,gn){1&Ae&&(b.F$t(ft),b.YNc(0,Tt,1,2,"div",0),b.Hsn(1),b.Hsn(2,1),b.YNc(3,At,2,0,"mat-drawer-content",1)),2&Ae&&(b.Q6J("ngIf",gn.hasBackdrop),b.xp6(3),b.Q6J("ngIf",!gn._content))},dependencies:[p.O5,Te],styles:['.mat-drawer-container{position:relative;z-index:1;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}.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;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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),de=(()=>{class on extends Te{constructor(Ae,gn,we,un,Un){super(Ae,gn,we,un,Un)}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(b.sBO),b.Y36((0,b.Gpc)(()=>re)),b.Y36(b.SBq),b.Y36(d.mF),b.Y36(b.R0b))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Ae,gn){2&Ae&&b.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[b._Bn([{provide:d.PQ,useExisting:on}]),b.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(Ae,gn){1&Ae&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),Wt=(()=>{class on extends ae{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Ae){this._fixedInViewport=(0,x.Ig)(Ae)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Ae){this._fixedTopGap=(0,x.su)(Ae)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Ae){this._fixedBottomGap=(0,x.su)(Ae)}}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=b.n5z(on)))(gn||on)}}(),on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Ae,gn){2&Ae&&(b.uIk("align",null),b.Udp("top",gn.fixedInViewport?gn.fixedTopGap:null,"px")("bottom",gn.fixedInViewport?gn.fixedBottomGap:null,"px"),b.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.opened)("mat-sidenav-fixed",gn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[b.qOj],ngContentSelectors:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ae,gn){1&Ae&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[be.transformDrawer]},changeDetection:0}),on})(),re=(()=>{class on extends Kt{}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=b.n5z(on)))(gn||on)}}(),on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-sidenav-container"]],contentQueries:function(Ae,gn,we){if(1&Ae&&(b.Suo(we,de,5),b.Suo(we,Wt,5)),2&Ae){let un;b.iGM(un=b.CRH())&&(gn._content=un.first),b.iGM(un=b.CRH())&&(gn._allDrawers=un)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Ae,gn){2&Ae&&b.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},exportAs:["matSidenavContainer"],features:[b._Bn([{provide:$e,useExisting:on}]),b.qOj],ngContentSelectors:jt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ae,gn){1&Ae&&(b.F$t(se),b.YNc(0,Bt,1,2,"div",0),b.Hsn(1),b.Hsn(2,1),b.YNc(3,Ft,2,0,"mat-sidenav-content",1)),2&Ae&&(b.Q6J("ngIf",gn.hasBackdrop),b.xp6(3),b.Q6J("ngIf",!gn._content))},dependencies:[p.O5,de],styles:['.mat-drawer-container{position:relative;z-index:1;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}.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;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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),De=(()=>{class on{}return on.\u0275fac=function(Ae){return new(Ae||on)},on.\u0275mod=b.oAB({type:on}),on.\u0275inj=b.cJS({imports:[p.ez,T.BQ,d.ZD,d.ZD,T.BQ]}),on})()},90455:(at,et,v)=>{"use strict";v.d(et,{Rr:()=>ot,rP:()=>Pt});var d=v(49643),p=v(94650),b=v(3238),T=v(12687),t=v(21281),A=v(24006);const x=["input"],U=function(zt){return{enterDuration:zt}},k=["*"],D=new p.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const F={provide:A.JU,useExisting:(0,p.Gpc)(()=>ot),multi:!0};class z{constructor(Vt,it){this.source=Vt,this.checked=it}}const J=(0,b.sb)((0,b.pj)((0,b.Kr)((0,b.Id)(class{constructor(zt){this._elementRef=zt}}))));let K=(()=>{class zt extends J{constructor(it,Tt,At,ft,Et,Bt,Ft){super(it),this._focusMonitor=Tt,this._changeDetectorRef=At,this.defaults=Et,this._onChange=se=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new p.vpe,this.toggleChange=new p.vpe,this.tabIndex=parseInt(ft)||0,this.color=this.defaultColor=Et.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${Ft}${++P}`}get required(){return this._required}set required(it){this._required=(0,t.Ig)(it)}get checked(){return this._checked}set checked(it){this._checked=(0,t.Ig)(it),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(it=>{"keyboard"===it||"program"===it?this._focused=!0:it||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(it){this.checked=!!it}registerOnChange(it){this._onChange=it}registerOnTouched(it){this._onTouched=it}setDisabledState(it){this.disabled=it,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return zt.\u0275fac=function(it){p.$Z()},zt.\u0275dir=p.lG2({type:zt,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[p.qOj]}),zt})(),ot=(()=>{class zt extends K{constructor(it,Tt,At,ft,Et,Bt){super(it,Tt,At,ft,Et,Bt,"mat-slide-toggle-")}_createChangeEvent(it){return new z(this,it)}_onChangeEvent(it){it.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(it){it.stopPropagation()}focus(it,Tt){Tt?this._focusMonitor.focusVia(this._inputElement,Tt,it):this._inputElement.nativeElement.focus(it)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return zt.\u0275fac=function(it){return new(it||zt)(p.Y36(p.SBq),p.Y36(T.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(D),p.Y36(p.QbO,8))},zt.\u0275cmp=p.Xpm({type:zt,selectors:[["mat-slide-toggle"]],viewQuery:function(it,Tt){if(1&it&&p.Gf(x,5),2&it){let At;p.iGM(At=p.CRH())&&(Tt._inputElement=At.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(it,Tt){2&it&&(p.Ikx("id",Tt.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",Tt.checked)("mat-disabled",Tt.disabled)("mat-slide-toggle-label-before","before"==Tt.labelPosition)("_mat-animation-noopable",Tt._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[p._Bn([F]),p.qOj],ngContentSelectors:k,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(it,Tt){if(1&it&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(ft){return Tt._onChangeEvent(ft)})("click",function(ft){return Tt._onInputClick(ft)}),p.qZA(),p.TgZ(5,"span",5),p._UZ(6,"span",6),p.TgZ(7,"span",7),p._UZ(8,"span",8),p.qZA()()(),p.TgZ(9,"span",9,10),p.NdJ("cdkObserveContent",function(){return Tt._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&it){const At=p.MAs(1),ft=p.MAs(10);p.uIk("for",Tt.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!ft.textContent||!ft.textContent.trim()),p.xp6(1),p.Q6J("id",Tt.inputId)("required",Tt.required)("tabIndex",Tt.tabIndex)("checked",Tt.checked)("disabled",Tt.disabled),p.uIk("name",Tt.name)("aria-checked",Tt.checked)("aria-label",Tt.ariaLabel)("aria-labelledby",Tt.ariaLabelledby)("aria-describedby",Tt.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",At)("matRippleDisabled",Tt.disableRipple||Tt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,U,Tt._noopAnimations?0:150))}},dependencies:[b.wG,d.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),zt})(),Dt=(()=>{class zt{}return zt.\u0275fac=function(it){return new(it||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({}),zt})(),Pt=(()=>{class zt{}return zt.\u0275fac=function(it){return new(it||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({imports:[Dt,b.si,b.BQ,d.Q8,Dt,b.BQ]}),zt})()},17009:(at,et,v)=>{"use strict";v.d(et,{ZX:()=>Tt,ux:()=>Bt});var d=v(98184),p=v(84080),b=v(36895),T=v(94650),t=v(3238),A=v(4859),x=v(8929),U=v(83353),k=v(72986),D=v(7625),P=v(37340),F=v(12687),z=v(62289);function J(Ft,se){if(1&Ft){const jt=T.EpF();T.TgZ(0,"div",2)(1,"button",3),T.NdJ("click",function(){T.CHM(jt);const be=T.oxw();return T.KtG(be.action())}),T._uU(2),T.qZA()()}if(2&Ft){const jt=T.oxw();T.xp6(2),T.Oqu(jt.data.action)}}function K(Ft,se){}const ot=new T.OlP("MatSnackBarData");class lt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const vt=Math.pow(2,31)-1;class Dt{constructor(se,jt){this._overlayRef=jt,this._afterDismissed=new x.xQ,this._afterOpened=new x.xQ,this._onAction=new x.xQ,this._dismissedByAction=!1,this.containerInstance=se,se._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(se){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(se,vt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let Pt=(()=>{class Ft{constructor(jt,ve){this.snackBarRef=jt,this.data=ve}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return Ft.\u0275fac=function(jt){return new(jt||Ft)(T.Y36(Dt),T.Y36(ot))},Ft.\u0275cmp=T.Xpm({type:Ft,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(jt,ve){1&jt&&(T.TgZ(0,"span",0),T._uU(1),T.qZA(),T.YNc(2,J,3,1,"div",1)),2&jt&&(T.xp6(1),T.Oqu(ve.data.message),T.xp6(1),T.Q6J("ngIf",ve.hasAction))},dependencies:[b.O5,A.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),Ft})();const zt={snackBarState:(0,P.X$)("state",[(0,P.SB)("void, hidden",(0,P.oB)({transform:"scale(0.8)",opacity:0})),(0,P.SB)("visible",(0,P.oB)({transform:"scale(1)",opacity:1})),(0,P.eR)("* => visible",(0,P.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,P.eR)("* => void, * => hidden",(0,P.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,P.oB)({opacity:0})))])};let Vt=(()=>{class Ft extends p.en{constructor(jt,ve,be,Le,qe){super(),this._ngZone=jt,this._elementRef=ve,this._changeDetectorRef=be,this._platform=Le,this.snackBarConfig=qe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x.xQ,this._onExit=new x.xQ,this._onEnter=new x.xQ,this._animationState="void",this.attachDomPortal=$e=>{this._assertNotAttached();const Xt=this._portalOutlet.attachDomPortal($e);return this._afterPortalAttached(),Xt},this._live="assertive"!==qe.politeness||qe.announcementMessage?"off"===qe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(jt){this._assertNotAttached();const ve=this._portalOutlet.attachComponentPortal(jt);return this._afterPortalAttached(),ve}attachTemplatePortal(jt){this._assertNotAttached();const ve=this._portalOutlet.attachTemplatePortal(jt);return this._afterPortalAttached(),ve}onAnimationEnd(jt){const{fromState:ve,toState:be}=jt;if(("void"===be&&"void"!==ve||"hidden"===be)&&this._completeExit(),"visible"===be){const Le=this._onEnter;this._ngZone.run(()=>{Le.next(),Le.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const jt=this._elementRef.nativeElement,ve=this.snackBarConfig.panelClass;ve&&(Array.isArray(ve)?ve.forEach(be=>jt.classList.add(be)):jt.classList.add(ve))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const jt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ve=this._elementRef.nativeElement.querySelector("[aria-live]");if(jt&&ve){let be=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&jt.contains(document.activeElement)&&(be=document.activeElement),jt.removeAttribute("aria-hidden"),ve.appendChild(jt),be?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return Ft.\u0275fac=function(jt){return new(jt||Ft)(T.Y36(T.R0b),T.Y36(T.SBq),T.Y36(T.sBO),T.Y36(U.t4),T.Y36(lt))},Ft.\u0275dir=T.lG2({type:Ft,viewQuery:function(jt,ve){if(1&jt&&T.Gf(p.Pl,7),2&jt){let be;T.iGM(be=T.CRH())&&(ve._portalOutlet=be.first)}},features:[T.qOj]}),Ft})(),it=(()=>{class Ft extends Vt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return Ft.\u0275fac=function(){let se;return function(ve){return(se||(se=T.n5z(Ft)))(ve||Ft)}}(),Ft.\u0275cmp=T.Xpm({type:Ft,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(jt,ve){1&jt&&T.WFA("@state.done",function(Le){return ve.onAnimationEnd(Le)}),2&jt&&T.d8E("@state",ve._animationState)},features:[T.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(jt,ve){1&jt&&(T.TgZ(0,"div",0),T.YNc(1,K,0,0,"ng-template",1),T.qZA(),T._UZ(2,"div")),2&jt&&(T.xp6(2),T.uIk("aria-live",ve._live)("role",ve._role))},dependencies:[p.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[zt.snackBarState]}}),Ft})(),Tt=(()=>{class Ft{}return Ft.\u0275fac=function(jt){return new(jt||Ft)},Ft.\u0275mod=T.oAB({type:Ft}),Ft.\u0275inj=T.cJS({imports:[d.U8,p.eL,b.ez,A.ot,t.BQ,t.BQ]}),Ft})();const At=new T.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ft(){return new lt}});let Et=(()=>{class Ft{constructor(jt,ve,be,Le,qe,$e){this._overlay=jt,this._live=ve,this._injector=be,this._breakpointObserver=Le,this._parentSnackBar=qe,this._defaultConfig=$e,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const jt=this._parentSnackBar;return jt?jt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(jt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=jt:this._snackBarRefAtThisLevel=jt}openFromComponent(jt,ve){return this._attach(jt,ve)}openFromTemplate(jt,ve){return this._attach(jt,ve)}open(jt,ve="",be){const Le={...this._defaultConfig,...be};return Le.data={message:jt,action:ve},Le.announcementMessage===jt&&(Le.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Le)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(jt,ve){const Le=T.zs3.create({parent:ve&&ve.viewContainerRef&&ve.viewContainerRef.injector||this._injector,providers:[{provide:lt,useValue:ve}]}),qe=new p.C5(this.snackBarContainerComponent,ve.viewContainerRef,Le),$e=jt.attach(qe);return $e.instance.snackBarConfig=ve,$e.instance}_attach(jt,ve){const be={...new lt,...this._defaultConfig,...ve},Le=this._createOverlay(be),qe=this._attachSnackBarContainer(Le,be),$e=new Dt(qe,Le);if(jt instanceof T.Rgc){const Xt=new p.UE(jt,null,{$implicit:be.data,snackBarRef:$e});$e.instance=qe.attachTemplatePortal(Xt)}else{const Xt=this._createInjector(be,$e),Te=new p.C5(jt,void 0,Xt),ae=qe.attachComponentPortal(Te);$e.instance=ae.instance}return this._breakpointObserver.observe(z.u3.HandsetPortrait).pipe((0,D.R)(Le.detachments())).subscribe(Xt=>{Le.overlayElement.classList.toggle(this.handsetCssClass,Xt.matches)}),be.announcementMessage&&qe._onAnnounce.subscribe(()=>{this._live.announce(be.announcementMessage,be.politeness)}),this._animateSnackBar($e,be),this._openedSnackBarRef=$e,this._openedSnackBarRef}_animateSnackBar(jt,ve){jt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==jt&&(this._openedSnackBarRef=null),ve.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{jt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):jt.containerInstance.enter(),ve.duration&&ve.duration>0&&jt.afterOpened().subscribe(()=>jt._dismissAfter(ve.duration))}_createOverlay(jt){const ve=new d.X_;ve.direction=jt.direction;let be=this._overlay.position().global();const Le="rtl"===jt.direction,qe="left"===jt.horizontalPosition||"start"===jt.horizontalPosition&&!Le||"end"===jt.horizontalPosition&&Le,$e=!qe&&"center"!==jt.horizontalPosition;return qe?be.left("0"):$e?be.right("0"):be.centerHorizontally(),"top"===jt.verticalPosition?be.top("0"):be.bottom("0"),ve.positionStrategy=be,this._overlay.create(ve)}_createInjector(jt,ve){return T.zs3.create({parent:jt&&jt.viewContainerRef&&jt.viewContainerRef.injector||this._injector,providers:[{provide:Dt,useValue:ve},{provide:ot,useValue:jt.data}]})}}return Ft.\u0275fac=function(jt){return new(jt||Ft)(T.LFG(d.aV),T.LFG(F.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(Ft,12),T.LFG(At))},Ft.\u0275prov=T.Yz7({token:Ft,factory:Ft.\u0275fac}),Ft})(),Bt=(()=>{class Ft extends Et{constructor(jt,ve,be,Le,qe,$e){super(jt,ve,be,Le,qe,$e),this.simpleSnackBarComponent=Pt,this.snackBarContainerComponent=it,this.handsetCssClass="mat-snack-bar-handset"}}return Ft.\u0275fac=function(jt){return new(jt||Ft)(T.LFG(d.aV),T.LFG(F.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(Ft,12),T.LFG(At))},Ft.\u0275prov=T.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:Tt}),Ft})()},96308:(at,et,v)=>{"use strict";v.d(et,{JX:()=>Bt,YE:()=>Dt,nU:()=>Et});var d=v(94650),p=v(12687),b=v(21281),T=v(29521),t=v(3238),A=v(8929),x=v(36787),U=v(37340),k=v(36895);const D=["mat-sort-header",""];function P(Ft,se){if(1&Ft){const jt=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(jt);const be=d.oxw();return d.KtG(be._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(jt);const be=d.oxw();return d.KtG(be._disableViewStateAnimation=!1)}),d._UZ(1,"div",4),d.TgZ(2,"div",5),d._UZ(3,"div",6)(4,"div",7)(5,"div",8),d.qZA()()}if(2&Ft){const jt=d.oxw();d.Q6J("@arrowOpacity",jt._getArrowViewState())("@arrowPosition",jt._getArrowViewState())("@allowChildren",jt._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",jt._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",jt._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",jt._getArrowDirectionState())}}const F=["*"],lt=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),vt=(0,t.dB)((0,t.Id)(class{}));let Dt=(()=>{class Ft extends vt{constructor(jt){super(),this._defaultOptions=jt,this.sortables=new Map,this._stateChanges=new A.xQ,this.start="asc",this._direction="",this.sortChange=new d.vpe}get direction(){return this._direction}set direction(jt){this._direction=jt}get disableClear(){return this._disableClear}set disableClear(jt){this._disableClear=(0,b.Ig)(jt)}register(jt){this.sortables.set(jt.id,jt)}deregister(jt){this.sortables.delete(jt.id)}sort(jt){this.active!=jt.id?(this.active=jt.id,this.direction=jt.start?jt.start:this.start):this.direction=this.getNextSortDirection(jt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(jt){if(!jt)return"";let be=function Pt(Ft,se){let jt=["asc","desc"];return"desc"==Ft&&jt.reverse(),se||jt.push(""),jt}(jt.start||this.start,jt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Le=be.indexOf(this.direction)+1;return Le>=be.length&&(Le=0),be[Le]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ft.\u0275fac=function(jt){return new(jt||Ft)(d.Y36(lt,8))},Ft.\u0275dir=d.lG2({type:Ft,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[d.qOj,d.TTD]}),Ft})();const zt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Vt={indicator:(0,U.X$)("indicator",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"translateY(0px)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"translateY(10px)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),leftPointer:(0,U.X$)("leftPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),rightPointer:(0,U.X$)("rightPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),arrowOpacity:(0,U.X$)("arrowOpacity",[(0,U.SB)("desc-to-active, asc-to-active, active",(0,U.oB)({opacity:1})),(0,U.SB)("desc-to-hint, asc-to-hint, hint",(0,U.oB)({opacity:.54})),(0,U.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,U.oB)({opacity:0})),(0,U.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,U.jt)("0ms")),(0,U.eR)("* <=> *",(0,U.jt)(zt))]),arrowPosition:(0,U.X$)("arrowPosition",[(0,U.eR)("* => desc-to-hint, * => desc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(-25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-desc, * => active-to-desc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(25%)"})]))),(0,U.eR)("* => asc-to-hint, * => asc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-asc, * => active-to-asc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(-25%)"})]))),(0,U.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,U.oB)({transform:"translateY(0)"})),(0,U.SB)("hint-to-desc, active-to-desc, desc",(0,U.oB)({transform:"translateY(-25%)"})),(0,U.SB)("hint-to-asc, active-to-asc, asc",(0,U.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,U.X$)("allowChildren",[(0,U.eR)("* <=> *",[(0,U.IO)("@*",(0,U.pV)(),{optional:!0})])])};let it=(()=>{class Ft{constructor(){this.changes=new A.xQ}}return Ft.\u0275fac=function(jt){return new(jt||Ft)},Ft.\u0275prov=d.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})();const At={provide:it,deps:[[new d.FiY,new d.tp0,it]],useFactory:function Tt(Ft){return Ft||new it}},ft=(0,t.Id)(class{});let Et=(()=>{class Ft extends ft{constructor(jt,ve,be,Le,qe,$e,Xt,Te){super(),this._intl=jt,this._changeDetectorRef=ve,this._sort=be,this._columnDef=Le,this._focusMonitor=qe,this._elementRef=$e,this._ariaDescriber=Xt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(jt){this._updateSortActionDescription(jt)}get disableClear(){return this._disableClear}set disableClear(jt){this._disableClear=(0,b.Ig)(jt)}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(jt=>{const ve=!!jt;ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ve),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(jt){this._isDisabled()&&jt||(this._showIndicatorHint=jt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(jt){this._viewState=jt||{},this._disableViewStateAnimation&&(this._viewState={toState:jt.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(jt){!this._isDisabled()&&(jt.keyCode===T.L_||jt.keyCode===T.K5)&&(jt.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const jt=this._viewState.fromState;return(jt?`${jt}-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()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(jt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,jt)),this._sortActionDescription=jt}_handleStateChanges(){this._rerenderSubscription=(0,x.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Ft.\u0275fac=function(jt){return new(jt||Ft)(d.Y36(it),d.Y36(d.sBO),d.Y36(Dt,8),d.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),d.Y36(p.tE),d.Y36(d.SBq),d.Y36(p.$s,8),d.Y36(lt,8))},Ft.\u0275cmp=d.Xpm({type:Ft,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(jt,ve){1&jt&&d.NdJ("click",function(){return ve._handleClick()})("keydown",function(Le){return ve._handleKeydown(Le)})("mouseenter",function(){return ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return ve._setIndicatorHintVisible(!1)}),2&jt&&(d.uIk("aria-sort",ve._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",ve._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[d.qOj],attrs:D,ngContentSelectors:F,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[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(jt,ve){1&jt&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.Hsn(2),d.qZA(),d.YNc(3,P,6,6,"div",2),d.qZA()),2&jt&&(d.ekj("mat-sort-header-sorted",ve._isSorted())("mat-sort-header-position-before","before"===ve.arrowPosition),d.uIk("tabindex",ve._isDisabled()?null:0)("role",ve._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",ve._renderArrow()))},dependencies:[k.O5],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;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:[Vt.indicator,Vt.leftPointer,Vt.rightPointer,Vt.arrowOpacity,Vt.arrowPosition,Vt.allowChildren]},changeDetection:0}),Ft})(),Bt=(()=>{class Ft{}return Ft.\u0275fac=function(jt){return new(jt||Ft)},Ft.\u0275mod=d.oAB({type:Ft}),Ft.\u0275inj=d.cJS({providers:[At],imports:[k.ez,t.BQ]}),Ft})()},58425:(at,et,v)=>{"use strict";v.d(et,{C0:()=>oi,Ic:()=>si,T5:()=>ne,VY:()=>de,Vq:()=>vi,fd:()=>Ke,z9:()=>un});var d=v(84080),p=v(12138),b=v(36895),T=v(94650),t=v(4859),A=v(3238),x=v(97392),U=v(12687),k=v(8929),D=v(42654),P=v(40445),F=v(87545),z=v(24850),J=v(1059),K=v(7625),ot=v(75778),lt=v(37340);function vt(ct,nt){if(1&ct&&T.GkF(0,8),2&ct){const kt=T.oxw();T.Q6J("ngTemplateOutlet",kt.iconOverrides[kt.state])("ngTemplateOutletContext",kt._getIconContext())}}function Dt(ct,nt){if(1&ct&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function Pt(ct,nt){if(1&ct&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.completedLabel)}}function zt(ct,nt){if(1&ct&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.editableLabel)}}function Vt(ct,nt){if(1&ct&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function it(ct,nt){if(1&ct&&(T.ynx(0,9),T.YNc(1,Dt,2,1,"span",10),T.YNc(2,Pt,2,1,"span",11),T.YNc(3,zt,2,1,"span",11),T.YNc(4,Vt,2,1,"mat-icon",12),T.BQk()),2&ct){const kt=T.oxw();T.Q6J("ngSwitch",kt.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===kt.state),T.xp6(1),T.Q6J("ngIf","edit"===kt.state)}}function Tt(ct,nt){if(1&ct&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",kt._templateLabel().template)}}function At(ct,nt){if(1&ct&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt.label)}}function ft(ct,nt){if(1&ct&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt._intl.optionalLabel)}}function Et(ct,nt){if(1&ct&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt.errorMessage)}}function Bt(ct,nt){}function Ft(ct,nt){if(1&ct&&(T.Hsn(0),T.YNc(1,Bt,0,0,"ng-template",0)),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",kt._portal)}}const se=["*"];function jt(ct,nt){1&ct&&T._UZ(0,"div",11)}const ve=function(ct,nt){return{step:ct,i:nt}};function be(ct,nt){if(1&ct&&(T.ynx(0),T.GkF(1,9),T.YNc(2,jt,1,0,"div",10),T.BQk()),2&ct){const kt=nt.$implicit,Jt=nt.index,oe=nt.last;T.oxw(2);const Ce=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ce)("ngTemplateOutletContext",T.WLB(3,ve,kt,Jt)),T.xp6(1),T.Q6J("ngIf",!oe)}}const Le=function(ct){return{animationDuration:ct}},qe=function(ct,nt){return{value:ct,params:nt}};function $e(ct,nt){if(1&ct){const kt=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.GkF(1,13),T.qZA()}if(2&ct){const kt=nt.$implicit,Jt=nt.index,oe=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",oe.selectedIndex!==Jt),T.Q6J("@horizontalStepTransition",T.WLB(8,qe,oe._getAnimationDirection(Jt),T.VKq(6,Le,oe._getAnimationDuration())))("id",oe._getStepContentId(Jt)),T.uIk("aria-labelledby",oe._getStepLabelId(Jt)),T.xp6(1),T.Q6J("ngTemplateOutlet",kt.content)}}function Xt(ct,nt){if(1&ct&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,be,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,$e,2,11,"div",8),T.qZA()()),2&ct){const kt=T.oxw();T.xp6(2),T.Q6J("ngForOf",kt.steps),T.xp6(2),T.Q6J("ngForOf",kt.steps)}}function Te(ct,nt){if(1&ct){const kt=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&ct){const kt=nt.$implicit,Jt=nt.index,oe=nt.last,Ce=T.oxw(2),Oe=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",T.WLB(10,ve,kt,Jt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!oe),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",Ce.selectedIndex!==Jt),T.Q6J("@verticalStepTransition",T.WLB(15,qe,Ce._getAnimationDirection(Jt),T.VKq(13,Le,Ce._getAnimationDuration())))("id",Ce._getStepContentId(Jt)),T.uIk("aria-labelledby",Ce._getStepLabelId(Jt)),T.xp6(2),T.Q6J("ngTemplateOutlet",kt.content)}}function ae(ct,nt){if(1&ct&&(T.ynx(0),T.YNc(1,Te,6,18,"div",14),T.BQk()),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("ngForOf",kt.steps)}}function Kt(ct,nt){if(1&ct){const kt=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const Ce=T.CHM(kt).step;return T.KtG(Ce.select())})("keydown",function(oe){T.CHM(kt);const Ce=T.oxw();return T.KtG(Ce._onKeydown(oe))}),T.qZA()}if(2&ct){const kt=nt.step,Jt=nt.i,oe=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===oe.orientation)("mat-vertical-stepper-header","vertical"===oe.orientation),T.Q6J("tabIndex",oe._getFocusIndex()===Jt?0:-1)("id",oe._getStepLabelId(Jt))("index",Jt)("state",oe._getIndicatorType(Jt,kt.state))("label",kt.stepLabel||kt.label)("selected",oe.selectedIndex===Jt)("active",oe._stepIsNavigable(Jt,kt))("optional",kt.optional)("errorMessage",kt.errorMessage)("iconOverrides",oe._iconOverrides)("disableRipple",oe.disableRipple||!oe._stepIsNavigable(Jt,kt))("color",kt.color||oe.color),T.uIk("aria-posinset",Jt+1)("aria-setsize",oe.steps.length)("aria-controls",oe._getStepContentId(Jt))("aria-selected",oe.selectedIndex==Jt)("aria-label",kt.ariaLabel||null)("aria-labelledby",!kt.ariaLabel&&kt.ariaLabelledby?kt.ariaLabelledby:null)("aria-disabled",!oe._stepIsNavigable(Jt,kt)||null)}}let de=(()=>{class ct extends p.u6{}return ct.\u0275fac=function(){let nt;return function(Jt){return(nt||(nt=T.n5z(ct)))(Jt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["","matStepLabel",""]],features:[T.qOj]}),ct})(),Wt=(()=>{class ct{constructor(){this.changes=new k.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ct.\u0275fac=function(kt){return new(kt||ct)},ct.\u0275prov=T.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();const De={provide:Wt,deps:[[new T.FiY,new T.tp0,Wt]],useFactory:function re(ct){return ct||new Wt}},on=(0,A.pj)(class extends p.KL{constructor(nt){super(nt)}},"primary");let _n=(()=>{class ct extends on{constructor(kt,Jt,oe,Ce){super(oe),this._intl=kt,this._focusMonitor=Jt,this._intlSubscription=kt.changes.subscribe(()=>Ce.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(kt,Jt){kt?this._focusMonitor.focusVia(this._elementRef,kt,Jt):this._elementRef.nativeElement.focus(Jt)}_stringLabel(){return this.label instanceof de?null:this.label}_templateLabel(){return this.label instanceof de?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(kt){return"number"==kt?`${this.index+1}`:"edit"==kt?"create":"error"==kt?"warning":kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(Wt),T.Y36(U.tE),T.Y36(T.SBq),T.Y36(T.sBO))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[T.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(kt,Jt){1&kt&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,vt,1,2,"ng-container",2),T.YNc(4,it,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,Tt,2,1,"div",5),T.YNc(7,At,2,1,"div",5),T.YNc(8,ft,2,1,"div",6),T.YNc(9,Et,2,1,"div",7),T.qZA()),2&kt&&(T.Q6J("matRippleTrigger",Jt._getHostElement())("matRippleDisabled",Jt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",Jt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",Jt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!Jt.iconOverrides||!Jt.iconOverrides[Jt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",Jt.active)("mat-step-label-selected",Jt.selected)("mat-step-label-error","error"==Jt.state),T.xp6(1),T.Q6J("ngIf",Jt._templateLabel()),T.xp6(1),T.Q6J("ngIf",Jt._stringLabel()),T.xp6(1),T.Q6J("ngIf",Jt.optional&&"error"!=Jt.state),T.xp6(1),T.Q6J("ngIf","error"==Jt.state))},dependencies:[b.O5,b.tP,b.RF,b.n9,b.ED,x.Hw,A.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),ct})();const we={horizontalStepTransition:(0,lt.X$)("horizontalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({transform:"none",visibility:"inherit"})),(0,lt.SB)("next",(0,lt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,lt.eR)("* => *",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,lt.X$)("verticalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("next",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({height:"*",visibility:"inherit"})),(0,lt.eR)("* <=> current",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let un=(()=>{class ct{constructor(kt){this.templateRef=kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(T.Rgc))},ct.\u0275dir=T.lG2({type:ct,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ct})(),Un=(()=>{class ct{constructor(kt){this._template=kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(T.Rgc))},ct.\u0275dir=T.lG2({type:ct,selectors:[["ng-template","matStepContent",""]]}),ct})(),oi=(()=>{class ct extends p.be{constructor(kt,Jt,oe,Ce){super(kt,Ce),this._errorStateMatcher=Jt,this._viewContainerRef=oe,this._isSelected=D.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,F.w)(()=>this._stepper.selectionChange.pipe((0,z.U)(kt=>kt.selectedStep===this),(0,J.O)(this._stepper.selected===this)))).subscribe(kt=>{kt&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(kt,Jt){return this._errorStateMatcher.isErrorState(kt,Jt)||!!(kt&&kt.invalid&&this.interacted)}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36((0,T.Gpc)(()=>vi)),T.Y36(A.rD,4),T.Y36(T.s_b),T.Y36(p.gx,8))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-step"]],contentQueries:function(kt,Jt,oe){if(1&kt&&(T.Suo(oe,de,5),T.Suo(oe,Un,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Jt.stepLabel=Ce.first),T.iGM(Ce=T.CRH())&&(Jt._lazyContent=Ce.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:A.rD,useExisting:ct},{provide:p.be,useExisting:ct}]),T.qOj],ngContentSelectors:se,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(kt,Jt){1&kt&&(T.F$t(),T.YNc(0,Ft,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),ct})(),vi=(()=>{class ct extends p.B8{constructor(kt,Jt,oe){super(kt,Jt,oe),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new k.xQ,this._animationDuration="";const Ce=oe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Ce?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(kt){this._animationDuration=/^\d+$/.test(kt)?kt+"ms":kt}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:kt,templateRef:Jt})=>this._iconOverrides[kt]=Jt),this.steps.changes.pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ot.x)((kt,Jt)=>kt.fromState===Jt.fromState&&kt.toState===Jt.toState),(0,K.R)(this._destroyed)).subscribe(kt=>{"current"===kt.toState&&this.animationDone.emit()})}_stepIsNavigable(kt,Jt){return Jt.completed||this.selectedIndex===kt||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(P.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(kt,Jt,oe){if(1&kt&&(T.Suo(oe,oi,5),T.Suo(oe,un,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Jt._steps=Ce),T.iGM(Ce=T.CRH())&&(Jt._icons=Ce)}},viewQuery:function(kt,Jt){if(1&kt&&T.Gf(_n,5),2&kt){let oe;T.iGM(oe=T.CRH())&&(Jt._stepHeader=oe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(kt,Jt){2&kt&&(T.uIk("aria-orientation",Jt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===Jt.orientation)("mat-stepper-vertical","vertical"===Jt.orientation)("mat-stepper-label-position-end","horizontal"===Jt.orientation&&"end"==Jt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Jt.orientation&&"bottom"==Jt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Jt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:p.B8,useExisting:ct}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(kt,Jt){1&kt&&(T.ynx(0,0),T.YNc(1,Xt,5,2,"div",1),T.YNc(2,ae,2,1,"ng-container",2),T.BQk(),T.YNc(3,Kt,1,23,"ng-template",null,3,T.W1O)),2&kt&&(T.Q6J("ngSwitch",Jt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[b.sg,b.O5,b.tP,b.RF,b.n9,_n],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[we.horizontalStepTransition,we.verticalStepTransition]},changeDetection:0}),ct})(),si=(()=>{class ct extends p.st{}return ct.\u0275fac=function(){let nt;return function(Jt){return(nt||(nt=T.n5z(ct)))(Jt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(kt,Jt){2&kt&&T.Ikx("type",Jt.type)},inputs:{type:"type"},features:[T.qOj]}),ct})(),Ke=(()=>{class ct extends p.po{}return ct.\u0275fac=function(){let nt;return function(Jt){return(nt||(nt=T.n5z(ct)))(Jt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(kt,Jt){2&kt&&T.Ikx("type",Jt.type)},inputs:{type:"type"},features:[T.qOj]}),ct})(),ne=(()=>{class ct{}return ct.\u0275fac=function(kt){return new(kt||ct)},ct.\u0275mod=T.oAB({type:ct}),ct.\u0275inj=T.cJS({providers:[De,A.rD],imports:[A.BQ,b.ez,d.eL,t.ot,p.U5,x.Ps,A.si,A.BQ]}),ct})()},30671:(at,et,v)=>{"use strict";v.d(et,{ev:()=>En,Dz:()=>ye,w1:()=>Tn,yh:()=>Re,mD:()=>Ne,Q2:()=>An,Ke:()=>go,ge:()=>he,fO:()=>Xe,XQ:()=>mn,as:()=>gi,Gk:()=>sn,nj:()=>_o,BZ:()=>Ot,by:()=>fr,p0:()=>No});var d=v(94650),p=v(40445),b=v(21281),T=v(95017),t=v(83353),A=v(67376),x=v(36895),U=v(8929),k=v(5254),D=v(591),P=v(54715),F=v(21086),z=v(7625),J=v(72986);const K=[[["caption"]],[["colgroup"],["col"]]],ot=["caption","colgroup, col"];function Dt(Je){return class extends Je{constructor(...Fn){super(...Fn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Fn){const He=this._sticky;this._sticky=(0,b.Ig)(Fn),this._hasStickyChanged=He!==this._sticky}hasStickyChanged(){const Fn=this._hasStickyChanged;return this._hasStickyChanged=!1,Fn}resetStickyChanged(){this._hasStickyChanged=!1}}}const Pt=new d.OlP("CDK_TABLE");let Vt=(()=>{class Je{constructor(He){this.template=He}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkCellDef",""]]}),Je})(),it=(()=>{class Je{constructor(He){this.template=He}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkHeaderCellDef",""]]}),Je})(),Tt=(()=>{class Je{constructor(He){this.template=He}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkFooterCellDef",""]]}),Je})();class At{}const ft=Dt(At);let Et=(()=>{class Je extends ft{constructor(He){super(),this._table=He,this._stickyEnd=!1}get name(){return this._name}set name(He){this._setNameInput(He)}get stickyEnd(){return this._stickyEnd}set stickyEnd(He){const Me=this._stickyEnd;this._stickyEnd=(0,b.Ig)(He),this._hasStickyChanged=Me!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(He){He&&(this._name=He,this.cssClassFriendlyName=He.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkColumnDef",""]],contentQueries:function(He,Me,dn){if(1&He&&(d.Suo(dn,Vt,5),d.Suo(dn,it,5),d.Suo(dn,Tt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(Me.cell=tt.first),d.iGM(tt=d.CRH())&&(Me.headerCell=tt.first),d.iGM(tt=d.CRH())&&(Me.footerCell=tt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Je}]),d.qOj]}),Je})();class Bt{constructor(Fn,He){He.nativeElement.classList.add(...Fn._columnCssClassName)}}let Ft=(()=>{class Je extends Bt{constructor(He,Me){super(He,Me)}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Et),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),Je})(),se=(()=>{class Je extends Bt{constructor(He,Me){if(super(He,Me),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Et),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]}),Je})(),jt=(()=>{class Je extends Bt{constructor(He,Me){if(super(He,Me),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Et),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),Je})();class ve{constructor(){this.tasks=[],this.endTasks=[]}}const be=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Le=(()=>{class Je{constructor(He){this._ngZone=He,this._currentSchedule=null,this._destroyed=new U.xQ}schedule(He){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(He)}scheduleEnd(He){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(He)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ve,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const He=this._currentSchedule;this._currentSchedule=new ve;for(const Me of He.tasks)Me();for(const Me of He.endTasks)Me()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,J.q)(1))}}return Je.\u0275fac=function(He){return new(He||Je)(d.LFG(d.R0b))},Je.\u0275prov=d.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),$e=(()=>{class Je{constructor(He,Me){this.template=He,this._differs=Me}ngOnChanges(He){if(!this._columnsDiffer){const Me=He.columns&&He.columns.currentValue||[];this._columnsDiffer=this._differs.find(Me).create(),this._columnsDiffer.diff(Me)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(He){return this instanceof ae?He.headerCell.template:this instanceof Wt?He.footerCell.template:He.cell.template}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},Je.\u0275dir=d.lG2({type:Je,features:[d.TTD]}),Je})();class Xt extends $e{}const Te=Dt(Xt);let ae=(()=>{class Je extends Te{constructor(He,Me,dn){super(He,Me),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Je})();class Kt extends $e{}const de=Dt(Kt);let Wt=(()=>{class Je extends de{constructor(He,Me,dn){super(He,Me),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Je})(),re=(()=>{class Je extends $e{constructor(He,Me,dn){super(He,Me),this._table=dn}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),Je})(),De=(()=>{class Je{constructor(He){this._viewContainer=He,Je.mostRecentCellOutlet=this}ngOnDestroy(){Je.mostRecentCellOutlet===this&&(Je.mostRecentCellOutlet=null)}}return Je.mostRecentCellOutlet=null,Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkCellOutlet",""]]}),Je})(),on=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),_n=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),Ae=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),gn=(()=>{class Je{constructor(He){this.templateRef=He,this._contentClassName="cdk-no-data-row"}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["ng-template","cdkNoDataRow",""]]}),Je})();const we=["top","bottom","left","right"];class un{constructor(Fn,He,Me,dn,tt=!0,Rt=!0,Q){this._isNativeHtmlTable=Fn,this._stickCellCss=He,this.direction=Me,this._coalescedStyleScheduler=dn,this._isBrowser=tt,this._needsPositionStickyOnElement=Rt,this._positionListener=Q,this._cachedCellWidths=[],this._borderCellCss={top:`${He}-border-elem-top`,bottom:`${He}-border-elem-bottom`,left:`${He}-border-elem-left`,right:`${He}-border-elem-right`}}clearStickyPositioning(Fn,He){const Me=[];for(const dn of Fn)if(dn.nodeType===dn.ELEMENT_NODE){Me.push(dn);for(let tt=0;tt{for(const dn of Me)this._removeStickyStyle(dn,He)})}updateStickyColumns(Fn,He,Me,dn=!0){if(!Fn.length||!this._isBrowser||!He.some(Ao=>Ao)&&!Me.some(Ao=>Ao))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const tt=Fn[0],Rt=tt.children.length,Q=this._getCellWidths(tt,dn),Nt=this._getStickyStartColumnPositions(Q,He),Be=this._getStickyEndColumnPositions(Q,Me),Rn=He.lastIndexOf(!0),Qi=Me.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ao="rtl"===this.direction,gr=Ao?"right":"left",vr=Ao?"left":"right";for(const us of Fn)for(let ir=0;irHe[ir]?us:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Qi?[]:Q.slice(Qi).map((us,ir)=>Me[ir+Qi]?us:null).reverse()}))})}stickRows(Fn,He,Me){if(!this._isBrowser)return;const dn="bottom"===Me?Fn.slice().reverse():Fn,tt="bottom"===Me?He.slice().reverse():He,Rt=[],Q=[],Nt=[];for(let Rn=0,Qi=0;Rn{for(let Rn=0;Rn{He.some(dn=>!dn)?this._removeStickyStyle(Me,["bottom"]):this._addStickyStyle(Me,"bottom",0,!1)})}_removeStickyStyle(Fn,He){for(const dn of He)Fn.style[dn]="",Fn.classList.remove(this._borderCellCss[dn]);we.some(dn=>-1===He.indexOf(dn)&&Fn.style[dn])?Fn.style.zIndex=this._getCalculatedZIndex(Fn):(Fn.style.zIndex="",this._needsPositionStickyOnElement&&(Fn.style.position=""),Fn.classList.remove(this._stickCellCss))}_addStickyStyle(Fn,He,Me,dn){Fn.classList.add(this._stickCellCss),dn&&Fn.classList.add(this._borderCellCss[He]),Fn.style[He]=`${Me}px`,Fn.style.zIndex=this._getCalculatedZIndex(Fn),this._needsPositionStickyOnElement&&(Fn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Fn){const He={top:100,bottom:10,left:1,right:1};let Me=0;for(const dn of we)Fn.style[dn]&&(Me+=He[dn]);return Me?`${Me}`:""}_getCellWidths(Fn,He=!0){if(!He&&this._cachedCellWidths.length)return this._cachedCellWidths;const Me=[],dn=Fn.children;for(let tt=0;tt0;tt--)He[tt]&&(Me[tt]=dn,dn+=Fn[tt]);return Me}}const kt=new d.OlP("CDK_SPL");let oe=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","rowOutlet",""]]}),Je})(),Ce=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","headerRowOutlet",""]]}),Je})(),Oe=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","footerRowOutlet",""]]}),Je})(),Dn=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","noDataRowOutlet",""]]}),Je})(),Li=(()=>{class Je{constructor(He,Me,dn,tt,Rt,Q,Nt,Be,Rn,Qi,Ao,gr){this._differs=He,this._changeDetectorRef=Me,this._elementRef=dn,this._dir=Rt,this._platform=Nt,this._viewRepeater=Be,this._coalescedStyleScheduler=Rn,this._viewportRuler=Qi,this._stickyPositioningListener=Ao,this._ngZone=gr,this._onDestroy=new U.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.vpe,this.viewChange=new D.X({start:0,end:Number.MAX_VALUE}),tt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(He){this._trackByFn=He}get dataSource(){return this._dataSource}set dataSource(He){this._dataSource!==He&&this._switchDataSource(He)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(He){this._multiTemplateDataRows=(0,b.Ig)(He),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(He){this._fixedLayout=(0,b.Ig)(He),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((He,Me)=>this.trackBy?this.trackBy(Me.dataIndex,Me.data):Me),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Me=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Me,this._forceRecalculateCellWidths=Me,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(He=>{He.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const He=this._dataDiffer.diff(this._renderRows);if(!He)return this._updateNoDataRow(),void this.contentChanged.next();const Me=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(He,Me,(dn,tt,Rt)=>this._getEmbeddedViewArgs(dn.item,Rt),dn=>dn.item.data,dn=>{1===dn.operation&&dn.context&&this._renderCellTemplateForItem(dn.record.item.rowDef,dn.context)}),this._updateRowIndexContext(),He.forEachIdentityChange(dn=>{Me.get(dn.currentIndex).context.$implicit=dn.item.data}),this._updateNoDataRow(),this._ngZone&&d.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,J.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(He){this._customColumnDefs.add(He)}removeColumnDef(He){this._customColumnDefs.delete(He)}addRowDef(He){this._customRowDefs.add(He)}removeRowDef(He){this._customRowDefs.delete(He)}addHeaderRowDef(He){this._customHeaderRowDefs.add(He),this._headerRowDefChanged=!0}removeHeaderRowDef(He){this._customHeaderRowDefs.delete(He),this._headerRowDefChanged=!0}addFooterRowDef(He){this._customFooterRowDefs.add(He),this._footerRowDefChanged=!0}removeFooterRowDef(He){this._customFooterRowDefs.delete(He),this._footerRowDefChanged=!0}setNoDataRow(He){this._customNoDataRow=He}updateStickyHeaderRowStyles(){const He=this._getRenderedRows(this._headerRowOutlet),dn=this._elementRef.nativeElement.querySelector("thead");dn&&(dn.style.display=He.length?"":"none");const tt=this._headerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["top"]),this._stickyStyler.stickRows(He,tt,"top"),this._headerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyFooterRowStyles(){const He=this._getRenderedRows(this._footerRowOutlet),dn=this._elementRef.nativeElement.querySelector("tfoot");dn&&(dn.style.display=He.length?"":"none");const tt=this._footerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["bottom"]),this._stickyStyler.stickRows(He,tt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,tt),this._footerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyColumnStyles(){const He=this._getRenderedRows(this._headerRowOutlet),Me=this._getRenderedRows(this._rowOutlet),dn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...He,...Me,...dn],["left","right"]),this._stickyColumnStylesNeedReset=!1),He.forEach((tt,Rt)=>{this._addStickyColumnStyles([tt],this._headerRowDefs[Rt])}),this._rowDefs.forEach(tt=>{const Rt=[];for(let Q=0;Q{this._addStickyColumnStyles([tt],this._footerRowDefs[Rt])}),Array.from(this._columnDefsByName.values()).forEach(tt=>tt.resetStickyChanged())}_getAllRenderRows(){const He=[],Me=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let dn=0;dn{const Q=dn&&dn.has(Rt)?dn.get(Rt):[];if(Q.length){const Nt=Q.shift();return Nt.dataIndex=Me,Nt}return{data:He,rowDef:Rt,dataIndex:Me}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ho(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Me=>{this._columnDefsByName.has(Me.name),this._columnDefsByName.set(Me.name,Me)})}_cacheRowDefs(){this._headerRowDefs=ho(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ho(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ho(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const He=this._rowDefs.filter(Me=>!Me.when);this._defaultRowDef=He[0]}_renderUpdatedColumns(){const He=(Rt,Q)=>Rt||!!Q.getColumnsDiff(),Me=this._rowDefs.reduce(He,!1);Me&&this._forceRenderDataRows();const dn=this._headerRowDefs.reduce(He,!1);dn&&this._forceRenderHeaderRows();const tt=this._footerRowDefs.reduce(He,!1);return tt&&this._forceRenderFooterRows(),Me||dn||tt}_switchDataSource(He){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),He||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=He}_observeRenderChanges(){if(!this.dataSource)return;let He;(0,T.Z9)(this.dataSource)?He=this.dataSource.connect(this):(0,P.b)(this.dataSource)?He=this.dataSource:Array.isArray(this.dataSource)&&(He=(0,F.of)(this.dataSource)),this._renderChangeSubscription=He.pipe((0,z.R)(this._onDestroy)).subscribe(Me=>{this._data=Me||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((He,Me)=>this._renderRow(this._headerRowOutlet,He,Me)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((He,Me)=>this._renderRow(this._footerRowOutlet,He,Me)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(He,Me){const dn=Array.from(Me.columns||[]).map(Q=>this._columnDefsByName.get(Q)),tt=dn.map(Q=>Q.sticky),Rt=dn.map(Q=>Q.stickyEnd);this._stickyStyler.updateStickyColumns(He,tt,Rt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(He){const Me=[];for(let dn=0;dn!tt.when||tt.when(Me,He));else{let tt=this._rowDefs.find(Rt=>Rt.when&&Rt.when(Me,He))||this._defaultRowDef;tt&&dn.push(tt)}return dn}_getEmbeddedViewArgs(He,Me){return{templateRef:He.rowDef.template,context:{$implicit:He.data},index:Me}}_renderRow(He,Me,dn,tt={}){const Rt=He.viewContainer.createEmbeddedView(Me.template,tt,dn);return this._renderCellTemplateForItem(Me,tt),Rt}_renderCellTemplateForItem(He,Me){for(let dn of this._getCellTemplates(He))De.mostRecentCellOutlet&&De.mostRecentCellOutlet._viewContainer.createEmbeddedView(dn,Me);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const He=this._rowOutlet.viewContainer;for(let Me=0,dn=He.length;Me{const dn=this._columnDefsByName.get(Me);return He.extractCellTemplate(dn)}):[]}_applyNativeTableSections(){const He=this._document.createDocumentFragment(),Me=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const dn of Me){const tt=this._document.createElement(dn.tag);tt.setAttribute("role","rowgroup");for(const Rt of dn.outlets)tt.appendChild(Rt.elementRef.nativeElement);He.appendChild(tt)}this._elementRef.nativeElement.appendChild(He)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const He=(Me,dn)=>Me||dn.hasStickyChanged();this._headerRowDefs.reduce(He,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(He,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(He,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new un(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,F.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Me=>{this._stickyStyler.direction=Me,this.updateStickyColumnStyles()})}_getOwnDefs(He){return He.filter(Me=>!Me._table||Me._table===this)}_updateNoDataRow(){const He=this._customNoDataRow||this._noDataRow;if(!He)return;const Me=0===this._rowOutlet.viewContainer.length;if(Me===this._isShowingNoDataRow)return;const dn=this._noDataRowOutlet.viewContainer;if(Me){const tt=dn.createEmbeddedView(He.templateRef),Rt=tt.rootNodes[0];1===tt.rootNodes.length&&Rt?.nodeType===this._document.ELEMENT_NODE&&(Rt.setAttribute("role","row"),Rt.classList.add(He._contentClassName))}else dn.clear();this._isShowingNoDataRow=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(p.Is,8),d.Y36(x.K0),d.Y36(t.t4),d.Y36(T.k),d.Y36(be),d.Y36(A.rL),d.Y36(kt,12),d.Y36(d.R0b,8))},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(He,Me,dn){if(1&He&&(d.Suo(dn,gn,5),d.Suo(dn,Et,5),d.Suo(dn,re,5),d.Suo(dn,ae,5),d.Suo(dn,Wt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(Me._noDataRow=tt.first),d.iGM(tt=d.CRH())&&(Me._contentColumnDefs=tt),d.iGM(tt=d.CRH())&&(Me._contentRowDefs=tt),d.iGM(tt=d.CRH())&&(Me._contentHeaderRowDefs=tt),d.iGM(tt=d.CRH())&&(Me._contentFooterRowDefs=tt)}},viewQuery:function(He,Me){if(1&He&&(d.Gf(oe,7),d.Gf(Ce,7),d.Gf(Oe,7),d.Gf(Dn,7)),2&He){let dn;d.iGM(dn=d.CRH())&&(Me._rowOutlet=dn.first),d.iGM(dn=d.CRH())&&(Me._headerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(Me._footerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(Me._noDataRowOutlet=dn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(He,Me){2&He&&d.ekj("cdk-table-fixed-layout",Me.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:Pt,useExisting:Je},{provide:T.k,useClass:T.yy},{provide:be,useClass:Le},{provide:kt,useValue:null}])],ngContentSelectors:ot,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,Me){1&He&&(d.F$t(K),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Oe,Dn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Je})();function ho(Je,Fn){return Je.concat(Array.from(Fn))}let Gn=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275mod=d.oAB({type:Je}),Je.\u0275inj=d.cJS({imports:[A.Cl]}),Je})();var Ye=v(3238),fn=v(36787),ze=v(23426),We=v(24850);const en=[[["caption"]],[["colgroup"],["col"]]],le=["caption","colgroup, col"];let Ot=(()=>{class Je extends Li{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(He,Me){2&He&&d.ekj("mat-table-fixed-layout",Me.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:T.k,useClass:T.yy},{provide:Li,useExisting:Je},{provide:Pt,useExisting:Je},{provide:be,useClass:Le},{provide:kt,useValue:null}]),d.qOj],ngContentSelectors:le,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,Me){1&He&&(d.F$t(en),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Oe,Dn],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Je})(),ye=(()=>{class Je extends Vt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Vt,useExisting:Je}]),d.qOj]}),Je})(),Xe=(()=>{class Je extends it{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:it,useExisting:Je}]),d.qOj]}),Je})(),Ne=(()=>{class Je extends Tt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matFooterCellDef",""]],features:[d._Bn([{provide:Tt,useExisting:Je}]),d.qOj]}),Je})(),Tn=(()=>{class Je extends Et{get name(){return this._name}set name(He){this._setNameInput(He)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:Et,useExisting:Je},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Je}]),d.qOj]}),Je})(),he=(()=>{class Je extends Ft{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[d.qOj]}),Je})(),Re=(()=>{class Je extends se{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[d.qOj]}),Je})(),En=(()=>{class Je extends jt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[d.qOj]}),Je})(),gi=(()=>{class Je extends ae{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:ae,useExisting:Je}]),d.qOj]}),Je})(),go=(()=>{class Je extends Wt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[d._Bn([{provide:Wt,useExisting:Je}]),d.qOj]}),Je})(),_o=(()=>{class Je extends re{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:re,useExisting:Je}]),d.qOj]}),Je})(),mn=(()=>{class Je extends on{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:on,useExisting:Je}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),An=(()=>{class Je extends _n{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[d._Bn([{provide:_n,useExisting:Je}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),sn=(()=>{class Je extends Ae{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[d._Bn([{provide:Ae,useExisting:Je}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),No=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275mod=d.oAB({type:Je}),Je.\u0275inj=d.cJS({imports:[Gn,Ye.BQ,Ye.BQ]}),Je})();class qa extends T.o2{constructor(Fn=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new U.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(He,Me)=>{const dn=He[Me];if((0,b.t6)(dn)){const tt=Number(dn);return tt<9007199254740991?tt:dn}return dn},this.sortData=(He,Me)=>{const dn=Me.active,tt=Me.direction;return dn&&""!=tt?He.sort((Rt,Q)=>{let Nt=this.sortingDataAccessor(Rt,dn),Be=this.sortingDataAccessor(Q,dn);const Rn=typeof Nt,Qi=typeof Be;Rn!==Qi&&("number"===Rn&&(Nt+=""),"number"===Qi&&(Be+=""));let Ao=0;return null!=Nt&&null!=Be?Nt>Be?Ao=1:Nt{const dn=Object.keys(He).reduce((Rt,Q)=>Rt+He[Q]+"\u25ec","").toLowerCase(),tt=Me.trim().toLowerCase();return-1!=dn.indexOf(tt)},this._data=new D.X(Fn),this._updateChangeSubscription()}get data(){return this._data.value}set data(Fn){Fn=Array.isArray(Fn)?Fn:[],this._data.next(Fn),this._renderChangesSubscription||this._filterData(Fn)}get filter(){return this._filter.value}set filter(Fn){this._filter.next(Fn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Fn){this._sort=Fn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Fn){this._paginator=Fn,this._updateChangeSubscription()}_updateChangeSubscription(){const Fn=this._sort?(0,fn.T)(this._sort.sortChange,this._sort.initialized):(0,F.of)(null),He=this._paginator?(0,fn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,F.of)(null),dn=(0,ze.aj)([this._data,this._filter]).pipe((0,We.U)(([Q])=>this._filterData(Q))),tt=(0,ze.aj)([dn,Fn]).pipe((0,We.U)(([Q])=>this._orderData(Q))),Rt=(0,ze.aj)([tt,He]).pipe((0,We.U)(([Q])=>this._pageData(Q)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Rt.subscribe(Q=>this._renderData.next(Q))}_filterData(Fn){return this.filteredData=null==this.filter||""===this.filter?Fn:Fn.filter(He=>this.filterPredicate(He,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Fn){return this.sort?this.sortData(Fn.slice(),this.sort):Fn}_pageData(Fn){if(!this.paginator)return Fn;const He=this.paginator.pageIndex*this.paginator.pageSize;return Fn.slice(He,He+this.paginator.pageSize)}_updatePaginator(Fn){Promise.resolve().then(()=>{const He=this.paginator;if(He&&(He.length=Fn,He.pageIndex>0)){const Me=Math.ceil(He.length/He.pageSize)-1||0,dn=Math.min(He.pageIndex,Me);dn!==He.pageIndex&&(He.pageIndex=dn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class fr extends qa{}},3848:(at,et,v)=>{"use strict";v.d(et,{BU:()=>je,Nh:()=>Xe,Nj:()=>Ot,SP:()=>We,uD:()=>vi,uX:()=>ne});var d=v(12687),p=v(49643),b=v(84080),T=v(36895),t=v(94650),A=v(3238),x=v(72986),U=v(1059),k=v(75778),D=v(7625),P=v(87545),F=v(31307),z=v(92198),J=v(8929),K=v(42654),ot=v(23753),lt=v(21086),vt=v(36787),Dt=v(68896),Pt=v(56498),zt=v(98723),Vt=v(40445),it=v(37340),Tt=v(21281),At=v(67376),ft=v(83353),Et=v(29521);function Bt(Ne,Tn){1&Ne&&t.Hsn(0)}const Ft=["*"];function se(Ne,Tn){}const jt=function(Ne){return{animationDuration:Ne}},ve=function(Ne,Tn){return{value:Ne,params:Tn}},be=["tabListContainer"],Le=["tabList"],qe=["tabListInner"],$e=["nextPaginator"],Xt=["previousPaginator"],Te=["tabBodyWrapper"],ae=["tabHeader"];function Kt(Ne,Tn){}function de(Ne,Tn){if(1&Ne&&t.YNc(0,Kt,0,0,"ng-template",10),2&Ne){const he=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",he.templateLabel)}}function Wt(Ne,Tn){if(1&Ne&&t._uU(0),2&Ne){const he=t.oxw().$implicit;t.Oqu(he.textLabel)}}function re(Ne,Tn){if(1&Ne){const he=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const En=t.CHM(he),gi=En.$implicit,go=En.index,_o=t.oxw(),mn=t.MAs(1);return t.KtG(_o._handleClick(gi,mn,go))})("cdkFocusChange",function(En){const go=t.CHM(he).index,_o=t.oxw();return t.KtG(_o._tabFocusChanged(En,go))}),t.TgZ(1,"div",7),t.YNc(2,de,1,1,"ng-template",8),t.YNc(3,Wt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&Ne){const he=Tn.$implicit,Re=Tn.index,En=t.MAs(4),gi=t.oxw();t.ekj("mat-tab-label-active",gi.selectedIndex===Re),t.Q6J("id",gi._getTabLabelId(Re))("ngClass",he.labelClass)("disabled",he.disabled)("matRippleDisabled",he.disabled||gi.disableRipple),t.uIk("tabIndex",gi._getTabIndex(he,Re))("aria-posinset",Re+1)("aria-setsize",gi._tabs.length)("aria-controls",gi._getTabContentId(Re))("aria-selected",gi.selectedIndex===Re)("aria-label",he.ariaLabel||null)("aria-labelledby",!he.ariaLabel&&he.ariaLabelledby?he.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",he.templateLabel)("ngIfElse",En)}}function De(Ne,Tn){if(1&Ne){const he=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(he);const En=t.oxw();return t.KtG(En._removeTabBodyWrapperHeight())})("_onCentering",function(En){t.CHM(he);const gi=t.oxw();return t.KtG(gi._setTabBodyWrapperHeight(En))}),t.qZA()}if(2&Ne){const he=Tn.$implicit,Re=Tn.index,En=t.oxw();t.ekj("mat-tab-body-active",En.selectedIndex===Re),t.Q6J("id",En._getTabContentId(Re))("ngClass",he.bodyClass)("content",he.content)("position",he.position)("origin",he.origin)("animationDuration",En.animationDuration)("preserveContent",En.preserveContent),t.uIk("tabindex",null!=En.contentTabIndex&&En.selectedIndex===Re?En.contentTabIndex:null)("aria-labelledby",En._getTabLabelId(Re))}}const on=["mat-tab-nav-bar",""],_n=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ae(){return Tn=>({left:Tn?(Tn.offsetLeft||0)+"px":"0",width:Tn?(Tn.offsetWidth||0)+"px":"0"})}});let gn=(()=>{class Ne{constructor(he,Re,En,gi){this._elementRef=he,this._ngZone=Re,this._inkBarPositioner=En,this._animationMode=gi}alignToElement(he){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>{const Re=this._inkBarPositioner(he),En=this._elementRef.nativeElement;En.style.left=Re.left,En.style.width=Re.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_n),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(he,Re){2&he&&t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode)}}),Ne})();const we=new t.OlP("MatTabContent"),Un=new t.OlP("MatTabLabel"),oi=new t.OlP("MAT_TAB");let vi=(()=>{class Ne extends b.ig{constructor(he,Re,En){super(he,Re),this._closestTab=En}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(oi,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Un,useExisting:Ne}]),t.qOj]}),Ne})();const si=(0,A.Id)(class{}),Ke=new t.OlP("MAT_TAB_GROUP");let ne=(()=>{class Ne extends si{constructor(he,Re){super(),this._viewContainerRef=he,this._closestTabGroup=Re,this.textLabel="",this._contentPortal=null,this._stateChanges=new J.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(he){this._setTemplateLabelInput(he)}get content(){return this._contentPortal}ngOnChanges(he){(he.hasOwnProperty("textLabel")||he.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new b.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(he){he&&he._closestTab===this&&(this._templateLabel=he)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.s_b),t.Y36(Ke,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab"]],contentQueries:function(he,Re,En){if(1&he&&(t.Suo(En,Un,5),t.Suo(En,we,7,t.Rgc)),2&he){let gi;t.iGM(gi=t.CRH())&&(Re.templateLabel=gi.first),t.iGM(gi=t.CRH())&&(Re._explicitContent=gi.first)}},viewQuery:function(he,Re){if(1&he&&t.Gf(t.Rgc,7),2&he){let En;t.iGM(En=t.CRH())&&(Re._implicitContent=En.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:oi,useExisting:Ne}]),t.qOj,t.TTD],ngContentSelectors:Ft,decls:1,vars:0,template:function(he,Re){1&he&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Ne})();const ct={translateTab:(0,it.X$)("translateTab",[(0,it.SB)("center, void, left-origin-center, right-origin-center",(0,it.oB)({transform:"none"})),(0,it.SB)("left",(0,it.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,it.SB)("right",(0,it.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,it.eR)("* => left, * => right, left => center, right => center",(0,it.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,it.eR)("void => left-origin-center",[(0,it.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,it.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,it.eR)("void => right-origin-center",[(0,it.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,it.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let nt=(()=>{class Ne extends b.Pl{constructor(he,Re,En,gi){super(he,Re,gi),this._host=En,this._centeringSub=K.w.EMPTY,this._leavingSub=K.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(he=>{he&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Jt)),t.Y36(T.K0))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),Ne})(),kt=(()=>{class Ne{constructor(he,Re,En){this._elementRef=he,this._dir=Re,this._dirChangeSubscription=K.w.EMPTY,this._translateTabComplete=new J.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Re&&(this._dirChangeSubscription=Re.change.subscribe(gi=>{this._computePositionAnimationState(gi),En.markForCheck()})),this._translateTabComplete.pipe((0,k.x)((gi,go)=>gi.fromState===go.fromState&&gi.toState===go.toState)).subscribe(gi=>{this._isCenterPosition(gi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(gi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(he){this._positionIndex=he,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(he){const Re=this._isCenterPosition(he.toState);this._beforeCentering.emit(Re),Re&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(he){return"center"==he||"left-origin-center"==he||"right-origin-center"==he}_computePositionAnimationState(he=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==he?"left":"right":this._positionIndex>0?"ltr"==he?"right":"left":"center"}_computePositionFromOrigin(he){const Re=this._getLayoutDirection();return"ltr"==Re&&he<=0||"rtl"==Re&&he>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),Jt=(()=>{class Ne extends kt{constructor(he,Re,En){super(he,Re,En)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(he,Re){if(1&he&&t.Gf(b.Pl,5),2&he){let En;t.iGM(En=t.CRH())&&(Re._portalHost=En.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(he,Re){1&he&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(gi){return Re._onTranslateTabStarted(gi)})("@translateTab.done",function(gi){return Re._translateTabComplete.next(gi)}),t.YNc(2,se,0,0,"ng-template",2),t.qZA()),2&he&&t.Q6J("@translateTab",t.WLB(3,ve,Re._position,t.VKq(1,jt,Re.animationDuration)))},dependencies:[nt],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[ct.translateTab]}}),Ne})();const oe=new t.OlP("MAT_TABS_CONFIG"),Ce=(0,A.Id)(class{});let Oe=(()=>{class Ne extends Ce{constructor(he){super(),this.elementRef=he}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(he,Re){2&he&&(t.uIk("aria-disabled",!!Re.disabled),t.ekj("mat-tab-disabled",Re.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),Ne})();const Dn=(0,ft.i$)({passive:!0});let ho=(()=>{class Ne{constructor(he,Re,En,gi,go,_o,mn){this._elementRef=he,this._changeDetectorRef=Re,this._viewportRuler=En,this._dir=gi,this._ngZone=go,this._platform=_o,this._animationMode=mn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new J.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new J.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,go.runOutsideAngular(()=>{(0,ot.R)(he.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){he=(0,Tt.su)(he),this._selectedIndex!=he&&(this._selectedIndexChanged=!0,this._selectedIndex=he,this._keyManager&&this._keyManager.updateActiveItem(he))}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",Dn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",Dn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const he=this._dir?this._dir.change:(0,lt.of)("ltr"),Re=this._viewportRuler.change(150),En=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new d.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(En),(0,vt.T)(he,Re,this._items.changes,this._itemsResized()).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),En()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(gi=>{this.indexFocused.emit(gi),this._setTabFocus(gi)})}_itemsResized(){return"function"!=typeof ResizeObserver?Dt.E:this._items.changes.pipe((0,U.O)(this._items),(0,P.w)(he=>new Pt.y(Re=>this._ngZone.runOutsideAngular(()=>{const En=new ResizeObserver(gi=>Re.next(gi));return he.forEach(gi=>En.observe(gi.elementRef.nativeElement)),()=>{En.disconnect()}}))),(0,F.T)(1),(0,z.h)(he=>he.some(Re=>Re.contentRect.width>0&&Re.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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(he){if(!(0,Et.Vb)(he))switch(he.keyCode){case Et.K5:case Et.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(he));break;default:this._keyManager.onKeydown(he)}}_onContentChanges(){const he=this._elementRef.nativeElement.textContent;he!==this._currentTextContent&&(this._currentTextContent=he||"",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(he){!this._isValidIndex(he)||this.focusIndex===he||!this._keyManager||this._keyManager.setActiveItem(he)}_isValidIndex(he){if(!this._items)return!0;const Re=this._items?this._items.toArray()[he]:null;return!!Re&&!Re.disabled}_setTabFocus(he){if(this._showPaginationControls&&this._scrollToLabel(he),this._items&&this._items.length){this._items.toArray()[he].focus();const Re=this._tabListContainer.nativeElement;Re.scrollLeft="ltr"==this._getLayoutDirection()?0:Re.scrollWidth-Re.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const he=this.scrollDistance,Re="ltr"===this._getLayoutDirection()?-he:he;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Re)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(he){this._scrollTo(he)}_scrollHeader(he){return this._scrollTo(this._scrollDistance+("before"==he?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(he){this._stopInterval(),this._scrollHeader(he)}_scrollToLabel(he){if(this.disablePagination)return;const Re=this._items?this._items.toArray()[he]:null;if(!Re)return;const En=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:gi,offsetWidth:go}=Re.elementRef.nativeElement;let _o,mn;"ltr"==this._getLayoutDirection()?(_o=gi,mn=_o+go):(mn=this._tabListInner.nativeElement.offsetWidth-gi,_o=mn-go);const An=this.scrollDistance,sn=this.scrollDistance+En;_osn&&(this.scrollDistance+=mn-sn+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const he=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;he||(this.scrollDistance=0),he!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=he}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const he=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Re=he?he.elementRef.nativeElement:null;Re?this._inkBar.alignToElement(Re):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(he,Re){Re&&null!=Re.button&&0!==Re.button||(this._stopInterval(),(0,zt.H)(650,100).pipe((0,D.R)((0,vt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:En,distance:gi}=this._scrollHeader(he);(0===gi||gi>=En)&&this._stopInterval()}))}_scrollTo(he){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Re=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Re,he)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Re,distance:this._scrollDistance}}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),fi=(()=>{class Ne extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(he){he.preventDefault()}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),Ne})(),Bn=(()=>{class Ne extends fi{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Oe,4),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(be,7),t.Gf(Le,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:Ft,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ne})(),Gn=0;class Ye{}const fn=(0,A.pj)((0,A.Kr)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let ze=(()=>{class Ne extends fn{constructor(he,Re,En,gi){super(he),this._changeDetectorRef=Re,this._animationMode=gi,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=K.w.EMPTY,this._tabLabelSubscription=K.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Gn++,this.animationDuration=En&&En.animationDuration?En.animationDuration:"500ms",this.disablePagination=!(!En||null==En.disablePagination)&&En.disablePagination,this.dynamicHeight=!(!En||null==En.dynamicHeight)&&En.dynamicHeight,this.contentTabIndex=En?.contentTabIndex??null,this.preserveContent=!!En?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(he){this._dynamicHeight=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){this._indexToSelect=(0,Tt.su)(he,null)}get animationDuration(){return this._animationDuration}set animationDuration(he){this._animationDuration=/^\d+$/.test(he+"")?he+"ms":he}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(he){this._contentTabIndex=(0,Tt.su)(he,null)}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get preserveContent(){return this._preserveContent}set preserveContent(he){this._preserveContent=(0,Tt.Ig)(he)}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement;Re.classList.remove(`mat-background-${this.backgroundColor}`),he&&Re.classList.add(`mat-background-${he}`),this._backgroundColor=he}ngAfterContentChecked(){const he=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=he){const Re=null==this._selectedIndex;if(!Re){this.selectedTabChange.emit(this._createChangeEvent(he));const En=this._tabBodyWrapper.nativeElement;En.style.minHeight=En.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((En,gi)=>En.isActive=gi===he),Re||(this.selectedIndexChange.emit(he),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Re,En)=>{Re.position=En-he,null!=this._selectedIndex&&0==Re.position&&!Re.origin&&(Re.origin=he-this._selectedIndex)}),this._selectedIndex!==he&&(this._selectedIndex=he,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const he=this._clampTabIndex(this._indexToSelect);if(he===this._selectedIndex){const Re=this._tabs.toArray();let En;for(let gi=0;gi{Re[he].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(he))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(he=>{this._tabs.reset(he.filter(Re=>Re._closestTabGroup===this||!Re._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(he){const Re=this._tabHeader;Re&&(Re.focusIndex=he)}_focusChanged(he){this._lastFocusedTabIndex=he,this.focusChange.emit(this._createChangeEvent(he))}_createChangeEvent(he){const Re=new Ye;return Re.index=he,this._tabs&&this._tabs.length&&(Re.tab=this._tabs.toArray()[he]),Re}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,vt.T)(...this._tabs.map(he=>he._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(he){return Math.min(this._tabs.length-1,Math.max(he||0,0))}_getTabLabelId(he){return`mat-tab-label-${this._groupId}-${he}`}_getTabContentId(he){return`mat-tab-content-${this._groupId}-${he}`}_setTabBodyWrapperHeight(he){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Re=this._tabBodyWrapper.nativeElement;Re.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Re.style.height=he+"px")}_removeTabBodyWrapperHeight(){const he=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=he.clientHeight,he.style.height="",this.animationDone.emit()}_handleClick(he,Re,En){he.disabled||(this.selectedIndex=Re.focusIndex=En)}_getTabIndex(he,Re){return he.disabled?null:Re===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(he,Re){he&&"mouse"!==he&&"touch"!==he&&(this._tabHeader.focusIndex=Re)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),Ne})(),We=(()=>{class Ne extends ze{constructor(he,Re,En,gi){super(he,Re,En,gi)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,ne,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._allTabs=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(Te,5),t.Gf(ae,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._tabBodyWrapper=En.first),t.iGM(En=t.CRH())&&(Re._tabHeader=En.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-group-dynamic-height",Re.dynamicHeight)("mat-tab-group-inverted-header","below"===Re.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:Ke,useExisting:Ne}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(he,Re){1&he&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(gi){return Re._focusChanged(gi)})("selectFocusedIndex",function(gi){return Re.selectedIndex=gi}),t.YNc(2,re,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,De,1,11,"mat-tab-body",5),t.qZA()),2&he&&(t.Q6J("selectedIndex",Re.selectedIndex||0)("disableRipple",Re.disableRipple)("disablePagination",Re.disablePagination),t.xp6(2),t.Q6J("ngForOf",Re._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(2),t.Q6J("ngForOf",Re._tabs))},dependencies:[T.mk,T.sg,T.O5,b.Pl,A.wG,d.kH,Oe,Jt,Bn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ne})(),en=0,le=(()=>{class Ne extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,gi,go,Re,En,_o,mn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement.classList;Re.remove(`mat-background-${this.backgroundColor}`),he&&Re.add(`mat-background-${he}`),this._backgroundColor=he}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const he=this._items.toArray();for(let Re=0;Re{class Ne extends le{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Ot,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(be,7),t.Gf(Le,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(he,Re){2&he&&(t.uIk("role",Re._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())("mat-primary","warn"!==Re.color&&"accent"!==Re.color)("mat-accent","accent"===Re.color)("mat-warn","warn"===Re.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:on,ngContentSelectors:Ft,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),Ne})();const Lt=(0,A.sb)((0,A.Kr)((0,A.Id)(class{})));let wt=(()=>{class Ne extends Lt{constructor(he,Re,En,gi,go,_o){super(),this._tabNavBar=he,this.elementRef=Re,this._focusMonitor=go,this._isActive=!1,this.id="mat-tab-link-"+en++,this.rippleConfig=En||{},this.tabIndex=parseInt(gi)||0,"NoopAnimations"===_o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(he){const Re=(0,Tt.Ig)(he);Re!==this._isActive&&(this._isActive=Re,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(he){this._tabNavBar.tabPanel&&he.keyCode===Et.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(le),t.Y36(t.SBq),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{active:"active",id:"id"},features:[t.qOj]}),Ne})(),Ot=(()=>{class Ne extends wt{constructor(he,Re,En,gi,go,_o,mn,An){super(he,Re,go,_o,mn,An),this._tabLinkRipple=new A.IR(this,En,Re,gi),this._tabLinkRipple.setupTriggerEvents(Re.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(je),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(he,Re){1&he&&t.NdJ("focus",function(){return Re._handleFocus()})("keydown",function(gi){return Re._handleKeydown(gi)}),2&he&&(t.uIk("aria-controls",Re._getAriaControls())("aria-current",Re._getAriaCurrent())("aria-disabled",Re.disabled)("aria-selected",Re._getAriaSelected())("id",Re.id)("tabIndex",Re._getTabIndex())("role",Re._getRole()),t.ekj("mat-tab-disabled",Re.disabled)("mat-tab-label-active",Re.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),Ne})(),Xe=(()=>{class Ne{}return Ne.\u0275fac=function(he){return new(he||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[T.ez,A.BQ,b.eL,A.si,p.Q8,d.rt,A.BQ]}),Ne})()},83683:(at,et,v)=>{"use strict";v.d(et,{Ye:()=>k,g0:()=>P});var d=v(94650),p=v(3238),b=v(83353),T=v(36895);const t=["*",[["mat-toolbar-row"]]],A=["*","mat-toolbar-row"],x=(0,p.pj)(class{constructor(F){this._elementRef=F}});let U=(()=>{class F{}return F.\u0275fac=function(J){return new(J||F)},F.\u0275dir=d.lG2({type:F,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),F})(),k=(()=>{class F extends x{constructor(J,K,ot){super(J),this._platform=K,this._document=ot}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return F.\u0275fac=function(J){return new(J||F)(d.Y36(d.SBq),d.Y36(b.t4),d.Y36(T.K0))},F.\u0275cmp=d.Xpm({type:F,selectors:[["mat-toolbar"]],contentQueries:function(J,K,ot){if(1&J&&d.Suo(ot,U,5),2&J){let lt;d.iGM(lt=d.CRH())&&(K._toolbarRows=lt)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(J,K){2&J&&d.ekj("mat-toolbar-multiple-rows",K._toolbarRows.length>0)("mat-toolbar-single-row",0===K._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:A,decls:2,vars:0,template:function(J,K){1&J&&(d.F$t(t),d.Hsn(0),d.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),F})(),P=(()=>{class F{}return F.\u0275fac=function(J){return new(J||F)},F.\u0275mod=d.oAB({type:F}),F.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),F})()},10266:(at,et,v)=>{"use strict";v.d(et,{AV:()=>be,gM:()=>se});var d=v(98184),p=v(12687),b=v(36895),T=v(94650),t=v(3238),A=v(67376),x=v(40445),U=v(21281),k=v(29521),D=v(62289),P=v(83353),F=v(84080),z=v(8929),J=v(7625),K=v(72986);v(37340);const lt=["tooltip"],Pt="tooltip-panel",zt=(0,P.i$)({passive:!0}),Tt=new T.OlP("mat-tooltip-scroll-strategy"),ft={provide:Tt,deps:[d.aV],useFactory:function At(qe){return()=>qe.scrollStrategies.reposition({scrollThrottle:20})}},Et=new T.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ft=(()=>{class qe{constructor(Xt,Te,ae,Kt,de,Wt,re,De,on,_n,Ae,gn){this._overlay=Xt,this._elementRef=Te,this._scrollDispatcher=ae,this._viewContainerRef=Kt,this._ngZone=de,this._platform=Wt,this._ariaDescriber=re,this._focusMonitor=De,this._dir=_n,this._defaultOptions=Ae,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new z.xQ,this._scrollStrategy=on,this._document=gn,Ae&&(Ae.position&&(this.position=Ae.position),Ae.touchGestures&&(this.touchGestures=Ae.touchGestures)),_n.change.pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Xt){Xt!==this._position&&(this._position=Xt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Xt){this._disabled=(0,U.Ig)(Xt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Xt){this._showDelay=(0,U.su)(Xt)}get hideDelay(){return this._hideDelay}set hideDelay(Xt){this._hideDelay=(0,U.su)(Xt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Xt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Xt?String(Xt).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(Xt){this._tooltipClass=Xt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,J.R)(this._destroyed)).subscribe(Xt=>{Xt?"keyboard"===Xt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Xt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Te,ae])=>{Xt.removeEventListener(Te,ae,zt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Xt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Xt)}show(Xt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Te=this._createOverlay();this._detach(),this._portal=this._portal||new F.C5(this._tooltipComponent,this._viewContainerRef);const ae=this._tooltipInstance=Te.attach(this._portal).instance;ae._triggerElement=this._elementRef.nativeElement,ae._mouseLeaveHideDelay=this._hideDelay,ae.afterHidden().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ae.show(Xt)}hide(Xt=this.hideDelay){const Te=this._tooltipInstance;Te&&(Te.isVisible()?Te.hide(Xt):(Te._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Xt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Te=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Xt);return Te.positionChanges.pipe((0,J.R)(this._destroyed)).subscribe(ae=>{this._updateCurrentPositionClass(ae.connectionPair),this._tooltipInstance&&ae.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Te,panelClass:`${this._cssClassPrefix}-${Pt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,J.R)(this._destroyed)).subscribe(ae=>{this._isTooltipVisible()&&ae.keyCode===k.hY&&!(0,k.Vb)(ae)&&(ae.preventDefault(),ae.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(Xt){const Te=Xt.getConfig().positionStrategy,ae=this._getOrigin(),Kt=this._getOverlayPosition();Te.withPositions([this._addOffset({...ae.main,...Kt.main}),this._addOffset({...ae.fallback,...Kt.fallback})])}_addOffset(Xt){return Xt}_getOrigin(){const Xt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ae;"above"==Te||"below"==Te?ae={originX:"center",originY:"above"==Te?"top":"bottom"}:"before"==Te||"left"==Te&&Xt||"right"==Te&&!Xt?ae={originX:"start",originY:"center"}:("after"==Te||"right"==Te&&Xt||"left"==Te&&!Xt)&&(ae={originX:"end",originY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.originX,ae.originY);return{main:ae,fallback:{originX:Kt,originY:de}}}_getOverlayPosition(){const Xt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ae;"above"==Te?ae={overlayX:"center",overlayY:"bottom"}:"below"==Te?ae={overlayX:"center",overlayY:"top"}:"before"==Te||"left"==Te&&Xt||"right"==Te&&!Xt?ae={overlayX:"end",overlayY:"center"}:("after"==Te||"right"==Te&&Xt||"left"==Te&&!Xt)&&(ae={overlayX:"start",overlayY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.overlayX,ae.overlayY);return{main:ae,fallback:{overlayX:Kt,overlayY:de}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,K.q)(1),(0,J.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Xt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Xt,this._tooltipInstance._markForCheck())}_invertPosition(Xt,Te){return"above"===this.position||"below"===this.position?"top"===Te?Te="bottom":"bottom"===Te&&(Te="top"):"end"===Xt?Xt="start":"start"===Xt&&(Xt="end"),{x:Xt,y:Te}}_updateCurrentPositionClass(Xt){const{overlayY:Te,originX:ae,originY:Kt}=Xt;let de;if(de="center"===Te?this._dir&&"rtl"===this._dir.value?"end"===ae?"left":"right":"start"===ae?"left":"right":"bottom"===Te&&"top"===Kt?"above":"below",de!==this._currentPosition){const Wt=this._overlayRef;if(Wt){const re=`${this._cssClassPrefix}-${Pt}-`;Wt.removePanelClass(re+this._currentPosition),Wt.addPanelClass(re+de)}this._currentPosition=de}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Xt=[];if(this._platformSupportsMouseEvents())Xt.push(["mouseleave",Te=>{const ae=Te.relatedTarget;(!ae||!this._overlayRef?.overlayElement.contains(ae))&&this.hide()}],["wheel",Te=>this._wheelListener(Te)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Te=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Xt.push(["touchend",Te],["touchcancel",Te])}this._addListeners(Xt),this._passiveListeners.push(...Xt)}_addListeners(Xt){Xt.forEach(([Te,ae])=>{this._elementRef.nativeElement.addEventListener(Te,ae,zt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Xt){if(this._isTooltipVisible()){const Te=this._document.elementFromPoint(Xt.clientX,Xt.clientY),ae=this._elementRef.nativeElement;Te!==ae&&!ae.contains(Te)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Xt=this.touchGestures;if("off"!==Xt){const Te=this._elementRef.nativeElement,ae=Te.style;("on"===Xt||"INPUT"!==Te.nodeName&&"TEXTAREA"!==Te.nodeName)&&(ae.userSelect=ae.msUserSelect=ae.webkitUserSelect=ae.MozUserSelect="none"),("on"===Xt||!Te.draggable)&&(ae.webkitUserDrag="none"),ae.touchAction="none",ae.webkitTapHighlightColor="transparent"}}}return qe.\u0275fac=function(Xt){T.$Z()},qe.\u0275dir=T.lG2({type:qe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),qe})(),se=(()=>{class qe extends Ft{constructor(Xt,Te,ae,Kt,de,Wt,re,De,on,_n,Ae,gn){super(Xt,Te,ae,Kt,de,Wt,re,De,on,_n,Ae,gn),this._tooltipComponent=ve}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(d.aV),T.Y36(T.SBq),T.Y36(A.mF),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(P.t4),T.Y36(p.$s),T.Y36(p.tE),T.Y36(Tt),T.Y36(x.Is,8),T.Y36(Et,8),T.Y36(b.K0))},qe.\u0275dir=T.lG2({type:qe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[T.qOj]}),qe})(),jt=(()=>{class qe{constructor(Xt,Te){this._changeDetectorRef=Xt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.xQ,this._animationsDisabled="NoopAnimations"===Te}show(Xt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Xt)}hide(Xt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Xt)}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:Xt}){(!Xt||!this._triggerElement.contains(Xt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Xt}){(Xt===this._showAnimation||Xt===this._hideAnimation)&&this._finalizeAnimation(Xt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Xt){Xt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Xt){const Te=this._tooltip.nativeElement,ae=this._showAnimation,Kt=this._hideAnimation;if(Te.classList.remove(Xt?Kt:ae),Te.classList.add(Xt?ae:Kt),this._isVisible=Xt,Xt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const de=getComputedStyle(Te);("0s"===de.getPropertyValue("animation-duration")||"none"===de.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Xt&&this._onShow(),this._animationsDisabled&&(Te.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Xt))}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(T.QbO,8))},qe.\u0275dir=T.lG2({type:qe}),qe})(),ve=(()=>{class qe extends jt{constructor(Xt,Te,ae){super(Xt,ae),this._breakpointObserver=Te,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(D.Yg),T.Y36(T.QbO,8))},qe.\u0275cmp=T.Xpm({type:qe,selectors:[["mat-tooltip-component"]],viewQuery:function(Xt,Te){if(1&Xt&&T.Gf(lt,7),2&Xt){let ae;T.iGM(ae=T.CRH())&&(Te._tooltip=ae.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Xt,Te){1&Xt&&T.NdJ("mouseleave",function(Kt){return Te._handleMouseLeave(Kt)}),2&Xt&&T.Udp("zoom",Te.isVisible()?1:null)},features:[T.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Xt,Te){if(1&Xt&&(T.TgZ(0,"div",0,1),T.NdJ("animationend",function(Kt){return Te._handleAnimationEnd(Kt)}),T.ALo(2,"async"),T._uU(3),T.qZA()),2&Xt){let ae;T.ekj("mat-tooltip-handset",null==(ae=T.lcZ(2,4,Te._isHandset))?null:ae.matches),T.Q6J("ngClass",Te.tooltipClass),T.xp6(3),T.Oqu(Te.message)}},dependencies:[b.mk,b.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),qe})(),be=(()=>{class qe{}return qe.\u0275fac=function(Xt){return new(Xt||qe)},qe.\u0275mod=T.oAB({type:qe}),qe.\u0275inj=T.cJS({providers:[ft],imports:[p.rt,b.ez,d.U8,t.BQ,t.BQ,A.ZD]}),qe})()},35423:(at,et,v)=>{"use strict";v.d(et,{Ar:()=>K,GZ:()=>z,JZ:()=>Pt,WX:()=>Vt,ah:()=>J,dp:()=>Dt,eu:()=>lt,fQ:()=>F,gi:()=>ot,kc:()=>zt,uo:()=>P});var d=v(57851),p=v(94650),b=v(3238),T=v(21281),t=v(95017),A=v(591),x=v(36787),U=v(72986),k=v(24850);const D=(0,b.sb)((0,b.Id)(d.Hs));let P=(()=>{class it extends D{constructor(At,ft,Et){super(At,ft),this.tabIndex=Number(Et)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return it.\u0275fac=function(At){return new(At||it)(p.Y36(p.SBq),p.Y36(d._0),p.$8M("tabindex"))},it.\u0275dir=p.lG2({type:it,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[p._Bn([{provide:d.Hs,useExisting:it}]),p.qOj]}),it})(),F=(()=>{class it extends d.rO{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:d.rO,useExisting:it}]),p.qOj]}),it})(),z=(()=>{class it extends d.Xx{constructor(At,ft,Et,Bt){super(At,ft,Et),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(At){this._tabIndex=At??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return it.\u0275fac=function(At){return new(At||it)(p.Y36(p.SBq),p.Y36(d._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},it.\u0275dir=p.lG2({type:it,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[p._Bn([{provide:d.Xx,useExisting:it},{provide:d.Hs,useExisting:it},{provide:d.HI,useExisting:it}]),p.qOj]}),it})(),J=(()=>{class it extends d.XJ{get level(){return this._level}set level(At){this._setLevelInput(At)}get indent(){return this._indent}set indent(At){this._setIndentInput(At)}}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:d.XJ,useExisting:it}]),p.qOj]}),it})(),K=(()=>{class it{constructor(At,ft){this.viewContainer=At,this._node=ft}}return it.\u0275fac=function(At){return new(At||it)(p.Y36(p.s_b),p.Y36(d.HI,8))},it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:d.cu,useExisting:it}])]}),it})(),ot=(()=>{class it extends d._0{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275cmp=p.Xpm({type:it,selectors:[["mat-tree"]],viewQuery:function(At,ft){if(1&At&&p.Gf(K,7),2&At){let Et;p.iGM(Et=p.CRH())&&(ft._nodeOutlet=Et.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:d._0,useExisting:it}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(At,ft){1&At&&p.GkF(0,0)},dependencies:[K],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),it})(),lt=(()=>{class it extends d.Ud{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:d.Ud,useExisting:it}]),p.qOj]}),it})(),Dt=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=p.oAB({type:it}),it.\u0275inj=p.cJS({imports:[d.nZ,b.BQ,b.BQ]}),it})();class Pt{constructor(Tt,At,ft,Et){this.transformFunction=Tt,this.getLevel=At,this.isExpandable=ft,this.getChildren=Et}_flattenNode(Tt,At,ft,Et){const Bt=this.transformFunction(Tt,At);if(ft.push(Bt),this.isExpandable(Bt)){const Ft=this.getChildren(Tt);Ft&&(Array.isArray(Ft)?this._flattenChildren(Ft,At,ft,Et):Ft.pipe((0,U.q)(1)).subscribe(se=>{this._flattenChildren(se,At,ft,Et)}))}return ft}_flattenChildren(Tt,At,ft,Et){Tt.forEach((Bt,Ft)=>{let se=Et.slice();se.push(Ft!=Tt.length-1),this._flattenNode(Bt,At+1,ft,se)})}flattenNodes(Tt){let At=[];return Tt.forEach(ft=>this._flattenNode(ft,0,At,[])),At}expandFlattenedNodes(Tt,At){let ft=[],Et=[];return Et[0]=!0,Tt.forEach(Bt=>{let Ft=!0;for(let se=0;se<=this.getLevel(Bt);se++)Ft=Ft&&Et[se];Ft&&ft.push(Bt),this.isExpandable(Bt)&&(Et[this.getLevel(Bt)+1]=At.isExpanded(Bt))}),ft}}class zt extends t.o2{constructor(Tt,At,ft){super(),this._treeControl=Tt,this._treeFlattener=At,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ft&&(this.data=ft)}get data(){return this._data.value}set data(Tt){this._data.next(Tt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Tt){return(0,x.T)(Tt.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,k.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Vt extends t.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Tt){this._data.next(Tt)}connect(Tt){return(0,x.T)(Tt.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},11481:(at,et,v)=>{"use strict";v.d(et,{Dx:()=>oe,H7:()=>En,b2:()=>ne,q6:()=>oi,se:()=>jt});var d=v(36895),p=v(94650);class b extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends b{static makeCurrent(){(0,d.HT)(new T)}onAndCancel(An,sn,ei){return An.addEventListener(sn,ei,!1),()=>{An.removeEventListener(sn,ei,!1)}}dispatchEvent(An,sn){An.dispatchEvent(sn)}remove(An){An.parentNode&&An.parentNode.removeChild(An)}createElement(An,sn){return(sn=sn||this.getDefaultDocument()).createElement(An)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(An){return An.nodeType===Node.ELEMENT_NODE}isShadowRoot(An){return An instanceof DocumentFragment}getGlobalEventTarget(An,sn){return"window"===sn?window:"document"===sn?An:"body"===sn?An.body:null}getBaseHref(An){const sn=function A(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==sn?null:function U(mn){x=x||document.createElement("a"),x.setAttribute("href",mn);const An=x.pathname;return"/"===An.charAt(0)?An:`/${An}`}(sn)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(An){return(0,d.Mx)(document.cookie,An)}}let x,t=null;const k=new p.OlP("TRANSITION_ID"),P=[{provide:p.ip1,useFactory:function D(mn,An,sn){return()=>{sn.get(p.CZH).donePromise.then(()=>{const ei=(0,d.q)(),Zi=An.querySelectorAll(`style[ng-transition="${mn}"]`);for(let bo=0;bo{class mn{build(){return new XMLHttpRequest}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const J=new p.OlP("EventManagerPlugins");let K=(()=>{class mn{constructor(sn,ei){this._zone=ei,this._eventNameToPlugin=new Map,sn.forEach(Zi=>Zi.manager=this),this._plugins=sn.slice().reverse()}addEventListener(sn,ei,Zi){return this._findPluginFor(ei).addEventListener(sn,ei,Zi)}addGlobalEventListener(sn,ei,Zi){return this._findPluginFor(ei).addGlobalEventListener(sn,ei,Zi)}getZone(){return this._zone}_findPluginFor(sn){const ei=this._eventNameToPlugin.get(sn);if(ei)return ei;const Zi=this._plugins;for(let bo=0;bo{class mn{constructor(){this._stylesSet=new Set}addStyles(sn){const ei=new Set;sn.forEach(Zi=>{this._stylesSet.has(Zi)||(this._stylesSet.add(Zi),ei.add(Zi))}),this.onStylesAdded(ei)}onStylesAdded(sn){}getAllStyles(){return Array.from(this._stylesSet)}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})(),vt=(()=>{class mn extends lt{constructor(sn){super(),this._doc=sn,this._hostNodes=new Map,this._hostNodes.set(sn.head,[])}_addStylesToHost(sn,ei,Zi){sn.forEach(bo=>{const No=this._doc.createElement("style");No.textContent=bo,Zi.push(ei.appendChild(No))})}addHost(sn){const ei=[];this._addStylesToHost(this._stylesSet,sn,ei),this._hostNodes.set(sn,ei)}removeHost(sn){const ei=this._hostNodes.get(sn);ei&&ei.forEach(Dt),this._hostNodes.delete(sn)}onStylesAdded(sn){this._hostNodes.forEach((ei,Zi)=>{this._addStylesToHost(sn,Zi,ei)})}ngOnDestroy(){this._hostNodes.forEach(sn=>sn.forEach(Dt))}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();function Dt(mn){(0,d.q)().remove(mn)}const Pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},zt=/%COMP%/g;function Bt(mn,An,sn){for(let ei=0;ei{if("__ngUnwrap__"===An)return mn;!1===mn(An)&&(An.preventDefault(),An.returnValue=!1)}}let jt=(()=>{class mn{constructor(sn,ei,Zi){this.eventManager=sn,this.sharedStylesHost=ei,this.appId=Zi,this.rendererByCompId=new Map,this.defaultRenderer=new ve(sn)}createRenderer(sn,ei){if(!sn||!ei)return this.defaultRenderer;switch(ei.encapsulation){case p.ifc.Emulated:{let Zi=this.rendererByCompId.get(ei.id);return Zi||(Zi=new $e(this.eventManager,this.sharedStylesHost,ei,this.appId),this.rendererByCompId.set(ei.id,Zi)),Zi.applyToHost(sn),Zi}case 1:case p.ifc.ShadowDom:return new Xt(this.eventManager,this.sharedStylesHost,sn,ei);default:if(!this.rendererByCompId.has(ei.id)){const Zi=Bt(ei.id,ei.styles,[]);this.sharedStylesHost.addStyles(Zi),this.rendererByCompId.set(ei.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(K),p.LFG(vt),p.LFG(p.AFp))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();class ve{constructor(An){this.eventManager=An,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(An,sn){return sn?document.createElementNS(Pt[sn]||sn,An):document.createElement(An)}createComment(An){return document.createComment(An)}createText(An){return document.createTextNode(An)}appendChild(An,sn){(qe(An)?An.content:An).appendChild(sn)}insertBefore(An,sn,ei){An&&(qe(An)?An.content:An).insertBefore(sn,ei)}removeChild(An,sn){An&&An.removeChild(sn)}selectRootElement(An,sn){let ei="string"==typeof An?document.querySelector(An):An;if(!ei)throw new Error(`The selector "${An}" did not match any elements`);return sn||(ei.textContent=""),ei}parentNode(An){return An.parentNode}nextSibling(An){return An.nextSibling}setAttribute(An,sn,ei,Zi){if(Zi){sn=Zi+":"+sn;const bo=Pt[Zi];bo?An.setAttributeNS(bo,sn,ei):An.setAttribute(sn,ei)}else An.setAttribute(sn,ei)}removeAttribute(An,sn,ei){if(ei){const Zi=Pt[ei];Zi?An.removeAttributeNS(Zi,sn):An.removeAttribute(`${ei}:${sn}`)}else An.removeAttribute(sn)}addClass(An,sn){An.classList.add(sn)}removeClass(An,sn){An.classList.remove(sn)}setStyle(An,sn,ei,Zi){Zi&(p.JOm.DashCase|p.JOm.Important)?An.style.setProperty(sn,ei,Zi&p.JOm.Important?"important":""):An.style[sn]=ei}removeStyle(An,sn,ei){ei&p.JOm.DashCase?An.style.removeProperty(sn):An.style[sn]=""}setProperty(An,sn,ei){An[sn]=ei}setValue(An,sn){An.nodeValue=sn}listen(An,sn,ei){return"string"==typeof An?this.eventManager.addGlobalEventListener(An,sn,Ft(ei)):this.eventManager.addEventListener(An,sn,Ft(ei))}}function qe(mn){return"TEMPLATE"===mn.tagName&&void 0!==mn.content}class $e extends ve{constructor(An,sn,ei,Zi){super(An),this.component=ei;const bo=Bt(Zi+"-"+ei.id,ei.styles,[]);sn.addStyles(bo),this.contentAttr=function ft(mn){return"_ngcontent-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id),this.hostAttr=function Et(mn){return"_nghost-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id)}applyToHost(An){super.setAttribute(An,this.hostAttr,"")}createElement(An,sn){const ei=super.createElement(An,sn);return super.setAttribute(ei,this.contentAttr,""),ei}}class Xt extends ve{constructor(An,sn,ei,Zi){super(An),this.sharedStylesHost=sn,this.hostEl=ei,this.shadowRoot=ei.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const bo=Bt(Zi.id,Zi.styles,[]);for(let No=0;No{class mn extends ot{constructor(sn){super(sn)}supports(sn){return!0}addEventListener(sn,ei,Zi){return sn.addEventListener(ei,Zi,!1),()=>this.removeEventListener(sn,ei,Zi)}removeEventListener(sn,ei,Zi){return sn.removeEventListener(ei,Zi)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const ae=["alt","control","meta","shift"],Kt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},de={alt:mn=>mn.altKey,control:mn=>mn.ctrlKey,meta:mn=>mn.metaKey,shift:mn=>mn.shiftKey};let Wt=(()=>{class mn extends ot{constructor(sn){super(sn)}supports(sn){return null!=mn.parseEventName(sn)}addEventListener(sn,ei,Zi){const bo=mn.parseEventName(ei),No=mn.eventCallback(bo.fullKey,Zi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(sn,bo.domEventName,No))}static parseEventName(sn){const ei=sn.toLowerCase().split("."),Zi=ei.shift();if(0===ei.length||"keydown"!==Zi&&"keyup"!==Zi)return null;const bo=mn._normalizeKey(ei.pop());let No="",ua=ei.indexOf("code");if(ua>-1&&(ei.splice(ua,1),No="code."),ae.forEach(fr=>{const Je=ei.indexOf(fr);Je>-1&&(ei.splice(Je,1),No+=fr+".")}),No+=bo,0!=ei.length||0===bo.length)return null;const qa={};return qa.domEventName=Zi,qa.fullKey=No,qa}static matchEventFullKeyCode(sn,ei){let Zi=Kt[sn.key]||sn.key,bo="";return ei.indexOf("code.")>-1&&(Zi=sn.code,bo="code."),!(null==Zi||!Zi)&&(Zi=Zi.toLowerCase()," "===Zi?Zi="space":"."===Zi&&(Zi="dot"),ae.forEach(No=>{No!==Zi&&(0,de[No])(sn)&&(bo+=No+".")}),bo+=Zi,bo===ei)}static eventCallback(sn,ei,Zi){return bo=>{mn.matchEventFullKeyCode(bo,sn)&&Zi.runGuarded(()=>ei(bo))}}static _normalizeKey(sn){return"esc"===sn?"escape":sn}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const oi=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function gn(){T.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function un(){return(0,p.RDi)(document),document},deps:[]}]),vi=new p.OlP(""),si=[{provide:p.rWj,useClass:class F{addToWindow(An){p.dqk.getAngularTestability=(ei,Zi=!0)=>{const bo=An.findTestabilityInTree(ei,Zi);if(null==bo)throw new Error("Could not find testability for element.");return bo},p.dqk.getAllAngularTestabilities=()=>An.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>An.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ei=>{const Zi=p.dqk.getAllAngularTestabilities();let bo=Zi.length,No=!1;const ua=function(qa){No=No||qa,bo--,0==bo&&ei(No)};Zi.forEach(function(qa){qa.whenStable(ua)})})}findTestabilityInTree(An,sn,ei){return null==sn?null:An.getTestability(sn)??(ei?(0,d.q)().isShadowRoot(sn)?this.findTestabilityInTree(An,sn.host,!0):this.findTestabilityInTree(An,sn.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Ke=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function we(){return new p.qLn},deps:[]},{provide:J,useClass:Te,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:J,useClass:Wt,multi:!0,deps:[d.K0]},{provide:jt,useClass:jt,deps:[K,vt,p.AFp]},{provide:p.FYo,useExisting:jt},{provide:lt,useExisting:vt},{provide:vt,useClass:vt,deps:[d.K0]},{provide:K,useClass:K,deps:[J,p.R0b]},{provide:d.JF,useClass:z,deps:[]},[]];let ne=(()=>{class mn{constructor(sn){}static withServerTransition(sn){return{ngModule:mn,providers:[{provide:p.AFp,useValue:sn.appId},{provide:k,useExisting:p.AFp},P]}}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(vi,12))},mn.\u0275mod=p.oAB({type:mn}),mn.\u0275inj=p.cJS({providers:[...Ke,...si],imports:[d.ez,p.hGG]}),mn})(),oe=(()=>{class mn{constructor(sn){this._doc=sn}getTitle(){return this._doc.title}setTitle(sn){this._doc.title=sn||""}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function Jt(){return new oe((0,p.LFG)(d.K0))}(),ei},providedIn:"root"}),mn})();typeof window<"u"&&window;let En=(()=>{class mn{}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new(sn||mn):p.LFG(go),ei},providedIn:"root"}),mn})(),go=(()=>{class mn extends En{constructor(sn){super(),this._doc=sn}sanitize(sn,ei){if(null==ei)return null;switch(sn){case p.q3G.NONE:return ei;case p.q3G.HTML:return(0,p.qzn)(ei,"HTML")?(0,p.z3N)(ei):(0,p.EiD)(this._doc,String(ei)).toString();case p.q3G.STYLE:return(0,p.qzn)(ei,"Style")?(0,p.z3N)(ei):ei;case p.q3G.SCRIPT:if((0,p.qzn)(ei,"Script"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ei,"URL")?(0,p.z3N)(ei):(0,p.mCW)(String(ei));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ei,"ResourceURL"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${sn} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(sn){return(0,p.JVY)(sn)}bypassSecurityTrustStyle(sn){return(0,p.L6k)(sn)}bypassSecurityTrustScript(sn){return(0,p.eBb)(sn)}bypassSecurityTrustUrl(sn){return(0,p.LAX)(sn)}bypassSecurityTrustResourceUrl(sn){return(0,p.pB0)(sn)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function gi(mn){return new go(mn.get(d.K0))}(p.LFG(p.zs3)),ei},providedIn:"root"}),mn})()},83689:(at,et,v)=>{"use strict";v.d(et,{gz:()=>Vs,m2:()=>Er,wN:()=>xo,F0:()=>Cs,rH:()=>$a,Od:()=>xc,yS:()=>su,Bz:()=>__,lC:()=>pr});var d=v(94650),p=v(5254),b=v(21086),T=v(591),t=v(84450),A=v(23426),x=v(61221),U=v(88514),k=v(4843),D=v(61737),P=v(56498),F=v(68896),z=v(71762),J=v(8929),K=v(36895),ot=v(24850),lt=v(87545),vt=v(72986),Dt=v(1059),Pt=v(92198),zt=v(61709),Vt=v(87224),it=v(21406),Tt=v(22868),At=v(27221),ft=v(43489);function Et(bt,yt){let pt=!1;return arguments.length>=2&&(pt=!0),function(ie){return ie.lift(new Bt(bt,yt,pt))}}class Bt{constructor(yt,pt,Yt=!1){this.accumulator=yt,this.seed=pt,this.hasSeed=Yt}call(yt,pt){return pt.subscribe(new Ft(yt,this.accumulator,this.seed,this.hasSeed))}}class Ft extends ft.L{constructor(yt,pt,Yt,ie){super(yt),this.accumulator=pt,this._seed=Yt,this.hasSeed=ie,this.index=0}get seed(){return this._seed}set seed(yt){this.hasSeed=!0,this._seed=yt}_next(yt){if(this.hasSeed)return this._tryNext(yt);this.seed=yt,this.destination.next(yt)}_tryNext(yt){const pt=this.index++;let Yt;try{Yt=this.accumulator(this.seed,yt,pt)}catch(ie){this.destination.error(ie)}this.seed=Yt,this.destination.next(Yt)}}var se=v(94231);function jt(bt){return function(pt){return 0===bt?(0,F.c)():pt.lift(new ve(bt))}}class ve{constructor(yt){if(this.total=yt,this.total<0)throw new se.W}call(yt,pt){return pt.subscribe(new be(yt,this.total))}}class be extends ft.L{constructor(yt,pt){super(yt),this.total=pt,this.ring=new Array,this.count=0}_next(yt){const pt=this.ring,Yt=this.total,ie=this.count++;pt.length0){const Yt=this.count>=this.total?this.total:this.count,ie=this.ring;for(let ke=0;ke=2;return Yt=>Yt.pipe(bt?(0,Pt.h)((ie,ke)=>bt(ie,ke,Yt)):$e.y,jt(1),pt?(0,qe.d)(yt):(0,Le.T)(()=>new t.K))}var Te=v(44290),ae=v(77604),Kt=v(40537),de=v(74327),Wt=v(89146),re=v(11481);const De="primary",on=Symbol("RouteTitle");class _n{constructor(yt){this.params=yt||{}}has(yt){return Object.prototype.hasOwnProperty.call(this.params,yt)}get(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt[0]:pt}return null}getAll(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt:[pt]}return[]}get keys(){return Object.keys(this.params)}}function Ae(bt){return new _n(bt)}function gn(bt,yt,pt){const Yt=pt.path.split("/");if(Yt.length>bt.length||"full"===pt.pathMatch&&(yt.hasChildren()||Yt.lengthYt[ke]===ie)}return bt===yt}function oi(bt){return Array.prototype.concat.apply([],bt)}function vi(bt){return bt.length>0?bt[bt.length-1]:null}function Ke(bt,yt){for(const pt in bt)bt.hasOwnProperty(pt)&&yt(bt[pt],pt)}function ne(bt){return(0,d.CqO)(bt)?bt:(0,d.QGY)(bt)?(0,p.D)(Promise.resolve(bt)):(0,b.of)(bt)}const kt={exact:function Oe(bt,yt,pt){if(!Ye(bt.segments,yt.segments)||!Li(bt.segments,yt.segments,pt)||bt.numberOfChildren!==yt.numberOfChildren)return!1;for(const Yt in yt.children)if(!bt.children[Yt]||!Oe(bt.children[Yt],yt.children[Yt],pt))return!1;return!0},subset:Sn},Jt={exact:function Ce(bt,yt){return un(bt,yt)},subset:function Dn(bt,yt){return Object.keys(yt).length<=Object.keys(bt).length&&Object.keys(yt).every(pt=>Un(bt[pt],yt[pt]))},ignored:()=>!0};function oe(bt,yt,pt){return kt[pt.paths](bt.root,yt.root,pt.matrixParams)&&Jt[pt.queryParams](bt.queryParams,yt.queryParams)&&!("exact"===pt.fragment&&bt.fragment!==yt.fragment)}function Sn(bt,yt,pt){return mi(bt,yt,yt.segments,pt)}function mi(bt,yt,pt,Yt){if(bt.segments.length>pt.length){const ie=bt.segments.slice(0,pt.length);return!(!Ye(ie,pt)||yt.hasChildren()||!Li(ie,pt,Yt))}if(bt.segments.length===pt.length){if(!Ye(bt.segments,pt)||!Li(bt.segments,pt,Yt))return!1;for(const ie in yt.children)if(!bt.children[ie]||!Sn(bt.children[ie],yt.children[ie],Yt))return!1;return!0}{const ie=pt.slice(0,bt.segments.length),ke=pt.slice(bt.segments.length);return!!(Ye(bt.segments,ie)&&Li(bt.segments,ie,Yt)&&bt.children[De])&&mi(bt.children[De],yt,ke,Yt)}}function Li(bt,yt,pt){return yt.every((Yt,ie)=>Jt[pt](bt[ie].parameters,Yt.parameters))}class ho{constructor(yt,pt,Yt){this.root=yt,this.queryParams=pt,this.fragment=Yt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ae(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class fi{constructor(yt,pt){this.segments=yt,this.children=pt,this.parent=null,Ke(pt,(Yt,ie)=>Yt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return le(this)}}class Bn{constructor(yt,pt){this.path=yt,this.parameters=pt}get parameterMap(){return this._parameterMap||(this._parameterMap=Ae(this.parameters)),this._parameterMap}toString(){return Tn(this)}}function Ye(bt,yt){return bt.length===yt.length&&bt.every((pt,Yt)=>pt.path===yt[Yt].path)}let ze=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275prov=d.Yz7({token:bt,factory:function(){return new We},providedIn:"root"}),bt})();class We{parse(yt){const pt=new sn(yt);return new ho(pt.parseRootSegment(),pt.parseQueryParams(),pt.parseFragment())}serialize(yt){const pt=`/${je(yt.root,!0)}`,Yt=function Re(bt){const yt=Object.keys(bt).map(pt=>{const Yt=bt[pt];return Array.isArray(Yt)?Yt.map(ie=>`${wt(pt)}=${wt(ie)}`).join("&"):`${wt(pt)}=${wt(Yt)}`}).filter(pt=>!!pt);return yt.length?`?${yt.join("&")}`:""}(yt.queryParams);return`${pt}${Yt}${"string"==typeof yt.fragment?`#${function Ot(bt){return encodeURI(bt)}(yt.fragment)}`:""}`}}const en=new We;function le(bt){return bt.segments.map(yt=>Tn(yt)).join("/")}function je(bt,yt){if(!bt.hasChildren())return le(bt);if(yt){const pt=bt.children[De]?je(bt.children[De],!1):"",Yt=[];return Ke(bt.children,(ie,ke)=>{ke!==De&&Yt.push(`${ke}:${je(ie,!1)}`)}),Yt.length>0?`${pt}(${Yt.join("//")})`:pt}{const pt=function fn(bt,yt){let pt=[];return Ke(bt.children,(Yt,ie)=>{ie===De&&(pt=pt.concat(yt(Yt,ie)))}),Ke(bt.children,(Yt,ie)=>{ie!==De&&(pt=pt.concat(yt(Yt,ie)))}),pt}(bt,(Yt,ie)=>ie===De?[je(bt.children[De],!1)]:[`${ie}:${je(Yt,!1)}`]);return 1===Object.keys(bt.children).length&&null!=bt.children[De]?`${le(bt)}/${pt[0]}`:`${le(bt)}/(${pt.join("//")})`}}function Lt(bt){return encodeURIComponent(bt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wt(bt){return Lt(bt).replace(/%3B/gi,";")}function ye(bt){return Lt(bt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xe(bt){return decodeURIComponent(bt)}function Ne(bt){return Xe(bt.replace(/\+/g,"%20"))}function Tn(bt){return`${ye(bt.path)}${function he(bt){return Object.keys(bt).map(yt=>`;${ye(yt)}=${ye(bt[yt])}`).join("")}(bt.parameters)}`}const En=/^[^\/()?;=#]+/;function gi(bt){const yt=bt.match(En);return yt?yt[0]:""}const go=/^[^=?&#]+/,mn=/^[^&#]+/;class sn{constructor(yt){this.url=yt,this.remaining=yt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fi([],{}):new fi([],this.parseChildren())}parseQueryParams(){const yt={};if(this.consumeOptional("?"))do{this.parseQueryParam(yt)}while(this.consumeOptional("&"));return yt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const yt=[];for(this.peekStartsWith("(")||yt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),yt.push(this.parseSegment());let pt={};this.peekStartsWith("/(")&&(this.capture("/"),pt=this.parseParens(!0));let Yt={};return this.peekStartsWith("(")&&(Yt=this.parseParens(!1)),(yt.length>0||Object.keys(pt).length>0)&&(Yt[De]=new fi(yt,pt)),Yt}parseSegment(){const yt=gi(this.remaining);if(""===yt&&this.peekStartsWith(";"))throw new d.vHH(4009,!1);return this.capture(yt),new Bn(Xe(yt),this.parseMatrixParams())}parseMatrixParams(){const yt={};for(;this.consumeOptional(";");)this.parseParam(yt);return yt}parseParam(yt){const pt=gi(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const ie=gi(this.remaining);ie&&(Yt=ie,this.capture(Yt))}yt[Xe(pt)]=Xe(Yt)}parseQueryParam(yt){const pt=function _o(bt){const yt=bt.match(go);return yt?yt[0]:""}(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const kn=function An(bt){const yt=bt.match(mn);return yt?yt[0]:""}(this.remaining);kn&&(Yt=kn,this.capture(Yt))}const ie=Ne(pt),ke=Ne(Yt);if(yt.hasOwnProperty(ie)){let kn=yt[ie];Array.isArray(kn)||(kn=[kn],yt[ie]=kn),kn.push(ke)}else yt[ie]=ke}parseParens(yt){const pt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Yt=gi(this.remaining),ie=this.remaining[Yt.length];if("/"!==ie&&")"!==ie&&";"!==ie)throw new d.vHH(4010,!1);let ke;Yt.indexOf(":")>-1?(ke=Yt.slice(0,Yt.indexOf(":")),this.capture(ke),this.capture(":")):yt&&(ke=De);const kn=this.parseChildren();pt[ke]=1===Object.keys(kn).length?kn[De]:new fi([],kn),this.consumeOptional("//")}return pt}peekStartsWith(yt){return this.remaining.startsWith(yt)}consumeOptional(yt){return!!this.peekStartsWith(yt)&&(this.remaining=this.remaining.substring(yt.length),!0)}capture(yt){if(!this.consumeOptional(yt))throw new d.vHH(4011,!1)}}function ei(bt){return bt.segments.length>0?new fi([],{[De]:bt}):bt}function Zi(bt){const yt={};for(const Yt of Object.keys(bt.children)){const ke=Zi(bt.children[Yt]);(ke.segments.length>0||ke.hasChildren())&&(yt[Yt]=ke)}return function bo(bt){if(1===bt.numberOfChildren&&bt.children[De]){const yt=bt.children[De];return new fi(bt.segments.concat(yt.segments),yt.children)}return bt}(new fi(bt.segments,yt))}function No(bt){return bt instanceof ho}function Fn(bt,yt,pt,Yt,ie){if(0===pt.length)return dn(yt.root,yt.root,yt.root,Yt,ie);const ke=function Q(bt){if("string"==typeof bt[0]&&1===bt.length&&"/"===bt[0])return new Rt(!0,0,bt);let yt=0,pt=!1;const Yt=bt.reduce((ie,ke,kn)=>{if("object"==typeof ke&&null!=ke){if(ke.outlets){const In={};return Ke(ke.outlets,(Fi,ji)=>{In[ji]="string"==typeof Fi?Fi.split("/"):Fi}),[...ie,{outlets:In}]}if(ke.segmentPath)return[...ie,ke.segmentPath]}return"string"!=typeof ke?[...ie,ke]:0===kn?(ke.split("/").forEach((In,Fi)=>{0==Fi&&"."===In||(0==Fi&&""===In?pt=!0:".."===In?yt++:""!=In&&ie.push(In))}),ie):[...ie,ke]},[]);return new Rt(pt,yt,Yt)}(pt);return ke.toRoot()?dn(yt.root,yt.root,new fi([],{}),Yt,ie):function kn(Fi){const ji=function Rn(bt,yt,pt,Yt){if(bt.isAbsolute)return new Nt(yt.root,!0,0);if(-1===Yt)return new Nt(pt,pt===yt.root,0);return function Qi(bt,yt,pt){let Yt=bt,ie=yt,ke=pt;for(;ke>ie;){if(ke-=ie,Yt=Yt.parent,!Yt)throw new d.vHH(4005,!1);ie=Yt.segments.length}return new Nt(Yt,!1,ie-ke)}(pt,Yt+(He(bt.commands[0])?0:1),bt.numberOfDoubleDots)}(ke,yt,bt.snapshot?._urlSegment,Fi),Sa=ji.processChildren?vr(ji.segmentGroup,ji.index,ke.commands):gr(ji.segmentGroup,ji.index,ke.commands);return dn(yt.root,ji.segmentGroup,Sa,Yt,ie)}(bt.snapshot?._lastPathIndex)}function He(bt){return"object"==typeof bt&&null!=bt&&!bt.outlets&&!bt.segmentPath}function Me(bt){return"object"==typeof bt&&null!=bt&&bt.outlets}function dn(bt,yt,pt,Yt,ie){let kn,ke={};Yt&&Ke(Yt,(Fi,ji)=>{ke[ji]=Array.isArray(Fi)?Fi.map(Sa=>`${Sa}`):`${Fi}`}),kn=bt===yt?pt:tt(bt,yt,pt);const In=ei(Zi(kn));return new ho(In,ke,ie)}function tt(bt,yt,pt){const Yt={};return Ke(bt.children,(ie,ke)=>{Yt[ke]=ie===yt?pt:tt(ie,yt,pt)}),new fi(bt.segments,Yt)}class Rt{constructor(yt,pt,Yt){if(this.isAbsolute=yt,this.numberOfDoubleDots=pt,this.commands=Yt,yt&&Yt.length>0&&He(Yt[0]))throw new d.vHH(4003,!1);const ie=Yt.find(Me);if(ie&&ie!==vi(Yt))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nt{constructor(yt,pt,Yt){this.segmentGroup=yt,this.processChildren=pt,this.index=Yt}}function gr(bt,yt,pt){if(bt||(bt=new fi([],{})),0===bt.segments.length&&bt.hasChildren())return vr(bt,yt,pt);const Yt=function us(bt,yt,pt){let Yt=0,ie=yt;const ke={match:!1,pathIndex:0,commandIndex:0};for(;ie=pt.length)return ke;const kn=bt.segments[ie],In=pt[Yt];if(Me(In))break;const Fi=`${In}`,ji=Yt0&&void 0===Fi)break;if(Fi&&ji&&"object"==typeof ji&&void 0===ji.outlets){if(!dr(Fi,ji,kn))return ke;Yt+=2}else{if(!dr(Fi,{},kn))return ke;Yt++}ie++}return{match:!0,pathIndex:ie,commandIndex:Yt}}(bt,yt,pt),ie=pt.slice(Yt.commandIndex);if(Yt.match&&Yt.pathIndex{"string"==typeof ke&&(ke=[ke]),null!==ke&&(ie[kn]=gr(bt.children[kn],yt,ke))}),Ke(bt.children,(ke,kn)=>{void 0===Yt[kn]&&(ie[kn]=ke)}),new fi(bt.segments,ie)}}function ir(bt,yt,pt){const Yt=bt.segments.slice(0,yt);let ie=0;for(;ie{"string"==typeof pt&&(pt=[pt]),null!==pt&&(yt[Yt]=ir(new fi([],{}),0,pt))}),yt}function fc(bt){const yt={};return Ke(bt,(pt,Yt)=>yt[Yt]=`${pt}`),yt}function dr(bt,yt,pt){return bt==pt.path&&un(yt,pt.parameters)}class Gr{constructor(yt,pt){this.id=yt,this.url=pt}}class Qr extends Gr{constructor(yt,pt,Yt="imperative",ie=null){super(yt,pt),this.type=0,this.navigationTrigger=Yt,this.restoredState=ie}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Er extends Gr{constructor(yt,pt,Yt){super(yt,pt),this.urlAfterRedirects=Yt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zc extends Gr{constructor(yt,pt,Yt,ie){super(yt,pt),this.reason=Yt,this.code=ie,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class al extends Gr{constructor(yt,pt,Yt,ie){super(yt,pt),this.error=Yt,this.target=ie,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Mc extends Gr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Is extends Gr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kc extends Gr{constructor(yt,pt,Yt,ie,ke){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.shouldActivate=ke,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vl extends Gr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wr extends Gr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ns{constructor(yt){this.route=yt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class s1{constructor(yt){this.route=yt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hr{constructor(yt){this.snapshot=yt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nu{constructor(yt){this.snapshot=yt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class c1{constructor(yt){this.snapshot=yt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hc{constructor(yt){this.snapshot=yt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bl{constructor(yt,pt,Yt){this.routerEvent=yt,this.position=pt,this.anchor=Yt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Dc{constructor(yt){this._root=yt}get root(){return this._root.value}parent(yt){const pt=this.pathFromRoot(yt);return pt.length>1?pt[pt.length-2]:null}children(yt){const pt=Ys(yt,this._root);return pt?pt.children.map(Yt=>Yt.value):[]}firstChild(yt){const pt=Ys(yt,this._root);return pt&&pt.children.length>0?pt.children[0].value:null}siblings(yt){const pt=Rc(yt,this._root);return pt.length<2?[]:pt[pt.length-2].children.map(ie=>ie.value).filter(ie=>ie!==yt)}pathFromRoot(yt){return Rc(yt,this._root).map(pt=>pt.value)}}function Ys(bt,yt){if(bt===yt.value)return yt;for(const pt of yt.children){const Yt=Ys(bt,pt);if(Yt)return Yt}return null}function Rc(bt,yt){if(bt===yt.value)return[yt];for(const pt of yt.children){const Yt=Rc(bt,pt);if(Yt.length)return Yt.unshift(yt),Yt}return[]}class Hc{constructor(yt,pt){this.value=yt,this.children=pt}toString(){return`TreeNode(${this.value})`}}function Bs(bt){const yt={};return bt&&bt.children.forEach(pt=>yt[pt.value.outlet]=pt),yt}class xl extends Dc{constructor(yt,pt){super(yt),this.snapshot=pt,Nl(this,yt)}toString(){return this.snapshot.toString()}}function pd(bt,yt){const pt=function Il(bt,yt){const kn=new zc([],{},{},"",{},De,yt,null,bt.root,-1,{});return new Zs("",new Hc(kn,[]))}(bt,yt),Yt=new T.X([new Bn("",{})]),ie=new T.X({}),ke=new T.X({}),kn=new T.X({}),In=new T.X(""),Fi=new Vs(Yt,ie,kn,In,ke,De,yt,pt.root);return Fi.snapshot=pt.root,new xl(new Hc(Fi,[]),pt)}class Vs{constructor(yt,pt,Yt,ie,ke,kn,In,Fi){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=ke,this.outlet=kn,this.component=In,this.title=this.data?.pipe((0,ot.U)(ji=>ji[on]))??(0,b.of)(void 0),this._futureSnapshot=Fi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ot.U)(yt=>Ae(yt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ot.U)(yt=>Ae(yt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Al(bt,yt="emptyOnly"){const pt=bt.pathFromRoot;let Yt=0;if("always"!==yt)for(Yt=pt.length-1;Yt>=1;){const ie=pt[Yt],ke=pt[Yt-1];if(ie.routeConfig&&""===ie.routeConfig.path)Yt--;else{if(ke.component)break;Yt--}}return function Gs(bt){return bt.reduce((yt,pt)=>({params:{...yt.params,...pt.params},data:{...yt.data,...pt.data},resolve:{...pt.data,...yt.resolve,...pt.routeConfig?.data,...pt._resolvedData}}),{params:{},data:{},resolve:{}})}(pt.slice(Yt))}class zc{constructor(yt,pt,Yt,ie,ke,kn,In,Fi,ji,Sa,$o,xr){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=ke,this.outlet=kn,this.component=In,this.title=this.data?.[on],this.routeConfig=Fi,this._urlSegment=ji,this._lastPathIndex=Sa,this._correctedLastPathIndex=xr??Sa,this._resolve=$o}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ae(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ae(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Yt=>Yt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Zs extends Dc{constructor(yt,pt){super(pt),this.url=yt,Nl(this,pt)}toString(){return iu(this._root)}}function Nl(bt,yt){yt.value._routerState=bt,yt.children.forEach(pt=>Nl(bt,pt))}function iu(bt){const yt=bt.children.length>0?` { ${bt.children.map(iu).join(", ")} } `:"";return`${bt.value}${yt}`}function ql(bt){if(bt.snapshot){const yt=bt.snapshot,pt=bt._futureSnapshot;bt.snapshot=pt,un(yt.queryParams,pt.queryParams)||bt.queryParams.next(pt.queryParams),yt.fragment!==pt.fragment&&bt.fragment.next(pt.fragment),un(yt.params,pt.params)||bt.params.next(pt.params),function we(bt,yt){if(bt.length!==yt.length)return!1;for(let pt=0;ptun(pt.parameters,yt[Yt].parameters))}(bt.url,yt.url);return pt&&!(!bt.parent!=!yt.parent)&&(!bt.parent||Ro(bt.parent,yt.parent))}function lc(bt,yt,pt){if(pt&&bt.shouldReuseRoute(yt.value,pt.value.snapshot)){const Yt=pt.value;Yt._futureSnapshot=yt.value;const ie=function Iu(bt,yt,pt){return yt.children.map(Yt=>{for(const ie of pt.children)if(bt.shouldReuseRoute(Yt.value,ie.value.snapshot))return lc(bt,Yt,ie);return lc(bt,Yt)})}(bt,yt,pt);return new Hc(Yt,ie)}{if(bt.shouldAttach(yt.value)){const ke=bt.retrieve(yt.value);if(null!==ke){const kn=ke.route;return kn.value._futureSnapshot=yt.value,kn.children=yt.children.map(In=>lc(bt,In)),kn}}const Yt=function Rl(bt){return new Vs(new T.X(bt.url),new T.X(bt.params),new T.X(bt.queryParams),new T.X(bt.fragment),new T.X(bt.data),bt.outlet,bt.component,bt)}(yt.value),ie=yt.children.map(ke=>lc(bt,ke));return new Hc(Yt,ie)}}const gc="ngNavigationCancelingError";function yl(bt,yt){const{redirectTo:pt,navigationBehaviorOptions:Yt}=No(yt)?{redirectTo:yt,navigationBehaviorOptions:void 0}:yt,ie=Ms(!1,0,yt);return ie.url=pt,ie.navigationBehaviorOptions=Yt,ie}function Ms(bt,yt,pt){const Yt=new Error("NavigationCancelingError: "+(bt||""));return Yt[gc]=!0,Yt.cancellationCode=yt,pt&&(Yt.url=pt),Yt}function Yc(bt){return _u(bt)&&No(bt.url)}function _u(bt){return bt&&bt[gc]}class Mr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new vc,this.attachRef=null}}let vc=(()=>{class bt{constructor(){this.contexts=new Map}onChildOutletCreated(pt,Yt){const ie=this.getOrCreateContext(pt);ie.outlet=Yt,this.contexts.set(pt,ie)}onChildOutletDestroyed(pt){const Yt=this.getContext(pt);Yt&&(Yt.outlet=null,Yt.attachRef=null)}onOutletDeactivated(){const pt=this.contexts;return this.contexts=new Map,pt}onOutletReAttached(pt){this.contexts=pt}getOrCreateContext(pt){let Yt=this.getContext(pt);return Yt||(Yt=new Mr,this.contexts.set(pt,Yt)),Yt}getContext(pt){return this.contexts.get(pt)||null}}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();const Wa=!1;let pr=(()=>{class bt{constructor(pt,Yt,ie,ke,kn){this.parentContexts=pt,this.location=Yt,this.changeDetector=ke,this.environmentInjector=kn,this.activated=null,this._activatedRoute=null,this.activateEvents=new d.vpe,this.deactivateEvents=new d.vpe,this.attachEvents=new d.vpe,this.detachEvents=new d.vpe,this.name=ie||De,pt.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const pt=this.parentContexts.getContext(this.name);pt&&pt.route&&(pt.attachRef?this.attach(pt.attachRef,pt.route):this.activateWith(pt.route,pt.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.vHH(4012,Wa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.vHH(4012,Wa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.vHH(4012,Wa);this.location.detach();const pt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(pt.instance),pt}attach(pt,Yt){this.activated=pt,this._activatedRoute=Yt,this.location.insert(pt.hostView),this.attachEvents.emit(pt.instance)}deactivate(){if(this.activated){const pt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(pt)}}activateWith(pt,Yt){if(this.isActivated)throw new d.vHH(4013,Wa);this._activatedRoute=pt;const ie=this.location,kn=pt._futureSnapshot.component,In=this.parentContexts.getOrCreateContext(this.name).children,Fi=new Bc(pt,In,ie.injector);if(Yt&&function vs(bt){return!!bt.resolveComponentFactory}(Yt)){const ji=Yt.resolveComponentFactory(kn);this.activated=ie.createComponent(ji,ie.length,Fi)}else this.activated=ie.createComponent(kn,{index:ie.length,injector:Fi,environmentInjector:Yt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(vc),d.Y36(d.s_b),d.$8M("name"),d.Y36(d.sBO),d.Y36(d.lqb))},bt.\u0275dir=d.lG2({type:bt,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),bt})();class Bc{constructor(yt,pt,Yt){this.route=yt,this.childContexts=pt,this.parent=Yt}get(yt,pt){return yt===Vs?this.route:yt===vc?this.childContexts:this.parent.get(yt,pt)}}let bc=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=d.Xpm({type:bt,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(pt,Yt){1&pt&&d._UZ(0,"router-outlet")},dependencies:[pr],encapsulation:2}),bt})();function ar(bt,yt){return bt.providers&&!bt._injector&&(bt._injector=(0,d.MMx)(bt.providers,yt,`Route: ${bt.path}`)),bt._injector??yt}function Js(bt){const yt=bt.children&&bt.children.map(Js),pt=yt?{...bt,children:yt}:{...bt};return!pt.component&&!pt.loadComponent&&(yt||pt.loadChildren)&&pt.outlet&&pt.outlet!==De&&(pt.component=bc),pt}function Fr(bt){return bt.outlet||De}function ra(bt,yt){const pt=bt.filter(Yt=>Fr(Yt)===yt);return pt.push(...bt.filter(Yt=>Fr(Yt)!==yt)),pt}function dc(bt){if(!bt)return null;if(bt.routeConfig?._injector)return bt.routeConfig._injector;for(let yt=bt.parent;yt;yt=yt.parent){const pt=yt.routeConfig;if(pt?._loadedInjector)return pt._loadedInjector;if(pt?._injector)return pt._injector}return null}class jr{constructor(yt,pt,Yt,ie){this.routeReuseStrategy=yt,this.futureState=pt,this.currState=Yt,this.forwardEvent=ie}activate(yt){const pt=this.futureState._root,Yt=this.currState?this.currState._root:null;this.deactivateChildRoutes(pt,Yt,yt),ql(this.futureState.root),this.activateChildRoutes(pt,Yt,yt)}deactivateChildRoutes(yt,pt,Yt){const ie=Bs(pt);yt.children.forEach(ke=>{const kn=ke.value.outlet;this.deactivateRoutes(ke,ie[kn],Yt),delete ie[kn]}),Ke(ie,(ke,kn)=>{this.deactivateRouteAndItsChildren(ke,Yt)})}deactivateRoutes(yt,pt,Yt){const ie=yt.value,ke=pt?pt.value:null;if(ie===ke)if(ie.component){const kn=Yt.getContext(ie.outlet);kn&&this.deactivateChildRoutes(yt,pt,kn.children)}else this.deactivateChildRoutes(yt,pt,Yt);else ke&&this.deactivateRouteAndItsChildren(pt,Yt)}deactivateRouteAndItsChildren(yt,pt){yt.value.component&&this.routeReuseStrategy.shouldDetach(yt.value.snapshot)?this.detachAndStoreRouteSubtree(yt,pt):this.deactivateRouteAndOutlet(yt,pt)}detachAndStoreRouteSubtree(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,ke=Bs(yt);for(const kn of Object.keys(ke))this.deactivateRouteAndItsChildren(ke[kn],ie);if(Yt&&Yt.outlet){const kn=Yt.outlet.detach(),In=Yt.children.onOutletDeactivated();this.routeReuseStrategy.store(yt.value.snapshot,{componentRef:kn,route:yt,contexts:In})}}deactivateRouteAndOutlet(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,ke=Bs(yt);for(const kn of Object.keys(ke))this.deactivateRouteAndItsChildren(ke[kn],ie);Yt&&Yt.outlet&&(Yt.outlet.deactivate(),Yt.children.onOutletDeactivated(),Yt.attachRef=null,Yt.resolver=null,Yt.route=null)}activateChildRoutes(yt,pt,Yt){const ie=Bs(pt);yt.children.forEach(ke=>{this.activateRoutes(ke,ie[ke.value.outlet],Yt),this.forwardEvent(new hc(ke.value.snapshot))}),yt.children.length&&this.forwardEvent(new nu(yt.value.snapshot))}activateRoutes(yt,pt,Yt){const ie=yt.value,ke=pt?pt.value:null;if(ql(ie),ie===ke)if(ie.component){const kn=Yt.getOrCreateContext(ie.outlet);this.activateChildRoutes(yt,pt,kn.children)}else this.activateChildRoutes(yt,pt,Yt);else if(ie.component){const kn=Yt.getOrCreateContext(ie.outlet);if(this.routeReuseStrategy.shouldAttach(ie.snapshot)){const In=this.routeReuseStrategy.retrieve(ie.snapshot);this.routeReuseStrategy.store(ie.snapshot,null),kn.children.onOutletReAttached(In.contexts),kn.attachRef=In.componentRef,kn.route=In.route.value,kn.outlet&&kn.outlet.attach(In.componentRef,In.route.value),ql(In.route.value),this.activateChildRoutes(yt,null,kn.children)}else{const In=dc(ie.snapshot),Fi=In?.get(d._Vd)??null;kn.attachRef=null,kn.route=ie,kn.resolver=Fi,kn.injector=In,kn.outlet&&kn.outlet.activateWith(ie,kn.injector),this.activateChildRoutes(yt,null,kn.children)}}else this.activateChildRoutes(yt,null,Yt)}}class Vc{constructor(yt){this.path=yt,this.route=this.path[this.path.length-1]}}class rl{constructor(yt,pt){this.component=yt,this.route=pt}}function Cc(bt,yt,pt){const Yt=bt._root;return Bi(Yt,yt?yt._root:null,pt,[Yt.value])}function fu(bt,yt){const pt=Symbol(),Yt=yt.get(bt,pt);return Yt===pt?"function"!=typeof bt||(0,d.Z0I)(bt)?yt.get(bt):bt:Yt}function Bi(bt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const ke=Bs(yt);return bt.children.forEach(kn=>{(function Pa(bt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const ke=bt.value,kn=yt?yt.value:null,In=pt?pt.getContext(bt.value.outlet):null;if(kn&&ke.routeConfig===kn.routeConfig){const Fi=function hu(bt,yt,pt){if("function"==typeof pt)return pt(bt,yt);switch(pt){case"pathParamsChange":return!Ye(bt.url,yt.url);case"pathParamsOrQueryParamsChange":return!Ye(bt.url,yt.url)||!un(bt.queryParams,yt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ro(bt,yt)||!un(bt.queryParams,yt.queryParams);default:return!Ro(bt,yt)}}(kn,ke,ke.routeConfig.runGuardsAndResolvers);Fi?ie.canActivateChecks.push(new Vc(Yt)):(ke.data=kn.data,ke._resolvedData=kn._resolvedData),Bi(bt,yt,ke.component?In?In.children:null:pt,Yt,ie),Fi&&In&&In.outlet&&In.outlet.isActivated&&ie.canDeactivateChecks.push(new rl(In.outlet.component,kn))}else kn&&Qs(yt,In,ie),ie.canActivateChecks.push(new Vc(Yt)),Bi(bt,null,ke.component?In?In.children:null:pt,Yt,ie)})(kn,ke[kn.value.outlet],pt,Yt.concat([kn.value]),ie),delete ke[kn.value.outlet]}),Ke(ke,(kn,In)=>Qs(kn,pt.getContext(In),ie)),ie}function Qs(bt,yt,pt){const Yt=Bs(bt),ie=bt.value;Ke(Yt,(ke,kn)=>{Qs(ke,ie.component?yt?yt.children.getContext(kn):null:yt,pt)}),pt.canDeactivateChecks.push(new rl(ie.component&&yt&&yt.outlet&&yt.outlet.isActivated?yt.outlet.component:null,ie))}function kr(bt){return"function"==typeof bt}function Pc(bt){return bt instanceof t.K||"EmptyError"===bt?.name}const Ir=Symbol("INITIAL_VALUE");function Nr(){return(0,lt.w)(bt=>(0,A.aj)(bt.map(yt=>yt.pipe((0,vt.q)(1),(0,Dt.O)(Ir)))).pipe((0,ot.U)(yt=>{for(const pt of yt)if(!0!==pt){if(pt===Ir)return Ir;if(!1===pt||pt instanceof ho)return pt}return!0}),(0,Pt.h)(yt=>yt!==Ir),(0,vt.q)(1)))}function sl(bt){return(0,k.z)((0,Tt.b)(yt=>{if(No(yt))throw yl(0,yt)}),(0,ot.U)(yt=>!0===yt))}const _p={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ul(bt,yt,pt,Yt,ie){const ke=cl(bt,yt,pt);return ke.matched?function wl(bt,yt,pt,Yt){const ie=yt.canMatch;if(!ie||0===ie.length)return(0,b.of)(!0);const ke=ie.map(kn=>{const In=fu(kn,bt);return ne(function Go(bt){return bt&&kr(bt.canMatch)}(In)?In.canMatch(yt,pt):bt.runInContext(()=>In(yt,pt)))});return(0,b.of)(ke).pipe(Nr(),sl())}(Yt=ar(yt,Yt),yt,pt).pipe((0,ot.U)(kn=>!0===kn?ke:{..._p})):(0,b.of)(ke)}function cl(bt,yt,pt){if(""===yt.path)return"full"===yt.pathMatch&&(bt.hasChildren()||pt.length>0)?{..._p}:{matched:!0,consumedSegments:[],remainingSegments:pt,parameters:{},positionalParamSegments:{}};const ie=(yt.matcher||gn)(pt,bt,yt);if(!ie)return{..._p};const ke={};Ke(ie.posParams,(In,Fi)=>{ke[Fi]=In.path});const kn=ie.consumed.length>0?{...ke,...ie.consumed[ie.consumed.length-1].parameters}:ke;return{matched:!0,consumedSegments:ie.consumed,remainingSegments:pt.slice(ie.consumed.length),parameters:kn,positionalParamSegments:ie.posParams??{}}}function Yi(bt,yt,pt,Yt,ie="corrected"){if(pt.length>0&&function gu(bt,yt,pt){return pt.some(Yt=>ll(bt,yt,Yt)&&Fr(Yt)!==De)}(bt,pt,Yt)){const kn=new fi(yt,function ru(bt,yt,pt,Yt){const ie={};ie[De]=Yt,Yt._sourceSegment=bt,Yt._segmentIndexShift=yt.length;for(const ke of pt)if(""===ke.path&&Fr(ke)!==De){const kn=new fi([],{});kn._sourceSegment=bt,kn._segmentIndexShift=yt.length,ie[Fr(ke)]=kn}return ie}(bt,yt,Yt,new fi(pt,bt.children)));return kn._sourceSegment=bt,kn._segmentIndexShift=yt.length,{segmentGroup:kn,slicedSegments:[]}}if(0===pt.length&&function Ua(bt,yt,pt){return pt.some(Yt=>ll(bt,yt,Yt))}(bt,pt,Yt)){const kn=new fi(bt.segments,function _t(bt,yt,pt,Yt,ie,ke){const kn={};for(const In of Yt)if(ll(bt,pt,In)&&!ie[Fr(In)]){const Fi=new fi([],{});Fi._sourceSegment=bt,Fi._segmentIndexShift="legacy"===ke?bt.segments.length:yt.length,kn[Fr(In)]=Fi}return{...ie,...kn}}(bt,yt,pt,Yt,bt.children,ie));return kn._sourceSegment=bt,kn._segmentIndexShift=yt.length,{segmentGroup:kn,slicedSegments:pt}}const ke=new fi(bt.segments,bt.children);return ke._sourceSegment=bt,ke._segmentIndexShift=yt.length,{segmentGroup:ke,slicedSegments:pt}}function ll(bt,yt,pt){return(!(bt.hasChildren()||yt.length>0)||"full"!==pt.pathMatch)&&""===pt.path}function Ja(bt,yt,pt,Yt){return!!(Fr(bt)===Yt||Yt!==De&&ll(yt,pt,bt))&&("**"===bt.path||cl(yt,bt,pt).matched)}function qr(bt,yt,pt){return 0===yt.length&&!bt.children[pt]}const ws=!1;class Ra{constructor(yt){this.segmentGroup=yt||null}}class Ei{constructor(yt){this.urlTree=yt}}function md(bt){return(0,D._)(new Ra(bt))}function u1(bt){return(0,D._)(new Ei(bt))}class Pi{constructor(yt,pt,Yt,ie,ke){this.injector=yt,this.configLoader=pt,this.urlSerializer=Yt,this.urlTree=ie,this.config=ke,this.allowRedirects=!0}apply(){const yt=Yi(this.urlTree.root,[],[],this.config).segmentGroup,pt=new fi(yt.segments,yt.children);return this.expandSegmentGroup(this.injector,this.config,pt,De).pipe((0,ot.U)(ke=>this.createUrlTree(Zi(ke),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,At.K)(ke=>{if(ke instanceof Ei)return this.allowRedirects=!1,this.match(ke.urlTree);throw ke instanceof Ra?this.noMatchError(ke):ke}))}match(yt){return this.expandSegmentGroup(this.injector,this.config,yt.root,De).pipe((0,ot.U)(ie=>this.createUrlTree(Zi(ie),yt.queryParams,yt.fragment))).pipe((0,At.K)(ie=>{throw ie instanceof Ra?this.noMatchError(ie):ie}))}noMatchError(yt){return new d.vHH(4002,ws)}createUrlTree(yt,pt,Yt){const ie=ei(yt);return new ho(ie,pt,Yt)}expandSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.expandChildren(yt,pt,Yt).pipe((0,ot.U)(ke=>new fi([],ke))):this.expandSegment(yt,Yt,pt,Yt.segments,ie,!0)}expandChildren(yt,pt,Yt){const ie=[];for(const ke of Object.keys(Yt.children))"primary"===ke?ie.unshift(ke):ie.push(ke);return(0,p.D)(ie).pipe((0,it.b)(ke=>{const kn=Yt.children[ke],In=ra(pt,ke);return this.expandSegmentGroup(yt,In,kn,ke).pipe((0,ot.U)(Fi=>({segment:Fi,outlet:ke})))}),Et((ke,kn)=>(ke[kn.outlet]=kn.segment,ke),{}),Xt())}expandSegment(yt,pt,Yt,ie,ke,kn){return(0,p.D)(Yt).pipe((0,it.b)(In=>this.expandSegmentAgainstRoute(yt,pt,Yt,In,ie,ke,kn).pipe((0,At.K)(ji=>{if(ji instanceof Ra)return(0,b.of)(null);throw ji}))),(0,Vt.P)(In=>!!In),(0,At.K)((In,Fi)=>{if(Pc(In))return qr(pt,ie,ke)?(0,b.of)(new fi([],{})):md(pt);throw In}))}expandSegmentAgainstRoute(yt,pt,Yt,ie,ke,kn,In){return Ja(ie,pt,ke,kn)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(yt,pt,ie,ke,kn):In&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn):md(pt):md(pt)}expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn){return"**"===ie.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(yt,Yt,ie,kn):this.expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn)}expandWildCardWithParamsAgainstRouteUsingRedirect(yt,pt,Yt,ie){const ke=this.applyRedirectCommands([],Yt.redirectTo,{});return Yt.redirectTo.startsWith("/")?u1(ke):this.lineralizeSegments(Yt,ke).pipe((0,zt.zg)(kn=>{const In=new fi(kn,{});return this.expandSegment(yt,In,pt,kn,ie,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn){const{matched:In,consumedSegments:Fi,remainingSegments:ji,positionalParamSegments:Sa}=cl(pt,ie,ke);if(!In)return md(pt);const $o=this.applyRedirectCommands(Fi,ie.redirectTo,Sa);return ie.redirectTo.startsWith("/")?u1($o):this.lineralizeSegments(ie,$o).pipe((0,zt.zg)(xr=>this.expandSegment(yt,pt,Yt,xr.concat(ji),kn,!1)))}matchSegmentAgainstRoute(yt,pt,Yt,ie,ke){return"**"===Yt.path?(yt=ar(Yt,yt),Yt.loadChildren?(Yt._loadedRoutes?(0,b.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector}):this.configLoader.loadChildren(yt,Yt)).pipe((0,ot.U)(In=>(Yt._loadedRoutes=In.routes,Yt._loadedInjector=In.injector,new fi(ie,{})))):(0,b.of)(new fi(ie,{}))):Ul(pt,Yt,ie,yt).pipe((0,lt.w)(({matched:kn,consumedSegments:In,remainingSegments:Fi})=>kn?this.getChildConfig(yt=Yt._injector??yt,Yt,ie).pipe((0,zt.zg)(Sa=>{const $o=Sa.injector??yt,xr=Sa.routes,{segmentGroup:Ps,slicedSegments:Yu}=Yi(pt,In,Fi,xr),Bl=new fi(Ps.segments,Ps.children);if(0===Yu.length&&Bl.hasChildren())return this.expandChildren($o,xr,Bl).pipe((0,ot.U)(On=>new fi(In,On)));if(0===xr.length&&0===Yu.length)return(0,b.of)(new fi(In,{}));const ba=Fr(Yt)===ke;return this.expandSegment($o,Bl,xr,Yu,ba?De:ke,!0).pipe((0,ot.U)(da=>new fi(In.concat(da.segments),da.children)))})):md(pt)))}getChildConfig(yt,pt,Yt){return pt.children?(0,b.of)({routes:pt.children,injector:yt}):pt.loadChildren?void 0!==pt._loadedRoutes?(0,b.of)({routes:pt._loadedRoutes,injector:pt._loadedInjector}):function Sc(bt,yt,pt,Yt){const ie=yt.canLoad;if(void 0===ie||0===ie.length)return(0,b.of)(!0);const ke=ie.map(kn=>{const In=fu(kn,bt);return ne(function ee(bt){return bt&&kr(bt.canLoad)}(In)?In.canLoad(yt,pt):bt.runInContext(()=>In(yt,pt)))});return(0,b.of)(ke).pipe(Nr(),sl())}(yt,pt,Yt).pipe((0,zt.zg)(ie=>ie?this.configLoader.loadChildren(yt,pt).pipe((0,Tt.b)(ke=>{pt._loadedRoutes=ke.routes,pt._loadedInjector=ke.injector})):function pi(bt){return(0,D._)(Ms(ws,3))}())):(0,b.of)({routes:[],injector:yt})}lineralizeSegments(yt,pt){let Yt=[],ie=pt.root;for(;;){if(Yt=Yt.concat(ie.segments),0===ie.numberOfChildren)return(0,b.of)(Yt);if(ie.numberOfChildren>1||!ie.children[De])return(0,D._)(new d.vHH(4e3,ws));ie=ie.children[De]}}applyRedirectCommands(yt,pt,Yt){return this.applyRedirectCreateUrlTree(pt,this.urlSerializer.parse(pt),yt,Yt)}applyRedirectCreateUrlTree(yt,pt,Yt,ie){const ke=this.createSegmentGroup(yt,pt.root,Yt,ie);return new ho(ke,this.createQueryParams(pt.queryParams,this.urlTree.queryParams),pt.fragment)}createQueryParams(yt,pt){const Yt={};return Ke(yt,(ie,ke)=>{if("string"==typeof ie&&ie.startsWith(":")){const In=ie.substring(1);Yt[ke]=pt[In]}else Yt[ke]=ie}),Yt}createSegmentGroup(yt,pt,Yt,ie){const ke=this.createSegments(yt,pt.segments,Yt,ie);let kn={};return Ke(pt.children,(In,Fi)=>{kn[Fi]=this.createSegmentGroup(yt,In,Yt,ie)}),new fi(ke,kn)}createSegments(yt,pt,Yt,ie){return pt.map(ke=>ke.path.startsWith(":")?this.findPosParam(yt,ke,ie):this.findOrReturn(ke,Yt))}findPosParam(yt,pt,Yt){const ie=Yt[pt.path.substring(1)];if(!ie)throw new d.vHH(4001,ws);return ie}findOrReturn(yt,pt){let Yt=0;for(const ie of pt){if(ie.path===yt.path)return pt.splice(Yt),ie;Yt++}return yt}}class er{}class Ie{constructor(yt,pt,Yt,ie,ke,kn,In,Fi){this.injector=yt,this.rootComponentType=pt,this.config=Yt,this.urlTree=ie,this.url=ke,this.paramsInheritanceStrategy=kn,this.relativeLinkResolution=In,this.urlSerializer=Fi}recognize(){const yt=Yi(this.urlTree.root,[],[],this.config.filter(pt=>void 0===pt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,yt,De).pipe((0,ot.U)(pt=>{if(null===pt)return null;const Yt=new zc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},De,this.rootComponentType,null,this.urlTree.root,-1,{}),ie=new Hc(Yt,pt),ke=new Zs(this.url,ie);return this.inheritParamsAndData(ke._root),ke}))}inheritParamsAndData(yt){const pt=yt.value,Yt=Al(pt,this.paramsInheritanceStrategy);pt.params=Object.freeze(Yt.params),pt.data=Object.freeze(Yt.data),yt.children.forEach(ie=>this.inheritParamsAndData(ie))}processSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.processChildren(yt,pt,Yt):this.processSegment(yt,pt,Yt,Yt.segments,ie)}processChildren(yt,pt,Yt){return(0,p.D)(Object.keys(Yt.children)).pipe((0,it.b)(ie=>{const ke=Yt.children[ie],kn=ra(pt,ie);return this.processSegmentGroup(yt,kn,ke,ie)}),Et((ie,ke)=>ie&&ke?(ie.push(...ke),ie):null),(0,Te.o)(ie=>null!==ie),(0,qe.d)(null),Xt(),(0,ot.U)(ie=>{if(null===ie)return null;const ke=_d(ie);return function vu(bt){bt.sort((yt,pt)=>yt.value.outlet===De?-1:pt.value.outlet===De?1:yt.value.outlet.localeCompare(pt.value.outlet))}(ke),ke}))}processSegment(yt,pt,Yt,ie,ke){return(0,p.D)(pt).pipe((0,it.b)(kn=>this.processSegmentAgainstRoute(kn._injector??yt,kn,Yt,ie,ke)),(0,Vt.P)(kn=>!!kn),(0,At.K)(kn=>{if(Pc(kn))return qr(Yt,ie,ke)?(0,b.of)([]):(0,b.of)(null);throw kn}))}processSegmentAgainstRoute(yt,pt,Yt,ie,ke){if(pt.redirectTo||!Ja(pt,Yt,ie,ke))return(0,b.of)(null);let kn;if("**"===pt.path){const In=ie.length>0?vi(ie).parameters:{},Fi=Mt(Yt)+ie.length,ji=new zc(ie,In,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gt(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,Ru(Yt),Fi,Qe(pt),Fi);kn=(0,b.of)({snapshot:ji,consumedSegments:[],remainingSegments:[]})}else kn=Ul(Yt,pt,ie,yt).pipe((0,ot.U)(({matched:In,consumedSegments:Fi,remainingSegments:ji,parameters:Sa})=>{if(!In)return null;const $o=Mt(Yt)+Fi.length;return{snapshot:new zc(Fi,Sa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gt(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,Ru(Yt),$o,Qe(pt),$o),consumedSegments:Fi,remainingSegments:ji}}));return kn.pipe((0,lt.w)(In=>{if(null===In)return(0,b.of)(null);const{snapshot:Fi,consumedSegments:ji,remainingSegments:Sa}=In;yt=pt._injector??yt;const $o=pt._loadedInjector??yt,xr=function Ws(bt){return bt.children?bt.children:bt.loadChildren?bt._loadedRoutes:[]}(pt),{segmentGroup:Ps,slicedSegments:Yu}=Yi(Yt,ji,Sa,xr.filter(ba=>void 0===ba.redirectTo),this.relativeLinkResolution);if(0===Yu.length&&Ps.hasChildren())return this.processChildren($o,xr,Ps).pipe((0,ot.U)(ba=>null===ba?null:[new Hc(Fi,ba)]));if(0===xr.length&&0===Yu.length)return(0,b.of)([new Hc(Fi,[])]);const Bl=Fr(pt)===ke;return this.processSegment($o,xr,Ps,Yu,Bl?De:ke).pipe((0,ot.U)(ba=>null===ba?null:[new Hc(Fi,ba)]))}))}}function eo(bt){const yt=bt.value.routeConfig;return yt&&""===yt.path&&void 0===yt.redirectTo}function _d(bt){const yt=[],pt=new Set;for(const Yt of bt){if(!eo(Yt)){yt.push(Yt);continue}const ie=yt.find(ke=>Yt.value.routeConfig===ke.value.routeConfig);void 0!==ie?(ie.children.push(...Yt.children),pt.add(ie)):yt.push(Yt)}for(const Yt of pt){const ie=_d(Yt.children);yt.push(new Hc(Yt.value,ie))}return yt.filter(Yt=>!pt.has(Yt))}function Ru(bt){let yt=bt;for(;yt._sourceSegment;)yt=yt._sourceSegment;return yt}function Mt(bt){let yt=bt,pt=yt._segmentIndexShift??0;for(;yt._sourceSegment;)yt=yt._sourceSegment,pt+=yt._segmentIndexShift??0;return pt-1}function Gt(bt){return bt.data||{}}function Qe(bt){return bt.resolve||{}}function Jn(bt){return"string"==typeof bt.title||null===bt.title}function Qn(bt){return(0,lt.w)(yt=>{const pt=bt(yt);return pt?(0,p.D)(pt).pipe((0,ot.U)(()=>yt)):(0,b.of)(yt)})}let yi=(()=>{class bt{buildTitle(pt){let Yt,ie=pt.root;for(;void 0!==ie;)Yt=this.getResolvedTitleForRoute(ie)??Yt,ie=ie.children.find(ke=>ke.outlet===De);return Yt}getResolvedTitleForRoute(pt){return pt.data[on]}}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275prov=d.Yz7({token:bt,factory:function(){return(0,d.f3M)(wi)},providedIn:"root"}),bt})(),wi=(()=>{class bt extends yi{constructor(pt){super(),this.title=pt}updateTitle(pt){const Yt=this.buildTitle(pt);void 0!==Yt&&this.title.setTitle(Yt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(re.Dx))},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();class xo{}class va extends class To{shouldDetach(yt){return!1}store(yt,pt){}shouldAttach(yt){return!1}retrieve(yt){return null}shouldReuseRoute(yt,pt){return yt.routeConfig===pt.routeConfig}}{}const ha=new d.OlP("",{providedIn:"root",factory:()=>({})}),Hs=new d.OlP("ROUTES");let es=(()=>{class bt{constructor(pt,Yt){this.injector=pt,this.compiler=Yt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(pt){if(this.componentLoaders.get(pt))return this.componentLoaders.get(pt);if(pt._loadedComponent)return(0,b.of)(pt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(pt);const Yt=ne(pt.loadComponent()).pipe((0,Tt.b)(ke=>{this.onLoadEndListener&&this.onLoadEndListener(pt),pt._loadedComponent=ke}),(0,Kt.x)(()=>{this.componentLoaders.delete(pt)})),ie=new z.c(Yt,()=>new J.xQ).pipe((0,de.x)());return this.componentLoaders.set(pt,ie),ie}loadChildren(pt,Yt){if(this.childrenLoaders.get(Yt))return this.childrenLoaders.get(Yt);if(Yt._loadedRoutes)return(0,b.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Yt);const ke=this.loadModuleFactoryOrRoutes(Yt.loadChildren).pipe((0,ot.U)(In=>{this.onLoadEndListener&&this.onLoadEndListener(Yt);let Fi,ji,Sa=!1;Array.isArray(In)?ji=In:(Fi=In.create(pt).injector,ji=oi(Fi.get(Hs,[],d.XFs.Self|d.XFs.Optional)));return{routes:ji.map(Js),injector:Fi}}),(0,Kt.x)(()=>{this.childrenLoaders.delete(Yt)})),kn=new z.c(ke,()=>new J.xQ).pipe((0,de.x)());return this.childrenLoaders.set(Yt,kn),kn}loadModuleFactoryOrRoutes(pt){return ne(pt()).pipe((0,zt.zg)(Yt=>Yt instanceof d.YKP||Array.isArray(Yt)?(0,b.of)(Yt):(0,p.D)(this.compiler.compileModuleAsync(Yt))))}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(d.zs3),d.LFG(d.Sil))},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();class ns{}class ps{shouldProcessUrl(yt){return!0}extract(yt){return yt}merge(yt,pt){return yt}}function $s(bt){throw bt}function Lc(bt,yt,pt){return yt.parse("/")}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function sr(){const bt=(0,d.f3M)(ze),yt=(0,d.f3M)(vc),pt=(0,d.f3M)(K.Ye),Yt=(0,d.f3M)(d.zs3),ie=(0,d.f3M)(d.Sil),ke=(0,d.f3M)(Hs,{optional:!0})??[],kn=(0,d.f3M)(ha,{optional:!0})??{},In=(0,d.f3M)(wi),Fi=(0,d.f3M)(yi,{optional:!0}),ji=(0,d.f3M)(ns,{optional:!0}),Sa=(0,d.f3M)(xo,{optional:!0}),$o=new Cs(null,bt,yt,pt,Yt,ie,oi(ke));return ji&&($o.urlHandlingStrategy=ji),Sa&&($o.routeReuseStrategy=Sa),$o.titleStrategy=Fi??In,function rr(bt,yt){bt.errorHandler&&(yt.errorHandler=bt.errorHandler),bt.malformedUriErrorHandler&&(yt.malformedUriErrorHandler=bt.malformedUriErrorHandler),bt.onSameUrlNavigation&&(yt.onSameUrlNavigation=bt.onSameUrlNavigation),bt.paramsInheritanceStrategy&&(yt.paramsInheritanceStrategy=bt.paramsInheritanceStrategy),bt.relativeLinkResolution&&(yt.relativeLinkResolution=bt.relativeLinkResolution),bt.urlUpdateStrategy&&(yt.urlUpdateStrategy=bt.urlUpdateStrategy),bt.canceledNavigationResolution&&(yt.canceledNavigationResolution=bt.canceledNavigationResolution)}(kn,$o),$o}let Cs=(()=>{class bt{constructor(pt,Yt,ie,ke,kn,In,Fi){this.rootComponentType=pt,this.urlSerializer=Yt,this.rootContexts=ie,this.location=ke,this.config=Fi,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new J.xQ,this.errorHandler=$s,this.malformedUriErrorHandler=Lc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,b.of)(void 0),this.urlHandlingStrategy=new ps,this.routeReuseStrategy=new va,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=kn.get(es),this.configLoader.onLoadEndListener=xr=>this.triggerEvent(new s1(xr)),this.configLoader.onLoadStartListener=xr=>this.triggerEvent(new Ns(xr)),this.ngModule=kn.get(d.h0i),this.console=kn.get(d.c2e);const $o=kn.get(d.R0b);this.isNgZoneEnabled=$o instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(Fi),this.currentUrlTree=function nt(){return new ho(new fi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=pd(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(pt){const Yt=this.events;return pt.pipe((0,Pt.h)(ie=>0!==ie.id),(0,ot.U)(ie=>({...ie,extractedUrl:this.urlHandlingStrategy.extract(ie.rawUrl)})),(0,lt.w)(ie=>{let ke=!1,kn=!1;return(0,b.of)(ie).pipe((0,Tt.b)(In=>{this.currentNavigation={id:In.id,initialUrl:In.rawUrl,extractedUrl:In.extractedUrl,trigger:In.source,extras:In.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,lt.w)(In=>{const Fi=this.browserUrlTree.toString(),ji=!this.navigated||In.extractedUrl.toString()!==Fi||Fi!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||ji)&&this.urlHandlingStrategy.shouldProcessUrl(In.rawUrl))return Qp(In.source)&&(this.browserUrlTree=In.extractedUrl),(0,b.of)(In).pipe((0,lt.w)($o=>{const xr=this.transitions.getValue();return Yt.next(new Qr($o.id,this.serializeUrl($o.extractedUrl),$o.source,$o.restoredState)),xr!==this.transitions.getValue()?F.E:Promise.resolve($o)}),function Lo(bt,yt,pt,Yt){return(0,lt.w)(ie=>function Di(bt,yt,pt,Yt,ie){return new Pi(bt,yt,pt,Yt,ie).apply()}(bt,yt,pt,ie.extractedUrl,Yt).pipe((0,ot.U)(ke=>({...ie,urlAfterRedirects:ke}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Tt.b)($o=>{this.currentNavigation={...this.currentNavigation,finalUrl:$o.urlAfterRedirects},ie.urlAfterRedirects=$o.urlAfterRedirects}),function Ln(bt,yt,pt,Yt,ie,ke){return(0,zt.zg)(kn=>function Ve(bt,yt,pt,Yt,ie,ke,kn="emptyOnly",In="legacy"){return new Ie(bt,yt,pt,Yt,ie,kn,In,ke).recognize().pipe((0,lt.w)(Fi=>null===Fi?function hn(bt){return new P.y(yt=>yt.error(bt))}(new er):(0,b.of)(Fi)))}(bt,yt,pt,kn.urlAfterRedirects,Yt.serialize(kn.urlAfterRedirects),Yt,ie,ke).pipe((0,ot.U)(In=>({...kn,targetSnapshot:In}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Tt.b)($o=>{if(ie.targetSnapshot=$o.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!$o.extras.skipLocationChange){const Ps=this.urlHandlingStrategy.merge($o.urlAfterRedirects,$o.rawUrl);this.setBrowserUrl(Ps,$o)}this.browserUrlTree=$o.urlAfterRedirects}const xr=new Mc($o.id,this.serializeUrl($o.extractedUrl),this.serializeUrl($o.urlAfterRedirects),$o.targetSnapshot);Yt.next(xr)}));if(ji&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:Ps,source:Yu,restoredState:Bl,extras:ba}=In,Hr=new Qr(xr,this.serializeUrl(Ps),Yu,Bl);Yt.next(Hr);const da=pd(Ps,this.rootComponentType).snapshot;return ie={...In,targetSnapshot:da,urlAfterRedirects:Ps,extras:{...ba,skipLocationChange:!1,replaceUrl:!1}},(0,b.of)(ie)}return this.rawUrlTree=In.rawUrl,In.resolve(null),F.E}),(0,Tt.b)(In=>{const Fi=new Is(In.id,this.serializeUrl(In.extractedUrl),this.serializeUrl(In.urlAfterRedirects),In.targetSnapshot);this.triggerEvent(Fi)}),(0,ot.U)(In=>ie={...In,guards:Cc(In.targetSnapshot,In.currentSnapshot,this.rootContexts)}),function Nu(bt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,currentSnapshot:ie,guards:{canActivateChecks:ke,canDeactivateChecks:kn}}=pt;return 0===kn.length&&0===ke.length?(0,b.of)({...pt,guardsResult:!0}):function tr(bt,yt,pt,Yt){return(0,p.D)(bt).pipe((0,zt.zg)(ie=>function au(bt,yt,pt,Yt,ie){const ke=yt&&yt.routeConfig?yt.routeConfig.canDeactivate:null;if(!ke||0===ke.length)return(0,b.of)(!0);const kn=ke.map(In=>{const Fi=dc(yt)??ie,ji=fu(In,Fi);return ne(function ki(bt){return bt&&kr(bt.canDeactivate)}(ji)?ji.canDeactivate(bt,yt,pt,Yt):Fi.runInContext(()=>ji(bt,yt,pt,Yt))).pipe((0,Vt.P)())});return(0,b.of)(kn).pipe(Nr())}(ie.component,ie.route,pt,yt,Yt)),(0,Vt.P)(ie=>!0!==ie,!0))}(kn,Yt,ie,bt).pipe((0,zt.zg)(In=>In&&function pe(bt){return"boolean"==typeof bt}(In)?function Tl(bt,yt,pt,Yt){return(0,p.D)(yt).pipe((0,it.b)(ie=>(0,x.z)(function qu(bt,yt){return null!==bt&&yt&&yt(new hr(bt)),(0,b.of)(!0)}(ie.route.parent,Yt),function ou(bt,yt){return null!==bt&&yt&&yt(new c1(bt)),(0,b.of)(!0)}(ie.route,Yt),function l1(bt,yt,pt){const Yt=yt[yt.length-1],ke=yt.slice(0,yt.length-1).reverse().map(kn=>function Ed(bt){const yt=bt.routeConfig?bt.routeConfig.canActivateChild:null;return yt&&0!==yt.length?{node:bt,guards:yt}:null}(kn)).filter(kn=>null!==kn).map(kn=>(0,U.P)(()=>{const In=kn.guards.map(Fi=>{const ji=dc(kn.node)??pt,Sa=fu(Fi,ji);return ne(function rt(bt){return bt&&kr(bt.canActivateChild)}(Sa)?Sa.canActivateChild(Yt,bt):ji.runInContext(()=>Sa(Yt,bt))).pipe((0,Vt.P)())});return(0,b.of)(In).pipe(Nr())}));return(0,b.of)(ke).pipe(Nr())}(bt,ie.path,pt),function Jp(bt,yt,pt){const Yt=yt.routeConfig?yt.routeConfig.canActivate:null;if(!Yt||0===Yt.length)return(0,b.of)(!0);const ie=Yt.map(ke=>(0,U.P)(()=>{const kn=dc(yt)??pt,In=fu(ke,kn);return ne(function qt(bt){return bt&&kr(bt.canActivate)}(In)?In.canActivate(yt,bt):kn.runInContext(()=>In(yt,bt))).pipe((0,Vt.P)())}));return(0,b.of)(ie).pipe(Nr())}(bt,ie.route,pt))),(0,Vt.P)(ie=>!0!==ie,!0))}(Yt,ke,bt,yt):(0,b.of)(In)),(0,ot.U)(In=>({...pt,guardsResult:In})))})}(this.ngModule.injector,In=>this.triggerEvent(In)),(0,Tt.b)(In=>{if(ie.guardsResult=In.guardsResult,No(In.guardsResult))throw yl(0,In.guardsResult);const Fi=new kc(In.id,this.serializeUrl(In.extractedUrl),this.serializeUrl(In.urlAfterRedirects),In.targetSnapshot,!!In.guardsResult);this.triggerEvent(Fi)}),(0,Pt.h)(In=>!!In.guardsResult||(this.restoreHistory(In),this.cancelNavigationTransition(In,"",3),!1)),Qn(In=>{if(In.guards.canActivateChecks.length)return(0,b.of)(In).pipe((0,Tt.b)(Fi=>{const ji=new vl(Fi.id,this.serializeUrl(Fi.extractedUrl),this.serializeUrl(Fi.urlAfterRedirects),Fi.targetSnapshot);this.triggerEvent(ji)}),(0,lt.w)(Fi=>{let ji=!1;return(0,b.of)(Fi).pipe(function It(bt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,guards:{canActivateChecks:ie}}=pt;if(!ie.length)return(0,b.of)(pt);let ke=0;return(0,p.D)(ie).pipe((0,it.b)(kn=>function ce(bt,yt,pt,Yt){const ie=bt.routeConfig,ke=bt._resolve;return void 0!==ie?.title&&!Jn(ie)&&(ke[on]=ie.title),function Ze(bt,yt,pt,Yt){const ie=function tn(bt){return[...Object.keys(bt),...Object.getOwnPropertySymbols(bt)]}(bt);if(0===ie.length)return(0,b.of)({});const ke={};return(0,p.D)(ie).pipe((0,zt.zg)(kn=>function bn(bt,yt,pt,Yt){const ie=dc(yt)??Yt,ke=fu(bt,ie);return ne(ke.resolve?ke.resolve(yt,pt):ie.runInContext(()=>ke(yt,pt)))}(bt[kn],yt,pt,Yt).pipe((0,Vt.P)(),(0,Tt.b)(In=>{ke[kn]=In}))),jt(1),(0,ae.h)(ke),(0,At.K)(kn=>Pc(kn)?F.E:(0,D._)(kn)))}(ke,bt,yt,Yt).pipe((0,ot.U)(kn=>(bt._resolvedData=kn,bt.data=Al(bt,pt).resolve,ie&&Jn(ie)&&(bt.data[on]=ie.title),null)))}(kn.route,Yt,bt,yt)),(0,Tt.b)(()=>ke++),jt(1),(0,zt.zg)(kn=>ke===ie.length?(0,b.of)(pt):F.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Tt.b)({next:()=>ji=!0,complete:()=>{ji||(this.restoreHistory(Fi),this.cancelNavigationTransition(Fi,"",2))}}))}),(0,Tt.b)(Fi=>{const ji=new Wr(Fi.id,this.serializeUrl(Fi.extractedUrl),this.serializeUrl(Fi.urlAfterRedirects),Fi.targetSnapshot);this.triggerEvent(ji)}))}),Qn(In=>{const Fi=ji=>{const Sa=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Sa.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,Tt.b)($o=>{ji.component=$o}),(0,ot.U)(()=>{})));for(const $o of ji.children)Sa.push(...Fi($o));return Sa};return(0,A.aj)(Fi(In.targetSnapshot.root)).pipe((0,qe.d)(),(0,vt.q)(1))}),Qn(()=>this.afterPreactivation()),(0,ot.U)(In=>{const Fi=function or(bt,yt,pt){const Yt=lc(bt,yt._root,pt?pt._root:void 0);return new xl(Yt,yt)}(this.routeReuseStrategy,In.targetSnapshot,In.currentRouterState);return ie={...In,targetRouterState:Fi}}),(0,Tt.b)(In=>{this.currentUrlTree=In.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(In.urlAfterRedirects,In.rawUrl),this.routerState=In.targetRouterState,"deferred"===this.urlUpdateStrategy&&(In.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,In),this.browserUrlTree=In.urlAfterRedirects)}),((bt,yt,pt)=>(0,ot.U)(Yt=>(new jr(yt,Yt.targetRouterState,Yt.currentRouterState,pt).activate(bt),Yt)))(this.rootContexts,this.routeReuseStrategy,In=>this.triggerEvent(In)),(0,Tt.b)({next(){ke=!0},complete(){ke=!0}}),(0,Kt.x)(()=>{ke||kn||this.cancelNavigationTransition(ie,"",1),this.currentNavigation?.id===ie.id&&(this.currentNavigation=null)}),(0,At.K)(In=>{if(kn=!0,_u(In)){Yc(In)||(this.navigated=!0,this.restoreHistory(ie,!0));const Fi=new Zc(ie.id,this.serializeUrl(ie.extractedUrl),In.message,In.cancellationCode);if(Yt.next(Fi),Yc(In)){const ji=this.urlHandlingStrategy.merge(In.url,this.rawUrlTree),Sa={skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qp(ie.source)};this.scheduleNavigation(ji,"imperative",null,Sa,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}else ie.resolve(!1)}else{this.restoreHistory(ie,!0);const Fi=new al(ie.id,this.serializeUrl(ie.extractedUrl),In,ie.targetSnapshot??void 0);Yt.next(Fi);try{ie.resolve(this.errorHandler(In))}catch(ji){ie.reject(ji)}}return F.E}))}))}resetRootComponentType(pt){this.rootComponentType=pt,this.routerState.root.component=this.rootComponentType}setTransition(pt){this.transitions.next({...this.transitions.value,...pt})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(pt=>{const Yt="popstate"===pt.type?"popstate":"hashchange";"popstate"===Yt&&setTimeout(()=>{const ie={replaceUrl:!0},ke=pt.state?.navigationId?pt.state:null;if(ke){const In={...ke};delete In.navigationId,delete In.\u0275routerPageId,0!==Object.keys(In).length&&(ie.state=In)}const kn=this.parseUrl(pt.url);this.scheduleNavigation(kn,Yt,ke,ie)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(pt){this.events.next(pt)}resetConfig(pt){this.config=pt.map(Js),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(pt,Yt={}){const{relativeTo:ie,queryParams:ke,fragment:kn,queryParamsHandling:In,preserveFragment:Fi}=Yt,ji=ie||this.routerState.root,Sa=Fi?this.currentUrlTree.fragment:kn;let $o=null;switch(In){case"merge":$o={...this.currentUrlTree.queryParams,...ke};break;case"preserve":$o=this.currentUrlTree.queryParams;break;default:$o=ke||null}return null!==$o&&($o=this.removeEmptyProps($o)),Fn(ji,this.currentUrlTree,pt,$o,Sa??null)}navigateByUrl(pt,Yt={skipLocationChange:!1}){const ie=No(pt)?pt:this.parseUrl(pt),ke=this.urlHandlingStrategy.merge(ie,this.rawUrlTree);return this.scheduleNavigation(ke,"imperative",null,Yt)}navigate(pt,Yt={skipLocationChange:!1}){return function m_(bt){for(let yt=0;yt{const ke=pt[ie];return null!=ke&&(Yt[ie]=ke),Yt},{})}processNavigations(){this.navigations.subscribe(pt=>{this.navigated=!0,this.lastSuccessfulId=pt.id,this.currentPageId=pt.targetPageId,this.events.next(new Er(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),pt.resolve(!0)},pt=>{this.console.warn(`Unhandled Navigation Error: ${pt}`)})}scheduleNavigation(pt,Yt,ie,ke,kn){if(this.disposed)return Promise.resolve(!1);let In,Fi,ji;kn?(In=kn.resolve,Fi=kn.reject,ji=kn.promise):ji=new Promise((xr,Ps)=>{In=xr,Fi=Ps});const Sa=++this.navigationId;let $o;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ie=this.location.getState()),$o=ie&&ie.\u0275routerPageId?ie.\u0275routerPageId:ke.replaceUrl||ke.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):$o=0,this.setTransition({id:Sa,targetPageId:$o,source:Yt,restoredState:ie,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pt,extras:ke,resolve:In,reject:Fi,promise:ji,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ji.catch(xr=>Promise.reject(xr))}setBrowserUrl(pt,Yt){const ie=this.urlSerializer.serialize(pt),ke={...Yt.extras.state,...this.generateNgRouterState(Yt.id,Yt.targetPageId)};this.location.isCurrentPathEqualTo(ie)||Yt.extras.replaceUrl?this.location.replaceState(ie,"",ke):this.location.go(ie,"",ke)}restoreHistory(pt,Yt=!1){if("computed"===this.canceledNavigationResolution){const ie=this.currentPageId-pt.targetPageId;"popstate"!==pt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ie?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ie&&(this.resetState(pt),this.browserUrlTree=pt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ie)}else"replace"===this.canceledNavigationResolution&&(Yt&&this.resetState(pt),this.resetUrlToCurrentUrlTree())}resetState(pt){this.routerState=pt.currentRouterState,this.currentUrlTree=pt.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,pt.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(pt,Yt,ie){const ke=new Zc(pt.id,this.serializeUrl(pt.extractedUrl),Yt,ie);this.triggerEvent(ke),pt.resolve(!1)}generateNgRouterState(pt,Yt){return"computed"===this.canceledNavigationResolution?{navigationId:pt,\u0275routerPageId:Yt}:{navigationId:pt}}}return bt.\u0275fac=function(pt){d.$Z()},bt.\u0275prov=d.Yz7({token:bt,factory:function(){return sr()},providedIn:"root"}),bt})();function Qp(bt){return"imperative"!==bt}let $a=(()=>{class bt{constructor(pt,Yt,ie,ke,kn){this.router=pt,this.route=Yt,this.tabIndexAttribute=ie,this.renderer=ke,this.el=kn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new J.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(pt){if(null!=this.tabIndexAttribute)return;const Yt=this.renderer,ie=this.el.nativeElement;null!==pt?Yt.setAttribute(ie,"tabindex",pt):Yt.removeAttribute(ie,"tabindex")}ngOnChanges(pt){this.onChanges.next(this)}set routerLink(pt){null!=pt?(this.commands=Array.isArray(pt)?pt:[pt],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(Cs),d.Y36(Vs),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq))},bt.\u0275dir=d.lG2({type:bt,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(){return Yt.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),bt})(),su=(()=>{class bt{constructor(pt,Yt,ie){this.router=pt,this.route=Yt,this.locationStrategy=ie,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new J.xQ,this.subscription=pt.events.subscribe(ke=>{ke instanceof Er&&this.updateTargetUrlAndHref()})}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}set routerLink(pt){this.commands=null!=pt?Array.isArray(pt)?pt:[pt]:null}ngOnChanges(pt){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(pt,Yt,ie,ke,kn){return!!(0!==pt||Yt||ie||ke||kn||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(Cs),d.Y36(Vs),d.Y36(K.S$))},bt.\u0275dir=d.lG2({type:bt,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(ke){return Yt.onClick(ke.button,ke.ctrlKey,ke.shiftKey,ke.altKey,ke.metaKey)}),2&pt&&d.uIk("target",Yt.target)("href",Yt.href,d.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),bt})(),xc=(()=>{class bt{constructor(pt,Yt,ie,ke,kn,In){this.router=pt,this.element=Yt,this.renderer=ie,this.cdr=ke,this.link=kn,this.linkWithHref=In,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.vpe,this.routerEventsSubscription=pt.events.subscribe(Fi=>{Fi instanceof Er&&this.update()})}ngAfterContentInit(){(0,b.of)(this.links.changes,this.linksWithHrefs.changes,(0,b.of)(null)).pipe((0,Wt.J)()).subscribe(pt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const pt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Yt=>!!Yt).map(Yt=>Yt.onChanges);this.linkInputChangesSubscription=(0,p.D)(pt).pipe((0,Wt.J)()).subscribe(Yt=>{this.isActive!==this.isLinkActive(this.router)(Yt)&&this.update()})}set routerLinkActive(pt){const Yt=Array.isArray(pt)?pt:pt.split(" ");this.classes=Yt.filter(ie=>!!ie)}ngOnChanges(pt){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const pt=this.hasActiveLinks();this.isActive!==pt&&(this.isActive=pt,this.cdr.markForCheck(),this.classes.forEach(Yt=>{pt?this.renderer.addClass(this.element.nativeElement,Yt):this.renderer.removeClass(this.element.nativeElement,Yt)}),pt&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(pt))})}isLinkActive(pt){const Yt=function Ks(bt){return!!bt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ie=>!!ie.urlTree&&pt.isActive(ie.urlTree,Yt)}hasActiveLinks(){const pt=this.isLinkActive(this.router);return this.link&&pt(this.link)||this.linkWithHref&&pt(this.linkWithHref)||this.links.some(pt)||this.linksWithHrefs.some(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(Cs),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36($a,8),d.Y36(su,8))},bt.\u0275dir=d.lG2({type:bt,selectors:[["","routerLinkActive",""]],contentQueries:function(pt,Yt,ie){if(1&pt&&(d.Suo(ie,$a,5),d.Suo(ie,su,5)),2&pt){let ke;d.iGM(ke=d.CRH())&&(Yt.links=ke),d.iGM(ke=d.CRH())&&(Yt.linksWithHrefs=ke)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),bt})();class bu{}let Id=(()=>{class bt{constructor(pt,Yt,ie,ke,kn){this.router=pt,this.injector=ie,this.preloadingStrategy=ke,this.loader=kn}setUpPreloading(){this.subscription=this.router.events.pipe((0,Pt.h)(pt=>pt instanceof Er),(0,it.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pt,Yt){const ie=[];for(const ke of Yt){ke.providers&&!ke._injector&&(ke._injector=(0,d.MMx)(ke.providers,pt,`Route: ${ke.path}`));const kn=ke._injector??pt,In=ke._loadedInjector??kn;ke.loadChildren&&!ke._loadedRoutes&&void 0===ke.canLoad||ke.loadComponent&&!ke._loadedComponent?ie.push(this.preloadConfig(kn,ke)):(ke.children||ke._loadedRoutes)&&ie.push(this.processRoutes(In,ke.children??ke._loadedRoutes))}return(0,p.D)(ie).pipe((0,Wt.J)())}preloadConfig(pt,Yt){return this.preloadingStrategy.preload(Yt,()=>{let ie;ie=Yt.loadChildren&&void 0===Yt.canLoad?this.loader.loadChildren(pt,Yt):(0,b.of)(null);const ke=ie.pipe((0,zt.zg)(kn=>null===kn?(0,b.of)(void 0):(Yt._loadedRoutes=kn.routes,Yt._loadedInjector=kn.injector,this.processRoutes(kn.injector??pt,kn.routes))));if(Yt.loadComponent&&!Yt._loadedComponent){const kn=this.loader.loadComponent(Yt);return(0,p.D)([ke,kn]).pipe((0,Wt.J)())}return ke})}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(Cs),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(bu),d.LFG(es))},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();const Yl=new d.OlP("");let Hu=(()=>{class bt{constructor(pt,Yt,ie={}){this.router=pt,this.viewportScroller=Yt,this.options=ie,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ie.scrollPositionRestoration=ie.scrollPositionRestoration||"disabled",ie.anchorScrolling=ie.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Qr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=pt.navigationTrigger,this.restoredId=pt.restoredState?pt.restoredState.navigationId:0):pt instanceof Er&&(this.lastId=pt.id,this.scheduleScrollEvent(pt,this.router.parseUrl(pt.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof bl&&(pt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(pt.position):pt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(pt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(pt,Yt){this.router.triggerEvent(new bl(pt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Yt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return bt.\u0275fac=function(pt){d.$Z()},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac}),bt})();function as(bt,yt){return{\u0275kind:bt,\u0275providers:yt}}function jc(bt){return[{provide:Hs,multi:!0,useValue:bt}]}function Tr(){const bt=(0,d.f3M)(d.zs3);return yt=>{const pt=bt.get(d.z2F);if(yt!==pt.components[0])return;const Yt=bt.get(Cs),ie=bt.get(cn);1===bt.get(fd)&&Yt.initialNavigation(),bt.get(F1,null,d.XFs.Optional)?.setUpPreloading(),bt.get(Yl,null,d.XFs.Optional)?.init(),Yt.resetRootComponentType(pt.componentTypes[0]),ie.closed||(ie.next(),ie.unsubscribe())}}const cn=new d.OlP("",{factory:()=>new J.xQ}),fd=new d.OlP("",{providedIn:"root",factory:()=>1});const F1=new d.OlP("");function Io(bt){return as(0,[{provide:F1,useExisting:Id},{provide:bu,useExisting:bt}])}const wr=new d.OlP("ROUTER_FORROOT_GUARD"),zu=[K.Ye,{provide:ze,useClass:We},{provide:Cs,useFactory:sr},vc,{provide:Vs,useFactory:function os(bt){return bt.routerState.root},deps:[Cs]},es];function Uo(){return new d.PXZ("Router",Cs)}let __=(()=>{class bt{constructor(pt){}static forRoot(pt,Yt){return{ngModule:bt,providers:[zu,[],jc(pt),{provide:wr,useFactory:f_,deps:[[Cs,new d.FiY,new d.tp0]]},{provide:ha,useValue:Yt||{}},Yt?.useHash?{provide:K.S$,useClass:K.Do}:{provide:K.S$,useClass:K.b0},{provide:Yl,useFactory:()=>{const bt=(0,d.f3M)(Cs),yt=(0,d.f3M)(K.EM),pt=(0,d.f3M)(ha);return pt.scrollOffset&&yt.setOffset(pt.scrollOffset),new Hu(bt,yt,pt)}},Yt?.preloadingStrategy?Io(Yt.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:Uo},Yt?.initialNavigation?fp(Yt):[],[{provide:Nd,useFactory:Tr},{provide:d.tb,multi:!0,useExisting:Nd}]]}}static forChild(pt){return{ngModule:bt,providers:[jc(pt)]}}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(wr,8))},bt.\u0275mod=d.oAB({type:bt}),bt.\u0275inj=d.cJS({imports:[bc]}),bt})();function f_(bt){return"guarded"}function fp(bt){return["disabled"===bt.initialNavigation?as(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const yt=(0,d.f3M)(Cs);return()=>{yt.setUpLocationChangeListener()}}},{provide:fd,useValue:2}]).\u0275providers:[],"enabledBlocking"===bt.initialNavigation?as(2,[{provide:fd,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:yt=>{const pt=yt.get(K.V_,Promise.resolve());let Yt=!1;return()=>pt.then(()=>new Promise(ke=>{const kn=yt.get(Cs),In=yt.get(cn);(function ie(ke){yt.get(Cs).events.pipe((0,Pt.h)(In=>In instanceof Er||In instanceof Zc||In instanceof al),(0,ot.U)(In=>In instanceof Er||In instanceof Zc&&(0===In.code||1===In.code)&&null),(0,Pt.h)(In=>null!==In),(0,vt.q)(1)).subscribe(()=>{ke()})})(()=>{ke(!0),Yt=!0}),kn.afterPreactivation=()=>(ke(!0),Yt||In.closed?(0,b.of)(void 0):In),kn.initialNavigation()}))}}]).\u0275providers:[]]}const Nd=new d.OlP("")},92216:(at,et,v)=>{"use strict";v.d(et,{BN:()=>Xr,by:()=>Ws,uH:()=>Ln});var d=v(94650);function p(It,ce){var Ze=Object.keys(It);if(Object.getOwnPropertySymbols){var tn=Object.getOwnPropertySymbols(It);ce&&(tn=tn.filter(function(bn){return Object.getOwnPropertyDescriptor(It,bn).enumerable})),Ze.push.apply(Ze,tn)}return Ze}function b(It){for(var ce=1;ceIt.length)&&(ce=It.length);for(var Ze=0,tn=new Array(ce);Ze0;)ce+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return ce}function Re(It){for(var ce=[],Ze=(It||[]).length>>>0;Ze--;)ce[Ze]=It[Ze];return ce}function En(It){return It.classList?Re(It.classList):(It.getAttribute("class")||"").split(" ").filter(function(ce){return ce})}function gi(It){return"".concat(It).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _o(It){return Object.keys(It||{}).reduce(function(ce,Ze){return ce+"".concat(Ze,": ").concat(It[Ze].trim(),";")},"")}function mn(It){return It.size!==Xe.size||It.x!==Xe.x||It.y!==Xe.y||It.rotate!==Xe.rotate||It.flipX||It.flipY}function Zi(){var ce=on,Ze=Lt.cssPrefix,tn=Lt.replacementClass,bn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==Ze||tn!==ce){var Jn=new RegExp("\\.".concat("fa","\\-"),"g"),Qn=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(ce),"g");bn=bn.replace(Jn,".".concat(Ze,"-")).replace(Qn,"--".concat(Ze,"-")).replace(yi,".".concat(tn))}return bn}var bo=!1;function No(){Lt.autoAddCss&&!bo&&(function Ne(It){if(It&&qe){var ce=jt.createElement("style");ce.setAttribute("type","text/css"),ce.innerHTML=It;for(var Ze=jt.head.childNodes,tn=null,bn=Ze.length-1;bn>-1;bn--){var Jn=Ze[bn],Qn=(Jn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Qn)>-1&&(tn=Jn)}jt.head.insertBefore(ce,tn)}}(Zi()),bo=!0)}var ua={mixout:function(){return{dom:{css:Zi,insertCss:No}}},hooks:function(){return{beforeDOMElementCreation:function(){No()},beforeI2svg:function(){No()}}}},qa=se||{};qa[Wt]||(qa[Wt]={}),qa[Wt].styles||(qa[Wt].styles={}),qa[Wt].hooks||(qa[Wt].hooks={}),qa[Wt].shims||(qa[Wt].shims=[]);var fr=qa[Wt],Je=[],He=!1;function Me(It){!qe||(He?setTimeout(It,0):Je.push(It))}function dn(It){var ce=It.tag,Ze=It.attributes,tn=void 0===Ze?{}:Ze,bn=It.children,Jn=void 0===bn?[]:bn;return"string"==typeof It?gi(It):"<".concat(ce," ").concat(function go(It){return Object.keys(It||{}).reduce(function(ce,Ze){return ce+"".concat(Ze,'="').concat(gi(It[Ze]),'" ')},"").trim()}(tn),">").concat(Jn.map(dn).join(""),"")}function tt(It,ce,Ze){if(It&&It[ce]&&It[ce][Ze])return{prefix:ce,iconName:Ze,icon:It[ce][Ze]}}qe&&((He=(jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(jt.readyState))||jt.addEventListener("DOMContentLoaded",function It(){jt.removeEventListener("DOMContentLoaded",It),He=1,Je.map(function(ce){return ce()})}));var Q=function(ce,Ze,tn,bn){var wi,vo,xo,Jn=Object.keys(ce),Qn=Jn.length,yi=void 0!==bn?function(ce,Ze){return function(tn,bn,Jn,Qn){return ce.call(Ze,tn,bn,Jn,Qn)}}(Ze,bn):Ze;for(void 0===tn?(wi=1,xo=ce[Jn[0]]):(wi=0,xo=tn);wi=55296&&bn<=56319&&Ze2&&void 0!==arguments[2]?arguments[2]:{},tn=Ze.skipHooks,bn=void 0!==tn&&tn,Jn=Qi(ce);"function"!=typeof fr.hooks.addPack||bn?fr.styles[It]=b(b({},fr.styles[It]||{}),Jn):fr.hooks.addPack(It,Qi(ce)),"fas"===It&&Ao("fa",ce)}var vr,us,ir,Or=fr.styles,fc=fr.shims,dr=(k(vr={},Ke,Object.values(oe[Ke])),k(vr,ne,Object.values(oe[ne])),vr),Gr=null,Qr={},Er={},Zc={},al={},Mc={},Is=(k(us={},Ke,Object.keys(kt[Ke])),k(us,ne,Object.keys(kt[ne])),us);function vl(It,ce){var Ze=ce.split("-"),tn=Ze[0],bn=Ze.slice(1).join("-");return tn!==It||""===bn||function kc(It){return~Ye.indexOf(It)}(bn)?null:bn}var Wr=function(){var ce=function(Jn){return Q(Or,function(Qn,yi,wi){return Qn[wi]=Q(yi,Jn,{}),Qn},{})};Qr=ce(function(bn,Jn,Qn){return Jn[3]&&(bn[Jn[3]]=Qn),Jn[2]&&Jn[2].filter(function(wi){return"number"==typeof wi}).forEach(function(wi){bn[wi.toString(16)]=Qn}),bn}),Er=ce(function(bn,Jn,Qn){return bn[Qn]=Qn,Jn[2]&&Jn[2].filter(function(wi){return"string"==typeof wi}).forEach(function(wi){bn[wi]=Qn}),bn}),Mc=ce(function(bn,Jn,Qn){var yi=Jn[2];return bn[Qn]=Qn,yi.forEach(function(wi){bn[wi]=Qn}),bn});var Ze="far"in Or||Lt.autoFetchSvg,tn=Q(fc,function(bn,Jn){var Qn=Jn[0],yi=Jn[1],wi=Jn[2];return"far"===yi&&!Ze&&(yi="fas"),"string"==typeof Qn&&(bn.names[Qn]={prefix:yi,iconName:wi}),"number"==typeof Qn&&(bn.unicodes[Qn.toString(16)]={prefix:yi,iconName:wi}),bn},{names:{},unicodes:{}});Zc=tn.names,al=tn.unicodes,Gr=Cl(Lt.styleDefault,{family:Lt.familyDefault})};function Ns(It,ce){return(Qr[It]||{})[ce]}function hr(It,ce){return(Mc[It]||{})[ce]}function nu(It){return Zc[It]||{prefix:null,iconName:null}}function hc(){return Gr}function Cl(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ze=ce.family,tn=void 0===Ze?Ke:Ze,bn=kt[tn][It],Jn=Jt[tn][It]||Jt[tn][bn],Qn=It in fr.styles?It:null;return Jn||Qn||null}(function Ot(It){wt.push(It)})(function(It){Gr=Cl(It.styleDefault,{family:Lt.familyDefault})}),Wr();var Dc=(k(ir={},Ke,Object.keys(oe[Ke])),k(ir,ne,Object.keys(oe[ne])),ir);function Ys(It){var ce,Ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Ze.skipLookups,bn=void 0!==tn&&tn,Jn=(k(ce={},Ke,"".concat(Lt.cssPrefix,"-").concat(Ke)),k(ce,ne,"".concat(Lt.cssPrefix,"-").concat(ne)),ce),Qn=null,yi=Ke;(It.includes(Jn[Ke])||It.some(function(vo){return Dc[Ke].includes(vo)}))&&(yi=Ke),(It.includes(Jn[ne])||It.some(function(vo){return Dc[ne].includes(vo)}))&&(yi=ne);var wi=It.reduce(function(vo,xo){var To=vl(Lt.cssPrefix,xo);if(Or[xo]?(xo=dr[yi].includes(xo)?Ce[yi][xo]:xo,Qn=xo,vo.prefix=xo):Is[yi].indexOf(xo)>-1?(Qn=xo,vo.prefix=Cl(xo,{family:yi})):To?vo.iconName=To:xo!==Lt.replacementClass&&xo!==Jn[Ke]&&xo!==Jn[ne]&&vo.rest.push(xo),!bn&&vo.prefix&&vo.iconName){var va="fa"===Qn?nu(vo.iconName):{},sa=hr(vo.prefix,vo.iconName);va.prefix&&(Qn=null),vo.iconName=va.iconName||sa||vo.iconName,vo.prefix=va.prefix||vo.prefix,"far"===vo.prefix&&!Or.far&&Or.fas&&!Lt.autoFetchSvg&&(vo.prefix="fas")}return vo},{prefix:null,iconName:null,rest:[]});return(It.includes("fa-brands")||It.includes("fab"))&&(wi.prefix="fab"),(It.includes("fa-duotone")||It.includes("fad"))&&(wi.prefix="fad"),!wi.prefix&&yi===ne&&(Or.fass||Lt.autoFetchSvg)&&(wi.prefix="fass",wi.iconName=hr(wi.prefix,wi.iconName)||wi.iconName),("fa"===wi.prefix||"fa"===Qn)&&(wi.prefix=hc()||"fas"),wi}var Rc=function(){function It(){(function A(It,ce){if(!(It instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,It),this.definitions={}}return function U(It,ce,Ze){ce&&x(It.prototype,ce),Ze&&x(It,Ze),Object.defineProperty(It,"prototype",{writable:!1})}(It,[{key:"add",value:function(){for(var Ze=this,tn=arguments.length,bn=new Array(tn),Jn=0;Jn0&&xo.forEach(function(To){"string"==typeof To&&(Ze[yi][To]=vo)}),Ze[yi][wi]=vo}),Ze}}]),It}(),Hc=[],Bs={},xl={},pd=Object.keys(xl);function Vs(It,ce){for(var Ze=arguments.length,tn=new Array(Ze>2?Ze-2:0),bn=2;bn1?ce-1:0),tn=1;tn0&&void 0!==arguments[0]?arguments[0]:{};return qe?(Al("beforeI2svg",ce),Gs("pseudoElements2svg",ce),Gs("i2svg",ce)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ze=ce.autoReplaceSvgRoot;!1===Lt.autoReplaceSvg&&(Lt.autoReplaceSvg=!0),Lt.observeMutations=!0,Me(function(){or({autoReplaceSvgRoot:Ze}),Al("watch",ce)})}},Ro={noAuto:function(){Lt.autoReplaceSvg=!1,Lt.observeMutations=!1,Al("noAuto")},config:Lt,dom:iu,parse:{icon:function(ce){if(null===ce)return null;if("object"===T(ce)&&ce.prefix&&ce.iconName)return{prefix:ce.prefix,iconName:hr(ce.prefix,ce.iconName)||ce.iconName};if(Array.isArray(ce)&&2===ce.length){var Ze=0===ce[1].indexOf("fa-")?ce[1].slice(3):ce[1],tn=Cl(ce[0]);return{prefix:tn,iconName:hr(tn,Ze)||Ze}}if("string"==typeof ce&&(ce.indexOf("".concat(Lt.cssPrefix,"-"))>-1||ce.match(Oe))){var bn=Ys(ce.split(" "),{skipLookups:!0});return{prefix:bn.prefix||hc(),iconName:hr(bn.prefix,bn.iconName)||bn.iconName}}if("string"==typeof ce){var Jn=hc();return{prefix:Jn,iconName:hr(Jn,ce)||ce}}}},library:Zs,findIconDefinition:zc,toHtml:dn},or=function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ze=ce.autoReplaceSvgRoot,tn=void 0===Ze?jt:Ze;(Object.keys(fr.styles).length>0||Lt.autoFetchSvg)&&qe&&Lt.autoReplaceSvg&&Ro.dom.i2svg({node:tn})};function lc(It,ce){return Object.defineProperty(It,"abstract",{get:ce}),Object.defineProperty(It,"html",{get:function(){return It.abstract.map(function(tn){return dn(tn)})}}),Object.defineProperty(It,"node",{get:function(){if(qe){var tn=jt.createElement("div");return tn.innerHTML=It.html,tn.children}}}),It}function gc(It){var ce=It.icons,Ze=ce.main,tn=ce.mask,bn=It.prefix,Jn=It.iconName,Qn=It.transform,yi=It.symbol,wi=It.title,vo=It.maskId,xo=It.titleId,To=It.extra,va=It.watchable,sa=void 0!==va&&va,ha=tn.found?tn:Ze,ts=ha.width,Hs=ha.height,es="fak"===bn,ns=[Lt.replacementClass,Jn?"".concat(Lt.cssPrefix,"-").concat(Jn):""].filter(function(rr){return-1===To.classes.indexOf(rr)}).filter(function(rr){return""!==rr||!!rr}).concat(To.classes).join(" "),ps={children:[],attributes:b(b({},To.attributes),{},{"data-prefix":bn,"data-icon":Jn,class:ns,role:To.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ts," ").concat(Hs)})},Rr=es&&!~To.classes.indexOf("fa-fw")?{width:"".concat(ts/Hs*16*.0625,"em")}:{};sa&&(ps.attributes[_n]=""),wi&&(ps.children.push({tag:"title",attributes:{id:ps.attributes["aria-labelledby"]||"title-".concat(xo||he())},children:[wi]}),delete ps.attributes.title);var $s=b(b({},ps),{},{prefix:bn,iconName:Jn,main:Ze,mask:tn,maskId:vo,transform:Qn,symbol:yi,styles:b(b({},Rr),To.styles)}),Lc=tn.found&&Ze.found?Gs("generateAbstractMask",$s)||{children:[],attributes:{}}:Gs("generateAbstractIcon",$s)||{children:[],attributes:{}},Fd=Lc.attributes;return $s.children=Lc.children,$s.attributes=Fd,yi?function Rl(It){var Ze=It.iconName,tn=It.children,bn=It.attributes,Jn=It.symbol,Qn=!0===Jn?"".concat(It.prefix,"-").concat(Lt.cssPrefix,"-").concat(Ze):Jn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:b(b({},bn),{},{id:Qn}),children:tn}]}]}($s):function Iu(It){var ce=It.children,Ze=It.main,tn=It.mask,bn=It.attributes,Jn=It.styles,Qn=It.transform;if(mn(Qn)&&Ze.found&&!tn.found){var vo={x:Ze.width/Ze.height/2,y:.5};bn.style=_o(b(b({},Jn),{},{"transform-origin":"".concat(vo.x+Qn.x/16,"em ").concat(vo.y+Qn.y/16,"em")}))}return[{tag:"svg",attributes:bn,children:ce}]}($s)}function yl(It){var ce=It.content,Ze=It.width,tn=It.height,bn=It.transform,Jn=It.title,Qn=It.extra,yi=It.watchable,wi=void 0!==yi&&yi,vo=b(b(b({},Qn.attributes),Jn?{title:Jn}:{}),{},{class:Qn.classes.join(" ")});wi&&(vo[_n]="");var xo=b({},Qn.styles);mn(bn)&&(xo.transform=function sn(It){var ce=It.transform,Ze=It.width,bn=It.height,Jn=void 0===bn?16:bn,Qn=It.startCentered,yi=void 0!==Qn&&Qn,wi="";return wi+=yi&&$e?"translate(".concat(ce.x/16-(void 0===Ze?16:Ze)/2,"em, ").concat(ce.y/16-Jn/2,"em) "):yi?"translate(calc(-50% + ".concat(ce.x/16,"em), calc(-50% + ").concat(ce.y/16,"em)) "):"translate(".concat(ce.x/16,"em, ").concat(ce.y/16,"em) "),(wi+="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "))+"rotate(".concat(ce.rotate,"deg) ")}({transform:bn,startCentered:!0,width:Ze,height:tn}),xo["-webkit-transform"]=xo.transform);var To=_o(xo);To.length>0&&(vo.style=To);var va=[];return va.push({tag:"span",attributes:vo,children:[ce]}),Jn&&va.push({tag:"span",attributes:{class:"sr-only"},children:[Jn]}),va}function Ms(It){var ce=It.content,Ze=It.title,tn=It.extra,bn=b(b(b({},tn.attributes),Ze?{title:Ze}:{}),{},{class:tn.classes.join(" ")}),Jn=_o(tn.styles);Jn.length>0&&(bn.style=Jn);var Qn=[];return Qn.push({tag:"span",attributes:bn,children:[ce]}),Ze&&Qn.push({tag:"span",attributes:{class:"sr-only"},children:[Ze]}),Qn}var Yc=fr.styles;function _u(It){var ce=It[0],Ze=It[1],Jn=F(It.slice(4),1)[0];return{found:!0,width:ce,height:Ze,icon:Array.isArray(Jn)?{tag:"g",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Jn[0]}},{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Jn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Jn}}}}var Mr={found:!1,width:512,height:512};function Wa(It,ce){var Ze=ce;return"fa"===ce&&null!==Lt.styleDefault&&(ce=hc()),new Promise(function(tn,bn){if(Gs("missingIconAbstract"),"fa"===Ze){var Qn=nu(It)||{};It=Qn.iconName||It,ce=Qn.prefix||ce}if(It&&ce&&Yc[ce]&&Yc[ce][It])return tn(_u(Yc[ce][It]));(function vc(It,ce){!si&&!Lt.showMissingIcons&&It&&console.error('Icon with name "'.concat(It,'" and prefix "').concat(ce,'" is missing.'))})(It,ce),tn(b(b({},Mr),{},{icon:Lt.showMissingIcons&&It&&Gs("missingIconAbstract")||{}}))})}var pr=function(){},Bc=Lt.measurePerformance&&be&&be.mark&&be.measure?be:{mark:pr,measure:pr},vs='FA "6.2.1"',Hl_begin=function(ce){return Bc.mark("".concat(vs," ").concat(ce," begins")),function(){return function(ce){Bc.mark("".concat(vs," ").concat(ce," ends")),Bc.measure("".concat(vs," ").concat(ce),"".concat(vs," ").concat(ce," begins"),"".concat(vs," ").concat(ce," ends"))}(ce)}},ks=function(){};function qs(It){return"string"==typeof(It.getAttribute?It.getAttribute(_n):null)}function js(It){return jt.createElementNS("http://www.w3.org/2000/svg",It)}function uc(It){return jt.createElement(It)}function Js(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ze=ce.ceFn,tn=void 0===Ze?"svg"===It.tag?js:uc:Ze;if("string"==typeof It)return jt.createTextNode(It);var bn=tn(It.tag);Object.keys(It.attributes||[]).forEach(function(Qn){bn.setAttribute(Qn,It.attributes[Qn])});var Jn=It.children||[];return Jn.forEach(function(Qn){bn.appendChild(Js(Qn,{ceFn:tn}))}),bn}var ra={replace:function(ce){var Ze=ce[0];if(Ze.parentNode)if(ce[1].forEach(function(bn){Ze.parentNode.insertBefore(Js(bn),Ze)}),null===Ze.getAttribute(_n)&&Lt.keepOriginalSource){var tn=jt.createComment(function Fr(It){var ce=" ".concat(It.outerHTML," ");return"".concat(ce,"Font Awesome fontawesome.com ")}(Ze));Ze.parentNode.replaceChild(tn,Ze)}else Ze.remove()},nest:function(ce){var Ze=ce[0],tn=ce[1];if(~En(Ze).indexOf(Lt.replacementClass))return ra.replace(ce);var bn=new RegExp("".concat(Lt.cssPrefix,"-.*"));if(delete tn[0].attributes.id,tn[0].attributes.class){var Jn=tn[0].attributes.class.split(" ").reduce(function(yi,wi){return wi===Lt.replacementClass||wi.match(bn)?yi.toSvg.push(wi):yi.toNode.push(wi),yi},{toNode:[],toSvg:[]});tn[0].attributes.class=Jn.toSvg.join(" "),0===Jn.toNode.length?Ze.removeAttribute("class"):Ze.setAttribute("class",Jn.toNode.join(" "))}var Qn=tn.map(function(yi){return dn(yi)}).join("\n");Ze.setAttribute(_n,""),Ze.innerHTML=Qn}};function dc(It){It()}function br(It,ce){var Ze="function"==typeof ce?ce:ks;if(0===It.length)Ze();else{var tn=dc;"async"===Lt.mutateApproach&&(tn=se.requestAnimationFrame||dc),tn(function(){var bn=function Rs(){return!0===Lt.autoReplaceSvg?ra.replace:ra[Lt.autoReplaceSvg]||ra.replace}(),Jn=Hl_begin("mutate");It.map(bn),Jn(),Ze()})}}var jr=!1;function Vc(){jr=!0}function rl(){jr=!1}var Cc=null;function Ed(It){if(ve&&Lt.observeMutations){var ce=It.treeCallback,Ze=void 0===ce?ks:ce,tn=It.nodeCallback,bn=void 0===tn?ks:tn,Jn=It.pseudoElementsCallback,Qn=void 0===Jn?ks:Jn,yi=It.observeMutationsRoot,wi=void 0===yi?jt:yi;Cc=new ve(function(vo){if(!jr){var xo=hc();Re(vo).forEach(function(To){if("childList"===To.type&&To.addedNodes.length>0&&!qs(To.addedNodes[0])&&(Lt.searchPseudoElements&&Qn(To.target),Ze(To.target)),"attributes"===To.type&&To.target.parentNode&&Lt.searchPseudoElements&&Qn(To.target.parentNode),"attributes"===To.type&&qs(To.target)&&~fi.indexOf(To.attributeName))if("class"===To.attributeName&&function bs(It){var ce=It.getAttribute?It.getAttribute(we):null,Ze=It.getAttribute?It.getAttribute(un):null;return ce&&Ze}(To.target)){var va=Ys(En(To.target)),ha=va.iconName;To.target.setAttribute(we,va.prefix||xo),ha&&To.target.setAttribute(un,ha)}else(function ds(It){return It&&It.classList&&It.classList.contains&&It.classList.contains(Lt.replacementClass)})(To.target)&&bn(To.target)})}}),qe&&Cc.observe(wi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Bi(It){var ce=It.getAttribute("style"),Ze=[];return ce&&(Ze=ce.split(";").reduce(function(tn,bn){var Jn=bn.split(":"),Qn=Jn[0],yi=Jn.slice(1);return Qn&&yi.length>0&&(tn[Qn]=yi.join(":").trim()),tn},{})),Ze}function Pa(It){var ce=It.getAttribute("data-prefix"),Ze=It.getAttribute("data-icon"),tn=void 0!==It.innerText?It.innerText.trim():"",bn=Ys(En(It));return bn.prefix||(bn.prefix=hc()),ce&&Ze&&(bn.prefix=ce,bn.iconName=Ze),bn.iconName&&bn.prefix||(bn.prefix&&tn.length>0&&(bn.iconName=function s1(It,ce){return(Er[It]||{})[ce]}(bn.prefix,It.innerText)||Ns(bn.prefix,Be(It.innerText))),!bn.iconName&&Lt.autoFetchSvg&&It.firstChild&&It.firstChild.nodeType===Node.TEXT_NODE&&(bn.iconName=It.firstChild.data)),bn}function hu(It){var ce=Re(It.attributes).reduce(function(bn,Jn){return"class"!==bn.name&&"style"!==bn.name&&(bn[Jn.name]=Jn.value),bn},{}),Ze=It.getAttribute("title"),tn=It.getAttribute("data-fa-title-id");return Lt.autoA11y&&(Ze?ce["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(tn||he()):(ce["aria-hidden"]="true",ce.focusable="false")),ce}function kr(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Ze=Pa(It),tn=Ze.iconName,bn=Ze.prefix,Jn=Ze.rest,Qn=hu(It),yi=Vs("parseNodeAttributes",{},It),wi=ce.styleParser?Bi(It):[];return b({iconName:tn,title:It.getAttribute("title"),titleId:It.getAttribute("data-fa-title-id"),prefix:bn,transform:Xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Jn,styles:wi,attributes:Qn}},yi)}var pe=fr.styles;function ee(It){var ce="nest"===Lt.autoReplaceSvg?kr(It,{styleParser:!1}):kr(It);return~ce.extra.classes.indexOf(Dn)?Gs("generateLayersText",It,ce):Gs("generateSvgReplacementMutation",It,ce)}var qt=new Set;function rt(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!qe)return Promise.resolve();var Ze=jt.documentElement.classList,tn=function(To){return Ze.add("".concat(Un,"-").concat(To))},bn=function(To){return Ze.remove("".concat(Un,"-").concat(To))},Jn=Lt.autoFetchSvg?qt:ct.map(function(xo){return"fa-".concat(xo)}).concat(Object.keys(pe));Jn.includes("fa")||Jn.push("fa");var Qn=[".".concat(Dn,":not([").concat(_n,"])")].concat(Jn.map(function(xo){return".".concat(xo,":not([").concat(_n,"])")})).join(", ");if(0===Qn.length)return Promise.resolve();var yi=[];try{yi=Re(It.querySelectorAll(Qn))}catch{}if(!(yi.length>0))return Promise.resolve();tn("pending"),bn("complete");var wi=Hl_begin("onTree"),vo=yi.reduce(function(xo,To){try{var va=ee(To);va&&xo.push(va)}catch(sa){si||"MissingIcon"===sa.name&&console.error(sa)}return xo},[]);return new Promise(function(xo,To){Promise.all(vo).then(function(va){br(va,function(){tn("active"),tn("complete"),bn("pending"),"function"==typeof ce&&ce(),wi(),xo()})}).catch(function(va){wi(),To(va)})})}function ki(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ee(It).then(function(Ze){Ze&&br([Ze],ce)})}ct.map(function(It){qt.add("fa-".concat(It))}),Object.keys(kt[Ke]).map(qt.add.bind(qt)),Object.keys(kt[ne]).map(qt.add.bind(qt)),qt=z(qt);var La=function(ce){var Ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Ze.transform,bn=void 0===tn?Xe:tn,Jn=Ze.symbol,Qn=void 0!==Jn&&Jn,yi=Ze.mask,wi=void 0===yi?null:yi,vo=Ze.maskId,xo=void 0===vo?null:vo,To=Ze.title,va=void 0===To?null:To,sa=Ze.titleId,ha=void 0===sa?null:sa,ts=Ze.classes,Hs=void 0===ts?[]:ts,es=Ze.attributes,ns=void 0===es?{}:es,ps=Ze.styles,Rr=void 0===ps?{}:ps;if(ce){var $s=ce.prefix,Lc=ce.iconName,is=ce.icon;return lc(b({type:"icon"},ce),function(){return Al("beforeDOMElementCreation",{iconDefinition:ce,params:Ze}),Lt.autoA11y&&(va?ns["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(ha||he()):(ns["aria-hidden"]="true",ns.focusable="false")),gc({icons:{main:_u(is),mask:wi?_u(wi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:$s,iconName:Lc,transform:b(b({},Xe),bn),symbol:Qn,title:va,maskId:xo,titleId:ha,extra:{attributes:ns,styles:Rr,classes:Hs}})})}},Gc={mixout:function(){return{icon:(It=La,function(ce){var Ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=(ce||{}).icon?ce:zc(ce||{}),bn=Ze.mask;return bn&&(bn=(bn||{}).icon?bn:zc(bn||{})),It(tn,b(b({},Ze),{},{mask:bn}))})};var It},hooks:function(){return{mutationObserverCallbacks:function(Ze){return Ze.treeCallback=rt,Ze.nodeCallback=ki,Ze}}},provides:function(ce){ce.i2svg=function(Ze){var tn=Ze.node,Jn=Ze.callback;return rt(void 0===tn?jt:tn,void 0===Jn?function(){}:Jn)},ce.generateSvgReplacementMutation=function(Ze,tn){var bn=tn.iconName,Jn=tn.title,Qn=tn.titleId,yi=tn.prefix,wi=tn.transform,vo=tn.symbol,xo=tn.mask,To=tn.maskId,va=tn.extra;return new Promise(function(sa,ha){Promise.all([Wa(bn,yi),xo.iconName?Wa(xo.iconName,xo.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ts){var Hs=F(ts,2);sa([Ze,gc({icons:{main:Hs[0],mask:Hs[1]},prefix:yi,iconName:bn,transform:wi,symbol:vo,maskId:To,title:Jn,titleId:Qn,extra:va,watchable:!0})])}).catch(ha)})},ce.generateAbstractIcon=function(Ze){var vo,tn=Ze.children,bn=Ze.attributes,Jn=Ze.main,Qn=Ze.transform,wi=_o(Ze.styles);return wi.length>0&&(bn.style=wi),mn(Qn)&&(vo=Gs("generateAbstractTransformGrouping",{main:Jn,transform:Qn,containerWidth:Jn.width,iconWidth:Jn.width})),tn.push(vo||Jn.icon),{children:tn,attributes:bn}}}},Pc={mixout:function(){return{layer:function(Ze){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=tn.classes,Jn=void 0===bn?[]:bn;return lc({type:"layer"},function(){Al("beforeDOMElementCreation",{assembler:Ze,params:tn});var Qn=[];return Ze(function(yi){Array.isArray(yi)?yi.map(function(wi){Qn=Qn.concat(wi.abstract)}):Qn=Qn.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(Lt.cssPrefix,"-layers")].concat(z(Jn)).join(" ")},children:Qn}]})}}}},Ir={mixout:function(){return{counter:function(Ze){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=tn.title,Jn=void 0===bn?null:bn,Qn=tn.classes,yi=void 0===Qn?[]:Qn,wi=tn.attributes,vo=void 0===wi?{}:wi,xo=tn.styles,To=void 0===xo?{}:xo;return lc({type:"counter",content:Ze},function(){return Al("beforeDOMElementCreation",{content:Ze,params:tn}),Ms({content:Ze.toString(),title:Jn,extra:{attributes:vo,styles:To,classes:["".concat(Lt.cssPrefix,"-layers-counter")].concat(z(yi))}})})}}}},Nr={mixout:function(){return{text:function(Ze){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=tn.transform,Jn=void 0===bn?Xe:bn,Qn=tn.title,yi=void 0===Qn?null:Qn,wi=tn.classes,vo=void 0===wi?[]:wi,xo=tn.attributes,To=void 0===xo?{}:xo,va=tn.styles,sa=void 0===va?{}:va;return lc({type:"text",content:Ze},function(){return Al("beforeDOMElementCreation",{content:Ze,params:tn}),yl({content:Ze,transform:b(b({},Xe),Jn),title:yi,extra:{attributes:To,styles:sa,classes:["".concat(Lt.cssPrefix,"-layers-text")].concat(z(vo))}})})}}},provides:function(ce){ce.generateLayersText=function(Ze,tn){var bn=tn.title,Jn=tn.transform,Qn=tn.extra,yi=null,wi=null;if($e){var vo=parseInt(getComputedStyle(Ze).fontSize,10),xo=Ze.getBoundingClientRect();yi=xo.width/vo,wi=xo.height/vo}return Lt.autoA11y&&!bn&&(Qn.attributes["aria-hidden"]="true"),Promise.resolve([Ze,yl({content:Ze.innerHTML,width:yi,height:wi,transform:Jn,title:bn,extra:Qn,watchable:!0})])}}},Nu=new RegExp('"',"ug"),tr=[1105920,1112319];function ou(It,ce){var Ze="".concat("data-fa-pseudo-element-pending").concat(ce.replace(":","-"));return new Promise(function(tn,bn){if(null!==It.getAttribute(Ze))return tn();var Qn=Re(It.children).filter(function(is){return is.getAttribute(Ae)===ce})[0],yi=se.getComputedStyle(It,ce),wi=yi.getPropertyValue("font-family").match(Sn),vo=yi.getPropertyValue("font-weight"),xo=yi.getPropertyValue("content");if(Qn&&!wi)return It.removeChild(Qn),tn();if(wi&&"none"!==xo&&""!==xo){var To=yi.getPropertyValue("content"),va=~["Sharp"].indexOf(wi[2])?ne:Ke,sa=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(wi[2])?Jt[va][wi[2].toLowerCase()]:mi[va][vo],ha=function Tl(It){var ce=It.replace(Nu,""),Ze=function Rn(It,ce){var bn,Ze=It.length,tn=It.charCodeAt(ce);return tn>=55296&&tn<=56319&&Ze>ce+1&&(bn=It.charCodeAt(ce+1))>=56320&&bn<=57343?1024*(tn-55296)+bn-56320+65536:tn}(ce,0),tn=Ze>=tr[0]&&Ze<=tr[1],bn=2===ce.length&&ce[0]===ce[1];return{value:Be(bn?ce[0]:ce),isSecondary:tn||bn}}(To),ts=ha.value,Hs=ha.isSecondary,es=wi[0].startsWith("FontAwesome"),ns=Ns(sa,ts),ps=ns;if(es){var Rr=function c1(It){var ce=al[It],Ze=Ns("fas",It);return ce||(Ze?{prefix:"fas",iconName:Ze}:null)||{prefix:null,iconName:null}}(ts);Rr.iconName&&Rr.prefix&&(ns=Rr.iconName,sa=Rr.prefix)}if(!ns||Hs||Qn&&Qn.getAttribute(we)===sa&&Qn.getAttribute(un)===ps)tn();else{It.setAttribute(Ze,ps),Qn&&It.removeChild(Qn);var $s=function Qs(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Lc=$s.extra;Lc.attributes[Ae]=ce,Wa(ns,sa).then(function(is){var Fd=gc(b(b({},$s),{},{icons:{main:is,mask:{prefix:null,iconName:null,rest:[]}},prefix:sa,iconName:ps,extra:Lc,watchable:!0})),rr=jt.createElement("svg");"::before"===ce?It.insertBefore(rr,It.firstChild):It.appendChild(rr),rr.outerHTML=Fd.map(function(sr){return dn(sr)}).join("\n"),It.removeAttribute(Ze),tn()}).catch(bn)}}else tn()})}function qu(It){return Promise.all([ou(It,"::before"),ou(It,"::after")])}function Jp(It){return!(It.parentNode===document.head||~vi.indexOf(It.tagName.toUpperCase())||It.getAttribute(Ae)||It.parentNode&&"svg"===It.parentNode.tagName)}function l1(It){if(qe)return new Promise(function(ce,Ze){var tn=Re(It.querySelectorAll("*")).filter(Jp).map(qu),bn=Hl_begin("searchPseudoElements");Vc(),Promise.all(tn).then(function(){bn(),rl(),ce()}).catch(function(){bn(),rl(),Ze()})})}var Sc=!1,wl=function(ce){return ce.toLowerCase().split(" ").reduce(function(tn,bn){var Jn=bn.toLowerCase().split("-"),Qn=Jn[0],yi=Jn.slice(1).join("-");if(Qn&&"h"===yi)return tn.flipX=!0,tn;if(Qn&&"v"===yi)return tn.flipY=!0,tn;if(yi=parseFloat(yi),isNaN(yi))return tn;switch(Qn){case"grow":tn.size=tn.size+yi;break;case"shrink":tn.size=tn.size-yi;break;case"left":tn.x=tn.x-yi;break;case"right":tn.x=tn.x+yi;break;case"up":tn.y=tn.y-yi;break;case"down":tn.y=tn.y+yi;break;case"rotate":tn.rotate=tn.rotate+yi}return tn},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ul={x:0,y:0,width:"100%",height:"100%"};function cl(It){var ce=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return It.attributes&&(It.attributes.fill||ce)&&(It.attributes.fill="black"),It}!function Il(It,ce){var Ze=ce.mixoutsTo;Hc=It,Bs={},Object.keys(xl).forEach(function(tn){-1===pd.indexOf(tn)&&delete xl[tn]}),Hc.forEach(function(tn){var bn=tn.mixout?tn.mixout():{};if(Object.keys(bn).forEach(function(Qn){"function"==typeof bn[Qn]&&(Ze[Qn]=bn[Qn]),"object"===T(bn[Qn])&&Object.keys(bn[Qn]).forEach(function(yi){Ze[Qn]||(Ze[Qn]={}),Ze[Qn][yi]=bn[Qn][yi]})}),tn.hooks){var Jn=tn.hooks();Object.keys(Jn).forEach(function(Qn){Bs[Qn]||(Bs[Qn]=[]),Bs[Qn].push(Jn[Qn])})}tn.provides&&tn.provides(xl)})}([ua,Gc,Pc,Ir,Nr,{hooks:function(){return{mutationObserverCallbacks:function(Ze){return Ze.pseudoElementsCallback=l1,Ze}}},provides:function(ce){ce.pseudoElements2svg=function(Ze){var tn=Ze.node;Lt.searchPseudoElements&&l1(void 0===tn?jt:tn)}}},{mixout:function(){return{dom:{unwatch:function(){Vc(),Sc=!0}}}},hooks:function(){return{bootstrap:function(){Ed(Vs("mutationObserverCallbacks",{}))},noAuto:function(){!function fu(){!Cc||Cc.disconnect()}()},watch:function(Ze){var tn=Ze.observeMutationsRoot;Sc?rl():Ed(Vs("mutationObserverCallbacks",{observeMutationsRoot:tn}))}}}},{mixout:function(){return{parse:{transform:function(Ze){return wl(Ze)}}}},hooks:function(){return{parseNodeAttributes:function(Ze,tn){var bn=tn.getAttribute("data-fa-transform");return bn&&(Ze.transform=wl(bn)),Ze}}},provides:function(ce){ce.generateAbstractTransformGrouping=function(Ze){var tn=Ze.main,bn=Ze.transform,Qn=Ze.iconWidth,yi={transform:"translate(".concat(Ze.containerWidth/2," 256)")},wi="translate(".concat(32*bn.x,", ").concat(32*bn.y,") "),vo="scale(".concat(bn.size/16*(bn.flipX?-1:1),", ").concat(bn.size/16*(bn.flipY?-1:1),") "),xo="rotate(".concat(bn.rotate," 0 0)"),sa={outer:yi,inner:{transform:"".concat(wi," ").concat(vo," ").concat(xo)},path:{transform:"translate(".concat(Qn/2*-1," -256)")}};return{tag:"g",attributes:b({},sa.outer),children:[{tag:"g",attributes:b({},sa.inner),children:[{tag:tn.icon.tag,children:tn.icon.children,attributes:b(b({},tn.icon.attributes),sa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Ze,tn){var bn=tn.getAttribute("data-fa-mask"),Jn=bn?Ys(bn.split(" ").map(function(Qn){return Qn.trim()})):{prefix:null,iconName:null,rest:[]};return Jn.prefix||(Jn.prefix=hc()),Ze.mask=Jn,Ze.maskId=tn.getAttribute("data-fa-mask-id"),Ze}}},provides:function(ce){ce.generateAbstractMask=function(Ze){var It,tn=Ze.children,bn=Ze.attributes,Jn=Ze.main,Qn=Ze.mask,yi=Ze.maskId,xo=Jn.icon,va=Qn.icon,sa=function An(It){var ce=It.transform,tn=It.iconWidth,bn={transform:"translate(".concat(It.containerWidth/2," 256)")},Jn="translate(".concat(32*ce.x,", ").concat(32*ce.y,") "),Qn="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "),yi="rotate(".concat(ce.rotate," 0 0)");return{outer:bn,inner:{transform:"".concat(Jn," ").concat(Qn," ").concat(yi)},path:{transform:"translate(".concat(tn/2*-1," -256)")}}}({transform:Ze.transform,containerWidth:Qn.width,iconWidth:Jn.width}),ha={tag:"rect",attributes:b(b({},Ul),{},{fill:"white"})},ts=xo.children?{children:xo.children.map(cl)}:{},Hs={tag:"g",attributes:b({},sa.inner),children:[cl(b({tag:xo.tag,attributes:b(b({},xo.attributes),sa.path)},ts))]},es={tag:"g",attributes:b({},sa.outer),children:[Hs]},ns="mask-".concat(yi||he()),ps="clip-".concat(yi||he()),Rr={tag:"mask",attributes:b(b({},Ul),{},{id:ns,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ha,es]},$s={tag:"defs",children:[{tag:"clipPath",attributes:{id:ps},children:(It=va,"g"===It.tag?It.children:[It])},Rr]};return tn.push($s,{tag:"rect",attributes:b({fill:"currentColor","clip-path":"url(#".concat(ps,")"),mask:"url(#".concat(ns,")")},Ul)}),{children:tn,attributes:bn}}}},{provides:function(ce){var Ze=!1;se.matchMedia&&(Ze=se.matchMedia("(prefers-reduced-motion: reduce)").matches),ce.missingIconAbstract=function(){var tn=[],bn={fill:"currentColor"},Jn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};tn.push({tag:"path",attributes:b(b({},bn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var Qn=b(b({},Jn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:b(b({},bn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Ze||yi.children.push({tag:"animate",attributes:b(b({},Jn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:b(b({},Qn),{},{values:"1;0;1;1;0;1;"})}),tn.push(yi),tn.push({tag:"path",attributes:b(b({},bn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Ze?[]:[{tag:"animate",attributes:b(b({},Qn),{},{values:"1;0;0;0;0;1;"})}]}),Ze||tn.push({tag:"path",attributes:b(b({},bn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:b(b({},Qn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:tn}}}},{hooks:function(){return{parseNodeAttributes:function(Ze,tn){var bn=tn.getAttribute("data-fa-symbol");return Ze.symbol=null!==bn&&(""===bn||bn),Ze}}}}],{mixoutsTo:Ro});var Ra=Ro.parse,u1=Ro.icon,Pi=v(11481);const Lo=["*"],hn=It=>{const ce={"fa-spin":It.spin,"fa-pulse":It.pulse,"fa-fw":It.fixedWidth,"fa-border":It.border,"fa-inverse":It.inverse,"fa-layers-counter":It.counter,"fa-flip-horizontal":"horizontal"===It.flip||"both"===It.flip,"fa-flip-vertical":"vertical"===It.flip||"both"===It.flip,[`fa-${It.size}`]:null!==It.size,[`fa-rotate-${It.rotate}`]:null!==It.rotate,[`fa-pull-${It.pull}`]:null!==It.pull,[`fa-stack-${It.stackItemSize}`]:null!=It.stackItemSize};return Object.keys(ce).map(Ze=>ce[Ze]?Ze:null).filter(Ze=>Ze)};let vu=(()=>{class It{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275prov=d.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})(),Ws=(()=>{class It{constructor(){this.definitions={}}addIcons(...Ze){for(const tn of Ze){tn.prefix in this.definitions||(this.definitions[tn.prefix]={}),this.definitions[tn.prefix][tn.iconName]=tn;for(const bn of tn.icon[2])"string"==typeof bn&&(this.definitions[tn.prefix][bn]=tn)}}addIconPacks(...Ze){for(const tn of Ze){const bn=Object.keys(tn).map(Jn=>tn[Jn]);this.addIcons(...bn)}}getIconDefinition(Ze,tn){return Ze in this.definitions&&tn in this.definitions[Ze]?this.definitions[Ze][tn]:null}}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275prov=d.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})(),eo=(()=>{class It{constructor(){this.stackItemSize="1x"}ngOnChanges(Ze){if("size"in Ze)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275dir=d.lG2({type:It,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[d.TTD]}),It})(),_d=(()=>{class It{constructor(Ze,tn){this.renderer=Ze,this.elementRef=tn}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Ze){"size"in Ze&&(null!=Ze.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Ze.size.currentValue}`),null!=Ze.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Ze.size.previousValue}`))}}return It.\u0275fac=function(Ze){return new(Ze||It)(d.Y36(d.Qsj),d.Y36(d.SBq))},It.\u0275cmp=d.Xpm({type:It,selectors:[["fa-stack"]],inputs:{size:"size"},features:[d.TTD],ngContentSelectors:Lo,decls:1,vars:0,template:function(Ze,tn){1&Ze&&(d.F$t(),d.Hsn(0))},encapsulation:2}),It})(),Xr=(()=>{class It{constructor(Ze,tn,bn,Jn,Qn){this.sanitizer=Ze,this.config=tn,this.iconLibrary=bn,this.stackItem=Jn,this.classes=[],null!=Qn&&null==Jn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Ze){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let tn=null;if(tn=this.icon??this.config.fallbackIcon,Ze){const bn=this.findIconDefinition(tn);if(null!=bn){const Jn=this.buildParams();this.renderIcon(bn,Jn)}}}render(){this.ngOnChanges({})}findIconDefinition(Ze){const tn=((It,ce)=>(It=>void 0!==It.prefix&&void 0!==It.iconName)(It)?It:Array.isArray(It)&&2===It.length?{prefix:It[0],iconName:It[1]}:"string"==typeof It?{prefix:ce,iconName:It}:void 0)(Ze,this.config.defaultPrefix);return"icon"in tn?tn:this.iconLibrary.getIconDefinition(tn.prefix,tn.iconName)??((It=>{throw new Error(`Could not find icon with iconName=${It.iconName} and prefix=${It.prefix} in the icon library.`)})(tn),null)}buildParams(){const Ze={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},tn="string"==typeof this.transform?Ra.transform(this.transform):this.transform;return{title:this.title,transform:tn,classes:[...hn(Ze),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Ze,tn){const bn=u1(Ze,tn);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(bn.html.join("\n"))}}return It.\u0275fac=function(Ze){return new(Ze||It)(d.Y36(Pi.H7),d.Y36(vu),d.Y36(Ws),d.Y36(eo,8),d.Y36(_d,8))},It.\u0275cmp=d.Xpm({type:It,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ze,tn){2&Ze&&(d.Ikx("innerHTML",tn.renderedIconHTML,d.oJD),d.uIk("title",tn.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[d.TTD],decls:0,vars:0,template:function(Ze,tn){},encapsulation:2}),It})(),Ln=(()=>{class It{}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275mod=d.oAB({type:It}),It.\u0275inj=d.cJS({}),It})()},33231:(at,et,v)=>{"use strict";v.d(et,{Co:()=>gn,nu:()=>_n});var d=v(29521),p=v(94650),b=v(24006),T=v(3238),t=v(59549),A=v(84385),x=v(591),U=v(21086),k=v(23426),D=v(8929),P=v(87545),F=v(24850),z=v(1059),J=v(18583),K=v(7625),ot=v(72986),lt=v(92198),vt=v(22868),Dt=v(67376),Pt=v(56709),zt=v(51572),Vt=v(4859),it=v(97392),Tt=v(36895),At=v(10266);const ft=["searchSelectInput"],Et=["innerSelectSearch"];function Bt(we,un){if(1&we){const Un=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(vi){p.CHM(Un);const si=p.oxw();return p.KtG(si._emitSelectAllBooleanToParent(vi.checked))}),p.qZA()}if(2&we){const Un=p.oxw();p.Q6J("color",null==Un.matFormField?null:Un.matFormField.color)("checked",Un.toggleAllCheckboxChecked)("indeterminate",Un.toggleAllCheckboxIndeterminate)("matTooltip",Un.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Un.toggleAllCheckboxTooltipPosition)}}function Ft(we,un){1&we&&p._UZ(0,"mat-spinner",10)}function se(we,un){1&we&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function jt(we,un){if(1&we&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&we){const Un=p.oxw(2);p.Q6J("svgIcon",Un.closeSvgIcon),p.xp6(1),p.hij(" ",Un.closeSvgIcon?null:Un.closeIcon," ")}}function ve(we,un){if(1&we){const Un=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(Un);const vi=p.oxw();return p.KtG(vi._reset(!0))}),p.YNc(1,se,1,0,"ng-content",12),p.YNc(2,jt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&we){const Un=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.clearIcon)("ngIfElse",Un)}}function be(we,un){1&we&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Le(we,un){if(1&we&&p._uU(0),2&we){const Un=p.oxw(2);p.Oqu(Un.noEntriesFoundLabel)}}function qe(we,un){if(1&we&&(p.TgZ(0,"div",15),p.YNc(1,be,1,0,"ng-content",12),p.YNc(2,Le,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&we){const Un=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.noEntriesFound)("ngIfElse",Un)}}const $e=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Xt=function(we,un){return{"mat-select-search-inner-multiple":we,"mat-select-search-inner-toggle-all":un}},Te=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ae=(()=>{class we{}return we.\u0275fac=function(Un){return new(Un||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","ngxMatSelectSearchClear",""]]}),we})();const Kt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],de=new p.OlP("mat-selectsearch-default-options");let De=(()=>{class we{}return we.\u0275fac=function(Un){return new(Un||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),we})(),_n=(()=>{class we{constructor(Un,oi,vi,si=null,Ke=null,ne){this.matSelect=Un,this.changeDetectorRef=oi,this._viewportRuler=vi,this.matOption=si,this.matFormField=Ke,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new p.vpe,this.onTouched=ct=>{},this._options$=new x.X(null),this.optionsList$=this._options$.pipe((0,P.w)(ct=>ct?ct.changes.pipe((0,F.U)(nt=>nt.toArray()),(0,z.O)(ct.toArray())):(0,U.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,F.U)(ct=>ct?ct.length:0)),this._formControl=new b.NI(""),this._showNoEntriesFound$=(0,k.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,F.U)(([ct,nt])=>this.noEntriesFoundLabel&&ct&&nt===this.getOptionsLengthOffset())),this._onDestroy=new D.xQ,this.applyDefaultOptions(ne)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Un){this._options$.next(Un)}get _options(){return this._options$.getValue()}applyDefaultOptions(Un){if(Un)for(const oi of Kt)Un.hasOwnProperty(oi)&&(this[oi]=Un[oi])}ngOnInit(){const Un="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Un):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Un]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Un]=!0):this.matSelect.panelClass=Un,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,J.g)(1),(0,K.R)(this._onDestroy)).subscribe(oi=>{oi?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ot.q)(1)).pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,K.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let oi=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const vi=this._options.toArray(),si=vi[this.getOptionsLengthOffset()],Ke=this.matSelect._keyManager;Ke&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(oi,si)||!Ke.activeItem||!vi.find(ct=>this.matSelect.compareWith(ct,Ke.activeItem)))&&Ke.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),oi=si})})}),this._showNoEntriesFound$.pipe((0,K.R)(this._onDestroy)).subscribe(oi=>{this.matOption&&(oi?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Un){this.toggleAll.emit(Un)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Un){(Un.key&&1===Un.key.length||Un.keyCode>=d.A&&Un.keyCode<=d.Z||Un.keyCode>=d.xE&&Un.keyCode<=d.aO||Un.keyCode===d.L_||this.preventHomeEndKeyPropagation&&(Un.keyCode===d.Sd||Un.keyCode===d.uR))&&Un.stopPropagation(),this.matSelect.multiple&&Un.key&&Un.keyCode===d.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Un.keyCode===d.hY&&this.value&&(this._reset(!0),Un.stopPropagation())}_handleKeyup(Un){if(Un.keyCode===d.LH||Un.keyCode===d.JH){const oi=this.matSelect._getAriaActiveDescendant(),vi=this._options.toArray().findIndex(si=>si.id===oi);-1!==vi&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[vi]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",oi))}}writeValue(Un){this._lastExternalInputValue=Un,this._formControl.setValue(Un),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Un){this._formControl.valueChanges.pipe((0,lt.h)(oi=>oi!==this._lastExternalInputValue),(0,vt.b)(()=>this._lastExternalInputValue=void 0),(0,K.R)(this._onDestroy)).subscribe(Un)}registerOnTouched(Un){this.onTouched=Un}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Un=this.matSelect.panel.nativeElement,oi=Un.scrollTop;this.searchSelectInput.nativeElement.focus(),Un.scrollTop=oi}_reset(Un){this._formControl.setValue(""),Un&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,K.R)(this._onDestroy)).subscribe(Un=>{let oi=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Un||!Array.isArray(Un))&&(Un=[]);const vi=this.matSelect.options.map(si=>si.value);this.previousSelectedValues.forEach(si=>{!Un.some(Ke=>this.matSelect.compareWith(Ke,si))&&!vi.some(Ke=>this.matSelect.compareWith(Ke,si))&&(Un.push(si),oi=!0)})}this.previousSelectedValues=Un,oi&&this.matSelect._onChange(Un)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Un=this.getMatOptionHeight(),oi=this.matSelect._keyManager.activeItemIndex||0,vi=(0,T.CB)(oi,this.matSelect.options,this.matSelect.optionGroups),si=(this.matOption?-1:0)+vi+oi,Ke=this.matSelect.panel.nativeElement.scrollTop,ne=this.innerSelectSearch.nativeElement.offsetHeight,ct=Math.floor((256-ne)/Un),nt=Math.round((Ke+ne)/Un)-1;nt>=si?this.matSelect.panel.nativeElement.scrollTop=si*Un:nt+ct<=si&&(this.matSelect.panel.nativeElement.scrollTop=(si+1)*Un-(256-ne))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let oi,Un=this.innerSelectSearch.nativeElement;for(;Un=Un.parentElement;)if(Un.classList.contains("mat-select-panel")){oi=Un;break}oi&&(this.innerSelectSearch.nativeElement.style.width=oi.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return we.\u0275fac=function(Un){return new(Un||we)(p.Y36(A.gD),p.Y36(p.sBO),p.Y36(Dt.rL),p.Y36(T.ey,8),p.Y36(t.KE,8),p.Y36(de,8))},we.\u0275cmp=p.Xpm({type:we,selectors:[["ngx-mat-select-search"]],contentQueries:function(Un,oi,vi){if(1&Un&&(p.Suo(vi,ae,5),p.Suo(vi,De,5)),2&Un){let si;p.iGM(si=p.CRH())&&(oi.clearIcon=si.first),p.iGM(si=p.CRH())&&(oi.noEntriesFound=si.first)}},viewQuery:function(Un,oi){if(1&Un&&(p.Gf(ft,7,p.SBq),p.Gf(Et,7,p.SBq)),2&Un){let vi;p.iGM(vi=p.CRH())&&(oi.searchSelectInput=vi.first),p.iGM(vi=p.CRH())&&(oi.innerSelectSearch=vi.first)}},hostVars:2,hostBindings:function(Un,oi){2&Un&&p.ekj("mat-select-search-inside-mat-option",oi.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[p._Bn([{provide:b.JU,useExisting:(0,p.Gpc)(()=>we),multi:!0}])],ngContentSelectors:Te,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Un,oi){1&Un&&(p.F$t($e),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Bt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(si){return oi._handleKeydown(si)})("keyup",function(si){return oi._handleKeyup(si)})("blur",function(){return oi.onBlur()}),p.qZA(),p.YNc(6,Ft,1,0,"mat-spinner",6),p.YNc(7,ve,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,qe,4,2,"div",8),p.ALo(10,"async")),2&Un&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,Xt,oi.matSelect.multiple,oi._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",oi._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",oi.type)("formControl",oi._formControl)("placeholder",oi.placeholderLabel),p.uIk("aria-label",oi.ariaLabel),p.xp6(2),p.Q6J("ngIf",oi.searching),p.xp6(1),p.Q6J("ngIf",!oi.hideClearSearchButton&&oi.value&&!oi.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,oi._showNoEntriesFound$)))},dependencies:[Pt.oG,zt.Ou,Vt.lW,it.Hw,Tt.mk,Tt.O5,At.gM,b.Fj,b.JJ,b.oH,Tt.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),we})(),gn=(()=>{class we{}return we.\u0275fac=function(Un){return new(Un||we)},we.\u0275mod=p.oAB({type:we}),we.\u0275inj=p.cJS({imports:[[Tt.ez,b.UX,Vt.ot,Pt.p9,it.Ps,zt.Cq,At.AV]]}),we})()}},at=>{at(at.s=71688)}]); \ No newline at end of file +(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(ot,et,v)=>{ot=v.nmd(ot),function(d){const p=d.en=d.en||{};p.dictionary=Object.assign(p.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,ot.exports=(()=>(()=>{var d={4959:(t,A,x)=>{const U=x(1103),k={};for(const P of Object.keys(U))k[U[P]]=P;const D={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=D;for(const P of Object.keys(D)){if(!("channels"in D[P]))throw new Error("missing channels property: "+P);if(!("labels"in D[P]))throw new Error("missing channel labels property: "+P);if(D[P].labels.length!==D[P].channels)throw new Error("channel and label counts mismatch: "+P);const{channels:F,labels:z}=D[P];delete D[P].channels,delete D[P].labels,Object.defineProperty(D[P],"channels",{value:F}),Object.defineProperty(D[P],"labels",{value:z})}D.rgb.hsl=function(P){const F=P[0]/255,z=P[1]/255,J=P[2]/255,K=Math.min(F,z,J),at=Math.max(F,z,J),ct=at-K;let vt,Dt;at===K?vt=0:F===at?vt=(z-J)/ct:z===at?vt=2+(J-F)/ct:J===at&&(vt=4+(F-z)/ct),vt=Math.min(60*vt,360),vt<0&&(vt+=360);const Pt=(K+at)/2;return Dt=at===K?0:Pt<=.5?ct/(at+K):ct/(2-at-K),[vt,100*Dt,100*Pt]},D.rgb.hsv=function(P){let F,z,J,K,at;const ct=P[0]/255,vt=P[1]/255,Dt=P[2]/255,Pt=Math.max(ct,vt,Dt),zt=Pt-Math.min(ct,vt,Dt),Vt=function(it){return(Pt-it)/6/zt+.5};return 0===zt?(K=0,at=0):(at=zt/Pt,F=Vt(ct),z=Vt(vt),J=Vt(Dt),ct===Pt?K=J-z:vt===Pt?K=.3333333333333333+F-J:Dt===Pt&&(K=.6666666666666666+z-F),K<0?K+=1:K>1&&(K-=1)),[360*K,100*at,100*Pt]},D.rgb.hwb=function(P){const F=P[0],z=P[1];let J=P[2];const K=D.rgb.hsl(P)[0],at=1/255*Math.min(F,Math.min(z,J));return J=1-.00392156862745098*Math.max(F,Math.max(z,J)),[K,100*at,100*J]},D.rgb.cmyk=function(P){const F=P[0]/255,z=P[1]/255,J=P[2]/255,K=Math.min(1-F,1-z,1-J);return[100*((1-F-K)/(1-K)||0),100*((1-z-K)/(1-K)||0),100*((1-J-K)/(1-K)||0),100*K]},D.rgb.keyword=function(P){const F=k[P];if(F)return F;let z,J=1/0;for(const ct of Object.keys(U)){const Dt=((K=P)[0]-(at=U[ct])[0])**2+(K[1]-at[1])**2+(K[2]-at[2])**2;Dt.04045?((F+.055)/1.055)**2.4:F/12.92,z=z>.04045?((z+.055)/1.055)**2.4:z/12.92,J=J>.04045?((J+.055)/1.055)**2.4:J/12.92,[100*(.4124*F+.3576*z+.1805*J),100*(.2126*F+.7152*z+.0722*J),100*(.0193*F+.1192*z+.9505*J)]},D.rgb.lab=function(P){const F=D.rgb.xyz(P);let z=F[0],J=F[1],K=F[2];return z/=95.047,J/=100,K/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,J=J>.008856?J**.3333333333333333:7.787*J+.13793103448275862,K=K>.008856?K**.3333333333333333:7.787*K+.13793103448275862,[116*J-16,500*(z-J),200*(J-K)]},D.hsl.rgb=function(P){const F=P[0]/360,z=P[1]/100,J=P[2]/100;let K,at,ct;if(0===z)return ct=255*J,[ct,ct,ct];K=J<.5?J*(1+z):J+z-J*z;const vt=2*J-K,Dt=[0,0,0];for(let Pt=0;Pt<3;Pt++)at=F+.3333333333333333*-(Pt-1),at<0&&at++,at>1&&at--,ct=6*at<1?vt+6*(K-vt)*at:2*at<1?K:3*at<2?vt+(K-vt)*(.6666666666666666-at)*6:vt,Dt[Pt]=255*ct;return Dt},D.hsl.hsv=function(P){const F=P[0];let z=P[1]/100,J=P[2]/100,K=z;const at=Math.max(J,.01);return J*=2,z*=J<=1?J:2-J,K*=at<=1?at:2-at,[F,100*(0===J?2*K/(at+K):2*z/(J+z)),(J+z)/2*100]},D.hsv.rgb=function(P){const F=P[0]/60,z=P[1]/100;let J=P[2]/100;const K=Math.floor(F)%6,at=F-Math.floor(F),ct=255*J*(1-z),vt=255*J*(1-z*at),Dt=255*J*(1-z*(1-at));switch(J*=255,K){case 0:return[J,Dt,ct];case 1:return[vt,J,ct];case 2:return[ct,J,Dt];case 3:return[ct,vt,J];case 4:return[Dt,ct,J];case 5:return[J,ct,vt]}},D.hsv.hsl=function(P){const F=P[0],z=P[1]/100,J=P[2]/100,K=Math.max(J,.01);let at,ct;ct=(2-z)*J;const vt=(2-z)*K;return at=z*K,at/=vt<=1?vt:2-vt,at=at||0,ct/=2,[F,100*at,100*ct]},D.hwb.rgb=function(P){const F=P[0]/360;let z=P[1]/100,J=P[2]/100;const K=z+J;let at;K>1&&(z/=K,J/=K);const ct=Math.floor(6*F),vt=1-J;at=6*F-ct,0!=(1&ct)&&(at=1-at);const Dt=z+at*(vt-z);let Pt,zt,Vt;switch(ct){default:case 6:case 0:Pt=vt,zt=Dt,Vt=z;break;case 1:Pt=Dt,zt=vt,Vt=z;break;case 2:Pt=z,zt=vt,Vt=Dt;break;case 3:Pt=z,zt=Dt,Vt=vt;break;case 4:Pt=Dt,zt=z,Vt=vt;break;case 5:Pt=vt,zt=z,Vt=Dt}return[255*Pt,255*zt,255*Vt]},D.cmyk.rgb=function(P){const z=P[1]/100,J=P[2]/100,K=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-K)+K)),255*(1-Math.min(1,z*(1-K)+K)),255*(1-Math.min(1,J*(1-K)+K))]},D.xyz.rgb=function(P){const F=P[0]/100,z=P[1]/100,J=P[2]/100;let K,at,ct;return K=3.2406*F+-1.5372*z+-.4986*J,at=-.9689*F+1.8758*z+.0415*J,ct=.0557*F+-.204*z+1.057*J,K=K>.0031308?1.055*K**.4166666666666667-.055:12.92*K,at=at>.0031308?1.055*at**.4166666666666667-.055:12.92*at,ct=ct>.0031308?1.055*ct**.4166666666666667-.055:12.92*ct,K=Math.min(Math.max(0,K),1),at=Math.min(Math.max(0,at),1),ct=Math.min(Math.max(0,ct),1),[255*K,255*at,255*ct]},D.xyz.lab=function(P){let F=P[0],z=P[1],J=P[2];return F/=95.047,z/=100,J/=108.883,F=F>.008856?F**.3333333333333333:7.787*F+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,J=J>.008856?J**.3333333333333333:7.787*J+.13793103448275862,[116*z-16,500*(F-z),200*(z-J)]},D.lab.xyz=function(P){let F,z,J;z=(P[0]+16)/116,F=P[1]/500+z,J=z-P[2]/200;const K=z**3,at=F**3,ct=J**3;return z=K>.008856?K:(z-.13793103448275862)/7.787,F=at>.008856?at:(F-.13793103448275862)/7.787,J=ct>.008856?ct:(J-.13793103448275862)/7.787,F*=95.047,z*=100,J*=108.883,[F,z,J]},D.lab.lch=function(P){const F=P[0],z=P[1],J=P[2];let K;return K=360*Math.atan2(J,z)/2/Math.PI,K<0&&(K+=360),[F,Math.sqrt(z*z+J*J),K]},D.lch.lab=function(P){const z=P[1],J=P[2]/360*2*Math.PI;return[P[0],z*Math.cos(J),z*Math.sin(J)]},D.rgb.ansi16=function(P,F=null){const[z,J,K]=P;let at=null===F?D.rgb.hsv(P)[2]:F;if(at=Math.round(at/50),0===at)return 30;let ct=30+(Math.round(K/255)<<2|Math.round(J/255)<<1|Math.round(z/255));return 2===at&&(ct+=60),ct},D.hsv.ansi16=function(P){return D.rgb.ansi16(D.hsv.rgb(P),P[2])},D.rgb.ansi256=function(P){const F=P[0],z=P[1],J=P[2];return F===z&&z===J?F<8?16:F>248?231:Math.round((F-8)/247*24)+232:16+36*Math.round(F/255*5)+6*Math.round(z/255*5)+Math.round(J/255*5)},D.ansi16.rgb=function(P){let F=P%10;if(0===F||7===F)return P>50&&(F+=3.5),F=F/10.5*255,[F,F,F];const z=.5*(1+~~(P>50));return[(1&F)*z*255,(F>>1&1)*z*255,(F>>2&1)*z*255]},D.ansi256.rgb=function(P){if(P>=232){const z=10*(P-232)+8;return[z,z,z]}let F;return P-=16,[Math.floor(P/36)/5*255,Math.floor((F=P%36)/6)/5*255,F%6/5*255]},D.rgb.hex=function(P){const F=(((255&Math.round(P[0]))<<16)+((255&Math.round(P[1]))<<8)+(255&Math.round(P[2]))).toString(16).toUpperCase();return"000000".substring(F.length)+F},D.hex.rgb=function(P){const F=P.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!F)return[0,0,0];let z=F[0];3===F[0].length&&(z=z.split("").map(K=>K+K).join(""));const J=parseInt(z,16);return[J>>16&255,J>>8&255,255&J]},D.rgb.hcg=function(P){const F=P[0]/255,z=P[1]/255,J=P[2]/255,K=Math.max(Math.max(F,z),J),at=Math.min(Math.min(F,z),J),ct=K-at;let vt,Dt;return vt=ct<1?at/(1-ct):0,Dt=ct<=0?0:K===F?(z-J)/ct%6:K===z?2+(J-F)/ct:4+(F-z)/ct,Dt/=6,Dt%=1,[360*Dt,100*ct,100*vt]},D.hsl.hcg=function(P){const F=P[1]/100,z=P[2]/100,J=z<.5?2*F*z:2*F*(1-z);let K=0;return J<1&&(K=(z-.5*J)/(1-J)),[P[0],100*J,100*K]},D.hsv.hcg=function(P){const z=P[2]/100,J=P[1]/100*z;let K=0;return J<1&&(K=(z-J)/(1-J)),[P[0],100*J,100*K]},D.hcg.rgb=function(P){const z=P[1]/100,J=P[2]/100;if(0===z)return[255*J,255*J,255*J];const K=[0,0,0],at=P[0]/360%1*6,ct=at%1,vt=1-ct;let Dt=0;switch(Math.floor(at)){case 0:K[0]=1,K[1]=ct,K[2]=0;break;case 1:K[0]=vt,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=ct;break;case 3:K[0]=0,K[1]=vt,K[2]=1;break;case 4:K[0]=ct,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=vt}return Dt=(1-z)*J,[255*(z*K[0]+Dt),255*(z*K[1]+Dt),255*(z*K[2]+Dt)]},D.hcg.hsv=function(P){const F=P[1]/100,z=F+P[2]/100*(1-F);let J=0;return z>0&&(J=F/z),[P[0],100*J,100*z]},D.hcg.hsl=function(P){const F=P[1]/100,z=P[2]/100*(1-F)+.5*F;let J=0;return z>0&&z<.5?J=F/(2*z):z>=.5&&z<1&&(J=F/(2*(1-z))),[P[0],100*J,100*z]},D.hcg.hwb=function(P){const F=P[1]/100,z=F+P[2]/100*(1-F);return[P[0],100*(z-F),100*(1-z)]},D.hwb.hcg=function(P){const z=1-P[2]/100,J=z-P[1]/100;let K=0;return J<1&&(K=(z-J)/(1-J)),[P[0],100*J,100*K]},D.apple.rgb=function(P){return[P[0]/65535*255,P[1]/65535*255,P[2]/65535*255]},D.rgb.apple=function(P){return[P[0]/255*65535,P[1]/255*65535,P[2]/255*65535]},D.gray.rgb=function(P){return[P[0]/100*255,P[0]/100*255,P[0]/100*255]},D.gray.hsl=function(P){return[0,0,P[0]]},D.gray.hsv=D.gray.hsl,D.gray.hwb=function(P){return[0,100,P[0]]},D.gray.cmyk=function(P){return[0,0,0,P[0]]},D.gray.lab=function(P){return[P[0],0,0]},D.gray.hex=function(P){const F=255&Math.round(P[0]/100*255),z=((F<<16)+(F<<8)+F).toString(16).toUpperCase();return"000000".substring(z.length)+z},D.rgb.gray=function(P){return[(P[0]+P[1]+P[2])/3/255*100]}},841:(t,A,x)=>{const U=x(4959),k=x(9325),D={};Object.keys(U).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:U[P].channels}),Object.defineProperty(D[P],"labels",{value:U[P].labels});const F=k(P);Object.keys(F).forEach(z=>{const J=F[z];D[P][z]=function(K){const at=function(...ct){const vt=ct[0];if(null==vt)return vt;vt.length>1&&(ct=vt);const Dt=K(ct);if("object"==typeof Dt)for(let Pt=Dt.length,zt=0;zt1&&(ct=vt),K(ct))};return"conversion"in K&&(at.conversion=K.conversion),at}(J)})}),t.exports=D},9325:(t,A,x)=>{const U=x(4959);function D(F,z){return function(J){return z(F(J))}}function P(F,z){const J=[z[F].parent,F];let K=U[z[F].parent][F],at=z[F].parent;for(;z[at].parent;)J.unshift(z[at].parent),K=D(U[z[at].parent][at],K),at=z[at].parent;return K.conversion=J,K}t.exports=function(F){const z=function k(F){const z=function(){const K={},at=Object.keys(U);for(let ct=at.length,vt=0;vt{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const F=P},3062:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const F=P},903:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},3143:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},4717:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const F=P},9315:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const F=P},8733:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const F=P},3508:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},2640:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const F=P},3535:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);const F=P},1568:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6270:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const F=P},5083:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},4036:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const F=P},3773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const F=P},3689:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const F=P},1905:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},9773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const F=P},2347:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},7754:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},111:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const F=P},4721:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},5730:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const F=P},4564:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6082:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},2417:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},1199:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},4652:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const F=P},7442:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},9292:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7368:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},4070:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},9247:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},1613:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const F=P},6306:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const F=P},2128:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const F=P},5087:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},4101:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const F=P},3881:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6237:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7341:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},6945:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const F=P},8157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},4906:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const F=P},5332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const F=P},6781:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const F=P},3398:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const F=P},4157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},5485:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},3949:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7686:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7339:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const F=P},9688:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},8847:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BASD,CAPC,6BACC,qCACD,CAEA,8CACC,WACD,CCbD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& .ck-icon {\n\t\tmargin-right: var(--ck-spacing-medium);\n\t}\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const F=P},8960:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const F=P},6574:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},4879:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},3662:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const F=P},2577:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},1046:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>span{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,8BACC,cAAe,CACf,eAAiB,CACjB,gCACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > span {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},8793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},4650:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const F=P},7676:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},5868:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},6764:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const F=P},6770:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const F=P},498:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const F=P},8182:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const F=P},9695:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const F=P},5542:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const F=P},3332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const F=P},4793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const F=P},3488:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const F=P},8506:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const F=P},4921:(t,A,x)=>{"use strict";x.d(A,{Z:()=>F});var U=x(1799),k=x.n(U),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const F=P},2609:t=>{"use strict";t.exports=function(A){var x=[];return x.toString=function(){return this.map(function(U){var k=A(U);return U[2]?"@media ".concat(U[2]," {").concat(k,"}"):k}).join("")},x.i=function(U,k,D){"string"==typeof U&&(U=[[null,U,""]]);var P={};if(D)for(var F=0;F{"use strict";function x(U,k){(null==k||k>U.length)&&(k=U.length);for(var D=0,P=new Array(k);D{"use strict";var U,Vt,D=(Vt={},function(it){if(void 0===Vt[it]){var Tt=document.querySelector(it);if(window.HTMLIFrameElement&&Tt instanceof window.HTMLIFrameElement)try{Tt=Tt.contentDocument.head}catch{Tt=null}Vt[it]=Tt}return Vt[it]}),P=[];function F(Vt){for(var it=-1,Tt=0;Tt{var A=t&&t.__esModule?()=>t.default:()=>t;return b.d(A,{a:A}),A},b.d=(t,A)=>{for(var x in A)b.o(A,x)&&!b.o(t,x)&&Object.defineProperty(t,x,{enumerable:!0,get:A[x]})},b.o=(t,A)=>Object.prototype.hasOwnProperty.call(t,A),b.nc=void 0;var T={};return(()=>{"use strict";function t({emitter:m,activator:r,callback:c,contextElements:u}){m.listenTo(document,"mousedown",(_,C)=>{if(!r())return;const M="function"==typeof C.composedPath?C.composedPath():[],E="function"==typeof u?u():u;for(const N of E)if(N.contains(C.target)||M.includes(N))return;c()})}function A(m){return class extends m{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...r){super(...r),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function x({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}b.d(T,{default:()=>m7});const U=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(U),D_isGecko=(U.indexOf("windows"),!!U.match(/gecko\/\d+/)),D_isSafari=(m=U).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(U),D_isAndroid=function(m){return m.indexOf("android")>-1}(U),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(U);var m;function P(m){return m.indexOf("macintosh")>-1}function F(m,r,c,u){c=c||function(N,j){return N===j};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),C=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(N,j,W){const dt=z(N,j,W);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const xe=z(J(N,dt),J(j,dt),W);return{firstIndex:dt,lastIndexOld:N.length-xe,lastIndexNew:j.length-xe}}(_,C,c);return u?function(N,j){const{firstIndex:W,lastIndexOld:dt,lastIndexNew:Zt}=N;if(-1===W)return Array(j).fill("equal");let ue=[];return W>0&&(ue=ue.concat(Array(W).fill("equal"))),Zt-W>0&&(ue=ue.concat(Array(Zt-W).fill("insert"))),dt-W>0&&(ue=ue.concat(Array(dt-W).fill("delete"))),Zt0&&W.push({index:dt,type:"insert",values:N.slice(dt,ue)}),Zt-dt>0&&W.push({index:dt+(ue-dt),type:"delete",howMany:Zt-dt}),W}(C,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return K.fastDiff(m,r,c,!0);let C,M;if(_Mn?-1:1;W[Ee+di]&&(W[Ee]=W[Ee+di].slice(0)),W[Ee]||(W[Ee]=[]),W[Ee].push(ln>Mn?C:M);let Ri=Math.max(ln,Mn),Jo=Ri-Ee;for(;Joj;ue--)dt[ue]=Zt(ue);dt[j]=Zt(j),xe++}while(dt[j]!==N);return W[j].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),K.fastDiff=F;class ct{constructor(r,c){this.source=r,this.name=c,this.path=[],this.stop=function m(){m.called=!0},this.off=function m(){m.called=!0}}}const vt=new Array(256).fill("").map((m,r)=>("0"+r.toString(16)).slice(-2));function Dt(){const m=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,c=4294967296*Math.random()>>>0,u=4294967296*Math.random()>>>0;return"e"+vt[m>>0&255]+vt[m>>8&255]+vt[m>>16&255]+vt[m>>24&255]+vt[r>>0&255]+vt[r>>8&255]+vt[r>>16&255]+vt[r>>24&255]+vt[c>>0&255]+vt[c>>8&255]+vt[c>>16&255]+vt[c>>24&255]+vt[u>>0&255]+vt[u>>8&255]+vt[u>>16&255]+vt[u>>24&255]}const Pt={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function zt(m,r){const c=Pt.get(r.priority);for(let u=0;u{if("object"==typeof dt&&null!==dt){if(M.has(dt))return`[object ${dt.constructor.name}]`;M.add(dt)}return dt})}`:"")+ft(_)}(r,u)),this.name="CKEditorError",this.context=c,this.data=u}is(r){return"CKEditorError"===r}static rethrowUnexpectedError(r,c){if(r.is&&r.is("CKEditorError"))throw r;const u=new it(r.message,c);throw u.stack=r.stack,u}}function Tt(m,r){console.warn(...Et(m,r))}function At(m,r){console.error(...Et(m,r))}function ft(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Et(m,r){const c=ft(m);return r?[m,r,c]:[m,c]}const Ft=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new it("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const se=Symbol("listeningTo"),Gt=Symbol("emitterId"),ve=Symbol("delegations"),be=Le(Object);function Le(m){return m?class extends m{on(r,c,u){this.listenTo(this,r,c,u)}once(r,c,u){let _=!1;this.listenTo(this,r,(C,...M)=>{_||(_=!0,C.off(),c.call(this,C,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let C,M;this[se]||(this[se]={});const E=this[se];$e(r)||qe(r);const N=$e(r);var W,dt,Zt,ue;(C=E[N])||(C=E[N]={emitter:r,callbacks:{}}),(M=C.callbacks[c])||(M=C.callbacks[c]=[]),M.push(u),dt=c,Zt=u,ue=_,(W=r)._addEventListener?W._addEventListener(dt,Zt,ue):this._addEventListener.call(W,dt,Zt,ue)}stopListening(r,c,u){const _=this[se];let C=r&&$e(r);const M=_&&C?_[C]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)de(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:de(this,r,c,u));else if(E){for(;u=E.pop();)de(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[C]}else{for(C in _)this.stopListening(_[C].emitter);delete this[se]}}fire(r,...c){try{const u=r instanceof ct?r:new ct(this,r),_=u.name;let C=ae(this,_);if(u.path.push(this),C){const E=[u,...c];C=Array.from(C);for(let N=0;N{this[ve]||(this[ve]=new Map),r.forEach(_=>{const C=this[ve].get(_);C?C.set(c,u):this[ve].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[ve])if(r)if(c){const u=this[ve].get(r);u&&u.delete(c)}else this[ve].delete(r);else this[ve].clear()}_addEventListener(r,c,u){!function(M,E){const N=Xt(M);if(N[E])return;let j=E,W=null;const dt=[];for(;""!==j&&!N[j];)N[j]={callbacks:[],childEvents:[]},dt.push(N[j]),W&&N[j].childEvents.push(W),W=j,j=j.substr(0,j.lastIndexOf(":"));if(""!==j){for(const Zt of dt)Zt.callbacks=N[j].callbacks.slice();N[j].childEvents.push(W)}}(this,r);const _=Te(this,r),C={callback:c,priority:Pt.get(u.priority)};for(const M of _)zt(M,C)}_removeEventListener(r,c){const u=Te(this,r);for(const _ of u)for(let C=0;C<_.length;C++)_[C].callback==c&&(_.splice(C,1),C--)}}:be}function qe(m,r){m[Gt]||(m[Gt]=r||Dt())}function $e(m){return m[Gt]}function Xt(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function Te(m,r){const c=Xt(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?ae(m,r.substr(0,r.lastIndexOf(":"))):null}function Kt(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const C=new ct(r.source,_);C.path=[...r.path],u.fire(C,...c)}}function de(m,r,c,u){r._removeEventListener?r._removeEventListener(c,u):m._removeEventListener.call(r,c,u)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Le[m]=be.prototype[m]});const Wt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},re=Symbol("observableProperties"),De=Symbol("boundObservables"),on=Symbol("boundProperties"),_n=Symbol("decoratedMethods"),Ae=Symbol("decoratedOriginal"),gn=we(Le());function we(m){return m?class extends m{set(r,c){if(Wt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);un(this);const u=this[re];if(r in this&&!u.has(r))throw new it("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const C=u.get(r);let M=this.fire(`set:${r}`,r,_,C);void 0===M&&(M=_),C===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,C))}}),this[r]=c}bind(...r){if(!r.length||!vi(r))throw new it("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new it("observable-bind-duplicate-properties",this);un(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new it("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const C={property:_,to:[]};c.set(_,C),u.set(_,C)}),{to:Un,toMany:oi,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[re])return;const c=this[on],u=this[De];if(r.length){if(!vi(r))throw new it("observable-unbind-wrong-properties",this);r.forEach(_=>{const C=c.get(_);C&&(C.to.forEach(([M,E])=>{const N=u.get(M),j=N[E];j.delete(C),j.size||delete N[E],Object.keys(N).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,C)=>{this.stopListening(C,"change")}),u.clear(),c.clear()}decorate(r){un(this);const c=this[r];if(!c)throw new it("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:r});this.on(r,(u,_)=>{u.return=c.apply(this,_)}),this[r]=function(...u){return this.fire(r,u)},this[r][Ae]=c,this[_n]||(this[_n]=[]),this[_n].push(r)}stopListening(r,c,u){if(!r&&this[_n]){for(const _ of this[_n])this[_]=this[_][Ae];delete this[_n]}super.stopListening(r,c,u)}}:gn}function un(m){m[re]||(Object.defineProperty(m,re,{value:new Map}),Object.defineProperty(m,De,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function Un(...m){const r=function(...C){if(!C.length)throw new it("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof C[C.length-1]&&(M.callback=C.pop()),C.forEach(N=>{if("string"==typeof N)E.properties.push(N);else{if("object"!=typeof N)throw new it("observable-bind-to-parse-error",null);E={observable:N,properties:[]},M.to.push(E)}}),M}(...m),c=Array.from(this._bindings.keys()),u=c.length;if(!r.callback&&r.to.length>1)throw new it("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new it("observable-bind-to-extra-callback",this);var _;r.to.forEach(C=>{if(C.properties.length&&C.properties.length!==u)throw new it("observable-bind-to-properties-length",this);C.properties.length||(C.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(C=>{const M=_[De];let E;M.get(C.observable)||_.listenTo(C.observable,"change",(N,j)=>{E=M.get(C.observable)[j],E&&E.forEach(W=>{si(_,W.property)})})}),function(C){let M;C._bindings.forEach((E,N)=>{C._to.forEach(j=>{M=j.properties[E.callback?0:C._bindProperties.indexOf(N)],E.to.push([j.observable,M]),function(W,dt,Zt,ue){const xe=W[De],Ee=xe.get(Zt),ln=Ee||{};ln[ue]||(ln[ue]=new Set),ln[ue].add(dt),Ee||xe.set(Zt,ln)}(C._observable,E,j.observable,M)})})}(this),this._bindProperties.forEach(C=>{si(this._observable,C)})}function oi(m,r,c){if(this._bindings.size>1)throw new it("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const C=u.map(M=>[M,_]);return Array.prototype.concat.apply([],C)}(m,r),c)}function vi(m){return m.every(r=>"string"==typeof r)}function si(m,r){const c=m[on].get(r);let u;c.callback?u=c.callback.apply(m,c.to.map(_=>_[0][_[1]])):(u=c.to[0],u=u[0][u[1]]),Object.prototype.hasOwnProperty.call(m,r)?m[r]=u:m.set(r,u)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{we[m]=gn.prototype[m]});class Ke{constructor(){this._replacedElements=[]}replace(r,c){this._replacedElements.push({element:r,newElement:c}),r.style.display="none",c&&r.parentNode.insertBefore(c,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:c})=>{r.style.display="",c&&c.remove()}),this._replacedElements=[]}}function ne(m){let r=0;for(const c of m)r++;return r}function lt(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},mn.prototype.set=function(m,r){var c=this.__data__,u=he(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const An=mn,No=function(m){if(!Wt(m))return!1;var r=jn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ua=oe["__core-js_shared__"];var qa=function(){var m=/[^.]+$/.exec(ua&&ua.keys&&ua.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Je=Function.prototype.toString;const Fn=function(m){if(null!=m){try{return Je.call(m)}catch{}try{return m+""}catch{}}return""};var He=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Wt(m)||function(m){return!!qa&&qa in m}(m))&&(No(m)?Q:He).test(Fn(m))}(c)?c:void 0},Qi=Rn(oe,"Map"),Ao=Rn(Object,"create");var us=Object.prototype.hasOwnProperty,Or=Object.prototype.hasOwnProperty;function jr(m){var r=-1,c=null==m?0:m.length;for(this.clear();++r-1&&m%1==0&&m-1&&m%1==0&&m<=9007199254740991};var Ro={};Ro["[object Float32Array]"]=Ro["[object Float64Array]"]=Ro["[object Int8Array]"]=Ro["[object Int16Array]"]=Ro["[object Int32Array]"]=Ro["[object Uint8Array]"]=Ro["[object Uint8ClampedArray]"]=Ro["[object Uint16Array]"]=Ro["[object Uint32Array]"]=!0,Ro["[object Arguments]"]=Ro["[object Array]"]=Ro["[object ArrayBuffer]"]=Ro["[object Boolean]"]=Ro["[object DataView]"]=Ro["[object Date]"]=Ro["[object Error]"]=Ro["[object Function]"]=Ro["[object Map]"]=Ro["[object Number]"]=Ro["[object Object]"]=Ro["[object RegExp]"]=Ro["[object Set]"]=Ro["[object String]"]=Ro["[object WeakMap]"]=!1;const uc=function(m){return function(r){return m(r)}};var Iu=et&&!et.nodeType&&et,Rl=Iu&&ot&&!ot.nodeType&&ot,gc=Rl&&Rl.exports===Iu&&kt.process;const Tl=function(){try{return Rl&&Rl.require&&Rl.require("util").types||gc&&gc.binding&&gc.binding("util")}catch{}}();var Ms=Tl&&Tl.isTypedArray;const Yc=Ms?uc(Ms):function(m){return fn(m)&&ql(m.length)&&!!Ro[jn(m)]};var _u=Object.prototype.hasOwnProperty;const Mr=function(m,r){var c=Ye(m),u=!c&&Il(m),_=!c&&!u&&Zs(m),C=!c&&!u&&!_&&Yc(m),M=c||u||_||C,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function hn(m){return Lo(m,Ve)}function Ve(m){return pa(m)?m:void 0}function Ie(m){if(m){if(m.defaultView)return m instanceof m.defaultView.Document;if(m.ownerDocument&&m.ownerDocument.defaultView)return m instanceof m.ownerDocument.defaultView.Node}return!1}function vu(m){const r=Object.prototype.toString.apply(m);return"[object Window]"==r||"[object global]"==r}const $s=eo(Le());function eo(m){return m?class extends m{listenTo(r,c,u,_={}){if(Ie(r)||vu(r)){const C={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,C)||new _d(r,C);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(Ie(r)||vu(r)){const _=this._getAllProxyEmitters(r);for(const C of _)this.stopListening(C,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const C=u[se];return C&&C[_]?C[_].emitter:null}(this,Xr(r,c))}_getAllProxyEmitters(r){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(c=>this._getProxyEmitter(r,c)).filter(c=>!!c)}}:$s}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{eo[m]=$s.prototype[m]});class _d extends(Le()){constructor(r,c){super(),qe(this,Xr(r,c)),this._domNode=r,this._options=c}attach(r){if(this._domListeners&&this._domListeners[r])return;const c=this._createDomListener(r);this._domNode.addEventListener(r,c,this._options),this._domListeners||(this._domListeners={}),this._domListeners[r]=c}detach(r){let c;!this._domListeners[r]||(c=this._events[r])&&c.callbacks.length||this._domListeners[r].removeListener()}_addEventListener(r,c,u){this.attach(r),Le().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Le().prototype._removeEventListener.call(this,r,c),this.detach(r)}_createDomListener(r){const c=u=>{this.fire(r,u)};return c.removeListener=()=>{this._domNode.removeEventListener(r,c,this._options),delete this._domListeners[r]},c}}function Xr(m,r){let c=(u=m)["data-ck-expando"]||(u["data-ck-expando"]=Dt());var u;for(const u of Object.keys(r).sort())r[u]&&(c+="-"+u);return c}let Ru;try{Ru={window,document}}catch{Ru={window:{},document:{}}}const Mt=Ru;function me(m){return"[object Text]"==Object.prototype.toString.call(m)}function jt(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Qe(m){const r=m.ownerDocument.defaultView.getComputedStyle(m);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}function Ln(m){return m&&m.parentNode?m.offsetParent===Mt.document.body?null:m.offsetParent:null}const It=["top","right","bottom","left","width","height"];class ce{constructor(r){const c=jt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),bn(r)||c)if(c){const u=ce.getDomRangeRects(r);Ze(this,ce.getBoundingRect(u))}else Ze(this,r.getBoundingClientRect());else if(vu(r)){const{innerWidth:u,innerHeight:_}=r;Ze(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else Ze(this,r)}clone(){return new ce(this)}moveTo(r,c){return this.top=c,this.right=r+this.width,this.bottom=c+this.height,this.left=r,this}moveBy(r,c){return this.top+=c,this.right+=r,this.left+=r,this.bottom+=c,this}getIntersection(r){const c={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left),width:0,height:0};if(c.width=c.right-c.left,c.height=c.bottom-c.top,c.width<0||c.height<0)return null;{const u=new ce(c);return u._source=this._source,u}}getIntersectionArea(r){const c=this.getIntersection(r);return c?c.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let c=this.clone();if(tn(r))return c;let u,_=r,C=r.parentNode||r.commonAncestorContainer;for(;C&&!tn(C);){const E="visible"===((M=C)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Jn(_)&&(u=_);const N=Jn(C);if(E||u&&("relative"===N&&E||"relative"!==N)){_=C,C=C.parentNode;continue}const j=new ce(C),W=c.getIntersection(j);if(!W)return null;W.getArea(){for(const r of m){const c=Qn._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=Qn;function vo(m){return r=>r+m}function xo(m){let r=0;for(;m.previousSibling;)m=m.previousSibling,r++;return r}function To(m,r,c){m.insertBefore(c,m.childNodes[r]||null)}function va(m){return m&&m.nodeType===Node.COMMENT_NODE}function sa(m){return!!(m&&m.getClientRects&&m.getClientRects().length)}yi._observerInstance=null,yi._elementCallbacks=null;var ha=Math.pow;function ts({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:C}){No(r)&&(r=r()),No(u)&&(u=u());const M=Ln(m),E=function(Zt){Zt=Object.assign({top:0,bottom:0,left:0,right:0},Zt);const ue=new ce(Mt.window);return ue.top+=Zt.top,ue.height-=Zt.top,ue.bottom-=Zt.bottom,ue.height-=Zt.bottom,ue}(C),N=new ce(m),j=zs(r,E);let W;if(!j||!E.getIntersection(j))return null;const dt={targetRect:j,elementRect:N,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Zt=zs(u,E);Zt&&(dt.limiterRect=Zt)}W=function(Zt,ue){const{elementRect:xe}=ue,Ee=xe.getArea(),ln=Zt.map(Ri=>new es(Ri,ue)).filter(Ri=>!!Ri.name);let Mn=0,di=null;for(const Ri of ln){const{limiterIntersectionArea:Jo,viewportIntersectionArea:Da}=Ri;if(Jo===Ee)return Ri;const Ts=ha(Da,2)+ha(Jo,2);Ts>Mn&&(Mn=Ts,di=Ri)}return di}(c,dt)}else W=new es(c[0],dt);return W}function zs(m,r){const c=new ce(m).getVisible();return c?c.getIntersection(r):null}class es{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:C,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:C},this._options=c}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const r=this._options.limiterRect;return r?r.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function ns(m){const r=m.parentNode;r&&r.removeChild(m)}function ps({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const C=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new ce(m).excludeScrollbarsAndBorders(),N=c&&u,j=[M,C].every(xe=>E.contains(xe));let{scrollX:W,scrollY:dt}=m;const Zt=W,ue=dt;N?dt-=E.top-r.top+_.top:j||(Lc(M,E)?dt-=E.top-r.top+_.top:Ks(C,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),j||(is(r,E)?W-=E.left-r.left+_.left:Fd(r,E)&&(W+=r.right-E.right+_.right)),W==Zt&&dt===ue||m.scrollTo(W,dt)}function Rr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:C}){const M=rr(m),E=c&&u;let N,j,W;const dt=C||M.document.body;for(;m!=dt;)j=r(),N=new ce(m).excludeScrollbarsAndBorders(),W=N.contains(j),E?m.scrollTop-=N.top-j.top+_:W||(Lc(j,N)?m.scrollTop-=N.top-j.top+_:Ks(j,N)&&(m.scrollTop+=c?j.top-N.top-_:j.bottom-N.bottom+_)),W||(is(j,N)?m.scrollLeft-=N.left-j.left+_:Fd(j,N)&&(m.scrollLeft+=j.right-N.right+_)),m=m.parentNode}function Ks(m,r){return m.bottom>r.bottom}function Lc(m,r){return m.topr.right}function rr(m){return jt(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function sr(m){if(jt(m)){let r=m.commonAncestorContainer;return me(r)&&(r=r.parentNode),r}return m.parentNode}function Cs(m,r){const c=rr(m),u=new ce(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new ce(_.frameElement).excludeScrollbarsAndBorders();u.moveBy(M.left,M.top),_=_.parent}}return u}const m_={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},Qp={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},$a=function(){const m={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let r=65;r<=90;r++)m[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)m[r-48]=r;for(let r=112;r<=123;r++)m["f"+(r-111)]=r;for(const r of"`-=[];',./\\")m[r]=r.charCodeAt(0);return m}(),su=Object.fromEntries(Object.entries($a).map(([m,r])=>[r,m.charAt(0).toUpperCase()+m.slice(1)]));function xc(m){let r;if("string"==typeof m){if(r=$a[m.toLowerCase()],!r)throw new it("keyboard-unknown-key",null,{key:m})}else r=m.keyCode+(m.altKey?$a.alt:0)+(m.ctrlKey?$a.ctrl:0)+(m.shiftKey?$a.shift:0)+(m.metaKey?$a.cmd:0);return r}function Xs(m){return"string"==typeof m&&(m=m.split("+").map(c=>c.trim())),m.map(r=>"string"==typeof r?function(c){if(c.endsWith("!"))return xc(c.slice(0,-1));const u=xc(c);return(D_isMac||D_isiOS)&&u==$a.ctrl?$a.cmd:u}(r):r).reduce((r,c)=>c+r,0)}function bu(m){let r=Xs(m);return Object.entries(D_isMac||D_isiOS?m_:Qp).reduce((c,[u,_])=>(0!=(r&$a[u])&&(r&=~$a[u],c+=_),c),"")+(r?su[r]:"")}function d1(m,r){const c="ltr"===r;switch(m){case $a.arrowleft:return c?"left":"right";case $a.arrowright:return c?"right":"left";case $a.arrowup:return"up";case $a.arrowdown:return"down"}}function Ds(m){return Array.isArray(m)?m:[m]}Mt.window.CKEDITOR_TRANSLATIONS||(Mt.window.CKEDITOR_TRANSLATIONS={});const Yl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Hu(m){return Yl.includes(m)?"rtl":"ltr"}class Cu{constructor({uiLanguage:r="en",contentLanguage:c}={}){this.uiLanguage=r,this.contentLanguage=c||this.uiLanguage,this.uiLanguageDirection=Hu(this.uiLanguage),this.contentLanguageDirection=Hu(this.contentLanguage),this.t=(u,_)=>this._t(u,_)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,c=[]){return c=Ds(c),"string"==typeof r&&(r={string:r}),_=function Id(m,r,c=1){if("number"!=typeof c)throw new it("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Mt.window.CKEDITOR_TRANSLATIONS[N=m]||!Mt.window.CKEDITOR_TRANSLATIONS[N].dictionary[_]))return 1!==c?r.plural:r.string;var N;const M=Mt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(N=>1===N?0:1),E=Mt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),C=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new it("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const C=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(C,_),this.fire("add",_,M),u++}return this.fire("change",{added:r,removed:[],index:c}),this}get(r){let c;if("string"==typeof r)c=this._itemMap.get(r);else{if("number"!=typeof r)throw new it("collection-get-invalid-arg",this);c=this._items[r]}return c||null}has(r){if("string"==typeof r)return this._itemMap.has(r);{const c=r[this._idProperty];return c&&this._itemMap.has(c)}}getIndex(r){let c;return c="string"==typeof r?this._itemMap.get(r):r,c?this._items.indexOf(c):-1}remove(r){const[c,u]=this._remove(r);return this.fire("change",{added:[],removed:[c],index:u}),c}map(r,c){return this._items.map(r,c)}find(r,c){return this._items.find(r,c)}filter(r,c){return this._items.filter(r,c)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const r=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:r,index:0})}bindTo(r){if(this._bindToCollection)throw new it("collection-bind-to-rebind",this);return this._bindToCollection=r,{as:c=>{this._setUpBindToBinding(u=>new c(u))},using:c=>{this._setUpBindToBinding("function"==typeof c?c:u=>u[c])}}}_setUpBindToBinding(r){const c=this._bindToCollection,u=(_,C,M)=>{const E=c._bindToCollection==this,N=c._bindToInternalToExternalMap.get(C);if(E&&N)this._bindToExternalToInternalMap.set(C,N),this._bindToInternalToExternalMap.set(N,C);else{const j=r(C);if(!j)return void this._skippedIndexesFromExternal.push(M);let W=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&W--;for(const dt of c._skippedIndexesFromExternal)W>=dt&&W++;this._bindToExternalToInternalMap.set(C,j),this._bindToInternalToExternalMap.set(j,C),this.add(j,W);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(C);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((N,j)=>(Mj&&N.push(j),N),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new it("collection-add-invalid-id",this);if(this.get(u))throw new it("collection-add-item-already-exists",this)}else r[c]=u=Dt();return u}_remove(r){let c,u,_,C=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),C=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],C=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),C=-1==c||!this._itemMap.get(u)),C)throw new it("collection-remove-404",this);this._items.splice(c,1),this._itemMap.delete(u);const E=this._bindToInternalToExternalMap.get(_);return this._bindToInternalToExternalMap.delete(_),this._bindToExternalToInternalMap.delete(E),this.fire("remove",_,c),[_,c]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function os(m){const r=m.next();return r.done?null:r.value}class as extends(eo(we())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(r){if(this._elements.has(r))throw new it("focustracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class Gc{constructor(){this._listener=new(eo())}listenTo(r){this._listener.listenTo(r,"keydown",(c,u)=>{this._listener.fire("_keydown:"+xc(u),u)})}set(r,c,u={}){const _=Xs(r);this._listener.listenTo(this._listener,"_keydown:"+_,(M,E)=>{c(E,()=>{E.preventDefault(),E.stopPropagation(),M.stop()}),M.return=!0},{priority:u.priority})}press(r){return!!this._listener.fire("_keydown:"+xc(r),r)}stopListening(r){this._listener.stopListening(r)}destroy(){this.stopListening()}}function Jc(m){return nt(m)?new Map(m):function(r){const c=new Map;for(const u in r)c.set(u,r[u]);return c}(m)}function Tr(m,r){let c;function u(..._){u.cancel(),c=setTimeout(()=>m(..._),r)}return u.cancel=()=>{clearTimeout(c)},u}function cn(m,r){return!!(c=m.charAt(r-1))&&1==c.length&&/[\ud800-\udbff]/.test(c)&&!!(u=m.charAt(r))&&1==u.length&&/[\udc00-\udfff]/.test(u);var u,c}function fd(m,r){return!!(c=m.charAt(r))&&1==c.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(c);var c}const p1=function(){const m=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],r=new RegExp("\\p{Regional_Indicator}{2}","u").source,c="(?:"+m.map(u=>u.source).join("|")+")";return new RegExp(`${r}|${c}(?:\u200d${c})*`,"ug")}();function Ml(m,r){const c=String(m).matchAll(p1);return Array.from(c).some(u=>u.index{this._renderViewIntoCollectionParent(u,_)}),this.on("remove",(c,u)=>{u.element&&this._parentElement&&u.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const c of this)this._renderViewIntoCollectionParent(c)}delegate(...r){if(!r.length||!r.every(c=>"string"==typeof c))throw new it("ui-viewcollection-delegate-wrong-events",this);return{to:c=>{for(const u of this)for(const _ of r)u.delegate(_).to(c);this.on("add",(u,_)=>{for(const C of r)_.delegate(C).to(c)}),this.on("remove",(u,_)=>{for(const C of r)_.stopDelegating(C,c)})}}}_renderViewIntoCollectionParent(r,c){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[c])}remove(r){return super.remove(r)}}var F1=b(6062),Io=b.n(F1),hd=b(4793);Io()(hd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class aa extends(eo(we())){constructor(r){super(),this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new tc,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(c,u)=>{u.locale=r,u.t=r&&r.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=wr.bind(this,this)}createCollection(r){const c=new Fa(r);return this._viewCollections.add(c),c}registerChild(r){nt(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){nt(r)||(r=[r]);for(const c of r)this._unboundChildren.remove(c)}setTemplate(r){this.template=new wr(r)}extendTemplate(r){wr.extend(this.template,r)}render(){if(this.isRendered)throw new it("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class wr extends(Le()){constructor(r){super(),Object.assign(this,Oa(Nd(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,intoFragment:!1,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new it("ui-template-revert-not-applied",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(c){if(c.children)for(const u of c.children)ie(u)?yield u:ke(u)&&(yield*r(u))}(this)}static bind(r,c){return{to:(u,_)=>new Uo({eventNameOrFunction:u,attribute:u,observable:r,emitter:c,callback:_}),if:(u,_,C)=>new __({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:C})}}static extend(r,c){if(r._isRendered)throw new it("template-extend-render",[this,r]);pt(r,Oa(Nd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new it("ui-template-wrong-syntax",this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let c=r.node;return c||(c=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),c}_renderText(r){let c=r.node;return c?r.revertData.text=c.textContent:c=r.node=document.createTextNode(""),B(this.text)?this._bindToObservable({schema:this.text,updater:gd(c),data:r}):c.textContent=this.text.join(""),c}_renderAttributes(r){if(!this.attributes)return;const c=r.node,u=r.revertData;for(const _ in this.attributes){const C=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=C);const E=In(M)?M[0].ns:null;if(B(M)){const N=In(M)?M[0].value:M;u&&Fi(_)&&N.unshift(C),this._bindToObservable({schema:N,updater:f_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&C&&Fi(_)&&M.unshift(C);const N=M.map(j=>j&&j.value||j).reduce((j,W)=>j.concat(W),[]).reduce(bt,"");Yt(N)||c.setAttributeNS(E,_,N)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const C=r[_];B(C)?this._bindToObservable({schema:[C],updater:fp(u,_),data:c}):u.style[_]=C}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let C=0;for(const M of this.children)if(kn(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(ie(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(Ie(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[C++],isApplying:!0,revertData:E})}else u.appendChild(M.render());r.intoFragment&&c.appendChild(u)}_setUpListeners(r){if(this.eventListeners)for(const c in this.eventListeners){const u=this.eventListeners[c].map(_=>{const[C,M]=c.split("@");return _.activateDomEventListener(C,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;Go(r,c,u);const C=r.filter(M=>!Yt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(C)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const C of _)C();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const C=c.attributes[_];null===C?u.removeAttribute(_):u.setAttribute(_,C)}for(let _=0;_Go(r,c,u);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,_),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,_)}}}class Uo extends zu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(C,M)=>{c&&!M.target.matches(c)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(M):this.observable.fire(this.eventNameOrFunction,M))};return this.emitter.listenTo(u.node,r,_),()=>{this.emitter.stopListening(u.node,r,_)}}}class __ extends zu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Yt(super.getValue(r))&&(this.valueIfTrue||!0)}}function B(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(B):m instanceof zu)}function Go(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof zu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof __?u[0]:u.reduce(bt,""),Yt(_)?r.remove():r.set(_)}function gd(m){return{set(r){m.textContent=r},remove(){m.textContent=""}}}function f_(m,r,c){return{set(u){m.setAttributeNS(c,r,u)},remove(){m.removeAttributeNS(c,r)}}}function fp(m,r){return{set(c){m.style[r]=c},remove(){m.style[r]=null}}}function Nd(m){return Lo(m,r=>{if(r&&(r instanceof zu||ke(r)||ie(r)||kn(r)))return r})}function Oa(m){if("string"==typeof m?m={text:[m]}:m.text&&((r=m).text=Ds(r.text)),m.on&&(m.eventListeners=function(r){for(const c in r)qd(r,c);return r}(m.on),delete m.on),!m.text){m.attributes&&function(c){for(const u in c)c[u].value&&(c[u].value=Ds(c[u].value)),qd(c,u)}(m.attributes);const r=[];if(m.children)if(kn(m.children))r.push(m.children);else for(const c of m.children)ke(c)||ie(c)||Ie(c)?r.push(c):r.push(new wr(c));m.children=r}var r;return m}function qd(m,r){m[r]=Ds(m[r])}function bt(m,r){return Yt(r)?m:Yt(m)?r:`${m} ${r}`}function yt(m,r){for(const c in r)m[c]?m[c].push(...r[c]):m[c]=r[c]}function pt(m,r){if(r.attributes&&(m.attributes||(m.attributes={}),yt(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),yt(m.eventListeners,r.eventListeners)),r.text&&m.text.push(...r.text),r.children&&r.children.length){if(m.children.length!=r.children.length)throw new it("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Yt(m){return!m&&0!==m}function ie(m){return m instanceof aa}function ke(m){return m instanceof wr}function kn(m){return m instanceof Fa}function In(m){return Wt(m[0])&&m[0].ns}function Fi(m){return"class"==m||"style"==m}class Gi extends Fa{constructor(r,c=[]){super(c),this.locale=r}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new wr({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=We(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}var Sa=b(6574);Io()(Sa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const xr=class extends aa{constructor(){super();const m=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",m.if("isVisible","ck-hidden",r=>!r),"ck-reset_all-excluded",m.if("isColorInherited","ck-icon_inherit-color")],viewBox:m.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const m=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),r=m.getAttribute("viewBox");r&&(this.viewBox=r);for(const{name:c,value:u}of Array.from(m.attributes))xr.presentationalAttributeNames.includes(c)&&this.element.setAttribute(c,u);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;m.childNodes.length>0;)this.element.appendChild(m.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(m=>{m.style.fill=this.fillColor})}};let Ps=xr;Ps.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Yu extends aa{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const r=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:r.to("style"),id:r.to("id")},children:[{text:r.to("text")}]})}}var Bl=b(4906);Io()(Bl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hr extends aa{constructor(r,c=new Yu){super(r),this._focusDelayed=null;const u=this.bindTemplate,_=Dt();this.set("ariaChecked",void 0),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${_}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(c),this.iconView=new Ps,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const C={tag:"button",attributes:{class:["ck","ck-button",u.to("class"),u.if("isEnabled","ck-disabled",M=>!M),u.if("isVisible","ck-hidden",M=>!M),u.to("isOn",M=>M?"ck-on":"ck-off"),u.if("withText","ck-button_with-text"),u.if("withKeystroke","ck-button_with-keystroke")],role:u.to("role"),type:u.to("type",M=>M||"button"),tabindex:u.to("tabindex"),"aria-label":u.to("ariaLabel"),"aria-labelledby":u.to("ariaLabelledBy"),"aria-disabled":u.if("isEnabled",!0,M=>!M),"aria-checked":u.to("isOn"),"aria-pressed":u.to("isOn",M=>!!this.isToggleable&&String(!!M)),"data-cke-tooltip-text":u.to("_tooltipString"),"data-cke-tooltip-position":u.to("tooltipPosition")},children:this.children,on:{click:u.to(M=>{this.isEnabled?this.fire("execute"):M.preventDefault()})}};D_isSafari&&(this._focusDelayed||(this._focusDelayed=Tr(()=>this.focus(),0)),C.on.mousedown=u.to(()=>{this._focusDelayed()}),C.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(C)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(r){return r.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),r}_createKeystrokeView(){const r=new aa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",c=>bu(c))}]}),r}_getTooltipString(r,c,u){return r?"string"==typeof r?r:(u&&(u=bu(u)),r instanceof Function?r(c,u):`${c}${u?` (${u})`:""}`):""}}var da=b(5332);Io()(da.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xi extends Hr{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new aa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}var mc=b(6781);Io()(mc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),b(1103),b(841);var Co=b(3662);Io()(Co.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xu extends aa{constructor(r){super(r),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Dt()}`;const c=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:c.to("for")},children:[{text:c.to("text")}]})}}var Ac=b(2577);Io()(Ac.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Dr extends aa{constructor(r,c){super(r);const u=`ck-labeled-field-view-${Dt()}`,_=`ck-labeled-field-view-status-${Dt()}`;this.fieldView=c(this,u,_),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(u),this.statusView=this._createStatusView(_),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(M,E)=>M||E);const C=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",C.to("class"),C.if("isEnabled","ck-disabled",M=>!M),C.if("isEmpty","ck-labeled-field-view_empty"),C.if("isFocused","ck-labeled-field-view_focused"),C.if("placeholder","ck-labeled-field-view_placeholder"),C.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(r){const c=new xu(this.locale);return c.for=r,c.bind("text").to(this,"label"),c}_createStatusView(r){const c=new aa(this.locale),u=this.bindTemplate;return c.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",u.if("errorText","ck-labeled-field-view__status_error"),u.if("_statusText","ck-hidden",_=>!_)],id:r,role:u.if("errorText","alert")},children:[{text:u.to("_statusText")}]}),c}focus(r){this.fieldView.focus(r)}}class g_ extends aa{constructor(r){super(r),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new as,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",c.if("isFocused","ck-input_focused"),c.if("isEmpty","ck-input-text_empty"),c.if("hasError","ck-error")],id:c.to("id"),placeholder:c.to("placeholder"),readonly:c.to("isReadOnly"),"aria-invalid":c.if("hasError",!0),"aria-describedby":c.to("ariaDescribedById")},on:{input:c.to((...u)=>{this.fire("input",...u),this._updateIsEmpty()}),change:c.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(r,c,u)=>{this._setDomElementValue(u),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(r){this.element.value=r||0===r?r:""}}var hp=b(4879);Io()(hp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Wp extends g_{constructor(r){super(r),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class fg extends Wp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=b(8182);Io()(I1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class v_ extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",c.to("position",u=>`ck-dropdown__panel_${u}`),c.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:c.to(u=>{"input"!==u.target.tagName.toLocaleLowerCase()&&u.preventDefault()})}})}focus(){if(this.children.length){const r=this.children.first;"function"==typeof r.focus?r.focus():Tt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}var ec=b(5485);Io()(ec.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const N1=class extends aa{constructor(m,r,c){super(m);const u=this.bindTemplate;this.buttonView=r,this.panelView=c,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new Gc,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",u.to("class"),u.if("isEnabled","ck-disabled",_=>!_)],id:u.to("id"),"aria-describedby":u.to("ariaDescribedById")},children:[r,c]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":u.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(r,c,u)=>{if(u)if("auto"===this.panelPosition){const _=N1._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=_?_.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const m=(r,c)=>{this.isOpen&&(this.isOpen=!1,c())};this.keystrokes.set("arrowdown",(r,c)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,c())}),this.keystrokes.set("arrowright",(r,c)=>{this.isOpen&&c()}),this.keystrokes.set("arrowleft",m),this.keystrokes.set("esc",m)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:m,north:r,southEast:c,southWest:u,northEast:_,northWest:C,southMiddleEast:M,southMiddleWest:E,northMiddleEast:N,northMiddleWest:j}=N1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,C,N,j,r]:[u,c,E,M,m,C,_,j,N,r]}};let Au=N1;Au.defaultPanelPositions={south:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/2,name:"s"}),southEast:m=>({top:m.bottom,left:m.left,name:"se"}),southWest:(m,r)=>({top:m.bottom,left:m.left-r.width+m.width,name:"sw"}),southMiddleEast:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/4,name:"sme"}),southMiddleWest:(m,r)=>({top:m.bottom,left:m.left-3*(r.width-m.width)/4,name:"smw"}),north:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/2,name:"n"}),northEast:(m,r)=>({top:m.top-r.height,left:m.left,name:"ne"}),northWest:(m,r)=>({top:m.top-r.height,left:m.left-r.width+m.width,name:"nw"}),northMiddleEast:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/4,name:"nme"}),northMiddleWest:(m,r)=>({top:m.top-r.height,left:m.left-3*(r.width-m.width)/4,name:"nmw"})},Au._getOptimalPosition=ts;const vd='';class m1 extends Hr{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",c=>String(c))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new Ps;return r.content=vd,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}class ul extends(Le()){constructor(r){if(super(),this.focusables=r.focusables,this.focusTracker=r.focusTracker,this.keystrokeHandler=r.keystrokeHandler,this.actions=r.actions,r.actions&&r.keystrokeHandler)for(const c in r.actions){let u=r.actions[c];"string"==typeof u&&(u=[u]);for(const _ of u)r.keystrokeHandler.set(_,(C,M)=>{this[c](),M()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Om)||null}get last(){return this.focusables.filter(Om).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((c,u)=>{const _=c.element===this.focusTracker.focusedElement;return _&&(r=u),_}),r)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const r=this.next;r&&this.focusables.getIndex(r)===this.current||(r===this.first?this.fire("forwardCycle"):this._focus(r,1))}focusPrevious(){const r=this.previous;r&&this.focusables.getIndex(r)===this.current||(r===this.last?this.fire("backwardCycle"):this._focus(r,-1))}_focus(r,c){r&&r.focus(c)}_getFocusableItem(r){const c=this.current,u=this.focusables.length;if(!u)return null;if(null===c)return this[1===r?"first":"last"];let _=(c+u+r)%u;do{const C=this.focusables.get(_);if(Om(C))return C;_=(_+u+r)%u}while(_!==c);return null}}function Om(m){return!(!("focus"in m)||!sa(m.element))}class dl extends aa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class g2 extends aa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function gp(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(we()){constructor(r){super(),this._disableStack=new Set,this.editor=r,this.set("isEnabled",!0)}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",kf,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",kf),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function kf(m){m.return=!1,m.stop()}class Ta extends(we()){constructor(r){super(),this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(r,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",c=>{if(!this.affectsData)return;const u=r.model.document.selection,_="$graveyard"!=u.getFirstPosition().root.rootName&&r.model.canEditAt(u);(r.isReadOnly||this._isEnabledBasedOnSelection&&!_)&&(c.return=!1,c.stop())},{priority:"highest"}),this.on("execute",c=>{this.isEnabled||c.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(r){this._affectsData=r}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",q1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",q1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function q1(m){m.return=!1,m.stop()}class $p extends Ta{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){zt(this._childCommandsDefinitions,{command:r,priority:c.priority||"normal"}),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const r=this._childCommandsDefinitions.find(({command:c})=>c.isEnabled);return r&&r.command}}class Df extends(Le()){constructor(r,c=[],u=[]){super(),this._plugins=new Map,this._context=r,this._availablePlugins=new Map;for(const _ of c)_.pluginName&&this._availablePlugins.set(_.pluginName,_);this._contextPlugins=new Map;for(const[_,C]of u)this._contextPlugins.set(_,C),this._contextPlugins.set(C,_),_.pluginName&&this._availablePlugins.set(_.pluginName,_)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const c=this._plugins.get(r);if(!c){let u=r;throw"function"==typeof r&&(u=r.pluginName||r.name),new it("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,C=this._context;(function xe(Ee,ln=new Set){Ee.forEach(Mn=>{N(Mn)&&(ln.has(Mn)||(ln.add(Mn),Mn.pluginName&&!_._availablePlugins.has(Mn.pluginName)&&_._availablePlugins.set(Mn.pluginName,Mn),Mn.requires&&xe(Mn.requires,ln)))})})(r),Zt(r);const M=[...function xe(Ee,ln=new Set){return Ee.map(Mn=>N(Mn)?Mn:_._availablePlugins.get(Mn)).reduce((Mn,di)=>ln.has(di)?Mn:(ln.add(di),di.requires&&(Zt(di.requires,di),xe(di.requires,ln).forEach(Ri=>Mn.add(Ri))),Mn.add(di)),new Set)}(r.filter(xe=>!W(xe,c)))];!function(xe,Ee){for(const ln of Ee){if("function"!=typeof ln)throw new it("plugincollection-replace-plugin-invalid-type",null,{pluginItem:ln});const Mn=ln.pluginName;if(!Mn)throw new it("plugincollection-replace-plugin-missing-name",null,{pluginItem:ln});if(ln.requires&&ln.requires.length)throw new it("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Mn});const di=_._availablePlugins.get(Mn);if(!di)throw new it("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Mn});const Ri=xe.indexOf(di);if(-1===Ri){if(_._contextPlugins.has(di))return;throw new it("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Mn})}if(di.requires&&di.requires.length)throw new it("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Mn});xe.splice(Ri,1,ln),_._availablePlugins.set(Mn,ln)}}(M,u);const E=M.map(xe=>{let Ee=_._contextPlugins.get(xe);return Ee=Ee||new xe(C),_._add(xe,Ee),Ee});return ue(E,"init").then(()=>ue(E,"afterInit")).then(()=>E);function N(xe){return"function"==typeof xe}function j(xe){return N(xe)&&!!xe.isContextPlugin}function W(xe,Ee){return Ee.some(ln=>ln===xe||dt(xe)===ln||dt(ln)===xe)}function dt(xe){return N(xe)?xe.pluginName||xe.name:xe}function Zt(xe,Ee=null){xe.map(ln=>N(ln)?ln:_._availablePlugins.get(ln)||ln).forEach(ln=>{(function(Mn,di){if(!N(Mn))throw di?new it("plugincollection-soft-required",C,{missingPlugin:Mn,requiredBy:dt(di)}):new it("plugincollection-plugin-not-found",C,{plugin:Mn})})(ln,Ee),function(Mn,di){if(j(di)&&!j(Mn))throw new it("plugincollection-context-required",C,{plugin:dt(Mn),requiredBy:dt(di)})}(ln,Ee),function(Mn,di){if(di&&W(Mn,c))throw new it("plugincollection-required",C,{plugin:dt(Mn),requiredBy:dt(di)})}(ln,Ee)})}function ue(xe,Ee){return xe.reduce((ln,Mn)=>Mn[Ee]?_._contextPlugins.has(Mn)?ln:ln.then(Mn[Ee].bind(Mn)):ln,Promise.resolve())}}destroy(){const r=[];for(const[,c]of this)"function"!=typeof c.destroy||this._contextPlugins.has(c)||r.push(c.destroy());return Promise.all(r)}_add(r,c){this._plugins.set(r,c);const u=r.pluginName;if(u){if(this._plugins.has(u))throw new it("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class v2{constructor(r){this._contextOwner=null,this.config=new er(r,this.constructor.defaultConfig);const c=this.constructor.builtinPlugins;this.config.define("plugins",c),this.plugins=new Df(this,c);const u=this.config.get("language")||{};this.locale=new Cu({uiLanguage:"string"==typeof u?u:u.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new tc}initPlugins(){const r=this.config.get("plugins")||[],c=this.config.get("substitutePlugins")||[];for(const u of r.concat(c)){if("function"!=typeof u)throw new it("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new it("context-initplugins-invalid-plugin",null,{Plugin:u})}return this.plugins.init(r,[],c)}destroy(){return Promise.all(Array.from(this.editors,r=>r.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,c){if(this._contextOwner)throw new it("context-addeditor-private-context");this.editors.add(r),c&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const c of this.config.names())["plugins","removePlugins","extraPlugins"].includes(c)||(r[c]=this.config.get(c));return r}static create(r){return new Promise(c=>{const u=new this(r);c(u.initPlugins().then(()=>u))})}}class C_ extends(we()){constructor(r){super(),this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Kp extends Gc{constructor(r){super(),this.editor=r}set(r,c,u={}){if("string"==typeof c){const _=c;c=(C,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var vp=b(4717);Io()(vp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let xt=!1;function Y({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const C=m.document;function M(E){Z.get(C).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(N=>$t(C,N))}Z.has(C)||(Z.set(C,new Map),C.registerPostFixer(E=>$t(C,E)),C.on("change:isComposing",()=>{m.change(E=>$t(C,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,N,j)=>{M(j)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(xt||Tt("enableplaceholder-deprecated-text-option"),xt=!0)}function $t(m,r){const c=Z.get(m),u=[];let _=!1;for(const[C,M]of c)M.isDirectHost&&(u.push(C),fe(r,C,M)&&(_=!0));for(const[C,M]of c){if(M.isDirectHost)continue;const E=nn(C);E&&(u.includes(E)||(M.hostElement=E,fe(r,C,M)&&(_=!0)))}return _}function fe(m,r,c){const{text:u,isDirectHost:_,hostElement:C}=c;let M=!1;return C.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,C),M=!0),(_||1==r.childCount)&&function(E,N){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const j=E.document,W=j.selection.anchor;return!(j.isComposing&&W&&W.parent===E||!N&&j.isFocused&&(!W||W.parent===E))}(C,c.keepOnFocus)?(E=m,!(N=C).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",N),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,C)&&(M=!0),M;var E,N}function nn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class ni{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ho extends(Le(ni)){constructor(r){super(),this.document=r,this.parent=null}get index(){let r;if(!this.parent)return null;if(-1==(r=this.parent.getChildIndex(this)))throw new it("view-node-not-found-in-parent",this);return r}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.index),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=lt(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new it("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new it("view-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(r={}){const c=[];let u=r.includeSelf?this.textNode:this.parent;for(;null!==u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}}Ha.prototype.is=function(m){return"$textProxy"===m||"view:$textProxy"===m||"textProxy"===m||"view:textProxy"===m};class ms{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let c of r)("string"==typeof c||c instanceof RegExp)&&(c={name:c}),this._patterns.push(c)}match(...r){for(const c of r)for(const u of this._patterns){const _=Hd(c,u);if(_)return{element:c,pattern:u,match:_}}return null}matchAll(...r){const c=[];for(const u of r)for(const _ of this._patterns){const C=Hd(u,_);C&&c.push({element:u,pattern:_,match:C})}return c.length>0?c:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],c=r.name;return"function"==typeof r||!c||c instanceof RegExp?null:c}}function Hd(m,r){if("function"==typeof r)return r(m);const c={};return r.name&&(c.name=(_=m.name,(u=r.name)instanceof RegExp?!!_.match(u):u===_),!c.name)||r.attributes&&(c.attributes=function(u,_){const C=new Set(_.getAttributeKeys());return Xe(u)?(void 0!==u.style&&Tt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Tt("matcher-pattern-deprecated-attributes-class-key",u)):(C.delete("style"),C.delete("class")),zd(u,C,M=>_.getAttribute(M))}(r.attributes,m),!c.attributes)||r.classes&&(c.classes=function(u,_){return zd(u,_.getClassNames(),()=>{})}(r.classes,m),!c.classes)||r.styles&&(c.styles=function(u,_){return zd(u,_.getStyleNames(!0),C=>_.getStyle(C))}(r.styles,m),!c.styles)?null:c;var u,_}function zd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>Xe(E)?(void 0!==E.key&&void 0!==E.value||Tt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):Xe(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),C=[];var M;if(u.forEach(([M,E])=>{_.forEach(N=>{var j,W;W=N,(!0===(j=M)||j===W||j instanceof RegExp&&W.match(j))&&function(j,W,dt){if(!0===j)return!0;const Zt=dt(W);return j===Zt||j instanceof RegExp&&!!String(Zt).match(j)}(E,N,c)&&C.push(N)})}),u.length&&!(C.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var C=Array(_);++u<_;)C[u]=m[u+r];return C},R1=function(m,r,c){var u=null==m?void 0:pl(m,r);return void 0===u?c:u},x2=function(m,r,c){(void 0!==c&&!Tn(m[r],c)||void 0===c&&!(r in m))&&Cl(m,r,c)},y_=function(m,r){if(("constructor"!==r||"function"!=typeof m[r])&&"__proto__"!=r)return m[r]},yg=function m(r,c,u,_,C){r!==c&&function(r,c,u){for(var _=-1,C=Object(r),M=u(r),E=M.length;E--;){var N=M[++_];if(!1===c(C[N],N,C))break}}(c,function(M,E){if(C||(C=new nu),Wt(M))!function(m,r,c,u,_,C,M){var E=y_(m,c),N=y_(r,c),j=M.get(N);if(j)x2(m,c,j);else{var W=C?C(E,N,c+"",m,r,M):void 0,dt=void 0===W;if(dt){var Zt=Ye(N),ue=!Zt&&Zs(N),xe=!Zt&&!ue&&Yc(N);W=N,Zt||ue||xe?Ye(E)?W=E:function(m){return fn(m)&&bc(m)}(E)?W=pc(E):ue?(dt=!1,W=ra(N,!0)):xe?(dt=!1,W=_t(N,!0)):W=[]:Xe(N)||Il(N)?(W=E,Il(E)?W=function(m){return Bs(m,ds(m))}(E):Wt(E)&&!No(E)||(W=ll(N))):dt=!1}dt&&(M.set(N,W),_(W,N,u,C,M),M.delete(N)),x2(m,c,W)}}(r,c,E,u,m,_,C);else{var N=_?_(y_(r,E),M,E+"",r,c,C):void 0;void 0===N&&(N=M),x2(r,E,N)}},ds)},wu=function(m){return m},q3=function(m,r,c){switch(c.length){case 0:return m.call(r);case 1:return m.call(r,c[0]);case 2:return m.call(r,c[0],c[1]);case 3:return m.call(r,c[0],c[1],c[2])}return m.apply(r,c)};var Cp=Math.max;const Lf=function(m){return function(){return m}},Tg=hc?function(m,r){return hc(m,"toString",{configurable:!0,enumerable:!1,value:Lf(r),writable:!0})}:wu;var wg=Date.now;const T_=function(m){var r=0,c=0;return function(){var u=wg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(Tg),Of=function(m){return function(m,r){return T_(function(m,r,c){return r=Cp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,C=Cp(u.length-r,0),M=Array(C);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(C=m.length>3&&"function"==typeof C?(_--,C):void 0,M&&function(m,r,c){if(!Wt(c))return!1;var u=typeof r;return!!("number"==u?bc(c)&&iu(r,c.length):"string"==u&&r in c)&&Tn(c[r],m)}(c[0],c[1],M)&&(C=_<3?void 0:C,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,C)}return r})},y2=Of(function(m,r,c){yg(m,r,c)});class Uu{constructor(r){this._styles={},this._styleProcessor=r}get isEmpty(){const r=Object.entries(this._styles);return!Array.from(r).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(r){this.clear();const c=Array.from(function(u){let _=null,C=0,M=0,E=null;const N=new Map;if(""===u)return N;";"!=u.charAt(u.length-1)&&(u+=";");for(let j=0;ju===r);return Array.isArray(c)}set(r,c){if(Wt(r))for(const[u,_]of Object.entries(r))this._styleProcessor.toNormalizedForm(u,_,this._styles);else this._styleProcessor.toNormalizedForm(r,c,this._styles)}remove(r){const c=Ef(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:pl(m,C2(r,0,-1))}(m,r=yu(r,m)))||delete m[x_(function(m){var r=null==m?0:m.length;return r?m[r-1]:void 0}(r))]}(m,r)})(this._styles,c),delete this._styles[r],this._cleanEmptyObjectsOnPath(c)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Wt(this._styles[r]))return this._styles[r];const c=this._styleProcessor.getReducedForm(r,this._styles).find(([u])=>u===r);return Array.isArray(c)?c[1]:void 0}getStyleNames(r=!1){return this.isEmpty?[]:r?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([c])=>c)}clear(){this._styles={}}_getStylesEntries(){const r=[],c=Object.keys(this._styles);for(const u of c)r.push(...this._styleProcessor.getReducedForm(u,this._styles));return r}_cleanEmptyObjectsOnPath(r){const c=r.split(".");if(!(c.length>1))return;const u=c.splice(0,c.length-1).join("."),_=R1(this._styles,u);!_||!Array.from(Object.keys(_)).length&&this.remove(u)}}class kg{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Wt(c))w_(u,Ef(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:C,value:M}=_(c);w_(u,C,M)}else w_(u,r,c)}getNormalized(r,c){if(!r)return y2({},c);if(void 0!==c[r])return c[r];if(this._extractors.has(r)){const u=this._extractors.get(r);if("string"==typeof u)return R1(c,u);const _=u(r,c);if(_)return _}return R1(c,Ef(r))}getReducedForm(r,c){const u=this.getNormalized(r,c);return void 0===u?[]:this._reducers.has(r)?this._reducers.get(r)(u):[[r,u]]}getStyleNames(r){const c=Array.from(this._consumables.keys()).filter(_=>{const C=this.getNormalized(_,r);return C&&"object"==typeof C?Object.keys(C).length:C}),u=new Set([...c,...Object.keys(r)]);return Array.from(u.values())}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,c){this._normalizers.set(r,c)}setExtractor(r,c){this._extractors.set(r,c)}setReducer(r,c){this._reducers.set(r,c)}setStyleRelation(r,c){this._mapStyleNames(r,c);for(const u of c)this._mapStyleNames(u,[r])}_mapStyleNames(r,c){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...c)}}function Ef(m){return m.replace("-",".")}function w_(m,r,c){let u=c;Wt(c)&&(u=y2({},R1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Wt(m))return m;for(var _=-1,C=(r=yu(r,m)).length,M=C-1,E=m;null!=E&&++_0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const c=this._styles.toString();return""==c?void 0:c}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Qc))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[c,u]of this._attrs)if(!r._attrs.has(c)||r._attrs.get(c)!==u)return!1;for(const c of this._classes)if(!r._classes.has(c))return!1;for(const c of this._styles.getStyleNames())if(!r._styles.has(c)||r._styles.getAsString(c)!==this._styles.getAsString(c))return!1;return!0}hasClass(...r){for(const c of r)if(!this._classes.has(c))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(r){return this._styles.getStyleNames(r)}hasStyle(...r){for(const c of r)if(!this._styles.has(c))return!1;return!0}findAncestor(...r){const c=new ms(...r);let u=this.parent;for(;u&&!u.is("documentFragment");){if(c.match(u))return u;u=u.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),c=this._styles.toString(),u=Array.from(this._attrs).map(_=>`${_[0]}="${_[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(c?` style="${c}"`:"")+(""==u?"":` ${u}`)}shouldRenderUnsafeAttribute(r){return this._unsafeAttributesToRender.includes(r)}_clone(r=!1){const c=[];if(r)for(const _ of this.getChildren())c.push(_._clone(r));const u=new this.constructor(this.document,this.name,this._attrs,c);return u._classes=new Set(this._classes),u._styles.set(this._styles.getNormalized()),u._customProperties=new Map(this._customProperties),u.getFillerOffset=this.getFillerOffset,u._unsafeAttributesToRender=this._unsafeAttributesToRender,u}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(nt(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,C.document=this.document,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this);for(const c of Ds(r))this._classes.add(c)}_removeClass(r){this._fireChange("attributes",this);for(const c of Ds(r))this._classes.delete(c)}_setStyle(r,c){this._fireChange("attributes",this),"string"!=typeof r?this._styles.set(r):this._styles.set(r,c)}_removeStyle(r){this._fireChange("attributes",this);for(const c of Ds(r))this._styles.remove(c)}_setCustomProperty(r,c){this._customProperties.set(r,c)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function Ff(m,r){const c=r.split(/\s+/);m.clear(),c.forEach(u=>m.add(u))}Qc.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"view:element"===m):"element"===m||"view:element"===m||"node"===m||"view:node"===m};class xp extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=If}}function If(){const m=[...this.getChildren()],r=m[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const c of m)if(!c.is("uiElement"))return null;return this.childCount}xp.prototype.is=function(m,r){return r?r===this.name&&("containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Em extends(we(xp)){constructor(r,c,u,_){super(r,c,u,_),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",C=>C&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Em.prototype.is=function(m,r){return r?r===this.name&&("editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};const Fm=Symbol("rootName");class Im extends Em{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Fm)}set rootName(r){this._setCustomProperty(Fm,r)}set _name(r){this.name=r}}Im.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class tm{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new it("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new it("view-tree-walker-unknown-direction",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this._position=Zo._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u;do{u=this.position,c=this.next()}while(!c.done&&r(c.value));c.done||(this._position=u)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&r.offset===u.childCount)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtEnd)return this._position=Zo._createAfter(u),this._next();_=u.data[r.offset]}else _=u.getChild(r.offset);if(_ instanceof Qc){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(r))return{done:!0,value:void 0};r.offset++}else r=new Zo(_,0);return this._position=r,this._formatReturnValue("elementStart",_,c,r,1)}if(_ instanceof Eo){if(this.singleCharacters)return r=new Zo(_,0),this._position=r,this._next();let C,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,C=new Ha(_,0,M),r=Zo._createAfter(C)):(C=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,C);return r.offset+=C,this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Zo._createAfter(u),this._position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",u,c,r)}_previous(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&0===r.offset)return{done:!0,value:void 0};if(u==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtStart)return this._position=Zo._createBefore(u),this._previous();_=u.data[r.offset-1]}else _=u.getChild(r.offset-1);if(_ instanceof Qc)return this.shallow?(r.offset--,this._position=r,this._formatReturnValue("elementStart",_,c,r,1)):(r=new Zo(_,_.childCount),this._position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",_,c,r));if(_ instanceof Eo){if(this.singleCharacters)return r=new Zo(_,_.data.length),this._position=r,this._previous();let C,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;C=new Ha(_,E,_.data.length-E),M=C.data.length,r=Zo._createBefore(C)}else C=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=C;const M=new Ha(u,r.offset,C);return this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Zo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,C){return c instanceof Ha&&(c.offsetInText+c.data.length==c.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?u=Zo._createAfter(c.textNode):(_=Zo._createAfter(c.textNode),this._position=_)),0===c.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?u=Zo._createBefore(c.textNode):(_=Zo._createBefore(c.textNode),this._position=_))),{done:!1,value:{type:r,item:c,previousPosition:u,nextPosition:_,length:C}}}}class Zo extends ni{constructor(r,c){super(),this.parent=r,this.offset=c}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof Em);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const c=Zo._createAt(this),u=c.offset+r;return c.offset=u<0?0:u,c}getLastMatchingPosition(r,c={}){c.startPosition=this;const u=new tm(c);return u.skip(r),u.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const c=this.getAncestors(),u=r.getAncestors();let _=0;for(;c[_]==u[_]&&c[_];)_++;return 0===_?null:c[_-1]}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const c=this.parent.is("node")?this.parent.getPath():[],u=r.parent.is("node")?r.parent.getPath():[];c.push(this.offset),u.push(r.offset);const _=lt(c,u);switch(_){case"prefix":return"before";case"extension":return"after";default:return c[_]0?new this(u,_):new this(_,u)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const c=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(Zo._createBefore(r),c)}}function Ap(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Xo.prototype.is=function(m){return"range"===m||"view:range"===m};class Cd extends(Le(ni)){constructor(...r){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",r.length&&this.setTo(...r)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?r.clone():null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const c=ne(this.getRanges());if(c!=ne(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let C of r.getRanges())if(C=C.getTrimmed(),u.start.isEqual(C.start)&&u.end.isEqual(C.end)){_=!0;break}if(!_)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]),this._setFakeOptions(_);else if(c instanceof Cd||c instanceof U_)this._setRanges(c.getRanges(),c.isBackward),this._setFakeOptions({fake:c.isFake,label:c.fakeSelectionLabel});else if(c instanceof Xo)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Zo)this._setRanges([new Xo(c)]),this._setFakeOptions(_);else if(c instanceof Ho){const C=!!_&&!!_.backward;let M;if(void 0===u)throw new it("view-selection-setto-required-second-parameter",this);M="in"==u?Xo._createIn(c):"on"==u?Xo._createOn(c):new Xo(Zo._createAt(c,u)),this._setRanges([M],C),this._setFakeOptions(_)}else{if(!nt(c))throw new it("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new it("view-selection-setfocus-no-ranges",this);const u=Zo._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.pop(),"before"==u.compareWith(_)?this._addRange(new Xo(u,_),!0):this._addRange(new Xo(_,u)),this.fire("change")}_setRanges(r,c=!1){r=Array.from(r),this._ranges=[];for(const u of r)this._addRange(u);this._lastRangeBackward=!!c}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,c=!1){if(!(r instanceof Xo))throw new it("view-selection-add-range-not-range",this);this._pushRange(r),this._lastRangeBackward=!!c}_pushRange(r){for(const c of this._ranges)if(r.isIntersecting(c))throw new it("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Xo(r.start,r.end))}}Cd.prototype.is=function(m){return"selection"===m||"view:selection"===m};class U_ extends(Le(ni)){constructor(...r){super(),this._selection=new Cd,this._selection.delegate("change").to(this),r.length&&this._selection.setTo(...r)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}_setTo(...r){this._selection.setTo(...r)}_setFocus(r,c){this._selection.setFocus(r,c)}}U_.prototype.is=function(m){return"selection"===m||"documentSelection"==m||"view:selection"==m||"view:documentSelection"==m};class yp extends ct{constructor(r,c,u){super(r,c),this.startRange=u,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const f1=Symbol("bubbling contexts");function xs(m){return class extends m{fire(r,...c){try{const u=r instanceof ct?r:new ct(this,r),_=Nf(this);if(!_.size)return;if(te(u,"capturing",this),H1(_,"$capture",u,...c))return u.return;const C=u.startRange||this.selection.getFirstRange(),M=C?C.getContainedElement():null,E=!!M&&Boolean(Dg(_,M));let N=M||function(j){if(!j)return null;const W=j.start.parent,dt=j.end.parent,Zt=W.getPath(),ue=dt.getPath();return Zt.length>ue.length?W:dt}(C);if(te(u,"atTarget",N),!E){if(H1(_,"$text",u,...c))return u.return;te(u,"bubbling",N)}for(;N;){if(N.is("rootElement")){if(H1(_,"$root",u,...c))return u.return}else if(N.is("element")&&H1(_,N.name,u,...c))return u.return;if(H1(_,N,u,...c))return u.return;N=N.parent,te(u,"bubbling",N)}return te(u,"bubbling",this),H1(_,"$document",u,...c),u.return}catch(u){it.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ds(u.context||"$document"),C=Nf(this);for(const M of _){let E=C.get(M);E||(E=new(Le()),C.set(M,E)),this.listenTo(E,r,c,u)}}_removeEventListener(r,c){const u=Nf(this);for(const _ of u.values())this.stopListening(_,r,c)}}}{const m=xs(Object);["fire","_addEventListener","_removeEventListener"].forEach(r=>{xs[r]=m.prototype[r]})}function te(m,r,c){m instanceof yp&&(m._eventPhase=r,m._currentTarget=c)}function H1(m,r,c,...u){const _="string"==typeof r?m.get(r):Dg(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function Dg(m,r){for(const[c,u]of m)if("function"==typeof c&&c(r))return u;return null}function Nf(m){return m[f1]||(m[f1]=new Map),m[f1]}class em extends(xs(we())){constructor(r){super(),this._postFixers=new Set,this.selection=new U_,this.roots=new tc({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(c=u(r),c)break}while(c)}}class nm extends Qc{constructor(r,c,u,_){super(r,c,u,_),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=h1}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new it("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r=!1){const c=super._clone(r);return c._priority=this._priority,c._id=this._id,c}}function h1(){if(T2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(T2(m)>1)return null;m=m.parent}return!m||T2(m)>1?null:this.childCount}function T2(m){return Array.from(m.getChildren()).filter(r=>!r.is("uiElement")).length}nm.DEFAULT_PRIORITY=10,nm.prototype.is=function(m,r){return r?r===this.name&&("attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m):"attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class w2 extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Pg}_insertChild(r,c){if(c&&(c instanceof Ho||Array.from(c).length>0))throw new it("view-emptyelement-cannot-add",[this,c]);return 0}}function Pg(){return null}w2.prototype.is=function(m,r){return r?r===this.name&&("emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m):"emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class nc extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=U2}_insertChild(r,c){if(c&&(c instanceof Ho||Array.from(c).length>0))throw new it("view-uielement-cannot-add",[this,c]);return 0}render(r,c){return this.toDomElement(r)}toDomElement(r){const c=r.createElement(this.name);for(const u of this.getAttributeKeys())c.setAttribute(u,this.getAttribute(u));return c}}function U2(){return null}nc.prototype.is=function(m,r){return r?r===this.name&&("uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m):"uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Yd extends Qc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=im}_insertChild(r,c){if(c&&(c instanceof Ho||Array.from(c).length>0))throw new it("view-rawelement-cannot-add",[this,c]);return 0}render(r,c){}}function im(){return null}Yd.prototype.is=function(m,r){return r?r===this.name&&("rawElement"===m||"view:rawElement"===m||"element"===m||"view:element"===m):"rawElement"===m||"view:rawElement"===m||m===this.name||m==="view:"+this.name||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class g1 extends(Le(ni)){constructor(r,c){super(),this._children=[],this._customProperties=new Map,this.document=r,c&&this._insertChild(0,c)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(nt(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const N=M[M.length-1],j=!E.is("uiElement");return N&&N.breakAttributes==j?N.nodes.push(E):M.push({breakAttributes:j,nodes:[E]}),M},[]);let _=null,C=r;for(const{nodes:M,breakAttributes:E}of u){const N=this._insertNodes(C,M,E);_||(_=N.start),C=N.end}return _?new Xo(_,C):new Xo(r)}remove(r){const c=r instanceof Xo?r:Xo._createOn(r);if(om(c,this.document),c.isCollapsed)return new g1(this.document);const{start:u,end:_}=this._breakAttributesRange(c,!0),E=u.parent._removeChildren(u.offset,_.offset-u.offset);for(const j of E)this._removeFromClonedElementsGroup(j);const N=this.mergeAttributes(u);return c.start=N,c.end=N.clone(),new g1(this.document,E)}clear(r,c){om(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const C=_.item;let M;if(C.is("element")&&c.isSimilar(C))M=Xo._createOn(C);else if(!_.nextPosition.isAfter(r.start)&&C.is("$textProxy")){const E=C.getAncestors().find(N=>N.is("element")&&c.isSimilar(N));E&&(M=Xo._createIn(E))}M&&(M.end.isAfter(r.end)&&(M.end=r.end),M.start.isBefore(r.start)&&(M.start=r.start),this.remove(M))}}move(r,c){let u;if(c.isAfter(r.end)){const _=(c=this._breakAttributes(c,!0)).parent,C=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-C}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof nm))throw new it("view-writer-wrap-invalid-attribute",this.document);if(om(r,this.document),r.isCollapsed){let _=r.start;_.parent.is("element")&&!Array.from(_.parent.getChildren()).some(M=>!M.is("uiElement"))&&(_=_.getLastMatchingPosition(M=>M.item.is("uiElement"))),_=this._wrapPosition(_,c);const C=this.document.selection;return C.isCollapsed&&C.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Xo(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof nm))throw new it("view-writer-unwrap-invalid-attribute",this.document);if(om(r,this.document),r.isCollapsed)return r;const{start:u,end:_}=this._breakAttributesRange(r,!0),M=this._unwrapChildren(u.parent,u.offset,_.offset,c),E=this.mergeAttributes(M.start);E.isEqual(M.start)||M.end.offset--;const N=this.mergeAttributes(M.end);return new Xo(E,N)}rename(r,c){const u=new xp(this.document,r,c.getAttributes());return this.insert(Zo._createAfter(c),u),this.move(Xo._createIn(c),Zo._createAt(u,0)),this.remove(Xo._createOn(c)),u}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,c){return Zo._createAt(r,c)}createPositionAfter(r){return Zo._createAfter(r)}createPositionBefore(r){return Zo._createBefore(r)}createRange(r,c){return new Xo(r,c)}createRangeOn(r){return Xo._createOn(r)}createRangeIn(r){return Xo._createIn(r)}createSelection(...r){return new Cd(...r)}createSlot(r="children"){if(!this._slotFactory)throw new it("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,r)}_registerSlotFactory(r){this._slotFactory=r}_clearSlotFactory(){this._slotFactory=null}_insertNodes(r,c,u){let _,C;if(_=u?As(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new it("view-writer-invalid-position-container",this.document);C=u?this._breakAttributes(r,!0):r.parent.is("$text")?Cr(r):r;const M=_._insertChild(C.offset,c);for(const W of c)this._addToClonedElementsGroup(W);const E=C.getShiftedBy(M),N=this.mergeAttributes(C);N.isEqual(C)||E.offset--;const j=this.mergeAttributes(E);return new Xo(N,j)}_wrapChildren(r,c,u,_){let C=c;const M=[];for(;C!1,r.parent._insertChild(r.offset,u);const _=new Xo(r,r.getShiftedBy(1));this.wrap(_,c);const C=new Zo(u.parent,u.index);u._remove();const M=C.nodeBefore,E=C.nodeAfter;return M instanceof Eo&&E instanceof Eo?Z2(M,E):ta(C)}_wrapAttributeElement(r,c){if(!rs(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&c.hasAttribute(u)&&c.getAttribute(u)!==r.getAttribute(u))return!1;for(const u of r.getStyleNames())if(c.hasStyle(u)&&c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&(c.hasAttribute(u)||this.setAttribute(u,r.getAttribute(u),c));for(const u of r.getStyleNames())c.hasStyle(u)||this.setStyle(u,r.getStyle(u),c);for(const u of r.getClassNames())c.hasClass(u)||this.addClass(u,c);return!0}_unwrapAttributeElement(r,c){if(!rs(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&(!c.hasAttribute(u)||c.getAttribute(u)!==r.getAttribute(u)))return!1;if(!c.hasClass(...r.getClassNames()))return!1;for(const u of r.getStyleNames())if(!c.hasStyle(u)||c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&this.removeAttribute(u,c);return this.removeClass(Array.from(r.getClassNames()),c),this.removeStyle(Array.from(r.getStyleNames()),c),!0}_breakAttributesRange(r,c=!1){const u=r.start,_=r.end;if(om(r,this.document),r.isCollapsed){const N=this._breakAttributes(r.start,c);return new Xo(N,N)}const C=this._breakAttributes(_,c),M=C.parent.childCount,E=this._breakAttributes(u,c);return C.offset+=C.parent.childCount-M,new Xo(E,C)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new it("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new it("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new it("view-writer-cannot-break-raw-element",this.document);if(!c&&_.is("$text")&&z1(_.parent)||z1(_))return r.clone();if(_.is("$text"))return this._breakAttributes(Cr(r),c);if(u==_.childCount){const C=new Zo(_.parent,_.index+1);return this._breakAttributes(C,c)}if(0===u){const C=new Zo(_.parent,_.index);return this._breakAttributes(C,c)}{const C=_.index+1,M=_._clone();_.parent._insertChild(C,M),this._addToClonedElementsGroup(M);const N=_._removeChildren(u,_.childCount-u);M._appendChild(N);const j=new Zo(_.parent,C);return this._breakAttributes(j,c)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const _ of r.getChildren())this._addToClonedElementsGroup(_);const c=r.id;if(!c)return;let u=this._cloneGroups.get(c);u||(u=new Set,this._cloneGroups.set(c,u)),u.add(r),r._clonesGroup=u}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const _ of r.getChildren())this._removeFromClonedElementsGroup(_);const c=r.id;if(!c)return;const u=this._cloneGroups.get(c);u&&u.delete(r)}}function As(m){let r=m.parent;for(;!z1(r);){if(!r)return;r=r.parent}return r}function ic(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new it("view-writer-insert-invalid-node-type",r);c.is("$text")||Nm(c.getChildren(),r)}}function z1(m){return m&&(m.is("containerElement")||m.is("documentFragment"))}function om(m,r){const c=As(m.start),u=As(m.end);if(!c||!u||c!==u)throw new it("view-writer-invalid-range-container",r)}function rs(m,r){return null===m.id&&null===r.id}const qf=m=>m.createTextNode("\xa0"),Z_=m=>{const r=m.createElement("span");return r.dataset.ckeFiller="true",r.innerText="\xa0",r},M2=m=>{const r=m.createElement("br");return r.dataset.ckeFiller="true",r},v1="\u2060".repeat(7);function xd(m){return"string"==typeof m?m.substr(0,7)===v1:me(m)&&m.data.substr(0,7)===v1}function qm(m){return 7==m.data.length&&xd(m)}function b1(m){const r="string"==typeof m?m:m.data;return xd(m)?r.slice(7):r}function Vd(m,r){if(r.keyCode==$a.arrowleft){const c=r.domTarget.ownerDocument.defaultView.getSelection();if(1==c.rangeCount&&c.getRangeAt(0).collapsed){const u=c.getRangeAt(0).startContainer,_=c.getRangeAt(0).startOffset;xd(u)&&_<=7&&c.collapse(u,0)}}}var Vl=b(9315);Io()(Vl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class M_ extends(we()){constructor(r,c){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=r,this.selection=c,this.set("isFocused",!1),this.set("isSelecting",!1),D_isBlink&&!D_isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(r,c){if("text"===r)this.domConverter.mapViewToDom(c.parent)&&this.markedTexts.add(c);else{if(!this.domConverter.mapViewToDom(c))return;if("attributes"===r)this.markedAttributes.add(c);else{if("children"!==r)throw new it("view-renderer-unknown-type",this);this.markedChildren.add(c)}}}render(){if(this.isComposing&&!D_isAndroid)return;let r=null;const c=!(D_isBlink&&!D_isAndroid&&this.isSelecting);for(const u of this.markedChildren)this._updateChildrenMappings(u);c?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(r=this.domConverter.domPositionToView(this._inlineFiller),r&&r.parent.is("$text")&&(r=Zo._createBefore(r.parent)));for(const u of this.markedAttributes)this._updateAttrs(u);for(const u of this.markedChildren)this._updateChildren(u,{inlineFillerPosition:r});for(const u of this.markedTexts)!this.markedChildren.has(u.parent)&&this.domConverter.mapViewToDom(u.parent)&&this._updateText(u,{inlineFillerPosition:r});if(c)if(r){const u=this.domConverter.viewPositionToDom(r),_=u.parent.ownerDocument;this._inlineFiller=xd(u.parent)?u.parent:C1(_,u.parent,u.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.childNodes),_=Array.from(this.domConverter.viewChildrenToDom(r,{withChildren:!1})),C=this._diffNodeLists(u,_),M=this._findUpdateActions(C,u,_,k2);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const N of M)if("update"===N){const j=E.equal+E.insert,W=E.equal+E.delete,dt=r.getChild(j);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[W]),ns(_[j]),E.equal++}else E[N]++}}_updateElementMappings(r,c){this.domConverter.unbindDomElement(c),this.domConverter.bindElements(c,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?Zo._createBefore(r.parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=this.domConverter.viewPositionToDom(r);return!!(c&&me(c.parent)&&xd(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!xd(r))throw new it("view-renderer-filler-was-lost",this);qm(r)?r.remove():r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=r.parent,u=r.offset;if(!this.domConverter.mapViewToDom(c.root)||!c.is("element")||!function(M){if("false"==M.getAttribute("contenteditable"))return!1;const E=M.findAncestor(N=>N.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,C=r.nodeAfter;return!(_ instanceof Eo||C instanceof Eo||D_isAndroid&&(_||C))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const C=c.inlineFillerPosition;C&&C.parent==r.parent&&C.offset==r.index&&(_=v1+_),Lg(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(C=>C.name),_=r.getAttributeKeys();for(const C of _)this.domConverter.setDomElementAttribute(c,C,r.getAttribute(C),r);for(const C of u)r.hasAttribute(C)||this.domConverter.removeDomElementAttribute(c,C)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Zt of Array.from(u.childNodes)){if(dt&&me(dt)&&me(Zt)){u.normalize();break}dt=Zt}}const _=c.inlineFillerPosition,C=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&C1(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(C,M),N=this._findUpdateActions(E,C,M,Sg);let j=0;const W=new Set;for(const dt of N)"delete"===dt?(W.add(C[j]),ns(C[j])):"equal"!==dt&&"update"!==dt||j++;j=0;for(const dt of N)"insert"===dt?(To(u,j,M[j]),j++):"update"===dt?(Lg(C[j],M[j].data),j++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[j])),j++);for(const dt of W)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return K(r=function(u,_){const C=Array.from(u);return 0==C.length||!_||C[C.length-1]==_&&C.pop(),C}(r,this._fakeSelectionContainer),c,x1.bind(null,this.domConverter))}_findUpdateActions(r,c,u,_){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let C=[],M=[],E=[];const N={equal:0,insert:0,delete:0};for(const j of r)"insert"===j?E.push(u[N.equal+N.insert]):"delete"===j?M.push(c[N.equal+N.delete]):(C=C.concat(K(M,E,_).map(W=>"equal"===W?"update":W)),C.push("equal"),M=[],E=[]),N[j]++;return C.concat(K(M,E,_).map(j=>"equal"===j?"update":j))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const c of r.getChildren())this._markDescendantTextToSync(c)}_updateSelection(){if(D_isBlink&&!D_isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(r)):this.isComposing&&D_isAndroid||this._updateDomSelection(r))}_updateFakeSelection(r){const c=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(M){const E=M.createElement("div");return E.className="ck-fake-selection-container",Object.assign(E.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),E.textContent="\xa0",E}(c));const u=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(u,this.selection),!this._fakeSelectionNeedsUpdate(r))return;u.parentElement&&u.parentElement==r||r.appendChild(u),u.textContent=this.selection.fakeSelectionLabel||"\xa0";const _=c.getSelection(),C=c.createRange();_.removeAllRanges(),C.selectNodeContents(u),_.addRange(C)}_updateDomSelection(r){const c=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(c))return;const u=this.domConverter.viewPositionToDom(this.selection.anchor),_=this.domConverter.viewPositionToDom(this.selection.focus);c.setBaseAndExtent(u.parent,u.offset,_.parent,_.offset),D_isGecko&&function(C,M){const E=C.parent;if(E.nodeType!=Node.ELEMENT_NODE||C.offset!=E.childNodes.length-1)return;const N=E.childNodes[C.offset];N&&"BR"==N.tagName&&M.addRange(M.getRangeAt(0))}(_,c)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const c=r&&this.domConverter.domSelectionToView(r);return!(c&&this.selection.isEqual(c)||!this.selection.isCollapsed&&this.selection.isSimilar(c))}_fakeSelectionNeedsUpdate(r){const c=this._fakeSelectionContainer,u=r.ownerDocument.getSelection();return!c||c.parentElement!==r||u.anchorNode!==c&&!c.contains(u.anchorNode)||c.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments){const c=r.getSelection();if(c.rangeCount){const u=r.activeElement,_=this.domConverter.mapDomToView(u);u&&_&&c.removeAllRanges()}}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function C1(m,r,c){const u=r instanceof Array?r:r.childNodes,_=u[c];if(me(_))return _.data=v1+_.data,_;{const C=m.createTextNode(v1);return Array.isArray(r)?u.splice(c,0,C):To(r,c,C),C}}function k2(m,r){return Ie(m)&&Ie(r)&&!me(m)&&!me(r)&&!va(m)&&!va(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function Sg(m,r){return Ie(m)&&Ie(r)&&me(m)&&me(r)}function x1(m,r,c){return r===c||(me(r)&&me(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function Lg(m,r){const c=m.data;if(c==r)return;const u=F(c,r);for(const _ of u)"insert"===_.type?m.insertData(_.index,_.values.join("")):m.deleteData(_.index,_.howMany)}const Rf=M2(Mt.document),Zu=qf(Mt.document),rm=Z_(Mt.document),k_="data-ck-unsafe-attribute-",Og="data-ck-unsafe-element";class D_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ms,this._inlineObjectElementMatcher=new ms,this.document=r,this.renderingMode=u,this.blockFillerMode=c||("editing"===u?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Mt.document:Mt.document.implementation.createHTMLDocument("")}bindFakeSelection(r,c){this._fakeSelectionMapping.set(r,new Cd(c))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}unbindDomElement(r){const c=this._domToViewMapping.get(r);if(c){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(c);for(const u of Array.from(r.children))this.unbindDomElement(u)}}bindDocumentFragments(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}shouldRenderAttribute(r,c,u){return"data"===this.renderingMode||!(r=r.toLowerCase()).startsWith("on")&&("srcdoc"!==r||!c.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===u&&("src"===r||"srcset"===r)||"source"===u&&"srcset"===r||!c.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(r,c){if("data"===this.renderingMode)return void(r.innerHTML=c);const u=(new DOMParser).parseFromString(c,"text/html"),_=u.createDocumentFragment(),C=u.body.childNodes;for(;C.length>0;)_.appendChild(C[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let N;for(;N=M.nextNode();)E.push(N);for(const j of E){for(const dt of j.getAttributeNames())this.setDomElementAttribute(j,dt,j.getAttribute(dt));const W=j.tagName.toLowerCase();this._shouldRenameElement(W)&&(Hf(W),j.replaceWith(this._createReplacementDomElement(W,j)))}for(;r.firstChild;)r.firstChild.remove();r.append(_)}viewToDom(r,c={}){if(r.is("$text")){const u=this._processDataFromViewText(r);return this._domDocument.createTextNode(u)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let u;if(r.is("documentFragment"))u=this._domDocument.createDocumentFragment(),c.bind&&this.bindDocumentFragments(u,r);else{if(r.is("uiElement"))return u="$comment"===r.name?this._domDocument.createComment(r.getCustomProperty("$rawContent")):r.render(this._domDocument,this),c.bind&&this.bindElements(u,r),u;this._shouldRenameElement(r.name)?(Hf(r.name),u=this._createReplacementDomElement(r.name)):u=r.hasAttribute("xmlns")?this._domDocument.createElementNS(r.getAttribute("xmlns"),r.name):this._domDocument.createElement(r.name),r.is("rawElement")&&r.render(u,this),c.bind&&this.bindElements(u,r);for(const _ of r.getAttributeKeys())this.setDomElementAttribute(u,_,r.getAttribute(_),r)}if(!1!==c.withChildren)for(const _ of this.viewChildrenToDom(r,c))u.appendChild(_);return u}}setDomElementAttribute(r,c,u,_){const C=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);C||Tt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Mt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!C?r.removeAttribute(c):r.hasAttribute(k_+c)&&C&&r.removeAttribute(k_+c),r.setAttribute(C?c:k_+c,u)):Tt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Og&&(r.removeAttribute(c),r.removeAttribute(k_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const C of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=C.is("element")&&!!C.getCustomProperty("dataPipeline:transparentRendering")&&!os(C.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(C,c):(M&&Tt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:C}),yield this.viewToDom(C,c)),_++}u===_&&(yield this._getBlockFiller())}viewRangeToDom(r){const c=this.viewPositionToDom(r.start),u=this.viewPositionToDom(r.end),_=this._domDocument.createRange();return _.setStart(c.parent,c.offset),_.setEnd(u.parent,u.offset),_}viewPositionToDom(r){const c=r.parent;if(c.is("$text")){const u=this.findCorrespondingDomText(c);if(!u)return null;let _=r.offset;return xd(u)&&(_+=7),{parent:u,offset:_}}{let u,_,C;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;C=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,C=_.nextSibling}return me(C)&&xd(C)?{parent:C,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),C=_.next().value;return C?(_.next(),this._processDomInlineNodes(null,u,c),C.is("$text")&&0==C.data.length?null:C):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:N}=M;C.push([E,N])}),c.focus(),Rm(c,M=>{const[E,N]=C.shift();M.scrollLeft=E,M.scrollTop=N}),Mt.window.scrollTo(u,_)}}_clearDomSelection(){const r=this.mapViewToDom(this.document.selection.editableElement);if(!r)return;const c=r.ownerDocument.defaultView.getSelection(),u=this.domSelectionToView(c);u&&u.rangeCount>0&&c.removeAllRanges()}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(Rf):!("BR"!==r.tagName||!Y1(r,this.blockElements)||1!==r.parentNode.childNodes.length)||r.isEqualNode(rm)||(u=this.blockElements,(c=r).isEqualNode(Zu)&&Y1(c,u)&&1===c.parentNode.childNodes.length);var c,u}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const c=this._domDocument.createRange();try{c.setStart(r.anchorNode,r.anchorOffset),c.setEnd(r.focusNode,r.focusOffset)}catch{return!1}const u=c.collapsed;return c.detach(),u}getHostViewElement(r){const c=function(u){const _=[];let C=u;for(;C&&C.nodeType!=Node.DOCUMENT_NODE;)_.unshift(C),C=C.parentNode;return _}(r);for(c.pop();c.length;){const u=c.pop(),_=this._domToViewMapping.get(u);if(_&&(_.is("uiElement")||_.is("rawElement")))return _}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}registerRawContentMatcher(r){this._rawContentElementMatcher.add(r)}registerInlineObjectMatcher(r){this._inlineObjectElementMatcher.add(r)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return qf(this._domDocument);case"markedNbsp":return Z_(this._domDocument);case"br":return M2(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(me(r)&&xd(r)&&c<7||this.isElement(r)&&xd(r.childNodes[c]))return!1;const u=this.mapDomToView(r);return!u||!u.is("uiElement")&&!u.is("rawElement")}*_domToView(r,c,u){if(this.isBlockFiller(r))return null;const _=this.getHostViewElement(r);if(_)return _;if(va(r)&&c.skipComments)return null;if(me(r)){if(qm(r))return null;{const C=r.data;if(""===C)return null;const M=new Eo(this.document,C);return u.push(M),M}}{let C=this.mapDomToView(r);if(C)return this._isInlineObjectElement(C)&&u.push(C),C;if(this.isDocumentFragment(r))C=new g1(this.document),c.bind&&this.bindDocumentFragments(r,C);else{C=this._createViewElement(r,c),c.bind&&this.bindElements(r,C);const E=r.attributes;if(E)for(let N=E.length,j=0;j0?c[C-1]:null,W=C+1this.preElements.includes(u.name)))return c;if(" "==c.charAt(0)){const u=this._getTouchingInlineViewNode(r,!1);!(u&&u.is("$textProxy")&&this._nodeEndsWithSpace(u))&&u||(c="\xa0"+c.substr(1))}if(" "==c.charAt(c.length-1)){const u=this._getTouchingInlineViewNode(r,!0),_=u&&u.is("$textProxy")&&" "==u.data.charAt(0);" "!=c.charAt(c.length-2)&&u&&!_||(c=c.substr(0,c.length-1)+"\xa0")}return c.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(u=>this.preElements.includes(u.name)))return!1;const c=this._processDataFromViewText(r);return" "==c.charAt(c.length-1)}_getTouchingInlineViewNode(r,c){const u=new tm({startPosition:c?Zo._createAfter(r):Zo._createBefore(r),direction:c?"forward":"backward"});for(const _ of u){if(_.item.is("element","br"))return null;if(this._isInlineObjectElement(_.item))return _.item;if(_.item.is("containerElement"))return null;if(_.item.is("$textProxy"))return _.item}return null}_isBlockDomElement(r){return this.isElement(r)&&this.blockElements.includes(r.tagName.toLowerCase())}_isBlockViewElement(r){return r.is("element")&&this.blockElements.includes(r.name)}_isInlineObjectElement(r){return!!r.is("element")&&("br"==r.name||this.inlineObjectElements.includes(r.name)||!!this._inlineObjectElementMatcher.match(r))}_createViewElement(r,c){if(va(r))return new nc(this.document,"$comment");const u=c.keepOriginalCase?r.tagName:r.tagName.toLowerCase();return new Qc(this.document,u)}_isViewElementWithRawContent(r,c){return!1!==c.withChildren&&r.is("element")&&!!this._rawContentElementMatcher.match(r)}_shouldRenameElement(r){const c=r.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(c)}_createReplacementDomElement(r,c){const u=this._domDocument.createElement("span");if(u.setAttribute(Og,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function Eg(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function Rm(m,r){let c=m;for(;c;)r(c),c=c.parentElement}function Y1(m,r){const c=m.parentNode;return!!c&&!!c.tagName&&r.includes(c.tagName.toLowerCase())}function Hf(m){"script"===m&&Tt("domconverter-unsafe-script-element-detected"),"style"===m&&Tt("domconverter-unsafe-style-element-detected")}class Mu extends(eo()){constructor(r){super(),this._isEnabled=!1,this.view=r,this.document=r.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(r){return r&&3===r.nodeType&&(r=r.parentNode),!(!r||1!==r.nodeType)&&r.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const ml=Of(function(m,r){Bs(r,ds(r),m)});class jd{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,ml(this,u)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Gd extends Mu{constructor(){super(...arguments),this.useCapture=!1}observe(r){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(c=>{this.listenTo(r,c,(u,_)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(_.target)&&this.onDomEvent(_)},{useCapture:this.useCapture})})}stopObserving(r){this.stopListening(r)}fire(r,c,u){this.isEnabled&&this.document.fire(r,new jd(this.view,c,u))}}class B1 extends Gd{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey,get keystroke(){return xc(this)}})}}const Bu=function(){return oe.Date.now()};var Wc=/\s/,D2=/^\s+/;var R3=/^[-+]0x[0-9a-f]+$/i,mb=/^0b[01]+$/i,E6=/^0o[0-7]+$/i,Vu=parseInt;const P_=function(m){if("number"==typeof m)return m;if(Kn(m))return NaN;if(Wt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Wt(r)?r+"":r}if("string"!=typeof m)return 0===m?m:+m;m=function(m){return m&&m.slice(0,function(m){for(var r=m.length;r--&&Wc.test(m.charAt(r)););return r}(m)+1).replace(D2,"")}(m);var c=mb.test(m);return c||E6.test(m)?Vu(m.slice(2),c?2:8):R3.test(m)?NaN:+m};var F6=Math.max,_b=Math.min;const S_=function(m,r,c){var u,_,C,M,E,N,j=0,W=!1,dt=!1,Zt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function ue(di){var Ri=u,Jo=_;return u=_=void 0,j=di,M=m.apply(Jo,Ri)}function xe(di){var Ri=di-N;return void 0===N||Ri>=r||Ri<0||dt&&di-j>=C}function Ee(){var Ri,Jo,di=Bu();if(xe(di))return ln(di);E=setTimeout(Ee,(Jo=r-((Ri=di)-N),dt?_b(Jo,C-(Ri-j)):Jo))}function ln(di){return E=void 0,Zt&&u?ue(di):(u=_=void 0,M)}function Mn(){var Jo,di=Bu(),Ri=xe(di);if(u=arguments,_=this,N=di,Ri){if(void 0===E)return j=Jo=N,E=setTimeout(Ee,r),W?ue(Jo):M;if(dt)return clearTimeout(E),E=setTimeout(Ee,r),ue(N)}return void 0===E&&(E=setTimeout(Ee,r)),M}return r=P_(r)||0,Wt(c)&&(W=!!c.leading,C=(dt="maxWait"in c)?F6(P_(c.maxWait)||0,r):C,Zt="trailing"in c?!!c.trailing:Zt),Mn.cancel=function(){void 0!==E&&clearTimeout(E),j=0,u=N=_=E=void 0},Mn.flush=function(){return void 0===E?M:ln(Bu())},Mn};class H3 extends Mu{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=S_(c=>{this.document.fire("selectionChangeDone",c)},200)}observe(){const r=this.document;r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&u.preventDefault()},{context:"$capture"}),r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&this._handleSelectionMove(u.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const c=this.document.selection,u=new Cd(c.getRanges(),{backward:c.isBackward,fake:!1});r!=$a.arrowleft&&r!=$a.arrowup||u.setTo(u.getFirstPosition()),r!=$a.arrowright&&r!=$a.arrowdown||u.setTo(u.getLastPosition());const _={oldSelection:c,newSelection:u,domSelection:null};this.document.fire("selectionChange",_),this._fireSelectionChangeDoneDebounced(_)}}function L_(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new qs;++rE))return!1;var j=C.get(m),W=C.get(r);if(j&&W)return j==r&&W==m;var dt=-1,Zt=!0,ue=2&c?new Bf:void 0;for(C.set(m,r),C.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const C=c.selection.editableElement;null!==C&&C!==_.target||(c.isFocused=!1,this._isFocusChanging=!1,r.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Gu extends Mu{constructor(r){super(r),this.mutationObserver=r.getObserver(S2),this.focusObserver=r.getObserver(V1),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=S_(c=>{this.document.fire("selectionChangeDone",c)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=S_(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(r){const c=r.ownerDocument,u=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,c),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(r,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(r,"keydown",u,{priority:"highest",useCapture:!0}),this.listenTo(r,"keyup",u,{priority:"highest",useCapture:!0}),this._documents.has(c)||(this.listenTo(c,"mouseup",u,{priority:"highest",useCapture:!0}),this.listenTo(c,"selectionchange",(_,C)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(C,c),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(c))}stopObserving(r){this.stopListening(r)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(r,c){if(!this.isEnabled)return;const u=c.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(u.anchorNode))return;this.mutationObserver.flush();const _=this.domConverter.domSelectionToView(u);if(0!=_.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(_)||!this.domConverter.isDomSelectionCorrect(u))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(_))this.view.forceRender();else{const C={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",C),this._fireSelectionChangeDoneDebounced(C)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class $c extends Gd{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const c=this.document;c.on("compositionstart",()=>{c.isComposing=!0},{priority:"low"}),c.on("compositionend",()=>{c.isComposing=!1},{priority:"low"})}onDomEvent(r){this.fire(r.type,r,{data:r.data})}}class Jf{constructor(r,c={}){this._files=c.cacheFiles?Yg(r):null,this._native=r}get files(){return this._files||(this._files=Yg(this._native)),this._files}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,c){this._native.setData(r,c)}set effectAllowed(r){this._native.effectAllowed=r}get effectAllowed(){return this._native.effectAllowed}set dropEffect(r){this._native.dropEffect=r}get dropEffect(){return this._native.dropEffect}setDragImage(r,c,u){this._native.setDragImage(r,c,u)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Yg(m){const r=Array.from(m.files||[]),c=Array.from(m.items||[]);return r.length?r:c.filter(u=>"file"===u.kind).map(u=>u.getAsFile())}class Bg extends Gd{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let C=null,M=null,E=[];if(r.dataTransfer&&(C=new Jf(r.dataTransfer)),null!==r.data?M=r.data:C&&(M=C.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(N=>{const j=u.domConverter.domPositionToView(N.startContainer,N.startOffset),W=u.domConverter.domPositionToView(N.endContainer,N.endOffset);return j?u.createRange(j,W):W?u.createRange(W):void 0}).filter(N=>!!N);else if(D_isAndroid){const N=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(N).getRanges())}if(D_isAndroid&&"insertCompositionText"==r.inputType&&M&&M.endsWith("\n"))this.fire(r.type,r,{inputType:"insertParagraph",targetRanges:[u.createRange(E[0].end)]});else if("insertText"==r.inputType&&M&&M.includes("\n")){const N=M.split(/\n{1,2}/g);let j=E;for(let W=0;W{if(this.isEnabled&&((_=u.keyCode)==$a.arrowright||_==$a.arrowleft||_==$a.arrowup||_==$a.arrowdown)){const C=new yp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(C,u),C.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Vg extends Mu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=$a.tab||_.ctrlKey)return;const C=new yp(c,"tab",c.selection.getFirstRange());c.fire(C,_),C.stop.called&&u.stop()})}observe(){}stopObserving(){}}const y1=function(m){return Pi(m,5)};class B3 extends(we()){constructor(r){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new em(r),this.domConverter=new D_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new M_(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Ls(this.document),this.addObserver(S2),this.addObserver(V1),this.addObserver(Gu),this.addObserver(B1),this.addObserver(H3),this.addObserver($c),this.addObserver(Y3),this.addObserver(Bg),this.addObserver(Vg),this.document.on("arrowKey",Vd,{priority:"low"}),function Jr(m){m.document.on("arrowKey",(r,c)=>function(u,_,C){if(_.keyCode==$a.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const W=C.domPositionToView(M.focusNode,M.focusOffset);if(null===W)return;let dt=!1;const Zt=W.getLastMatchingPosition(ue=>(ue.item.is("uiElement")&&(dt=!0),!(!ue.item.is("uiElement")&&!ue.item.is("attributeElement"))));if(dt){const ue=C.viewPositionToDom(Zt);E?M.collapse(ue.parent,ue.offset):M.extend(ue.parent,ue.offset)}}}}(0,c,m.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),D_isiOS&&this.listenTo(this.document,"blur",(c,u)=>{this.domConverter.mapDomToView(u.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(r,c="main"){const u=this.document.getRoot(c);u._name=r.tagName.toLowerCase();const _={};for(const{name:M,value:E}of Array.from(r.attributes))_[M]=E,"class"===M?this._writer.addClass(E.split(" "),u):this._writer.setAttribute(M,E,u);this._initialDomRootAttributes.set(r,_);const C=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};C(),this.domRoots.set(c,r),this.domConverter.bindElements(r,u),this._renderer.markToSync("children",u),this._renderer.markToSync("attributes",u),this._renderer.domDocuments.add(r.ownerDocument),u.on("change:children",(M,E)=>this._renderer.markToSync("children",E)),u.on("change:attributes",(M,E)=>this._renderer.markToSync("attributes",E)),u.on("change:text",(M,E)=>this._renderer.markToSync("text",E)),u.on("change:isReadOnly",()=>this.change(C)),u.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const M of this._observers.values())M.observe(r,c)}detachDomRoot(r){const c=this.domRoots.get(r);Array.from(c.attributes).forEach(({name:_})=>c.removeAttribute(_));const u=this._initialDomRootAttributes.get(c);for(const _ in u)c.setAttribute(_,u[_]);this.domRoots.delete(r),this.domConverter.unbindDomElement(c);for(const _ of this._observers.values())_.stopObserving(c)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let c=this._observers.get(r);if(c)return c;c=new r(this),this._observers.set(r,c);for(const[u,_]of this.domRoots)c.observe(_,u);return c.enable(),c}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection({alignToTop:r,forceScroll:c,viewportOffset:u=20,ancestorOffset:_=20}={}){const C=this.document.selection.getFirstRange();if(!C)return;const M=y1({alignToTop:r,forceScroll:c,viewportOffset:u,ancestorOffset:_});"number"==typeof u&&(u={top:u,bottom:u,left:u,right:u});const E={target:this.domConverter.viewRangeToDom(C),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:N,viewportOffset:j=0,ancestorOffset:W=0,alignToTop:dt,forceScroll:Zt}){const ue=rr(N);let xe=ue,Ee=null;for(j="number"==typeof(ln=j)?{top:ln,bottom:ln,left:ln,right:ln}:ln;xe;){let ln;ln=sr(xe==ue?N:Ee),Rr({parent:ln,getRect:()=>Cs(N,xe),alignToTop:dt,ancestorOffset:W,forceScroll:Zt});const Mn=Cs(N,xe);if(ps({window:xe,rect:Mn,viewportOffset:j,alignToTop:dt,forceScroll:Zt}),xe.parent!=xe){if(Ee=xe.frameElement,xe=xe.parent,!Ee)return}else xe=null}var ln}(E)}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new it("cannot-change-view-tree",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const c=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),c}catch(c){it.rethrowUnexpectedError(c,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(V1).flush(),this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,c){return Zo._createAt(r,c)}createPositionAfter(r){return Zo._createAfter(r)}createPositionBefore(r){return Zo._createBefore(r)}createRange(r,c){return new Xo(r,c)}createRangeOn(r){return Xo._createOn(r)}createRangeIn(r){return Xo._createIn(r)}createSelection(...r){return new Cd(...r)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Kc{is(){throw new Error("is() method is abstract")}}class Du extends Kc{constructor(r){super(),this.parent=null,this._attrs=Jc(r)}get document(){return null}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new it("model-node-not-found-in-parent",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new it("model-node-not-found-in-parent",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.startOffset),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=lt(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_](c[u[0]]=u[1],c),{})),r}_clone(r){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,c){this._attrs.set(r,c)}_setAttributesTo(r){this._attrs=Jc(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}Du.prototype.is=function(m){return"node"===m||"model:node"===m};class E_{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,c)=>r+c.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const c=this._nodes.indexOf(r);return-1==c?null:c}getNodeStartOffset(r){const c=this.getNodeIndex(r);return null===c?null:this._nodes.slice(0,c).reduce((u,_)=>u+_.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const c=this._nodes[r];if(!c)throw new it("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(c)}offsetToIndex(r){let c=0;for(const u of this._nodes){if(r>=c&&r1e4)return u.slice(0,C).concat(_).concat(u.slice(C+0,u.length));{const E=Array.from(u);return E.splice(C,0,..._),E}}(this._nodes,Array.from(c),r)}_removeNodes(r,c=1){return this._nodes.splice(r,c)}toJSON(){return this._nodes.map(r=>r.toJSON())}}class ss extends Du{constructor(r,c){super(c),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new ss(this.data,this.getAttributes())}static fromJSON(r){return new ss(r.data,r.attributes)}}ss.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class jl extends Kc{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new it("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new it("model-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}jl.prototype.is=function(m){return"$textProxy"===m||"model:$textProxy"===m||"textProxy"===m||"model:textProxy"===m};class _s extends Du{constructor(r,c,u){super(c),this._children=new E_,this.name=r,u&&this._insertChild(0,u)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}findAncestor(r,c={}){let u=c.includeSelf?this:this.parent;for(;u;){if(u.name===r)return u;u=u.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const c of this._children)r.children.push(c.toJSON())}return r}_clone(r=!1){const c=r?Array.from(this._children).map(u=>u._clone(!0)):void 0;return new _s(this.name,this.getAttributes(),c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(nt(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new ss(C):C instanceof jl?new ss(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}static fromJSON(r){let c;if(r.children){c=[];for(const u of r.children)c.push(u.name?_s.fromJSON(u):ss.fromJSON(u))}return new _s(r.name,r.attributes,c)}}_s.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"model:element"===m):"element"===m||"model:element"===m||"node"===m||"model:node"===m};class Jd{constructor(r){if(!r||!r.boundaries&&!r.startPosition)throw new it("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new it("model-tree-walker-unknown-direction",r,{direction:c});this.direction=c,this.boundaries=r.boundaries||null,this._position=r.startPosition?r.startPosition.clone():$i._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u,_,C;do{_=this.position,C=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=C)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,c=this.position.clone(),u=this._visitedParent;if(null===u.parent&&c.offset===u.maxOffset)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&c.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const _=Tp(c,u),C=_||cm(c,u,_);if(C instanceof _s){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(c))return{done:!0,value:void 0};c.offset++}else c.path.push(0),this._visitedParent=C;return this._position=c,j1("elementStart",C,r,c,1)}if(C instanceof ss){let M;if(this.singleCharacters)M=1;else{let j=C.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetW&&(W=this.boundaries.start.offset),E=c.offset-W}const j=new jl(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,j1("text",j,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,j1("elementStart",u,r,c,1)}}function j1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class $i extends Kc{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new it("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new it("model-position-path-incorrect-format",r,{path:c});r.is("rootElement")?c=c.slice():(c=[...r.getPath(),...c],r=r.root),this.root=r,this.path=c,this.stickiness=u}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let c=0;c1)return!1;if(1===_)return I_(r,this,u);if(-1===_)return I_(this,r,u)}return this.path.length===r.path.length||N_(this.path.length>r.path.length?this.path:r.path,c)}hasSameParentAs(r){return this.root===r.root&&"same"==lt(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let c;switch(r.type){case"insert":c=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":c=this._getTransformedByMoveOperation(r);break;case"split":c=this._getTransformedBySplitOperation(r);break;case"merge":c=this._getTransformedByMergeOperation(r);break;default:c=$i._createAt(this)}return c}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const c=r.movedRange;return c.containsPosition(this)||c.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const c=r.movedRange;let u;return c.containsPosition(this)||c.start.isEqual(this)?(u=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(u=u._getTransformedByDeletion(r.deletionPosition,1))):u=this.isEqual(r.deletionPosition)?$i._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),u}_getTransformedByDeletion(r,c){const u=$i._createAt(this);if(this.root!=r.root)return u;if("same"==lt(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==lt(r.getParentPath(),this.getParentPath())){const _=r.path.length-1;if(r.offset<=this.path[_]){if(r.offset+c>this.path[_])return null;u.path[_]-=c}}return u}_getTransformedByInsertion(r,c){const u=$i._createAt(this);if(this.root!=r.root)return u;if("same"==lt(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==C.maxOffset)return!1;E=1,M--,C=C.parent}return!0}(m,c+1)}function N_(m,r){for(;rc+1;){const C=_.maxOffset-u.offset;0!==C&&r.push(new Oi(u,u.getShiftedBy(C))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const C=this.end.path[u.path.length-1],M=C-u.offset;0!==M&&r.push(new Oi(u,u.getShiftedBy(M))),u.offset=C,u.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Jd(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const c=new Jd(r);for(const u of c)yield u.item}*getPositions(r={}){r.boundaries=this;const c=new Jd(r);yield c.position;for(const u of c)yield u.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Oi(this.start,this.end)]}getTransformedByOperations(r){const c=[new Oi(this.start,this.end)];for(const u of r)for(let _=0;_0?new this(u,_):new this(_,u)}static _createIn(r){return new this($i._createAt(r,0),$i._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift($i._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new it("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((C,M)=>C.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let C=u-1;r[C].end.isEqual(_.start);C++)_.start=$i._createAt(r[C].start);for(let C=u+1;C{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new it("mapping-model-position-view-parent-not-found",this,{modelPosition:c.modelPosition});c.viewPosition=this.findPositionIn(u,c.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,c)=>{if(c.modelPosition)return;const u=this.findMappedViewAncestor(c.viewPosition),_=this._viewToModelMapping.get(u),C=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=$i._createAt(_,C)},{priority:"low"})}bindElements(r,c){this._modelToViewMapping.set(r,c),this._viewToModelMapping.set(c,r)}unbindViewElement(r,c={}){const u=this.toModelElement(r);if(this._elementToMarkerNames.has(r))for(const _ of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(_);c.defer?this._deferredBindingRemovals.set(r,r.root):(this._viewToModelMapping.delete(r),this._modelToViewMapping.get(u)==r&&this._modelToViewMapping.delete(u))}unbindModelElement(r){const c=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(c)==r&&this._viewToModelMapping.delete(c)}bindElementToMarker(r,c){const u=this._markerNameToElements.get(c)||new Set;u.add(r);const _=this._elementToMarkerNames.get(r)||new Set;_.add(c),this._markerNameToElements.set(c,u),this._elementToMarkerNames.set(r,_)}unbindElementFromMarkerName(r,c){const u=this._markerNameToElements.get(c);u&&(u.delete(r),0==u.size&&this._markerNameToElements.delete(c));const _=this._elementToMarkerNames.get(r);_&&(_.delete(c),0==_.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}flushDeferredBindings(){for(const[r,c]of this._deferredBindingRemovals)r.root==c&&this.unbindViewElement(r);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Oi(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Xo(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const c={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",c),c.modelPosition}toViewPosition(r,c={}){const u={modelPosition:r,mapper:this,isPhantom:c.isPhantom};return this.fire("modelToViewPosition",u),u.viewPosition}markerNameToElements(r){const c=this._markerNameToElements.get(r);if(!c)return null;const u=new Set;for(const _ of c)if(_.is("attributeElement"))for(const C of _.getElementsWithSameId())u.add(C);else u.add(_);return u}registerViewToModelLength(r,c){this._viewToModelLengthCallbacks.set(r,c)}findMappedViewAncestor(r){let c=r.parent;for(;!this._viewToModelMapping.has(c);)c=c.parent;return c}_toModelOffset(r,c,u){if(u!=r)return this._toModelOffset(r.parent,r.index,u)+this._toModelOffset(r,c,r);if(r.is("$text"))return c;let _=0;for(let C=0;C1?r[0]+":"+r[1]:r[0]}var L2=Object.defineProperty,jg=Object.defineProperties,N6=Object.getOwnPropertyDescriptors,O2=Object.getOwnPropertySymbols,E2=Object.prototype.hasOwnProperty,Wf=Object.prototype.propertyIsEnumerable,$f=(m,r,c)=>r in m?L2(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Gg=(m,r)=>{for(var c in r||(r={}))E2.call(r,c)&&$f(m,c,r[c]);if(O2)for(var c of O2(r))Wf.call(r,c)&&$f(m,c,r[c]);return m},Hm=(m,r)=>jg(m,N6(r));class G3 extends(Le()){constructor(r){super(),this._conversionApi=Gg({dispatcher:this},r),this._firedEventsMap=new WeakMap}convertChanges(r,c,u){const _=this._createConversionApi(u,r.getRefreshedItems());for(const M of r.getMarkersToRemove())this._convertMarkerRemove(M.name,M.range,_);const C=this._reduceChanges(r.getChanges());for(const M of C)"insert"===M.type?this._convertInsert(Oi._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Oi._createFromPositionAndShift(M.position,M.length),_):"remove"===M.type?this._convertRemove(M.position,M.length,M.name,_):this._convertAttribute(M.range,M.attributeKey,M.attributeOldValue,M.attributeNewValue,_);for(const M of _.mapper.flushUnboundMarkerNames()){const E=c.get(M).getRange();this._convertMarkerRemove(M,E,_),this._convertMarkerAdd(M,E,_)}for(const M of r.getMarkersToAdd())this._convertMarkerAdd(M.name,M.range,_);_.mapper.flushDeferredBindings(),_.consumable.verifyAllConsumed("insert")}convert(r,c,u,_={}){const C=this._createConversionApi(u,void 0,_);this._convertInsert(r,C);for(const[M,E]of c)this._convertMarkerAdd(M,E,C);C.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const C=r.getFirstPosition().root;if(!_.mapper.toViewElement(C))return;const M=Array.from(c.getMarkersAtPosition(r.getFirstPosition()));if(this._addConsumablesForSelection(_.consumable,r,M),this.fire("selection",{selection:r},_),r.isCollapsed){for(const E of M)if(_.consumable.test(r,"addMarker:"+E.name)){const N=E.getRange();if(!zm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:N},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const N={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,N,_)}}}_convertInsert(r,c,u={}){u.doNotAddConsumables||this._addConsumablesForInsert(c.consumable,Array.from(r));for(const _ of Array.from(r.getWalker({shallow:!0})).map(q_))this._testAndFire("insert",_,c)}_convertRemove(r,c,u,_){this.fire(`remove:${u}`,{position:r,length:c},_)}_convertAttribute(r,c,u,_,C){this._addConsumablesForRange(C.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Oi._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,C)}}_convertReinsert(r,c){const u=Array.from(r.getWalker({shallow:!0}));this._addConsumablesForInsert(c.consumable,u);for(const _ of u.map(q_))this._testAndFire("insert",Hm(Gg({},_),{reconversion:!0}),c)}_convertMarkerAdd(r,c,u){if("$graveyard"==c.root.rootName)return;const _=`addMarker:${r}`;if(u.consumable.add(c,_),this.fire(_,{markerName:r,markerRange:c},u),u.consumable.consume(c,_)){this._addConsumablesForRange(u.consumable,c,_);for(const C of c.getItems()){if(!u.consumable.test(C,_))continue;const M={item:C,range:Oi._createOn(C),markerName:r,markerRange:c};this.fire(_,M,u)}}}_convertMarkerRemove(r,c,u){"$graveyard"!=c.root.rootName&&this.fire(`removeMarker:${r}`,{markerName:r,markerRange:c},u)}_reduceChanges(r){const c={changes:r};return this.fire("reduceChanges",c),c.changes}_addConsumablesForInsert(r,c){for(const u of c){const _=u.item;if(null===r.test(_,"insert")){r.add(_,"insert");for(const C of _.getAttributeKeys())r.add(_,"attribute:"+C)}}return r}_addConsumablesForRange(r,c,u){for(const _ of c.getItems())r.add(_,u);return r}_addConsumablesForSelection(r,c,u){r.add(c,"selection");for(const _ of u)r.add(c,"addMarker:"+_.name);for(const _ of c.getAttributeKeys())r.add(c,"attribute:"+_);return r}_testAndFire(r,c,u){const _=`${r}:${(j=c).item.is("element")?j.item.name:"$text"}`,C=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(C);var j;if(E){if(E.has(_))return;E.add(_)}else M.set(C,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Oi._createOn(r)};for(const _ of u.item.getAttributeKeys())u.attributeKey=_,u.attributeOldValue=null,u.attributeNewValue=u.item.getAttribute(_),this._testAndFire(`attribute:${_}`,u,c)}_createConversionApi(r,c=new Set,u={}){const _=Hm(Gg({},this._conversionApi),{consumable:new j3,writer:r,options:u,convertItem:C=>this._convertInsert(Oi._createOn(C),_),convertChildren:C=>this._convertInsert(Oi._createIn(C),_,{doNotAddConsumables:!0}),convertAttributes:C=>this._testAndFireAddAttributes(C,_),canReuseView:C=>!c.has(_.mapper.toModelElement(C))});return this._firedEventsMap.set(_,new Map),_}}function zm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(C=>{if(u.containsItem(C))return!!c.toViewElement(C).getCustomProperty("addHighlight")})}function q_(m){return{item:m.item,range:Oi._createFromPositionAndShift(m.previousPosition,m.length)}}class Ju extends(Le(Kc)){constructor(...r){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],r.length&&this.setTo(...r)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Oi(r.start,r.end)}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?new Oi(r.start,r.end):null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?new Oi(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]);else if(c instanceof Ju)this._setRanges(c.getRanges(),c.isBackward);else if(c&&"function"==typeof c.getRanges)this._setRanges(c.getRanges(),c.isBackward);else if(c instanceof Oi)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof $i)this._setRanges([new Oi(c)]);else if(c instanceof Du){const C=!!_&&!!_.backward;let M;if("in"==u)M=Oi._createIn(c);else if("on"==u)M=Oi._createOn(c);else{if(void 0===u)throw new it("model-selection-setto-required-second-parameter",[this,c]);M=new Oi($i._createAt(c,u))}this._setRanges([M],C)}else{if(!nt(c))throw new it("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(C=>{if(!(C instanceof Oi))throw new it("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(C))});(u.length!==this._ranges.length||_)&&(this._replaceAllRanges(u),this._lastRangeBackward=!!c,this.fire("change:range",{directChange:!0}))}setFocus(r,c){if(null===this.anchor)throw new it("model-selection-setfocus-no-ranges",[this,r]);const u=$i._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.length&&this._popRange(),"before"==u.compareWith(_)?(this._pushRange(new Oi(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Oi(_,u)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,c){this.getAttribute(r)!==c&&(this._attrs.set(r,c),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const r=new WeakSet;for(const c of this.getRanges()){const u=Q3(c.start,r);Qg(u,c)&&(yield u);for(const C of c.getWalker()){const M=C.item;"elementEnd"==C.type&&Jg(M,r,c)&&(yield M)}const _=Q3(c.end,r);Wg(_,c)&&(yield _)}}containsEntireContent(r=this.anchor.root){const c=$i._createAt(r,0),u=$i._createAt(r,"end");return c.isTouching(this.getFirstPosition())&&u.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Oi(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function J3(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function Jg(m,r,c){return J3(m,r)&&R_(m,c)}function Q3(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const C=u.find(M=>!_&&(_=c.isLimit(M),!_&&J3(M,r)));return u.forEach(M=>r.add(M)),C}function R_(m,r){const c=function(u){const _=u.root.document.model.schema;let C=u.parent;for(;C;){if(_.isBlock(C))return C;C=C.parent}}(m);return!c||!r.containsRange(Oi._createOn(c),!0)}function Qg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching($i._createAt(m,m.maxOffset))&&R_(m,r))}function Wg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching($i._createAt(m,0))&&R_(m,r))}Ju.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Ad extends(Le(Oi)){constructor(r,c){super(r,c),Ym.call(this)}detach(){this.stopListening()}toRange(){return new Oi(this.start,this.end)}static fromRange(r){return new Ad(r.start,r.end)}}function Ym(){this.listenTo(this.root.document.model,"applyOperation",(m,r)=>{const c=r[0];c.isDocumentOperation&&Kf.call(this,c)},{priority:"low"})}function Kf(m){const r=this.getTransformedByOperation(m),c=Oi._createFromRanges(r),u=!c.isEqual(this),_=function(M,E){switch(E.type){case"insert":return M.containsPosition(E.position);case"move":case"remove":case"reinsert":case"merge":return M.containsPosition(E.sourcePosition)||M.start.isEqual(E.sourcePosition)||M.containsPosition(E.targetPosition);case"split":return M.containsPosition(E.splitPosition)||M.containsPosition(E.insertionPosition)}return!1}(this,m);let C=null;if(u){"$graveyard"==c.root.rootName&&(C="remove"==m.type?m.sourcePosition:m.deletionPosition);const M=this.toRange();this.start=c.start,this.end=c.end,this.fire("change:range",M,{deletionPosition:C})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:C})}Ad.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const F2="selection:";class Qu extends(Le(Kc)){constructor(r){super(),this._selection=new lm(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(r){this._selection.observeMarkers(r)}_setFocus(r,c){this._selection.setFocus(r,c)}_setTo(...r){this._selection.setTo(...r)}_setAttribute(r,c){this._selection.setAttribute(r,c)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return F2+r}static _isStoreAttributeKey(r){return r.startsWith(F2)}}Qu.prototype.is=function(m){return"selection"===m||"model:selection"==m||"documentSelection"==m||"model:documentSelection"==m};class lm extends Ju{constructor(r){super(),this.markers=new tc({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=r.model,this._document=r,this.listenTo(this._model,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&"marker"!=_.type&&"rename"!=_.type&&"noop"!=_.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(c,u,_,C)=>{this._updateMarker(u,C)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,C){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const N=E.position.parent;E.length===N.maxOffset&&_.enqueueChange(C,j=>{const W=Array.from(N.getAttributeKeys()).filter(dt=>dt.startsWith(F2));for(const dt of W)j.removeAttribute(dt,N)})}}(this._model,u)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,c.root==this._document.graveyard){this._selectionRestorePosition=C.deletionPosition;const M=this._ranges.indexOf(c);this._ranges.splice(M,1),c.detach()}}),c}updateMarkers(){if(!this._observedMarkers.size)return;const r=[];let c=!1;for(const _ of this._model.markers){const C=_.name.split(":",1)[0];if(!this._observedMarkers.has(C))continue;const M=_.getRange();for(const E of this.getRanges())M.containsRange(E,!E.isCollapsed)&&r.push(_)}const u=Array.from(this.markers);for(const _ of r)this.markers.has(_)||(this.markers.add(_),c=!0);for(const _ of Array.from(this.markers))r.includes(_)||(this.markers.remove(_),c=!0);c&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}_updateMarker(r,c){const u=r.name.split(":",1)[0];if(!this._observedMarkers.has(u))return;let _=!1;const C=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const N of this.getRanges())if(c.containsRange(N,!N.isCollapsed)){E=!0;break}E&&!M?(this.markers.add(r),_=!0):!E&&M&&(this.markers.remove(r),_=!0)}else M&&(this.markers.remove(r),_=!0);_&&this.fire("change:marker",{oldMarkers:C,directChange:!1})}_updateAttributes(r){const c=Jc(this._getSurroundingAttributes()),u=Jc(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[C,M]of this._attributePriority)"low"==M&&(this._attrs.delete(C),this._attributePriority.delete(C));this._setAttributesTo(c);const _=[];for(const[C,M]of this.getAttributes())u.has(C)&&u.get(C)===M||_.push(C);for(const[C]of u)this.hasAttribute(C)||_.push(C);_.length>0&&this.fire("change:attribute",{attributeKeys:_,directChange:!1})}_setAttribute(r,c,u=!0){const _=u?"normal":"low";return("low"!=_||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==c&&(this._attrs.set(r,c),this._attributePriority.set(r,_),!0)}_removeAttribute(r,c=!0){const u=c?"normal":"low";return!("low"==u&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,u),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const c=new Set;for(const[u,_]of this.getAttributes())r.get(u)!==_&&this._removeAttribute(u,!1);for(const[u,_]of r)this._setAttribute(u,_,!1)&&c.add(u);return c}*getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const c of r.getAttributeKeys())c.startsWith(F2)&&(yield[c.substr(10),r.getAttribute(c)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),c=this._model.schema;if("$graveyard"==r.root.rootName)return null;let u=null;if(this.isCollapsed){const _=r.textNode?r.textNode:r.nodeBefore,C=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=to(_,c)),u||(u=to(C,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=to(M,c)}if(!u){let M=C;for(;M&&!u;)M=M.nextSibling,u=to(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const C of _){if(C.item.is("element")&&c.isObject(C.item)){u=to(C.item,c);break}if("text"==C.type){u=C.item.getAttributes();break}}}return u}_fixGraveyardSelection(r){const c=this._model.schema.getNearestSelectionRange(r);c&&this._pushRange(c)}}function to(m,r){if(!m)return null;if(m instanceof jl||m instanceof ss)return m.getAttributes();if(!r.isInline(m))return null;if(!r.isObject(m))return[];const c=[];for(const[u,_]of m.getAttributes())r.checkAttribute("$text",u)&&!1!==r.getAttributeProperties(u).copyFromObject&&c.push([u,_]);return c}class W3{constructor(r){this._dispatchers=r}add(r){for(const c of this._dispatchers)r(c);return this}}class q6 extends W3{elementToElement(r){return this.add(function(c){const u=Xf(c.model),_=H_(c.view,"container");return u.attributes.length&&(u.children=!0),C=>{C.on(`insert:${u.name}`,function(M,E=fb){return(N,j,W)=>{if(!E(j.item,W.consumable,{preflight:!0}))return;const dt=M(j.item,W,j);if(!dt)return;E(j.item,W.consumable);const Zt=W.mapper.toViewPosition(j.range.start);W.mapper.bindElements(j.item,dt),W.writer.insert(Zt,dt),W.convertAttributes(j.item),z_(dt,j.item.getChildren(),W,{reconversion:j.reconversion})}}(_,Kg(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&C.on("reduceChanges",$3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=Xf(c.model),_=H_(c.view,"container");return u.children=!0,C=>{if(C._conversionApi.schema.checkChild(u.name,"$text"))throw new it("conversion-element-to-structure-disallowed-text",C,{elementName:u.name});var M,E;C.on(`insert:${u.name}`,(M=_,E=Kg(u),(N,j,W)=>{if(!E(j.item,W.consumable,{preflight:!0}))return;const dt=new Map;var xe,Ee,ln;W.writer._registerSlotFactory((xe=j.item,Ee=dt,ln=W,(Mn,di)=>{const Ri=Mn.createContainerElement("$slot");let Jo=null;if("children"===di)Jo=Array.from(xe.getChildren());else{if("function"!=typeof di)throw new it("conversion-slot-mode-unknown",ln.dispatcher,{modeOrFilter:di});Jo=Array.from(xe.getChildren()).filter(Da=>di(Da))}return Ee.set(Ri,Jo),Ri}));const Zt=M(j.item,W,j);if(W.writer._clearSlotFactory(),!Zt)return;(function(xe,Ee,ln){const Mn=Array.from(Ee.values()).flat(),di=new Set(Mn);if(di.size!=Mn.length)throw new it("conversion-slot-filter-overlap",ln.dispatcher,{element:xe});if(di.size!=xe.childCount)throw new it("conversion-slot-filter-incomplete",ln.dispatcher,{element:xe})})(j.item,dt,W),E(j.item,W.consumable);const ue=W.mapper.toViewPosition(j.range.start);W.mapper.bindElements(j.item,Zt),W.writer.insert(ue,Zt),W.convertAttributes(j.item),function(xe,Ee,ln,Mn){ln.mapper.on("modelToViewPosition",Jo,{priority:"highest"});let di=null,Ri=null;for([di,Ri]of Ee)z_(xe,Ri,ln,Mn),ln.writer.move(ln.writer.createRangeIn(di),ln.writer.createPositionBefore(di)),ln.writer.remove(di);function Jo(Da,Ts){const Sl=Ri.indexOf(Ts.modelPosition.nodeAfter);Sl<0||(Ts.viewPosition=Ts.mapper.findPositionIn(di,Sl))}ln.mapper.off("modelToViewPosition",Jo)}(Zt,dt,W,{reconversion:j.reconversion})}),{priority:c.converterPriority||"normal"}),C.on("reduceChanges",$3(u),{priority:"low"})}}(r))}attributeToElement(r){return this.add(function(c){let u=(c=y1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=H_(c.view[M],"attribute");else c.view=H_(c.view,"attribute");const C=dm(c);return M=>{var E;M.on(_,(E=C,(N,j,W)=>{if(!W.consumable.test(j.item,N.name))return;const dt=E(j.attributeOldValue,W,j),Zt=E(j.attributeNewValue,W,j);if(!dt&&!Zt)return;W.consumable.consume(j.item,N.name);const ue=W.writer;if(j.item instanceof Ju||j.item instanceof Qu)ue.wrap(ue.document.selection.getFirstRange(),Zt);else{let Ee=W.mapper.toViewRange(j.range);null!==j.attributeOldValue&&dt&&(Ee=ue.unwrap(Ee,dt)),null!==j.attributeNewValue&&Zt&&ue.wrap(Ee,Zt)}}),{priority:c.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=(c=y1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=Qd(c.view[M]);else c.view=Qd(c.view);const C=dm(c);return M=>{var E;M.on(_,(E=C,(N,j,W)=>{if(!W.consumable.test(j.item,N.name))return;const dt=E(j.attributeOldValue,W,j),Zt=E(j.attributeNewValue,W,j);if(!dt&&!Zt)return;W.consumable.consume(j.item,N.name);const ue=W.mapper.toViewElement(j.item),xe=W.writer;if(!ue)throw new it("conversion-attribute-to-attribute-on-text",W.dispatcher,j);if(null!==j.attributeOldValue&&dt)if("class"==dt.key){const Ee=Ds(dt.value);for(const ln of Ee)xe.removeClass(ln,ue)}else if("style"==dt.key){const Ee=Object.keys(dt.value);for(const ln of Ee)xe.removeStyle(ln,ue)}else xe.removeAttribute(dt.key,ue);if(null!==j.attributeNewValue&&Zt)if("class"==Zt.key){const Ee=Ds(Zt.value);for(const ln of Ee)xe.addClass(ln,ue)}else if("style"==Zt.key){const Ee=Object.keys(Zt.value);for(const ln of Ee)xe.setStyle(ln,Zt.value[ln],ue)}else xe.setAttribute(Zt.key,Zt.value,ue)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=H_(c.view,"ui");return _=>{var C;_.on(`addMarker:${c.model}`,(C=u,(M,E,N)=>{E.isOpening=!0;const j=C(E,N);E.isOpening=!1;const W=C(E,N);if(!j||!W)return;const dt=E.markerRange;if(dt.isCollapsed&&!N.consumable.consume(dt,M.name))return;for(const xe of dt)if(!N.consumable.consume(xe.item,M.name))return;const Zt=N.mapper,ue=N.writer;ue.insert(Zt.toViewPosition(dt.start),j),N.mapper.bindElementToMarker(j,E.markerName),dt.isCollapsed||(ue.insert(Zt.toViewPosition(dt.end),W),N.mapper.bindElementToMarker(W,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,N)=>{const j=N.mapper.markerNameToElements(E.markerName);if(j){for(const W of j)N.mapper.unbindElementFromMarkerName(W,E.markerName),N.writer.clear(N.writer.createRangeOn(W),W);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,C;u.on(`addMarker:${c.model}`,(_=c.view,(C,M,E)=>{if(!M.item||!(M.item instanceof Ju||M.item instanceof Qu||M.item.is("$textProxy")))return;const N=$g(_,M,E);if(!N||!E.consumable.consume(M.item,C.name))return;const j=E.writer,W=T1(j,N);if(M.item instanceof Ju||M.item instanceof Qu)j.wrap(j.document.selection.getFirstRange(),W);else{const Zt=E.mapper.toViewRange(M.range),ue=j.wrap(Zt,W);for(const xe of ue.getItems())if(xe.is("attributeElement")&&xe.isSimilar(W)){E.mapper.bindElementToMarker(xe,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(C=c.view,(M,E,N)=>{if(!(E.item&&E.item instanceof _s))return;const j=$g(C,E,N);if(!j||!N.consumable.test(E.item,M.name))return;const W=N.mapper.toViewElement(E.item);if(W&&W.getCustomProperty("addHighlight")){N.consumable.consume(E.item,M.name);for(const dt of Oi._createIn(E.item))N.consumable.consume(dt.item,M.name);W.getCustomProperty("addHighlight")(W,j,N.writer),N.mapper.bindElementToMarker(W,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(C){return(M,E,N)=>{if(E.markerRange.isCollapsed)return;const j=$g(C,E,N);if(!j)return;const W=T1(N.writer,j),dt=N.mapper.markerNameToElements(E.markerName);if(dt){for(const Zt of dt)N.mapper.unbindElementFromMarkerName(Zt,E.markerName),Zt.is("attributeElement")?N.writer.unwrap(N.writer.createRangeOn(Zt),W):Zt.getCustomProperty("removeHighlight")(Zt,j.id,N.writer);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}}}(c.view),{priority:c.converterPriority||"normal"})}));var c}markerToData(r){return this.add(function(c){const u=(c=y1(c)).model;let _=c.view;return _||(_=C=>({group:u,name:C.substr(c.model.length+1)})),C=>{var M,E;C.on(`addMarker:${u}`,(M=_,(E,N,j)=>{const W=M(N.markerName,j);if(!W)return;const dt=N.markerRange;j.consumable.consume(dt,E.name)&&(um(dt,!1,j,N,W),um(dt,!0,j,N,W),E.stop())}),{priority:c.converterPriority||"normal"}),C.on(`removeMarker:${u}`,(E=_,(N,j,W)=>{const dt=E(j.markerName,W);if(!dt)return;const Zt=W.mapper.markerNameToElements(j.markerName);if(Zt){for(const xe of Zt)W.mapper.unbindElementFromMarkerName(xe,j.markerName),xe.is("containerElement")?(ue(`data-${dt.group}-start-before`,xe),ue(`data-${dt.group}-start-after`,xe),ue(`data-${dt.group}-end-before`,xe),ue(`data-${dt.group}-end-after`,xe)):W.writer.clear(W.writer.createRangeOn(xe),xe);W.writer.clearClonedElementsGroup(j.markerName),N.stop()}function ue(xe,Ee){if(Ee.hasAttribute(xe)){const ln=new Set(Ee.getAttribute(xe).split(","));ln.delete(dt.name),0==ln.size?W.writer.removeAttribute(xe,Ee):W.writer.setAttribute(xe,Array.from(ln).join(","),Ee)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function T1(m,r){const c=m.createAttributeElement("span",r.attributes);return r.classes&&c._addClass(r.classes),"number"==typeof r.priority&&(c._priority=r.priority),c._id=r.id,c}function um(m,r,c,u,_){const C=r?m.start:m.end,M=C.nodeAfter&&C.nodeAfter.is("element")?C.nodeAfter:null,E=C.nodeBefore&&C.nodeBefore.is("element")?C.nodeBefore:null;if(M||E){let N,j;r&&M||!r&&!E?(N=M,j=!0):(N=E,j=!1);const W=c.mapper.toViewElement(N);if(W)return void function(dt,Zt,ue,xe,Ee,ln){const Mn=`data-${ln.group}-${Zt?"start":"end"}-${ue?"before":"after"}`,di=dt.hasAttribute(Mn)?dt.getAttribute(Mn).split(","):[];di.unshift(ln.name),xe.writer.setAttribute(Mn,di.join(","),dt),xe.mapper.bindElementToMarker(dt,Ee.markerName)}(W,r,j,c,u,_)}!function(N,j,W,dt,Zt){const Ee=W.writer.createUIElement(`${Zt.group}-${j?"start":"end"}`,Zt.name?{name:Zt.name}:null);W.writer.insert(N,Ee),W.mapper.bindElementToMarker(Ee,dt.markerName)}(c.mapper.toViewPosition(C),r,c,u,_)}function Xf(m){return"string"==typeof m&&(m={name:m}),m.attributes?Array.isArray(m.attributes)||(m.attributes=[m.attributes]):m.attributes=[],m.children=!!m.children,m}function H_(m,r){return"function"==typeof m?m:(c,u)=>function(_,C,M){let E;"string"==typeof _&&(_={name:_});const N=C.writer,j=Object.assign({},_.attributes);if(E="container"==M?N.createContainerElement(_.name,j):"attribute"==M?N.createAttributeElement(_.name,j,{priority:_.priority||nm.DEFAULT_PRIORITY}):N.createUIElement(_.name,j),_.styles){const W=Object.keys(_.styles);for(const dt of W)N.setStyle(dt,_.styles[dt],E)}if(_.classes){const W=_.classes;if("string"==typeof W)N.addClass(W,E);else for(const dt of W)N.addClass(dt,E)}return E}(m,u,r)}function dm(m){return m.model.values?(r,c,u)=>{const _=m.view[r];return _?_(r,c,u):null}:m.view}function Qd(m){return"string"==typeof m?r=>({key:m,value:r}):"object"==typeof m?m.value?()=>m:r=>({key:m.key,value:r}):m}function $g(m,r,c){const u="function"==typeof m?m(r,c):m;return u?(u.priority||(u.priority=10),u.id||(u.id=r.markerName),u):null}function $3(m){const r=(c=m,(u,_)=>{if(!u.is("element",c.name))return!1;if("attribute"==_.type){if(c.attributes.includes(_.attributeKey))return!0}else if(c.children)return!0;return!1});var c;return(c,u)=>{const _=[];u.reconvertedElements||(u.reconvertedElements=new Set);for(const C of u.changes){const M="attribute"==C.type?C.range.start.nodeAfter:C.position.parent;if(M&&r(M,C)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=$i._createBefore(M);let N=_.length;for(let j=_.length-1;j>=0;j--){const W=_[j],dt=("attribute"==W.type?W.range.start:W.position).compareWith(E);if("before"==dt||"remove"==W.type&&"same"==dt)break;N=j}_.splice(N,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(C)}u.changes=_}}function Kg(m){return(r,c,u={})=>{const _=["insert"];for(const C of m.attributes)r.hasAttribute(C)&&_.push(`attribute:${C}`);return!!_.every(C=>c.test(r,C))&&(u.preflight||_.forEach(C=>c.consume(r,C)),!0)}}function z_(m,r,c,u){for(const _ of r)th(m.root,_,c,u)||c.convertItem(_)}function th(m,r,c,u){const{writer:_,mapper:C}=c;if(!u.reconversion)return!1;const M=C.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),C.toViewPosition($i._createBefore(r))),0))}function fb(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function I2(m){const{schema:r,document:c}=m.model;for(const u of c.getRoots())if(u.isEmpty&&!r.checkChild(u,"$text")&&r.checkChild(u,"paragraph"))return m.insertElement("paragraph",u),!0;return!1}function eh(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function Xg(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var t0=Object.defineProperty,N2=Object.defineProperties,nh=Object.getOwnPropertyDescriptors,e0=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,K3=Object.prototype.propertyIsEnumerable,Y_=(m,r,c)=>r in m?t0(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class R6 extends W3{elementToElement(r){return this.add(n0(r))}elementToAttribute(r){return this.add(function(c){lu(c=y1(c));const u=G1(c,!1),_=q2(c.view),C=_?`element:${_}`:"element";return M=>{M.on(C,u,{priority:c.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=null;("string"==typeof(c=y1(c)).view||c.view.key)&&(u=function(C){"string"==typeof C.view&&(C.view={key:C.view});const M=C.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:C.view.value}:{attributes:{[M]:void 0===C.view.value?/[\s\S]*/:C.view.value}},C.view.name&&(E.name=C.view.name),C.view=E,M}(c)),lu(c,u);const _=G1(c,!0);return C=>{C.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,N)=>{const j="string"==typeof M?M:M(E,N);return N.writer.createElement("$marker",{"data-name":j})});var M,_;return n0((_=((M,E)=>{for(var N in E||(E={}))yd.call(E,N)&&Y_(M,N,E[N]);if(e0)for(var N of e0(E))K3.call(E,N)&&Y_(M,N,E[N]);return M})({},c),N2(_,nh({model:u}))))}(r))}dataToMarker(r){return this.add(function(c){(c=y1(c)).model||(c.model=M=>M?c.view+":"+M:c.view);const u={view:c.view,model:c.model},_=Gl(o0(u,"start")),C=Gl(o0(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,C,{priority:c.converterPriority||"normal"});const E=Pt.low,N=Pt.highest,j=Pt.get(c.converterPriority)/N;var W;M.on("element",(W=u,(dt,Zt,ue)=>{const xe=`data-${W.view}`;function Ee(ln,Mn){for(const di of Mn){const Ri=W.model(di,ue),Jo=ue.writer.createElement("$marker",{"data-name":Ri});ue.writer.insert(Jo,ln),Zt.modelCursor=Zt.modelCursor.isEqual(ln)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(ln,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(ln,1)[0]}}(ue.consumable.test(Zt.viewItem,{attributes:xe+"-end-after"})||ue.consumable.test(Zt.viewItem,{attributes:xe+"-start-after"})||ue.consumable.test(Zt.viewItem,{attributes:xe+"-end-before"})||ue.consumable.test(Zt.viewItem,{attributes:xe+"-start-before"}))&&(Zt.modelRange||Object.assign(Zt,ue.convertChildren(Zt.viewItem,Zt.modelCursor)),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-end-after"})&&Ee(Zt.modelRange.end,Zt.viewItem.getAttribute(xe+"-end-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-start-after"})&&Ee(Zt.modelRange.end,Zt.viewItem.getAttribute(xe+"-start-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-end-before"})&&Ee(Zt.modelRange.start,Zt.viewItem.getAttribute(xe+"-end-before").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:xe+"-start-before"})&&Ee(Zt.modelRange.start,Zt.viewItem.getAttribute(xe+"-start-before").split(",")))}),{priority:E+j})}}(r))}}function n0(m){const r=Gl(m=y1(m)),c=q2(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function q2(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function Gl(m){const r=new ms(m.view);return(c,u,_)=>{const C=r.match(u.viewItem);if(!C)return;const M=C.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(W=_,(N=m.model)instanceof Function?N(u.viewItem,W):W.writer.createElement(N));var N,W;E&&_.safeInsert(E,u.modelCursor)&&(_.consumable.consume(u.viewItem,M),_.convertChildren(u.viewItem,E),_.updateConversionResult(E,u))}}function lu(m,r=null){m.model={key:"object"!=typeof m.model?m.model:m.model.key,value:"object"!=typeof m.model||void 0===m.model.value?null===r||(C=>C.getAttribute(r)):m.model.value}}function G1(m,r){const c=new ms(m.view);return(u,_,C)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(W,dt){const Zt="function"==typeof W?W(dt):W;return!("object"==typeof Zt&&!q2(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!C.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,N="function"==typeof m.model.value?m.model.value(_.viewItem,C):m.model.value;null!==N&&(_.modelRange||Object.assign(_,C.convertChildren(_.viewItem,_.modelCursor)),function(W,dt,Zt,ue){let xe=!1;for(const Ee of Array.from(W.getItems({shallow:Zt})))ue.schema.checkAttribute(Ee,dt.key)&&(xe=!0,Ee.hasAttribute(dt.key)||ue.writer.setAttribute(dt.key,dt.value,Ee));return xe}(_.modelRange,{key:E,value:N},r,C)&&(C.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),C.consumable.consume(_.viewItem,M.match)))}}function o0(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),C=m.model(_,u);return u.writer.createElement("$marker",{"data-name":C})}}}function Va(m,r){return m.isCollapsed?function(c,u){const _=c.start,C=u.getNearestSelectionRange(_);if(!C){const E=_.getAncestors().reverse().find(N=>u.isObject(N));return E?Oi._createOn(E):null}if(!C.isCollapsed)return C;const M=C.start;return _.isEqual(M)?null:new Oi(M)}(m,r):function(c,u){const{start:_,end:C}=c,M=u.checkChild(_,"$text"),E=u.checkChild(C,"$text"),N=u.getLimitElement(_),j=u.getLimitElement(C);if(N===j){if(M&&E)return null;if(function(Zt,ue,xe){const Ee=Zt.nodeAfter&&!xe.isLimit(Zt.nodeAfter)||xe.checkChild(Zt,"$text"),ln=ue.nodeBefore&&!xe.isLimit(ue.nodeBefore)||xe.checkChild(ue,"$text");return Ee||ln}(_,C,u)){const Zt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),ue=C.nodeBefore&&u.isSelectable(C.nodeBefore)?null:u.getNearestSelectionRange(C,"backward");return new Oi(Zt?Zt.start:_,ue?ue.end:C)}}const W=N&&!N.is("rootElement"),dt=j&&!j.is("rootElement");if(W||dt){const Zt=_.nodeAfter&&C.nodeBefore&&_.nodeAfter.parent===C.nodeBefore.parent,ue=W&&(!Zt||!wp(_.nodeAfter,u)),xe=dt&&(!Zt||!wp(C.nodeBefore,u));let Ee=_,ln=C;return ue&&(Ee=$i._createBefore(Bm(N,u))),xe&&(ln=$i._createAfter(Bm(j,u))),new Oi(Ee,ln)}return null}(m,r)}function Bm(m,r){let c=m,u=c;for(;r.isLimit(u)&&u.parent;)c=u,u=u.parent;return c}function wp(m,r){return m&&r.isSelectable(m)}class X3 extends(we()){constructor(r,c){super(),this.model=r,this.view=new B3(c),this.mapper=new V3,this.downcastDispatcher=new G3({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,C=this.model.markers;var M,E,N,j,W;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(u,"change",()=>{this.view.change(j=>{this.downcastDispatcher.convertChanges(u.differ,C,j),this.downcastDispatcher.convertSelection(_,C,j)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(j=this.model,W=this.mapper,(dt,Zt)=>{const ue=Zt.newSelection,xe=[];for(const ln of ue.getRanges())xe.push(W.toModelRange(ln));const Ee=j.createSelection(xe,{backward:ue.isBackward});Ee.isEqual(j.document.selection)||j.change(ln=>{ln.setSelection(Ee)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,N=this.view,(j,W)=>{if(!N.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(W.item,j.name))return;const Zt=dt.writer,ue=dt.mapper.toViewPosition(W.range.start),xe=Zt.createText(W.item.data);Zt.insert(ue,xe)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(j,W,dt)=>{dt.convertAttributes(W.item),W.reconversion||!W.item.is("element")||W.item.isEmpty||dt.convertChildren(W.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(j,W,dt)=>{const Zt=dt.mapper.toViewPosition(W.position),ue=W.position.getShiftedBy(W.length),xe=dt.mapper.toViewPosition(ue,{isPhantom:!0}),Ee=dt.writer.createRange(Zt,xe),ln=dt.writer.remove(Ee.getTrimmed());for(const Mn of dt.writer.createRangeIn(ln).getItems())dt.mapper.unbindViewElement(Mn,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(j,W,dt)=>{const Zt=dt.writer,ue=Zt.document.selection;for(const xe of ue.getRanges())xe.isCollapsed&&xe.end.parent.isAttached()&&dt.writer.mergeAttributes(xe.start);Zt.setSelection(null)}),this.downcastDispatcher.on("selection",(j,W,dt)=>{const Zt=W.selection;if(Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=[];for(const xe of Zt.getRanges())ue.push(dt.mapper.toViewRange(xe));dt.writer.setSelection(ue,{backward:Zt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(j,W,dt)=>{const Zt=W.selection;if(!Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=dt.writer,xe=Zt.getFirstPosition(),Ee=dt.mapper.toViewPosition(xe),ln=ue.breakAttributes(Ee);ue.setSelection(ln)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(j=>{if("$graveyard"==j.rootName)return null;const W=new Im(this.view.document,j.name);return W.rootName=j.rootName,this.mapper.bindElements(j,W),W})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(r){const c="string"==typeof r?r:r.name,u=this.model.markers.get(c);if(!u)throw new it("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:c});this.model.change(()=>{this.model.markers._refresh(u)})}reconvertItem(r){this.model.change(()=>{this.model.document.differ._refreshItem(r)})}}class B_{constructor(){this._consumables=new Map}add(r,c){let u;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?u=this._consumables.get(r):(u=new ih(r),this._consumables.set(r,u)),u.add(c))}test(r,c){const u=this._consumables.get(r);return void 0===u?null:r.is("$text")||r.is("documentFragment")?u:u.test(c)}consume(r,c){return!!this.test(r,c)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(c),!0)}revert(r,c){const u=this._consumables.get(r);void 0!==u&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):u.revert(c))}static consumablesFromElement(r){const c={element:r,name:!0,attributes:[],classes:[],styles:[]},u=r.getAttributeKeys();for(const M of u)"style"!=M&&"class"!=M&&c.attributes.push(M);const _=r.getClassNames();for(const M of _)c.classes.push(M);const C=r.getStyleNames();for(const M of C)c.styles.push(M);return c}static createFrom(r,c){if(c||(c=new B_),r.is("$text"))return c.add(r),c;r.is("element")&&c.add(r,B_.consumablesFromElement(r)),r.is("documentFragment")&&c.add(r);for(const u of r.getChildren())c=B_.createFrom(u,c);return c}}const R2=["attributes","classes","styles"];class ih{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const c of R2)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of R2)if(c in r){const u=this._test(c,r[c]);if(!0!==u)return u}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const c of R2)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of R2)c in r&&this._revert(c,r[c])}_add(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u){if("attributes"===r&&("class"===C||"style"===C))throw new it("viewconsumable-invalid-attribute",this);if(_.set(C,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!0)}}_test(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){const M=_.get(C);if(void 0===M)return null;if(!M)return!1}else{const M="class"==C?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){if(_.set(C,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!1)}else{const M="class"==C?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C)!1===_.get(C)&&_.set(C,!0);else{const M="class"==C?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class H6 extends(we()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,c)=>{c[0]=new Up(c[0])},{priority:"highest"}),this.on("checkChild",(r,c)=>{c[0]=new Up(c[0]),c[1]=this.getDefinition(c[1])},{priority:"highest"})}register(r,c){if(this._sourceDefinitions[r])throw new it("schema-cannot-register-item-twice",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},c)],this._clearCache()}extend(r,c){if(!this._sourceDefinitions[r])throw new it("schema-cannot-extend-missing-item",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},c)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let c;return c="string"==typeof r?r:"is"in r&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[c]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const c=this.getDefinition(r);return!(!c||!c.isBlock)}isLimit(r){const c=this.getDefinition(r);return!(!c||!c.isLimit&&!c.isObject)}isObject(r){const c=this.getDefinition(r);return!!c&&!!(c.isObject||c.isLimit&&c.isSelectable&&c.isContent)}isInline(r){const c=this.getDefinition(r);return!(!c||!c.isInline)}isSelectable(r){const c=this.getDefinition(r);return!(!c||!c.isSelectable&&!c.isObject)}isContent(r){const c=this.getDefinition(r);return!(!c||!c.isContent&&!c.isObject)}checkChild(r,c){return!!c&&this._checkContextMatch(c,r)}checkAttribute(r,c){const u=this.getDefinition(r.last);return!!u&&u.allowAttributes.includes(c)}checkMerge(r,c){if(r instanceof $i){const u=r.nodeBefore,_=r.nodeAfter;if(!(u instanceof _s))throw new it("schema-check-merge-no-element-before",this);if(!(_ instanceof _s))throw new it("schema-check-merge-no-element-after",this);return this.checkMerge(u,_)}for(const u of c.getChildren())if(!this.checkChild(r,u))return!1;return!0}addChildCheck(r){this.on("checkChild",(c,[u,_])=>{if(!_)return;const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}setAttributeProperties(r,c){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),c)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let c;for(c=r instanceof $i?r.parent:(r instanceof Oi?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const C=_.getCommonAncestor();return u?u.getCommonAncestor(C,{includeSelf:!0}):C},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new ss("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const C of _)if(this.checkAttribute(C.item,c))return!0}return!1}*getValidRanges(r,c){r=function*(u){for(const _ of u)yield*_.getMinimalFlatRanges()}(r);for(const u of r)yield*this._getValidRangesForRange(u,c)}getNearestSelectionRange(r,c="both"){if("$graveyard"==r.root.rootName)return null;if(this.checkChild(r,"$text"))return new Oi(r);let u,_;const C=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Jd({boundaries:Oi._createIn(C),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Jd({boundaries:Oi._createIn(C),startPosition:r}));for(const M of function*(E,N){let j=!1;for(;!j;){if(j=!0,E){const W=E.next();W.done||(j=!1,yield{walker:E,value:W.value})}if(N){const W=N.next();W.done||(j=!1,yield{walker:N,value:W.value})}}}(u,_)){const N=M.value;if(N.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(N.item))return Oi._createOn(N.item);if(this.checkChild(N.nextPosition,"$text"))return new Oi(N.nextPosition)}return null}findAllowedParent(r,c){let u=r.parent;for(;u;){if(this.checkChild(u,c))return u;if(this.isLimit(u))return null;u=u.parent}return null}setAllowedAttributes(r,c,u){const _=u.model;for(const[C,M]of Object.entries(c))_.schema.checkAttribute(r,C)&&u.setAttribute(C,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))Mp(this,u,c);else{const _=Oi._createIn(u).getPositions();for(const C of _)Mp(this,C.nodeBefore||C.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[C,M]of r.getAttributes()){const E=this.getAttributeProperties(C);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[C]=M))}return _}createContext(r){return new Up(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},c=this._sourceDefinitions,u=Object.keys(c);for(const _ of u)r[_]=r0(c[_],_);for(const _ of u)z6(r,_);for(const _ of u)Y6(r,_);for(const _ of u)t4(r,_);for(const _ of u)Wu(r,_),Vm(r,_);for(const _ of u)B6(r,_),Zp(r,_),Qa(r,_);this._compiledDefinitions=r}_checkContextMatch(r,c,u=c.length-1){const _=c.getItem(u);if(r.allowIn.includes(_.name)){if(0==u)return!0;{const C=this.getDefinition(_);return this._checkContextMatch(C,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const C of r.getItems({shallow:!0}))C.is("element")&&(yield*this._getValidRangesForRange(Oi._createIn(C),c)),this.checkAttribute(C,c)||(u.isEqual(_)||(yield new Oi(u,_)),u=$i._createAfter(C)),_=$i._createAfter(C);u.isEqual(_)||(yield new Oi(u,_))}}class Up{constructor(r){if(r instanceof Up)return r;let c;c="string"==typeof r?[r]:Array.isArray(r)?r:r.getAncestors({includeSelf:!0}),this._items=c.map(Xc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const c=new Up([r]);return c._items=[...this._items,...c._items],c}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function r0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const C of u){const M=Object.keys(C).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!C[E]}}(m,c),jm(m,c,"allowIn"),jm(m,c,"allowContentOf"),jm(m,c,"allowWhere"),jm(m,c,"allowAttributes"),jm(m,c,"allowAttributesOf"),jm(m,c,"allowChildren"),jm(m,c,"inheritTypesFrom"),function(u,_){for(const C of u){const M=C.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function z6(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function Y6(m,r){for(const c of m[r].allowContentOf)m[c]&&Pu(m,c).forEach(u=>{u.allowIn.push(r)});delete m[r].allowContentOf}function t4(m,r){for(const c of m[r].allowWhere){const u=m[c];u&&m[r].allowIn.push(...u.allowIn)}delete m[r].allowWhere}function Wu(m,r){for(const c of m[r].allowAttributesOf){const u=m[c];u&&m[r].allowAttributes.push(...u.allowAttributes)}delete m[r].allowAttributesOf}function Vm(m,r){const c=m[r];for(const u of c.inheritTypesFrom){const _=m[u];if(_){const C=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of C)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function B6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function Zp(m,r){const c=m[r];for(const u of c.allowIn)m[u].allowChildren.push(r)}function Qa(m,r){const c=m[r];c.allowAttributes=Array.from(new Set(c.allowAttributes))}function jm(m,r,c){for(const u of m){const _=u[c];"string"==typeof _?r[c].push(_):Array.isArray(_)&&r[c].push(..._)}}function Pu(m,r){const c=m[r];return(u=m,Object.keys(u).map(_=>u[_])).filter(_=>_.allowIn.includes(c.name));var u}function Xc(m){return"string"==typeof m||m.is("documentFragment")?{name:"string"==typeof m?m:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:m.is("element")?m.name:"$text",*getAttributeKeys(){yield*m.getAttributeKeys()},getAttribute:r=>m.getAttribute(r)}}function Mp(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var kp=Object.defineProperty,V_=Object.defineProperties,V6=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,oh=Object.prototype.propertyIsEnumerable,pm=(m,r,c)=>r in m?kp(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class ah extends(Le()){constructor(r){var c;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(c=((u,_)=>{for(var C in _||(_={}))Gm.call(_,C)&&pm(u,C,_[C]);if(s0)for(var C of s0(_))oh.call(_,C)&&pm(u,C,_[C]);return u})({},r),V_(c,V6({consumable:null,writer:null,store:null,convertItem:(u,_)=>this._convertItem(u,_),convertChildren:(u,_)=>this._convertChildren(u,_),safeInsert:(u,_)=>this._safeInsert(u,_),updateConversionResult:(u,_)=>this._updateConversionResult(u,_),splitToAllowedParent:(u,_)=>this._splitToAllowedParent(u,_),getSplitParts:u=>this._getSplitParts(u),keepEmptyElement:u=>this._keepEmptyElement(u)})))}convert(r,c,u=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(M,E){let N;for(const j of new Up(M)){const W={};for(const Zt of j.getAttributeKeys())W[Zt]=j.getAttribute(Zt);const dt=E.createElement(j.name,W);N&&E.insert(dt,N),N=$i._createAt(dt,0)}return N}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=B_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),C=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,C);C.markers=function(M,E){const N=new Set,j=new Map,W=Oi._createIn(M).getItems();for(const dt of W)dt.is("element","$marker")&&N.add(dt);for(const dt of N){const Zt=dt.getAttribute("data-name"),ue=E.createPositionBefore(dt);j.has(Zt)?j.get(Zt).end=ue.clone():j.set(Zt,new Oi(ue.clone())),E.remove(dt)}return j}(C,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,C}_convertItem(r,c){const u={viewItem:r,modelCursor:c,modelRange:null};if(r.is("element")?this.fire(`element:${r.name}`,u,this.conversionApi):r.is("$text")?this.fire("text",u,this.conversionApi):this.fire("documentFragment",u,this.conversionApi),u.modelRange&&!(u.modelRange instanceof Oi))throw new it("view-conversion-dispatcher-incorrect-result",this);return{modelRange:u.modelRange,modelCursor:u.modelCursor}}_convertChildren(r,c){let u=c.is("position")?c:$i._createAt(c,0);const _=new Oi(u);for(const C of Array.from(r.getChildren())){const M=this._convertItem(C,u);M.modelRange instanceof Oi&&(_.end=M.modelRange.end,u=M.modelCursor)}return{modelRange:_,modelCursor:u}}_safeInsert(r,c){const u=this._splitToAllowedParent(r,c);return!!u&&(this.conversionApi.writer.insert(r,u.position),!0)}_updateConversionResult(r,c){const u=this._getSplitParts(r),_=this.conversionApi.writer;c.modelRange||(c.modelRange=_.createRange(_.createPositionBefore(r),_.createPositionAfter(u[u.length-1])));const C=this._cursorParents.get(r);c.modelCursor=C?_.createPositionAt(C,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let C=u.findAllowedParent(c,r);if(C){if(C===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(C)&&(C=null)}if(!C)return eh(c,r,u)?{position:Xg(c,_)}:null;const M=this.conversionApi.writer.split(c,C),E=[];for(const j of M.range.getWalker())if("elementEnd"==j.type)E.push(j.item);else{const W=E.pop();this._registerSplitPair(W,j.item)}const N=M.range.end.parent;return this._cursorParents.set(r,N),{position:M.position,cursorParent:N}}_registerSplitPair(r,c){this._splitParts.has(r)||this._splitParts.set(r,[r]);const u=this._splitParts.get(r);this._splitParts.set(c,u),u.push(c)}_getSplitParts(r){let c;return c=this._splitParts.has(r)?this._splitParts.get(r):[r],c}_keepEmptyElement(r){this._emptyElementsToKeep.add(r)}_removeEmptyElements(){let r=!1;for(const c of this._splitParts.keys())c.isEmpty&&!this._emptyElementsToKeep.has(c)&&(this.conversionApi.writer.remove(c),this._splitParts.delete(c),r=!0);r&&this._removeEmptyElements()}}class J1{getHtml(r){const c=document.implementation.createHTMLDocument("").createElement("div");return c.appendChild(r),c.innerHTML}}class H2{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new D_(r,{renderingMode:"data"}),this.htmlWriter=new J1}toData(r){const c=this.domConverter.viewToDom(r);return this.htmlWriter.getHtml(c)}toView(r){const c=this._toDom(r);return this.domConverter.domToView(c,{skipComments:this.skipComments})}registerRawContentMatcher(r){this.domConverter.registerRawContentMatcher(r)}useFillerType(r){this.domConverter.blockFillerMode="marked"==r?"markedNbsp":"nbsp"}_toDom(r){r.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(r=`${r}`);const c=this.domParser.parseFromString(r,"text/html"),u=c.createDocumentFragment(),_=c.body.childNodes;for(;_.length>0;)u.appendChild(_[0]);return u}}class j_ extends(Le()){constructor(r,c){super(),this.model=r,this.mapper=new V3,this.downcastDispatcher=new G3({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewPosition(_.range.start),N=M.createText(_.item.data);M.insert(E,N)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,C)=>{C.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||C.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new ah({schema:r.schema}),this.viewDocument=new em(c),this.stylesProcessor=c,this.htmlProcessor=new H2(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Ls(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:C,consumable:M,writer:E})=>{let N=_.modelCursor;if(!M.test(_.viewItem))return;if(!C.checkChild(N,"$text")){if(!eh(N,"$text",C)||0==_.viewItem.data.trim().length)return;const W=N.nodeBefore;N=Xg(N,E),W&&W.is("element","$marker")&&(E.move(E.createRangeOn(W),N),N=E.createPositionAfter(W))}M.consume(_.viewItem);const j=E.createText(_.viewItem.data);E.insert(j,N),_.modelRange=E.createRange(N,N.getShiftedBy(j.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),we().prototype.decorate.call(this,"init"),we().prototype.decorate.call(this,"set"),we().prototype.decorate.call(this,"get"),we().prototype.decorate.call(this,"toView"),we().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},I2)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new it("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Tt("datacontroller-get-detached-root",this),"empty"!==u||this.model.hasContent(_,{ignoreWhitespaces:!0})?this.stringify(_,r):""}stringify(r,c={}){const u=this.toView(r,c);return this.processor.toData(u)}toView(r,c={}){const u=this.viewDocument,_=this._viewWriter;this.mapper.clearBindings();const C=Oi._createIn(r),M=new g1(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(N){const j=[],W=N.root.document;if(!W)return new Map;const dt=Oi._createIn(N);for(const Zt of W.model.markers){const ue=Zt.getRange(),xe=ue.isCollapsed,Ee=ue.start.isEqual(dt.start)||ue.end.isEqual(dt.end);if(xe&&Ee)j.push([Zt.name,ue]);else{const ln=dt.getIntersection(ue);ln&&j.push([Zt.name,ln])}}return j.sort(([Zt,ue],[xe,Ee])=>{if("after"!==ue.end.compareWith(Ee.start))return 1;if("before"!==ue.start.compareWith(Ee.end))return-1;switch(ue.start.compareWith(Ee.start)){case"before":return 1;case"after":return-1;default:switch(ue.end.compareWith(Ee.end)){case"before":return 1;case"after":return-1;default:return xe.localeCompare(Zt)}}}),new Map(j)}(r);return this.downcastDispatcher.convert(C,E,_,c),M}init(r){if(this.model.document.version)throw new it("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new it("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const C=this.model.document.getRoot(_);u.insert(this.parse(c[_],C),C,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new it("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const C of Object.keys(u)){const M=this.model.document.getRoot(C);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[C],M),M,0)}})}parse(r,c="$root"){const u=this.processor.toView(r);return this.toModel(u,c)}toModel(r,c="$root"){return this.model.change(u=>this.upcastDispatcher.convert(r,u,c))}addStyleProcessorRules(r){r(this.stylesProcessor)}registerRawContentMatcher(r){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(r),this.htmlProcessor.registerRawContentMatcher(r)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const c of r)if(!this.model.document.getRoot(c))return!1;return!0}}class rc{constructor(r,c){this._helpers=new Map,this._downcast=Ds(r),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ds(c),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,c){const u=this._downcast.includes(c);if(!this._upcast.includes(c)&&!u)throw new it("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new it("conversion-for-unknown-group",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:c,view:u}of sc(r))this.for("upcast").elementToElement({model:c,view:u,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:c,view:u}of sc(r))this.for("upcast").elementToAttribute({view:u,model:c,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:c,view:u}of sc(r))this.for("upcast").attributeToAttribute({view:u,model:c})}_createConversionHelpers({name:r,dispatchers:c,isDowncast:u}){if(this._helpers.has(r))throw new it("conversion-group-exists",this);const _=u?new q6(c):new R6(c);this._helpers.set(r,_)}}function*sc(m){if(m.model.values)for(const r of m.model.values){const c={key:m.model.key,value:r},u=m.view[r],_=m.upcastAlso?m.upcastAlso[r]:void 0;yield*c0(c,u,_)}else yield*c0(m.model,m.view,m.upcastAlso)}function*c0(m,r,c){if(yield{model:m,view:r},c)for(const u of Ds(c))yield{model:m,view:u}}class $u{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r,c){return new this(r.baseVersion)}}function z2(m,r){const c=G_(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;w1(m);const C=m.index;return _._insertChild(C,c),Dp(_,C+c.length),Dp(_,C),new Oi(m,m.getShiftedBy(u))}function rh(m){if(!m.isFlat)throw new it("operation-utils-remove-range-not-flat",this);const r=m.start.parent;w1(m.start),w1(m.end);const c=r._removeChildren(m.start.index,m.end.index-m.start.index);return Dp(r,m.start.index),c}function Jm(m,r){if(!m.isFlat)throw new it("operation-utils-move-range-not-flat",this);const c=rh(m);return z2(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function G_(m){const r=[];!function c(u){if("string"==typeof u)r.push(new ss(u));else if(u instanceof jl)r.push(new ss(u.data,u.getAttributes()));else if(u instanceof Du)r.push(u);else if(nt(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new it("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[C]u._clone(!0))),c=new Jl(this.position,r,this.baseVersion);return c.shouldReceiveAttributes=this.shouldReceiveAttributes,c}getReversed(){const c=new $i(this.position.root.document.graveyard,[0]);return new cr(this.position,this.nodes.maxOffset,c,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetc._clone(!0))),z2(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,c){const u=[];for(const C of r.nodes)u.push(C.name?_s.fromJSON(C):ss.fromJSON(C));const _=new Jl($i.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class _r extends $u{constructor(r,c,u,_,C){super(C),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=c,this.insertionPosition=u,this.graveyardPosition=_?_.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new $i(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Oi(this.splitPosition,r)}get affectedSelectable(){const r=[Oi._createFromPositionAndShift(this.splitPosition,0),Oi._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Oi._createFromPositionAndShift(this.graveyardPosition,0)),r}clone(){return new _r(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const c=new $i(this.splitPosition.root.document.graveyard,[0]);return new Os(this.moveTargetPosition,this.howMany,this.splitPosition,c,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{if(m.key===r.key&&m.range.start.hasSameParentAs(r.range.start)){const u=m.range.getDifference(r.range).map(C=>new Yr(C,m.key,m.oldValue,m.newValue,0)),_=m.range.getIntersection(r.range);return _&&c.aIsStrong&&u.push(new Yr(_,r.key,r.newValue,m.newValue,0)),0==u.length?[new Ys(0)]:u}return[m]}),Pr(Yr,Jl,(m,r)=>{if(m.range.start.hasSameParentAs(r.position)&&m.range.containsPosition(r.position)){const c=m.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(u=>new Yr(u,m.key,m.oldValue,m.newValue,m.baseVersion));if(r.shouldReceiveAttributes){const u=Z1(r,m.key,m.oldValue);u&&c.unshift(u)}return c}return m.range=m.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[m]}),Pr(Yr,Os,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Oi._createFromPositionAndShift(r.graveyardPosition,1));const u=m.range._getTransformedByMergeOperation(r);return u.isCollapsed||c.push(u),c.map(_=>new Yr(_,m.key,m.oldValue,m.newValue,m.baseVersion))}),Pr(Yr,cr,(m,r)=>function(u,_){const C=Oi._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];C.containsRange(u,!0)?M=u:u.start.hasSameParentAs(C.start)?(E=u.getDifference(C),M=u.getIntersection(C)):E=[u];const N=[];for(let j of E){j=j._getTransformedByDeletion(_.sourcePosition,_.howMany);const W=_.getMovedRangeStart(),dt=j.start.hasSameParentAs(W),Zt=j._getTransformedByInsertion(W,_.howMany,dt);N.push(...Zt)}return M&&N.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),N}(m.range,r).map(u=>new Yr(u,m.key,m.oldValue,m.newValue,m.baseVersion))),Pr(Yr,_r,(m,r)=>{if(m.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.range.end.offset++,[m];if(m.range.start.hasSameParentAs(r.splitPosition)&&m.range.containsPosition(r.splitPosition)){const c=m.clone();return c.range=new Oi(r.moveTargetPosition.clone(),m.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),m.range.end=r.splitPosition.clone(),m.range.end.stickiness="toPrevious",[m,c]}return m.range=m.range._getTransformedBySplitOperation(r),[m]}),Pr(Jl,Yr,(m,r)=>{const c=[m];if(m.shouldReceiveAttributes&&m.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(m.position)){const u=Z1(m,r.key,r.newValue);u&&c.push(u)}return c}),Pr(Jl,Jl,(m,r,c)=>(m.position.isEqual(r.position)&&c.aIsStrong||(m.position=m.position._getTransformedByInsertOperation(r)),[m])),Pr(Jl,cr,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Pr(Jl,_r,(m,r)=>(m.position=m.position._getTransformedBySplitOperation(r),[m])),Pr(Jl,Os,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Pr(zr,Jl,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Pr(zr,zr,(m,r,c)=>{if(m.name==r.name){if(!c.aIsStrong)return[new Ys(0)];m.oldRange=r.newRange?r.newRange.clone():null}return[m]}),Pr(zr,Os,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Pr(zr,cr,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Oi._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Oi._createFromRanges(m.newRange._getTransformedByMoveOperation(r));if("left"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.start))return m.newRange.end=u.end,m.newRange.start.path=c.abRelation.path,[m];if("right"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.end))return m.newRange.start=u.start,m.newRange.end.path=c.abRelation.path,[m]}m.newRange=Oi._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Pr(zr,_r,(m,r,c)=>{if(m.oldRange&&(m.oldRange=m.oldRange._getTransformedBySplitOperation(r)),m.newRange){if(c.abRelation){const u=m.newRange._getTransformedBySplitOperation(r);return m.newRange.start.isEqual(r.splitPosition)&&c.abRelation.wasStartBeforeMergedElement?m.newRange.start=$i._createAt(r.insertionPosition):m.newRange.start.isEqual(r.splitPosition)&&!c.abRelation.wasInLeftElement&&(m.newRange.start=$i._createAt(r.moveTargetPosition)),m.newRange.end=m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasInRightElement?$i._createAt(r.moveTargetPosition):m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasEndBeforeMergedElement?$i._createAt(r.insertionPosition):u.end,[m]}m.newRange=m.newRange._getTransformedBySplitOperation(r)}return[m]}),Pr(Os,Jl,(m,r)=>(m.sourcePosition.hasSameParentAs(r.position)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByInsertOperation(r),m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r),[m])),Pr(Os,Os,(m,r,c)=>{if(m.sourcePosition.isEqual(r.sourcePosition)&&m.targetPosition.isEqual(r.targetPosition)){if(c.bWasUndone){const u=r.graveyardPosition.path.slice();return u.push(0),m.sourcePosition=new $i(r.graveyardPosition.root,u),m.howMany=0,[m]}return[new Ys(0)]}if(m.sourcePosition.isEqual(r.sourcePosition)&&!m.targetPosition.isEqual(r.targetPosition)&&!c.bWasUndone&&"splitAtSource"!=c.abRelation){const u="$graveyard"==m.targetPosition.root.rootName,_="$graveyard"==r.targetPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new cr(C,m.howMany,M,0)]}return[new Ys(0)]}return m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMergeOperation(r),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),m.graveyardPosition.isEqual(r.graveyardPosition)&&c.aIsStrong||(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Pr(Os,cr,(m,r,c)=>{const u=Oi._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!c.bWasUndone&&!c.forceWeakRemove&&m.deletionPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.sourcePosition)?[new Ys(0)]:(m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition.hasSameParentAs(r.sourcePosition)&&(m.howMany-=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMoveOperation(r),m.targetPosition=m.targetPosition._getTransformedByMoveOperation(r),m.graveyardPosition.isEqual(r.targetPosition)||(m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)),[m])}),Pr(Os,_r,(m,r,c)=>{if(r.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),m.deletionPosition.isEqual(r.graveyardPosition)&&(m.howMany=r.howMany)),m.targetPosition.isEqual(r.splitPosition)){const u=0!=r.howMany,_=r.graveyardPosition&&m.deletionPosition.isEqual(r.graveyardPosition);if(u||_||"mergeTargetNotMoved"==c.abRelation)return m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),[m]}if(m.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==c.abRelation)return m.howMany=0,m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m];if("mergeSameElement"==c.abRelation||m.sourcePosition.offset>0)return m.sourcePosition=r.moveTargetPosition.clone(),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}return m.sourcePosition.hasSameParentAs(r.splitPosition)&&(m.howMany=r.splitPosition.offset),m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}),Pr(cr,Jl,(m,r)=>{const c=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByInsertOperation(r,!1)[0];return m.sourcePosition=c.start,m.howMany=c.end.offset-c.start.offset,m.targetPosition.isEqual(r.position)||(m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r)),[m]}),Pr(cr,cr,(m,r,c)=>{const u=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Oi._createFromPositionAndShift(r.sourcePosition,r.howMany);let C,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),C=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),n4(m,r)&&n4(r,m))return[r.getReversed()];if(u.containsPosition(r.targetPosition)&&u.containsRange(_,!0))return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),W1([u],C);if(_.containsPosition(m.targetPosition)&&_.containsRange(u,!0))return u.start=u.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),u.end=u.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),W1([u],C);const N=lt(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==N||"extension"==N)return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),W1([u],C);"remove"!=m.type||"remove"==r.type||c.aWasUndone||c.forceWeakRemove?"remove"==m.type||"remove"!=r.type||c.bWasUndone||c.forceWeakRemove||(M=!1):M=!0;const j=[],W=u.getDifference(_);for(const Zt of W){Zt.start=Zt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Zt.end=Zt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const ue="same"==lt(Zt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),xe=Zt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,ue);j.push(...xe)}const dt=u.getIntersection(_);return null!==dt&&M&&(dt.start=dt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),dt.end=dt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===j.length?j.push(dt):1==j.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?j.unshift(dt):j.push(dt):j.splice(1,0,dt)),0===j.length?[new Ys(m.baseVersion)]:W1(j,C)}),Pr(cr,_r,(m,r,c)=>{let u=m.targetPosition.clone();m.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=c.abRelation||(u=m.targetPosition._getTransformedBySplitOperation(r));const _=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany);if(_.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.howMany++,m.targetPosition=u,[m];if(_.start.hasSameParentAs(r.splitPosition)&&_.containsPosition(r.splitPosition)){let M=new Oi(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),W1([new Oi(_.start,r.splitPosition),M],u)}m.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==c.abRelation&&(u=r.moveTargetPosition),m.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==c.abRelation&&(u=m.targetPosition);const C=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&C.push(Oi._createFromPositionAndShift(r.insertionPosition,1))}return W1(C,u)}),Pr(cr,Os,(m,r,c)=>{const u=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany);if(r.deletionPosition.hasSameParentAs(m.sourcePosition)&&u.containsPosition(r.sourcePosition))if("remove"!=m.type||c.forceWeakRemove){if(1==m.howMany)return c.bWasUndone?(m.sourcePosition=r.graveyardPosition.clone(),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]):[new Ys(0)]}else if(!c.aWasUndone){const C=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(C.push(new cr(m.sourcePosition,m.howMany-1,m.targetPosition,0)),M=M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1),E=E._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1));const N=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),j=new cr(M,1,N,0),W=j.getMovedRangeStart().path.slice();W.push(0);const dt=new $i(j.targetPosition.root,W);E=E._getTransformedByMove(M,N,1);const Zt=new cr(E,r.howMany,dt,0);return C.push(j),C.push(Zt),C}const _=Oi._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByMergeOperation(r);return m.sourcePosition=_.start,m.howMany=_.end.offset-_.start.offset,m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]}),Pr(Su,Jl,(m,r)=>(m.position=m.position._getTransformedByInsertOperation(r),[m])),Pr(Su,Os,(m,r)=>m.position.isEqual(r.deletionPosition)?(m.position=r.graveyardPosition.clone(),m.position.stickiness="toNext",[m]):(m.position=m.position._getTransformedByMergeOperation(r),[m])),Pr(Su,cr,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Pr(Su,Su,(m,r,c)=>{if(m.position.isEqual(r.position)){if(!c.aIsStrong)return[new Ys(0)];m.oldName=r.newName}return[m]}),Pr(Su,_r,(m,r)=>{if("same"==lt(m.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const c=new Su(m.position.getShiftedBy(1),m.oldName,m.newName,0);return[m,c]}return m.position=m.position._getTransformedBySplitOperation(r),[m]}),Pr(U1,U1,(m,r,c)=>{if(m.root===r.root&&m.key===r.key){if(!c.aIsStrong||m.newValue===r.newValue)return[new Ys(0)];m.oldValue=r.newValue}return[m]}),Pr(tl,tl,(m,r)=>m.rootName===r.rootName&&m.isAdd===r.isAdd?[new Ys(0)]:[m]),Pr(_r,Jl,(m,r)=>(m.splitPosition.hasSameParentAs(r.position)&&m.splitPosition.offset{if(!m.graveyardPosition&&!c.bWasUndone&&m.splitPosition.hasSameParentAs(r.sourcePosition)){const u=r.graveyardPosition.path.slice();u.push(0);const _=new $i(r.graveyardPosition.root,u),C=_r.getInsertionPosition(new $i(r.graveyardPosition.root,u)),M=new _r(_,0,C,null,0);return m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=_r.getInsertionPosition(m.splitPosition),m.graveyardPosition=M.insertionPosition.clone(),m.graveyardPosition.stickiness="toNext",[M,m]}return m.splitPosition.hasSameParentAs(r.deletionPosition)&&!m.splitPosition.isAfter(r.deletionPosition)&&m.howMany--,m.splitPosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=_r.getInsertionPosition(m.splitPosition),m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Pr(_r,cr,(m,r,c)=>{const u=Oi._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const C=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&C){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),N=E.path.slice();N.push(0);const j=new $i(E.root,N);return[new cr(M,m.howMany,j,0)]}m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)}const _=m.splitPosition.isEqual(r.targetPosition);if(_&&("insertAtSource"==c.baRelation||"splitBefore"==c.abRelation))return m.howMany+=r.howMany,m.splitPosition=m.splitPosition._getTransformedByDeletion(r.sourcePosition,r.howMany),m.insertionPosition=_r.getInsertionPosition(m.splitPosition),[m];if(_&&c.abRelation&&c.abRelation.howMany){const{howMany:C,offset:M}=c.abRelation;return m.howMany+=C,m.splitPosition=m.splitPosition.getShiftedBy(M),[m]}return m.splitPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.splitPosition)?(m.howMany-=r.howMany-(m.splitPosition.offset-r.sourcePosition.offset),m.splitPosition.hasSameParentAs(r.targetPosition)&&m.splitPosition.offset{if(m.splitPosition.isEqual(r.splitPosition)){if(!m.graveyardPosition&&!r.graveyardPosition)return[new Ys(0)];if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition))return[new Ys(0)];if("splitBefore"==c.abRelation)return m.howMany=0,m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r),[m]}if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition)){const u="$graveyard"==m.splitPosition.root.rootName,_="$graveyard"==r.splitPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=[];return r.howMany&&C.push(new cr(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&C.push(new cr(m.splitPosition,m.howMany,m.moveTargetPosition,0)),C}return[new Ys(0)]}if(m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r)),m.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==c.abRelation)return m.howMany++,[m];if(r.splitPosition.isEqual(m.insertionPosition)&&"splitBefore"==c.baRelation){const u=r.insertionPosition.path.slice();u.push(0);const _=new $i(r.insertionPosition.root,u);return[m,new cr(m.insertionPosition,1,_,0)]}return m.splitPosition.hasSameParentAs(r.splitPosition)&&m.splitPosition.offset{const c=r[0];c.isDocumentOperation&&j6.call(this,c)},{priority:"low"})}function j6(m){const r=this.getTransformedByOperation(m);if(!this.isEqual(r)){const c=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",c)}}Ql.prototype.is=function(m){return"livePosition"===m||"model:livePosition"===m||"position"==m||"model:position"===m};class Sp{constructor(r={}){"string"==typeof r&&(r="transparent"===r?{isUndoable:!1}:{},Tt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:C=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=C}get type(){return Tt("batch-type-deprecated"),"default"}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}var hb=Object.defineProperty,o4=Object.defineProperties,gb=Object.getOwnPropertyDescriptors,Wm=Object.getOwnPropertySymbols,l0=Object.prototype.hasOwnProperty,Wd=Object.prototype.propertyIsEnumerable,mm=(m,r,c)=>r in m?hb(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,sh=(m,r)=>{for(var c in r||(r={}))l0.call(r,c)&&mm(m,c,r[c]);if(Wm)for(var c of Wm(r))Wd.call(r,c)&&mm(m,c,r[c]);return m};class a4{constructor(r){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=r}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(r){const c=r;switch(c.type){case"insert":if(this._isInInsertedElement(c.position.parent))return;this._markInsert(c.position.parent,c.position.offset,c.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const u of c.range.getItems({shallow:!0}))this._isInInsertedElement(u.parent)||this._markAttribute(u);break;case"remove":case"move":case"reinsert":{if(c.sourcePosition.isEqual(c.targetPosition)||c.sourcePosition.getShiftedBy(c.howMany).isEqual(c.targetPosition))return;const u=this._isInInsertedElement(c.sourcePosition.parent),_=this._isInInsertedElement(c.targetPosition.parent);u||this._markRemove(c.sourcePosition.parent,c.sourcePosition.offset,c.howMany),_||this._markInsert(c.targetPosition.parent,c.getMovedRangeStart().offset,c.howMany);break}case"rename":{if(this._isInInsertedElement(c.position.parent))return;this._markRemove(c.position.parent,c.position.offset,1),this._markInsert(c.position.parent,c.position.offset,1);const u=Oi._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const C=_.getData();this.bufferMarkerChange(_.name,C,C)}break}case"split":{const u=c.splitPosition.parent;this._isInInsertedElement(u)||this._markRemove(u,c.splitPosition.offset,c.howMany),this._isInInsertedElement(c.insertionPosition.parent)||this._markInsert(c.insertionPosition.parent,c.insertionPosition.offset,1),c.graveyardPosition&&this._markRemove(c.graveyardPosition.parent,c.graveyardPosition.offset,1);break}case"merge":{const u=c.sourcePosition.parent;this._isInInsertedElement(u.parent)||this._markRemove(u.parent,u.startOffset,1),this._markInsert(c.graveyardPosition.parent,c.graveyardPosition.offset,1);const C=c.targetPosition.parent;this._isInInsertedElement(C)||this._markInsert(C,c.targetPosition.offset,u.maxOffset);break}case"detachRoot":case"addRoot":{const u=c.affectedSelectable;if(!u._isLoaded||u.isAttached()==c.isAdd)return;this._bufferRootStateChange(c.rootName,c.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!c.root._isLoaded)return;this._bufferRootAttributeChange(c.root.rootName,c.key,c.oldValue,c.newValue)}this._cachedChanges=null}bufferMarkerChange(r,c,u){c.range&&c.range.root.is("rootElement")&&!c.range.root._isLoaded&&(c.range=null),u.range&&u.range.root.is("rootElement")&&!u.range.root._isLoaded&&(u.range=null);let _=this._changedMarkers.get(r);_?_.newMarkerData=u:(_={newMarkerData:u,oldMarkerData:c},this._changedMarkers.set(r,_)),null==_.oldMarkerData.range&&null==u.range&&this._changedMarkers.delete(r)}getMarkersToRemove(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.oldMarkerData.range&&r.push({name:c,range:u.oldMarkerData.range});return r}getMarkersToAdd(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.newMarkerData.range&&r.push({name:c,range:u.newMarkerData.range});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(([r,c])=>({name:r,data:{oldRange:c.oldMarkerData.range,newRange:c.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:r,oldMarkerData:c}of this._changedMarkers.values()){if(r.affectsData!==c.affectsData)return!0;if(r.affectsData){const u=r.range&&!c.range,_=!r.range&&c.range,C=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||C)return!0}}return!1}getChanges(r={}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let c=[];for(const u of this._changesInElement.keys()){const _=this._changesInElement.get(u).sort((W,dt)=>W.offset===dt.offset?W.type!=dt.type?"remove"==W.type?-1:1:0:W.offsetu.position.root!=_.position.root?u.position.root.rootName<_.position.root.rootName?-1:1:u.position.isEqual(_.position)?u.changeCount-_.changeCount:u.position.isBefore(_.position)?-1:1);for(let u=1,_=0;uu);for(const u of c)delete u.changeCount,"attribute"==u.type&&(delete u.position,delete u.length);return this._changeCount=0,this._cachedChangesWithGraveyard=c,this._cachedChanges=c.filter(vb),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=sh({},r);return void 0!==c.state&&delete c.attributes,c})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(r,c){if(!this._changedRoots.has(r))return void this._changedRoots.set(r,{name:r,state:c?"attached":"detached"});const u=this._changedRoots.get(r);void 0!==u.state?(delete u.state,void 0===u.attributes&&this._changedRoots.delete(r)):u.state=c?"attached":"detached"}_bufferRootAttributeChange(r,c,u,_){const C=this._changedRoots.get(r)||{name:r},M=C.attributes||{};if(M[c]){const E=M[c];_===E.oldValue?delete M[c]:E.newValue=_}else M[c]={oldValue:u,newValue:_};0===Object.entries(M).length?(delete C.attributes,void 0===C.state&&this._changedRoots.delete(r)):(C.attributes=M,this._changedRoots.set(r,C))}_refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize),this._refreshedItems.add(r);const c=Oi._createOn(r);for(const u of this._markerCollection.getMarkersIntersectingRange(c)){const _=u.getData();this.bufferMarkerChange(u.name,_,_)}this._cachedChanges=null}_bufferRootLoad(r){if(r.isAttached()){this._bufferRootStateChange(r.rootName,!0),this._markInsert(r,0,r.maxOffset);for(const u of r.getAttributeKeys())this._bufferRootAttributeChange(r.rootName,u,null,r.getAttribute(u));for(const u of this._markerCollection)if(u.getRange().root==r){const _=u.getData();this.bufferMarkerChange(u.name,(c=sh({},_),o4(c,gb({range:null}))),_)}var c}}_markInsert(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"insert",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_)}_markRemove(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"remove",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_),this._removeAllNestedChanges(r,c,u)}_markAttribute(r){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const c={type:"attribute",offset:r.startOffset,howMany:r.offsetSize,count:this._changeCount++};this._markChange(r.parent,c)}_markChange(r,c){this._makeSnapshot(r);const u=this._getChangesForElement(r);this._handleChange(c,u),u.push(c);for(let _=0;_u.offset){if(_>C){const M={type:"attribute",offset:C,howMany:_-C,count:this._changeCount++};this._handleChange(M,c),c.push(M)}r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=u.offset&&r.offsetC?(r.nodesToHandle=_-C,r.offset=C):r.nodesToHandle=0);if("remove"==u.type&&r.offsetu.offset){const M={type:"attribute",offset:u.offset,howMany:_-u.offset,count:this._changeCount++};this._handleChange(M,c),c.push(M),r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==u.type&&(r.offset>=u.offset&&_<=C?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=C&&(u.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,c,u){return{type:"insert",position:$i._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,c,u){return{type:"remove",position:$i._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,c,u){const _=[];u=new Map(u);for(const[C,M]of c){const E=u.has(C)?u.get(C):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(C)}for(const[C,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:null,attributeNewValue:M,changeCount:this._changeCount++});return _}_isInInsertedElement(r){const c=r.parent;if(!c)return!1;const u=this._changesInElement.get(c),_=r.startOffset;if(u)for(const C of u)if("insert"==C.type&&_>=C.offset&&_u){for(let M=0;Mthis._version+1&&this._gaps.set(this._version,r),this._version=r}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(r){if(r.baseVersion!==this.version)throw new it("model-document-history-addoperation-incorrect-version",this,{operation:r,historyVersion:this.version});this._operations.push(r),this._version++,this._baseVersionToOperationIndex.set(r.baseVersion,this._operations.length-1)}getOperations(r,c=this.version){if(!this._operations.length)return[];const u=this._operations[0];void 0===r&&(r=u.baseVersion);let _=c-1;for(const[E,N]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let C=this._baseVersionToOperationIndex.get(r);void 0===C&&(C=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(C,M+1)}getOperation(r){const c=this._baseVersionToOperationIndex.get(r);if(void 0!==c)return this._operations[c]}setOperationAsUndone(r,c){this._undoPairs.set(c,r),this._undoneOperations.add(r)}isUndoingOperation(r){return this._undoPairs.has(r)}isUndoneOperation(r){return this._undoneOperations.has(r)}getUndoneOperation(r){return this._undoPairs.get(r)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class el extends _s{constructor(r,c,u="main"){super(c),this._isAttached=!0,this._isLoaded=!0,this._document=r,this.rootName=u}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}el.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m):"rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m||"node"===m||"model:node"===m};var Td=Object.defineProperty,J6=Object.defineProperties,bb=Object.getOwnPropertyDescriptors,Lp=Object.getOwnPropertySymbols,B2=Object.prototype.hasOwnProperty,_m=Object.prototype.propertyIsEnumerable,lh=(m,r,c)=>r in m?Td(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,fm=(m,r)=>{for(var c in r||(r={}))B2.call(r,c)&&lh(m,c,r[c]);if(Lp)for(var c of Lp(r))_m.call(r,c)&&lh(m,c,r[c]);return m},V2=(m,r)=>J6(m,bb(r));const uh="$graveyard";class Q6 extends(Le()){constructor(r){super(),this.model=r,this.history=new G6,this.selection=new Qu(this),this.roots=new tc({idProperty:"rootName"}),this.differ=new a4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",uh),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.differ.bufferOperation(_)},{priority:"high"}),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.history.addOperation(_)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(c,u,_,C,M)=>{const E=V2(fm({},u.getData()),{range:C});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(N,j)=>{const W=u.getData();this.differ.bufferMarkerChange(u.name,V2(fm({},W),{range:j}),W)})}),this.registerPostFixer(c=>{let u=!1;for(const _ of this.roots)_.isAttached()||_.isEmpty||(c.remove(c.createRangeIn(_)),u=!0);for(const _ of this.model.markers)_.getRange().root.isAttached()||(c.removeMarker(_),u=!0);return u})}get version(){return this.history.version}set version(r){this.history.version=r}get graveyard(){return this.getRoot(uh)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new it("model-document-createroot-name-exists",this,{name:c});const u=new el(this,r,c);return this.roots.add(u),u}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(r=!1){return this.getRoots(r).map(c=>c.rootName)}getRoots(r=!1){return Array.from(this.roots).filter(c=>c!=this.graveyard&&(r||c.isAttached())&&c._isLoaded)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Mi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const r=this.getRoots();return r.length?r[0]:this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),c=this.model,u=c.schema,_=c.createPositionFromPath(r,[0]);return u.getNearestSelectionRange(_)||c.createRange(_)}_validateSelectionRange(r){return $1(r.start)&&$1(r.end)}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(this.selection.refresh(),c=u(r),c)break}while(c)}}function $1(m){const r=m.textNode;if(r){const c=r.data,u=m.offset-r.startOffset;return!cn(c,u)&&!fd(c,u)}return!0}var dh=Object.defineProperty,u0=Object.defineProperties,W6=Object.getOwnPropertyDescriptors,d0=Object.getOwnPropertySymbols,ph=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable,K1=(m,r,c)=>r in m?dh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Q_ extends(Le()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r instanceof Op?r.name:r)}get(r){return this._markers.get(r)||null}_set(r,c,u=!1,_=!1){const C=r instanceof Op?r.name:r;if(C.includes(","))throw new it("markercollection-incorrect-marker-name",this);const M=this._markers.get(C);if(M){const W=M.getData(),dt=M.getRange();let Zt=!1;return dt.isEqual(c)||(M._attachLiveRange(Ad.fromRange(c)),Zt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Zt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Zt=!0),Zt&&this.fire(`update:${C}`,M,dt,c,W),M}const E=Ad.fromRange(c),N=new Op(C,E,u,_);var j;return this._markers.set(C,N),this.fire(`update:${C}`,N,null,c,(j=((W,dt)=>{for(var Zt in dt||(dt={}))ph.call(dt,Zt)&&K1(W,Zt,dt[Zt]);if(d0)for(var Zt of d0(dt))$6.call(dt,Zt)&&K1(W,Zt,dt[Zt]);return W})({},N.getData()),u0(j,W6({range:null})))),N}_remove(r){const c=r instanceof Op?r.name:r,u=this._markers.get(c);return!!u&&(this._markers.delete(c),this.fire(`update:${c}`,u,u.getRange(),null,u.getData()),this._destroyMarker(u),!0)}_refresh(r){const c=r instanceof Op?r.name:r,u=this._markers.get(c);if(!u)throw new it("markercollection-refresh-marker-not-exists",this);const _=u.getRange();this.fire(`update:${c}`,u,_,_,u.getData())}*getMarkersAtPosition(r){for(const c of this)c.getRange().containsPosition(r)&&(yield c)}*getMarkersIntersectingRange(r){for(const c of this)null!==c.getRange().getIntersection(r)&&(yield c)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const c of this._markers.values())c.name.startsWith(r+":")&&(yield c)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}class Op extends(Le(Kc)){constructor(r,c,u,_){super(),this.name=r,this._liveRange=this._attachLiveRange(c),this._managedUsingOperations=u,this._affectsData=_}get managedUsingOperations(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new it("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Op.prototype.is=function(m){return"marker"===m||"model:marker"===m};class hm extends $u{constructor(r,c){super(null),this.sourcePosition=r.clone(),this.howMany=c}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const r=super.toJSON();return r.sourcePosition=this.sourcePosition.toJSON(),r}_validate(){if(this.sourcePosition.root.document)throw new it("detach-operation-on-document-node",this)}_execute(){rh(Oi._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class M1 extends Kc{constructor(r){super(),this.markers=new Map,this._children=new E_,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const c of this._children)r.push(c.toJSON());return r}static fromJSON(r){const c=[];for(const u of r)c.push(u.name?_s.fromJSON(u):ss.fromJSON(u));return new M1(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(nt(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new ss(C):C instanceof jl?new ss(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}}M1.prototype.is=function(m){return"documentFragment"===m||"model:documentFragment"===m};class gm{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new ss(r,c)}createElement(r,c){return new _s(r,c)}createDocumentFragment(){return new M1}cloneElement(r,c=!0){return r._clone(c)}insert(r,c,u=0){if(this._assertWriterUsedCorrectly(),r instanceof ss&&""==r.data)return;const _=$i._createAt(c,u);if(r.parent){if(_h(r.root,_.root))return void this.move(Oi._createOn(r),_);if(r.root.document)throw new it("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new Jl(_,r,_.root.document?_.root.document.version:null);if(r instanceof ss&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof M1)for(const[E,N]of r.markers){const j=$i._createAt(N.root,0),W={range:new Oi(N.start._getCombined(j,_),N.end._getCombined(j,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,W):this.addMarker(E,W)}}insertText(r,c,u,_){c instanceof M1||c instanceof _s||c instanceof $i?this.insert(this.createText(r),c,u):this.insert(this.createText(r,c),u,_)}insertElement(r,c,u,_){c instanceof M1||c instanceof _s||c instanceof $i?this.insert(this.createElement(r),c,u):this.insert(this.createElement(r,c),u,_)}append(r,c){this.insert(r,c,"end")}appendText(r,c,u){c instanceof M1||c instanceof _s?this.insert(this.createText(r),c,"end"):this.insert(this.createText(r,c),u,"end")}appendElement(r,c,u){c instanceof M1||c instanceof _s?this.insert(this.createElement(r),c,"end"):this.insert(this.createElement(r,c),u,"end")}setAttribute(r,c,u){if(this._assertWriterUsedCorrectly(),u instanceof Oi){const _=u.getMinimalFlatRanges();for(const C of _)mh(this,r,c,C)}else j2(this,r,c,u)}setAttributes(r,c){for(const[u,_]of Jc(r))this.setAttribute(u,_,c)}removeAttribute(r,c){if(this._assertWriterUsedCorrectly(),c instanceof Oi){const u=c.getMinimalFlatRanges();for(const _ of u)mh(this,r,null,_)}else j2(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Oi)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Oi))throw new it("writer-move-invalid-range",this);if(!r.isFlat)throw new it("writer-move-range-not-flat",this);const _=$i._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!_h(r.root,_.root))throw new it("writer-move-different-document",this);const M=new cr(r.start,r.end.offset-r.start.offset,_,r.root.document?r.root.document.version:null);this.batch.addOperation(M),this.model.applyOperation(M)}remove(r){this._assertWriterUsedCorrectly();const c=(r instanceof Oi?r:Oi._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),p0(u.start,u.end.offset-u.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const c=r.nodeBefore,u=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(c instanceof _s))throw new it("writer-merge-no-element-before",this);if(!(u instanceof _s))throw new it("writer-merge-no-element-after",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,c,u){return this.model.createPositionFromPath(r,c,u)}createPositionAt(r,c){return this.model.createPositionAt(r,c)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,c){return this.model.createRange(r,c)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(...r){return this.model.createSelection(...r)}_mergeDetached(r){const c=r.nodeBefore,u=r.nodeAfter;this.move(Oi._createIn(u),$i._createAt(c,"end")),this.remove(u)}_merge(r){const c=$i._createAt(r.nodeBefore,"end"),u=$i._createAt(r.nodeAfter,0),C=new $i(r.root.document.graveyard,[0]),E=new Os(u,r.nodeAfter.maxOffset,c,C,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof _s))throw new it("writer-rename-not-element-instance",this);const u=r.root.document?r.root.document.version:null,_=new Su($i._createBefore(r),r.name,c,u);this.batch.addOperation(_),this.model.applyOperation(_)}split(r,c){this._assertWriterUsedCorrectly();let u,_,C=r.parent;if(!C.parent)throw new it("writer-split-element-no-parent",this);if(c||(c=C.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new it("writer-split-invalid-limit-element",this);do{const M=C.root.document?C.root.document.version:null,E=C.maxOffset-r.offset,N=_r.getInsertionPosition(r),j=new _r(r,E,N,null,M);this.batch.addOperation(j),this.model.applyOperation(j),u||_||(u=C,_=r.parent.nextSibling),C=(r=this.createPositionAfter(r.parent)).parent}while(C!==c);return{position:r,range:new Oi($i._createAt(u,"end"),$i._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new it("writer-wrap-range-not-flat",this);const u=c instanceof _s?c:new _s(c);if(u.childCount>0)throw new it("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new it("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Oi(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,$i._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new it("writer-unwrap-element-no-parent",this);this.move(Oi._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new it("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,C=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new it("writer-addmarker-marker-exists",this);if(!_)throw new it("writer-addmarker-no-range",this);return u?(vm(this,r,null,_,C),this.model.markers.get(r)):this.model.markers._set(r,_,u,C)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new it("writer-updatemarker-marker-not-exists",this);if(!c)return Tt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const C="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!C&&!c.range&&!M)throw new it("writer-updatemarker-wrong-options",this);const N=_.getRange(),j=c.range?c.range:N;C&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?vm(this,u,null,j,E):(vm(this,u,N,null,E),this.model.markers._set(u,j,void 0,E)):_.managedUsingOperations?vm(this,u,N,j,E):this.model.markers._set(u,j,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new it("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?vm(this,c,u.getRange(),null,u.affectsData):this.model.markers._remove(c)}addRoot(r,c="$root"){this._assertWriterUsedCorrectly();const u=this.model.document.getRoot(r);if(u&&u.isAttached())throw new it("writer-addroot-root-exists",this);const _=this.model.document,C=new tl(r,c,!0,_,_.version);return this.batch.addOperation(C),this.model.applyOperation(C),this.model.document.getRoot(r)}detachRoot(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?this.model.document.getRoot(r):r;if(!c||!c.isAttached())throw new it("writer-detachroot-no-root",this);for(const C of this.model.markers)C.getRange().root===c&&this.removeMarker(C);for(const C of c.getAttributeKeys())this.removeAttribute(C,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new tl(c.rootName,c.name,!1,u,u.version);this.batch.addOperation(_),this.model.applyOperation(_)}setSelection(...r){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...r)}setSelectionFocus(r,c){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,c)}setSelectionAttribute(r,c){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,c);else for(const[u,_]of Jc(r))this._setSelectionAttribute(u,_)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const c of r)this._removeSelectionAttribute(c)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,c){const u=this.model.document.selection;if(u.isCollapsed&&u.anchor.parent.isEmpty){const _=Qu._getStoreAttributeKey(r);this.setAttribute(_,c,u.anchor.parent)}u._setAttribute(r,c)}_removeSelectionAttribute(r){const c=this.model.document.selection;if(c.isCollapsed&&c.anchor.parent.isEmpty){const u=Qu._getStoreAttributeKey(r);this.removeAttribute(u,c.anchor.parent)}c._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new it("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let C=!1;if("move"===r){const M=c;C=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const N=c.nodeAfter,W=_.end.parent==N&&0==_.end.offset,dt=_.end.nodeAfter==N,Zt=_.start.nodeAfter==N;C=_.start.parent==c.nodeBefore&&_.start.isAtEnd||W||dt||Zt}C&&this.updateMarker(u.name,{range:_})}}}function mh(m,r,c,u){const _=m.model,C=_.document;let M,E,N,j=u.start;for(const dt of u.getWalker({shallow:!0}))N=dt.item.getAttribute(r),M&&E!=N&&(E!=c&&W(),j=M),M=dt.nextPosition,E=N;function W(){const dt=new Oi(j,M),ue=new Yr(dt,r,E,c,dt.root.document?C.version:null);m.batch.addOperation(ue),_.applyOperation(ue)}M instanceof $i&&M!=j&&E!=c&&W()}function j2(m,r,c,u){const _=m.model,C=_.document,M=u.getAttribute(r);let E,N;M!=c&&(u.root===u?N=new U1(u,r,M,c,u.document?C.version:null):(E=new Oi($i._createBefore(u),m.createPositionAfter(u)),N=new Yr(E,r,M,c,E.root.document?C.version:null)),m.batch.addOperation(N),_.applyOperation(N))}function vm(m,r,c,u,_){const C=m.model,E=new zr(r,c,u,C.markers,!!_,C.document.version);m.batch.addOperation(E),C.applyOperation(E)}function p0(m,r,c,u){let _;if(m.root.document){const C=u.document,M=new $i(C.graveyard,[0]);_=new cr(m,r,M,C.version)}else _=new hm(m,r);c.addOperation(_),u.applyOperation(_)}function _h(m,r){return m===r||m instanceof el&&r instanceof el}function m0(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(C=>{if(!c.doNotResetEntireContent&&function(j,W){const dt=j.getLimitElement(W);if(!W.containsEntireContent(dt))return!1;const Zt=W.getFirstRange();return Zt.start.parent!=Zt.end.parent&&j.checkChild(dt,"paragraph")}(_,r))return void function(j,W){const dt=j.model.schema.getLimitElement(W);j.remove(j.createRangeIn(dt)),fh(j,j.createPositionAt(dt,0),W)}(C,r);const M={};if(!c.doNotAutoparagraph){const j=r.getSelectedElement();j&&Object.assign(M,_.getAttributesWithProperty(j,"copyOnReplace",!0))}const[E,N]=function(j){const W=j.root.document.model,dt=j.start;let Zt=j.end;if(W.hasContent(j,{ignoreMarkers:!0})){const ue=function(xe){const Ee=xe.parent,ln=Ee.root.document.model.schema,Mn=Ee.getAncestors({parentFirst:!0,includeSelf:!0});for(const di of Mn){if(ln.isLimit(di))return null;if(ln.isBlock(di))return di}}(Zt);if(ue&&Zt.isTouching(W.createPositionAt(ue,0))){const xe=W.createSelection(j);W.modifySelection(xe,{direction:"backward"});const Ee=xe.getLastPosition(),ln=W.createRange(Ee,Zt);W.hasContent(ln,{ignoreMarkers:!0})||(Zt=Ee)}}return[Ql.fromPosition(dt,"toPrevious"),Ql.fromPosition(Zt,"toNext")]}(u);E.isTouching(N)||C.remove(C.createRange(E,N)),c.leaveUnmerged||(function(j,W,dt){const Zt=j.model;if(!_0(j.model.schema,W,dt))return;const[ue,xe]=function(Ee,ln){const Mn=Ee.getAncestors(),di=ln.getAncestors();let Ri=0;for(;Mn[Ri]&&Mn[Ri]==di[Ri];)Ri++;return[Mn[Ri],di[Ri]]}(W,dt);!ue||!xe||(!Zt.hasContent(ue,{ignoreMarkers:!0})&&Zt.hasContent(xe,{ignoreMarkers:!0})?K6(j,W,dt,ue.parent):r4(j,W,dt,ue.parent))}(C,E,N),_.removeDisallowedAttributes(E.parent.getChildren(),C)),f0(C,r,E),!c.doNotAutoparagraph&&function(j,W){const dt=j.checkChild(W,"$text"),Zt=j.checkChild(W,"paragraph");return!dt&&Zt}(_,E)&&fh(C,E,r,M),E.detach(),N.detach()})}function r4(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(C,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}_0(m.model.schema,r,c)&&r4(m,r,c,u)}}function K6(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(C),function(M,E){const N=E.nodeBefore,j=E.nodeAfter;N.name!=j.name&&M.rename(N,j.name),M.clearAttributes(N),M.setAttributes(Object.fromEntries(j.getAttributes()),N),M.merge(E)}(m,c),_0(m.model.schema,r,c)&&K6(m,r,c,u)}}function _0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(C,M,E){const N=new Oi(C,M);for(const j of N.getWalker())if(E.isLimit(j.item))return!1;return!0}(r,c,m)}function fh(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),f0(m,c,m.createPositionAt(_,0))}function f0(m,r,c){r instanceof Qu?m.setSelection(c):r.setTo(c)}function hh(m,r){const c=[];Array.from(m.getItems({direction:"backward"})).map(u=>r.createRangeOn(u)).filter(u=>(u.start.isAfter(m.start)||u.start.isEqual(m.start))&&(u.end.isBefore(m.end)||u.end.isEqual(m.end))).forEach(u=>{c.push(u.start.parent),r.remove(u)}),c.forEach(u=>{let _=u;for(;_.parent&&_.isEmpty;){const C=r.createRangeOn(_);_=_.parent,r.remove(C)}})}class h0{constructor(r,c,u){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=r,this.writer=c,this.position=u,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._documentFragment=c.createDocumentFragment(),this._documentFragmentPosition=c.createPositionAt(this._documentFragment,0)}handleNodes(r){for(const c of Array.from(r))this._handleNode(c);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(r){const c=this.writer.createPositionAfter(this._lastNode),u=this.writer.createPositionAfter(r);if(u.isAfter(c)){if(this._lastNode=r,this.position.parent!=r||!this.position.isAtEnd)throw new it("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Oi._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Oi(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(r){if(this.schema.isObject(r))return void this._handleObject(r);let c=this._checkAndAutoParagraphToAllowedPosition(r);c||(c=this._checkAndSplitToAllowedPosition(r),c)?(this._appendToFragment(r),this._firstNode||(this._firstNode=r),this._lastNode=r):this._handleDisallowedNode(r)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const r=Ql.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=r.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=r.toPosition(),r.detach()}_handleObject(r){this._checkAndSplitToAllowedPosition(r)?this._appendToFragment(r):this._tryAutoparagraphing(r)}_handleDisallowedNode(r){r.is("element")?this.handleNodes(r.getChildren()):this._tryAutoparagraphing(r)}_appendToFragment(r){if(!this.schema.checkChild(this.position,r))throw new it("insertcontent-wrong-position",this,{node:r,position:this.position});this.writer.insert(r,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(r.offsetSize),this._nodeToSelect=this.schema.isObject(r)&&!this.schema.checkChild(this.position,"$text")?r:null,this._filterAttributesOf.push(r)}_setAffectedBoundaries(r){this._affectedStart||(this._affectedStart=Ql.fromPosition(r,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(r)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Ql.fromPosition(r,"toNext"))}_mergeOnLeft(){const r=this._firstNode;if(!(r instanceof _s&&this._canMergeLeft(r)))return;const c=Ql._createBefore(r);c.stickiness="toNext";const u=Ql.fromPosition(this.position,"toNext");this._affectedStart.isEqual(c)&&(this._affectedStart.detach(),this._affectedStart=Ql._createAt(c.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Ql._createAt(c.nodeBefore,"end","toNext")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_mergeOnRight(){const r=this._lastNode;if(!(r instanceof _s&&this._canMergeRight(r)))return;const c=Ql._createAfter(r);if(c.stickiness="toNext",!this.position.isEqual(c))throw new it("insertcontent-invalid-insertion-position",this);this.position=$i._createAt(c.nodeBefore,"end");const u=Ql.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(c)&&(this._affectedEnd.detach(),this._affectedEnd=Ql._createAt(c.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Ql._createAt(c.nodeBefore,0,"toPrevious")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_canMergeLeft(r){const c=r.previousSibling;return c instanceof _s&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(c,r)}_canMergeRight(r){const c=r.nextSibling;return c instanceof _s&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(r,c)}_tryAutoparagraphing(r){const c=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,c)&&this.schema.checkChild(c,r)&&(c._appendChild(r),this._handleNode(c))}_checkAndAutoParagraphToAllowedPosition(r){if(this.schema.checkChild(this.position.parent,r))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",r))return!1;this._insertPartialFragment();const c=this.writer.createElement("paragraph");return this.writer.insert(c,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=c,this.position=this.writer.createPositionAt(c,0),!0}_checkAndSplitToAllowedPosition(r){const c=this._getAllowedIn(this.position.parent,r);if(!c)return!1;for(c!=this.position.parent&&this._insertPartialFragment();c!=this.position.parent;)if(this.position.isAtStart){const u=this.position.parent;this.position=this.writer.createPositionBefore(u),u.isEmpty&&u.parent===c&&this.writer.remove(u)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const u=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=u,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(r,c){return this.schema.checkChild(r,c)?r:this.schema.isLimit(r)?null:this._getAllowedIn(r.parent,c)}}function G2(m,r,c="auto"){const u=m.getSelectedElement();if(u&&r.schema.isObject(u)&&!r.schema.isInline(u))return"before"==c||"after"==c?r.createRange(r.createPositionAt(u,c)):r.createRangeOn(u);const _=os(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const C=r.createPositionAfter(_);return m.focus.isTouching(C)?r.createRange(C):r.createRange(r.createPositionBefore(_))}function s4(m,r){const{isForward:c,walker:u,unit:_,schema:C,treatEmojiAsSingleUnit:M}=m,{type:E,item:N,nextPosition:j}=r;if("text"==E)return"word"===m.unit?function(W,dt){let Zt=W.position.textNode;for(Zt||(Zt=dt?W.position.nodeAfter:W.position.nodeBefore);Zt&&Zt.is("$text");){const ue=W.position.offset-Zt.startOffset;if(cs(Zt,ue,dt))Zt=dt?W.position.nodeAfter:W.position.nodeBefore;else{if(t5(Zt.data,ue,dt))break;W.next()}}return W.position}(u,c):function(W,dt,Zt){const ue=W.position.textNode;if(ue){const xe=ue.data;let Ee=W.position.offset-ue.startOffset;for(;cn(xe,Ee)||"character"==dt&&fd(xe,Ee)||Zt&&Ml(xe,Ee);)W.next(),Ee=W.position.offset-ue.startOffset}return W.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(C.isSelectable(N))return $i._createAt(N,c?"after":"before");if(C.checkChild(j,"$text"))return j}else{if(C.isLimit(N))return void u.skip(()=>!0);if(C.checkChild(j,"$text"))return j}}function X6(m,r){const u=$i._createAt(m.root,r?"end":0);return r?new Oi(m,u):new Oi(u,m)}function t5(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function cs(m,r,c){return r===(c?m.offsetSize:0)}class J2 extends(we()){constructor(){super(),this.markers=new Q_,this.document=new Q6(this),this.schema=new H6,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,c)=>{c[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((r,c)=>{if("$marker"===c.name)return!0}),function a0(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,C=u.schema,M=[];let E=!1;for(const N of _.getRanges()){const j=Va(N,C);j&&!j.isEqual(N)?(M.push(j),E=!0):M.push(N)}return E&&c.setSelection(function(N){const j=[...N],W=new Set;let dt=1;for(;dt!W.has(ue))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(I2),this.on("insertContent",(r,[c,u])=>{var _,C,M;r.return=(C=c,M=u,(_=this).change(E=>{const N=M||_.document.selection;N.isCollapsed||_.deleteContent(N,{doNotAutoparagraph:!0});const j=new h0(_,E,N.anchor),W=[];let dt;if(C.is("documentFragment")){if(C.markers.size){const xe=[];for(const[Ee,ln]of C.markers){const{start:Mn,end:di}=ln,Ri=Mn.isEqual(di);xe.push({position:Mn,name:Ee,isCollapsed:Ri},{position:di,name:Ee,isCollapsed:Ri})}xe.sort(({position:Ee},{position:ln})=>Ee.isBefore(ln)?1:-1);for(const{position:Ee,name:ln,isCollapsed:Mn}of xe){let di=null,Ri=null;const Jo=Ee.parent===C&&Ee.isAtStart,Da=Ee.parent===C&&Ee.isAtEnd;Jo||Da?Mn&&(Ri=Jo?"start":"end"):(di=E.createElement("$marker"),E.insert(di,Ee)),W.push({name:ln,element:di,collapsed:Ri})}}dt=C.getChildren()}else dt=[C];j.handleNodes(dt);let Zt=j.getSelectionRange();if(C.is("documentFragment")&&W.length){const xe=Zt?Ad.fromRange(Zt):null,Ee={};for(let ln=W.length-1;ln>=0;ln--){const{name:Mn,element:di,collapsed:Ri}=W[ln],Jo=!Ee[Mn];if(Jo&&(Ee[Mn]=[]),di){const Da=E.createPositionAt(di,"before");Ee[Mn].push(Da),E.remove(di)}else{const Da=j.getAffectedRange();if(!Da){Ri&&Ee[Mn].push(j.position);continue}Ee[Mn].push(Ri?Da[Ri]:Jo?Da.start:Da.end)}}for(const[ln,[Mn,di]]of Object.entries(Ee))Mn&&di&&Mn.root===di.root&&E.addMarker(ln,{usingOperation:!0,affectsData:!0,range:new Oi(Mn,di)});xe&&(Zt=xe.toRange(),xe.detach())}Zt&&(N instanceof Qu?E.setSelection(Zt):N.setTo(Zt));const ue=j.getAffectedRange()||_.createRange(N.anchor);return j.destroy(),ue}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function Ku(m,r,c,u={}){if(!m.schema.isObject(r))throw new it("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let C=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(C=m.createSelection(G2(_,m,u.findOptimalPosition)));const M=os(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(N=>{C.isCollapsed||m.deleteContent(C,{doNotAutoparagraph:!0});let j=r;const W=C.anchor.parent;!m.schema.checkChild(W,r)&&m.schema.checkChild(W,"paragraph")&&m.schema.checkChild("paragraph",r)&&(j=N.createElement("paragraph"),N.insert(r,j)),m.schema.setAllowedAttributes(j,E,N);const dt=m.insertContent(j,C);return dt.isCollapsed||u.setSelection&&function(Zt,ue,xe,Ee){const ln=Zt.model;if("on"==xe)return void Zt.setSelection(ue,"on");if("after"!=xe)throw new it("insertobject-invalid-place-parameter-value",ln);let Mn=ue.nextSibling;ln.schema.isInline(ue)?Zt.setSelection(ue,"after"):(!(Mn&&ln.schema.checkChild(Mn,"$text"))&&ln.schema.checkChild(ue.parent,"paragraph")&&(Mn=Zt.createElement("paragraph"),ln.schema.setAllowedAttributes(Mn,Ee,Zt),ln.insertContent(Mn,Zt.createPositionAfter(ue))),Mn&&Zt.setSelection(Mn,0))}(N,r,u.setSelection,E),dt})}(this,c,u,_)}),this.on("canEditAt",r=>{const c=!this.document.isReadOnly;r.return=c,c||r.stop()})}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Sp,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(c){it.rethrowUnexpectedError(c,this)}}enqueueChange(r,c){try{r?"function"==typeof r?(c=r,r=new Sp):r instanceof Sp||(r=new Sp(r)):r=new Sp,this._pendingChanges.push({batch:r,callback:c}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(u){it.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const C=g0(c,u);return this.fire("insertContent",[r,C,u,..._])}insertObject(r,c,u,_,...C){const M=g0(c,u);return this.fire("insertObject",[r,M,_,_,...C])}deleteContent(r,c){m0(this,r,c)}modifySelection(r,c){!function(u,_,C={}){const M=u.schema,E="backward"!=C.direction,N=C.unit?C.unit:"character",j=!!C.treatEmojiAsSingleUnit,dt=new Jd({boundaries:X6(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Zt={walker:dt,schema:M,isForward:E,unit:N,treatEmojiAsSingleUnit:j};let ue;for(;ue=dt.next();){if(ue.done)return;const xe=s4(Zt,ue.value);if(xe)return void(_ instanceof Qu?u.change(Ee=>{Ee.setSelectionFocus(xe)}):_.setFocus(xe))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const C=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return C;const E=M.start.root,N=M.start.getCommonPath(M.end),j=E.getNodeByPath(N);let W;W=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(j,M.start.path[N.length]),_.createPositionAt(j,M.end.path[N.length]+1));const dt=W.end.offset-W.start.offset;for(const Zt of W.getItems({shallow:!0}))Zt.is("$textProxy")?_.appendText(Zt.data,Zt.getAttributes(),C):_.append(_.cloneElement(Zt,!0),C);if(W!=M){const Zt=M._getTransformedByMove(W.start,_.createPositionAt(C,0),dt)[0],ue=_.createRange(_.createPositionAt(C,0),Zt.start);hh(_.createRange(Zt.end,_.createPositionAt(C,"end")),_),hh(ue,_)}return C});var u}hasContent(r,c={}){const u=r instanceof Oi?r:Oi._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:C=!1}=c;if(!C)for(const M of this.markers.getMarkersIntersectingRange(u))if(M.affectsData)return!0;for(const M of u.getItems())if(this.schema.isContent(M)&&(!M.is("$textProxy")||!_||-1!==M.data.search(/\S/)))return!0;return!1}canEditAt(r){const c=g0(r);return this.fire("canEditAt",[c])}createPositionFromPath(r,c,u){return new $i(r,c,u)}createPositionAt(r,c){return $i._createAt(r,c)}createPositionAfter(r){return $i._createAfter(r)}createPositionBefore(r){return $i._createBefore(r)}createRange(r,c){return new Oi(r,c)}createRangeIn(r){return Oi._createIn(r)}createRangeOn(r){return Oi._createOn(r)}createSelection(...r){return new Ju(...r)}createBatch(r){return new Sp(r)}createOperationFromJSON(r){return class uu{static fromJSON(r,c){return Lu[r.__className].fromJSON(r,c)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new gm(this,this._pendingChanges[0].batch);const u=this._pendingChanges[0].callback(this._currentWriter);r.push(u),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return r}}function g0(m,r){if(m)return m instanceof Ju||m instanceof Qu?m:m instanceof Du?r||0===r?new Ju(m,r):m.is("rootElement")?new Ju(m,"in"):new Ju(m,"on"):new Ju(m)}class c4 extends Gd{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class vh extends Gd{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(r){this.fire(r.type,r)}}class X1{constructor(r){this.document=r}createDocumentFragment(r){return new g1(this.document,r)}createElement(r,c,u){return new Qc(this.document,r,c,u)}createText(r){return new Eo(this.document,r)}clone(r,c=!1){return r._clone(c)}appendChild(r,c){return c._appendChild(r)}insertChild(r,c,u){return u._insertChild(r,c)}removeChildren(r,c,u){return u._removeChildren(r,c)}remove(r){const c=r.parent;return c?this.removeChildren(c.getChildIndex(r),1,c):[]}replace(r,c){const u=r.parent;if(u){const _=u.getChildIndex(r);return this.removeChildren(_,1,u),this.insertChild(_,c,u),!0}return!1}unwrapElement(r){const c=r.parent;if(c){const u=c.getChildIndex(r);this.remove(r),this.insertChild(u,r.getChildren(),c)}}rename(r,c){const u=new Qc(this.document,r,c.getAttributes(),c.getChildren());return this.replace(c,u)?u:null}setAttribute(r,c,u){u._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,u){Xe(r)&&void 0===u?c._setStyle(r):u._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,u){u._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}createPositionAt(r,c){return Zo._createAt(r,c)}createPositionAfter(r){return Zo._createAfter(r)}createPositionBefore(r){return Zo._createBefore(r)}createRange(r,c){return new Xo(r,c)}createRangeOn(r){return Xo._createOn(r)}createRangeIn(r){return Xo._createIn(r)}createSelection(...r){return new Cd(...r)}}class e5{constructor(){this._commands=new Map}add(r,c){this._commands.set(r,c)}get(r){return this._commands.get(r)}execute(r,...c){const u=this.get(r);if(!u)throw new it("commandcollection-command-not-found",this,{commandName:r});return u.execute(...c)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class l4 extends(we()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new v2({language:r.language||c.defaultConfig&&c.defaultConfig.language}),this._context._addEditor(this,!r.context);const _=Array.from(c.builtinPlugins||[]);this.config=new er(r,c.defaultConfig),this.config.define("plugins",_),this.config.define(this._context._getEditorConfig()),this.plugins=new Df(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new e5,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new J2,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const C=new kg;this.data=new j_(this.model,C),this.editing=new X3(this.model,C),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new rc([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Kp(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(r){throw new it("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new it("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)||(this._readOnlyLocks.add(r),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new it("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)&&(this._readOnlyLocks.delete(r),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const r=this.config,c=r.get("plugins"),u=r.get("removePlugins")||[],_=r.get("extraPlugins")||[],C=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,C)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(c=>this.once("ready",c))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(r,...c){try{return this.commands.execute(r,...c)}catch(u){it.rethrowUnexpectedError(u,this)}}focus(){this.editing.view.focus()}static create(...r){throw new Error("This is an abstract method.")}}function W_(m){return class extends m{setData(r){this.data.set(r)}getData(r){return this.data.get(r)}}}{const m=W_(Object);W_.setData=m.prototype.setData,W_.getData=m.prototype.getData}function Q2(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new it("editor-missing-sourceelement",this);const c=this.config.get("updateSourceElementOnDestroy"),u=this.sourceElement instanceof HTMLTextAreaElement;!function wi(m,r){m instanceof HTMLTextAreaElement&&(m.value=r),m.innerHTML=r}(this.sourceElement,c||u?r:"")}}}Q2.updateSourceElement=Q2(Object).prototype.updateSourceElement;class W2 extends C_{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new tc({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new it("pendingactions-add-invalid-message",this);const c=new(we());return c.set("message",r),this._actions.add(c),this.hasAny=!0,c}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const fs={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',history:'',image:'',lowVision:'',loupe:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:'',dragIndicator:''};var u4=b(5542);Io()(u4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:$m}=fs,d4={alignLeft:fs.alignLeft,bold:fs.bold,importExport:fs.importExport,paragraph:fs.paragraph,plus:fs.plus,text:fs.text,threeVerticalDots:fs.threeVerticalDots,pilcrow:fs.pilcrow,dragIndicator:fs.dragIndicator};class ys extends aa{constructor(r,c){super(r);const u=this.bindTemplate,_=this.t;this.options=c||{},this.set("ariaLabel",_("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new Gc,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new $_(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const C="rtl"===r.uiLanguageDirection;this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[C?"arrowright":"arrowleft","arrowup"],focusNext:[C?"arrowleft":"arrowright","arrowdown"]}});const M=["ck","ck-toolbar",u.to("class"),u.if("isCompact","ck-toolbar_compact")];var E;this.options.shouldGroupWhenFull&&this.options.isFloating&&M.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:M,role:"toolbar","aria-label":u.to("ariaLabel"),style:{maxWidth:u.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(E=this,E.bindTemplate.to(N=>{N.target===E.element&&N.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new bh(this):new Xu(this)}render(){super.render(),this.focusTracker.add(this.element);for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,c,u){this.items.addMany(this._buildItemsFromConfig(r,c,u))}_buildItemsFromConfig(r,c,u){const _=gp(r),C=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,C).map(M=>Wt(M)?this._createNestedToolbarDropdown(M,c,C):"|"===M?new dl:"-"===M?new g2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((C,M,E)=>"|"===C||-1===u.indexOf(C)&&("-"===C?!this.options.shouldGroupWhenFull||(Tt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Wt(C)&&!c.has(C)&&(Tt("toolbarview-item-unavailable",{item:C}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const C=u-r.slice().reverse().findIndex(c);return r.slice(_,C).filter((M,E,N)=>!!c(M)||!(E>0&&N[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:C,items:M,tooltip:E=!0,withText:N=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const j=D1(this.locale);return _||Tt("toolbarview-nested-toolbar-dropdown-missing-label",r),j.class="ck-toolbar__nested-toolbar-dropdown",j.buttonView.set({label:_,tooltip:E,withText:!!N}),!1!==C?j.buttonView.icon=d4[C]||C||$m:j.buttonView.withText=!0,X_(j,()=>j.toolbarView._buildItemsFromConfig(M,c,u)),j}}class $_ extends aa{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Xu{constructor(r){const c=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(u=>u),r.focusables.bindTo(r.items).using(u=>u),r.extendTemplate({attributes:{class:[c.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class bh{constructor(r){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=r,this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),r.itemsView.children.bindTo(this.ungroupedItems).using(c=>c),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),r.children.on("change",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(c,u)=>{const _=u.index,C=Array.from(u.added);for(const M of u.removed)_>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=_;M<_+C.length;M++){const E=C[M-_];M>this.ungroupedItems.length?this.groupedItems.add(E,M-this.ungroupedItems.length):this.ungroupedItems.add(E,M)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!sa(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const r=this.groupedItems.length;let c;for(;this._areItemsOverflowing;)this._groupLastItem(),c=!0;if(!c&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==r&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,c=this.viewLocale.uiLanguageDirection,u=new ce(r.lastChild),_=new ce(r);if(!this.cachedPadding){const C=Mt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(C["ltr"===c?"paddingRight":"paddingLeft"])}return"ltr"===c?u.right>_.right-this.cachedPadding:u.left<_.left+this.cachedPadding}_enableGroupingOnResize(){let r;this.resizeObserver=new yi(this.viewElement,c=>{r&&r===c.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=c.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new dl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,c=r.t,u=D1(r);return u.class="ck-toolbar__grouped-dropdown",u.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",X_(u,this.groupedItems),u.buttonView.set({label:c("Show more items"),tooltip:!0,tooltipPosition:"rtl"===r.uiLanguageDirection?"se":"sw",icon:$m}),u}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Ep extends aa{constructor(r){super(r);const c=this.bindTemplate,u=`ck-editor__label_${Dt()}`,_=new p4(r);this.children=this.createCollection(),this.children.addMany([this._createLabel(u),_]),this.set({label:"",isVisible:!0}),_.set({role:"group",ariaLabelledBy:u}),_.focusTracker.destroy(),_.keystrokes.destroy(),this.items=_.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",c.if("isVisible","ck-hidden",C=>!C)]},children:this.children})}_createLabel(r){const c=new aa(this.locale);return c.setTemplate({tag:"span",attributes:{id:r},children:[{text:this.bindTemplate.to("label")}]}),c}focus(){this.items.first&&this.items.first.focus()}}var v0=b(1046);Io()(v0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 extends aa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Fa,this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new Gc,this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:c.to("role"),"aria-label":c.to("ariaLabel"),"aria-labelledby":c.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const r of this.items)r instanceof Ep?this._registerFocusableItemsGroup(r):this._registerFocusableListItem(r);this.items.on("change",(r,c)=>{for(const u of c.removed)u instanceof Ep?this._deregisterFocusableItemsGroup(u):this._deregisterFocusableListItem(u);for(const u of Array.from(c.added).reverse())u instanceof Ep?this._registerFocusableItemsGroup(u,c.index):this._registerFocusableListItem(u,c.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(r,c){this.focusTracker.add(r.element),this.focusables.add(r,c)}_deregisterFocusableListItem(r){this.focusTracker.remove(r.element),this.focusables.remove(r)}_getOnGroupItemsChangeCallback(r){return(c,u)=>{for(const _ of u.removed)this._deregisterFocusableListItem(_);for(const _ of Array.from(u.added).reverse())this._registerFocusableListItem(_,this.items.getIndex(r)+u.index)}}_registerFocusableItemsGroup(r,c){Array.from(r.items).forEach((_,C)=>{this._registerFocusableListItem(_,void 0!==c?c+C:void 0)});const u=this._getOnGroupItemsChangeCallback(r);this._listItemGroupToChangeListeners.set(r,u),r.items.on("change",u)}_deregisterFocusableItemsGroup(r){for(const c of r.items)this._deregisterFocusableListItem(c);r.items.off("change",this._listItemGroupToChangeListeners.get(r)),this._listItemGroupToChangeListeners.delete(r)}}class bm extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",c.if("isVisible","ck-hidden",u=>!u)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Km extends aa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var K_=b(7686);Io()(K_.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class m4 extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new Gc,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",c.to("class"),c.if("isVisible","ck-hidden",u=>!u),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(r,c)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),c())}),this.keystrokes.set("arrowleft",(r,c)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),c())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const r=new Hr;return r.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),r.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),r.delegate("execute").to(this),r}_createArrowView(){const r=new Hr,c=r.bindTemplate;return r.icon=vd,r.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":c.to("isOn"),"aria-haspopup":!0,"aria-expanded":c.to("isOn",u=>String(u))}}),r.bind("isEnabled").to(this),r.bind("label").to(this),r.bind("tooltip").to(this),r.delegate("execute").to(this,"open"),r}}var xh=b(7339);Io()(xh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var k1=b(3949);function D1(m,r=m1){const c=new r(m),u=new v_(m),_=new Au(m,c,u);return c.bind("isEnabled").to(_),c instanceof m4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=C=_).on("render",()=>{t({emitter:M,activator:()=>M.isOpen,callback:()=>{M.isOpen=!1},contextElements:()=>[M.element,...M.focusTracker._elements]})}),function(M){M.on("execute",E=>{E.source instanceof xi||(M.isOpen=!1)})}(C),function(M){M.focusTracker.on("change:isFocused",(E,N,j)=>{M.isOpen&&!j&&(M.isOpen=!1)})}(C),function(M){M.keystrokes.set("arrowdown",(E,N)=>{M.isOpen&&(M.panelView.focus(),N())}),M.keystrokes.set("arrowup",(E,N)=>{M.isOpen&&(M.panelView.focusLast(),N())})}(C),function(M){M.on("change:isOpen",(E,N,j)=>{if(j)return;const W=M.panelView.element;W&&W.contains(Mt.document.activeElement)&&M.buttonView.focus()})}(C),function(M){M.on("change:isOpen",(E,N,j)=>{j&&M.panelView.focus()},{priority:"low"})}(C),_;var C,M}function X_(m,r,c={}){m.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),m.isOpen?t2(m,r,c):m.once("change:isOpen",()=>t2(m,r,c),{priority:"highest"}),c.enableActiveItemFocusOnDropdownOpen&&Cm(m,()=>m.toolbarView.items.find(u=>u.isOn))}function t2(m,r,c){const u=m.locale,_=u.t,C=m.toolbarView=new ys(u),M="function"==typeof r?r():r;C.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(C.maxWidth=c.maxWidth),c.class&&(C.class=c.class),c.isCompact&&(C.isCompact=c.isCompact),c.isVertical&&(C.isVertical=!0),M instanceof Fa?C.items.bindTo(M).using(E=>E):C.items.addMany(M),m.panelView.children.add(C),C.items.delegate("execute").to(m)}function Eu(m,r,c={}){m.isOpen?$2(m,r,c):m.once("change:isOpen",()=>$2(m,r,c),{priority:"highest"}),Cm(m,()=>m.listView.items.find(u=>u instanceof bm&&u.children.first.isOn))}function $2(m,r,c){const u=m.locale,_=m.listView=new p4(u),C="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Xm(m,_.items,C,u),m.panelView.children.add(_),_.items.delegate("execute").to(m)}function Cm(m,r){m.on("change:isOpen",()=>{if(!m.isOpen)return;const c=r();c&&("function"==typeof c.focus?c.focus():Tt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:Pt.low-10})}function Xm(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Km(u);if("group"===_.type){const C=new Ep(u);return C.set({label:_.label}),Xm(m,C.items,_.items,u),C.items.delegate("execute").to(m),C}if("button"===_.type||"switchbutton"===_.type){const C=new bm(u);let M;return M="button"===_.type?new Hr(u):new xi(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(C),C.children.add(M),C}return null})}Io()(k1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const K2=(m,r,c)=>{const u=new fg(m.locale);return u.set({id:r,ariaDescribedById:c}),u.bind("isReadOnly").to(m,"isEnabled",_=>!_),u.bind("hasError").to(m,"errorText",_=>!!_),u.on("input",()=>{m.errorText=null}),m.bind("isEmpty","isFocused","placeholder").to(u),u},Fp=(m,r=0,c=1)=>m>c?c:mMath.round(c*m)/c,X2=m=>("#"===m[0]&&(m=m.substring(1)),m.length<6?{r:parseInt(m[0]+m[0],16),g:parseInt(m[1]+m[1],16),b:parseInt(m[2]+m[2],16),a:4===m.length?Dl(parseInt(m[3]+m[3],16)/255,2):1}:{r:parseInt(m.substring(0,2),16),g:parseInt(m.substring(2,4),16),b:parseInt(m.substring(4,6),16),a:8===m.length?Dl(parseInt(m.substring(6,8),16)/255,2):1}),Ip=m=>{const{h:r,s:c,l:u}=(({h:m,s:r,v:c,a:u})=>{const _=(200-r)*c/100;return{h:Dl(m),s:Dl(_>0&&_<200?r*c/100/(_<=100?_:200-_)*100:0),l:Dl(_/2),a:Dl(u,2)}})(m);return`hsl(${r}, ${c}%, ${u}%)`},C0=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},x0=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},h4={},A0=m=>{let r=h4[m];return r||(r=document.createElement("template"),r.innerHTML=m,h4[m]=r),r},wh=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let xm=!1;const y0=m=>"touches"in m,tf=(m,r)=>{const c=y0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();wh(m.el,"move",m.getMove({x:Fp((c.pageX-(u.left+window.pageXOffset))/u.width),y:Fp((c.pageY-(u.top+window.pageYOffset))/u.height)}))};class ef{constructor(r,c,u,_){const C=A0(`
`);r.appendChild(C.content.cloneNode(!0));const M=r.querySelector(`[part=${c}]`);M.addEventListener("mousedown",this),M.addEventListener("touchstart",this),M.addEventListener("keydown",this),this.el=M,this.xy=_,this.nodes=[M.firstChild,M]}set dragging(r){const c=r?document.addEventListener:document.removeEventListener;c(xm?"touchmove":"mousemove",this),c(xm?"touchend":"mouseup",this)}handleEvent(r){switch(r.type){case"mousedown":case"touchstart":if(r.preventDefault(),c=r,xm&&!y0(c)||(xm||(xm=y0(c)),0)||!xm&&0!=r.button)return;this.el.focus(),tf(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),tf(this,r);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((c,u)=>{const _=u.keyCode;_>40||c.xy&&_<37||_<33||(u.preventDefault(),wh(c.el,"move",c.getMove({x:39===_?.01:37===_?-.01:34===_?.05:33===_?-.05:35===_?1:36===_?-1:0,y:40===_?.01:38===_?-.01:0},!0)))})(this,r)}var c}style(r){r.forEach((c,u)=>{for(const _ in c)this.nodes[u].style.setProperty(_,c[_])})}}class L extends ef{constructor(r){super(r,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:r}){this.h=r,this.style([{left:r/360*100+"%",color:Ip({h:r,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Dl(r)}`)}getMove(r,c){return{h:c?Fp(this.h+360*r.x,0,360):360*r.x}}}class R extends ef{constructor(r){super(r,"saturation",'aria-label="Color"',!0)}update(r){this.hsva=r,this.style([{top:100-r.v+"%",left:`${r.s}%`,color:Ip(r)},{"background-color":Ip({h:r.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Dl(r.s)}%, Brightness ${Dl(r.v)}%`)}getMove(r,c){return{s:c?Fp(this.hsva.s+100*r.x,0,100):100*r.x,v:c?Fp(this.hsva.v-100*r.y,0,100):Math.round(100-100*r.y)}}}const st=Symbol("same"),Qt=Symbol("color"),Fe=Symbol("hsva"),pn=Symbol("update"),Yn=Symbol("parts"),ri=Symbol("css"),_i=Symbol("sliders");class Ki extends HTMLElement{static get observedAttributes(){return["color"]}get[ri](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[_i](){return[R,L]}get color(){return this[Qt]}set color(r){if(!this[st](r)){const c=this.colorModel.toHsva(r);this[pn](c),this[Qt]=r}}constructor(){super();const r=A0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[Yn]=this[_i].map(u=>new u(c))}connectedCallback(){if(this.hasOwnProperty("color")){const r=this.color;delete this.color,this.color=r}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(r,c,u){const _=this.colorModel.fromAttr(u);this[st](_)||(this.color=_)}handleEvent(r){const c=this[Fe],u={...c,...r.detail};let _;this[pn](u),x0(u,c)||this[st](_=this.colorModel.fromHsva(u))||(this[Qt]=_,wh(this,"color-changed",{value:_}))}[st](r){return this.color&&this.colorModel.equal(r,this.color)}[pn](r){this[Fe]=r,this[Yn].forEach(c=>c.update(r))}}const Wi={defaultColor:"#000",toHsva:m=>(({r:m,g:r,b:c,a:u})=>{const _=Math.max(m,r,c),C=_-Math.min(m,r,c),M=C?_===m?(r-c)/C:_===r?2+(c-m)/C:4+(m-r)/C:0;return{h:Dl(60*(M<0?M+6:M)),s:Dl(_?C/_*100:0),v:Dl(_/255*100),a:u}})(X2(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?C0(Dl(255*u)):"";return"#"+C0(m)+C0(r)+C0(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),C=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),N=_%6;return{r:Dl(255*[c,M,C,C,E,c][N]),g:Dl(255*[E,c,c,M,C,C][N]),b:Dl(255*[C,C,E,c,c,M][N]),a:Dl(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||x0(X2(m),X2(r)),fromAttr:m=>m};class no extends Ki{get colorModel(){return Wi}}customElements.define("hex-color-picker",class extends no{});var qo=b(3398);Io()(qo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),we(tc);var Ca=b(4157);Io()(Ca.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Aa{constructor(r){this._components=new Map,this.editor=r}*names(){for(const r of this._components.values())yield r.originalName}add(r,c){this._components.set(Ka(r),{callback:c,originalName:r})}create(r){if(!this.has(r))throw new it("componentfactory-item-missing",this,{name:r});return this._components.get(Ka(r)).callback(this.editor.locale)}has(r){return this._components.has(Ka(r))}}function Ka(m){return String(m).toLowerCase()}var za=b(8793);Io()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yc=Object.defineProperty,_l=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,pu=(m,r,c)=>r in m?yc(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,nr=(m,r)=>{for(var c in r||(r={}))Es.call(r,c)&&pu(m,c,r[c]);if(_l)for(var c of _l(r))Wl.call(r,c)&&pu(m,c,r[c]);return m};const e2=vo("px"),nf=Mt.document.body,Uh={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},g4=class extends aa{constructor(m){super(m);const r=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",c=>`ck-balloon-panel_${c}`),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",e2),left:r.to("left",e2)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(m){this.show();const r=g4.defaultPositions,c=Object.assign({},{element:this.element,positions:[r.southArrowNorth,r.southArrowNorthMiddleWest,r.southArrowNorthMiddleEast,r.southArrowNorthWest,r.southArrowNorthEast,r.northArrowSouth,r.northArrowSouthMiddleWest,r.northArrowSouthMiddleEast,r.northArrowSouthWest,r.northArrowSouthEast,r.viewportStickyNorth],limiter:nf,fitInViewport:!0},m),u=g4._getOptimalPosition(c)||Uh,_=parseInt(u.left),C=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:N=!0}=E;this.top=C,this.left=_,this.position=M,this.withArrow=N}pin(m){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(m):this._stopPinning()},this._startPinning(m),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(m){this.attachTo(m);const r=T0(m.target),c=m.limiter?T0(m.limiter):nf;this.listenTo(Mt.document,"scroll",(u,_)=>{const C=_.target,M=r&&C.contains(r),E=c&&C.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Mt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Mt.document,"scroll"),this.stopListening(Mt.window,"resize")}};let td=g4;function T0(m){return pa(m)?m:jt(m)?m.commonAncestorContainer:"function"==typeof m?T0(m()):null}function o5(m={}){const{sideOffset:r=td.arrowSideOffset,heightOffset:c=td.arrowHeightOffset,stickyVerticalOffset:u=td.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,N)=>nr({top:C(E,N),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,N)=>nr({top:C(E,N),left:E.left-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,N)=>nr({top:C(E,N),left:E.left-N.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,N)=>nr({top:C(E,N),left:E.left-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,N)=>nr({top:C(E,N),left:E.left-N.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-N.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,N)=>nr({top:C(E,N),left:E.left+E.width/2-N.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,N)=>nr({top:C(E,N),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,N)=>nr({top:C(E,N),left:E.right-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,N)=>nr({top:C(E,N),left:E.right-N.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,N)=>nr({top:C(E,N),left:E.right-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,N)=>nr({top:C(E,N),left:E.right-N.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>nr({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,N)=>nr({top:M(E),left:E.left-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,N)=>nr({top:M(E),left:E.left-N.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,N)=>nr({top:M(E),left:E.left-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,N)=>nr({top:M(E),left:E.left-N.width+r,name:"arrow_ne"},_&&{config:_}),southArrowNorthWest:E=>nr({top:M(E),left:E.left+E.width/2-r,name:"arrow_nw"},_&&{config:_}),southArrowNorthMiddleWest:(E,N)=>nr({top:M(E),left:E.left+E.width/2-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,N)=>nr({top:M(E),left:E.left+E.width/2-N.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,N)=>nr({top:M(E),left:E.left+E.width/2-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,N)=>nr({top:M(E),left:E.left+E.width/2-N.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>nr({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,N)=>nr({top:M(E),left:E.right-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,N)=>nr({top:M(E),left:E.right-N.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,N)=>nr({top:M(E),left:E.right-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,N)=>nr({top:M(E),left:E.right-N.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,N)=>nr({top:E.top+E.height/2-N.height/2,left:E.left-N.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,N)=>nr({top:E.top+E.height/2-N.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,N,j,W)=>{const dt=W||j;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-N.width/2,name:"arrowless",config:nr({withArrow:!1},_)}:null}};function C(E,N){return E.top-N.height-c}function M(E){return E.bottom+c}}td.arrowSideOffset=25,td.arrowHeightOffset=10,td.stickyVerticalOffset=20,td._getOptimalPosition=ts,td.defaultPositions=o5();var a5=b(3332);Io()(a5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const r5="ck-tooltip",ed=class extends(eo()){constructor(m){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,ed._editors.add(m),ed._instance)return ed._instance;ed._instance=this,this.tooltipTextView=new aa(m.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new td(m.locale),this.balloonPanelView.class=r5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=S_(this._pinTooltip,600),this.listenTo(Mt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(m){const r=m.ui.view&&m.ui.view.body;ed._editors.delete(m),this.stopListening(m.ui),r&&r.has(this.balloonPanelView)&&r.remove(this.balloonPanelView),ed._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),ed._instance=null)}static getPositioningFunctions(m){const r=ed.defaultBalloonPositions;return{s:[r.southArrowNorth,r.southArrowNorthEast,r.southArrowNorthWest],n:[r.northArrowSouth],e:[r.eastArrowWest],w:[r.westArrowEast],sw:[r.southArrowNorthEast],se:[r.southArrowNorthWest]}[m]}_onEnterOrFocus(m,{target:r}){const c=w0(r);var u;c&&c!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(c,{text:(u=c).dataset.ckeTooltipText,position:u.dataset.ckeTooltipPosition||"s",cssClass:u.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(m,{target:r,relatedTarget:c}){if("mouseleave"===m.name){if(!pa(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=w0(r),_=w0(c);u&&u!==_&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(m,{target:r}){this._currentElementWithTooltip&&(r.contains(this.balloonPanelView.element)&&r.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(m,{text:r,position:c,cssClass:u}){const _=os(ed._editors.values()).ui.view.body;_.has(this.balloonPanelView)||_.add(this.balloonPanelView),this.tooltipTextView.text=r,this.balloonPanelView.pin({target:m,positions:ed.getPositioningFunctions(c)}),this._resizeObserver=new yi(m,()=>{sa(m)||this._unpinTooltip()}),this.balloonPanelView.class=[r5,u].filter(C=>C).join(" ");for(const C of ed._editors)this.listenTo(C.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=m,this._currentTooltipPosition=c}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const m of ed._editors)this.stopListening(m.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){sa(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:ed.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let Zh=ed;function w0(m){return pa(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Zh.defaultBalloonPositions=o5({heightOffset:5,sideOffset:13}),Zh._editors=new Set,Zh._instance=null;const U0=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Wt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),S_(m,r,{leading:u,maxWait:r,trailing:_})};var s5=Object.defineProperty,xb=Object.getOwnPropertySymbols,v4=Object.prototype.hasOwnProperty,b4=Object.prototype.propertyIsEnumerable,C4=(m,r,c)=>r in m?s5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class y8 extends(eo()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=U0(this._showBalloon.bind(this),50,{leading:!0}),r.on("ready",this._handleEditorReady.bind(this))}destroy(){const r=this._balloonView;r&&(r.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const r=this.editor;(r.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(c){function u(ue){return ue.length>=40&&ue.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const C=_.split("-"),M=C[0],E=C[1];if(!E)return u(c);try{atob(E)}catch{try{if(atob(M),!atob(M).length)return u(c)}catch{return u(c)}}if(M.length<40||M.length>255)return"INVALID";let N="";try{atob(M),N=atob(E)}catch{return"INVALID"}if(8!==N.length)return"INVALID";const j=Number(N.substring(0,4)),W=Number(N.substring(4,6))-1,dt=Number(N.substring(6,8)),Zt=new Date(j,W,dt);return Zt{this._updateLastFocusedEditableElement(),_?this._showBalloon():this._hideBalloon()}),r.ui.focusTracker.on("change:focusedElement",(c,u,_)=>{this._updateLastFocusedEditableElement(),_&&this._showBalloon()}),r.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const r=this.editor,c=this._balloonView=new td,u=af(r),_=new k0(r.locale,u.label);c.content.add(_),c.set({class:"ck-powered-by-balloon"}),r.ui.view.body.add(c),r.ui.focusTracker.add(c.element),this._balloonView=c}_showBalloon(){if(!this._lastFocusedEditableElement)return;const r=function(c,u){const _=af(c);var E;return{target:u,positions:["right"===_.side?kh(u,E=_,(N,j)=>N.left+N.width-j.width-E.horizontalOffset):function(M,E){return kh(M,E,N=>N.left+E.horizontalOffset)}(u,_)]}}(this.editor,this._lastFocusedEditableElement);r&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(r))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const r=this.editor,u=r.ui.focusTracker.focusedElement;if(!r.ui.focusTracker.isFocused||!u)return void(this._lastFocusedEditableElement=null);const _=Array.from(r.ui.getEditableElementsNames()).map(C=>r.ui.getEditableElement(C));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class k0 extends aa{constructor(r,c){super(r);const u=new Ps,_=this.bindTemplate;u.set({content:'\n',isColorInherited:!1}),u.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...c?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[c]}]:[],u],on:{dragstart:_.to(C=>C.preventDefault())}}]})}}function kh(m,r,c){return(u,_)=>{const C=new ce(m);if(C.width<350||C.height<50)return null;let M;M="inside"===r.position?C.bottom-_.height:C.bottom-_.height/2,M-=r.verticalOffset;const E=c(C,_),N=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!N||N.getArea()<_.getArea()?null:{top:M,left:E,name:`position_${r.position}-side_${r.side}`,config:{withArrow:!1}}}}function af(m){const r=m.config.get("ui.poweredBy"),c=r&&r.position||"border";return((m,r)=>{for(var c in r||(r={}))v4.call(r,c)&&C4(m,c,r[c]);if(xb)for(var c of xb(r))b4.call(r,c)&&C4(m,c,r[c]);return m})({position:c,label:"Powered by",verticalOffset:"inside"===c?5:0,horizontalOffset:5,side:"ltr"===m.locale.contentLanguageDirection?"right":"left"},r)}var ep=Object.defineProperty,Dh=Object.getOwnPropertySymbols,D0=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,np=(m,r,c)=>r in m?ep(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class c5 extends(we()){constructor(r){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const c=r.editing.view;this.editor=r,this.componentFactory=new Aa(r),this.focusTracker=new as,this.tooltipManager=new Zh(r),this.poweredBy=new y8(r),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(c.document,"layoutChanged",this.update.bind(this)),this.listenTo(c,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null,this.editor.keystrokes.stopListening(r);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(r,c){this._editableElementsMap.set(r,c),c.ckeditorInstance||(c.ckeditorInstance=this.editor),this.focusTracker.add(c);const u=()=>{this.editor.editing.view.getDomRoot(r)||this.editor.keystrokes.listenTo(c)};this.isReady?u():this.once("ready",u)}removeEditableElement(r){const c=this._editableElementsMap.get(r);c&&(this._editableElementsMap.delete(r),this.editor.keystrokes.stopListening(c),this.focusTracker.remove(c),c.ckeditorInstance=null)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(r,c={}){r.isRendered?(this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)):r.once("render",()=>{this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)}),this._focusableToolbarDefinitions.push({toolbarView:r,options:c})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const r=this.editor,c=r.config.get("ui.viewportOffset");if(c)return c;const u=r.config.get("toolbar.viewportTopOffset");return u?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:u}):{top:0}}_initFocusTracking(){const r=this.editor,c=r.editing.view;let u,_;r.keystrokes.set("Alt+F10",(C,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const N=this._getCurrentFocusedToolbarDefinition();N&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let j=0;j<_.length;j++){const W=_.shift();if(_.push(W),W!==N&&this._focusFocusableCandidateToolbar(W)){N&&N.options.afterBlur&&N.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(C,M)=>{const E=this._getCurrentFocusedToolbarDefinition();E&&(u?(u.focus(),u=null):r.editing.view.focus(),E.options.afterBlur&&E.options.afterBlur(),M())})}_getFocusableCandidateToolbarDefinitions(){const r=[];for(const c of this._focusableToolbarDefinitions){const{toolbarView:u,options:_}=c;(sa(u.element)||_.beforeFocus)&&r.push(c)}return r.sort((c,u)=>yb(c)-yb(u)),r}_getCurrentFocusedToolbarDefinition(){for(const r of this._focusableToolbarDefinitions)if(r.toolbarView.element&&r.toolbarView.element.contains(this.focusTracker.focusedElement))return r;return null}_focusFocusableCandidateToolbar(r){const{toolbarView:c,options:{beforeFocus:u}}=r;return u&&u(),!!sa(c.element)&&(c.focus(),!0)}_handleScrollToTheSelection(r,c){const u=((_,C)=>{for(var M in C||(C={}))D0.call(C,M)&&np(_,M,C[M]);if(Dh)for(var M of Dh(C))Np.call(C,M)&&np(_,M,C[M]);return _})({top:0,bottom:0,left:0,right:0},this.viewportOffset);c.viewportOffset.top+=u.top,c.viewportOffset.bottom+=u.bottom,c.viewportOffset.left+=u.left,c.viewportOffset.right+=u.right}}function yb(m){const{toolbarView:r,options:c}=m;let u=10;return sa(r.element)&&u--,c.isContextual&&u--,u}var P0=b(9688);Io()(P0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Tb extends aa{constructor(r){super(r),this.body=new Gi(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class wb extends Tb{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,c=new xu;return c.text=r("Rich Text Editor"),c.extendTemplate({attributes:{class:"ck-voice-label"}}),c}}class Ub extends aa{constructor(r,c,u){super(r),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=u,this._hasExternalElement=!!this._editableElement,this._editingView=c}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const r=this._editingView;function c(u){r.change(_=>{const C=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",C),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",C)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(C,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class Ph extends Ub{constructor(r,c,u,_={}){super(r,c,u);const C=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>C("Editor editing area: %0",this.name))}render(){super.render();const r=this._editingView;r.change(c=>{const u=r.document.getRoot(this.name);c.setAttribute("aria-label",this._generateLabel(this),u)})}}var x4=b(8847);Io()(x4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class rf extends C_{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,c)=>{window.alert(c.message)},{priority:"lowest"})}showSuccess(r,c={}){this._showNotification({message:r,type:"success",namespace:c.namespace,title:c.title})}showInfo(r,c={}){this._showNotification({message:r,type:"info",namespace:c.namespace,title:c.title})}showWarning(r,c={}){this._showNotification({message:r,type:"warning",namespace:c.namespace,title:c.title})}_showNotification(r){this.fire(r.namespace?`show:${r.type}:${r.namespace}`:`show:${r.type}`,{message:r.message,type:r.type,title:r.title||""})}}class L0 extends(we()){constructor(r,c){super(),c&&ml(this,c),r&&this.set(r)}}var A4=b(4650);Io()(A4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var O0=b(7676);Io()(O0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Lh=vo("px");class E0 extends lo{constructor(r){super(r),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const c=this.editor.editing.view,u=c.document.selection.editableElement;return u?c.domConverter.mapViewToDom(u.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this._view||this._createPanelView(),this.hasView(r.view))throw new it("contextualballoon-add-view-exist",[this,r]);const c=r.stackId||"main";if(!this._idToStack.has(c))return this._idToStack.set(c,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(c)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(c));const u=this._idToStack.get(c);r.singleViewMode&&this.showStack(c),u.set(r.view,r),this._viewToStack.set(r.view,u),u===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new it("contextualballoon-remove-view-not-exist",[this,r]);const c=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===c.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(c.values())[c.size-2])),1===c.size?(this._idToStack.delete(this._getStackId(c)),this._numberOfStacks=this._idToStack.size):c.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const c=this._idToStack.get(r);if(!c)throw new it("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==c&&this._showView(Array.from(c.values()).pop())}_createPanelView(){this._view=new td(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(c=>c[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)+1;r[c]||(c=0),this.showStack(this._getStackId(r[c]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)-1;r[c]||(c=r.length-1),this.showStack(this._getStackId(r[c]))}_createRotatorView(){const r=new Mb(this.editor.locale),c=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(u,_)=>!_&&u>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(u,_)=>{if(_<2)return"";const C=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[C,_])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new T8(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(c,u)=>!u&&c>=2?Math.min(c-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:c="",withArrow:u=!0,singleViewMode:_=!1}){this.view.class=c,this.view.withArrow=u,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),_&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&(r.limiter||(r=Object.assign({},r,{limiter:this.positionLimiter})),r=Object.assign({},r,{viewportOffsetConfig:this.editor.ui.viewportOffset})),r}}class Mb extends aa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new as,this.buttonPrevView=this._createButtonView(c("Previous"),''),this.buttonNextView=this._createButtonView(c("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",u.to("isNavigationVisible",_=>_?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:u.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,c){const u=new Hr(this.locale);return u.set({label:r,icon:c,tooltip:!0}),u}}class T8 extends aa{constructor(r,c){super(r);const u=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=c,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",u.to("numberOfPanels",_=>_?"":"ck-hidden")],style:{top:u.to("top",Lh),left:u.to("left",Lh),width:u.to("width",Lh),height:u.to("height",Lh)}},children:this.content}),this.on("change:numberOfPanels",(_,C,M,E)=>{M>E?this._addPanels(M-E):this._removePanels(E-M),this.updatePosition()})}_addPanels(r){for(;r--;){const c=new aa;c.setTemplate({tag:"div"}),this.content.add(c),this.registerChild(c)}}_removePanels(r){for(;r--;){const c=this.content.last;this.content.remove(c),this.deregisterChild(c),c.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:c}=this._balloonPanelView,{width:u,height:_}=new ce(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var kb=b(5868);Io()(kb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const sf=vo("px");class Pb extends aa{constructor(r){super(r);const c=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new wr({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:c.to("isSticky",u=>u?"block":"none"),height:c.to("isSticky",u=>u?sf(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new wr({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",c.if("isSticky","ck-sticky-panel__content_sticky"),c.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:c.to("isSticky",u=>u?sf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&sf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&sf(u)),marginLeft:c.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Mt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const r=new ce(this.limiterElement);let c=r.getVisible();if(c){const u=new ce(Mt.window);u.top+=this.viewportTopOffset,u.height-=this.viewportTopOffset,c=c.getIntersection(u)}if(c&&r.topc.bottom){const _=Math.max(r.bottom-c.bottom,0)+this.limiterBottomOffset;r.bottom-_>r.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(_):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",C=>!C),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class Sb extends aa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",r.if("isVisible","ck-hidden",c=>!c)],tabindex:-1},children:[{tag:"span",children:[{text:[r.to("primaryText")]}]},{tag:"span",children:[{text:[r.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class w8 extends aa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new ul({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const r of this.children)this.focusTracker.add(r.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Lb=/[\\^$.*+?()[\]{}|]/g,Ob=RegExp(Lb.source);const u5=function(m){return(m=xg(m))&&Ob.test(m)?m.replace(Lb,"\\$&"):m};var d5=b(6770);Io()(d5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Na=Object.defineProperty,wd=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty,Fb=Object.prototype.propertyIsEnumerable,Ud=(m,r,c)=>r in m?Na(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class p5 extends aa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new as,this.keystrokes=new Gc,this.resultsView=new w8(r),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),c.infoView&&c.infoView.instance?this.infoView=c.infoView.instance:(this.infoView=new Sb,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new ul({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:C})=>{this.resultsCount=_,this.totalItemsCount=C}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",c.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const r=c=>c.stopPropagation();for(const c of this.focusableChildren)this.focusTracker.add(c.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(r){const c=r?new RegExp(u5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,C)=>{for(var M in C||(C={}))U8.call(C,M)&&Ud(_,M,C[M]);if(wd)for(var M of wd(C))Fb.call(C,M)&&Ud(_,M,C[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new cc(this.locale,this._config.queryView);return this.listenTo(r.fieldView,"input",()=>{this.search(r.fieldView.element.value)}),r.on("reset",()=>this.reset()),r.bind("isEnabled").to(this),r}_enableDefaultInfoViewBehavior(){const r=this.locale.t,c=this.infoView;function u(_,{query:C,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(C,M,E):_}this.on("search",(_,C)=>{if(C.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,N;C.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,N=M.notFound.secondary):(E=r("No results found"),N=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,N=M.noSearchableItems.secondary):(E=r("No searchable items"),N=""),c.set({primaryText:u(E,C),secondaryText:u(N,C),isVisible:!0})}})}}var Z8=b(8157);Io()(Z8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const F0=class extends p5{constructor(m,r){super(m,r),this._config=r;const c=vo("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const u=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[u.if("isVisible","ck-hidden",_=>!_),u.to("_position",_=>`ck-search__results_${_}`)],style:{width:u.to("_width",c)}}}),this.focusTracker.on("change:isFocused",(_,C,M)=>{this._updateResultsVisibility(),M?this.resultsView.element.scrollTop=0:r.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(_,C)=>{this.resultsView.isVisible=!1,C()}),this.listenTo(Mt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:C})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=C,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new ce(this.queryView.fieldView.element).width;const m=F0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:F0.defaultResultsPositions});this.resultsView._position=m?m.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let qp=F0;qp.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],qp._getOptimalPosition=ts;var Ib=b(8960);Io()(Ib.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Mo=b(498);Io()(Mo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vo("px");var ip=b(9695);Io()(ip.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vo("px"),vo("px");class Rb extends c5{constructor(r,c){super(r),this.view=c,this._toolbarConfig=gp(r.config.get("toolbar")),this._elementReplacer=new Ke,this.listenTo(r.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(r){const u=this.view,_=this.editor.editing.view,C=u.editable,M=_.document.getRoot();C.name=M.rootName,u.render();const E=C.element;this.setEditableElement(C.name,E),u.editable.bind("isFocused").to(this.focusTracker),_.attachDomRoot(E),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const r=this.view,c=this.editor.editing.view;this._elementReplacer.restore(),c.detachDomRoot(r.editable.name),r.destroy()}_initToolbar(){const r=this.view;r.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),r.stickyPanel.limiterElement=r.element,r.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:c})=>c||0),r.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(r.toolbar)}_initPlaceholder(){const r=this.editor,c=r.editing.view,u=c.document.getRoot(),_=r.sourceElement;let C;const M=r.config.get("placeholder");M&&(C="string"==typeof M?M:M[this.view.editable.name]),!C&&_&&"textarea"===_.tagName.toLowerCase()&&(C=_.getAttribute("placeholder")),C&&(u.placeholder=C),Y({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const C=new ce(_.element).height;c.viewportOffset.top+=C}else{const C=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",C),setTimeout(()=>{this.stopListening(_,"change:isSticky",C)},20)}}}var Hb=b(3143);Io()(Hb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class k8 extends wb{constructor(r,c,u={}){super(r),this.stickyPanel=new Pb(r),this.toolbar=new ys(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new Ph(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class zb{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof r.crashNumberLimit?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof r.minimumNonErrorTimePeriod?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=c=>{const u="error"in c?c.error:c.reason;u instanceof Error&&this._handleError(u,c)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,c){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(c)}off(r,c){this._listeners[r]=this._listeners[r].filter(u=>u!==c)}_fire(r,...c){const u=this._listeners[r]||[];for(const _ of u)_.apply(this,[null,...c])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,c){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:c instanceof ErrorEvent?c.filename:void 0,lineno:c instanceof ErrorEvent?c.lineno:void 0,colno:c instanceof ErrorEvent?c.colno:void 0,date:this._now()});const u=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:u}),u?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&null!=r.context&&"ready"===this.state&&this._isErrorComingFromThisItem(r)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Oh(m,r=new Set){const c=[m],u=new Set;let _=0;for(;c.length>_;){const C=c[_++];if(!u.has(C)&&I0(C)&&!r.has(C))if(u.add(C),Symbol.iterator in C)try{for(const M of C)c.push(M)}catch{}else for(const M in C)"defaultValue"!==M&&c.push(C[M])}return u}function I0(m){const r=Object.prototype.toString.call(m),c=typeof m;return!("number"===c||"boolean"===c||"string"===c||"symbol"===c||"function"===c||"[object Date]"===r||"[object RegExp]"===r||"[object Module]"===r||null==m||m._watchdogExcluded||m instanceof EventTarget||m instanceof Event)}function Yb(m,r,c=new Set){if(m===r&&"object"==typeof(u=m)&&null!==u)return!0;var u;const _=Oh(m,c),C=Oh(r,c);for(const M of _)if(C.has(M))return!0;return!1}var _5=Object.defineProperty,D8=Object.defineProperties,f5=Object.getOwnPropertyDescriptors,N0=Object.getOwnPropertySymbols,Eh=Object.prototype.hasOwnProperty,Bb=Object.prototype.propertyIsEnumerable,_c=(m,r,c)=>r in m?_5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,y4=(m,r)=>{for(var c in r||(r={}))Eh.call(r,c)&&_c(m,c,r[c]);if(N0)for(var c of N0(r))Bb.call(r,c)&&_c(m,c,r[c]);return m};class T4 extends zb{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=U0(this._save.bind(this),"number"==typeof c.saveInterval?c.saveInterval:5e3),r&&(this._creator=(u,_)=>r.create(u,_)),this._destructor=u=>u.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{const r={},c=[],u=this._config.rootsAttributes||{},_={};for(const[N,j]of Object.entries(this._data.roots))j.isLoaded?(r[N]="",_[N]=u[N]||{}):c.push(N);const C=(M=y4({},this._config),D8(M,f5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete C.initialData,C.extraPlugins.push(q0),this._initUsingData?this.create(r,C,C.context):pa(this._elementOrData)?this.create(this._elementOrData,C,C.context):this.create(this._editables,C,C.context)}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,c=this._config,u){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._initUsingData="string"==typeof r||Object.keys(r).length>0&&"string"==typeof Object.values(r)[0],this._config=this._cloneEditorConfiguration(c)||{},this._config.context=u,this._creator(r,this._config))).then(_=>{this._editor=_,_.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=_.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){const r=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=r}catch(c){console.error(c,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){const r=this._editor,c=r.model.document.roots.filter(E=>E.isAttached()&&"$graveyard"!=E.rootName),{plugins:u}=r,_=u.has("CommentsRepository")&&u.get("CommentsRepository"),C=u.has("TrackChanges")&&u.get("TrackChanges"),M={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};c.forEach(E=>{M.roots[E.rootName]={content:JSON.stringify(Array.from(E.getChildren())),attributes:JSON.stringify(Array.from(E.getAttributes())),isLoaded:E._isLoaded}});for(const E of r.model.markers)E._affectsData&&(M.markers[E.name]={rangeJSON:E.getRange().toJSON(),usingOperation:E._managedUsingOperations,affectsData:E._affectsData});return _&&(M.commentThreads=JSON.stringify(_.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),C&&(M.suggestions=JSON.stringify(C.getSuggestions({toJSON:!0,skipNotAttached:!0}))),M}_getEditables(){const r={};for(const c of this.editor.model.document.getRootNames()){const u=this.editor.ui.getEditableElement(c);u&&(r[c]=u)}return r}_isErrorComingFromThisItem(r){return Yb(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return Lo(r,(c,u)=>pa(c)||"context"===u?c:void 0)}}class q0{constructor(r){this.editor=r,this._data=r.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",r=>{r.stop(),this.editor.model.enqueueChange({isUndoable:!1},c=>{this._restoreCollaborationData(),this._restoreEditorData(c)}),this.editor.data.fire("ready")},{priority:999})}_createNode(r,c){if("name"in c){const u=r.createElement(c.name,c.attributes);if(c.children)for(const _ of c.children)u._appendChild(this._createNode(r,_));return u}return r.createText(c.data,c.attributes)}_restoreEditorData(r){const c=this.editor;Object.entries(this._data.roots).forEach(([u,{content:_,attributes:C}])=>{const M=JSON.parse(_),E=JSON.parse(C),N=c.model.document.getRoot(u);for(const[j,W]of E)r.setAttribute(j,W,N);for(const j of M){const W=this._createNode(r,j);r.insert(W,N,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:C}=c.model,M=_,{rangeJSON:{start:E,end:N}}=M,j=((xe,Ee)=>{var ln={};for(var Mn in xe)Eh.call(xe,Mn)&&Ee.indexOf(Mn)<0&&(ln[Mn]=xe[Mn]);if(null!=xe&&N0)for(var Mn of N0(xe))Ee.indexOf(Mn)<0&&Bb.call(xe,Mn)&&(ln[Mn]=xe[Mn]);return ln})(M,["rangeJSON"]),W=C.getRoot(E.root),dt=r.createPositionFromPath(W,E.path,E.stickiness),Zt=r.createPositionFromPath(W,N.path,N.stickiness),ue=r.createRange(dt,Zt);r.addMarker(u,y4({range:ue},j))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),C=this.editor.plugins.get("CommentsRepository");C.hasCommentThread(u.threadId)&&C.getCommentThread(u.threadId).remove(),C.addCommentThread(y4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const cf=Symbol("MainQueueId");class h5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===cf;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(cf),this._queues.get(r)]).then(c),C=_.catch(()=>{});return this._queues.set(r,C),_.finally(()=>{this._activeActions--,this._queues.get(r)===C&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function R0(m){return Array.isArray(m)?m:[m]}class H0 extends(W_(Q2(l4))){constructor(r,c={}){if(!Fh(r)&&void 0!==c.initialData)throw new it("editor-create-initial-data",null);var C,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",Fh(C=r)?(M=C)instanceof HTMLTextAreaElement?M.value:M.innerHTML:C),Fh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new k8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new Rb(this,_),function(C){if(!No(C.updateSourceElement))throw new it("attachtoform-missing-elementapi-interface",C);const M=C.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const N=M.form,j=()=>C.updateSourceElement();No(N.submit)&&(E=N.submit,N.submit=()=>{j(),E.apply(N)}),N.addEventListener("submit",j),C.on("destroy",()=>{N.removeEventListener("submit",j),E&&(N.submit=E)})}var E}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,c={}){return new Promise(u=>{const _=new this(r,c);u(_.initPlugins().then(()=>_.ui.init(Fh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function Fh(m){return pa(m)}H0.Context=v2,H0.EditorWatchdog=T4,H0.ContextWatchdog=class extends zb{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new h5,this._watchdogConfig=r,this._creator=c=>m.create(c),this._destructor=c=>c.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(m){this._creator=m}setDestructor(m){this._destructor=m}get context(){return this._context}create(m={}){return this._actionQueues.enqueue(cf,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=R0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let u;if(this._watchdogs.has(c.id))throw new Error(`Item with the given id is already added: '${c.id}'.`);if("editor"===c.type)return u=new T4(null,this._watchdogConfig),u.setCreator(c.creator),u._setExcludedProperties(this._contextProps),c.destructor&&u.setDestructor(c.destructor),this._watchdogs.set(c.id,u),u.on("error",(_,{error:C,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:C}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const N=()=>{u.off("restart",N),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",N)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=R0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c,()=>{const u=this._getWatchdog(c);return this._watchdogs.delete(c),u.destroy()})))}destroy(){return this._actionQueues.enqueue(cf,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(cf,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(m=>{console.error("An error happened during destroying the context or items.",m)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(m=>(this._context=m,this._contextProps=Oh(this._context),Promise.all(Array.from(this._watchdogs.values()).map(r=>(r._setExcludedProperties(this._contextProps),r.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const m=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(r=>r.destroy())).then(()=>this._destructor(m))})}_getWatchdog(m){const r=this._watchdogs.get(m);if(!r)throw new Error(`Item with the given id was not registered: ${m}.`);return r}_isErrorComingFromThisItem(m){for(const r of this._watchdogs.values())if(r._isErrorComingFromThisItem(m))return!1;return Yb(this._context,m.context)}};class Ih extends Gd{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(C,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,N=new ct(c,_);c.fire(N,{dataTransfer:M.dataTransfer,method:C.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),N.stop.called&&M.stopPropagation()}}this.listenTo(c,"paste",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"drop",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"dragover",u("dragging"),{priority:"low"})}onDomEvent(r){const _={dataTransfer:new Jf("clipboardData"in r?r.clipboardData:r.dataTransfer,{cacheFiles:"drop"==r.type||"paste"==r.type})};"drop"!=r.type&&"dragover"!=r.type||(_.dropRange=function(C,M){const E=M.target.ownerDocument,N=M.clientX,j=M.clientY;let W;return E.caretRangeFromPoint&&E.caretRangeFromPoint(N,j)?W=E.caretRangeFromPoint(N,j):M.rangeParent&&(W=E.createRange(),W.setStart(M.rangeParent,M.rangeOffset),W.collapse(!0)),W?C.domConverter.domRangeToView(W):null}(this.view,r)),this.fire(r.type,r,_)}}const g5=["figcaption","li"];function v5(m){let r="";if(m.is("$text")||m.is("$textProxy"))r=m.data;else if(m.is("element","img")&&m.hasAttribute("alt"))r=m.getAttribute("alt");else if(m.is("element","br"))r="\n";else{let c=null;for(const u of m.getChildren()){const _=v5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(g5.includes(c.name)||g5.includes(u.name)?r+="\n":r+="\n\n"),r+=_,c=u}}return r}class Rp extends lo{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Ih),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(r,c,u){const _=this.editor.model.getSelectedContent(c);this.fire("outputTransformation",{dataTransfer:r,content:_,method:u})}_setupPasteDrop(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document;this.listenTo(_,"clipboardInput",(C,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||C.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(C,M)=>{const E=M.dataTransfer;let N;if(M.content)N=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(ue,xe)=>1==xe.length?" ":xe).replace(//g,""):E.getData("text/plain")&&(((j=(j=E.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||j.includes("
"))&&(j=`

${j}

`),dt=j),N=this.editor.data.htmlProcessor.toView(dt)}var j;const W=new ct(this,"inputTransformation");this.fire(W,{content:N,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),W.stop.called&&C.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(C,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(C.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(C,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(C,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,C.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(C,M)=>{r.model.canEditAt(r.model.document.selection)?_(C,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(C,M)=>{const E=r.data.toView(M.content);u.fire("clipboardOutput",{dataTransfer:M.dataTransfer,content:E,method:M.method})},{priority:"low"}),this.listenTo(u,"clipboardOutput",(C,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",v5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class b5{constructor(r,c=20){this._batch=null,this.model=r,this._size=0,this.limit=c,this._isLocked=!1,this._changeCallback=(u,_)=>{_.isLocal&&_.isUndoable&&_!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){this.isLocked&&!r||(this._batch=null,this._size=0)}}class P8 extends Ta{constructor(r,c){super(r),this._buffer=new b5(r.model,c),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const c=this.editor.model,u=c.document,_=r.text||"",C=_.length;let M=u.selection;if(r.selection?M=r.selection:r.range&&(M=c.createSelection(r.range)),!c.canEditAt(M))return;const E=r.resultRange;c.enqueueChange(this._buffer.batch,N=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(N.createText(_,u.selection.getAttributes()),M),E?N.setSelection(E):M.is("documentSelection")||N.setSelection(M),this._buffer.unlock(),this._buffer.input(C)})}}const S8=["insertText","insertReplacementText"];class Vb extends Mu{constructor(r){super(r),this.focusObserver=r.getObserver(V1),D_isAndroid&&S8.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:C,targetRanges:M,inputType:E,domEvent:N}=_;if(!S8.includes(E))return;this.focusObserver.flush();const j=new ct(c,"insertText");c.fire(j,new jd(r,N,{text:C,selection:r.createSelection(M)})),j.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:C})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new jd(r,C,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class jb extends lo{static get pluginName(){return"Input"}init(){const r=this.editor,c=r.model,u=r.editing.view,_=c.document.selection;u.addObserver(Vb);const C=new P8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",C),r.commands.add("input",C),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:N,selection:j,resultRange:W}=E,dt=Array.from(j.getRanges()).map(xe=>r.editing.mapper.toModelRange(xe));let Zt=N;if(D_isAndroid){const xe=Array.from(dt[0].getItems()).reduce((Ee,ln)=>Ee+(ln.is("$textProxy")?ln.data:""),"");xe&&(xe.length<=Zt.length?Zt.startsWith(xe)&&(Zt=Zt.substring(xe.length),dt[0].start=dt[0].start.getShiftedBy(xe.length)):xe.startsWith(Zt)&&(dt[0].start=dt[0].start.getShiftedBy(Zt.length),Zt=""))}const ue={text:Zt,selection:c.createSelection(dt)};W&&(ue.resultRange=r.editing.mapper.toModelRange(W)),r.execute("insertText",ue),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&C5(c,C)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||C5(c,C)})}}function C5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class lf extends Ta{constructor(r,c){super(r),this.direction=c,this._buffer=new b5(r.model,r.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(r={}){const c=this.editor.model,u=c.document;c.enqueueChange(this._buffer.batch,_=>{this._buffer.lock();const C=_.createSelection(r.selection||u.selection);if(!c.canEditAt(C))return;const M=r.sequence||1,E=C.isCollapsed;if(C.isCollapsed&&c.modifySelection(C,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(C,M))return void this.editor.execute("paragraph",{selection:C});if(C.isCollapsed)return;let N=0;C.getFirstRange().getMinimalFlatRanges().forEach(j=>{N+=ne(j.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(C,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(N),_.setSelection(C),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const c=this.editor.model,u=c.document.selection,_=c.schema.getLimitElement(u);if(!u.isCollapsed||!u.containsEntireContent(_)||!c.schema.checkChild(_,"paragraph"))return!1;const C=_.getChild(0);return!C||!C.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),C=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(C,_),r.setSelection(C,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),C=u.schema.getLimitElement(_),M=C.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(C,"paragraph")&&"paragraph"!=M.name}}const n2="selection",Nh="backward",Za="forward",Jb={deleteContent:{unit:n2,direction:Nh},deleteContentBackward:{unit:"codePoint",direction:Nh},deleteWordBackward:{unit:"word",direction:Nh},deleteHardLineBackward:{unit:n2,direction:Nh},deleteSoftLineBackward:{unit:n2,direction:Nh},deleteContentForward:{unit:"character",direction:Za},deleteWordForward:{unit:"word",direction:Za},deleteHardLineForward:{unit:n2,direction:Za},deleteSoftLineForward:{unit:n2,direction:Za}};class Qb extends Mu{constructor(r){super(r);const c=r.document;let u=0;c.on("keydown",()=>{u++}),c.on("keyup",()=>{u=0}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:N}=C,j=Jb[N];if(!j)return;const W={direction:j.direction,unit:j.unit,sequence:u};W.unit==n2&&(W.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===N&&(D_isAndroid&&(W.sequence=1),function(Zt){if(1!=Zt.length||Zt[0].isCollapsed)return!1;const ue=Zt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let xe=0;for(const{nextPosition:Ee}of ue){if(Ee.parent.is("$text")){const ln=Ee.parent.data,Mn=Ee.offset;if(cn(ln,Mn)||fd(ln,Mn)||Ml(ln,Mn))continue;xe++}else xe++;if(xe>1)return!0}return!1}(M)&&(W.unit=n2,W.selectionToRemove=r.createSelection(M)));const dt=new yp(c,"delete",M[0]);c.fire(dt,new jd(r,E,W)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const C=_.view,M=C.document;let E=null,N=!1;function j(dt){return dt==$a.backspace||dt==$a.delete}function W(dt){return dt==$a.backspace?Nh:Za}M.on("keydown",(dt,{keyCode:Zt})=>{E=Zt,N=!1}),M.on("keyup",(dt,{keyCode:Zt,domEvent:ue})=>{const xe=M.selection,Ee=_.isEnabled&&Zt==E&&j(Zt)&&!xe.isCollapsed&&!N;if(E=null,Ee){const ln=xe.getFirstRange(),Mn=new yp(M,"delete",ln),di={unit:n2,direction:W(Zt),selectionToRemove:xe};M.fire(Mn,new jd(C,ue,di))}}),M.on("beforeinput",(dt,{inputType:Zt})=>{const ue=Jb[Zt];j(E)&&ue&&ue.direction==W(E)&&(N=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Zt,data:ue})=>{E==$a.delete&&"insertText"==Zt&&"\x7f"==ue&&dt.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class t_ extends lo{static get pluginName(){return"Delete"}init(){const r=this.editor,c=r.editing.view,u=c.document,_=r.model.document;c.addObserver(Qb),this._undoOnBackspace=!1;const C=new lf(r,"forward");r.commands.add("deleteForward",C),r.commands.add("forwardDelete",C),r.commands.add("delete",new lf(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:N,sequence:j,selectionToRemove:W,unit:dt}=E,Zt="forward"===N?"deleteForward":"delete",ue={sequence:j};if("selection"==dt){const xe=Array.from(W.getRanges()).map(Ee=>r.editing.mapper.toModelRange(Ee));ue.selection=r.model.createSelection(xe)}else ue.unit=dt;r.execute(Zt,ue),c.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(u,"delete",(M,E)=>{this._undoOnBackspace&&"backward"==E.direction&&1==E.sequence&&"codePoint"==E.unit&&(this._undoOnBackspace=!1,r.execute("undo"),E.preventDefault(),M.stop())},{context:"$capture"}),this.listenTo(_,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class L8 extends lo{static get requires(){return[jb,t_]}static get pluginName(){return"Typing"}}function w4(m,r){let c=m.start;return{text:Array.from(m.getWalker({ignoreElementEnd:!1})).reduce((u,{item:_})=>_.is("$text")||_.is("$textProxy")?u+_.data:(c=r.createPositionAfter(_),""),""),range:r.createRange(c,m.end)}}class Wb extends(we()){constructor(r,c){super(),this.model=r,this.testCallback=c,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(r.document.selection),this.stopListening(r.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const r=this.model.document;this.listenTo(r.selection,"change:range",(c,{directChange:u})=>{u&&(r.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(r,"change:data",(c,u)=>{!u.isUndo&&u.isLocal&&this._evaluateTextBeforeSelection("data",{batch:u})})}_evaluateTextBeforeSelection(r,c={}){const u=this.model,_=u.document.selection,C=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=w4(C,u),N=this.testCallback(M);if(!N&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!N,N){const j=Object.assign(c,{text:M,range:E});"object"==typeof N&&Object.assign(j,N),this.fire(`matched:${r}`,j)}}}class x5 extends lo{constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const r=this.editor,_=r.locale,C=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!C.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const N=E.keyCode==$a.arrowright,j=E.keyCode==$a.arrowleft;if(!N&&!j)return;const W=_.contentLanguageDirection;let dt=!1;dt="ltr"===W&&N||"rtl"===W&&j?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(C,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&z0(C.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const c=this.attributes,u=this.editor.model.document.selection,_=u.getFirstPosition();return!(this._isGravityOverridden||_.isAtStart&&U4(u,c)||!z0(_,c)||(oa(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,C=_.getFirstPosition();return this._isGravityOverridden?(oa(r),this._restoreGravity(),Zd(u,c,C),!0):C.isAtStart?!!U4(_,c)&&(oa(r),Zd(u,c,C),!0):(E=c,!(!z0(C.getShiftedBy(-1),E)||(C.isAtEnd&&!U4(_,c)&&z0(C,c)?(oa(r),Zd(u,c,C),0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),1))));var E}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function U4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function Zd(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const C=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,N]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||C.push([E,N]);_.setSelectionAttribute(C)}else _.removeSelectionAttribute(r)})}function oa(m){m.preventDefault()}function z0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const C=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==C)return!0}return!1}const A5={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:$d('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:$d("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:$d("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:$d('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:$d('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:$d("'"),to:[null,"\u201a",null,"\u2019"]}},Z4={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},y5=["symbols","mathematical","typography","quotes"];function fl(m){return"string"==typeof m?new RegExp(`(${u5(m)})$`):m}function M4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function T5(m){return(m.textNode?m.textNode:m.nodeAfter).getAttributes()}function $d(m){return new RegExp(`(^|\\s)(${m})([^${m}]*)(${m})$`)}function Ti(m,r,c,u){return u.createRange(zn(m,r,c,!0,u),zn(m,r,c,!1,u))}function zn(m,r,c,u,_){let C=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;C&&C.getAttribute(r)==c;)M=C,C=u?C.previousSibling:C.nextSibling;return M?_.createPositionAt(M,u?"before":"after"):m}function*H(m,r){for(const c of r)c&&m.getAttributeProperties(c[0]).copyOnEnter&&(yield c)}class qh extends Ta{execute(){this.editor.model.change(r=>{this.enterBlock(r),this.fire("afterExecute",{writer:r})})}enterBlock(r){const c=this.editor.model,u=c.document.selection,_=c.schema,C=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,N=M.end.parent;if(_.isLimit(E)||_.isLimit(N))return C||E!=N||c.deleteContent(u),!1;if(C){const j=H(r.model.schema,u.getAttributes());return Oc(r,M.start),r.setSelectionAttribute(j),!0}{const j=!(M.start.isAtStart&&M.end.isAtEnd),W=E==N;if(c.deleteContent(u,{leaveUnmerged:j}),j){if(W)return Oc(r,u.focus),!0;r.setSelection(N,0)}}return!1}}function Oc(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const iy={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class k4 extends Mu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,C)=>{u=C.shiftKey}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;let M=C.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=C.domEvent,N=iy[M];if(!N)return;const j=new yp(c,"enter",C.targetRanges[0]);c.fire(j,new jd(r,E,{isSoft:N.isSoft})),j.stop.called&&_.stop()})}observe(){}stopObserving(){}}class Y0 extends lo{static get pluginName(){return"Enter"}init(){const r=this.editor,c=r.editing.view,u=c.document;c.addObserver(k4),r.commands.add("enter",new qh(r)),this.listenTo(u,"enter",(_,C)=>{u.isComposing||C.preventDefault(),C.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class oy extends Ta{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,C,M){const E=M.isCollapsed,N=M.getFirstRange(),W=N.end.parent,dt=N.start.parent==W;if(E){const Zt=H(_.schema,M.getAttributes());Ma(_,C,N.end),C.removeSelectionAttribute(M.getAttributeKeys()),C.setSelectionAttribute(Zt)}else{const Zt=!(N.start.isAtStart&&N.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Zt}),dt?Ma(_,C,M.focus):Zt&&C.setSelection(W,0)}})(r,u,c.selection),this.fire("afterExecute",{writer:u})})}refresh(){const r=this.editor.model;this.isEnabled=function(u,_){if(_.rangeCount>1)return!1;const C=_.anchor;if(!C||!u.checkChild(C,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,N=M.end.parent;return!((D4(E,u)||D4(N,u))&&E!==N)}(r.schema,r.document.selection)}}function Ma(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function D4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||D4(m.parent,r))}class O8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,C=_.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),u.for("upcast").elementToElement({model:"softBreak",view:"br"}),u.for("downcast").elementToElement({model:"softBreak",view:(M,{writer:E})=>E.createEmptyElement("br")}),_.addObserver(k4),r.commands.add("shiftEnter",new oy(r)),this.listenTo(C,"enter",(M,E)=>{C.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class $b extends(Le()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const C=u[0];_===C||e_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const C=u[0];_===C||e_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(C=>C.id===r.id);if(e_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&E8(c[_],r);)_++;c.splice(_,0,r)}_removeDescriptor(r){const c=this._stack,u=c.findIndex(_=>_.id===r);u>-1&&c.splice(u,1)}}function e_(m,r){return m&&r&&m.priority==r.priority&&uf(m.classes)==uf(r.classes)}function E8(m,r){return m.priority>r.priority||!(m.priorityuf(r.classes)}function uf(m){return Array.isArray(m)?m.sort().join(","):m}const Kb="ck-widget_selected";function Pl(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function df(m,r,c={}){if(!m.is("containerElement"))throw new it("widget-to-widget-wrong-element-type",null,{element:m});return r.setAttribute("contenteditable","false",m),r.addClass("ck-widget",m),r.setCustomProperty("widget",!0,m),m.getFillerOffset=I8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const C=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),N=new Ps;return N.set("content",''),N.render(),E.appendChild(N.element),E});_.insert(_.createPositionAt(u,0),C),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),w5(m,r),m;var _}function F8(m,r,c){if(r.classes&&c.addClass(Ds(r.classes),m),r.attributes)for(const u in r.attributes)c.setAttribute(u,r.attributes[u],m)}function Xb(m,r,c){if(r.classes&&c.removeClass(Ds(r.classes),m),r.attributes)for(const u in r.attributes)c.removeAttribute(u,m)}function w5(m,r,c=F8,u=Xb){const _=new $b;_.on("change:top",(C,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(C,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(C,M,E)=>_.remove(M,E),m)}function U5(m,r,c={}){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],m),r.setAttribute("role","textbox",m),c.label&&r.setAttribute("aria-label",c.label,m),r.setAttribute("contenteditable",m.isReadOnly?"false":"true",m),m.on("change:isReadOnly",(u,_,C)=>{r.setAttribute("contenteditable",C?"false":"true",m)}),m.on("change:isFocused",(u,_,C)=>{C?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),w5(m,r),m}function P4(m,r){const c=m.getSelectedElement();if(c){const u=nd(m);if(u)return r.createRange(r.createPositionAt(c,u))}return G2(m,r)}function I8(){return null}const i_="widget-type-around";function op(m,r,c){return!!m&&Pl(m)&&!c.isInline(r)}function nd(m){return m.getAttribute(i_)}var tC=b(4921);Io()(tC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const nC=["before","after"],S4=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,L4="ck-widget__type-around_disabled";class iC extends lo{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Y0,t_]}init(){const r=this.editor,c=r.editing.view;this.on("change:isEnabled",(u,_,C)=>{c.change(M=>{for(const E of c.document.roots)C?M.removeClass(L4,E):M.addClass(L4,E)}),C||r.model.change(M=>{M.removeSelectionAttribute(i_)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(r,c){const u=this.editor,_=u.editing.view,C=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:C}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...C)=>{this.isEnabled&&u(...C)},_)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,c=nd(r);if(!c)return!1;const u=r.getSelectedElement();return this._insertParagraph(u,c),!0}_enableTypeAroundUIInjection(){const r=this.editor,c=r.model.schema,u=r.locale.t,_={before:u("Insert paragraph before block"),after:u("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(C,M,E)=>{const N=E.mapper.toViewElement(M.item);N&&op(N,M.item,c)&&(function(j,W,dt){const Zt=j.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(ue){const xe=this.toDomElement(ue);return function(Ee,ln){for(const Mn of nC){const di=new wr({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Mn}`],title:ln[Mn],"aria-hidden":"true"},children:[Ee.ownerDocument.importNode(S4,!0)]});Ee.appendChild(di.render())}}(xe,W),function(Ee){const ln=new wr({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Ee.appendChild(ln.render())}(xe),xe});j.insert(j.createPositionAt(dt,"end"),Zt)}(E.writer,_,N),N.getCustomProperty("widgetLabel").push(()=>this.isEnabled?u("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,c=r.model,u=c.document.selection,_=c.schema;function M(E){return`ck-widget_type-around_show-fake-caret_${E}`}this._listenToIfEnabled(r.editing.view.document,"arrowKey",(E,N)=>{this._handleArrowKeyPress(E,N)},{context:[Pl,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,N)=>{N.directChange&&r.model.change(j=>{j.removeSelectionAttribute(i_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&op(r.editing.mapper.toViewElement(E),E,_)||r.model.change(N=>{N.removeSelectionAttribute(i_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,N,j)=>{const W=j.writer;if(this._currentFakeCaretModelElement){const xe=j.mapper.toViewElement(this._currentFakeCaretModelElement);xe&&(W.removeClass(nC.map(M),xe),this._currentFakeCaretModelElement=null)}const dt=N.selection.getSelectedElement();if(!dt)return;const Zt=j.mapper.toViewElement(dt);if(!op(Zt,dt,_))return;const ue=nd(N.selection);ue&&(W.addClass(M(ue),Zt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,N,j)=>{j||r.model.change(W=>{W.removeSelectionAttribute(i_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,C=_.document.selection,M=_.schema,E=u.editing.view,N=function(dt,Zt){const ue=d1(dt,Zt);return"down"===ue||"right"===ue}(c.keyCode,u.locale.contentLanguageDirection),j=E.document.selection.getSelectedElement();let W;op(j,u.editing.mapper.toModelElement(j),M)?W=this._handleArrowKeyPressOnSelectedWidget(N):C.isCollapsed?W=this._handleArrowKeyPressWhenSelectionNextToAWidget(N):c.shiftKey||(W=this._handleArrowKeyPressWhenNonCollapsedSelection(N)),W&&(c.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const c=this.editor.model,u=nd(c.document.selection);return c.change(_=>u?u!==(r?"after":"before")&&(_.removeSelectionAttribute(i_),!0):(_.setSelectionAttribute(i_,r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const c=this.editor,u=c.model,_=u.schema,C=c.plugins.get("Widget"),M=C._getObjectElementNextToSelection(r);return!!op(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{C._setSelectionOverElement(M),E.setSelectionAttribute(i_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,C=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!op(C.toViewElement(E),E,_)&&(u.change(N=>{N.setSelection(E,"on"),N.setSelectionAttribute(i_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const C=_.domTarget.closest(".ck-widget__type-around__button");if(!C)return;const M=C.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(j,W){const dt=j.closest(".ck-widget");return W.mapDomToView(dt)}(C,c.domConverter),N=r.editing.mapper.toModelElement(E);this._insertParagraph(N,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,C)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),N=r.model.schema;let j;this._insertParagraphAccordingToFakeCaretPosition()?j=!0:op(E,M,N)&&(this._insertParagraph(M,C.isSoft?"before":"after"),j=!0),j&&(C.preventDefault(),_.stop())},{context:Pl})}_enableInsertingParagraphsOnTypingKeystroke(){const r=this.editor.editing.view.document;this._listenToIfEnabled(r,"insertText",(c,u)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(u.selection=r.selection)},{priority:"high"}),D_isAndroid?this._listenToIfEnabled(r,"keydown",(c,u)=>{229==u.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(r,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const r=this.editor,u=r.model,_=u.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(C,M)=>{if("atTarget"!=C.eventPhase)return;const E=nd(u.document.selection);if(!E)return;const N=M.direction,j=u.document.selection.getSelectedElement(),W="forward"==N;if("before"===E===W)r.execute("delete",{selection:u.createSelection(j,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(j,E),N);if(dt)if(dt.isCollapsed){const Zt=u.createSelection(dt.start);if(u.modifySelection(Zt,{direction:N}),Zt.focus.isEqual(dt.start)){const ue=function(xe,Ee){let ln=Ee;for(const Mn of Ee.getAncestors({parentFirst:!0})){if(Mn.childCount>1||xe.isLimit(Mn))break;ln=Mn}return ln}(_,dt.start.parent);u.deleteContent(u.createSelection(ue,"on"),{doNotAutoparagraph:!0})}else u.change(ue=>{ue.setSelection(dt),r.execute(W?"deleteForward":"delete")})}else u.change(Zt=>{Zt.setSelection(dt),r.execute(W?"deleteForward":"delete")})}M.preventDefault(),C.stop()},{context:Pl})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[C,M])=>{if(M&&!M.is("documentSelection"))return;const E=nd(u);return E?(_.stop(),c.change(N=>{const j=u.getSelectedElement(),W=c.createPositionAt(j,E),dt=N.createSelection(W),Zt=c.insertContent(C,dt);return N.setSelection(dt),Zt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,C,M={}]=_;if(C&&!C.is("documentSelection"))return;const E=nd(c);E&&(M.findOptimalPosition=E,_[3]=M)},{priority:"high"})}_enableDeleteContentIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(u,[_])=>{_&&!_.is("documentSelection")||nd(c)&&u.stop()},{priority:"high"})}}function aC(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),C="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:N}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(N==C&&u.isBlock(E))return null}return null}function pf(m,r,c){const u="backward"==c?r.end:r.start;if(m.checkChild(u,"$text"))return u;for(const{nextPosition:_}of r.getWalker({direction:c}))if(m.checkChild(_,"$text"))return _;return null}var Rh=b(3488);Io()(Rh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class B0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[iC,t_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{const E=M.writer,N=C.selection;if(N.isCollapsed)return;const j=N.getSelectedElement();if(!j)return;const W=r.editing.mapper.toViewElement(j);var dt;Pl(W)&&M.consumable.consume(N,"selection")&&E.setSelection(E.createRangeOn(W),{fake:!0,label:(dt=W,dt.getCustomProperty("widgetLabel").reduce((Zt,ue)=>"function"==typeof ue?Zt?Zt+". "+ue():ue():Zt?Zt+". "+ue:ue,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,N=E.document.selection;let j=null;for(const W of N.getRanges())for(const dt of W){const Zt=dt.item;Pl(Zt)&&!N8(Zt,j)&&(E.addClass(Kb,Zt),this._previouslySelected.add(Zt),j=Zt)}},{priority:"low"}),c.addObserver(vh),this.listenTo(u,"mousedown",(..._)=>this._onMousedown(..._)),this.listenTo(u,"arrowKey",(..._)=>{this._handleSelectionChangeOnArrowKeyPress(..._)},{context:[Pl,"$text"]}),this.listenTo(u,"arrowKey",(..._)=>{this._preventDefaultOnArrowKeyPress(..._)},{context:"$root"}),this.listenTo(u,"arrowKey",function oC(m){const r=m.model;return(c,u)=>{const C=u.keyCode==$a.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=$a.arrowup&&!C)return;const N=C;if(M&&!(W=E).isCollapsed&&W.isBackward==N)return;var W;const j=function(W,dt,Zt){const ue=W.model;if(Zt){const xe=dt.isCollapsed?dt.focus:dt.getLastPosition(),Ee=aC(ue,xe,"forward");if(!Ee)return null;const ln=ue.createRange(xe,Ee),Mn=pf(ue.schema,ln,"backward");return Mn?ue.createRange(xe,Mn):null}{const xe=dt.isCollapsed?dt.focus:dt.getFirstPosition(),Ee=aC(ue,xe,"backward");if(!Ee)return null;const ln=ue.createRange(Ee,xe),Mn=pf(ue.schema,ln,"forward");return Mn?ue.createRange(Mn,xe):null}}(m,E,N);if(j){if(j.isCollapsed&&(E.isCollapsed||M))return;(j.isCollapsed||function(W,dt,Zt){const ue=W.model,xe=W.view.domConverter;if(Zt){const Ri=ue.createSelection(dt.start);ue.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=ue.createRange(Ri.focus,dt.end))}const Ee=W.mapper.toViewRange(dt),ln=xe.viewRangeToDom(Ee),Mn=ce.getDomRangeRects(ln);let di;for(const Ri of Mn)if(void 0!==di){if(Math.round(Ri.top)>=di)return!1;di=Math.max(di,Math.round(Ri.bottom))}else di=Math.round(Ri.bottom);return!0}(m,j,N))&&(r.change(W=>{const dt=N?j.end:j.start;if(M){const Zt=r.createSelection(E.anchor);Zt.setFocus(dt),W.setSelection(Zt)}else W.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,C)=>{this._handleDelete("forward"==C.direction)&&(C.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,C=_.document;let M=c.target;if(function(N){let j=N;for(;j;){if(j.is("editableElement")&&!j.is("rootElement"))return!0;if(Pl(j))return!1;j=j.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const N=u.editing.mapper,j=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,W=N.toModelElement(j);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(W,"in")})}return}if(!Pl(M)&&(M=M.findAncestor(Pl),!M))return;D_isAndroid&&c.preventDefault(),C.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,C=_.schema,M=_.document.selection,E=M.getSelectedElement(),N=d1(u,this.editor.locale.contentLanguageDirection),j="down"==N||"right"==N,W="up"==N||"down"==N;if(E&&C.isObject(E)){const Zt=j?M.getLastPosition():M.getFirstPosition(),ue=C.getNearestSelectionRange(Zt,j?"forward":"backward");return void(ue&&(_.change(xe=>{xe.setSelection(ue)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Zt=M.getFirstPosition(),ue=M.getLastPosition(),xe=Zt.nodeAfter,Ee=ue.nodeBefore;return void((xe&&C.isObject(xe)||Ee&&C.isObject(Ee))&&(_.change(ln=>{ln.setSelection(j?ue:Zt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(j);if(dt&&C.isObject(dt)){if(C.isInline(dt)&&W)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,C=u.document.selection.getSelectedElement();C&&_.isObject(C)&&(c.preventDefault(),r.stop())}_handleDelete(r){const c=this.editor.model.document.selection;if(!this.editor.model.canEditAt(c)||!c.isCollapsed)return;const u=this._getObjectElementNextToSelection(r);return u?(this.editor.model.change(_=>{let C=c.anchor.parent;for(;C.isEmpty;){const M=C;C=M.parent,_.remove(M)}this._setSelectionOverElement(u)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(c=>{c.setSelection(c.createRangeOn(r))})}_getObjectElementNextToSelection(r){const c=this.editor.model,u=c.schema,_=c.document.selection,C=c.createSelection(_);if(c.modifySelection(C,{direction:r?"forward":"backward"}),C.isEqual(_))return null;const M=r?C.focus.nodeBefore:C.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass(Kb,c);this._previouslySelected.clear()}}function N8(m,r){return!!r&&Array.from(m.getAncestors()).includes(r)}class V0 extends lo{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[E0]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const c=r.plugins.get("BalloonToolbar");this.listenTo(c,"show",u=>{(function(_){const C=_.getSelectedElement();return!(!C||!Pl(C))})(r.editing.view.document.selection)&&u.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:c,items:u,getRelatedElement:_,balloonClassName:C="ck-toolbar-container"}){if(!u.length)return void Tt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,N=new ys(M.locale);if(N.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new it("widget-toolbar-duplicated",this,{toolbarId:r});const j={view:N,getRelatedElement:_,balloonClassName:C,itemsConfig:u,initialized:!1};M.ui.addToolbar(N,{isContextual:!0,beforeFocus:()=>{const W=_(M.editing.view.document.selection);W&&this._showToolbar(j,W)},afterBlur:()=>{this._hideToolbar(j)}}),this._toolbarDefinitions.set(r,j)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const C=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&C)if(this.editor.ui.focusTracker.isFocused){const M=C.getAncestors().length;M>r&&(r=M,c=C,u=_)}else this._isToolbarVisible(_)&&this._hideToolbar(_);else this._isToolbarInBalloon(_)&&this._hideToolbar(_)}u&&this._showToolbar(u,c)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,c){this._isToolbarVisible(r)?Z5(this.editor,c):this._isToolbarInBalloon(r)||(r.initialized||(r.initialized=!0,r.view.fillFromConfig(r.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:r.view,position:M5(this.editor,c),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const u of this._toolbarDefinitions.values())if(this._isToolbarVisible(u)){const _=u.getRelatedElement(this.editor.editing.view.document.selection);Z5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function Z5(m,r){const c=m.plugins.get("ContextualBalloon"),u=M5(m,r);c.updatePosition(u)}function M5(m,r){const u=td.defaultPositions;return{target:m.editing.view.domConverter.mapViewToDom(r),positions:[u.northArrowSouth,u.northArrowSouthWest,u.northArrowSouthEast,u.southArrowNorth,u.southArrowNorthWest,u.southArrowNorthEast,u.viewportStickyNorth]}}we(),we();var sC=b(8506);Io()(sC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const D5=vo("px");class q8 extends aa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",r.if("isVisible","ck-hidden",c=>!c)],style:{left:r.to("left",c=>D5(c)),top:r.to("top",c=>D5(c)),width:r.to("width",c=>D5(c))}}})}}class P5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=Tr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=U0(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=U0(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new q8,this._domEmitter=new(eo()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:r}of this._scrollables.values())r.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(r,c,u,_,C){this.removeDropMarkerDelayed.cancel();const M=cC(this.editor,r,c,u,_,C);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,C){const M=cC(this.editor,r,c,u,_,C);return this.removeDropMarker(),M}removeDropMarker(){const r=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,r.markers.has("drop-target")&&r.change(c=>{c.removeMarker("drop-target")})}_setupDropMarker(){const r=this.editor;r.ui.view.body.add(this._dropTargetLineView),r.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),r.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(c,{writer:u})=>{if(r.model.schema.checkChild(c.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(u);c.markerRange.isCollapsed?this._updateDropTargetLine(c.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(r){const c=this.editor,u=c.model.markers;c.model.change(_=>{u.has("drop-target")?u.get("drop-target").getRange().isEqual(r)||_.updateMarker("drop-target",{range:r}):_.addMarker("drop-target",{range:r,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(r){return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(c){const u=this.toDomElement(c);return u.append("\u2060",c.createElement("span"),"\u2060"),u})}_updateDropTargetLine(r){const c=this.editor.editing,u=r.start.nodeBefore,_=r.start.nodeAfter,C=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,N=_?c.mapper.toViewElement(_):null,j=N?c.view.domConverter.mapViewToDom(N):null,W=c.mapper.toViewElement(C),dt=c.view.domConverter.mapViewToDom(W),Zt=this._getScrollableRect(W),{scrollX:ue,scrollY:xe}=Mt.window,Ee=E?new ce(E):null,ln=j?new ce(j):null,Mn=new ce(dt).excludeScrollbarsAndBorders(),di=Ee?Ee.bottom:Mn.top,Ri=ln?ln.top:Mn.bottom,Jo=Mt.window.getComputedStyle(dt),Da=di<=Ri?(di+Ri)/2:Ri;if(Zt.topZt.is("element")&&!ay(m,Zt));let W=0,dt=j.length;if(0==dt)return M.createRange(M.createPositionAt(N,"end"));for(;Wr in m?lC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class z8 extends lo{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(eo())}static get pluginName(){return"DragDropBlockToolbar"}init(){const r=this.editor;if(this.listenTo(r,"change:isReadOnly",(c,u,_)=>{_?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),D_isAndroid&&this.forceDisabled("noAndroidSupport"),r.plugins.has("BlockToolbar")){const c=r.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(c,"dragstart",(u,_)=>this._handleBlockDragStart(_)),this._domEmitter.listenTo(Mt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,C)=>{c.setAttribute("draggable",C?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,C=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(C[0]),c.createPositionAfter(C[C.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(Ih).onDomEvent(r)}_handleBlockDragging(r){if(!this.isEnabled||!this._isBlockDragging)return;const c=r.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),u=r.clientY,_=document.elementFromPoint(c,u),C=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&C.getObserver(Ih).onDomEvent((M=((N,j)=>{for(var W in j||(j={}))H8.call(j,W)&&dC(N,W,j[W]);if(mf)for(var W of mf(j))S5.call(j,W)&&dC(N,W,j[W]);return N})({},r),R8(M,uC({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var pC=b(903);Io()(pC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class _C extends lo{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Tr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(eo())}static get pluginName(){return"DragDrop"}static get requires(){return[Rp,B0,P5,z8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(Ih),c.addObserver(vh),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,C)=>{C?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,C)=>{C||this._finalizeDragging(!1)}),D_isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=r.plugins.get(P5);this.listenTo(_,"dragstart",(M,E)=>{if(E.target&&E.target.is("editableElement")||(this._prepareDraggedRange(E.target),!this._draggedRange))return void E.preventDefault();this._draggingUid=Dt(),E.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",E.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const N=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,N,"dragstart");const{dataTransfer:j,domTarget:W,domEvent:dt}=E,{clientX:Zt}=dt;this._updatePreview({dataTransfer:j,domTarget:W,clientX:Zt}),E.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(_,"dragend",(M,E)=>{this._finalizeDragging(!E.dataTransfer.isCanceled&&"move"==E.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Mt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{C.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:N,clientY:j}=E.domEvent;C.updateDropMarker(E.target,E.targetRanges,N,j,this._blockMode),this._draggedRange||(E.dataTransfer.dropEffect="copy"),D_isGecko||("copy"==E.dataTransfer.effectAllowed?E.dataTransfer.dropEffect="copy":["all","copyMove"].includes(E.dataTransfer.effectAllowed)&&(E.dataTransfer.dropEffect="move")),M.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get(P5);this.listenTo(c,"clipboardInput",(_,C)=>{if("drop"!=C.method)return;const{clientX:M,clientY:E}=C.domEvent,N=u.getFinalDropRange(C.target,C.targetRanges,M,E,this._blockMode);return N?(this._draggedRange&&this._draggingUid!=C.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==fC(C.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(N,!0)?(this._finalizeDragging(!1),void _.stop()):void(C.targetRanges=[r.editing.mapper.toViewRange(N)])):(this._finalizeDragging(!1),void _.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const r=this.editor.plugins.get(Rp);r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _=u.targetRanges.map(C=>this.editor.editing.mapper.toModelRange(C));this.editor.model.change(C=>C.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==fC(u.dataTransfer);this._finalizeDragging((!u.resultRange||!u.resultRange.isCollapsed)&&_)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const r=this.editor,c=r.editing.view,u=c.document;this.listenTo(u,"mousedown",(_,C)=>{if(D_isAndroid||!C)return;this._clearDraggableAttributesDelayed.cancel();let M=_f(C.target);if(D_isBlink&&!r.isReadOnly&&!M&&!u.selection.isCollapsed){const E=u.selection.getSelectedElement();E&&Pl(E)||(M=u.selection.editableElement)}M&&(c.change(E=>{E.setAttribute("draggable","true",M)}),this._draggableElement=r.editing.mapper.toModelElement(M))}),this.listenTo(u,"mouseup",()=>{D_isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const r=this.editor.editing;r.view.change(c=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&c.removeAttribute("draggable",r.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(r){const c=this.editor,u=c.model;c.plugins.get(P5).removeDropMarker(),this._clearDraggableAttributes(),c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(r&&this.isEnabled&&u.change(_=>{const C=u.createSelection(this._draggedRange);u.deleteContent(C,{doNotAutoparagraph:!0});const M=C.getFirstPosition().parent;M.isEmpty&&!u.schema.checkChild(M,"$text")&&u.schema.checkChild(M,"paragraph")&&_.insertElement("paragraph",M,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(r){const c=this.editor,u=c.model,_=u.document.selection,C=r?_f(r):null;if(C){const j=c.editing.mapper.toModelElement(C);return this._draggedRange=Ad.fromRange(u.createRangeOn(j)),this._blockMode=u.schema.isBlock(j),void(c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(_.isCollapsed&&!_.getFirstPosition().parent.isEmpty)return;const M=Array.from(_.getSelectedBlocks()),E=_.getFirstRange();if(0==M.length)return void(this._draggedRange=Ad.fromRange(E));const N=hC(u,M);if(M.length>1)this._draggedRange=Ad.fromRange(N),this._blockMode=!0;else if(1==M.length){const j=E.start.isTouching(N.start)&&E.end.isTouching(N.end);this._draggedRange=Ad.fromRange(j?N:E),this._blockMode=j}u.change(j=>j.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Mt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=We(Mt.document,"div",{style:"position: fixed; left: -999999px;"}),Mt.document.body.appendChild(this._previewContainer));const N=new ce(M);if(M.contains(c))return;const j=parseFloat(E.paddingLeft),W=We(Mt.document,"div");W.className="ck ck-content",W.style.width=E.width,W.style.paddingLeft=`${N.left-u+j}px`,D_isiOS&&(W.style.backgroundColor="white"),W.innerHTML=r.getData("text/html"),r.setDragImage(W,0,0),this._previewContainer.appendChild(W)}}function fC(m){return D_isGecko?m.dropEffect:["all","copyMove"].includes(m.effectAllowed)?"move":"copy"}function _f(m){if(m.is("editableElement"))return null;if(m.hasClass("ck-widget__selection-handle"))return m.findAncestor(Pl);if(Pl(m))return m;const r=m.findAncestor(c=>Pl(c)||c.is("editableElement"));return Pl(r)?r:null}function hC(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),C=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),N=C.isTouching(E.start),j=M.isTouching(E.end);if(N&&j)return hC(m,[_])}return m.createRange(C,M)}class gC extends lo{static get pluginName(){return"PastePlainText"}static get requires(){return[Rp]}init(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=c.document.selection;let M=!1;u.addObserver(Ih),this.listenTo(_,"keydown",(E,N)=>{M=N.shiftKey}),r.plugins.get(Rp).on("contentInsertion",(E,N)=>{(M||function(j,W){if(j.childCount>1)return!1;const dt=j.getChild(0);return!W.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(N.content,c.schema))&&c.change(j=>{const W=Array.from(C.getAttributes()).filter(([Zt])=>c.schema.getAttributeProperties(Zt).isFormatting);C.isCollapsed||c.deleteContent(C,{doNotAutoparagraph:!0}),W.push(...C.getAttributes());const dt=j.createRangeIn(N.content);for(const Zt of dt.getItems())Zt.is("$textProxy")&&j.setAttributes(W,Zt)})})}}class vC extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Rp,_C,gC]}}class L5 extends Ta{constructor(r){super(r),this.affectsData=!1}execute(){const r=this.editor.model,c=r.document.selection;let u=r.schema.getLimitElement(c);if(c.containsEntireContent(u)||!bC(r.schema,u))do{if(u=u.parent,!u)return}while(!bC(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function bC(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const CC=Xs("Ctrl+A");class Y8 extends lo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,c=r.editing.view.document;r.commands.add("selectAll",new L5(r)),this.listenTo(c,"keydown",(u,_)=>{xc(_)===CC&&(r.execute("selectAll"),_.preventDefault())})}}class E4 extends lo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",c=>{const u=r.commands.get("selectAll"),_=new Hr(c);return _.set({label:(0,c.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),_.bind("isEnabled").to(u,"isEnabled"),this.listenTo(_,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),_})}}class B8 extends lo{static get requires(){return[Y8,E4]}static get pluginName(){return"SelectAll"}}var xC=Object.defineProperty,O5=Object.getOwnPropertySymbols,V8=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,yC=(m,r,c)=>r in m?xC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Hh extends Ta{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((C,M)=>{for(var E in M||(M={}))V8.call(M,E)&&yC(C,E,M[E]);if(O5)for(var E of O5(M))AC.call(M,E)&&yC(C,E,M[E]);return C})({},u[1]);const _=u[1];_.batchType||(_.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(r.data,"set",(c,u)=>{u[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(r){const c=this.editor.model.document.selection,u={ranges:c.hasOwnRange?Array.from(c.getRanges()):[],isBackward:c.isBackward};this._stack.push({batch:r,selection:u}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,c,u){const _=this.editor.model,C=_.document,M=[],E=r.map(j=>j.getTransformedByOperations(u)),N=E.flat();for(const j of E){const W=j.filter(dt=>dt.root!=C.graveyard).filter(dt=>!TC(dt,N));W.length&&(j8(W),M.push(W[0]))}M.length&&_.change(j=>{j.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const C=r.operations.slice().filter(M=>M.isDocumentOperation);C.reverse();for(const M of C){const N=Array.from(_.history.getOperations(M.baseVersion+1)),j=J_([M.getReversed()],N,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let W of j){const dt=W.affectedSelectable;dt&&!u.canEditAt(dt)&&(W=new Ys(W.baseVersion)),c.addOperation(W),u.applyOperation(W),_.history.setOperationAsUndone(M,W)}}}}function j8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class wC extends Hh{execute(r=null){const c=r?this._stack.findIndex(C=>C.batch==r):this._stack.length-1,u=this._stack.splice(c,1)[0],_=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(_,()=>{this._undo(u.batch,_);const C=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,C)}),this.fire("revert",u.batch,_),this.refresh()}}class G8 extends Hh{execute(){const r=this._stack.pop(),c=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(c,()=>{const _=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,_),this._undo(r.batch,c)}),this.refresh()}}class J8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new wC(r),this._redoCommand=new G8(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(c,u)=>{const _=u[0];if(!_.isDocumentOperation)return;const C=_.batch,M=this._redoCommand.createdBatches.has(C),E=this._undoCommand.createdBatches.has(C);this._batchRegistry.has(C)||(this._batchRegistry.add(C),C.isUndoable&&(M?this._undoCommand.addBatch(C):E||(this._undoCommand.addBatch(C),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(c,u,_)=>{this._redoCommand.addBatch(_)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}const E5='',UC='';class Q8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?E5:UC,C="ltr"==c.uiLanguageDirection?UC:E5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",C)}_addButton(r,c,u,_){const C=this.editor;C.ui.componentFactory.add(r,M=>{const E=C.commands.get(r),N=new Hr(M);return N.set({label:c,icon:_,keystroke:u,tooltip:!0}),N.bind("isEnabled").to(E,"isEnabled"),this.listenTo(N,"execute",()=>{C.execute(r),C.editing.view.focus()}),N})}}class ZC extends lo{static get requires(){return[J8,Q8]}static get pluginName(){return"Undo"}}class MC extends(we()){constructor(){super();const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=c=>{this.loaded=c.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const c=this._reader;return this.total=r.size,new Promise((u,_)=>{c.onload=()=>{const C=c.result;this._data=C,u(C)},c.onerror=()=>{_("error")},c.onabort=()=>{_("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}class ap extends lo{constructor(){super(...arguments),this.loaders=new tc,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[W2]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,c)=>c?r/c*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return Tt("filerepository-no-upload-adapter"),null;const c=new F4(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(c),this._loadersMap.set(r,c),r instanceof Promise&&c.file.then(u=>{this._loadersMap.set(u,c)}).catch(()=>{}),c.on("change:uploaded",()=>{let u=0;for(const _ of this.loaders)u+=_.uploaded;this.uploaded=u}),c.on("change:uploadTotal",()=>{let u=0;for(const _ of this.loaders)_.uploadTotal&&(u+=_.uploadTotal);this.uploadTotal=u}),c}destroyLoader(r){const c=r instanceof F4?r:this.getLoader(r);c._destroy(),this.loaders.remove(c),this._loadersMap.forEach((u,_)=>{u===c&&this._loadersMap.delete(_)})}_updatePendingAction(){const r=this.editor.plugins.get(W2);if(this.loaders.length){if(!this._pendingAction){const c=this.editor.t,u=_=>`${c("Upload in progress")} ${parseInt(_)}%.`;this._pendingAction=r.add(u(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",u)}}else r.remove(this._pendingAction),this._pendingAction=null}}class F4 extends(we()){constructor(r,c){super(),this.id=Dt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new MC,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(u,_)=>_?u/_*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new it("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new it("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const c={};return c.promise=new Promise((u,_)=>{c.rejecter=_,c.isFulfilled=!1,r.then(C=>{c.isFulfilled=!0,u(C)}).catch(C=>{c.isFulfilled=!0,_(C)})}),c}}class F5 extends aa{constructor(r){super(r),this.buttonView=new Hr(r),this._fileInputView=new W8(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class W8 extends aa{constructor(r){super(r),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:c.to("acceptedType"),multiple:c.to("allowMultipleFiles")},on:{change:c.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const kC="abcdefghijklmnopqrstuvwxyz0123456789";class $8{constructor(r,c,u){this.loader=r,this.url=c,this.t=u}upload(){return this.loader.file.then(r=>new Promise((c,u)=>{this._initRequest(),this._initListeners(c,u,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,c,u){const _=this.xhr,C=this.loader,M=(0,this.t)("Cannot upload file:")+` ${u.name}.`;_.addEventListener("error",()=>c(M)),_.addEventListener("abort",()=>c()),_.addEventListener("load",()=>{const E=_.response;if(!E||!E.uploaded)return c(E&&E.error&&E.error.message?E.error.message:M);r({default:E.url})}),_.upload&&_.upload.addEventListener("progress",E=>{E.lengthComputable&&(C.uploadTotal=E.total,C.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function DC(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const C of _){const M=C.split("=");if(decodeURIComponent(M[0].trim().toLowerCase())===u)return decodeURIComponent(M[1])}return null}("ckCsrfToken");var c;return m&&40==m.length||(m=function(u){let _="";const C=new Uint8Array(40);window.crypto.getRandomValues(C);for(let M=0;M.5?E.toUpperCase():E}return _}(),c=m,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(c)+";path=/"),m}()),this.xhr.send(c)}}function Hp(m,r,c,u){let _,C=null;"function"==typeof u?_=u:(C=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(C&&!C.isEnabled||!r.isEnabled)return;const N=os(m.model.document.selection.getRanges());if(!N.isCollapsed||E.isUndo||!E.isLocal)return;const j=Array.from(m.model.document.differ.getChanges()),W=j[0];if(1!=j.length||"insert"!==W.type||"$text"!=W.name||1!=W.length)return;const dt=W.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||C&&!0===C.value)return;const Zt=dt.getChild(0),ue=m.model.createRangeOn(Zt);if(!ue.containsRange(N)&&!N.end.isEqual(ue.end))return;const xe=c.exec(Zt.data.substr(0,N.end.offset));xe&&m.model.enqueueChange(Ee=>{const ln=Ee.createPositionAt(dt,0),Mn=Ee.createPositionAt(dt,xe[0].length),di=new Ad(ln,Mn);if(!1!==_({match:xe})){Ee.remove(di);const Ri=m.model.document.selection.getFirstRange(),Jo=Ee.createRangeIn(dt);!dt.isEmpty||Jo.isEqual(Ri)||Jo.containsRange(Ri,!0)||Ee.remove(dt)}di.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function o2(m,r,c,u){let _,C;c instanceof RegExp?_=c:C=c,C=C||(M=>{let E;const N=[],j=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:W,1:dt,2:Zt,3:ue}=E;W+=E[0].length-(dt+Zt+ue).length;const ln=[W+dt.length+Zt.length,W+dt.length+Zt.length+ue.length];N.push([W,W+dt.length]),N.push(ln),j.push([W+dt.length,W+dt.length+Zt.length])}return{remove:N,format:j}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const N=m.model,j=N.document.selection;if(!j.isCollapsed)return;const W=Array.from(N.document.differ.getChanges()),dt=W[0];if(1!=W.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Zt=j.focus,ue=Zt.parent,{text:xe,range:Ee}=function(Ri,Jo){let Da=Ri.start;return{text:Array.from(Ri.getItems()).reduce(($r,Sl)=>!Sl.is("$text")&&!Sl.is("$textProxy")||Sl.getAttribute("code")?(Da=Jo.createPositionAfter(Sl),""):$r+Sl.data,""),range:Jo.createRange(Da,Ri.end)}}(N.createRange(N.createPositionAt(ue,0),Zt),N),ln=C(xe),Mn=I5(Ee.start,ln.format,N),di=I5(Ee.start,ln.remove,N);Mn.length&&di.length&&N.enqueueChange(Ri=>{if(!1!==u(Ri,Mn)){for(const Jo of di.reverse())Ri.remove(Jo);N.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function I5(m,r,c){return r.filter(u=>void 0!==u[0]&&void 0!==u[1]).map(u=>c.createRange(m.getShiftedBy(u[0]),m.getShiftedBy(u[1])))}function zh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const C of _)c.setAttribute(r,!0,C);c.removeSelectionAttribute(r)}}class PC extends Ta{constructor(r,c){super(r),this.attributeKey=c}refresh(){const r=this.editor.model,c=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,this.attributeKey)}execute(r={}){const c=this.editor.model,u=c.document.selection,_=void 0===r.forceValue?!this.value:r.forceValue;c.change(C=>{if(u.isCollapsed)_?C.setSelectionAttribute(this.attributeKey,!0):C.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?C.setAttribute(this.attributeKey,_,E):C.removeAttribute(this.attributeKey,E)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,c=r.schema,u=r.document.selection;if(u.isCollapsed)return u.hasAttribute(this.attributeKey);for(const _ of u.getRanges())for(const C of _.getItems())if(c.checkAttribute(C,this.attributeKey))return C.hasAttribute(this.attributeKey);return!1}}const Yh="bold";class N5 extends lo{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Yh}),r.model.schema.setAttributeProperties(Yh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Yh,view:"strong",upcastAlso:["b",c=>{const u=c.getStyle("font-weight");return u&&("bold"==u||Number(u)>=600)?{name:!0,styles:["font-weight"]}:null}]}),r.commands.add(Yh,new PC(r,Yh)),r.keystrokes.set("CTRL+B",Yh)}}const q5="bold";class R5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(q5,u=>{const _=r.commands.get(q5),C=new Hr(u);return C.set({label:c("Bold"),icon:fs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(q5),r.editing.view.focus()}),C})}}var ff=b(8603);Io()(ff.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Bh="italic";class K8 extends lo{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Bh}),r.model.schema.setAttributeProperties(Bh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Bh,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Bh,new PC(r,Bh)),r.keystrokes.set("CTRL+I",Bh)}}const J0="italic";class q4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(J0,u=>{const _=r.commands.get(J0),C=new Hr(u);return C.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(J0),r.editing.view.focus()}),C})}}class X8 extends Ta{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,C=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const N=C.filter(j=>_a(j)||H5(u,j));this._applyQuote(E,N)}else this._removeQuote(E,C.filter(_a))})}_getValue(){const r=os(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!_a(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=os(this.editor.model.document.selection.getSelectedBlocks());return!!u&&H5(c,u)}_removeQuote(r,c){hi(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const C=r.createPositionBefore(u.start.parent);return void r.move(u,C)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];hi(r,c).reverse().forEach(_=>{let C=_a(_.start);C||(C=r.createElement("blockQuote"),r.wrap(_,C)),u.push(C)}),u.reverse().reduce((_,C)=>_.nextSibling==C?(r.merge(r.createPositionAfter(_)),_):C)}}function _a(m){return"blockQuote"==m.parent.name?m.parent:null}function hi(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const N of E)if("insert"==N.type){const j=N.position.nodeAfter;if(!j)continue;if(j.is("element","blockQuote")&&j.isEmpty)return M.remove(j),!0;if(j.is("element","blockQuote")&&!c.checkChild(N.position,j))return M.unwrap(j),!0;if(j.is("element")){const W=M.createRangeIn(j);for(const dt of W.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==N.type){const j=N.position.parent;if(j.is("element","blockQuote")&&j.isEmpty)return M.remove(j),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,C=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!C.value||_.getLastPosition().parent.isEmpty&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"}),this.listenTo(u,"delete",(M,E)=>{if("backward"!=E.direction||!_.isCollapsed||!C.value)return;const N=_.getLastPosition().parent;N.isEmpty&&!N.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var R4=b(3062);Io()(R4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class LC extends lo{static get pluginName(){return"BlockQuoteUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("blockQuote",u=>{const _=r.commands.get("blockQuote"),C=new Hr(u);return C.set({label:c("Block quote"),icon:fs.quote,tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),C})}}class OC extends lo{static get pluginName(){return"CKBoxUI"}afterInit(){const r=this.editor,c=r.commands.get("ckbox");if(!c)return;const u=r.t;r.ui.componentFactory.add("ckbox",_=>{const C=new Hr(_);return C.set({label:u("Open file manager"),icon:'',tooltip:!0}),C.bind("isOn","isEnabled").to(c,"value","isEnabled"),C.on("execute",()=>{r.execute("ckbox")}),C})}}function EC(m){const r=[];let c=0;for(const _ in m){const C=parseInt(_,10);isNaN(C)||(C>c&&(c=C),r.push(`${m[_]} ${_}w`))}const u=[{srcset:r.join(","),sizes:`(max-width: ${c}px) 100vw, ${c}px`,type:"image/webp"}];return{imageFallbackUrl:m.default,imageSources:u}}class tA extends Ta{constructor(r){super(r),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");return!(!r.isEnabled&&!c.isEnabled)}_prepareOptions(){const r=this.editor.config.get("ckbox");return{theme:r.theme,language:r.language,tokenUrl:r.tokenUrl,serviceOrigin:r.serviceOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:c=>this.fire("ckbox:choose",c)}}}_initListeners(){const r=this.editor,c=r.model,u=!r.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=We(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(_,C)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),N=function({assets:j,isImageAllowed:W,isLinkAllowed:dt}){return j.map(Zt=>function(ue){const xe=ue.data.metadata;return!!xe&&xe.width&&xe.height}(Zt)?{id:Zt.data.id,type:"image",attributes:eA(Zt)}:{id:Zt.data.id,type:"link",attributes:nA(Zt)}).filter(Zt=>"image"===Zt.type?W:dt)}({assets:C,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==N.length&&c.change(j=>{for(const W of N)this._insertAsset(W,W===N[N.length-1],j),u&&(setTimeout(()=>this._chosenAssets.delete(W),1e3),this._chosenAssets.add(W))})}),this.listenTo(r,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(r,c,u){const _=this.editor.model.document.selection;u.removeSelectionAttribute("linkHref"),"image"===r.type?this._insertImage(r):this._insertLink(r,u),c||u.setSelection(_.getLastPosition())}_insertImage(r){const c=this.editor,{imageFallbackUrl:u,imageSources:_,imageTextAlternative:C}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:C}})}_insertLink(r,c){const u=this.editor,_=u.model,C=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(C.isCollapsed){const N=Jc(C.getAttributes()),j=c.createText(M,N),W=_.insertContent(j);c.setSelection(W)}u.execute("link",E)}}function eA(m){const{imageFallbackUrl:r,imageSources:c}=EC(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function nA(m){return{linkName:m.data.name,linkHref:Y5(m)}}function Y5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Vh=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(j){_(j)}},M=N=>{try{E(c.throw(N))}catch(j){_(j)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class FC extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ap,B5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Vh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ap),C=r.plugins.get(B5);_.createUploadAdapter=N=>new IC(N,C.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(N,{imageElement:j,data:W})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",W.ckboxImageId,j)})})})}}class IC{constructor(r,c,u){this.loader=r,this.token=c,this.editor=u,this.controller=new AbortController,this.serviceOrigin=u.config.get("ckbox.serviceOrigin")}getWorkspaceId(){const r=(0,this.editor.t)("Cannot access default workspace."),c=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),u=function(_,C){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),N=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return C?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||N.includes(C)?C:null:N[0]}(this.token,c);if(null==u)throw At("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Vh(this,null,function*(){const c=new URL("categories",this.serviceOrigin);return c.searchParams.set("limit",50..toString()),c.searchParams.set("offset",r.toString()),c.searchParams.set("workspaceId",this.getWorkspaceId()),this._sendHttpRequest({url:c}).then(u=>Vh(this,null,function*(){if(u.totalCount-(r+50)>0){const _=yield this.getAvailableCategories(r+50);return[...u.items,..._]}return u.items})).catch(()=>{this.controller.signal.throwIfAborted(),At("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Vh(this,null,function*(){const c=function(M){const E=new RegExp("\\.(?[^.]+)$");return M.match(E).groups.ext.toLowerCase()}(r.name),u=yield this.getAvailableCategories();if(!u)return null;const _=this.editor.config.get("ckbox.defaultUploadCategories");if(_){const M=Object.keys(_).find(E=>_[E].find(N=>N.toLowerCase()==c));if(M){const E=u.find(N=>N.id===M||N.name===M);return E?E.id:null}}const C=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return C?C.id:null})}upload(){return Vh(this,null,function*(){const r=this.editor.t,c=r("Cannot determine a category for the uploaded file."),u=yield this.loader.file,_=yield this.getCategoryIdForFile(u);if(!_)return Promise.reject(c);const C=new URL("assets",this.serviceOrigin),M=new FormData;return C.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:C,data:M,onUploadProgress:N=>{N.lengthComputable&&(this.loader.uploadTotal=N.total,this.loader.uploaded=N.loaded)}}).then(N=>Vh(this,null,function*(){const j=EC(N.imageUrls);return{ckboxImageId:N.id,default:j.imageFallbackUrl,sources:j.imageSources}})).catch(()=>{const N=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(N)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const C=this.controller.signal,M=new XMLHttpRequest;M.open(c,r.toString(),!0),M.setRequestHeader("Authorization",this.token.value),M.setRequestHeader("CKBox-Version","CKEditor 5"),M.responseType="json";const E=()=>{M.abort()};return new Promise((N,j)=>{C.addEventListener("abort",E),M.addEventListener("loadstart",()=>{C.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{C.removeEventListener("abort",E)}),M.addEventListener("error",()=>{j()}),M.addEventListener("abort",()=>{j()}),M.addEventListener("load",()=>Vh(this,null,function*(){const W=M.response;return!W||W.statusCode>=400?j(W&&W.message):N(W)})),_&&M.upload.addEventListener("progress",W=>{_(W)}),M.send(u)})}}class B5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",FC]}init(){return r=this,u=function*(){const _=this.editor,C=!!_.config.get("ckbox"),M=!!window.CKBox;if(!C&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),N=_.config.get("ckbox.tokenUrl");if(N===_.config.get("cloudServices.tokenUrl")){const j=_.plugins.get("CloudServices");this._token=j.token}else this._token=yield E.createToken(N).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new tA(_))},new Promise((_,C)=>{var M=j=>{try{N(u.next(j))}catch(W){C(W)}},E=j=>{try{N(u.throw(j))}catch(W){C(W)}},N=j=>j.done?_(j.value):Promise.resolve(j.value).then(M,E);N((u=u.apply(r,null)).next())});var r,u}getToken(){return this._token}_initConfig(){const r=this.editor;if(r.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:r.locale.uiLanguage,theme:"default",tokenUrl:r.config.get("cloudServices.tokenUrl")}),!r.config.get("ckbox.tokenUrl"))throw new it("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||At("ckbox-plugin-image-feature-missing",r)}_initSchema(){const r=this.editor.model.schema;r.extend("$text",{allowAttributes:"ckboxLinkId"}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.addAttributeCheck((c,u)=>{if(!c.last.getAttribute("linkHref")&&"ckboxLinkId"===u)return!1})}_initConversion(){const r=this.editor;r.conversion.for("downcast").add(c=>{c.on("attribute:ckboxLinkId:imageBlock",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(!N.consume(_.item,u.name))return;const j=[...E.toViewElement(_.item).getChildren()].find(W=>"a"===W.name);j&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),j):M.removeAttribute("data-ckbox-resource-id",j))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(N.consume(_.item,u.name)){if(_.attributeOldValue){const j=oA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),j)}if(_.attributeNewValue){const j=oA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),j):M.wrap(E.toViewRange(_.range),j)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,C)=>{const{writer:M,consumable:E}=C;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const N=_.viewItem.getAttribute("data-ckbox-resource-id");if(N)if(_.modelRange)for(let j of _.modelRange.getItems())j.is("$textProxy")&&(j=j.textNode),aA(j)&&M.setAttribute("ckboxLinkId",N,j);else M.setAttribute("ckboxLinkId",N,_.modelCursor.nodeBefore||_.modelCursor.parent)},{priority:"low"})}),r.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),r.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:c=>c.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const r=this.editor,c=r.model,u=c.document.selection;var _;c.document.registerPostFixer((_=r,C=>{let M=!1;const E=_.model,N=_.commands.get("ckbox");if(!N)return M;for(const j of E.document.differ.getChanges()){if("insert"!==j.type&&"attribute"!==j.type)continue;const W="insert"===j.type?new Oi(j.position,j.position.getShiftedBy(j.length)):j.range,dt="attribute"===j.type&&"linkHref"===j.attributeKey&&null===j.attributeNewValue;for(const Zt of W.getItems()){if(dt&&Zt.hasAttribute("ckboxLinkId")){C.removeAttribute("ckboxLinkId",Zt),M=!0;continue}const ue=iA(Zt,N._chosenAssets);for(const xe of ue){const Ee="image"===xe.type?"ckboxImageId":"ckboxLinkId";xe.id!==Zt.getAttribute(Ee)&&(C.setAttribute(Ee,xe.id,Zt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return C=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(C.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function iA(m,r){const c=m.is("element","imageInline")||m.is("element","imageBlock"),u=m.hasAttribute("linkHref");return[...r].filter(_=>"image"===_.type&&c?_.attributes.imageFallbackUrl===m.getAttribute("src"):"link"===_.type&&u?_.attributes.linkHref===m.getAttribute("linkHref"):void 0)}function oA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function aA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class NC extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const C=r.commands.get("ckfinder"),M=new Hr(_);return M.set({label:u("Insert image or file"),icon:'',tooltip:!0}),M.bind("isEnabled").to(C),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class qC extends Ta{constructor(r){super(r),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");this.isEnabled=r.isEnabled||c.isEnabled}execute(){const r=this.editor,c=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=c&&"modal"!=c)throw new it("ckfinder-unknown-openermethod",r);const u=this.editor.config.get("ckfinder.options")||{};u.chooseFiles=!0;const _=u.onInit;u.language||(u.language=r.locale.uiLanguage),u.onInit=C=>{_&&_(C),C.on("files:choose",M=>{const E=M.data.files.toArray(),N=E.filter(dt=>!dt.isImage()),j=E.filter(dt=>dt.isImage());for(const dt of N)r.execute("link",dt.getUrl());const W=[];for(const dt of j){const Zt=dt.getUrl();W.push(Zt||C.request("file:getProxyUrl",{file:dt}))}W.length&&V5(r,W)}),C.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)V5(r,[E]);else{const N=r.plugins.get("Notification"),j=r.locale.t;N.showWarning(j("Could not obtain resized image URL."),{title:j("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function V5(m,r){if(m.commands.get("insertImage").isEnabled)m.execute("insertImage",{source:r});else{const c=m.plugins.get("Notification"),u=m.locale.t;c.showWarning(u("Could not insert image at the current position."),{title:u("Inserting image failed"),namespace:"ckfinder"})}}class RC extends lo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[rf,"LinkEditing"]}init(){const r=this.editor;if(!r.plugins.has("ImageBlockEditing")&&!r.plugins.has("ImageInlineEditing"))throw new it("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new qC(r))}}class rA extends lo{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",ap]}init(){const r=this.editor,c=r.plugins.get("CloudServices"),u=c.token,_=c.uploadUrl;if(!u)return;const C=r.plugins.get("CloudServicesCore");this._uploadGateway=C.createUploadGateway(u,_),r.plugins.get(ap).createUploadAdapter=M=>new sA(this._uploadGateway,M)}}class sA{constructor(r,c){this.uploadGateway=r,this.loader=c}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(c,u)=>{this.loader.uploadTotal=u.total,this.loader.uploaded=u.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class j5 extends Ta{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=os(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&HC(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(C=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&HC(E,c.schema)&&C.rename(E,"paragraph")})}}function HC(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class cA extends Ta{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(C=>{if(_=this._findPositionToInsertParagraph(_,C),!_)return;const M=C.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,C),c.insertContent(M,_),C.setSelection(M,"in")})}_findPositionToInsertParagraph(r,c){const u=this.editor.model;if(u.schema.checkChild(r,"paragraph"))return r;const _=u.schema.findAllowedParent(r,"paragraph");if(!_)return null;const C=r.parent,M=u.schema.checkChild(C,"$text");return C.isEmpty||M&&r.isAtEnd?u.createPositionAfter(C):!C.isEmpty&&M&&r.isAtStart?u.createPositionBefore(C):c.split(r,_).position}}const G5=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new j5(m)),m.commands.add("insertParagraph",new cA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>G5.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let J5=G5;J5.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Q0 extends Ta{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=os(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>H4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(C=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>H4(E,_,c.schema));for(const E of M)E.is("element",_)||C.rename(E,_)})}}function H4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const Q5="paragraph";class W5 extends lo{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[J5]}init(){const r=this.editor,c=r.config.get("heading.options"),u=[];for(const _ of c)"paragraph"!==_.model&&(r.model.schema.register(_.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(_),u.push(_.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new Q0(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,C)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",Q5)&&0===M.childCount&&C.writer.rename(M,Q5)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Pt.low+1})}}var $5=b(8733);Io()($5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class YC extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,N={Paragraph:E("Paragraph"),"Heading 1":E("Heading 1"),"Heading 2":E("Heading 2"),"Heading 3":E("Heading 3"),"Heading 4":E("Heading 4"),"Heading 5":E("Heading 5"),"Heading 6":E("Heading 6")};return M.config.get("heading.options").map(j=>{const W=N[j.title];return W&&W!=j.title&&(j.title=W),j})}(r),_=c("Choose heading"),C=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},N=new tc,j=r.commands.get("heading"),W=r.commands.get("paragraph"),dt=[j];for(const ue of u){const xe={type:"button",model:new L0({label:ue.title,class:ue.class,role:"menuitemradio",withText:!0})};"paragraph"===ue.model?(xe.model.bind("isOn").to(W,"value"),xe.model.set("commandName","paragraph"),dt.push(W)):(xe.model.bind("isOn").to(j,"value",Ee=>Ee===ue.model),xe.model.set({commandName:"heading",commandValue:ue.model})),N.add(xe),E[ue.model]=ue.title}const Zt=D1(M);return Eu(Zt,N,{ariaLabel:C,role:"menu"}),Zt.buttonView.set({ariaLabel:C,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:C}),Zt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Zt.bind("isEnabled").toMany(dt,"isEnabled",(...ue)=>ue.some(xe=>xe)),Zt.buttonView.bind("label").to(j,"value",W,"value",(ue,xe)=>{const Ee=ue||xe&&"paragraph";return"boolean"==typeof Ee?_:E[Ee]?E[Ee]:_}),this.listenTo(Zt,"execute",ue=>{const{commandName:xe,commandValue:Ee}=ue.source;r.execute(xe,Ee?{value:Ee}:void 0),r.editing.view.focus()}),Zt})}}function BC(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function lA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return C=>c.isInlineImageView(C)?u&&("block"==C.getStyle("display")||C.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(C){const M={name:!0};return C.hasAttribute("src")&&(M.attributes=["src"]),M}(C):null}function ca(m,r){const c=os(r.getSelectedBlocks());return!c||m.isObject(c)||c.isEmpty&&"listItem"!=c.name?"imageBlock":"imageInline"}function W0(m){return m&&m.endsWith("px")?parseInt(m):null}function K5(m){const r=W0(m.getStyle("width")),c=W0(m.getStyle("height"));return!(!r||!c)}var z4=Object.defineProperty,VC=Object.getOwnPropertySymbols,$0=Object.prototype.hasOwnProperty,uA=Object.prototype.propertyIsEnumerable,Y4=(m,r,c)=>r in m?z4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,id=(m,r)=>{for(var c in r||(r={}))$0.call(r,c)&&Y4(m,c,r[c]);if(VC)for(var c of VC(r))uA.call(r,c)&&Y4(m,c,r[c]);return m};const dA=/^(image|image-inline)$/;class Md extends lo{constructor(){super(...arguments),this._domEmitter=new(eo())}static get pluginName(){return"ImageUtils"}isImage(r){return this.isInlineImage(r)||this.isBlockImage(r)}isInlineImageView(r){return!!r&&r.is("element","img")}isBlockImageView(r){return!!r&&r.is("element","figure")&&r.hasClass("image")}insertImage(r={},c=null,u=null,_={}){const C=this.editor,M=C.model,E=M.document.selection;u=jh(C,c||E,u),r=id(id({},Object.fromEntries(E.getAttributes())),r);for(const N in r)M.schema.checkAttribute(u,N)||delete r[N];return M.change(N=>{const{setImageSizes:j=!0}=_,W=N.createElement(u,r);return M.insertObject(W,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),W.parent?(j&&this.setImageNaturalSizeAttributes(W),W):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Mt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,C=>{C.setAttribute("width",_.naturalWidth,r),C.setAttribute("height",_.naturalHeight,r)}),this._domEmitter.stopListening(_,"load")}),_.src=c}))}getClosestSelectedImageWidget(r){const c=r.getFirstPosition();if(!c)return null;const u=r.getSelectedElement();if(u&&this.isImageWidget(u))return u;let _=c.parent;for(;_;){if(_.is("element")&&this.isImageWidget(_))return _;_=_.parent}return null}getClosestSelectedImageElement(r){const c=r.getSelectedElement();return this.isImage(c)?c:r.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(r){return r.findAncestor({classes:dA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==jh(c,u,null)){const C=function(M,E){const j=P4(M,E).start.parent;return j.isEmpty&&!j.is("element","$root")?j.parent:j}(u,c.model);if(c.model.schema.checkChild(C,"imageBlock"))return!0}else if(c.model.schema.checkChild(u.focus,"imageInline"))return!0;return!1}(this.editor,r)&&[...r.focus.getAncestors()].every(u=>!u.is("element","imageBlock"))}toImageWidget(r,c,u){return c.setCustomProperty("image",!0,r),df(r,c,{label:()=>{const _=this.findViewImgElement(r).getAttribute("alt");return _?`${_} ${u}`:u}})}isImageWidget(r){return!!r.getCustomProperty("image")&&Pl(r)}isBlockImage(r){return!!r&&r.is("element","imageBlock")}isInlineImage(r){return!!r&&r.is("element","imageInline")}findViewImgElement(r){if(this.isInlineImageView(r))return r;const c=this.editor.editing.view;for(const{item:u}of c.createRangeIn(r))if(this.isInlineImageView(u))return u}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function jh(m,r,c){const u=m.model.schema,_=m.config.get("image.insert.type");return m.plugins.has("ImageBlockEditing")?m.plugins.has("ImageInlineEditing")?c||("inline"===_?"imageInline":"block"===_?"imageBlock":r.is("selection")?ca(u,r):u.checkChild(r,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class X5 extends Ta{refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!(!this.isEnabled||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_=c.model,C=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,C)})}}class jC extends lo{static get requires(){return[Md]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new X5(this.editor))}}var GC=b(1905);Io()(GC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var X0=b(6764);Io()(X0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class JC extends aa{constructor(r){super(r);const c=this.locale.t;this.focusTracker=new as,this.keystrokes=new Gc,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),fs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),fs.cancel,"ck-button-cancel","cancel"),this._focusables=new Fa,this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),x({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(r,c,u,_){const C=new Hr(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createLabeledInputView(){const r=this.locale.t,c=new Dr(this.locale,K2);return c.label=r("Text alternative"),c}}function tv(m){const r=m.editing.view,c=td.defaultPositions,u=m.plugins.get("ImageUtils");return{target:r.domConverter.mapViewToDom(u.getClosestSelectedImageWidget(r.document.selection)),positions:[c.northArrowSouth,c.northArrowSouthWest,c.northArrowSouthEast,c.southArrowNorth,c.southArrowNorthWest,c.southArrowNorthEast,c.viewportStickyNorth]}}class QC extends lo{static get requires(){return[E0]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageTextAlternative",u=>{const _=r.commands.get("imageTextAlternative"),C=new Hr(u);return C.set({label:c("Change image text alternative"),icon:fs.lowVision,tooltip:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>!!M),this.listenTo(C,"execute",()=>{this._showForm()}),C})}_createForm(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(A(JC))(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(_,C)=>{this._hideForm(!0),C()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const C=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=tv(_);C.updatePosition(M)}}(r):this._hideForm(!0)}),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const r=this.editor,c=r.commands.get("imageTextAlternative"),u=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:tv(r)}),u.fieldView.value=u.fieldView.element.value=c.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(r=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class B4 extends lo{static get requires(){return[jC,QC]}static get pluginName(){return"ImageTextAlternative"}}function V4(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewElement(_.item),N=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",N),M.removeAttribute("sizes",N)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,N),M.setAttribute("sizes","100vw",N))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function j4(m,r,c){const u=(_,C,M)=>{if(!M.consumable.consume(C.item,_.name))return;const E=M.writer,N=M.mapper.toViewElement(C.item),j=m.findViewImgElement(N);E.setAttribute(C.attributeKey,C.attributeNewValue||"",j)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class mA extends Mu{observe(r){this.listenTo(r,"load",(c,u)=>{const _=u.target;this.checkShouldIgnoreEventFromTarget(_)||"IMG"==_.tagName&&this._fireEvents(u)},{useCapture:!0})}stopObserving(r){this.stopListening(r)}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}var ry=Object.defineProperty,t3=Object.getOwnPropertySymbols,ev=Object.prototype.hasOwnProperty,nv=Object.prototype.propertyIsEnumerable,G4=(m,r,c)=>r in m?ry(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Gh=(m,r)=>{for(var c in r||(r={}))ev.call(r,c)&&G4(m,c,r[c]);if(t3)for(var c of t3(r))nv.call(r,c)&&G4(m,c,r[c]);return m};class iv extends Ta{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Tt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Tt("image-inline-plugin-required")}refresh(){const r=this.editor.plugins.get("ImageUtils");this.isEnabled=r.isImageAllowed()}execute(r){const c=Ds(r.source),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&N&&_.isImage(N)){const j=this.editor.model.createPositionAfter(N);_.insertImage(Gh(Gh({},M),C),j)}else _.insertImage(Gh(Gh({},M),C))})}}class _A extends Ta{refresh(){const r=this.editor.plugins.get("ImageUtils"),c=this.editor.model.document.selection.getSelectedElement();this.isEnabled=r.isImage(c),this.value=this.isEnabled?c.getAttribute("src"):null}execute(r){const c=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(u=>{u.setAttribute("src",r.source,c),u.removeAttribute("srcset",c),u.removeAttribute("sizes",c)})}}class ov extends lo{static get requires(){return[Md]}static get pluginName(){return"ImageEditing"}init(){const r=this.editor,c=r.conversion;r.editing.view.addObserver(mA),c.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const u=new iv(r),_=new _A(r);r.commands.add("insertImage",u),r.commands.add("replaceImageSource",_),r.commands.add("imageInsert",u)}}class av extends lo{static get requires(){return[Md]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_="imageBlock"===r?"figure":"img";function C(M,E,N,j){M.on(`attribute:${E}:${r}`,(W,dt,Zt)=>{if(!Zt.consumable.consume(dt.item,W.name))return;const ue=Zt.writer,xe=Zt.mapper.toViewElement(dt.item),Ee=u.findViewImgElement(xe);if(null!==dt.attributeNewValue?ue.setAttribute(N,dt.attributeNewValue,Ee):ue.removeAttribute(N,Ee),dt.item.hasAttribute("sources"))return;const ln=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!ln&&!j)return;const Mn=dt.item.getAttribute("width"),di=dt.item.getAttribute("height"),Ri=Ee.getStyle("aspect-ratio");Mn&&di&&!Ri&&ue.setStyle("aspect-ratio",`${Mn}/${di}`,Ee)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>K5(M)?W0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>K5(M)?W0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{C(M,"width","width",!0),C(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{C(M,"width","width",!1),C(M,"height","height",!1)})}}class rv extends Ta{constructor(r,c){super(r),this._modelElementName=c}refresh(){const r=this.editor.plugins.get("ImageUtils"),c=r.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?r.isInlineImage(c):r.isBlockImage(c)}execute(r={}){const u=this.editor.model,_=this.editor.plugins.get("ImageUtils"),C=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(C.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:N=!0}=r,j=Array.from(u.markers).filter(Zt=>Zt.getRange().containsItem(C)),W=_.insertImage(M,u.createSelection(C,"on"),this._modelElementName,{setImageSizes:N});if(!W)return null;const dt=E.createRangeOn(W);for(const Zt of j){const ue=Zt.getRange(),xe="$graveyard"!=ue.root.rootName?ue.getJoined(dt,!0):dt;E.updateMarker(Zt,{range:xe})}return{oldElement:C,newElement:W}}):null}}class e3 extends lo{static get requires(){return[ov,av,Md,Rp]}static get pluginName(){return"ImageBlockEditing"}init(){const r=this.editor;r.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),r.plugins.has("ImageInlineEditing")&&(r.commands.add("imageTypeBlock",new rv(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>BC(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>_.toImageWidget(BC(M),M,c("image widget"))}),u.for("downcast").add(j4(_,"imageBlock","src")).add(j4(_,"imageBlock","alt")).add(V4(_,"imageBlock")),u.for("upcast").elementToElement({view:lA(r,"imageBlock"),model:(C,{writer:M})=>M.createElement("imageBlock",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)}).add(function(C){const M=(E,N,j)=>{if(!j.consumable.test(N.viewItem,{name:!0,classes:"image"}))return;const W=C.findViewImgElement(N.viewItem);if(!W||!j.consumable.test(W,{name:!0}))return;j.consumable.consume(N.viewItem,{name:!0,classes:"image"});const dt=os(j.convertItem(W,N.modelCursor).modelRange.getItems());dt?(j.convertChildren(N.viewItem,dt),j.updateConversionResult(dt,N)):j.consumable.revert(N.viewItem,{name:!0,classes:"image"})};return E=>{E.on("element:figure",M)}}(_))}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let j;if(!N.every(_.isInlineImageView))return;j=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(j);if("imageBlock"===ca(c.schema,W)){const dt=new X1(u.document),Zt=N.map(ue=>dt.createElement("figure",{class:"image"},ue));E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const j=N.createRangeIn(E.content);for(const W of j.getItems())W.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(W)})})}}var J4=b(3508);Io()(J4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class WC extends lo{static get requires(){return[e3,B0,B4]}static get pluginName(){return"ImageBlock"}}class $C extends lo{static get requires(){return[ov,av,Md,Rp]}static get pluginName(){return"ImageInlineEditing"}init(){const r=this.editor,c=r.model.schema;c.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),c.addChildCheck((u,_)=>{if(u.endsWith("caption")&&"imageInline"===_.name)return!1}),this._setupConversion(),r.plugins.has("ImageBlockEditing")&&(r.commands.add("imageTypeInline",new rv(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToElement({model:"imageInline",view:(C,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(C,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add(j4(_,"imageInline","src")).add(j4(_,"imageInline","alt")).add(V4(_,"imageInline")),u.for("upcast").elementToElement({view:lA(r,"imageInline"),model:(C,{writer:M})=>M.createElement("imageInline",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let j;if(!N.every(_.isBlockImageView))return;j=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(j);if("imageInline"===ca(c.schema,W)){const dt=new X1(u.document),Zt=N.map(ue=>1===ue.childCount?(Array.from(ue.getAttributes()).forEach(xe=>dt.setAttribute(...xe,_.findViewImgElement(ue))),ue.getChild(0)):ue);E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const j=N.createRangeIn(E.content);for(const W of j.getItems())W.is("element","imageInline")&&_.setImageNaturalSizeAttributes(W)})})}}class fA extends lo{static get requires(){return[$C,B0,B4]}static get pluginName(){return"ImageInline"}}class n3 extends lo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Md]}getCaptionFromImageModelElement(r){for(const c of r.getChildren())if(c&&c.is("element","caption"))return c;return null}getCaptionFromModelSelection(r){const c=this.editor.plugins.get("ImageUtils"),u=r.getFirstPosition().findAncestor("caption");return u&&c.isBlockImage(u.parent)?u:null}matchImageCaptionViewElement(r){const c=this.editor.plugins.get("ImageUtils");return"figcaption"==r.name&&c.isBlockImageView(r.parent)?{name:!0}:null}}class KC extends Ta{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(e3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,C=_.getSelectedElement();if(!C){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(C),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(C)}execute(r={}){const{focusCaptionOnShow:c}=r;this.editor.model.change(u=>{this.value?this._hideImageCaption(u):this._showImageCaption(u,c)})}_showImageCaption(r,c){const u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageCaptionEditing"),C=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);C.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const N=E||r.createElement("caption");r.append(N,M),c&&r.setSelection(N,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),C=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=C.getCaptionFromImageModelElement(E):(M=C.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class hA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Md,n3]}static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,c=r.model.schema;c.isRegistered("caption")?c.extend("caption",{allowIn:"imageBlock"}):c.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),r.commands.add("toggleImageCaption",new KC(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils"),C=r.t;r.conversion.for("upcast").elementToElement({view:M=>_.matchImageCaptionViewElement(M),model:"caption"}),r.conversion.for("dataDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>u.isBlockImage(M.parent)?E.createContainerElement("figcaption"):null}),r.conversion.for("editingDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>{if(!u.isBlockImage(M.parent))return null;const N=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,N),N.placeholder=C("Enter image caption"),Y({view:c,element:N,keepOnFocus:!0});const j=M.parent.getAttribute("alt");return U5(N,E,{label:j?C("Caption for image: %0",[j]):C("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),C=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:N,newElement:j}=E.return;if(!N)return;if(c.isBlockImage(N)){const dt=u.getCaptionFromImageModelElement(N);if(dt)return void this._saveCaption(j,dt)}const W=this._getSavedCaption(N);W&&this._saveCaption(j,W)};_&&this.listenTo(_,"execute",M,{priority:"low"}),C&&this.listenTo(C,"execute",M,{priority:"low"})}_getSavedCaption(r){const c=this._savedCaptionsMap.get(r);return c?_s.fromJSON(c):null}_saveCaption(r,c){this._savedCaptionsMap.set(r,c.toJSON())}_registerCaptionReconversion(){const r=this.editor,c=r.model,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils");c.document.on("change:data",()=>{const C=c.document.differ.getChanges();for(const M of C){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const N=_.getCaptionFromImageModelElement(E);if(!N)return;r.editing.reconvertItem(N)}}})}}class cv extends lo{static get requires(){return[n3]}static get pluginName(){return"ImageCaptionUI"}init(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageCaptionUtils"),_=r.t;r.ui.componentFactory.add("toggleImageCaption",C=>{const M=r.commands.get("toggleImageCaption"),E=new Hr(C);return E.set({icon:fs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",N=>_(N?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const N=u.getCaptionFromModelSelection(r.model.document.selection);if(N){const j=r.editing.mapper.toViewElement(N);c.scrollToTheSelection(),c.change(W=>{W.addClass("image__caption_highlighted",j)})}r.editing.view.focus()}),E})}}var lv=b(2640);function hf(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function gA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const C=XC(_,u),M=C.replace("image/",""),E=new File([_],`image.${M}`,{type:C});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(C=u,(M=C,new Promise((E,N)=>{const j=Mt.document.createElement("img");j.addEventListener("load",()=>{const W=Mt.document.createElement("canvas");W.width=j.width,W.height=j.height,W.getContext("2d").drawImage(j,0,0),W.toBlob(dt=>dt?E(dt):N())}),j.addEventListener("error",()=>N()),j.src=M})).then(M=>{const E=XC(M,C),N=E.replace("image/","");return new File([M],`image.${N}`,{type:E})})).then(r).catch(c):c(_);var C,M})})}function XC(m,r){return m.type?m.type:r.match(/data:(image\/\w+);base64/)?r.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Io()(lv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class uv extends lo{static get pluginName(){return"ImageUploadUI"}init(){const r=this.editor,c=r.t,u=_=>{const C=new F5(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),N=hf(E);return C.set({acceptedType:E.map(j=>`image/${j}`).join(","),allowMultipleFiles:!0}),C.buttonView.set({label:c("Insert image"),icon:fs.image,tooltip:!0}),C.buttonView.bind("isEnabled").to(M),C.on("done",(j,W)=>{const dt=Array.from(W).filter(Zt=>N.test(Zt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),C};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var vA=b(3689);Io()(vA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var dv=b(4036);Io()(dv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pv=b(3773);Io()(pv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const C=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const N=C.plugins.get("ImageUtils"),j=C.plugins.get(ap),W=E?u.attributeNewValue:null,dt=this.placeholder,Zt=C.editing.mapper.toViewElement(M),ue=_.writer;if("reading"==W)return mv(Zt,ue),void ex(N,dt,Zt,ue);if("uploading"==W){const xe=j.loaders.get(E);return mv(Zt,ue),void(xe?(nx(Zt,ue),function(Ee,ln,Mn,di){const Ri=function(Jo){const Da=Jo.createUIElement("div",{class:"ck-progress-bar"});return Jo.setCustomProperty("progressBar",!0,Da),Da}(ln);ln.insert(ln.createPositionAt(Ee,"end"),Ri),Mn.on("change:uploadedPercent",(Jo,Da,Ts)=>{di.change($r=>{$r.setStyle("width",Ts+"%",Ri)})})}(Zt,ue,xe,C.editing.view),function(Ee,ln,Mn,di){if(di.data){const Ri=Ee.findViewImgElement(ln);Mn.setAttribute("src",di.data,Ri)}}(N,Zt,ue,xe)):ex(N,dt,Zt,ue))}"complete"==W&&j.loaders.get(E)&&function(xe,Ee,ln){const Mn=Ee.createUIElement("div",{class:"ck-image-upload-complete-icon"});Ee.insert(Ee.createPositionAt(xe,"end"),Mn),setTimeout(()=>{ln.change(di=>di.remove(di.createRangeOn(Mn)))},3e3)}(Zt,ue,C.editing.view),i3(Zt,ue,"progressBar"),nx(Zt,ue),ue.removeClass("ck-appear",Zt)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),r.plugins.has("ImageInlineEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function mv(m,r){m.hasClass("ck-appear")||r.addClass("ck-appear",m)}function ex(m,r,c,u){c.hasClass("ck-image-upload-placeholder")||u.addClass("ck-image-upload-placeholder",c);const _=m.findViewImgElement(c);_.getAttribute("src")!==r&&u.setAttribute("src",r,_),ix(c,"placeholder")||u.insert(u.createPositionAfter(_),function(C){const M=C.createUIElement("div",{class:"ck-upload-placeholder-loader"});return C.setCustomProperty("placeholder",!0,M),M}(u))}function nx(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),i3(m,r,"placeholder")}function ix(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function i3(m,r,c){const u=ix(m,c);u&&r.remove(r.createRangeOn(u))}var ox=Object.defineProperty,ax=Object.defineProperties,W4=Object.getOwnPropertyDescriptors,$4=Object.getOwnPropertySymbols,sy=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,rx=(m,r,c)=>r in m?ox(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class sx extends Ta{refresh(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.model.document.selection.getSelectedElement();this.isEnabled=c.isImageAllowed()||c.isImage(u)}execute(r){const c=Ds(r.file),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if(E&&N&&_.isImage(N)){const j=this.editor.model.createPositionAfter(N);this._uploadImage(M,C,j)}else this._uploadImage(M,C)})}_uploadImage(r,c,u){const _=this.editor,C=_.plugins.get(ap).createLoader(r),M=_.plugins.get("ImageUtils");var E;C&&M.insertImage((E=((j,W)=>{for(var dt in W||(W={}))sy.call(W,dt)&&rx(j,dt,W[dt]);if($4)for(var dt of $4(W))Fs.call(W,dt)&&rx(j,dt,W[dt]);return j})({},c),ax(E,W4({uploadId:C.id}))),u)}}class gf extends lo{constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[ap,rf,Rp,Md]}static get pluginName(){return"ImageUploadEditing"}init(){const r=this.editor,c=r.model.document,u=r.conversion,_=r.plugins.get(ap),C=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=hf(r.config.get("image.upload.types")),N=new sx(r);r.commands.add("uploadImage",N),r.commands.add("imageUpload",N),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(j,W)=>{if(dt=W.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Zt=Array.from(W.dataTransfer.files).filter(ue=>!!ue&&E.test(ue.type));Zt.length&&(j.stop(),r.model.change(ue=>{W.targetRanges&&ue.setSelection(W.targetRanges.map(xe=>r.editing.mapper.toModelRange(xe))),r.execute("uploadImage",{file:Zt})}))}),this.listenTo(M,"inputTransformation",(j,W)=>{const dt=Array.from(r.editing.view.createRangeIn(W.content)).map(ue=>ue.item).filter(ue=>{return!(!C.isInlineImageView(Ee=ue)||!Ee.getAttribute("src")||!Ee.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Ee.getAttribute("src").match(/^blob:/g)||ue.getAttribute("uploadProcessed"));var Ee}).map(ue=>({promise:gA(ue),imageElement:ue}));if(!dt.length)return;const Zt=new X1(r.editing.view.document);for(const ue of dt){Zt.setAttribute("uploadProcessed",!0,ue.imageElement);const xe=_.createLoader(ue.promise);xe&&(Zt.setAttribute("src","",ue.imageElement),Zt.setAttribute("uploadId",xe.id,ue.imageElement))}}),r.editing.view.document.on("dragover",(j,W)=>{W.preventDefault()}),c.on("change",()=>{const j=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),W=new Set;for(const dt of j)if("insert"==dt.type&&"$text"!=dt.name){const Zt=dt.position.nodeAfter,ue="$graveyard"==dt.position.root.rootName;for(const xe of CA(r,Zt)){const Ee=xe.getAttribute("uploadId");if(!Ee)continue;const ln=_.loaders.get(Ee);ln&&(ue?W.has(Ee)||ln.abort():(W.add(Ee),this._uploadImageElements.set(Ee,xe),"idle"==ln.status&&this._readAndUpload(ln)))}}}),this.on("uploadComplete",(j,{imageElement:W,data:dt})=>{const Zt=dt.urls?dt.urls:dt;this.editor.model.change(ue=>{ue.setAttribute("src",Zt.default,W),this._parseAndSetSrcsetAttributeOnImage(Zt,W,ue),C.setImageNaturalSizeAttributes(W)})},{priority:"low"})}afterInit(){const r=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&r.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&r.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(r){const c=this.editor,u=c.model,_=c.locale.t,C=c.plugins.get(ap),M=c.plugins.get(rf),E=c.plugins.get("ImageUtils"),N=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},W=>{W.setAttribute("uploadStatus","reading",N.get(r.id))}),r.read().then(()=>{const W=r.upload(),dt=N.get(r.id);if(D_isSafari){const Zt=c.editing.mapper.toViewElement(dt),ue=E.findViewImgElement(Zt);c.editing.view.once("render",()=>{if(!ue.parent)return;const xe=c.editing.view.domConverter.mapViewToDom(ue.parent);if(!xe)return;const Ee=xe.style.display;xe.style.display="none",xe._ckHack=xe.offsetHeight,xe.style.display=Ee})}return u.enqueueChange({isUndoable:!1},Zt=>{Zt.setAttribute("uploadStatus","uploading",dt)}),W}).then(W=>{u.enqueueChange({isUndoable:!1},dt=>{const Zt=N.get(r.id);dt.setAttribute("uploadStatus","complete",Zt),this.fire("uploadComplete",{data:W,imageElement:Zt})}),j()}).catch(W=>{if("error"!==r.status&&"aborted"!==r.status)throw W;"error"==r.status&&W&&M.showWarning(W,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(N.get(r.id))}),j()});function j(){u.enqueueChange({isUndoable:!1},W=>{const dt=N.get(r.id);W.removeAttribute("uploadId",dt),W.removeAttribute("uploadStatus",dt),N.delete(r.id)}),C.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const C=Object.keys(r).filter(M=>{const E=parseInt(M,10);if(!isNaN(E))return _=Math.max(_,E),!0}).map(M=>`${r[M]} ${M}w`).join(", ");if(""!=C){const M={srcset:C};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function CA(m,r){const c=m.plugins.get("ImageUtils");return Array.from(m.model.createRangeOn(r)).filter(u=>c.isImage(u.item)).map(u=>u.item)}var o3=b(1568);Io()(o3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var cx=b(3535);Io()(cx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var AA=b(6270);Io()(AA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class TA extends Ta{constructor(r,c){super(r),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(c.map(u=>{if(u.isDefault)for(const _ of u.modelElements)this._defaultStyles[_]=u.name;return[u.name,u]}))}refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!!this.isEnabled&&(r.hasAttribute("imageStyle")?r.getAttribute("imageStyle"):this._defaultStyles[r.name])}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("ImageUtils");u.change(C=>{const M=r.value,{setImageSizes:E=!0}=r;let N=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,N)&&(this.editor.execute(_.isBlockImage(N)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),N=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?C.removeAttribute("imageStyle",N):C.setAttribute("imageStyle",M,N),E&&_.setImageNaturalSizeAttributes(N)})}shouldConvertImageType(r,c){return!this._styles.get(r).modelElements.includes(c.name)}}var wA=Object.defineProperty,fv=Object.getOwnPropertySymbols,hv=Object.prototype.hasOwnProperty,UA=Object.prototype.propertyIsEnumerable,K4=(m,r,c)=>r in m?wA(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,gv=(m,r)=>{for(var c in r||(r={}))hv.call(r,c)&&K4(m,c,r[c]);if(fv)for(var c of fv(r))UA.call(r,c)&&K4(m,c,r[c]);return m};const{objectFullWidth:X4,objectInline:lx,objectLeft:vv,objectRight:bv,objectCenter:a3,objectBlockLeft:Cv,objectBlockRight:xv}=fs,Qh={get inline(){return{name:"inline",title:"In line",icon:lx,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:vv,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Cv,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:a3,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:bv,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:xv,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:a3,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:bv,modelElements:["imageBlock"],className:"image-style-side"}}},Av={full:X4,left:Cv,right:xv,center:a3,inlineLeft:vv,inlineRight:bv,inline:lx},ux=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function ZA(m){Tt("image-style-configuration-definition-invalid",m)}const r3={normalizeStyles:function(m){return(m.configuredStyles.options||[]).map(r=>{return"string"==typeof(c="string"==typeof(c=r)?Qh[c]?gv({},Qh[c]):{name:c}:function(u,_){const C=gv({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(C[M]=u[M]);return C}(Qh[c.name],c)).icon&&(c.icon=Av[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:C,name:M}=c;if(!(C&&C.length&&M))return ZA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!C.some(N=>E.includes(N)))return Tt("image-style-missing-dependency",{style:c,missingPlugins:C.map(N=>"imageBlock"===N?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(r,m))},getDefaultStylesConfiguration:function(m,r){return m&&r?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:m?{options:["block","side"]}:r?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(m){return m.has("ImageBlockEditing")&&m.has("ImageInlineEditing")?[...ux]:[]},warnInvalidStyle:ZA,DEFAULT_OPTIONS:Qh,DEFAULT_ICONS:Av,DEFAULT_DROPDOWN_DEFINITIONS:ux};function MA(m,r){for(const c of r)if(c.name===m)return c}class dx extends lo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Md]}init(){const{normalizeStyles:r,getDefaultStylesConfiguration:c}=r3,u=this.editor,_=u.plugins.has("ImageBlockEditing"),C=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,C)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:C}),this._setupConversion(_,C),this._setupPostFixer(),u.commands.add("imageStyle",new TA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,C=(M=this.normalizedStyles,(N,j,W)=>{if(!W.consumable.consume(j.item,N.name))return;const dt=MA(j.attributeNewValue,M),Zt=MA(j.attributeOldValue,M),ue=W.mapper.toViewElement(j.item),xe=W.writer;Zt&&xe.removeClass(Zt.className,ue),dt&&xe.addClass(dt.className,ue)});var M;const E=function(N){const j={imageInline:N.filter(W=>!W.isDefault&&W.modelElements.includes("imageInline")),imageBlock:N.filter(W=>!W.isDefault&&W.modelElements.includes("imageBlock"))};return(W,dt,Zt)=>{if(!dt.modelRange)return;const ue=dt.viewItem,xe=os(dt.modelRange.getItems());if(xe&&Zt.schema.checkAttribute(xe,"imageStyle"))for(const Ee of j[xe.name])Zt.consumable.consume(ue,{classes:Ee.className})&&Zt.writer.setAttribute("imageStyle",Ee.name,xe)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",C),u.data.downcastDispatcher.on("attribute:imageStyle",C),r&&(_.extend("imageBlock",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:figure",E,{priority:"low"})),c&&(_.extend("imageInline",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:img",E,{priority:"low"}))}_setupPostFixer(){const r=this.editor,c=r.model.document,u=r.plugins.get(Md),_=new Map(this.normalizedStyles.map(C=>[C.name,C]));c.registerPostFixer(C=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let N="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(N&&N.is("element","paragraph")&&N.childCount>0&&(N=N.getChild(0)),!u.isImage(N))continue;const j=N.getAttribute("imageStyle");if(!j)continue;const W=_.get(j);W&&W.modelElements.includes(N.name)||(C.removeAttribute("imageStyle",N),M=!0)}return M})}}var kA=b(5083);Io()(kA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ly extends lo{static get requires(){return[dx]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Wrap text":r("Wrap text"),"Break text":r("Break text"),"In line":r("In line"),"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=this.editor.plugins,c=this.editor.config.get("image.toolbar")||[],u=DA(r.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const C of u)this._createButton(C);const _=DA([...c.filter(Wt),...r3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const C of _)this._createDropdown(C,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let C;const{defaultItem:M,items:E,title:N}=r,j=E.filter(ue=>c.find(({name:xe})=>PA(xe)===ue)).map(ue=>{const xe=u.create(ue);return ue===M&&(C=xe),xe});E.length!==j.length&&r3.warnInvalidStyle({dropdown:r});const W=D1(_,m4),dt=W.buttonView,Zt=dt.arrowView;return X_(W,j,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:SA(N,C.label),class:null,tooltip:!0}),Zt.unbind("label"),Zt.set({label:N}),dt.bind("icon").toMany(j,"isOn",(...ue)=>{const xe=ue.findIndex(wu);return xe<0?C.icon:j[xe].icon}),dt.bind("label").toMany(j,"isOn",(...ue)=>{const xe=ue.findIndex(wu);return SA(N,xe<0?C.label:j[xe].label)}),dt.bind("isOn").toMany(j,"isOn",(...ue)=>ue.some(wu)),dt.bind("class").toMany(j,"isOn",(...ue)=>ue.some(wu)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{j.some(({isOn:ue})=>ue)?W.isOpen=!W.isOpen:C.fire("execute")}),W.bind("isEnabled").toMany(j,"isEnabled",(...ue)=>ue.some(wu)),this.listenTo(W,"execute",()=>{this.editor.editing.view.focus()}),W})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(PA(c),u=>{const _=this.editor.commands.get("imageStyle"),C=new Hr(u);return C.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>M===c),C.on("execute",this._executeCommand.bind(this,c)),C})}_executeCommand(r){this.editor.execute("imageStyle",{value:r}),this.editor.editing.view.focus()}}function DA(m,r){for(const c of m)r[c.title]&&(c.title=r[c.title]);return m}function PA(m){return`imageStyle:${m}`}function SA(m,r){return(m?m+": ":"")+r}class t6 extends lo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new $p(r)),r.commands.add("outdent",new $p(r))}}const LA='',yv='';class s3 extends lo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?LA:yv,C="ltr"==c.uiLanguageDirection?yv:LA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),C)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,C=>{const M=_.commands.get(r),E=new Hr(C);return E.set({label:c,icon:u,tooltip:!0}),E.bind("isEnabled").to(M,"isEnabled"),this.listenTo(E,"execute",()=>{_.execute(r),_.editing.view.focus()}),E})}}class px{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(c=>this._definitions.add(c)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(c,u,_)=>{if(!_.consumable.test(u.item,"attribute:linkHref")||!u.item.is("selection")&&!_.schema.isInline(u.item))return;const C=_.writer,M=C.document.selection;for(const E of this._definitions){const N=C.createAttributeElement("a",E.attributes,{priority:5});E.classes&&C.addClass(E.classes,N);for(const j in E.styles)C.setStyle(j,E.styles[j],N);C.setCustomProperty("link",!0,N),E.callback(u.attributeNewValue)?u.item.is("selection")?C.wrap(M.getFirstRange(),N):C.wrap(_.mapper.toViewRange(u.range),N):C.unwrap(_.mapper.toViewRange(u.range),N)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:C})=>{const M=C.toViewElement(u.item),E=Array.from(M.getChildren()).find(N=>N.is("element","a"));for(const N of this._definitions){const j=Jc(N.attributes);if(N.callback(u.attributeNewValue)){for(const[W,dt]of j)"class"===W?_.addClass(dt,E):_.setAttribute(W,dt,E);N.classes&&_.addClass(N.classes,E);for(const W in N.styles)_.setStyle(W,N.styles[W],E)}else{for(const[W,dt]of j)"class"===W?_.removeClass(dt,E):_.removeAttribute(W,E);N.classes&&_.removeClass(N.classes,E);for(const W in N.styles)_.removeStyle(W,E)}}})}}}var uy=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const c3=function(m){return uy.test(m)};var fx="\\ud800-\\udfff",Tv="["+fx+"]",wv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Uv="\\ud83c[\\udffb-\\udfff]",hx="[^"+fx+"]",gx="(?:\\ud83c[\\udde6-\\uddff]){2}",l3="[\\ud800-\\udbff][\\udc00-\\udfff]",vx="(?:"+wv+"|"+Uv+")?",bx="[\\ufe0e\\ufe0f]?",dy=bx+vx+"(?:\\u200d(?:"+[hx,gx,l3].join("|")+")"+bx+vx+")*",py="(?:"+[hx+wv+"?",wv,gx,l3,Tv].join("|")+")",OA=RegExp(Uv+"(?="+Uv+")|"+py+dy,"g");const my=function(r){r=xg(r);var c=c3(r)?function(m){return c3(m)?function(m){return m.match(OA)||[]}(m):function(m){return m.split("")}(m)}(r):void 0,u=c?c[0]:r.charAt(0),_=c?function(m,r,c){var u=m.length;return C2(m,1,c=void 0===c?u:c)}(c).join(""):r.slice(1);return u.toUpperCase()+_},xx=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ax=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,yx=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,_y=/^((\w+:(\/{2,})?)|(\W))/i,S1="Ctrl+K";function Tx(m,{writer:r}){const c=r.createAttributeElement("a",{href:m},{priority:5});return r.setCustomProperty("link",!0,c),c}function u3(m){const r=String(m);return r.replace(xx,"").match(Ax)?r:"#"}function e6(m,r){return!!m&&r.checkAttribute(m.name,"linkHref")}function Kd(m,r){const c=yx.test(m)?"mailto:":r,_=!!c&&!Zv(m);return m&&_?c+m:m}function Zv(m){return _y.test(m)}function n6(m){window.open(m,"_blank","noopener")}class Mv extends Ta{constructor(){super(...arguments),this.manualDecorators=new tc,this.automaticDecorators=new px}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement()||os(c.getSelectedBlocks());e6(u,r.schema)?(this.value=u.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(u,"linkHref")):(this.value=c.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(c,"linkHref"));for(const _ of this.manualDecorators)_.value=this._getDecoratorStateFromModel(_.id)}execute(r,c={}){const u=this.editor.model,_=u.document.selection,C=[],M=[];for(const E in c)c[E]?C.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const N=_.getFirstPosition();if(_.hasAttribute("linkHref")){const j=wx(_);let W=Ti(N,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===j&&(W=this._updateLinkContent(u,E,W,r)),E.setAttribute("linkHref",r,W),C.forEach(dt=>{E.setAttribute(dt,!0,W)}),M.forEach(dt=>{E.removeAttribute(dt,W)}),E.setSelection(E.createPositionAfter(W.end.nodeBefore))}else if(""!==r){const j=Jc(_.getAttributes());j.set("linkHref",r),C.forEach(dt=>{j.set(dt,!0)});const{end:W}=u.insertContent(E.createText(r,j),N);E.setSelection(W)}["linkHref",...C,...M].forEach(j=>{E.removeSelectionAttribute(j)})}else{const N=u.schema.getValidRanges(_.getRanges(),"linkHref"),j=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&j.push(E.createRangeOn(dt));const W=j.slice();for(const dt of N)this._isRangeToUpdate(dt,j)&&W.push(dt);for(const dt of W){let Zt=dt;if(1===W.length){const ue=wx(_);_.getAttribute("linkHref")===ue&&(Zt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Zt)))}E.setAttribute("linkHref",r,Zt),C.forEach(ue=>{E.setAttribute(ue,!0,Zt)}),M.forEach(ue=>{E.removeAttribute(ue,Zt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return e6(_,c.schema)?_.getAttribute(r):u.getAttribute(r)}_isRangeToUpdate(r,c){for(const u of c)if(u.containsRange(r))return!1;return!0}_updateLinkContent(r,c,u,_){const C=c.createText(_,{linkHref:_});return r.insertContent(C,u)}}function wx(m){if(m.isCollapsed){const r=m.getFirstPosition();return r.textNode&&r.textNode.data}{const r=Array.from(m.getFirstRange().getItems());if(r.length>1)return null;const c=r[0];return c.is("$text")||c.is("$textProxy")?c.data:null}}class kv extends Ta{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=e6(u,r.schema)?r.schema.checkAttribute(u,"linkHref"):r.schema.checkAttributeInSelection(c,"linkHref")}execute(){const c=this.editor.model,u=c.document.selection,_=this.editor.commands.get("link");c.change(C=>{const M=u.isCollapsed?[Ti(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(C.removeAttribute("linkHref",E),_)for(const N of _.manualDecorators)C.removeAttribute(N.id,E)})}}class Ux extends(we()){constructor({id:r,label:c,attributes:u,classes:_,styles:C,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=C}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Dv=b(9773);Io()(Dv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Zx=Object.defineProperty,Sv=Object.getOwnPropertySymbols,Mx=Object.prototype.hasOwnProperty,kx=Object.prototype.propertyIsEnumerable,Dx=(m,r,c)=>r in m?Zx(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,i6=(m,r)=>{for(var c in r||(r={}))Mx.call(r,c)&&Dx(m,c,r[c]);if(Sv)for(var c of Sv(r))kx.call(r,c)&&Dx(m,c,r[c]);return m};const o_="automatic",Lv=/^(https?:)?\/\//;class Ov extends lo{static get pluginName(){return"LinkEditing"}static get requires(){return[x5,jb,Rp]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Tx}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(u,_)=>Tx(u3(u),_)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:u=>u.getAttribute("href")}}),r.commands.add("link",new Mv(r)),r.commands.add("unlink",new kv(r));const c=function(u,_){const C={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&C[M.label]&&(M.label=C[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[C,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${my(C)}`});_.push(E)}return _}(r.config.get("link.decorators")));this._enableAutomaticDecorators(c.filter(u=>u.mode===o_)),this._enableManualDecorators(c.filter(u=>"manual"===u.mode)),r.plugins.get(x5).registerAttribute("linkHref"),function(u,_,C,M){const E=u.editing.view,N=new Set;E.document.registerPostFixer(j=>{const W=u.model.document.selection;let dt=!1;if(W.hasAttribute(_)){const Zt=Ti(W.getFirstPosition(),_,W.getAttribute(_),u.model),ue=u.editing.mapper.toViewRange(Zt);for(const xe of ue.getItems())xe.is("element","a")&&!xe.hasClass(M)&&(j.addClass(M,xe),N.add(xe),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(j=>{function W(){E.change(dt=>{for(const Zt of N.values())dt.removeClass(M,Zt),N.delete(Zt)})}j.on("insert",W,{priority:"highest"}),j.on("remove",W,{priority:"highest"}),j.on("attribute",W,{priority:"highest"}),j.on("selection",W,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(r){const c=this.editor,u=c.commands.get("link").automaticDecorators;c.config.get("link.addTargetToExternalLinks")&&u.add({id:"linkIsExternal",mode:o_,callback:_=>!!_&&Lv.test(_),attributes:{target:"_blank",rel:"noopener noreferrer"}}),u.add(r),u.length&&c.conversion.for("downcast").add(u.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const c=this.editor,u=c.commands.get("link").manualDecorators;r.forEach(_=>{c.model.schema.extend("$text",{allowAttributes:_.id});const C=new Ux(_);u.add(C),c.conversion.for("downcast").attributeToElement({model:C.id,view:(M,{writer:E,schema:N},{item:j})=>{if((j.is("selection")||N.isInline(j))&&M){const W=E.createAttributeElement("a",C.attributes,{priority:5});C.classes&&E.addClass(C.classes,W);for(const dt in C.styles)E.setStyle(dt,C.styles[dt],W);return E.setCustomProperty("link",!0,W),W}}}),c.conversion.for("upcast").elementToAttribute({view:i6({name:"a"},C._createPattern()),model:{key:C.id}})})}_enableLinkOpen(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"click",(u,_)=>{if(!(D_isMac?_.domEvent.metaKey:_.domEvent.ctrlKey))return;let C=_.domTarget;if("a"!=C.tagName.toLowerCase()&&(C=C.closest("a")),!C)return;const M=C.getAttribute("href");M&&(u.stop(),_.preventDefault(),n6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const C=r.commands.get("link").value;C&&_.keyCode===$a.enter&&_.altKey&&(u.stop(),n6(C))})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor.model,c=r.document.selection;this.listenTo(r,"insertContent",()=>{const u=c.anchor.nodeBefore,_=c.anchor.nodeAfter;c.hasAttribute("linkHref")&&u&&u.hasAttribute("linkHref")&&(_&&_.hasAttribute("linkHref")||r.change(C=>{rp(C,Px(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(vh);let u=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{u=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!u)return;u=!1;const _=c.document.selection;if(!_.isCollapsed||!_.hasAttribute("linkHref"))return;const C=_.getFirstPosition(),M=Ti(C,"linkHref",_.getAttribute("linkHref"),c);(C.isTouching(M.start)||C.isTouching(M.end))&&c.change(E=>{rp(E,Px(c.schema))})})}_enableTypingOverLink(){const r=this.editor;let u=null,_=!1;this.listenTo(r.editing.view.document,"delete",()=>{_=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const C=r.model.document.selection;C.isCollapsed||(_?_=!1:Ev(r)&&function(M){const E=M.document.selection,N=E.getFirstPosition(),j=E.getLastPosition(),W=N.nodeAfter;return!!(W&&W.is("$text")&&W.hasAttribute("linkHref"))&&(W===(j.textNode||j.nodeBefore)||Ti(N,"linkHref",W.getAttribute("linkHref"),M).containsRange(M.createRange(N,j),!0))}(r.model)&&(u=C.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(C,[M])=>{_=!1,Ev(r)&&u&&(r.model.change(E=>{for(const[N,j]of u)E.setAttribute(N,j,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let C=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,N)=>{M="backward"===N.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{C=!1;const E=u.getFirstPosition(),N=u.getAttribute("linkHref");if(!N)return;const j=Ti(E,"linkHref",N,c);C=j.containsPosition(E)||j.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,C||r.model.enqueueChange(E=>{rp(E,Px(c.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const r=this.editor,c=r.model,u=this.editor.config.get("link.defaultProtocol");u&&this.listenTo(r.plugins.get("ClipboardPipeline"),"contentInsertion",(_,C)=>{c.change(M=>{const E=M.createRangeIn(C.content);for(const N of E.getItems())if(N.hasAttribute("linkHref")){const j=Kd(N.getAttribute("linkHref"),u);M.setAttribute("linkHref",j,N)}})})}}function rp(m,r){m.removeSelectionAttribute("linkHref");for(const c of r)m.removeSelectionAttribute(c)}function Ev(m){return m.model.change(r=>r.batch).isTyping}function Px(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var p3=b(7754);Io()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class FA extends aa{constructor(r,c){super(r),this.focusTracker=new as,this.keystrokes=new Gc,this._focusables=new Fa;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),fs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),fs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const _=["ck","ck-link-form","ck-responsive-form"];c.manualDecorators.length&&_.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:_,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,c)=>(r[c.name]=c.isOn,r),{})}render(){super.render(),x({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const r=this.locale.t,c=new Dr(this.locale,K2);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const C=new Hr(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new xi(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(C,M)=>void 0===M&&void 0===C?!!u.defaultValue:!!C),_.on("execute",()=>{u.set("value",!_.isOn)}),c.add(_)}return c}_createFormChildren(r){const c=this.createCollection();if(c.add(this.urlInputView),r.length){const u=new aa;u.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(_=>({tag:"li",children:[_],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),c.add(u)}return c.add(this.saveButtonView),c.add(this.cancelButtonView),c}}var Lx=b(2347);Io()(Lx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class fy extends aa{constructor(r){super(r),this.focusTracker=new as,this.keystrokes=new Gc,this._focusables=new Fa;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),fs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(r,c,u){const _=new Hr(this.locale);return _.set({label:r,icon:c,tooltip:!0}),_.delegate("execute").to(this,u),_}_createPreviewButton(){const r=new Hr(this.locale),c=this.bindTemplate,u=this.t;return r.set({withText:!0,tooltip:u("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:c.to("href",_=>_&&u3(_)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",_=>_||u("This link has no URL")),r.bind("isEnabled").to(this,"href",_=>!!_),r.template.tag="a",r.template.eventListeners={},r}}const zp="link-ui";class IA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[E0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(c4),this._balloon=r.plugins.get(E0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:zp,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:zp,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const r=this.editor,c=new fy(r.locale),u=r.commands.get("link"),_=r.commands.get("unlink");return c.bind("href").to(u,"value"),c.editButtonView.bind("isEnabled").to(u),c.unlinkButtonView.bind("isEnabled").to(_),this.listenTo(c,"edit",()=>{this._addFormView()}),this.listenTo(c,"unlink",()=>{r.execute("unlink"),this._hideUI()}),c.keystrokes.set("Esc",(C,M)=>{this._hideUI(),M()}),c.keystrokes.set(S1,(C,M)=>{this._addFormView(),M()}),c}_createFormView(){const r=this.editor,c=r.commands.get("link"),u=r.config.get("link.defaultProtocol"),_=new(A(FA))(r.locale,c);return _.urlInputView.fieldView.bind("value").to(c,"value"),_.urlInputView.bind("isEnabled").to(c,"isEnabled"),_.saveButtonView.bind("isEnabled").to(c),this.listenTo(_,"submit",()=>{const{value:C}=_.urlInputView.fieldView.element,M=Kd(C,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(C,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const C=new Hr(_);return C.isEnabled=!0,C.label=u("Link"),C.icon='',C.keystroke=S1,C.tooltip=!0,C.isToggleable=!0,C.bind("isEnabled").to(c,"isEnabled"),C.bind("isOn").to(c,"value",M=>!!M),this.listenTo(C,"execute",()=>this._showUI(!0)),C})}_enableBalloonActivators(){const r=this.editor;this.listenTo(r.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),r.keystrokes.set(S1,(u,_)=>{_(),r.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(r,c)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),c())},{priority:"high"}),this.editor.keystrokes.set("Esc",(r,c)=>{this._isUIVisible&&(this._hideUI(),c())}),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const r=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,c=r.editing.view.document;let u=this._getSelectedLinkElement(),_=M();const C=()=>{const E=this._getSelectedLinkElement(),N=M();u&&!E||!u&&N!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=N};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",C),this.listenTo(this._balloon,"change:visibleView",C)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,u=r.document;let _;if(this.editor.model.markers.has(zp)){const C=Array.from(this.editor.editing.mapper.markerNameToElements(zp)),M=r.createRange(r.createPositionBefore(C[0]),r.createPositionAfter(C[C.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const C=this._getSelectedLinkElement();return C?r.domConverter.mapViewToDom(C):r.domConverter.viewRangeToDom(u.selection.getFirstRange())};return{target:_}}_getSelectedLinkElement(){const r=this.editor.editing.view,c=r.document.selection,u=c.getSelectedElement();if(c.isCollapsed||u&&Pl(u))return o6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),C=o6(_.start),M=o6(_.end);return C&&C==M&&r.createRangeIn(C).getTrimmed().isEqual(_)?C:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(zp))c.updateMarker(zp,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:C})=>!r.schema.isContent(C),{boundaries:u});c.addMarker(zp,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(zp,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(zp)&&r.change(c=>{c.removeMarker(zp)})}}function o6(m){return m.getAncestors().find(r=>{return(c=r).is("attributeElement")&&!!c.getCustomProperty("link");var c})||null}const hy=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class a6 extends lo{static get requires(){return[t_]}static get pluginName(){return"AutoLink"}init(){const r=this.editor.model.document.selection;r.on("change:range",()=>{this.isEnabled=!r.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const r=this.editor,c=new Wb(r.model,u=>{if(!((C=u).length>4&&" "===C[C.length-1]&&" "!==C[C.length-2]))return;var C;const _=r6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:C,range:M,url:E}=_;if(!C.isTyping)return;const N=M.end.getShiftedBy(-1),j=N.getShiftedBy(-E.length),W=r.model.createRange(j,N);this._applyAutoLink(E,W)}),c.bind("isEnabled").to(this)}_enableEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("enter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition();if(!_.parent.previousSibling)return;const C=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(C)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),C=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(C)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=w4(r,c),C=r6(u);if(C){const M=c.createRange(_.end.getShiftedBy(-C.length),_.end);this._applyAutoLink(C,M)}}_applyAutoLink(r,c){const u=this.editor.model,_=Kd(r,this.editor.config.get("link.defaultProtocol"));var M;this.isEnabled&&(M=u).schema.checkAttributeInSelection(M.createSelection(c),"linkHref")&&Zv(_)&&!function(C){const M=C.start.nodeAfter;return!!M&&M.hasAttribute("linkHref")}(c)&&this._persistAutoLink(_,c)}_persistAutoLink(r,c){const u=this.editor.model,_=this.editor.plugins.get("Delete");u.enqueueChange(C=>{C.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function r6(m){const r=hy.exec(m);return r?r[2]:null}var m3=b(111);Io()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Fv=b(5730);Io()(Fv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _3=b(4564);function Ix(m,r,c,u){const _=r.parent,C=c.mapper,M=c.writer;let E=C.toViewPosition(u.createPositionBefore(m));const N=Nx(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),j=m.previousSibling;if(N&&N.getAttribute("listIndent")==m.getAttribute("listIndent")){const W=C.toViewElement(N);E=M.breakContainer(M.createPositionAfter(W))}else if(j&&"listItem"==j.name){E=C.toViewPosition(u.createPositionAt(j,"end"));const W=C.findMappedViewAncestor(E),dt=function(Zt){for(const ue of Zt.getChildren())if("ul"==ue.name||"ol"==ue.name)return ue;return null}(W);E=dt?M.createPositionBefore(dt):M.createPositionAt(W,"end")}else E=C.toViewPosition(u.createPositionBefore(m));if(E=Nv(E),M.insert(E,_),j&&"listItem"==j.name){const W=C.toViewElement(j),dt=M.createRange(M.createPositionAt(W,0),E).getWalker({ignoreElementEnd:!0});for(const Zt of dt)if(Zt.item.is("element","li")){const ue=M.breakContainer(M.createPositionBefore(Zt.item)),xe=Zt.item.parent,Ee=M.createPositionAt(r,"end");L1(M,Ee.nodeBefore,Ee.nodeAfter),M.move(M.createRangeOn(xe),Ee),dt._position=ue}}else{const W=_.nextSibling;if(W&&(W.is("element","ul")||W.is("element","ol"))){let dt=null;for(const Zt of W.getChildren()){const ue=C.toModelElement(Zt);if(!(ue&&ue.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Zt}dt&&(M.breakContainer(M.createPositionAfter(dt)),M.move(M.createRangeOn(dt.parent),M.createPositionAt(r,"end")))}}L1(M,_,_.nextSibling),L1(M,_.previousSibling,_)}function L1(m,r,c){return!r||!c||"ul"!=r.name&&"ol"!=r.name||r.name!=c.name||r.getAttribute("class")!==c.getAttribute("class")?null:m.mergeContainers(m.createPositionAfter(r))}function Nv(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function Nx(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let C=m;for(;C&&"listItem"==C.name;){const M=C.getAttribute("listIndent");if(c&&_==M||u&&_>M)return C;C="forward"===r.direction?C.nextSibling:C.previousSibling}return null}function qx(m,r,c,u){m.ui.componentFactory.add(r,_=>{const C=m.commands.get(r),M=new Hr(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(C,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function Rx(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},C=u.getAttribute("listIndent"),M=[...new Jd(_)].filter(E=>E.item.is("element")).map(E=>E.item);for(const E of M){if(!E.is("element","listItem")||E.getAttribute("listIndent")C)){if(E.getAttribute("listType")!==u.getAttribute("listType")||E.getAttribute("listStyle")!==u.getAttribute("listStyle")||E.getAttribute("listReversed")!==u.getAttribute("listReversed")||E.getAttribute("listStart")!==u.getAttribute("listStart"))break;"backward"===r?c.unshift(E):c.push(E)}}return c}Io()(_3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const NA=["disc","circle","square"],Hx=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function qv(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:If.call(this)}class qA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;qx(this.editor,"numberedList",r("Numbered List"),''),qx(this.editor,"bulletedList",r("Bulleted List"),'')}}const zx={},gy={},vy={},by=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:m,typeAttribute:r,listType:c}of by)zx[m]=c,gy[m]=r,r&&(vy[r]=m);var RA=b(4721);Io()(RA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yx=b(6082);Io()(Yx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Bx=b(2417);Io()(Bx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hv extends Ta{constructor(r,c){super(r),this._indentBy="forward"==c?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let u=Array.from(r.document.selection.getSelectedBlocks());r.change(_=>{const C=u[u.length-1];let M=C.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>C.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const N=E.getAttribute("listIndent")+this._indentBy;N<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",N,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=os(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const c=r.getAttribute("listIndent"),u=r.getAttribute("listType");let _=r.previousSibling;for(;_&&_.is("element","listItem")&&_.getAttribute("listIndent")>=c;){if(_.getAttribute("listIndent")==c)return _.getAttribute("listType")==u;_=_.previousSibling}return!1}return!0}}class a2 extends Ta{constructor(r,c){super(r),this.type=c}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,_=Array.from(c.document.selection.getSelectedBlocks()).filter(M=>c6(M,c.schema)),C=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(C){let E=_[_.length-1].nextSibling,N=Number.POSITIVE_INFINITY,j=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const W=E.getAttribute("listIndent");W=c;)C>_.getAttribute("listIndent")&&(C=_.getAttribute("listIndent")),_.getAttribute("listIndent")==C&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function c6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class Yv extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return NA.includes(c=r)?"bulleted":Hx.includes(c)?"numbered":null;var c}getSelectedListItems(r){return function(c){let u=[...c.document.selection.getSelectedBlocks()].filter(_=>_.is("element","listItem")).map(_=>{const C=c.change(M=>M.createPositionAt(_,0));return[...Rx(C,"backward"),...Rx(C,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return Rx(r,c)}}function Vx(m){return(r,c,u)=>{const _=u.consumable;if(!_.test(c.item,"insert")||!_.test(c.item,"attribute:listType")||!_.test(c.item,"attribute:listIndent"))return;_.consume(c.item,"insert"),_.consume(c.item,"attribute:listType"),_.consume(c.item,"attribute:listIndent");const C=c.item;Ix(C,function Fx(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",C=function(E){const N=E.createContainerElement("li");return N.getFillerOffset=qv,N}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),C),c.bindElements(m,C),C}(C,u),u,m)}}const Bv=(m,r,c)=>{if(!c.consumable.test(r.item,m.name))return;const u=c.mapper.toViewElement(r.item),_=c.writer;_.breakContainer(_.createPositionBefore(u)),_.breakContainer(_.createPositionAfter(u)),_.rename("numbered"==r.attributeNewValue?"ol":"ul",u.parent)},vf=(m,r,c)=>{c.consumable.consume(r.item,m.name);const u=c.mapper.toViewElement(r.item).parent,_=c.writer;L1(_,u,u.nextSibling),L1(_,u.previousSibling,u)},h3=(m,r,c)=>{if(c.consumable.test(r.item,m.name)&&"listItem"!=r.item.name){let u=c.mapper.toViewPosition(r.range.start);const _=c.writer,C=[];for(;("ul"==u.parent.name||"ol"==u.parent.name)&&(u=_.breakContainer(u),"li"==u.parent.name);){const M=u,E=_.createPositionAt(u.parent,"end");if(!M.isEqual(E)){const N=_.remove(_.createRange(M,E));C.push(N)}u=_.createPositionAfter(u.parent)}if(C.length>0){for(let M=0;M0){const N=L1(_,E,E.nextSibling);N&&N.parent==E&&u.offset--}}L1(_,u.nodeBefore,u.nodeAfter)}}},Cy=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);L1(c.writer,u.nodeBefore,u.nodeAfter)},xy=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),C=function(N){let j=0,W=N.parent;for(;W;){if(W.is("element","li"))j++;else{const dt=W.previousSibling;dt&&dt.is("element","li")&&j++}W=W.parent}return j}(r.viewItem);if(u.setAttribute("listIndent",C,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(N,j,W){const{writer:dt,schema:Zt}=W;let ue=dt.createPositionAfter(N);for(const xe of j)if("ul"==xe.name||"ol"==xe.name)ue=W.convertItem(xe,ue).modelCursor;else{const Ee=W.convertItem(xe,dt.createPositionAt(N,"end")),ln=Ee.modelRange.start.nodeAfter;ln&&ln.is("element")&&!Zt.checkChild(N,ln.name)&&(N=Ee.modelCursor.parent.is("element","listItem")?Ee.modelCursor.parent:BA(Ee.modelCursor),ue=dt.createPositionAfter(N))}return ue}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},zA=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){const u=Array.from(r.viewItem.getChildren());for(const _ of u)!_.is("element","li")&&!Wh(_)&&_._remove()}},Vv=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const u=[...r.viewItem.getChildren()];let _=!1;for(const C of u)_&&!Wh(C)&&C._remove(),Wh(C)&&(_=!0)}};function jv(m){return(r,c)=>{if(c.isPhantom)return;const u=c.modelPosition.nodeBefore;if(u&&u.is("element","listItem")){const _=c.mapper.toViewElement(u),C=_.getAncestors().find(Wh),M=m.createPositionAt(_,0).getWalker();for(const E of M){if("elementStart"==E.type&&E.item.is("element","li")){c.viewPosition=E.previousPosition;break}if("elementEnd"==E.type&&E.item==C){c.viewPosition=E.nextPosition;break}}}}}const YA=function(m,[r,c]){let _,C=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,C&&C.is("element","listItem")){const M=_.getFirstPosition();let E=null;if(M.parent.is("element","listItem")?E=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(E=M.nodeBefore),E){const N=E.getAttribute("listIndent");if(N>0)for(;C&&C.is("element","listItem");)C._setAttribute("listIndent",C.getAttribute("listIndent")+N),C=C.nextSibling}}};function BA(m){const r=new Jd({startPosition:m});let c;do{c=r.next()}while(!c.value.item.is("element","listItem"));return c.value.item}function jx(m,r,c,u,_,C){const M=Nx(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,N=_.writer,j=M?M.getAttribute("listIndent"):null;let W;if(M)if(j==m){const dt=E.toViewElement(M).parent;W=N.createPositionAfter(dt)}else{const dt=C.createPositionAt(M,"end");W=E.toViewPosition(dt)}else W=c;W=Nv(W);for(const dt of[...u.getChildren()])Wh(dt)&&(W=N.move(N.createRangeOn(dt),W).end,L1(N,dt,dt.nextSibling),L1(N,dt.previousSibling,dt))}function Wh(m){return m.is("element","ol")||m.is("element","ul")}class Gv extends lo{static get pluginName(){return"ListEditing"}static get requires(){return[Y0,t_,Yv]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const c=r.data,u=r.editing;var _;r.model.document.registerPostFixer(M=>function(E,N){const j=E.document.differ.getChanges(),W=new Map;let dt=!1;for(const Ee of j)if("insert"==Ee.type&&"listItem"==Ee.name)Zt(Ee.position);else if("insert"==Ee.type&&"listItem"!=Ee.name){if("$text"!=Ee.name){const ln=Ee.position.nodeAfter;ln.hasAttribute("listIndent")&&(N.removeAttribute("listIndent",ln),dt=!0),ln.hasAttribute("listType")&&(N.removeAttribute("listType",ln),dt=!0),ln.hasAttribute("listStyle")&&(N.removeAttribute("listStyle",ln),dt=!0),ln.hasAttribute("listReversed")&&(N.removeAttribute("listReversed",ln),dt=!0),ln.hasAttribute("listStart")&&(N.removeAttribute("listStart",ln),dt=!0);for(const Mn of Array.from(E.createRangeIn(ln)).filter(di=>di.item.is("element","listItem")))Zt(Mn.previousPosition)}Zt(Ee.position.getShiftedBy(Ee.length))}else"remove"==Ee.type&&"listItem"==Ee.name?Zt(Ee.position):("attribute"==Ee.type&&"listIndent"==Ee.attributeKey||"attribute"==Ee.type&&"listType"==Ee.attributeKey)&&Zt(Ee.range.start);for(const Ee of W.values())ue(Ee),xe(Ee);return dt;function Zt(Ee){const ln=Ee.nodeBefore;if(ln&&ln.is("element","listItem")){let Mn=ln;if(W.has(Mn))return;for(let di=Mn.previousSibling;di&&di.is("element","listItem");di=Mn.previousSibling)if(Mn=di,W.has(Mn))return;W.set(ln,Mn)}else{const Mn=Ee.nodeAfter;Mn&&Mn.is("element","listItem")&&W.set(Mn,Mn)}}function ue(Ee){let ln=0,Mn=null;for(;Ee&&Ee.is("element","listItem");){const di=Ee.getAttribute("listIndent");if(di>ln){let Ri;null===Mn?(Mn=di-ln,Ri=ln):(Mn>di&&(Mn=di),Ri=di-Mn),N.setAttribute("listIndent",Ri,Ee),dt=!0}else Mn=null,ln=Ee.getAttribute("listIndent")+1;Ee=Ee.nextSibling}}function xe(Ee){let ln=[],Mn=null;for(;Ee&&Ee.is("element","listItem");){const di=Ee.getAttribute("listIndent");if(Mn&&Mn.getAttribute("listIndent")>di&&(ln=ln.slice(0,di+1)),0!=di)if(ln[di]){const Ri=ln[di];Ee.getAttribute("listType")!=Ri&&(N.setAttribute("listType",Ri,Ee),dt=!0)}else ln[di]=Ee.getAttribute("listType");Mn=Ee,Ee=Ee.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",g3),c.mapper.registerViewToModelLength("li",g3),u.mapper.on("modelToViewPosition",jv(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const N=E.viewPosition,j=N.parent,W=E.mapper;if("ul"==j.name||"ol"==j.name){if(N.isAtEnd){const dt=W.toModelElement(N.nodeBefore),Zt=W.getModelLength(N.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt)}else{const dt=W.toModelElement(N.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==j.name&&N.nodeBefore&&("ul"==N.nodeBefore.name||"ol"==N.nodeBefore.name)){const dt=W.toModelElement(j);let Zt=1,ue=N.nodeBefore;for(;ue&&Wh(ue);)Zt+=W.getModelLength(ue),ue=ue.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt),M.stop()}})),c.mapper.on("modelToViewPosition",jv(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",h3,{priority:"high"}),M.on("insert:listItem",Vx(r.model)),M.on("attribute:listType:listItem",Bv,{priority:"high"}),M.on("attribute:listType:listItem",vf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(N,j,W)=>{if(!W.consumable.consume(j.item,"attribute:listIndent"))return;const dt=W.mapper.toViewElement(j.item),Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,xe=ue.previousSibling,Ee=Zt.createRangeOn(ue);Zt.remove(Ee),xe&&xe.nextSibling&&L1(Zt,xe,xe.nextSibling),jx(j.attributeOldValue+1,j.range.start,Ee.start,dt,W,E),Ix(j.item,dt,W,E);for(const ln of j.item.getChildren())W.consumable.consume(ln,"insert")})),M.on("remove:listItem",function(E){return(N,j,W)=>{const dt=W.mapper.toViewPosition(j.position).getLastMatchingPosition(Mn=>!Mn.item.is("element","li")).nodeAfter,Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,xe=ue.previousSibling,Ee=Zt.createRangeOn(ue),ln=Zt.remove(Ee);xe&&xe.nextSibling&&L1(Zt,xe,xe.nextSibling),jx(W.mapper.toModelElement(dt).getAttribute("listIndent")+1,j.position,Ee.start,dt,W,E);for(const Mn of Zt.createRangeIn(ln).getItems())W.mapper.unbindViewElement(Mn);N.stop()}}(r.model)),M.on("remove",Cy,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",h3,{priority:"high"}),M.on("insert:listItem",Vx(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",zA,{priority:"high"}),M.on("element:ol",zA,{priority:"high"}),M.on("element:li",Vv,{priority:"high"}),M.on("element:li",xy)}),r.model.on("insertContent",YA,{priority:"high"}),r.commands.add("numberedList",new a2(r,"numbered")),r.commands.add("bulletedList",new a2(r,"bulleted")),r.commands.add("indentList",new Hv(r,"forward")),r.commands.add("outdentList",new Hv(r,"backward"));const C=u.view.document;this.listenTo(C,"enter",(M,E)=>{const N=this.editor.model.document,j=N.selection.getLastPosition().parent;N.selection.isCollapsed&&"listItem"==j.name&&j.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(C,"delete",(M,E)=>{if("backward"!==E.direction)return;const N=this.editor.model.document.selection;if(!N.isCollapsed)return;const j=N.getFirstPosition();if(!j.isAtStart)return;const W=j.parent;"listItem"===W.name&&(W.previousSibling&&"listItem"===W.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const N=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(N).isEnabled&&(r.execute(N),E.stopPropagation(),E.preventDefault(),M.stop())},{context:"li"})}afterInit(){const r=this.editor.commands,c=r.get("indent"),u=r.get("outdent");c&&c.registerChildCommand(r.get("indentList")),u&&u.registerChildCommand(r.get("outdentList"))}}function g3(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=g3(u);return r}Xs("Ctrl+Enter");var Jv=b(1199);function Gx(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=C.writer,N=C.mapper.toViewElement(_.item),j=[...N.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(j);const W=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(N,0),W)};return u=>{u.on("attribute:url:media",c)}}function l6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function u6(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function jA(m,r,c,u){m.change(_=>{const C=_.createElement("media",{url:r});m.insertObject(C,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}Io()(Jv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Xs("Ctrl+Enter");class Jx extends Ta{refresh(){const r=this.editor.model,c=r.document.selection,u=u6(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const C=_.getSelectedElement();return!!C&&"media"===C.name}(c)||function(_,C){let E=P4(_,C).start.parent;return E.isEmpty&&!C.schema.isLimit(E)&&(E=E.parent),C.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=u6(u);_?c.change(C=>{C.setAttribute("url",r,_)}):jA(c,r,u,!0)}}class v3{constructor(r,c){const u=c.providers,_=c.extraProviders||[],C=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const N=E.name;return N?!C.has(N):(Tt("media-embed-no-provider-name",{provider:E}),!1)});this.locale=r,this.providerDefinitions=M}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,c,u){return this._getMedia(c).getViewElement(r,u)}_getMedia(r){if(!r)return new Qx(this.locale);r=r.trim();for(const c of this.providerDefinitions){const u=c.html,_=Ds(c.url);for(const C of _){const M=this._getUrlMatches(r,C);if(M)return new Qx(this.locale,r,M,u)}}return null}_getUrlMatches(r,c){let u=r.match(c);if(u)return u;let _=r.replace(/^https?:\/\//,"");return u=_.match(c),u||(_=_.replace(/^www\./,""),u=_.match(c),u||null)}}class Qx{constructor(r,c,u,_){this.url=this._getValidUrl(c),this._locale=r,this._match=u,this._previewRenderer=_}getViewElement(r,c){const u={};let _;if(c.renderForEditingView||c.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(u["data-oembed-url"]=this.url),c.renderForEditingView&&(u.class="ck-media__wrapper");const C=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,C)})}else this.url&&(u.url=this.url),_=r.createEmptyElement(c.elementName,u);return r.setCustomProperty("media-content",!0,_),_}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new Ps,c=this._locale.t;return r.content='',r.viewBox="0 0 64 42",new wr({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[r]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":c("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}var Wx=b(7442);Io()(Wx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Qv extends lo{constructor(r){super(r),r.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:c=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:c=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:c=>{const _=c[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:c=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new v3(r.locale,r.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const r=this.editor,c=r.model.schema,u=r.t,_=r.conversion,C=r.config.get("mediaEmbed.previewsInData"),M=r.config.get("mediaEmbed.elementName"),E=this.registry;r.commands.add("mediaEmbed",new Jx(r)),c.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),_.for("dataDowncast").elementToStructure({model:"media",view:(N,{writer:j})=>{const W=N.getAttribute("url");return l6(j,E,W,{elementName:M,renderMediaPreview:!!W&&C})}}),_.for("dataDowncast").add(Gx(E,{elementName:M,renderMediaPreview:C})),_.for("editingDowncast").elementToStructure({model:"media",view:(N,{writer:j})=>{const W=N.getAttribute("url");return dt=l6(j,E,W,{elementName:M,renderForEditingView:!0}),Zt=j,ue=u("media widget"),Zt.setCustomProperty("media",!0,dt),df(dt,Zt,{label:ue});var dt,Zt,ue}}),_.for("editingDowncast").add(Gx(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:N=>["oembed",M].includes(N.name)&&N.getAttribute("url")?{name:!0}:null,model:(N,{writer:j})=>{const W=N.getAttribute("url");return E.hasMedia(W)?j.createElement("media",{url:W}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(N,{writer:j})=>{const W=N.getAttribute("data-oembed-url");return E.hasMedia(W)?j.createElement("media",{url:W}):null}}).add(N=>{N.on("element:figure",(j,W,dt)=>{if(!dt.consumable.consume(W.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Zt,modelCursor:ue}=dt.convertChildren(W.viewItem,W.modelCursor);W.modelRange=Zt,W.modelCursor=ue,os(Zt.getItems())||dt.consumable.revert(W.viewItem,{name:!0,classes:"media"})})})}}const GA=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class JA extends lo{constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[vC,t_,ZC]}static get pluginName(){return"AutoMediaEmbed"}init(){const r=this.editor,c=r.model.document,u=r.plugins.get("ClipboardPipeline");this.listenTo(u,"inputTransformation",()=>{const _=c.selection.getFirstRange(),C=Ql.fromPosition(_.start);C.stickiness="toPrevious";const M=Ql.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(C,M),C.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Mt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,c){const u=this.editor,_=u.plugins.get(Qv).registry,C=new Ad(r,c),M=C.getWalker({ignoreElementEnd:!0});let E="";for(const N of M)N.item.is("$textProxy")&&(E+=N.item.data);E=E.trim(),E.match(GA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Ql.fromPosition(r),this._timeoutId=Mt.window.setTimeout(()=>{u.model.change(N=>{this._timeoutId=null,N.remove(C),C.detach();let j=null;"$graveyard"!==this._positionToInsert.root.rootName&&(j=this._positionToInsert),jA(u.model,E,j,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(t_).requestUndoOnBackspace()},100)):C.detach()}}var $x=b(9292);Io()($x.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ty extends aa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new as,this.keystrokes=new Gc,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),fs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),fs.cancel,"ck-button-cancel","cancel"),this._focusables=new Fa,this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),x({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(c=>{this._focusables.add(c),this.focusTracker.add(c.element)}),this.keystrokes.listenTo(this.element);const r=c=>c.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const c=r(this);if(c)return this.urlInputView.errorText=c,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,c=new Dr(this.locale,K2),u=c.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),c.label=r("Media URL"),c.infoText=this._urlInputViewInfoDefault,u.on("input",()=>{c.infoText=u.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=u.element.value.trim()}),c}_createButton(r,c,u,_){const C=new Hr(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}}class QA extends lo{static get requires(){return[Qv]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,c=r.commands.get("mediaEmbed");r.ui.componentFactory.add("mediaEmbed",u=>{const _=D1(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,C=r.buttonView,M=u.plugins.get(Qv).registry;r.once("change:isOpen",()=>{const E=new(A(Ty))((N=u.t,j=M,[W=>{if(!W.url.length)return N("The URL must not be empty.")},W=>{if(!j.hasMedia(W.url))return N("This media URL is not supported.")}]),u.locale);var N,j;r.panelView.children.add(E),C.on("open",()=>{E.disableCssTransitions(),E.url=c.value||"",E.urlInputView.fieldView.select(),E.enableCssTransitions()},{priority:"low"}),r.on("submit",()=>{E.isValid()&&(u.execute("mediaEmbed",E.url),u.editing.view.focus())}),r.on("change:isOpen",()=>E.resetFormStatus()),r.on("cancel",()=>{u.editing.view.focus()}),E.delegate("submit","cancel").to(r),E.urlInputView.fieldView.bind("value").to(c,"value"),E.urlInputView.bind("isEnabled").to(c,"isEnabled")}),r.bind("isEnabled").to(c),C.set({label:_("Insert media"),icon:'',tooltip:!0})}}var WA=b(4652);function Uy(m){if(m.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(m){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return m;default:return null}}function $A(m,r,c){const u=r.parent,_=c.createElement(m.type),C=u.getChildIndex(r)+1;return c.insertChild(C,_,u),m.style&&c.setStyle("list-style-type",m.style,_),m.startIndex&&m.startIndex>1&&c.setAttribute("start",m.startIndex,_),_}function KA(m){const r={},c=m.getStyle("mso-list");if(c){const u=c.match(/(^|\s{1,100})l(\d+)/i),_=c.match(/\s{0,100}lfo(\d+)/i),C=c.match(/\s{0,100}level(\d+)/i);u&&_&&C&&(r.id=u[2],r.order=_[1],r.indent=parseInt(C[1]))}return r}function My(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}Io()(WA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const ky=//i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return ky.test(r)||h.test(r)}execute(r){const{body:c,stylesString:u}=r._parsedData;(function Kx(m,r){if(!m.childCount)return;const c=new X1(m.document),u=function(M,E){const N=E.createRangeIn(M),j=new ms({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),W=[];for(const dt of N)if("elementStart"===dt.type&&j.match(dt.item)){const Zt=KA(dt.item);W.push({element:dt.item,id:Zt.id,order:Zt.order,indent:Zt.indent})}return W}(m,c);if(!u.length)return;let _=null,C=1;u.forEach((M,E)=>{const N=function(xe,Ee){if(!xe)return!0;if(xe.id!==Ee.id)return Ee.indent-xe.indent!=1;const ln=Ee.element.previousSibling;return!ln||!((Mn=ln).is("element","ol")||Mn.is("element","ul"));var Mn}(u[E-1],M),W=(Zt=M,(dt=N?null:u[E-1])?Zt.indent-dt.indent:Zt.indent-1);var dt,Zt;if(N&&(_=null,C=1),!_||0!==W){const xe=function(Ee,ln){const di=/mso-level-number-format:([^;]{0,100});/gi,Ri=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Jo=new RegExp(`@list l${Ee.id}:level${Ee.indent}\\s*({[^}]*)`,"gi").exec(ln);let Da="decimal",Ts="ol",$r=null;if(Jo&&Jo[1]){const Sl=di.exec(Jo[1]);if(Sl&&Sl[1]&&(Da=Sl[1].trim(),Ts="bullet"!==Da&&"image"!==Da?"ol":"ul"),"bullet"===Da){const hl=function(v6){const c2=function(bf){if(bf.getChild(0).is("$text"))return null;for(const l2 of bf.getChildren()){if(!l2.is("element","span"))continue;const T3=l2.getChild(0);if(T3)return T3.is("$text")?T3:T3.getChild(0)}return null}(v6);if(!c2)return null;const Yp=c2._data;return"o"===Yp?"circle":"\xb7"===Yp?"disc":"\xa7"===Yp?"square":null}(Ee.element);hl&&(Da=hl)}else{const hl=Ri.exec(Jo[1]);hl&&hl[1]&&($r=parseInt(hl[1]))}}return{type:Ts,startIndex:$r,style:Uy(Da)}}(M,r);if(_)if(M.indent>C){const Ee=_.getChild(_.childCount-1),ln=Ee.getChild(Ee.childCount-1);_=$A(xe,ln,c),C+=1}else M.indentC.indexOf(xe)>-1)?W.push(Zt):Zt.getAttribute("src")||W.push(Zt)}for(const dt of W)E.remove(dt)})(u,m,c),function(C,M,E){const N=E.createRangeIn(M),j=[];for(const Zt of N)if("elementStart"==Zt.type&&Zt.item.is("element","v:shape")){const ue=Zt.item.getAttribute("id");if(C.includes(ue))continue;W(Zt.item.parent.getChildren(),ue)||j.push(Zt.item)}for(const Zt of j){const ue={src:dt(Zt)};Zt.hasAttribute("alt")&&(ue.alt=Zt.getAttribute("alt"));const xe=E.createElement("img",ue);E.insertChild(Zt.index+1,xe,Zt.parent)}function W(Zt,ue){for(const xe of Zt)if(xe.is("element")&&("img"==xe.name&&xe.getAttribute("v:shapes")==ue||W(xe.getChildren(),ue)))return!0;return!1}function dt(Zt){for(const ue of Zt.getChildren())if(ue.is("element")&&ue.getAttribute("src"))return ue.getAttribute("src")}}(u,m,c),function(C,M){const E=M.createRangeIn(C),N=new ms({name:/v:(.+)/}),j=[];for(const W of E)"elementStart"==W.type&&N.match(W.item)&&j.push(W.item);for(const W of j)M.remove(W)}(m,c);const _=function(C,M){const E=M.createRangeIn(C),N=new ms({name:"img"}),j=[];for(const W of E)W.item.is("element")&&N.match(W.item)&&W.item.getAttribute("src").startsWith("file://")&&j.push(W.item);return j}(m,c);_.length&&function(C,M,E){if(C.length===M.length)for(let N=0;NM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?C.nodeAfter:C.nodeBefore}function O(m,r){return!!m&&m.is("element")&&r.includes(m.name)}const q=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class V{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new X1(this.document),{body:u}=r._parsedData;(function(_,C){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);C.remove(M),C.insertChild(E,M.getChildren(),_)}})(u,c),function(_,C){for(const M of C.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const N=E.getChild(0);N&&N.is("element","p")&&C.unwrapElement(N)}}}(u,c),function(_,C){const M=new em(C.document.stylesProcessor),E=new D_(M,{renderingMode:"data"}),N=E.blockElements,j=E.inlineObjectElements,W=[];for(const dt of C.createRangeIn(_)){const Zt=dt.item;if(Zt.is("element","br")){const ue=w(Zt,"forward",C,{blockElements:N,inlineObjectElements:j}),xe=w(Zt,"backward",C,{blockElements:N,inlineObjectElements:j}),Ee=O(ue,N);(O(xe,N)||Ee)&&W.push(Zt)}}for(const dt of W)dt.hasClass("Apple-interchange-newline")?C.remove(dt):C.replace(dt,C.createElement("p"))}(u,c),r.content=u}}const ut=/(\s+)<\/span>/g,(r,c)=>1===c.length?" ":Array(c.length+1).join("\xa0 ").substr(0,c.length))}function je(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function Cn(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function ai(m,r){const u=parseInt(r.parent.parent.getAttribute("headingColumns")||"0"),{column:_}=m.getCellLocation(r);return!!u&&_{r.on(`element:${m}`,(c,u,{writer:_})=>{if(!u.modelRange)return;const C=u.modelRange.start.nodeAfter,M=_.createPositionAt(C,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(C.getChildren());if(E.every(N=>N.is("element","$marker"))){const N=_.createElement("paragraph");_.insert(N,_.createPositionAt(C,0));for(const j of E)_.move(_.createRangeOn(j),_.createPositionAt(N,"end"))}},{priority:"low"})}}function yo(m){let r=0,c=0;const u=Array.from(m.getChildren()).filter(_=>"th"===_.name||"td"===_.name);for(;c1||M>1)&&this._recordSpans(_,M,C),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+C}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,c||this.next()}skipRow(r){this._skipRows.add(r)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(r,c=this._row,u=this._column){return{done:!1,value:new ma(this,r,c,u)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const r=this._spannedCells.get(this._row);return r&&r.get(this._column)||null}_recordSpans(r,c,u){const _={cell:r,row:this._row,column:this._column};for(let C=this._row;C0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const r=this._getRowLength(0);for(let c=this._startRow;!this._jumpedToStartRow;c--)r===this._getRowLength(c)&&(this._row=c,this._rowIndex=c,this._jumpedToStartRow=!0)}_getRowLength(r){return[...this._table.getChild(r).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}}class ma{constructor(r,c,u,_){this.cell=c,this.row=r._row,this.column=r._column,this.cellAnchorRow=u,this.cellAnchorColumn=_,this._cellIndex=r._cellIndex,this._rowIndex=r._rowIndex,this._table=r._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function wa(m,r){return(c,{writer:u})=>{const _=c.getAttribute("headingRows")||0,C=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},C);_>0&&u.insert(u.createPositionAt(C,"end"),u.createContainerElement("thead",null,u.createSlot(E=>E.is("element","tableRow")&&E.index<_))),_E.is("element","tableRow")&&E.index>=_)));for(const{positionOffset:E,filter:N}of r.additionalSlots)u.insert(u.createPositionAt(C,E),u.createSlot(N));return u.insert(u.createPositionAt(C,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:N})=>N(E)))),r.asWidget?((N=u).setCustomProperty("table",!0,E=M),df(E,N,{hasSelectionHandle:!0})):M;var E,N}}function ao(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,C=_.getChildIndex(u),M=new so(_,{row:C}),E=_.getAttribute("headingRows")||0,N=_.getAttribute("headingColumns")||0;let j=null;for(const W of M)if(W.cell==r){const dt=W.row{if(!r.parent.is("element","tableCell")||!Br(r))return null;if(m.asWidget)return c.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const u=c.createContainerElement("p");return c.setCustomProperty("dataPipeline:transparentRendering",!0,u),u}}}function Br(m){return 1==m.parent.childCount&&!!m.getAttributeKeys().next().done}class Tc extends Ta{refresh(){const r=this.editor.model;this.isEnabled=function(_,C){const M=_.getFirstPosition().parent;return C.checkChild(M===M.root?M:M.parent,"table")}(r.document.selection,r.schema)}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("TableUtils"),C=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&C&&(r.headingRows=C),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const N=_.createTable(E,r);u.insertObject(N,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(N.getNodeByPath([0,0,0]),0))})}}class r2 extends Ta{constructor(r,c={}){super(r),this.order=c.order||"below"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="above"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertRows(N,{at:_?E:E+1,copyStructureFromAbove:!_})}}class d6 extends Ta{constructor(r,c={}){super(r),this.order=c.order||"right"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="left"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertColumns(N,{columns:1,at:_?E:E+1})}}class b3 extends Ta{constructor(r,c={}){super(r),this.direction=c.direction||"horizontally"}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===r.length}execute(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?r.splitCellHorizontally(c,2):r.splitCellVertically(c,2)}}function p6(m,r,c){const{startRow:u,startColumn:_,endRow:C,endColumn:M}=r,E=c.createElement("table"),N=C-u+1;for(let W=0;W0&&je("headingRows",Ee-Zt,W,xe,0);const ln=parseInt(dt.getAttribute("headingColumns")||"0");ln>0&&je("headingColumns",ln-ue,W,xe,0)}(E,m,u,_,c),E}function m6(m,r,c=0){const u=[],_=new so(m,{startRow:c,endRow:r-1});for(const C of _){const{row:M,cellHeight:E}=C;M1&&(E.rowspan=N);const j=parseInt(m.getAttribute("colspan")||"1");j>1&&(E.colspan=j);const W=C+M,dt=[...new so(_,{startRow:C,endRow:W,includeAllSlots:!0})];let Zt,ue=null;for(const xe of dt){const{row:Ee,column:ln,cell:Mn}=xe;Mn===m&&void 0===Zt&&(Zt=ln),void 0!==Zt&&Zt===ln&&Ee===W&&(ue=Cn(c,xe.getPositionBefore(),E))}return je("rowspan",M,m,c),ue}function f6(m,r){const c=[],u=new so(m);for(const _ of u){const{column:C,cellWidth:M}=_;C1&&(C.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(C.rowspan=E);const N=Cn(u,u.createPositionAfter(m),C);return je("colspan",_,m,u),N}function C3(m,r,c,u,_,C){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&je("colspan",_-c+1,m,C,1),r+E-1>u&&je("rowspan",u-r+1,m,C,1)}function x3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:C}of new so(m))u[C]++;const _=u.reduce((C,M,E)=>M?C:[...C,E],[]);return _.length>0&&(r.removeColumns(m,{at:_[_.length-1]}),!0)}function Xx(m,r){const c=[],u=r.getRows(m);for(let _=0;_0&&(r.removeRows(m,{at:c[c.length-1]}),!0)}function XA(m,r){x3(m,r)||Xx(m,r)}function t7(m,r){const c=Array.from(new so(m,{startColumn:r.firstColumn,endColumn:r.lastColumn,row:r.lastRow}));return c.every(({cellHeight:_})=>1===_)?r.lastRow:r.lastRow+(c[0].cellHeight-1)}function Dy(m,r){const c=Array.from(new so(m,{startRow:r.firstRow,endRow:r.lastRow,column:r.lastColumn}));return c.every(({cellWidth:_})=>1===_)?r.lastColumn:r.lastColumn+(c[0].cellWidth-1)}class Wv extends Ta{constructor(r,c){super(r),this.direction=c.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const r=this._getMergeableCell();this.value=r,this.isEnabled=!!r}execute(){const r=this.editor.model,c=r.document,u=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(c.selection)[0],_=this.value,C=this.direction;r.change(M=>{const E="right"==C||"down"==C,N=E?u:_,j=E?_:u,W=j.parent;var Ee,ln,Mn;ln=N,Mn=M,Py(Ee=j)||(Py(ln)&&Mn.remove(Mn.createRangeIn(ln)),Mn.move(Mn.createRangeIn(Ee),Mn.createPositionAt(ln,"end"))),Mn.remove(Ee);const dt=this.isHorizontal?"colspan":"rowspan",Zt=parseInt(u.getAttribute(dt)||"1"),ue=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Zt+ue,N),M.setSelection(M.createRangeIn(N));const xe=this.editor.plugins.get("TableUtils");XA(W.findAncestor("table"),xe)})}_getMergeableCell(){const r=this.editor.model.document,c=this.editor.plugins.get("TableUtils"),u=c.getTableCellsContainingSelection(r.selection)[0];if(!u)return;const _=this.isHorizontal?function(E,N,j){const Zt="right"==N?E.nextSibling:E.previousSibling,ue=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Zt)return;const xe="right"==N?E:Zt,Ee="right"==N?Zt:E,{column:ln}=j.getCellLocation(xe),{column:Mn}=j.getCellLocation(Ee),di=parseInt(xe.getAttribute("colspan")||"1"),Ri=ai(j,xe),Jo=ai(j,Ee);return ue&&Ri!=Jo?void 0:ln+di===Mn?Zt:void 0}(u,this.direction,c):function(E,N,j){const W=E.parent,dt=W.parent,Zt=dt.getChildIndex(W);if("down"==N&&Zt===j.getRows(dt)-1||"up"==N&&0===Zt)return null;const ue=parseInt(E.getAttribute("rowspan")||"1"),xe=dt.getAttribute("headingRows")||0;if(xe&&("down"==N&&Zt+ue===xe||"up"==N&&Zt===xe))return null;const Mn=parseInt(E.getAttribute("rowspan")||"1"),di="down"==N?Zt+Mn:Zt,Ri=[...new so(dt,{endRow:di})],Da=Ri.find($r=>$r.cell===E).column,Ts=Ri.find(({row:$r,cellHeight:Sl,column:hl})=>hl===Da&&("down"==N?$r===di:di===$r+Sl));return Ts&&Ts.cell?Ts.cell:null}(u,this.direction,c);if(!_)return;const C=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(C)||"1");return parseInt(_.getAttribute(C)||"1")===M?_:void 0}}function Py(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class Sy extends Ta{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===C)}else this.isEnabled=!1}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0],M=C.findAncestor("table"),E=c.getCellLocation(C).column;r.change(N=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const W=function(dt,Zt,ue,xe){const Ee=dt.getChild(Math.min(Zt,xe-1));let ln=Ee.getChild(0),Mn=0;for(const di of Ee.getChildren()){if(Mn>ue)return ln;ln=di,Mn+=parseInt(di.getAttribute("colspan")||"1")}return ln}(M,_.first,E,c.getRows(M));N.setSelection(N.createPositionAt(W,0))})}}class Ly extends Ta{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MN.cell===c).column,last:C.find(N=>N.cell===u).column},E=(N=C,j=c,W=u,dt=M,parseInt(W.getAttribute("colspan")||"1")>1?W:j.previousSibling||W.nextSibling?W.nextSibling||j.previousSibling:dt.first?N.reverse().find(({column:ue})=>ueue>dt.last).cell);var N,j,W,dt;this.editor.model.change(N=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),N.setSelection(N.createPositionAt(E,0))})}}class WT extends Ta{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(C=>this._isInHeading(C,C.parent.parent))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),N=this.value?M:E+1,j=C.getAttribute("headingRows")||0;u.change(W=>{if(N){const dt=m6(C,N,N>j?j:0);for(const{cell:Zt}of dt)_6(Zt,N,W)}je("headingRows",N,C,W,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(C=>ai(c,C))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),N=this.value?M:E+1;u.change(j=>{if(N){const W=f6(C,N);for(const{cell:dt,column:Zt}of W)h6(dt,Zt,N,j)}je("headingColumns",N,C,j,0)})}}class Xd extends lo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(r){const c=r.parent,u=c.parent,_=u.getChildIndex(c),C=new so(u,{row:_});for(const{cell:M,row:E,column:N}of C)if(M===r)return{row:E,column:N}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,C=c.columns||2;return Wn(r,u,0,_,C),c.headingRows&&je("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&je("headingColumns",Math.min(c.headingColumns,C),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,C=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,N=this.getRows(r),j=this.getColumns(r);if(_>N)throw new it("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(W=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&je("headingRows",dt+C,r,W,0),!M&&(0===_||_===N))return void Wn(W,r,_,C,j);const Zt=M?Math.max(_,E):_,ue=new so(r,{endRow:Zt}),xe=new Array(j).fill(1);for(const{row:Ee,column:ln,cellHeight:Mn,cellWidth:di,cell:Ri}of ue){const Jo=Ee+Mn-1,Da=Ee<=E&&E<=Jo;Ee<_&&_<=Jo?(W.setAttribute("rowspan",Mn+C,Ri),xe[ln]=-di):M&&Da&&(xe[ln]=di)}for(let Ee=0;Ee0&&Cn(W,Ri,di>1?{colspan:di}:void 0),Mn+=Math.abs(di)-1}}})}insertColumns(r,c={}){const _=c.at||0,C=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_C-1)throw new it("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(N=>{const j={first:M,last:E},{cellsToMove:W,cellsToTrim:dt}=function(Zt,{first:ue,last:xe}){const Ee=new Map,ln=[];for(const{row:Mn,column:di,cellHeight:Ri,cell:Jo}of new so(Zt,{endRow:xe})){const Da=Mn+Ri-1;if(Mn>=ue&&Mn<=xe&&Da>xe&&Ee.set(di,{cell:Jo,rowspan:Ri-(xe-Mn+1)}),Mn=ue){let Ts;Ts=Da>=xe?xe-ue+1:Da-ue+1,ln.push({cell:Jo,rowspan:Ri-Ts})}}return{cellsToMove:Ee,cellsToTrim:ln}}(r,j);W.size&&function(Zt,ue,xe,Ee){const Mn=[...new so(Zt,{includeAllSlots:!0,row:ue})],di=Zt.getChild(ue);let Ri;for(const{column:Jo,cell:Da,isAnchor:Ts}of Mn)if(xe.has(Jo)){const{cell:$r,rowspan:Sl}=xe.get(Jo),hl=Ri?Ee.createPositionAfter(Ri):Ee.createPositionAt(di,0);Ee.move(Ee.createRangeOn($r),hl),je("rowspan",Sl,$r,Ee),Ri=$r}else Ts&&(Ri=Da)}(r,E+1,W,N);for(let Zt=E;Zt>=M;Zt--)N.remove(r.getChild(Zt));for(const{rowspan:Zt,cell:ue}of dt)je("rowspan",Zt,ue,N);(function(Zt,{first:ue,last:xe},Ee){const ln=Zt.getAttribute("headingRows")||0;ue{!function(j,W,dt){const Zt=j.getAttribute("headingColumns")||0;if(Zt&&W.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let j=M;j>=_;j--){for(const{cell:W,column:dt,cellWidth:Zt}of[...new so(r)])dt<=j&&Zt>1&&dt+Zt>j?je("colspan",Zt-1,W,E):dt===j&&E.remove(W);if(N[j]){const W=0===j?N[1]:N[j-1],dt=parseFloat(N[j].getAttribute("columnWidth")),Zt=parseFloat(W.getAttribute("columnWidth"));E.remove(N[j]),E.setAttribute("columnWidth",dt+Zt+"%",W)}}Xx(r,this)||x3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,C=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:N,updatedSpan:j}=Oy(M,c);je("colspan",j,r,E);const W={};N>1&&(W.colspan=N),C>1&&(W.rowspan=C),g6(M>c?c-1:M-1,E,E.createPositionAfter(r),W)}if(Mxe===r),dt=j.filter(({cell:xe,cellWidth:Ee,column:ln})=>xe!==r&&ln===W||lnW);for(const{cell:xe,cellWidth:Ee}of dt)E.setAttribute("colspan",Ee+N,xe);const Zt={};C>1&&(Zt.rowspan=C),g6(N,E,E.createPositionAfter(r),Zt);const ue=_.getAttribute("headingColumns")||0;ue>W&&je("headingColumns",ue+N,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,C=_.parent,M=C.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),N=parseInt(r.getAttribute("colspan")||"1");u.change(j=>{if(E>1){const W=[...new so(C,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Zt}=Oy(E,c);je("rowspan",Zt,r,j);const{column:ue}=W.find(({cell:Ee})=>Ee===r),xe={};dt>1&&(xe.rowspan=dt),N>1&&(xe.colspan=N);for(const Ee of W){const{column:ln,row:Mn}=Ee;Mn>=M+Zt&&ln===ue&&(Mn+M+Zt)%dt==0&&g6(1,j,Ee.getPositionBefore(),xe)}}if(EM&&j.setAttribute("rowspan",Ee+W,xe);const Zt={};N>1&&(Zt.colspan=N),Wn(j,C,M+1,W,1,Zt);const ue=C.getAttribute("headingRows")||0;ue>M&&je("headingRows",ue+W,C,j)}})}getColumns(r){return[...r.getChild(0).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}getRows(r){return Array.from(r.getChildren()).reduce((c,u)=>u.is("element","tableRow")?c+1:c,0)}createTableWalker(r,c={}){return new so(r,c)}getSelectedTableCells(r){const c=[];for(const u of this.sortRanges(r.getRanges())){const _=u.getContainedElement();_&&_.is("element","tableCell")&&c.push(_)}return c}getTableCellsContainingSelection(r){const c=[];for(const u of r.getRanges()){const _=u.start.findAncestor("tableCell");_&&c.push(_)}return c}getSelectionAffectedTableCells(r){const c=this.getSelectedTableCells(r);return c.length?c:this.getTableCellsContainingSelection(r)}getRowIndexes(r){const c=r.map(u=>u.parent.index);return this._getFirstLastIndexesObject(c)}getColumnIndexes(r){const c=r[0].findAncestor("table"),u=[...new so(c)].filter(_=>r.includes(_.cell)).map(_=>_.column);return this._getFirstLastIndexesObject(u)}isSelectionRectangular(r){if(r.length<2||!this._areCellInTheSameTableSection(r))return!1;const c=new Set,u=new Set;let _=0;for(const M of r){const{row:E,column:N}=this.getCellLocation(M),j=parseInt(M.getAttribute("rowspan"))||1,W=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(N),j>1&&c.add(E+j-1),W>1&&u.add(N+W-1),_+=j*W}return function(M,E){const N=Array.from(M.values()),j=Array.from(E.values());return(Math.max(...N)-Math.min(...N)+1)*(Math.max(...j)-Math.min(...j)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Ey)}_getFirstLastIndexesObject(r){const c=r.sort((u,_)=>u-_);return{first:c[0],last:c[c.length-1]}}_areCellInTheSameTableSection(r){const c=r[0].findAncestor("table"),u=this.getRowIndexes(r),_=parseInt(c.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(u,_))return!1;const C=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(C,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),C=_.shift(),{mergeWidth:M,mergeHeight:E}=function(N,j,W){let dt=0,Zt=0;for(const Mn of j){const{row:di,column:Ri}=W.getCellLocation(Mn);dt=Iy(Mn,Ri,dt,"colspan"),Zt=Iy(Mn,di,Zt,"rowspan")}const{row:ue,column:xe}=W.getCellLocation(N);return{mergeWidth:dt-xe,mergeHeight:Zt-ue}}(C,_,c);je("colspan",M,C,u),je("rowspan",E,C,u);for(const N of _)t9(N,C,u);XA(C.findAncestor("table"),c),u.setSelection(C,"in")})}}function t9(m,r,c){Fy(m)||(Fy(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Fy(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Iy(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class e7 extends Ta{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const N of C.getChild(E).getChildren())M.push(r.createRangeOn(N));r.change(E=>{E.setSelection(M)})}}class Ny extends Ta{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.plugins.get("TableUtils"),c=this.editor.model,u=r.getSelectionAffectedTableCells(c.document.selection),_=u[0],C=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),N=r.getCellLocation(C),j=Math.min(E.column,N.column),W=Math.max(E.column,N.column),dt=[];for(const Zt of new so(M,{startColumn:j,endColumn:W}))dt.push(c.createRangeOn(Zt.cell));c.change(Zt=>{Zt.setSelection(dt)})}}function n9(m,r){let c=!1;const u=function(_){const C=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((N,j)=>j.is("element","tableRow")?N+1:N,0),E=[];for(const{row:N,cell:j,cellHeight:W}of new so(_)){if(W<2)continue;const dt=Ndt&&E.push({cell:j,rowspan:dt-N})}return E}(m);if(u.length){c=!0;for(const _ of u)je("rowspan",_.rowspan,_.cell,r,1)}return c}function n7(m,r){let c=!1;const u=function(E){const N=new Array(E.childCount).fill(0);for(const{rowIndex:j}of new so(E,{includeAllSlots:!0}))N[j]++;return N}(m),_=[];for(const[E,N]of u.entries())!N&&m.getChild(E).is("element","tableRow")&&_.push(E);if(_.length){c=!0;for(const E of _.reverse())r.remove(m.getChild(E)),u.splice(E,1)}const C=u.filter((E,N)=>m.getChild(N).is("element","tableRow")),M=C[0];if(!C.every(E=>E===M)){const E=C.reduce((N,j)=>j>N?j:N,0);for(const[N,j]of C.entries()){const W=E-j;if(W){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function r9(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function s9(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&Br(m)!==c.is("element","span")}var Ry=b(3881);Io()(Ry.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hy extends lo{constructor(r){super(r),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[Xd]}init(){const r=this.editor,c=r.model,u=c.schema,_=r.conversion,C=r.plugins.get(Xd);u.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),u.register("tableRow",{allowIn:"table",isLimit:!0}),u.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),_.for("upcast").add(M=>{M.on("element:figure",(E,N,j)=>{if(!j.consumable.test(N.viewItem,{name:!0,classes:"table"}))return;const W=function(Zt){for(const ue of Zt.getChildren())if(ue.is("element","table"))return ue}(N.viewItem);if(!W||!j.consumable.test(W,{name:!0}))return;j.consumable.consume(N.viewItem,{name:!0,classes:"table"});const dt=os(j.convertItem(W,N.modelCursor).modelRange.getItems());dt?(j.convertChildren(N.viewItem,j.writer.createPositionAt(dt,"end")),j.updateConversionResult(dt,N)):j.consumable.revert(N.viewItem,{name:!0,classes:"table"})})}),_.for("upcast").add(function Ai(){return m=>{m.on("element:table",(r,c,u)=>{const _=c.viewItem;if(!u.consumable.test(_,{name:!0}))return;const{rows:C,headingRows:M,headingColumns:E}=function(W){let dt,Zt=0;const ue=[],xe=[];let Ee;for(const ln of Array.from(W.getChildren())){if("tbody"!==ln.name&&"thead"!==ln.name&&"tfoot"!==ln.name)continue;"thead"!==ln.name||Ee||(Ee=ln);const Mn=Array.from(ln.getChildren()).filter(di=>di.is("element","tr"));for(const di of Mn)if(Ee&&ln===Ee||"tbody"===ln.name&&Array.from(di.getChildren()).length&&Array.from(di.getChildren()).every(Ri=>Ri.is("element","th")))Zt++,ue.push(di);else{xe.push(di);const Ri=yo(di);(!dt||Riu.convertItem(W,u.writer.createPositionAt(j,"end"))),u.convertChildren(_,u.writer.createPositionAt(j,"end")),j.isEmpty){const W=u.writer.createElement("tableRow");u.writer.insert(W,u.writer.createPositionAt(j,"end")),Cn(u.writer,u.writer.createPositionAt(W,"end"))}u.updateConversionResult(j,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:wa(C,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:wa(C,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,N)=>{N.viewItem.isEmpty&&0==N.modelCursor.index&&E.stop()},{priority:"high"})}),_.for("downcast").elementToElement({model:"tableRow",view:(M,{writer:E})=>M.isEmpty?E.createEmptyElement("tr"):E.createContainerElement("tr")}),_.for("upcast").elementToElement({model:"tableCell",view:"td"}),_.for("upcast").elementToElement({model:"tableCell",view:"th"}),_.for("upcast").add(Vi("td")),_.for("upcast").add(Vi("th")),_.for("editingDowncast").elementToElement({model:"tableCell",view:ao({asWidget:!0})}),_.for("dataDowncast").elementToElement({model:"tableCell",view:ao()}),_.for("editingDowncast").elementToElement({model:"paragraph",view:Ea({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Ea(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:zy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:zy("rowspan")},view:"rowspan"}),r.config.define("table.defaultHeadings.rows",0),r.config.define("table.defaultHeadings.columns",0),r.commands.add("insertTable",new Tc(r)),r.commands.add("insertTableRowAbove",new r2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new r2(r,{order:"below"})),r.commands.add("insertTableColumnLeft",new d6(r,{order:"left"})),r.commands.add("insertTableColumnRight",new d6(r,{order:"right"})),r.commands.add("removeTableRow",new Sy(r)),r.commands.add("removeTableColumn",new Ly(r)),r.commands.add("splitTableCellVertically",new b3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new b3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new XT(r)),r.commands.add("mergeTableCellRight",new Wv(r,{direction:"right"})),r.commands.add("mergeTableCellLeft",new Wv(r,{direction:"left"})),r.commands.add("mergeTableCellDown",new Wv(r,{direction:"down"})),r.commands.add("mergeTableCellUp",new Wv(r,{direction:"up"})),r.commands.add("setTableColumnHeader",new $T(r)),r.commands.add("setTableRowHeader",new WT(r)),r.commands.add("selectTableRow",new e7(r)),r.commands.add("selectTableColumn",new Ny(r)),function e9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;const M=new Set;for(const E of _){let N=null;"insert"==E.type&&"table"==E.name&&(N=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(N=E.position.findAncestor("table")),i9(E)&&(N=E.range.start.findAncestor("table")),N&&!M.has(N)&&(C=n9(N,c)||C,C=n7(N,c)||C,M.add(N))}return C}(r,m))}(c),function o9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(C=a9(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableRow"==M.name&&(C=qy(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableCell"==M.name&&(C=$v(M.position.nodeAfter,c)||C),"remove"!=M.type&&"insert"!=M.type||!r9(M)||(C=$v(M.position.parent,c)||C);return C}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const N=M.document.differ;for(const j of N.getChanges()){let W,dt=!1;if("attribute"==j.type){const Ee=j.range.start.nodeAfter;if(!Ee||!Ee.is("element","table")||"headingRows"!=j.attributeKey&&"headingColumns"!=j.attributeKey)continue;W=Ee,dt="headingRows"==j.attributeKey}else"tableRow"!=j.name&&"tableCell"!=j.name||(W=j.position.findAncestor("table"),dt="tableRow"==j.name);if(!W)continue;const Zt=W.getAttribute("headingRows")||0,ue=W.getAttribute("headingColumns")||0,xe=new so(W);for(const Ee of xe){const ln=Ee.rows9(Zt,E.mapper));for(const Zt of dt)E.reconvertItem(Zt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function zy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var Yy=b(1613);Io()(Yy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ka extends aa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new Gc,this.focusTracker=new as,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(u,_)=>`${_} \xd7 ${u}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":c.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:c.to("label")}]}],on:{mousedown:c.to(u=>{u.preventDefault()}),click:c.to(()=>{this.fire("execute")})}}),this.on("boxover",(u,_)=>{const{row:C,column:M}=_.target.dataset;this.items.get(10*(parseInt(C,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,C)=>{if(!C)return;const{row:M,column:E}=C.dataset;this.set({rows:parseInt(M),columns:parseInt(E)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:r,focusTracker:c,gridItems:u,numberOfColumns:_,uiLanguageDirection:C}){const M="number"==typeof _?()=>_:_;function E(W){return dt=>{const Zt=u.find(Ee=>Ee.element===c.focusedElement),ue=u.getIndex(Zt),xe=W(ue,u);u.get(xe).focus(),dt.stopPropagation(),dt.preventDefault()}}function N(W,dt){return W===dt-1?0:W+1}function j(W,dt){return 0===W?dt-1:W-1}r.set("arrowright",E((W,dt)=>"rtl"===C?j(W,dt.length):N(W,dt.length))),r.set("arrowleft",E((W,dt)=>"rtl"===C?N(W,dt.length):j(W,dt.length))),r.set("arrowup",E((W,dt)=>{let Zt=W-M();return Zt<0&&(Zt=W+M()*Math.floor(dt.length/M()),Zt>dt.length-1&&(Zt-=M())),Zt})),r.set("arrowdown",E((W,dt)=>{let Zt=W+M();return Zt>dt.length-1&&(Zt=W%M()),Zt}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const r of this.items)this.focusTracker.add(r.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const r=this.rows,c=this.columns;this.items.map((u,_)=>{const C=Math.floor(_/10){const C=r.commands.get("insertTable"),M=D1(_);let E;return M.bind("isEnabled").to(C),M.buttonView.set({icon:'',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new ka(_),M.panelView.children.add(E),E.delegate("execute").to(M),M.on("execute",()=>{r.execute("insertTable",{rows:E.rows,columns:E.columns}),r.editing.view.focus()}))}),M}),r.ui.componentFactory.add("tableColumn",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:c("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:u?"insertTableColumnLeft":"insertTableColumnRight",label:c("Insert column left")}},{type:"button",model:{commandName:u?"insertTableColumnRight":"insertTableColumnLeft",label:c("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:c("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:c("Select column")}}];return this._prepareDropdown(c("Column"),'',C,_)}),r.ui.componentFactory.add("tableRow",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:c("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:c("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:c("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:c("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:c("Select row")}}];return this._prepareDropdown(c("Row"),'',C,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const C=[{type:"button",model:{commandName:"mergeTableCellUp",label:c("Merge cell up")}},{type:"button",model:{commandName:u?"mergeTableCellRight":"mergeTableCellLeft",label:c("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:c("Merge cell down")}},{type:"button",model:{commandName:u?"mergeTableCellLeft":"mergeTableCellRight",label:c("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:c("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:c("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(c("Merge cells"),'',C,_)})}_prepareDropdown(r,c,u,_){const C=this.editor,M=D1(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...N)=>N.some(j=>j)),this.listenTo(M,"execute",N=>{C.execute(N.source.commandName),N.source instanceof xi||C.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const C=this.editor,M=D1(_,m4),E="mergeTableCells",N=C.commands.get(E),j=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([N,...j],"isEnabled",(...W)=>W.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{C.execute(E),C.editing.view.focus()}),this.listenTo(M,"execute",W=>{C.execute(W.source.commandName),C.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],C=new tc;for(const M of c)lr(M,u,_,C);return Eu(r,C),_}}function lr(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new L0(m.model),{commandName:C,bindIsOn:M}=m.model,E=r.commands.get(C);c.push(E),_.set({commandName:C}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var i7=b(6945);Io()(i7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class A3 extends lo{static get pluginName(){return"TableSelection"}static get requires(){return[Xd,Xd]}init(){const r=this.editor,u=r.editing.view;this.listenTo(r.model,"deleteContent",(_,C)=>this._handleDeleteContent(_,C),{priority:"high"}),this.listenTo(u.document,"insertText",(_,C)=>this._handleInsertTextEvent(_,C),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const u=this.editor.plugins.get(Xd).getSelectedTableCells(this.editor.model.document.selection);return 0==u.length?null:u}getSelectionAsFragment(){const r=this.editor.plugins.get(Xd),c=this.getSelectedTableCells();return c?this.editor.model.change(u=>{const _=u.createDocumentFragment(),{first:C,last:M}=r.getColumnIndexes(c),{first:E,last:N}=r.getRowIndexes(c),j=c[0].findAncestor("table");let W=N,dt=M;if(r.isSelectionRectangular(c)){const ue={firstColumn:C,lastColumn:M,firstRow:E,lastRow:N};W=t7(j,ue),dt=Dy(j,ue)}const Zt=p6(j,{startRow:E,startColumn:C,endRow:W,endColumn:dt},u);return u.insert(Zt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(C=>_.createRangeOn(C)),{backward:u.backward})})}getFocusCell(){const r=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return r&&r.is("element","tableCell")?r:null}getAnchorCell(){const r=os(this.editor.model.document.selection.getRanges()).getContainedElement();return r&&r.is("element","tableCell")?r:null}_defineSelectionConverter(){const r=this.editor,c=new Set;r.conversion.for("editingDowncast").add(u=>u.on("selection",(_,C,M)=>{const E=M.writer;!function(W){for(const dt of c)W.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const N=this.getSelectedTableCells();if(!N)return;for(const W of N){const dt=M.mapper.toViewElement(W);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const j=M.mapper.toViewElement(N[N.length-1]);E.setSelection(j,0)},{priority:"lowest"}))}_enablePluginDisabling(){const r=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const c=this.getSelectedTableCells();if(!c)return;r.model.change(u=>{const _=u.createPositionAt(c[0],0),C=r.model.schema.getNearestSelectionRange(_);u.setSelection(C)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(Xd),_=c[0],C=c[1],M=this.editor.model,E=!C||"backward"==C.direction,N=u.getSelectedTableCells(_);N.length&&(r.stop(),M.change(j=>{const W=N[E?N.length-1:0];M.change(Zt=>{for(const ue of N)M.deleteContent(Zt.createSelection(ue,"in"))});const dt=M.schema.getNearestSelectionRange(j.createPositionAt(W,0));_.is("documentSelection")?j.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const C=u.editing.view,M=u.editing.mapper,E=_.map(N=>C.createRangeOn(M.toViewElement(N)));c.selection=C.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),C=u.getCellLocation(c),M=Math.min(_.row,C.row),E=Math.max(_.row,C.row),N=Math.min(_.column,C.column),j=Math.max(_.column,C.column),W=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:N,endColumn:j};for(const{row:xe,cell:Ee}of new so(r.findAncestor("table"),dt))W[xe-M].push(Ee);const Zt=C.row<_.row,ue=C.column<_.column;return Zt&&W.reverse(),ue&&W.forEach(xe=>xe.reverse()),{cells:W.flat(),backward:Zt||ue}}}class o7 extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[A3,Xd]}init(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"copy",(u,_)=>this._onCopyCut(u,_)),this.listenTo(c,"cut",(u,_)=>this._onCopyCut(u,_)),this.listenTo(r.model,"insertContent",(u,[_,C])=>this._onInsertContent(u,_,C),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(A3);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const C=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());C.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,C=this.editor.plugins.get(Xd);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=C.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(N=>{const j={width:C.getColumns(M),height:C.getRows(M)},W=function(ln,Mn,di,Ri){const Jo=ln[0].findAncestor("table"),Da=Ri.getColumnIndexes(ln),Ts=Ri.getRowIndexes(ln),$r={firstColumn:Da.first,lastColumn:Da.last,firstRow:Ts.first,lastRow:Ts.last},Sl=1===ln.length;return Sl&&($r.lastRow+=Mn.height-1,$r.lastColumn+=Mn.width-1,function(hl,v6,c2,Yp){const bf=Yp.getColumns(hl),l2=Yp.getRows(hl);c2>bf&&Yp.insertColumns(hl,{at:bf,columns:c2-bf}),v6>l2&&Yp.insertRows(hl,{at:l2,rows:v6-l2})}(Jo,$r.lastRow+1,$r.lastColumn+1,Ri)),Sl||!Ri.isSelectionRectangular(ln)?function(hl,v6,c2){const{firstRow:Yp,lastRow:bf,firstColumn:l2,lastColumn:T3}=v6,rT={first:Yp,last:bf},_7={first:l2,last:T3};r7(hl,l2,rT,c2),r7(hl,T3+1,rT,c2),a7(hl,Yp,_7,c2),a7(hl,bf+1,_7,c2,Yp)}(Jo,$r,di):($r.lastRow=t7(Jo,$r),$r.lastColumn=Dy(Jo,$r)),$r}(E,j,N,C),Zt=W.lastColumn-W.firstColumn+1,ue={startRow:0,startColumn:0,endRow:Math.min(W.lastRow-W.firstRow+1,j.height)-1,endColumn:Math.min(Zt,j.width)-1};M=p6(M,ue,N);const xe=E[0].findAncestor("table"),Ee=this._replaceSelectedCellsWithPasted(M,j,xe,W,N);if(this.editor.plugins.get("TableSelection").isEnabled){const ln=C.sortRanges(Ee.map(Mn=>N.createRangeOn(Mn)));N.setSelection(ln)}else N.setSelection(Ee[0],0)})):XA(M,C)}_replaceSelectedCellsWithPasted(r,c,u,_,C){const{width:M,height:E}=c,N=function(ln,Mn,di){const Ri=new Array(di).fill(null).map(()=>new Array(Mn).fill(null));for(const{column:Jo,row:Da,cell:Ts}of new so(ln))Ri[Da][Jo]=Ts;return Ri}(r,M,E),j=[...new so(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],W=[];let dt;for(const ln of j){const{row:Mn,column:di}=ln;di===_.firstColumn&&(dt=ln.getPositionBefore());const Da=N[(Mn-_.firstRow)%E][(di-_.firstColumn)%M],Ts=Da?C.cloneElement(Da):null,$r=this._replaceTableSlotCell(ln,Ts,dt,C);$r&&(C3($r,Mn,di,_.lastRow,_.lastColumn,C),W.push($r),dt=C.createPositionAfter($r))}const Zt=parseInt(u.getAttribute("headingRows")||"0"),ue=parseInt(u.getAttribute("headingColumns")||"0"),Ee=_.firstColumne8(C,M,c)).map(({cell:C})=>_6(C,r,u))}function r7(m,r,c,u){if(!(r<1))return f6(m,r).filter(({row:_,cellHeight:C})=>e8(_,C,c)).map(({cell:_,column:C})=>h6(_,C,r,u))}function e8(m,r,c){const u=m+r-1,{first:_,last:C}=c;return m>=_&&m<=C||m<_&&u>=_}class d9 extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[A3,Xd]}init(){const r=this.editor.editing.view.document;this.listenTo(r,"arrowKey",(...c)=>this._onArrowKey(...c),{context:"table"}),this.listenTo(r,"tab",(...c)=>this._handleTabOnSelectedTable(...c),{context:"figure"}),this.listenTo(r,"tab",(...c)=>this._handleTab(...c),{context:["th","td"]})}_handleTabOnSelectedTable(r,c){const u=this.editor,_=u.model.document.selection.getSelectedElement();_&&_.is("element","table")&&(c.preventDefault(),c.stopPropagation(),r.stop(),u.model.change(C=>{C.setSelection(C.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(Xd),C=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let N=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(N||(N=C.getFocusCell()),!N)return;c.preventDefault(),c.stopPropagation(),r.stop();const j=N.parent,W=j.parent,dt=W.getChildIndex(j),Zt=j.getChildIndex(N),ue=0===Zt;if(!E&&ue&&0===dt)return void u.model.change(Mn=>{Mn.setSelection(Mn.createRangeOn(W))});const xe=Zt===j.childCount-1,Ee=dt===_.getRows(W)-1;if(E&&Ee&&xe&&(u.execute("insertTableRowBelow"),dt===_.getRows(W)-1))return void u.model.change(Mn=>{Mn.setSelection(Mn.createRangeOn(W))});let ln;if(E&&xe)ln=W.getChild(dt+1).getChild(0);else if(!E&&ue){const Mn=W.getChild(dt-1);ln=Mn.getChild(Mn.childCount-1)}else ln=j.getChild(Zt+(E?1:-1));u.model.change(Mn=>{Mn.setSelection(Mn.createRangeIn(ln))})}_onArrowKey(r,c){const _=d1(c.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(_,c.shiftKey)&&(c.preventDefault(),c.stopPropagation(),r.stop())}_handleArrowKeys(r,c){const u=this.editor.plugins.get(Xd),_=this.editor.plugins.get("TableSelection"),C=this.editor.model,M=C.document.selection,E=["right","down"].includes(r),N=u.getSelectedTableCells(M);if(N.length){let W;return W=c?_.getFocusCell():E?N[N.length-1]:N[0],this._navigateFromCellInDirection(W,r,c),!0}const j=M.focus.findAncestor("tableCell");if(!j)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(j))return!1}else{const W=M.getSelectedElement();if(!W||!C.schema.isObject(W))return!1}return!!this._isSelectionAtCellEdge(M,j,E)&&(this._navigateFromCellInDirection(j,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,C=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!C.getLimitElement(M).is("element","tableCell"))return _.createPositionAt(c,u?"end":0).isTouching(M);const E=_.createSelection(M);return _.modifySelection(E,{direction:u?"forward":"backward"}),M.isEqual(E.focus)}_navigateFromCellInDirection(r,c,u=!1){const _=this.editor.model,C=r.findAncestor("table"),M=[...new so(C,{includeAllSlots:!0})],{row:E,column:N}=M[M.length-1],j=M.find(({cell:Ee})=>Ee==r);let{row:W,column:dt}=j;switch(c){case"left":dt--;break;case"up":W--;break;case"right":dt+=j.cellWidth;break;case"down":W+=j.cellHeight}if(W<0||W>E||dt<0&&W<=0||dt>N&&W>=E)return void _.change(Ee=>{Ee.setSelection(Ee.createRangeOn(C))});dt<0?(dt=u?0:N,W--):dt>N&&(dt=u?N:0,W++);const Zt=M.find(Ee=>Ee.row==W&&Ee.column==dt).cell,ue=["right","down"].includes(c),xe=this.editor.plugins.get("TableSelection");if(u&&xe.isEnabled){const Ee=xe.getAnchorCell()||r;xe.setCellSelection(Ee,Zt)}else{const Ee=_.createPositionAt(Zt,ue?0:"end");_.change(ln=>{ln.setSelection(Ee)})}}}class By extends Gd{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class p9 extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[A3,Xd]}init(){this.editor.editing.view.addObserver(By),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(Xd);let u=!1;const _=r.plugins.get(A3);this.listenTo(r.editing.view.document,"mousedown",(C,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const N=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!N)return;const j=this._getModelTableCellFromDomEvent(M);j&&Vy(N,j)&&(u=!0,_.setCellSelection(N,j),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",C=>{u&&C.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,C=!1;const M=r.plugins.get(A3);this.listenTo(r.editing.view.document,"mousedown",(E,N)=>{this.isEnabled&&M.isEnabled&&(N.domEvent.shiftKey||N.domEvent.ctrlKey||N.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(N)))}),this.listenTo(r.editing.view.document,"mousemove",(E,N)=>{if(!N.domEvent.buttons||!c)return;const j=this._getModelTableCellFromDomEvent(N);j&&Vy(c,j)&&(u=j,_||u==c||(_=!0)),_&&(C=!0,M.setCellSelection(c,u),N.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,C=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{C&&E.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(r){const u=this.editor.editing.view.createPositionAt(r.target,0);return this.editor.editing.mapper.toModelPosition(u).parent.findAncestor("tableCell",{includeSelf:!0})}}function Vy(m,r){return m.parent.parent==r.parent.parent}var s7=b(6306);function _9(m){const r=m.getSelectedElement();return r&&c7(r)?r:null}function jy(m){const r=m.getFirstPosition();if(!r)return null;let c=r.parent;for(;c;){if(c.is("element")&&c7(c))return c;c=c.parent}return null}function c7(m){return!!m.getCustomProperty("table")&&Pl(m)}Io()(s7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var n8=b(7368);Io()(n8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=b(9247);Io()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Qy=b(4070);Io()(Qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var $y=b(6237);Io()($y.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Xy=b(5087);Io()(Xy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var s2=b(7341);Io()(s2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var y3=b(2128);Io()(y3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var eT=b(4101);Io()(eT.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var b9=Object.defineProperty,l7=Object.getOwnPropertySymbols,u7=Object.prototype.hasOwnProperty,C9=Object.prototype.propertyIsEnumerable,nT=(m,r,c)=>r in m?b9(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,iT=(m,r)=>{for(var c in r||(r={}))u7.call(r,c)&&nT(m,c,r[c]);if(l7)for(var c of l7(r))C9.call(r,c)&&nT(m,c,r[c]);return m};const x9={autoRefresh:!0};class d7 extends(we()){constructor(r,c={}){if(super(),!r)throw new it("token-missing-token-url",this);c.initValue&&this._validateTokenValue(c.initValue),this.set("value",c.initValue),this._refresh="function"==typeof r?r:()=>{return u=r,new Promise((_,C)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,N=M.response;return E<200||E>299?C(new it("token-cannot-download-new-token",null)):_(N)}),M.addEventListener("error",()=>C(new Error("Network Error"))),M.addEventListener("abort",()=>C(new Error("Abort"))),M.send()});var u},this._options=iT(iT({},x9),c)}init(){return new Promise((r,c)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),r(this)):this.refreshToken().then(r).catch(c)})}refreshToken(){return this._refresh().then(r=>(this._validateTokenValue(r),this.set("value",r),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(r){const c="string"==typeof r,u=!/^".*"$/.test(r),_=c&&3===r.split(".").length;if(!u||!_)throw new it("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const r=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},r)}_getTokenRefreshTimeoutTime(){try{const[,r]=this.value.split("."),{exp:c}=JSON.parse(atob(r));return c?Math.floor((1e3*c-Date.now())/2):36e5}catch{return 36e5}}static create(r,c={}){return new d7(r,c).init()}}const p7=/^data:(\S*?);base64,/;class A9 extends(Le()){constructor(r,c,u){if(super(),!r)throw new it("fileuploader-missing-file",null);if(!c)throw new it("fileuploader-missing-token",null);if(!u)throw new it("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const C=_.match(p7);return!(!C||!C.length)}(r)?function(_,C=512){try{const M=_.match(p7)[1],E=atob(_.replace(p7,"")),N=[];for(let j=0;jr(u)),this}onError(r){return this.once("error",(c,u)=>r(u)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this.xhr,c=u=>()=>this.fire("error",u);r.addEventListener("error",c("Network Error")),r.addEventListener("abort",c("Abort")),r.upload&&r.upload.addEventListener("progress",u=>{u.lengthComputable&&this.fire("progress",{total:u.total,uploaded:u.loaded})}),r.addEventListener("load",()=>{const u=r.status,_=r.response;if(u<200||u>299)return this.fire("error",_.message||_.error)})}_sendRequest(){const r=new FormData,c=this.xhr;return r.append("file",this.file),new Promise((u,_)=>{c.addEventListener("load",()=>{const C=c.status,M=c.response;return C<200||C>299?_(M.message?new it("fileuploader-uploading-data-failed",this,{message:M.message}):M.error):u(M)}),c.addEventListener("error",()=>_(new Error("Network Error"))),c.addEventListener("abort",()=>_(new Error("Abort"))),c.send(r)})}}class oT{constructor(r,c){if(!r)throw new it("uploadgateway-missing-token",null);if(!c)throw new it("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new A9(r,this._token,this._apiAddress)}}class y9 extends C_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new d7(r,c)}createUploadGateway(r,c){return new oT(r,c)}}var aT=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(j){_(j)}},M=N=>{try{E(c.throw(N))}catch(j){_(j)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class m7 extends H0{}m7.builtinPlugins=[class extends lo{static get requires(){return[vC,Y0,B8,O8,L8,ZC]}static get pluginName(){return"Essentials"}},class extends lo{static get requires(){return[ap]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const m=this.editor.config.get("ckfinder.uploadUrl");m&&(this.editor.plugins.get(ap).createUploadAdapter=r=>new $8(r,m,this.editor.t))}},class extends lo{static get requires(){return[t_]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const m=this.editor.commands;m.get("bulletedList")&&Hp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&Hp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&Hp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&Hp(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const m=this.editor.commands;if(m.get("bold")){const r=zh(this.editor,"bold");o2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),o2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=zh(this.editor,"italic");o2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),o2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=zh(this.editor,"code");o2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=zh(this.editor,"strikethrough");o2(this.editor,this,/(~~)([^~]+)(~~)$/g,r)}}_addHeadingAutoformats(){const m=this.editor.commands.get("heading");m&&m.modelElements.filter(r=>r.match(/^heading[1-6]$/)).forEach(r=>{const u=new RegExp(`^(#{${r[7]}})\\s$`);Hp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Hp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&Hp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Hp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[N5,R5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[K8,q4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[z5,LC]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[B5,OC]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",RC,NC]}},class extends C_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[y9]}init(){return aT(this,null,function*(){const m=this.context.config.get("cloudServices")||{};for(const[c,u]of Object.entries(m))this[c]=u;if(!this.tokenUrl)return void(this.token=null);const r=this.context.plugins.get("CloudServicesCore");this.token=yield r.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(m){return aT(this,null,function*(){if(this._tokens.has(m))return this.getTokenFor(m);const r=this.context.plugins.get("CloudServicesCore"),c=yield r.createToken(m).init();return this._tokens.set(m,c),c})}getTokenFor(m){const r=this._tokens.get(m);if(!r)throw new it("cloudservices-token-not-registered",this);return r}destroy(){super.destroy();for(const m of this._tokens.values())m.destroy()}},class extends lo{static get pluginName(){return"EasyImage"}static get requires(){return[rA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Tt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[W5,YC]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[WC,fA]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[hA,cv]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[dx,ly]}static get pluginName(){return"ImageStyle"}},class extends lo{static get requires(){return[V0,Md]}static get pluginName(){return"ImageToolbar"}afterInit(){const m=this.editor,r=m.t,c=m.plugins.get(V0),u=m.plugins.get("ImageUtils");var _;c.register("image",{ariaLabel:r("Image toolbar"),items:(_=m.config.get("image.toolbar")||[],_.map(C=>Wt(C)?C.name:C)),getRelatedElement:C=>u.getClosestSelectedImageWidget(C)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[gf,uv,bA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[t6,s3]}},class extends lo{static get requires(){return[Ov,IA,a6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[Gv,qA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[Qv,QA,JA,B0]}static get pluginName(){return"MediaEmbed"}},J5,class extends lo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Rp]}init(){const m=this.editor,r=m.plugins.get("ClipboardPipeline"),c=m.editing.view.document,u=[];u.push(new g(c)),u.push(new V(c)),u.push(new Ut(c)),r.on("inputTransformation",(_,C)=>{if(C._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=C.dataTransfer.getData("text/html"),E=u.find(N=>N.isActive(M));E&&(C._parsedData||(C._parsedData=function ge(m,r){const c=new DOMParser,u=Ht(Ht(function(N){const j="",dt=N.indexOf(j);if(dt<0)return N;const Zt=N.indexOf("",dt+j.length);return N.substring(0,dt+j.length)+(Zt>=0?N.substring(Zt):"")}(m=m.replace(//)>-1||t[D].search(/\]>/)>-1||t[D].search(/!DOCTYPE/)>-1)&&(x=!1)):t[D].search(/-->/)>-1||t[D].search(/\]>/)>-1?(k+=t[D],x=!1):/^<\w/.exec(t[D-1])&&/^<\/\w/.exec(t[D])&&/^<[\w:\-\.\,]+/.exec(t[D-1])==/^<\/[\w:\-\.\,]+/.exec(t[D])[0].replace("/","")?(k+=t[D],x||U--):t[D].search(/<\w/)>-1&&-1==t[D].search(/<\//)&&-1==t[D].search(/\/>/)?k=k+=x?t[D]:P[U++]+t[D]:t[D].search(/<\w/)>-1&&t[D].search(/<\//)>-1?k=k+=x?t[D]:P[U]+t[D]:t[D].search(/<\//)>-1?k=k+=x?t[D]:P[--U]+t[D]:t[D].search(/\/>/)>-1?k=k+=x?t[D]:P[U]+t[D]:t[D].search(/<\?/)>-1||t[D].search(/xmlns\:/)>-1||t[D].search(/xmlns\=/)>-1?k+=P[U]+t[D]:k+=t[D];return"\n"==k[0]?k.slice(1):k},v.prototype.json=function(b,t){return t=t||this.step,typeof JSON>"u"?b:"string"==typeof b?JSON.stringify(JSON.parse(b),null,t):"object"==typeof b?JSON.stringify(b,null,t):b},v.prototype.css=function(b,T){var t=b.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),A=t.length,x=0,U="",k=0,D=T?et(T):this.shift;for(k=0;k/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},v.prototype.jsonmin=function(b){return typeof JSON>"u"?b:JSON.stringify(JSON.parse(b),null,0)},v.prototype.cssmin=function(b,T){return(T?b:b.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},v.prototype.sqlmin=function(b){return b.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},ot.exports=new v},67824:(ot,et,v)=>{"use strict";function d(p){for(var b in p)et.hasOwnProperty(b)||(et[b]=p[b])}Object.defineProperty(et,"__esModule",{value:!0}),d(v(95085)),d(v(26243)),d(v(91786)),d(v(30225)),d(v(76767)),d(v(30345)),d(v(15675)),d(v(86461)),d(v(58802)),d(v(33900)),d(v(88866)),d(v(94655)),d(v(4068)),d(v(33858)),d(v(98237)),d(v(83292))},95085:function(ot,et,v){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,x)},function(A,x){function U(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(U.prototype=x.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(15675),b=function(t){function A(x){var U=t.call(this)||this,D=x;return D.trigger&&(U.trigger=D.trigger),D.kick&&(U.kick=D.kick),D.drag&&(U.drag=D.drag),D.on&&(U.on=D.on),U.dragstart=U.dragStart=p.Layout.dragStart,U.dragend=U.dragEnd=p.Layout.dragEnd,U}return d(A,t),A.prototype.trigger=function(x){},A.prototype.kick=function(){},A.prototype.drag=function(){},A.prototype.on=function(x,U){return this},A}(p.Layout);et.LayoutAdaptor=b,et.adaptor=function T(t){return new b(t)}},83292:(ot,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(15675),p=v(76767);et.gridify=function b(A,x,U,k){A.cola.start(0,0,0,10,!1);var D=function T(A,x,U,k){A.forEach(function(P){P.routerNode={name:P.name,bounds:P.bounds.inflate(-U)}}),x.forEach(function(P){P.routerNode={bounds:P.bounds.inflate(-k),children:(typeof P.groups<"u"?P.groups.map(function(F){return A.length+F.id}):[]).concat(typeof P.leaves<"u"?P.leaves.map(function(F){return F.index}):[])}});var D=A.concat(x).map(function(P,F){return P.routerNode.id=F,P.routerNode});return new p.GridRouter(D,{getChildren:function(P){return P.children},getBounds:function(P){return P.bounds}},U-k)}(A.cola.nodes(),A.cola.groups(),U,k);return D.routeEdges(A.powerGraph.powerEdges,x,function(P){return P.source.routerNode.id},function(P){return P.target.routerNode.id})},et.powerGraphGridLayout=function t(A,x,U){var k;A.nodes.forEach(function(z,J){return z.index=J}),(new d.Layout).avoidOverlaps(!1).nodes(A.nodes).links(A.links).powerGraphGroups(function(z){(k=z).groups.forEach(function(J){return J.padding=U})});var D=A.nodes.length,P=[],F=A.nodes.slice(0);return F.forEach(function(z,J){return z.index=J}),k.groups.forEach(function(z){var J=z.index=z.id+D;F.push(z),typeof z.leaves<"u"&&z.leaves.forEach(function(K){return P.push({source:J,target:K.index})}),typeof z.groups<"u"&&z.groups.forEach(function(K){return P.push({source:J,target:K.id+D})})}),k.powerEdges.forEach(function(z){P.push({source:z.source.index,target:z.target.index})}),(new d.Layout).size(x).nodes(F).links(P).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(x).avoidOverlaps(!0).nodes(A.nodes).links(A.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(z){(k=z).groups.forEach(function(J){J.padding=U})}).start(50,0,100,0,!1),powerGraph:k}}},26243:(ot,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(49346),p=v(22487);et.d3adaptor=function b(t){return!t||function T(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new d.D3StyleLayoutAdaptor:new p.D3StyleLayoutAdaptor(t)}},49346:function(ot,et,v){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,x)},function(A,x){function U(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(U.prototype=x.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(15675),b=function(t){function A(){var x=t.call(this)||this;x.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=x;return x.drag=function(){if(!D)var D=d3.behavior.drag().origin(p.Layout.dragOrigin).on("dragstart.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,d3.event),U.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;this.call(D)},x}return d(A,t),A.prototype.trigger=function(x){var U={type:p.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event[U.type](U)},A.prototype.kick=function(){var x=this;d3.timer(function(){return t.prototype.tick.call(x)})},A.prototype.on=function(x,U){return this.event.on("string"==typeof x?x:p.EventType[x],U),this},A}(p.Layout);et.D3StyleLayoutAdaptor=b,et.d3adaptor=function T(){return new b}},22487:function(ot,et,v){"use strict";var T,d=this&&this.__extends||(T=function(t,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,U){x.__proto__=U}||function(x,U){for(var k in U)U.hasOwnProperty(k)&&(x[k]=U[k])})(t,A)},function(t,A){function x(){this.constructor=t}T(t,A),t.prototype=null===A?Object.create(A):(x.prototype=A.prototype,new x)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(15675),b=function(T){function t(A){var x=T.call(this)||this;x.d3Context=A,x.event=A.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=x;return x.drag=function(){if(!D)var D=A.drag().subject(p.Layout.dragOrigin).on("start.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,A.event),U.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;arguments[0].call(D)},x}return d(t,T),t.prototype.trigger=function(A){var x={type:p.EventType[A.type],alpha:A.alpha,stress:A.stress};this.event.call(x.type,x)},t.prototype.kick=function(){var A=this,x=this.d3Context.timer(function(){return T.prototype.tick.call(A)&&x.stop()})},t.prototype.on=function(A,x){return this.event.on("string"==typeof A?A:p.EventType[A],x),this},t}(p.Layout);et.D3StyleLayoutAdaptor=b},91786:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function(){function b(){this.locks={}}return b.prototype.add=function(T,t){this.locks[T]=t},b.prototype.clear=function(){this.locks={}},b.prototype.isEmpty=function(){for(var T in this.locks)return!1;return!0},b.prototype.apply=function(T){for(var t in this.locks)T(Number(t),this.locks[t])},b}();et.Locks=v;var d=function(){function b(T,t,A){void 0===A&&(A=null),this.D=t,this.G=A,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new p,this.project=null,this.x=T,this.k=T.length;var x=this.n=T[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new v,this.minD=Number.MAX_VALUE;for(var k,U=x;U--;)for(k=x;--k>U;){var D=t[U][k];D>0&&D1e-9)break;var ct=this.offsetDir();for(x=0;x1&&vt>Dt||!isFinite(Dt)){for(x=0;x1&&(Pt=1);var zt=Dt*Dt,Vt=2*Pt*(vt-Dt)/(zt*vt),it=vt*vt*vt,Tt=2*-Pt/(zt*it);for(isFinite(Vt)||console.log(Vt),x=0;x0?se-(be+1)*ft:se-(be-1)*ft)&&at<=At&&(this.scaleSnapByMaxH?(this.g[x][F]+=P*Bt*at,this.H[x][F][F]+=P*Bt):(this.g[x][F]+=Bt*at,this.H[x][F][F]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(qe,$e){for(x=0;x0;)for(var U=t;U-- >0;)A(x,U)},b.prototype.matrixApply=function(T){b.mApply(this.k,this.n,T)},b.prototype.computeNextPosition=function(T,t){var A=this;this.computeDerivatives(T);var x=this.computeStepSize(this.g);if(this.stepAndProject(T,t,this.g,x),this.project){this.matrixApply(function(k,D){return A.e[k][D]=T[k][D]-t[k][D]});var U=this.computeStepSize(this.e);U=Math.max(.2,Math.min(U,1)),this.stepAndProject(T,t,this.e,U)}},b.prototype.run=function(T){for(var t=Number.MAX_VALUE,A=!1;!A&&T-- >0;){var x=this.rungeKutta();A=Math.abs(t/x-1)>16)/this.range},b.prototype.getNextBetween=function(T,t){return T+this.getNext()*(t-T)},b}();et.PseudoRandom=p},30225:function(ot,et,v){"use strict";var ve,d=this&&this.__extends||(ve=function(be,Le){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,$e){qe.__proto__=$e}||function(qe,$e){for(var Xt in $e)$e.hasOwnProperty(Xt)&&(qe[Xt]=$e[Xt])})(be,Le)},function(be,Le){function qe(){this.constructor=be}ve(be,Le),be.prototype=null===Le?Object.create(Le):(qe.prototype=Le.prototype,new qe)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(4068),b=function ve(){};et.Point=b;var T=function ve(be,Le,qe,$e){this.x1=be,this.y1=Le,this.x2=qe,this.y2=$e};et.LineSegment=T;var t=function(ve){function be(){return null!==ve&&ve.apply(this,arguments)||this}return d(be,ve),be}(b);function A(ve,be,Le){return(be.x-ve.x)*(Le.y-ve.y)-(Le.x-ve.x)*(be.y-ve.y)}function x(ve,be,Le){return A(ve,be,Le)>0}function U(ve,be,Le){return A(ve,be,Le)<0}function z(ve,be){var Le=be.slice(0);return Le.push(be[0]),{rtan:J(ve,Le),ltan:K(ve,Le)}}function J(ve,be){var qe,$e,Xt,ae,Le=be.length-1;if(U(ve,be[1],be[0])&&!x(ve,be[Le-1],be[0]))return 0;for(qe=0,$e=Le;;){if($e-qe==1)return x(ve,be[qe],be[$e])?qe:$e;if((ae=U(ve,be[(Xt=Math.floor((qe+$e)/2))+1],be[Xt]))&&!x(ve,be[Xt-1],be[Xt]))return Xt;x(ve,be[qe+1],be[qe])?ae||x(ve,be[qe],be[Xt])?$e=Xt:qe=Xt:ae&&U(ve,be[qe],be[Xt])?$e=Xt:qe=Xt}}function K(ve,be){var qe,$e,Xt,ae,Le=be.length-1;if(x(ve,be[Le-1],be[0])&&!U(ve,be[1],be[0]))return 0;for(qe=0,$e=Le;;){if($e-qe==1)return U(ve,be[qe],be[$e])?qe:$e;if(ae=U(ve,be[(Xt=Math.floor((qe+$e)/2))+1],be[Xt]),x(ve,be[Xt-1],be[Xt])&&!ae)return Xt;U(ve,be[qe+1],be[qe])?ae?U(ve,be[qe],be[Xt])?$e=Xt:qe=Xt:$e=Xt:ae?qe=Xt:x(ve,be[qe],be[Xt])?$e=Xt:qe=Xt}}function at(ve,be,Le,qe,$e,Xt){var Te,ae;ae=qe(ve[Te=Le(be[0],ve)],be);for(var Kt=!1;!Kt;){for(Kt=!0;Te===ve.length-1&&(Te=0),!$e(be[ae],ve[Te],ve[Te+1]);)++Te;for(;0===ae&&(ae=be.length-1),!Xt(ve[Te],be[ae],be[ae-1]);)--ae,Kt=!1}return{t1:Te,t2:ae}}function vt(ve,be){return at(ve,be,J,K,x,U)}et.PolyPoint=t,et.isLeft=A,et.ConvexHull=function k(ve){var qe,be=ve.slice(0).sort(function(De,on){return De.x!==on.x?on.x-De.x:on.y-De.y}),Le=ve.length,Xt=be[0].x;for(qe=1;qe=0&&be[qe].x===Wt;qe--);for(Kt=qe+1,qe=Te;++qe<=Kt;)if(!(A(be[0],be[Kt],be[qe])>=0&&qe1&&!(A(ae[ae.length-2],ae[ae.length-1],be[qe])>0);)ae.length-=1;0!=qe&&ae.push(be[qe])}de!=Kt&&ae.push(be[de]);var re=ae.length;for(qe=Kt;--qe>=Te;)if(!(A(be[de],be[Te],be[qe])>=0&&qe>Te)){for(;ae.length>re&&!(A(ae[ae.length-2],ae[ae.length-1],be[qe])>0);)ae.length-=1;0!=qe&&ae.push(be[qe])}}return ae},et.clockwiseRadialSweep=function D(ve,be,Le){be.slice(0).sort(function(qe,$e){return Math.atan2(qe.y-ve.y,qe.x-ve.x)-Math.atan2($e.y-ve.y,$e.x-ve.x)}).forEach(Le)},et.tangent_PolyPolyC=at,et.LRtangent_PolyPolyC=function ct(ve,be){var Le=vt(be,ve);return{t1:Le.t2,t2:Le.t1}},et.RLtangent_PolyPolyC=vt,et.LLtangent_PolyPolyC=function Dt(ve,be){return at(ve,be,K,K,U,U)},et.RRtangent_PolyPolyC=function Pt(ve,be){return at(ve,be,J,J,x,x)};var zt=function ve(be,Le){this.t1=be,this.t2=Le};et.BiTangent=zt;var Vt=function ve(){};et.BiTangents=Vt;var it=function(ve){function be(){return null!==ve&&ve.apply(this,arguments)||this}return d(be,ve),be}(b);et.TVGPoint=it;var Tt=function ve(be,Le,qe,$e){this.id=be,this.polyid=Le,this.polyvertid=qe,this.p=$e,$e.vv=this};et.VisibilityVertex=Tt;var At=function(){function ve(be,Le){this.source=be,this.target=Le}return ve.prototype.length=function(){var be=this.source.p.x-this.target.p.x,Le=this.source.p.y-this.target.p.y;return Math.sqrt(be*be+Le*Le)},ve}();et.VisibilityEdge=At;var ft=function(){function ve(be,Le){if(this.P=be,this.V=[],this.E=[],Le)this.V=Le.V.slice(0),this.E=Le.E.slice(0);else{for(var qe=be.length,$e=0;$e0&&this.E.push(new At(Xt[Te-1].vv,Kt))}Xt.length>1&&this.E.push(new At(Xt[0].vv,Xt[Xt.length-1].vv))}for($e=0;$e0)return!0;return!1},ve}();function Et(ve,be){for(var Le=[],qe=1,$e=be.length;qe<$e;++qe){var Xt=p.Rectangle.lineIntersection(ve.x1,ve.y1,ve.x2,ve.y2,be[qe-1].x,be[qe-1].y,be[qe].x,be[qe].y);Xt&&Le.push(Xt)}return Le}function Bt(ve,be){for(var Le=ve.length-1,qe=be.length-1,$e=new Vt,Xt=0;Xt=0&&_n>=0&&Ae<0&&gn>=0&&we>=0&&un<0?$e.ll=new zt(Xt,Te):on<=0&&_n<=0&&Ae>0&&gn<=0&&we<=0&&un>0?$e.rr=new zt(Xt,Te):on<=0&&_n>0&&Ae<=0&&gn>=0&&we<0&&un>=0?$e.rl=new zt(Xt,Te):on>=0&&_n<0&&Ae>=0&&gn<=0&&we>0&&un<=0&&($e.lr=new zt(Xt,Te))}return $e}function se(ve,be){return!ve.every(function(Le){return!function Ft(ve,be){for(var Le=1,qe=be.length;Le0)return!0}return!1}},76767:(ot,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(4068),p=v(98237),b=v(33858),T=function U(k,D,P){this.id=k,this.rect=D,this.children=P,this.leaf=typeof P>"u"||0===P.length};et.NodeWrapper=T;var t=function U(k,D,P,F,z){void 0===F&&(F=null),void 0===z&&(z=null),this.id=k,this.x=D,this.y=P,this.node=F,this.line=z};et.Vert=t;var A=function(){function U(k,D){this.s=k,this.t=D;var P=U.findMatch(k,D),F=D.slice(0).reverse(),z=U.findMatch(k,F);P.length>=z.length?(this.length=P.length,this.si=P.si,this.ti=P.ti,this.reversed=!1):(this.length=z.length,this.si=z.si,this.ti=D.length-z.ti-z.length,this.reversed=!0)}return U.findMatch=function(k,D){for(var P=k.length,F=D.length,z={length:0,si:-1,ti:-1},J=new Array(P),K=0;Kz.length&&(z.length=ct,z.si=K-ct+1,z.ti=at-ct+1)}else J[K][at]=0}return z},U.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},U}();et.LongestCommonSubsequence=A;var x=function(){function U(k,D,P){var F=this;void 0===P&&(P=12),this.originalnodes=k,this.groupPadding=P,this.leaves=null,this.nodes=k.map(function(it,Tt){return new T(Tt,D.getBounds(it),D.getChildren(it))}),this.leaves=this.nodes.filter(function(it){return it.leaf}),this.groups=this.nodes.filter(function(it){return!it.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(it){return it.children.forEach(function(Tt){return F.nodes[Tt].parent=it})}),this.root={children:[]},this.nodes.forEach(function(it){typeof it.parent>"u"&&(it.parent=F.root,F.root.children.push(it.id)),it.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(it,Tt){return F.getDepth(it)-F.getDepth(Tt)}),this.backToFront.slice(0).reverse().filter(function(it){return!it.leaf}).forEach(function(it){var Tt=d.Rectangle.empty();it.children.forEach(function(At){return Tt=Tt.union(F.nodes[At].rect)}),it.rect=Tt.inflate(F.groupPadding)});var J=this.midPoints(this.cols.map(function(it){return it.pos})),K=this.midPoints(this.rows.map(function(it){return it.pos})),at=J[0],ct=J[J.length-1],vt=K[0],Dt=K[K.length-1],Pt=this.rows.map(function(it){return{x1:at,x2:ct,y1:it.pos,y2:it.pos}}).concat(K.map(function(it){return{x1:at,x2:ct,y1:it,y2:it}})),zt=this.cols.map(function(it){return{x1:it.pos,x2:it.pos,y1:vt,y2:Dt}}).concat(J.map(function(it){return{x1:it,x2:it,y1:vt,y2:Dt}})),Vt=Pt.concat(zt);Vt.forEach(function(it){return it.verts=[]}),this.verts=[],this.edges=[],Pt.forEach(function(it){return zt.forEach(function(Tt){var At=new t(F.verts.length,Tt.x1,it.y1);it.verts.push(At),Tt.verts.push(At),F.verts.push(At);for(var ft=F.backToFront.length;ft-- >0;){var Et=F.backToFront[ft],Bt=Et.rect,Ft=Math.abs(At.x-Bt.cx()),se=Math.abs(At.y-Bt.cy());if(Ft0;){var F=P.filter(function(J){return J.rect["overlap"+k.toUpperCase()](P[0].rect)}),z={nodes:F,pos:this.avg(F.map(function(J){return J.rect["c"+k]()}))};D.push(z),z.nodes.forEach(function(J){return P.splice(P.indexOf(J),1)})}return D.sort(function(J,K){return J.pos-K.pos}),D},U.prototype.getDepth=function(k){for(var D=0;k.parent!==this.root;)D++,k=k.parent;return D},U.prototype.midPoints=function(k){for(var D=k[1]-k[0],P=[k[0]-D/2],F=1;F.1)&&vt.push(Dt={pos:at[0][D],segments:[]}),Dt.segments.push(at)}return vt},U.nudgeSegs=function(k,D,P,F,z,J){var K=F.length;if(!(K<=1)){for(var at=F.map(function(Et){return new p.Variable(Et[0][k])}),ct=[],vt=0;vt=0&&ct.push(new p.Constraint(at[Tt],at[At],J))}new p.Solver(at,ct).solve(),at.forEach(function(Et,Bt){var Ft=F[Bt],se=Et.position();Ft[0][k]=Ft[1][k]=se;var Gt=P[Ft.edgeid];Ft.i>0&&(Gt[Ft.i-1][1][k]=se),Ft.iMath.PI||z<-Math.PI)&&(z=F-P),z},U.isLeft=function(k,D,P){return(D.x-k.x)*(P.y-k.y)-(D.y-k.y)*(P.x-k.x)<=0},U.getOrder=function(k){for(var D={},P=0;P"u"&&(D[F.l]={}),D[F.l][F.r]=!0}return function(z,J){return typeof D[z]<"u"&&D[z][J]}},U.orderEdges=function(k){for(var D=[],P=0;P=z.length||K.ti+K.length>=J.length)){D.push({l:P,r:F});continue}K.si+K.length>=z.length||K.ti+K.length>=J.length?(at=z[K.si+1],vt=z[K.si-1],ct=J[K.ti-1]):(at=z[K.si+K.length-2],ct=z[K.si+K.length],vt=J[K.ti+K.length]),U.isLeft(at,ct,vt)?D.push({l:F,r:P}):D.push({l:P,r:F})}}return U.getOrder(D)},U.makeSegments=function(k){function D(ct){return{x:ct.x,y:ct.y}}for(var F=[],z=D(k[0]),J=1;J1&&ve>1?1e3:0}).reverse().map(function(At){return P.verts[At]});return Tt.push(this.nodes[z.id].ports[0]),Tt.filter(function(At,ft){return!(ft0&&At.node===z&&Tt[ft-1].node===z)})},U.getRoutePath=function(k,D,P,F){var K,at,ct,Gt,ve,z={routepath:"M "+k[0][0].x+" "+k[0][0].y+" ",arrowpath:""};if(k.length>1)for(var J=0;J0?at-=vt/Math.abs(vt)*D:ct-=Dt/Math.abs(Dt)*D,z.routepath+="L "+at+" "+ct+" ";var Pt=k[J+1],zt=Pt[0].x,Vt=Pt[0].y;vt=Pt[1].x-zt,Dt=Pt[1].y-Vt;var ft,Et,At=U.angleBetween2Lines(K,Pt)<0?1:0;Math.abs(vt)>0?(ft=zt+vt/Math.abs(vt)*D,Et=Vt):(ft=zt,Et=Vt+Dt/Math.abs(Dt)*D);var Bt=Math.abs(ft-at),Ft=Math.abs(Et-ct);z.routepath+="A "+Bt+" "+Ft+" 0 0 "+At+" "+ft+" "+Et+" "}else{var se=[at,ct];Math.abs(vt)>0?(Gt=[at-=vt/Math.abs(vt)*F,ct+P],ve=[at,ct-P]):(Gt=[at+P,ct-=Dt/Math.abs(Dt)*F],ve=[at-P,ct]),z.routepath+="L "+at+" "+ct+" ",F>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+Gt[0]+" "+Gt[1]+" L "+ve[0]+" "+ve[1])}}else vt=(at=(K=k[0])[1].x)-K[0].x,Dt=(ct=K[1].y)-K[0].y,se=[at,ct],Math.abs(vt)>0?(Gt=[at-=vt/Math.abs(vt)*F,ct+P],ve=[at,ct-P]):(Gt=[at+P,ct-=Dt/Math.abs(Dt)*F],ve=[at-P,ct]),z.routepath+="L "+at+" "+ct+" ",F>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+Gt[0]+" "+Gt[1]+" L "+ve[0]+" "+ve[1]);return z},U}();et.GridRouter=x},30345:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v_GOLDEN_SECTION=(1+Math.sqrt(5))/2;et.applyPacking=function d(b,T,t,J,z,U){void 0===z&&(z=1),void 0===U&&(U=!0);var P=T,F=t,K=(z=typeof z<"u"?z:1,J=typeof J<"u"?J:0,0),at=0,ct=0,vt=0,Dt=[];function it(Et,Bt){Dt=[],K=0,at=0,vt=0;for(var Ft=0;Ft=Et.height&&Dt[se].x+Dt[se].width+Et.width+10-Bt<=1e-4){Ft=Dt[se];break}Dt.push(Et),void 0!==Ft?(Et.x=Ft.x+Ft.width+10,Et.y=Ft.bottom,Et.space_left=Et.height,Et.bottom=Et.y,Ft.space_left-=Et.height+10,Ft.bottom+=Et.height+10):(Et.y=vt,vt+=Et.height+10,Et.x=0,Et.bottom=Et.y,Et.space_left=Et.height),Et.y+Et.height-at>-1e-4&&(at=Et.y+Et.height-0),Et.x+Et.width-K>-1e-4&&(K=Et.x+Et.width-0)}0!=b.length&&(function Pt(Et){Et.forEach(function(Ft){!function Bt(Ft){var se=Number.MAX_VALUE,Gt=Number.MAX_VALUE,ve=0,be=0;Ft.array.forEach(function(Le){var qe=typeof Le.width<"u"?Le.width:J,$e=typeof Le.height<"u"?Le.height:J;qe/=2,$e/=2,ve=Math.max(Le.x+qe,ve),se=Math.min(Le.x-qe,se),be=Math.max(Le.y+$e,be),Gt=Math.min(Le.y-$e,Gt)}),Ft.width=ve-se,Ft.height=be-Gt}(Ft)})}(b),function Vt(Et,Bt){var Ft=Number.POSITIVE_INFINITY,se=0;Et.sort(function(de,Wt){return Wt.height-de.height});for(var Gt=ae=ct=Et.reduce(function(de,Wt){return de.widthct||Te>1e-4;){if(1!=$e){var ae=ve-(ve-Gt)/v_GOLDEN_SECTION;Le=it(Et,ae)}if(0!=$e){var Kt=Gt+(ve-Gt)/v_GOLDEN_SECTION;qe=it(Et,Kt)}if(Xt=Math.abs(ae-Kt),Te=Math.abs(Le-qe),Leqe?(Gt=ae,ae=Kt,Le=qe,$e=1):(ve=Kt,Kt=ae,qe=Le,$e=0),be++>100)break}it(Et,se)}(b),U&&function zt(Et){Et.forEach(function(Bt){var Ft={x:0,y:0};Bt.array.forEach(function(ve){Ft.x+=ve.x,Ft.y+=ve.y}),Ft.x/=Bt.array.length,Ft.y/=Bt.array.length;var Gt_x=Bt.x-(Ft.x-Bt.width/2)+P/2-K/2,Gt_y=Bt.y-(Ft.y-Bt.height/2)+F/2-at/2;Bt.array.forEach(function(ve){ve.x+=Gt_x,ve.y+=Gt_y})})}(b))},et.separateGraphs=function p(b,T){for(var t={},A={},x=[],U=0,k=0;k{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var U,P,d=v(33900),p=v(58802),b=v(91786),T=v(4068),t=v(33858),A=v(30225),x=v(30345);function k(P){return typeof P.leaves<"u"||typeof P.groups<"u"}(P=U=et.EventType||(et.EventType={}))[P.start=0]="start",P[P.tick=1]="tick",P[P.end=2]="end";var D=function(){function P(){var F=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:P.getSourceIndex,getTargetIndex:P.getTargetIndex,setLength:P.setLinkLength,getType:function(z){return"function"==typeof F._linkType?F._linkType(z):0}}}return P.prototype.on=function(F,z){return this.event||(this.event={}),"string"==typeof F?this.event[U[F]]=z:this.event[F]=z,this},P.prototype.trigger=function(F){this.event&&typeof this.event[F.type]<"u"&&this.event[F.type](F)},P.prototype.kick=function(){for(;!this.tick(););},P.prototype.tick=function(){if(this._alpha"u"||typeof J.py>"u")&&(J.px=J.x,J.py=J.y),this._descent.locks.add(K,[J.px,J.py]));var ct=this._descent.rungeKutta();return 0===ct?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=ct),this._lastStress=ct,this.updateNodePositions(),this.trigger({type:U.tick,alpha:this._alpha,stress:this._lastStress}),!1},P.prototype.updateNodePositions=function(){for(var J,F=this._descent.x[0],z=this._descent.x[1],K=this._nodes.length;K--;)(J=this._nodes[K]).x=F[K],J.y=z[K]},P.prototype.nodes=function(F){if(!F){if(0===this._nodes.length&&this._links.length>0){var z=0;this._links.forEach(function(K){z=Math.max(z,K.source,K.target)}),this._nodes=new Array(++z);for(var J=0;J"u"&&(J.padding=1),typeof J.leaves<"u"&&J.leaves.forEach(function(K,at){"number"==typeof K&&((J.leaves[at]=z._nodes[K]).parent=J)}),typeof J.groups<"u"&&J.groups.forEach(function(K,at){"number"==typeof K&&((J.groups[at]=z._groups[K]).parent=J)})}),this._rootGroup.leaves=this._nodes.filter(function(J){return typeof J.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(J){return typeof J.parent>"u"}),this):this._groups},P.prototype.powerGraphGroups=function(F){var z=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(z.groups),F(z),this},P.prototype.avoidOverlaps=function(F){return arguments.length?(this._avoidOverlaps=F,this):this._avoidOverlaps},P.prototype.handleDisconnected=function(F){return arguments.length?(this._handleDisconnected=F,this):this._handleDisconnected},P.prototype.flowLayout=function(F,z){return arguments.length||(F="y"),this._directedLinkConstraints={axis:F,getMinSeparation:"number"==typeof z?function(){return z}:z},this},P.prototype.links=function(F){return arguments.length?(this._links=F,this):this._links},P.prototype.constraints=function(F){return arguments.length?(this._constraints=F,this):this._constraints},P.prototype.distanceMatrix=function(F){return arguments.length?(this._distanceMatrix=F,this):this._distanceMatrix},P.prototype.size=function(F){return F?(this._canvasSize=F,this):this._canvasSize},P.prototype.defaultNodeSize=function(F){return F?(this._defaultNodeSize=F,this):this._defaultNodeSize},P.prototype.groupCompactness=function(F){return F?(this._groupCompactness=F,this):this._groupCompactness},P.prototype.linkDistance=function(F){return F?(this._linkDistance="function"==typeof F?F:+F,this._linkLengthCalculator=null,this):this._linkDistance},P.prototype.linkType=function(F){return this._linkType=F,this},P.prototype.convergenceThreshold=function(F){return F?(this._threshold="function"==typeof F?F:+F,this):this._threshold},P.prototype.alpha=function(F){return arguments.length?(F=+F,this._alpha?this._alpha=F>0?F:0:F>0&&(this._running||(this._running=!0,this.trigger({type:U.start,alpha:this._alpha=F}),this.kick())),this):this._alpha},P.prototype.getLinkLength=function(F){return"function"==typeof this._linkDistance?+this._linkDistance(F):this._linkDistance},P.setLinkLength=function(F,z){F.length=z},P.prototype.getLinkType=function(F){return"function"==typeof this._linkType?this._linkType(F):0},P.prototype.symmetricDiffLinkLengths=function(F,z){var J=this;return void 0===z&&(z=1),this.linkDistance(function(K){return F*K.length}),this._linkLengthCalculator=function(){return p.symmetricDiffLinkLengths(J._links,J.linkAccessor,z)},this},P.prototype.jaccardLinkLengths=function(F,z){var J=this;return void 0===z&&(z=1),this.linkDistance(function(K){return F*K.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(J._links,J.linkAccessor,z)},this},P.prototype.start=function(F,z,J,K,at,ct){var vt=this;void 0===F&&(F=0),void 0===z&&(z=0),void 0===J&&(J=0),void 0===K&&(K=0),void 0===at&&(at=!0),void 0===ct&&(ct=!0);var se,zt=this.nodes().length,Vt=zt+2*this._groups.length,Tt=this._canvasSize[0],At=this._canvasSize[1],ft=new Array(Vt),Et=new Array(Vt),Bt=null,Ft=this._avoidOverlaps;this._nodes.forEach(function(Xt,Te){Xt.index=Te,typeof Xt.x>"u"&&(Xt.x=Tt/2,Xt.y=At/2),ft[Te]=Xt.x,Et[Te]=Xt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?se=this._distanceMatrix:(se=new t.Calculator(Vt,this._links,P.getSourceIndex,P.getTargetIndex,function(Xt){return vt.getLinkLength(Xt)}).DistanceMatrix(),Bt=b.Descent.createSquareMatrix(Vt,function(){return 2}),this._links.forEach(function(Xt){"number"==typeof Xt.source&&(Xt.source=vt._nodes[Xt.source]),"number"==typeof Xt.target&&(Xt.target=vt._nodes[Xt.target])}),this._links.forEach(function(Xt){var Te=P.getSourceIndex(Xt),ae=P.getTargetIndex(Xt);Bt[Te][ae]=Bt[ae][Te]=Xt.weight||1}));var Gt=b.Descent.createSquareMatrix(Vt,function(Xt,Te){return se[Xt][Te]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Dt=zt;this._groups.forEach(function(Te){(function(Te,ae,Kt,de){Bt[Te][ae]=Bt[ae][Te]=Kt,Gt[Te][ae]=Gt[ae][Te]=.1})(Dt,Dt+1,vt._groupCompactness),ft[Dt]=0,Et[Dt++]=0,ft[Dt]=0,Et[Dt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var be=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,be=be.concat(p.generateDirectedEdgeConstraints(zt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new b.Descent([ft,Et],Gt),this._descent.locks.clear(),Dt=0;Dt0&&(this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,be).projectFunctions()),this._descent.run(z),this.separateOverlappingComponents(Tt,At,ct),this.avoidOverlaps(Ft),Ft&&(this._nodes.forEach(function(Xt,Te){Xt.x=ft[Te],Xt.y=Et[Te]}),this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,be,!0).projectFunctions(),this._nodes.forEach(function(Xt,Te){ft[Te]=Xt.x,Et[Te]=Xt.y})),this._descent.G=Bt,this._descent.run(J),K){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=zt,this._descent.scaleSnapByMaxH=zt!=Vt;var $e=b.Descent.createSquareMatrix(Vt,function(Xt,Te){return Xt>=zt||Te>=zt?Bt[Xt][Te]:0});this._descent.G=$e,this._descent.run(K)}return this.updateNodePositions(),this.separateOverlappingComponents(Tt,At,ct),at?this.resume():this},P.prototype.initialLayout=function(F,z,J){if(this._groups.length>0&&F>0){var K=this._nodes.length,at=this._links.map(function(vt){return{source:vt.source.index,target:vt.target.index}}),ct=this._nodes.map(function(vt){return{index:vt.index}});this._groups.forEach(function(vt,Dt){ct.push({index:vt.index=K+Dt})}),this._groups.forEach(function(vt,Dt){typeof vt.leaves<"u"&&vt.leaves.forEach(function(Pt){return at.push({source:vt.index,target:Pt.index})}),typeof vt.groups<"u"&&vt.groups.forEach(function(Pt){return at.push({source:vt.index,target:Pt.index})})}),(new P).size(this.size()).nodes(ct).links(at).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(F,0,0,0,!1),this._nodes.forEach(function(vt){z[vt.index]=ct[vt.index].x,J[vt.index]=ct[vt.index].y})}else this._descent.run(F)},P.prototype.separateOverlappingComponents=function(F,z,J){var K=this;if(void 0===J&&(J=!0),!this._distanceMatrix&&this._handleDisconnected){var at=this._descent.x[0],ct=this._descent.x[1];this._nodes.forEach(function(Dt,Pt){Dt.x=at[Pt],Dt.y=ct[Pt]});var vt=x.separateGraphs(this._nodes,this._links);x.applyPacking(vt,F,z,this._defaultNodeSize,1,J),this._nodes.forEach(function(Dt,Pt){K._descent.x[0][Pt]=Dt.x,K._descent.x[1][Pt]=Dt.y,Dt.bounds&&(Dt.bounds.setXCentre(Dt.x),Dt.bounds.setYCentre(Dt.y))})}},P.prototype.resume=function(){return this.alpha(.1)},P.prototype.stop=function(){return this.alpha(0)},P.prototype.prepareEdgeRouting=function(F){void 0===F&&(F=0),this._visibilityGraph=new A.TangentVisibilityGraph(this._nodes.map(function(z){return z.bounds.inflate(-F).vertices()}))},P.prototype.routeEdge=function(F,z,J){void 0===z&&(z=5);var K=[],at=new A.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),ct={x:F.source.x,y:F.source.y},vt={x:F.target.x,y:F.target.y},Dt=at.addPoint(ct,F.source.index),Pt=at.addPoint(vt,F.target.index);at.addEdgeIfVisible(ct,vt,F.source.index,F.target.index),typeof J<"u"&&J(at);var At=new t.Calculator(at.V.length,at.E,function(Gt){return Gt.source.id},function(Gt){return Gt.target.id},function(Gt){return Gt.length()}).PathFromNodeToNode(Dt.id,Pt.id);if(1===At.length||At.length===at.V.length){var ft=T.makeEdgeBetween(F.source.innerBounds,F.target.innerBounds,z);K=[ft.sourceIntersection,ft.arrowStart]}else{for(var Et=At.length-2,Bt=at.V[At[Et]].p,Ft=at.V[At[0]].p,se=(K=[F.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Et);se>=0;--se)K.push(at.V[At[se]].p);K.push(T.makeEdgeTo(Ft,F.target.innerBounds,z))}return K},P.getSourceIndex=function(F){return"number"==typeof F.source?F.source:F.source.index},P.getTargetIndex=function(F){return"number"==typeof F.target?F.target:F.target.index},P.linkId=function(F){return P.getSourceIndex(F)+"-"+P.getTargetIndex(F)},P.dragStart=function(F){k(F)?P.storeOffset(F,P.dragOrigin(F)):(P.stopNode(F),F.fixed|=2)},P.stopNode=function(F){F.px=F.x,F.py=F.y},P.storeOffset=function(F,z){typeof F.leaves<"u"&&F.leaves.forEach(function(J){J.fixed|=2,P.stopNode(J),J._dragGroupOffsetX=J.x-z.x,J._dragGroupOffsetY=J.y-z.y}),typeof F.groups<"u"&&F.groups.forEach(function(J){return P.storeOffset(J,z)})},P.dragOrigin=function(F){return k(F)?{x:F.bounds.cx(),y:F.bounds.cy()}:F},P.drag=function(F,z){k(F)?(typeof F.leaves<"u"&&F.leaves.forEach(function(J){F.bounds.setXCentre(z.x),F.bounds.setYCentre(z.y),J.px=J._dragGroupOffsetX+z.x,J.py=J._dragGroupOffsetY+z.y}),typeof F.groups<"u"&&F.groups.forEach(function(J){return P.drag(J,z)})):(F.px=z.x,F.py=z.y)},P.dragEnd=function(F){k(F)?(typeof F.leaves<"u"&&F.leaves.forEach(function(z){P.dragEnd(z),delete z._dragGroupOffsetX,delete z._dragGroupOffsetY}),typeof F.groups<"u"&&F.groups.forEach(P.dragEnd)):F.fixed&=-7},P.mouseOver=function(F){F.fixed|=4,F.px=F.x,F.py=F.y},P.mouseOut=function(F){F.fixed&=-5},P}();et.Layout=D},86461:(ot,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(33858),p=v(91786),b=v(4068),T=v(58802),t=function(){function k(D,P){this.source=D,this.target=P}return k.prototype.actualLength=function(D){var P=this;return Math.sqrt(D.reduce(function(F,z){var J=z[P.target]-z[P.source];return F+J*J},0))},k}();et.Link3D=t,et.Node3D=function k(D,P,F){void 0===D&&(D=0),void 0===P&&(P=0),void 0===F&&(F=0),this.x=D,this.y=P,this.z=F};var x=function(){function k(D,P,F){var z=this;void 0===F&&(F=1),this.nodes=D,this.links=P,this.idealLinkLength=F,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(k.k);for(var J=0;J"u"&&(K[Dt]=Math.random())}z.result[0][at]=K.x,z.result[1][at]=K.y,z.result[2][at]=K.z})}return k.prototype.linkLength=function(D){return D.actualLength(this.result)},k.prototype.start=function(D){var P=this;void 0===D&&(D=100);var F=this.nodes.length,z=new U;this.useJaccardLinkLengths&&T.jaccardLinkLengths(this.links,z,1.5),this.links.forEach(function(Dt){return Dt.length*=P.idealLinkLength});var J=new d.Calculator(F,this.links,function(Dt){return Dt.source},function(Dt){return Dt.target},function(Dt){return Dt.length}).DistanceMatrix(),K=p.Descent.createSquareMatrix(F,function(Dt,Pt){return J[Dt][Pt]}),at=p.Descent.createSquareMatrix(F,function(){return 2});this.links.forEach(function(Dt){var Pt=Dt.source,zt=Dt.target;return at[Pt][zt]=at[zt][Pt]=1}),this.descent=new p.Descent(this.result,K),this.descent.threshold=.001,this.descent.G=at,this.constraints&&(this.descent.project=new b.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var ct=0;ct{"use strict";function v(U,k){var D={};for(var P in U)D[P]={};for(var P in k)D[P]={};return Object.keys(D).length}function d(U,k){var D=0;for(var P in U)typeof k[P]<"u"&&++D;return D}function b(U,k,D,P){var F=function p(U,k){var D={},P=function(F,z){typeof D[F]>"u"&&(D[F]={}),D[F][z]={}};return U.forEach(function(F){var z=k.getSourceIndex(F),J=k.getTargetIndex(F);P(z,J),P(J,z)}),D}(U,P);U.forEach(function(z){var J=F[P.getSourceIndex(z)],K=F[P.getTargetIndex(z)];P.setLength(z,1+k*D(J,K))})}function x(U,k,D){var P=[],F=0,z=[],J=[];function K(At){At.index=At.lowlink=F++,z.push(At),At.onStack=!0;for(var ft=0,Et=At.out;ft"u"?(K(Bt),At.lowlink=Math.min(At.lowlink,Bt.lowlink)):Bt.onStack&&(At.lowlink=Math.min(At.lowlink,Bt.index))}if(At.lowlink===At.index){for(var Ft=[];z.length&&((Bt=z.pop()).onStack=!1,Ft.push(Bt),Bt!==At););J.push(Ft.map(function(se){return se.id}))}}for(var at=0;at"u"&&K(Tt)}return J}Object.defineProperty(et,"__esModule",{value:!0}),et.symmetricDiffLinkLengths=function T(U,k,D){void 0===D&&(D=1),b(U,D,function(P,F){return Math.sqrt(v(P,F)-d(P,F))},k)},et.jaccardLinkLengths=function t(U,k,D){void 0===D&&(D=1),b(U,D,function(P,F){return Math.min(Object.keys(P).length,Object.keys(F).length)<1.1?0:d(P,F)/v(P,F)},k)},et.generateDirectedEdgeConstraints=function A(U,k,D,P){var F=x(U,k,P),z={};F.forEach(function(K,at){return K.forEach(function(ct){return z[ct]=at})});var J=[];return k.forEach(function(K){var at=P.getSourceIndex(K),ct=P.getTargetIndex(K);z[at]!==z[ct]&&J.push({axis:D,left:at,right:ct,gap:P.getMinSeparation(K)})}),J},et.stronglyConnectedComponents=x},33900:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function k(D,P,F){this.source=D,this.target=P,this.type=F};et.PowerEdge=v;var d=function(){function k(D,P,F,z){var J=this;if(this.linkAccessor=F,this.modules=new Array(D),this.roots=[],z)this.initModulesFromGroup(z);else{this.roots.push(new t);for(var K=0;K=this.R))return this.merge(F.a,F.b,D),!0}},k.prototype.nEdges=function(D,P){var F=D.incoming.intersection(P.incoming),z=D.outgoing.intersection(P.outgoing);return this.R-F.count()-z.count()},k.prototype.getGroupHierarchy=function(D){var P=this,F=[];return p(this.roots[0],{},F),this.allEdges().forEach(function(K){var at=P.modules[K.source],ct=P.modules[K.target];D.push(new v(typeof at.gid>"u"?K.source:F[at.gid],typeof ct.gid>"u"?K.target:F[ct.gid],K.type))}),F},k.prototype.allEdges=function(){var D=[];return k.getEdges(this.roots[0],D),D},k.getEdges=function(D,P){D.forAll(function(F){F.getEdges(P),k.getEdges(F.children,P)})},k}();function p(k,D,P){k.forAll(function(F){if(F.isLeaf())D.leaves||(D.leaves=[]),D.leaves.push(F.id);else{var z=D;if(F.gid=P.length,!F.isIsland()||F.isPredefined()){if(z={id:F.gid},F.isPredefined())for(var J in F.definition)z[J]=F.definition[J];D.groups||(D.groups=[]),D.groups.push(F.gid),P.push(z)}p(F.children,z,P)}})}et.Configuration=d;var b=function(){function k(D,P,F,z,J){void 0===P&&(P=new A),void 0===F&&(F=new A),void 0===z&&(z=new t),this.id=D,this.outgoing=P,this.incoming=F,this.children=z,this.definition=J}return k.prototype.getEdges=function(D){var P=this;this.outgoing.forAll(function(F,z){F.forAll(function(J){D.push(new v(P.id,J.id,z))})})},k.prototype.isLeaf=function(){return 0===this.children.count()},k.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},k.prototype.isPredefined=function(){return typeof this.definition<"u"},k}();et.Module=b;var t=function(){function k(){this.table={}}return k.prototype.count=function(){return Object.keys(this.table).length},k.prototype.intersection=function(D){var P=new k;return P.table=function T(k,D){var P={};for(var F in k)F in D&&(P[F]=k[F]);return P}(this.table,D.table),P},k.prototype.intersectionCount=function(D){return this.intersection(D).count()},k.prototype.contains=function(D){return D in this.table},k.prototype.add=function(D){this.table[D.id]=D},k.prototype.remove=function(D){delete this.table[D.id]},k.prototype.forAll=function(D){for(var P in this.table)D(this.table[P])},k.prototype.modules=function(){var D=[];return this.forAll(function(P){P.isPredefined()||D.push(P)}),D},k}();et.ModuleSet=t;var A=function(){function k(){this.sets={},this.n=0}return k.prototype.count=function(){return this.n},k.prototype.contains=function(D){var P=!1;return this.forAllModules(function(F){!P&&F.id==D&&(P=!0)}),P},k.prototype.add=function(D,P){(D in this.sets?this.sets[D]:this.sets[D]=new t).add(P),++this.n},k.prototype.remove=function(D,P){var F=this.sets[D];F.remove(P),0===F.count()&&delete this.sets[D],--this.n},k.prototype.forAll=function(D){for(var P in this.sets)D(this.sets[P],Number(P))},k.prototype.forAllModules=function(D){this.forAll(function(P,F){return P.forAll(D)})},k.prototype.intersection=function(D){var P=new k;return this.forAll(function(F,z){if(z in D.sets){var J=F.intersection(D.sets[z]),K=J.count();K>0&&(P.sets[z]=J,P.n+=K)}}),P},k}();et.LinkSets=A,et.getGroups=function U(k,D,P,F){for(var J=new d(k.length,D,P,F);J.greedyMerge(););var K=[],at=J.getGroupHierarchy(K);return K.forEach(function(ct){var vt=function(Dt){var Pt=ct[Dt];"number"==typeof Pt&&(ct[Dt]=k[Pt])};vt("source"),vt("target")}),{groups:at,powerEdges:K}}},88866:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function(){function p(b){this.elem=b,this.subheaps=[]}return p.prototype.toString=function(b){for(var T="",t=!1,A=0;A0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(A){for(var x=this._root;null!==x;){var U=this._comparator(A,x.data);if(0===U)return x.data;x=x.get_child(U>0)}return null},t.prototype.lowerBound=function(A){return this._bound(A,this._comparator)},t.prototype.upperBound=function(A){var x=this._comparator;return this._bound(A,function U(k,D){return x(D,k)})},t.prototype.min=function(){var A=this._root;if(null===A)return null;for(;null!==A.left;)A=A.left;return A.data},t.prototype.max=function(){var A=this._root;if(null===A)return null;for(;null!==A.right;)A=A.right;return A.data},t.prototype.iterator=function(){return new p(this)},t.prototype.each=function(A){for(var U,x=this.iterator();null!==(U=x.next());)A(U)},t.prototype.reach=function(A){for(var U,x=this.iterator();null!==(U=x.prev());)A(U)},t.prototype._bound=function(A,x){for(var U=this._root,k=this.iterator();null!==U;){var D=this._comparator(A,U.data);if(0===D)return k._cursor=U,k;k._ancestors.push(U),U=U.get_child(D>0)}for(var P=k._ancestors.length-1;P>=0;--P)if(x(A,(U=k._ancestors[P]).data)>0)return k._cursor=U,k._ancestors.length=P,k;return k._ancestors.length=0,k},t}();et.TreeBase=d;var p=function(){function t(A){this._tree=A,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._minNode(A)}else if(null===this._cursor.right){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===x)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._maxNode(A)}else if(null===this._cursor.left){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===x)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(A){for(;null!==A.left;)this._ancestors.push(A),A=A.left;this._cursor=A},t.prototype._maxNode=function(A){for(;null!==A.right;)this._ancestors.push(A),A=A.right;this._cursor=A},t}();et.Iterator=p;var b=function(){function t(A){this.data=A,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(A){return A?this.right:this.left},t.prototype.set_child=function(A,x){A?this.right=x:this.left=x},t}(),T=function(t){function A(x){var U=t.call(this)||this;return U._root=null,U._comparator=x,U.size=0,U}return v(A,t),A.prototype.insert=function(x){var U=!1;if(null===this._root)this._root=new b(x),U=!0,this.size++;else{var k=new b(void 0),D=!1,P=!1,F=null,z=k,J=null,K=this._root;for(z.right=this._root;;){if(null===K?(K=new b(x),J.set_child(D,K),U=!0,this.size++):A.is_red(K.left)&&A.is_red(K.right)&&(K.red=!0,K.left.red=!1,K.right.red=!1),A.is_red(K)&&A.is_red(J)){var at=z.right===F;K===J.get_child(P)?z.set_child(at,A.single_rotate(F,!P)):z.set_child(at,A.double_rotate(F,!P))}var ct=this._comparator(K.data,x);if(0===ct)break;P=D,null!==F&&(z=F),F=J,J=K,K=K.get_child(D=ct<0)}this._root=k.right}return this._root.red=!1,U},A.prototype.remove=function(x){if(null===this._root)return!1;var U=new b(void 0),k=U;k.right=this._root;for(var D=null,P=null,F=null,z=!0;null!==k.get_child(z);){var J=z;P=D,D=k,k=k.get_child(z);var K=this._comparator(x,k.data);if(z=K>0,0===K&&(F=k),!A.is_red(k)&&!A.is_red(k.get_child(z)))if(A.is_red(k.get_child(!z))){var at=A.single_rotate(k,z);D.set_child(J,at),D=at}else if(!A.is_red(k.get_child(!z))){var ct=D.get_child(!J);if(null!==ct)if(A.is_red(ct.get_child(!J))||A.is_red(ct.get_child(J))){var vt=P.right===D;A.is_red(ct.get_child(J))?P.set_child(vt,A.double_rotate(D,J)):A.is_red(ct.get_child(!J))&&P.set_child(vt,A.single_rotate(D,J));var Dt=P.get_child(vt);Dt.red=!0,k.red=!0,Dt.left.red=!1,Dt.right.red=!1}else D.red=!1,ct.red=!0,k.red=!0}}return null!==F&&(F.data=k.data,D.set_child(D.right===k,k.get_child(null===k.left)),this.size--),this._root=U.right,null!==this._root&&(this._root.red=!1),null!==F},A.is_red=function(x){return null!==x&&x.red},A.single_rotate=function(x,U){var k=x.get_child(!U);return x.set_child(!U,k.get_child(U)),k.set_child(U,x),x.red=!0,k.red=!1,k},A.double_rotate=function(x,U){return x.set_child(!U,A.single_rotate(x.get_child(!U),!U)),A.single_rotate(x,U)},A}(d);et.RBTree=T},4068:function(ot,et,v){"use strict";var At,d=this&&this.__extends||(At=function(ft,Et){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,Ft){Bt.__proto__=Ft}||function(Bt,Ft){for(var se in Ft)Ft.hasOwnProperty(se)&&(Bt[se]=Ft[se])})(ft,Et)},function(ft,Et){function Bt(){this.constructor=ft}At(ft,Et),ft.prototype=null===Et?Object.create(Et):(Bt.prototype=Et.prototype,new Bt)});Object.defineProperty(et,"__esModule",{value:!0});var p=v(98237),b=v(94655);function T(At){return At.bounds=typeof At.leaves<"u"?At.leaves.reduce(function(ft,Et){return Et.bounds.union(ft)},t.empty()):t.empty(),typeof At.groups<"u"&&(At.bounds=At.groups.reduce(function(ft,Et){return T(Et).union(ft)},At.bounds)),At.bounds=At.bounds.inflate(At.padding),At.bounds}et.computeGroupBounds=T;var t=function(){function At(ft,Et,Bt,Ft){this.x=ft,this.X=Et,this.y=Bt,this.Y=Ft}return At.empty=function(){return new At(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},At.prototype.cx=function(){return(this.x+this.X)/2},At.prototype.cy=function(){return(this.y+this.Y)/2},At.prototype.overlapX=function(ft){var Et=this.cx(),Bt=ft.cx();return Et<=Bt&&ft.x0?Bt[0]:null},At.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},At.lineIntersection=function(ft,Et,Bt,Ft,se,Gt,ve,be){var Le=Bt-ft,qe=ve-se,$e=Ft-Et,Xt=be-Gt,Te=Xt*Le-qe*$e;if(0==Te)return null;var ae=ft-se,Kt=Et-Gt,Wt=(qe*Kt-Xt*ae)/Te,De=(Le*Kt-$e*ae)/Te;return Wt>=0&&Wt<=1&&De>=0&&De<=1?{x:ft+Wt*Le,y:Et+Wt*$e}:null},At.prototype.inflate=function(ft){return new At(this.x-ft,this.X+ft,this.y-ft,this.Y+ft)},At}();et.Rectangle=t,et.makeEdgeBetween=function A(At,ft,Et){var Bt=At.rayIntersection(ft.cx(),ft.cy())||{x:At.cx(),y:At.cy()},Ft=ft.rayIntersection(At.cx(),At.cy())||{x:ft.cx(),y:ft.cy()},se=Ft.x-Bt.x,Gt=Ft.y-Bt.y,ve=Math.sqrt(se*se+Gt*Gt),be=ve-Et;return{sourceIntersection:Bt,targetIntersection:Ft,arrowStart:{x:Bt.x+be*se/ve,y:Bt.y+be*Gt/ve}}},et.makeEdgeTo=function x(At,ft,Et){var Bt=ft.rayIntersection(At.x,At.y);Bt||(Bt={x:ft.cx(),y:ft.cy()});var Ft=Bt.x-At.x,se=Bt.y-At.y,Gt=Math.sqrt(Ft*Ft+se*se);return{x:Bt.x-Et*Ft/Gt,y:Bt.y-Et*se/Gt}};var U=function At(ft,Et,Bt){this.v=ft,this.r=Et,this.pos=Bt,this.prev=P(),this.next=P()},k=function At(ft,Et,Bt){this.isOpen=ft,this.v=Et,this.pos=Bt};function D(At,ft){return At.pos>ft.pos?1:At.pos0&&(At[Bt].insert(se),se[Ft].insert(At))};Et("next","prev"),Et("prev","next")}};function J(At,ft,Et,Bt){void 0===Bt&&(Bt=!1);var Ft=At.padding,se=typeof At.groups<"u"?At.groups.length:0,Gt=typeof At.leaves<"u"?At.leaves.length:0,ve=se?At.groups.reduce(function(_n,Ae){return _n.concat(J(Ae,ft,Et,!0))},[]):[],be=(Bt?2:0)+Gt+se,Le=new Array(be),qe=new Array(be),$e=0,Xt=function(_n,Ae){qe[$e]=_n,Le[$e++]=Ae};if(Bt){var Te=At.bounds,ae=ft.getCentre(Te),Kt=ft.getSize(Te)/2,de=ft.getOpen(Te),Wt=ft.getClose(Te),re=ae-Kt+Ft/2,De=ae+Kt-Ft/2;At.minVar.desiredPosition=re,Xt(ft.makeRect(de,Wt,re,Ft),At.minVar),At.maxVar.desiredPosition=De,Xt(ft.makeRect(de,Wt,De,Ft),At.maxVar)}Gt&&At.leaves.forEach(function(_n){return Xt(_n.bounds,_n.variable)}),se&&At.groups.forEach(function(_n){var Ae=_n.bounds;Xt(ft.makeRect(ft.getOpen(Ae),ft.getClose(Ae),ft.getCentre(Ae),ft.getSize(Ae)),_n.minVar)});var on=K(qe,Le,ft,Et);return se&&(Le.forEach(function(_n){_n.cOut=[],_n.cIn=[]}),on.forEach(function(_n){_n.left.cOut.push(_n),_n.right.cIn.push(_n)}),At.groups.forEach(function(_n){var Ae=(_n.padding-ft.getSize(_n.bounds))/2;_n.minVar.cIn.forEach(function(gn){return gn.gap+=Ae}),_n.minVar.cOut.forEach(function(gn){gn.left=_n.maxVar,gn.gap+=Ae})})),ve.concat(on)}function K(At,ft,Et,Bt){var Ft,se=At.length,Gt=2*se;console.assert(ft.length>=se);var ve=new Array(Gt);for(Ft=0;Ftve[Bt]&&(ve[Bt]=be)}Gt=ve})}},At.prototype.createAlignment=function(ft){var Et=this,Bt=this.nodes[ft.offsets[0].node].variable;this.makeFeasible(ft);var Ft="x"===ft.axis?this.xConstraints:this.yConstraints;ft.offsets.slice(1).forEach(function(se){Ft.push(new p.Constraint(Bt,Et.nodes[se.node].variable,se.offset,!0))})},At.prototype.createConstraints=function(ft){var Et=this,Bt=function(Ft){return typeof Ft.type>"u"||"separation"===Ft.type};this.xConstraints=ft.filter(function(Ft){return"x"===Ft.axis&&Bt(Ft)}).map(function(Ft){return Et.createSeparation(Ft)}),this.yConstraints=ft.filter(function(Ft){return"y"===Ft.axis&&Bt(Ft)}).map(function(Ft){return Et.createSeparation(Ft)}),ft.filter(function(Ft){return"alignment"===Ft.type}).forEach(function(Ft){return Et.createAlignment(Ft)})},At.prototype.setupVariablesAndBounds=function(ft,Et,Bt,Ft){this.nodes.forEach(function(se,Gt){se.fixed?(se.variable.weight=se.fixedWeight?se.fixedWeight:1e3,Bt[Gt]=Ft(se)):se.variable.weight=1;var ve=(se.width||0)/2,be=(se.height||0)/2,Le=ft[Gt],qe=Et[Gt];se.bounds=new t(Le-ve,Le+ve,qe-be,qe+be)})},At.prototype.xProject=function(ft,Et,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(ft,Et,ft,Bt,function(Ft){return Ft.px},this.xConstraints,Pt,function(Ft){return Ft.bounds.setXCentre(Bt[Ft.variable.index]=Ft.variable.position())},function(Ft){var se=Bt[Ft.minVar.index]=Ft.minVar.position(),Gt=Bt[Ft.maxVar.index]=Ft.maxVar.position(),ve=Ft.padding/2;Ft.bounds.x=se-ve,Ft.bounds.X=Gt+ve})},At.prototype.yProject=function(ft,Et,Bt){!this.rootGroup&&!this.yConstraints||this.project(ft,Et,Et,Bt,function(Ft){return Ft.py},this.yConstraints,zt,function(Ft){return Ft.bounds.setYCentre(Bt[Ft.variable.index]=Ft.variable.position())},function(Ft){var se=Bt[Ft.minVar.index]=Ft.minVar.position(),Gt=Bt[Ft.maxVar.index]=Ft.maxVar.position(),ve=Ft.padding/2;Ft.bounds.y=se-ve,Ft.bounds.Y=Gt+ve})},At.prototype.projectFunctions=function(){var ft=this;return[function(Et,Bt,Ft){return ft.xProject(Et,Bt,Ft)},function(Et,Bt,Ft){return ft.yProject(Et,Bt,Ft)}]},At.prototype.project=function(ft,Et,Bt,Ft,se,Gt,ve,be,Le){this.setupVariablesAndBounds(ft,Et,Ft,se),this.rootGroup&&this.avoidOverlaps&&(T(this.rootGroup),Gt=Gt.concat(ve(this.rootGroup))),this.solve(this.variables,Gt,Bt,Ft),this.nodes.forEach(be),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Le),T(this.rootGroup))},At.prototype.solve=function(ft,Et,Bt,Ft){var se=new p.Solver(ft,Et);se.setStartingPositions(Bt),se.setDesiredPositions(Ft),se.solve()},At}();et.Projection=Tt},33858:(ot,et,v)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=v(88866),p=function A(x,U){this.id=x,this.distance=U},b=function A(x){this.id=x,this.neighbours=[]},T=function A(x,U,k){this.node=x,this.prev=U,this.d=k},t=function(){function A(x,U,k,D,P){this.n=x,this.es=U,this.neighbours=new Array(this.n);for(var F=this.n;F--;)this.neighbours[F]=new b(F);for(F=this.es.length;F--;){var z=this.es[F],J=k(z),K=D(z),at=P(z);this.neighbours[J].neighbours.push(new p(K,at)),this.neighbours[K].neighbours.push(new p(J,at))}}return A.prototype.DistanceMatrix=function(){for(var x=new Array(this.n),U=0;Uct&&(K.d=ct,K.prev=z,k.reduceKey(K.q,K,function(Dt,Pt){return Dt.q=Pt}))}}return P},A}();et.Calculator=t},98237:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var v=function(){function x(U){this.scale=U,this.AB=0,this.AD=0,this.A2=0}return x.prototype.addVariable=function(U){var k=this.scale/U.scale,P=U.weight;this.AB+=P*k*(U.offset/U.scale),this.AD+=P*k*U.desiredPosition,this.A2+=P*k*k},x.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},x}();et.PositionStats=v;var d=function(){function x(U,k,D,P){void 0===P&&(P=!1),this.left=U,this.right=k,this.gap=D,this.equality=P,this.active=!1,this.unsatisfiable=!1,this.left=U,this.right=k,this.gap=D,this.equality=P}return x.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},x}();et.Constraint=d;var p=function(){function x(U,k,D){void 0===k&&(k=1),void 0===D&&(D=1),this.desiredPosition=U,this.weight=k,this.scale=D,this.offset=0}return x.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},x.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},x.prototype.visitNeighbours=function(U,k){var D=function(P,F){return P.active&&U!==F&&k(P,F)};this.cOut.forEach(function(P){return D(P,P.right)}),this.cIn.forEach(function(P){return D(P,P.left)})},x}();et.Variable=p;var b=function(){function x(U){this.vars=[],U.offset=0,this.ps=new v(U.scale),this.addVariable(U)}return x.prototype.addVariable=function(U){U.block=this,this.vars.push(U),this.ps.addVariable(U),this.posn=this.ps.getPosn()},x.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var U=0,k=this.vars.length;U=0?this.inactive.push(U):this.bs.merge(U)}}},x.prototype.solve=function(){this.satisfy();for(var U=Number.MAX_VALUE,k=this.bs.cost();Math.abs(U-k)>1e-4;)this.satisfy(),U=k,k=this.bs.cost();return k},x.LAGRANGIAN_TOLERANCE=-1e-4,x.ZERO_UPPERBOUND=-1e-10,x}();et.Solver=t,et.removeOverlapInOneDimension=function A(x,U,k){for(var D=x.map(function(it){return new p(it.desiredCenter)}),P=[],F=x.length,z=0;z{var d={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function p(T){var t=b(T);return v(t)}function b(T){if(!v.o(d,T)){var t=new Error("Cannot find module '"+T+"'");throw t.code="MODULE_NOT_FOUND",t}return d[T]}p.keys=function(){return Object.keys(d)},p.resolve=b,ot.exports=p,p.id=46700},7100:(ot,et,v)=>{"use strict";v.d(et,{AB:()=>gi,EC:()=>ei,K:()=>dn,g2:()=>An});var d=v(84080),p=v(94650),b=v(42654),T=v(8929),t=v(36787),A=v(29521),x=v(72986),U=v(1059),k=v(7625),D=v(80013),P=v(92198),F=v(99602),z=v(36895),J=v(3238),K=v(40445),at=v(4859),ct=v(21281),vt=v(98184),Dt=v(24006),Pt=v(59549),zt=v(284),Vt=v(97392),it=v(65412),Tt=v(83353);const At=["ngx-mat-calendar-body",""];function ft(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&tt){const Q=p.oxw();p.xp6(1),p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q.numCols),p.xp6(1),p.hij(" ",Q.label," ")}}function Et(tt,Rt){if(1&tt&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&tt){const Q=p.oxw(2);p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q._firstRowOffset),p.xp6(1),p.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function Bt(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(Be){const Qi=p.CHM(Q).$implicit,Ao=p.oxw(2);return p.KtG(Ao._cellClicked(Qi,Be))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&tt){const Q=Rt.$implicit,Nt=Rt.index,Be=p.oxw().index,Rn=p.oxw();p.Udp("width",Rn._cellWidth)("padding-top",Rn._cellPadding)("padding-bottom",Rn._cellPadding),p.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Rn._isActiveCell(Be,Nt))("mat-calendar-body-range-start",Rn._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Rn._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Rn._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Rn._isComparisonBridgeStart(Q.compareValue,Be,Nt))("mat-calendar-body-comparison-bridge-end",Rn._isComparisonBridgeEnd(Q.compareValue,Be,Nt))("mat-calendar-body-comparison-start",Rn._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Rn._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Rn._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Rn._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Rn._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Rn._isInPreview(Q.compareValue)),p.Q6J("ngClass",Q.cssClasses)("tabindex",Rn._isActiveCell(Be,Nt)?0:-1),p.uIk("data-mat-row",Be)("data-mat-col",Nt)("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-selected",Rn._isSelected(Q)),p.xp6(1),p.ekj("mat-calendar-body-selected",Rn._isSelected(Q))("mat-calendar-body-today",Rn.todayValue===Q.compareValue),p.xp6(1),p.hij(" ",Q.displayValue," ")}}function Ft(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",4),p.YNc(1,Et,2,6,"td",5),p.YNc(2,Bt,4,44,"td",6),p.qZA()),2&tt){const Q=Rt.$implicit,Nt=Rt.index,Be=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Nt&&Be._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",Q)}}function se(tt,Rt){if(1&tt&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&tt){const Q=Rt.$implicit;p.uIk("aria-label",Q.long),p.xp6(1),p.Oqu(Q.narrow)}}const Gt=["*"];function ve(tt,Rt){}function be(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._dateSelected(Be))})("_userSelection",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be._userSelected())}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Le(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("monthSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._monthSelectedInYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"month"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function qe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("yearSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._yearSelectedInMultiYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"year"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function $e(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function Xt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function Te(tt,Rt){1&tt&&p._UZ(0,"td")}function ae(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("hour",!0))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_less"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,$e,4,1,"td",3),p.YNc(12,Xt,1,0,"td",8),p.YNc(13,Te,1,0,"td",3),p.qZA()}if(2&tt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(4),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function Kt(tt,Rt){1&tt&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function de(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.formatInput(Be.target))})("keydown.ArrowUp",function(Be){return p.CHM(Q),p.oxw().change("second",!0),p.KtG(Be.preventDefault())})("keydown.ArrowDown",function(Be){return p.CHM(Q),p.oxw().change("second",!1),p.KtG(Be.preventDefault())})("blur",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("second"))}),p.qZA()()()}}function Wt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function re(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&tt){const Q=p.oxw();p.xp6(1),p.Q6J("color",Q.color)("disabled",Q.disabled),p.xp6(1),p.hij(" ",Q.meridian," ")}}function De(tt,Rt){1&tt&&p._UZ(0,"td")}function on(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function _n(tt,Rt){1&tt&&p._UZ(0,"td",6)}function Ae(tt,Rt){1&tt&&p._UZ(0,"td")}function gn(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("hour",!1))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_more"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,De,1,0,"td",3),p.YNc(11,on,4,1,"td",3),p.YNc(12,_n,1,0,"td",8),p.YNc(13,Ae,1,0,"td",3),p.qZA()}if(2&tt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(3),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function we(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(Be){p.CHM(Q);const Rn=p.oxw(2);return p.KtG(Rn.datepicker._selected=Be)}),p.qZA()()}if(2&tt){const Q=p.oxw(2);p.ekj("disable-seconds",!Q.datepicker._showSeconds),p.xp6(1),p.Q6J("showSpinners",Q.datepicker._showSpinners)("showSeconds",Q.datepicker._showSeconds)("disabled",Q.datepicker._disabled)("stepHour",Q.datepicker._stepHour)("stepMinute",Q.datepicker._stepMinute)("stepSecond",Q.datepicker._stepSecond)("ngModel",Q.datepicker._selected)("color",Q.datepicker._color)("enableMeridian",Q.datepicker._enableMeridian)("disableMinute",Q.datepicker._disableMinute)}}function un(tt,Rt){1&tt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function Un(tt,Rt){}function oi(tt,Rt){if(1&tt){const Q=p.EpF();p.ynx(0),p.YNc(1,we,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.datepicker.ok())}),p.YNc(4,un,2,0,"mat-icon",1),p.YNc(5,Un,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&tt){const Q=p.oxw();p.xp6(1),p.Q6J("ngIf",!Q.datepicker._hideTime),p.xp6(2),p.Q6J("color",Q.datepicker._color)("disabled",!Q.valid),p.xp6(1),p.Q6J("ngIf",!Q.datepicker._customIcon),p.xp6(1),p.Q6J("cdkPortalOutlet",Q._templateCustomIconPortal)}}const vi=new p.OlP("ngx-mat-date-formats");class si{constructor(Rt,Q,Nt,Be,Rn={},Qi=Rt,Ao){this.value=Rt,this.displayValue=Q,this.ariaLabel=Nt,this.enabled=Be,this.cssClasses=Rn,this.compareValue=Qi,this.rawValue=Ao}}let Ke=(()=>{class tt{constructor(Q,Nt){this._elementRef=Q,this._ngZone=Nt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this._enterHandler=Be=>{if(this._skipNextFocus&&"focus"===Be.type)this._skipNextFocus=!1;else if(Be.target&&this.isRange){const Rn=this._getCellFromElement(Be.target);Rn&&this._ngZone.run(()=>this.previewChange.emit({value:Rn.enabled?Rn:null,event:Be}))}},this._leaveHandler=Be=>{null!==this.previewEnd&&this.isRange&&Be.target&&ne(Be.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Be}))},Nt.runOutsideAngular(()=>{const Be=Q.nativeElement;Be.addEventListener("mouseenter",this._enterHandler,!0),Be.addEventListener("focus",this._enterHandler,!0),Be.addEventListener("mouseleave",this._leaveHandler,!0),Be.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(Q,Nt){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Nt})}_isSelected(Q){return this.startValue===Q.compareValue||this.endValue===Q.compareValue}ngOnChanges(Q){const Nt=Q.numCols,{rows:Be,numCols:Rn}=this;(Q.rows||Nt)&&(this._firstRowOffset=Be&&Be.length&&Be[0].length?Rn-Be[0].length:0),(Q.cellAspectRatio||Nt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Rn+"%"),(Nt||!this._cellWidth)&&(this._cellWidth=100/Rn+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,Nt){let Be=Q*this.numCols+Nt;return Q&&(Be-=this._firstRowOffset),Be==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{const Nt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Nt&&(Q||(this._skipNextFocus=!0),Nt.focus())})})}_isRangeStart(Q){return lt(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return nt(Q,this.startValue,this.endValue)}_isInRange(Q){return kt(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return lt(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Nt,Be){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Nt][Be-1];if(!Rn){const Qi=this.rows[Nt-1];Rn=Qi&&Qi[Qi.length-1]}return Rn&&!this._isRangeEnd(Rn.compareValue)}_isComparisonBridgeEnd(Q,Nt,Be){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Nt][Be+1];if(!Rn){const Qi=this.rows[Nt+1];Rn=Qi&&Qi[0]}return Rn&&!this._isRangeStart(Rn.compareValue)}_isComparisonEnd(Q){return nt(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return kt(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(Q){return lt(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return nt(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return kt(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let Nt;if(ne(Q)?Nt=Q:ne(Q.parentNode)&&(Nt=Q.parentNode),Nt){const Be=Nt.getAttribute("data-ngx-mat-row"),Rn=Nt.getAttribute("data-ngx-mat-col");if(Be&&Rn)return this.rows[parseInt(Be)][parseInt(Rn)]}return null}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.R0b))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[p.TTD],attrs:At,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(Q,Nt){1&Q&&(p.YNc(0,ft,3,6,"tr",0),p.YNc(1,Ft,3,2,"tr",1)),2&Q&&(p.Q6J("ngIf",Nt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),tt})();function ne(tt){return"TD"===tt.nodeName}function lt(tt,Rt,Q){return null!==Q&&Rt!==Q&&tt=Rt&&tt===Q}function kt(tt,Rt,Q,Nt){return Nt&&null!==Rt&&null!==Q&&Rt!==Q&&tt>=Rt&&tt<=Q}class Jt extends J._A{isSameTime(Rt,Q){return null==Rt||null==Q||this.getHour(Rt)===this.getHour(Q)&&this.getMinute(Rt)===this.getMinute(Q)&&this.getSecond(Rt)===this.getSecond(Q)}copyTime(Rt,Q){this.setHour(Rt,this.getHour(Q)),this.setMinute(Rt,this.getMinute(Q)),this.setSecond(Rt,this.getSecond(Q))}compareDateWithTime(Rt,Q,Nt){let Be=super.compareDate(Rt,Q)||this.getHour(Rt)-this.getHour(Q)||this.getMinute(Rt)-this.getMinute(Q);return Nt&&(Be=Be||this.getSecond(Rt)-this.getSecond(Q)),Be}setTimeByDefaultValues(Rt,Q){if(!Array.isArray(Q))throw Error("@Input DefaultTime should be an array");this.setHour(Rt,Q[0]||0),this.setMinute(Rt,Q[1]||0),this.setSecond(Rt,Q[2]||0)}}const oe=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let Ce=(()=>{class tt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,Nt){let{start:Be,end:Rn}=Nt;return null==Be?Be=Q:null==Rn&&Q&&this._dateAdapter.compareDate(Q,Be)>=0?Rn=Q:(Be=Q,Rn=null),new F.C0(Be,Rn)}createPreview(Q,Nt){let Be=null,Rn=null;return Nt.start&&!Nt.end&&Q&&(Be=Nt.start,Rn=Q),new F.C0(Be,Rn)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(Jt))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const Oe={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},mi=/[^0-9]/g,Li=/^(2[0-3]|[0-1][0-9]|[0-9])$/,ho=/^([0-5][0-9]|[0-9])$/,fi=/^([0-5][0-9]|[0-9])$/;function Bn(tt){const Rt=tt.toString();return Rt.length>1?Rt:`0${Rt}`}function jn(tt){return Error(`NgxMatDatepicker: No provider found for ${tt}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let ze=(()=>{class tt{constructor(Q,Nt,Be,Rn,Qi){if(this._changeDetectorRef=Q,this._dateFormats=Nt,this._dateAdapter=Be,this._dir=Rn,this._rangeStrategy=Qi,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const Nt=this._activeDate,Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._hasSameMonthAndYear(Nt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof F.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Nt=Q.value,Be=this._dateAdapter.getYear(this.activeDate),Rn=this._dateAdapter.getMonth(this.activeDate),Qi=this._dateAdapter.createDate(Be,Rn,Nt);let Ao,gr;this._selected instanceof F.C0?(Ao=this._getDateInCurrentMonth(this._selected.start),gr=this._getDateInCurrentMonth(this._selected.end)):Ao=gr=this._getDateInCurrentMonth(this._selected),(Ao!==Nt||gr!==Nt)&&this.selectedChange.emit(Qi),this._userSelection.emit({value:Qi,event:Q.event})}_handleCalendarBodyKeydown(Q){const Nt=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.K5:case A.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),Q.preventDefault()));case A.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(Nt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_previewChanged({event:Q,value:Nt}){if(this._rangeStrategy){const Rn=this._rangeStrategy.createPreview(Nt?Nt.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Rn.start),this._previewEnd=this._getCellCompareValue(Rn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Nt=this._dateAdapter.getDayOfWeekNames("narrow");let Rn=this._dateAdapter.getDayOfWeekNames("long").map((Qi,Ao)=>({long:Qi,narrow:Nt[Ao]}));this._weekdays=Rn.slice(Q).concat(Rn.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Nt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Be=0,Rn=this._firstWeekOffset;Be=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,Nt){return!(!Q||!Nt||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Nt)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Nt))}_getCellCompareValue(Q){if(Q){const Nt=this._dateAdapter.getYear(Q),Be=this._dateAdapter.getMonth(Q),Rn=this._dateAdapter.getDate(Q);return new Date(Nt,Be,Rn).getTime()}return null}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof F.C0?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.sBO),p.Y36(vi,8),p.Y36(Jt,8),p.Y36(K.Is,8),p.Y36(oe,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-month-view"]],viewQuery:function(Q,Nt){if(1&Q&&p.Gf(Ke,5),2&Q){let Be;p.iGM(Be=p.CRH())&&(Nt._matCalendarBody=Be.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(Q,Nt){1&Q&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,se,2,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(Rn){return Nt._dateSelected(Rn)})("previewChange",function(Rn){return Nt._previewChanged(Rn)})("keydown",function(Rn){return Nt._handleCalendarBodyKeydown(Rn)}),p.qZA()()),2&Q&&(p.xp6(3),p.Q6J("ngForOf",Nt._weekdays),p.xp6(3),p.Q6J("label",Nt._monthLabel)("rows",Nt._weeks)("todayValue",Nt._todayDate)("startValue",Nt._rangeStart)("endValue",Nt._rangeEnd)("comparisonStart",Nt._comparisonRangeStart)("comparisonEnd",Nt._comparisonRangeEnd)("previewStart",Nt._previewStart)("previewEnd",Nt._previewEnd)("isRange",Nt._isRange)("labelMinRequiredCells",3)("activeCell",Nt._dateAdapter.getDate(Nt.activeDate)-1))},dependencies:[z.sg,Ke],encapsulation:2,changeDetection:0}),tt})(),le=(()=>{class tt{constructor(Q,Nt,Be){if(this._changeDetectorRef=Q,this._dateAdapter=Nt,this._dir=Be,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Nt=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),Ge(this._dateAdapter,Nt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof F.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Nt=this._dateAdapter.getYear(this._activeDate)-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Be=0,Rn=[];Be<24;Be++)Rn.push(Nt+Be),4==Rn.length&&(this._years.push(Rn.map(Qi=>this._createCellForYear(Qi))),Rn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Nt=Q.value;this.yearSelected.emit(this._dateAdapter.createDate(Nt,0,1));let Be=this._dateAdapter.getMonth(this.activeDate),Rn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Nt,Be,1));this.selectedChange.emit(this._dateAdapter.createDate(Nt,Be,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Nt=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-240:-24);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?240:24);break;case A.K5:case A.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(Nt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_getActiveCell(){return Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(Q){let Nt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return new si(Q,Nt,Nt,this._shouldEnableYear(Q))}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class tt{constructor(Q,Nt,Be,Rn){if(this._changeDetectorRef=Q,this._dateFormats=Nt,this._dateAdapter=Be,this._dir=Rn,this._rerenderSubscription=b.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Nt=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._dateAdapter.getYear(Nt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof F.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Nt=Q.value,Be=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Nt,1);this.monthSelected.emit(Be);const Rn=this._dateAdapter.getNumDaysInMonth(Be);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Nt,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Nt=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case A.K5:case A.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(Nt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Nt=>Nt.map(Be=>this._createCellForMonth(Be,Q[Be]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_createCellForMonth(Q,Nt){let Be=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),this._dateFormats.display.monthYearA11yLabel);return new si(Q,Nt.toLocaleUpperCase(),Be,this._shouldEnableMonth(Q))}_shouldEnableMonth(Q){const Nt=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Nt,Q)||this._isYearAndMonthBeforeMinDate(Nt,Q))return!1;if(!this.dateFilter)return!0;for(let Rn=this._dateAdapter.createDate(Nt,Q,1);this._dateAdapter.getMonth(Rn)==Q;Rn=this._dateAdapter.addCalendarDays(Rn,1))if(this.dateFilter(Rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Nt){if(this.maxDate){const Be=this._dateAdapter.getYear(this.maxDate),Rn=this._dateAdapter.getMonth(this.maxDate);return Q>Be||Q===Be&&Nt>Rn}return!1}_isYearAndMonthBeforeMinDate(Q,Nt){if(this.minDate){const Be=this._dateAdapter.getYear(this.minDate),Rn=this._dateAdapter.getMonth(this.minDate);return Q{class tt{constructor(Q,Nt,Be,Rn,Qi){this._intl=Q,this.calendar=Nt,this._dateAdapter=Be,this._dateFormats=Rn,this.calendar.stateChanges.subscribe(()=>Qi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Nt=this._dateAdapter.getYear(this.calendar.activeDate)-Lt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Be=Nt+24-1;return function Ye(tt,Rt){return`${tt} \u2013 ${Rt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Nt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Be,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Q,Nt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Nt)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Nt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Nt):Ge(this._dateAdapter,Q,Nt,this.calendar.minDate,this.calendar.maxDate)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(F.S8),p.Y36((0,p.Gpc)(()=>Ne)),p.Y36(Jt,8),p.Y36(vi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Gt,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Q,Nt){1&Q&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Nt.currentPeriodClicked()}),p._uU(3),p._UZ(4,"div",3),p.qZA(),p._UZ(5,"div",4),p.Hsn(6),p.TgZ(7,"button",5),p.NdJ("click",function(){return Nt.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return Nt.nextClicked()}),p.qZA()()()),2&Q&&(p.xp6(2),p.uIk("aria-label",Nt.periodButtonLabel),p.xp6(1),p.hij(" ",Nt.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=Nt.calendar.currentView),p.xp6(3),p.Q6J("disabled",!Nt.previousEnabled()),p.uIk("aria-label",Nt.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Nt.nextEnabled()),p.uIk("aria-label",Nt.nextButtonLabel))},dependencies:[at.lW],encapsulation:2,changeDetection:0}),tt})(),Ne=(()=>{class tt{constructor(Q,Nt,Be,Rn){if(this._dateAdapter=Nt,this._dateFormats=Be,this._changeDetectorRef=Rn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this._userSelection=new p.vpe,this.stateChanges=new T.xQ,!this._dateAdapter)throw jn("NgxDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._intlChanges=Q.changes.subscribe(()=>{Rn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new d.C5(this.headerComponent||Xe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Q){const Nt=Q.minDate||Q.maxDate||Q.dateFilter;if(Nt&&!Nt.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(Q){Q&&!this._dateAdapter.sameDate(Q,this.selected)&&this.selectedChange.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_userSelected(){this._userSelection.emit()}_goToDateInView(Q,Nt){this.activeDate=Q,this.currentView=Nt}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(F.S8),p.Y36(Jt,8),p.Y36(vi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar"]],viewQuery:function(Q,Nt){if(1&Q&&(p.Gf(ze,5),p.Gf(ye,5),p.Gf(le,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Nt.monthView=Be.first),p.iGM(Be=p.CRH())&&(Nt.yearView=Be.first),p.iGM(Be=p.CRH())&&(Nt.multiYearView=Be.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[p.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(Q,Nt){1&Q&&(p.YNc(0,ve,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,be,1,6,"ngx-mat-month-view",2),p.YNc(3,Le,1,5,"ngx-mat-year-view",3),p.YNc(4,qe,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&Q&&(p.Q6J("cdkPortalOutlet",Nt._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Nt.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[z.RF,z.n9,d.Pl,ze,ye,le],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),tt})(),Tn=(()=>{class tt{constructor(Q,Nt,Be){if(this._dateAdapter=Q,this.cd=Nt,this.formBuilder=Be,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new T.xQ,this.pattern=Li,!this._dateAdapter)throw jn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(Li)]],minute:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(ho)]],second:[{value:null,disabled:this.disabled},[Dt.kI.required,Dt.kI.pattern(fi)]]})}get hour(){let Q=Number(this.form.controls.hour.value);return isNaN(Q)?0:Q}get minute(){let Q=Number(this.form.controls.minute.value);return isNaN(Q)?0:Q}get second(){let Q=Number(this.form.controls.second.value);return isNaN(Q)?0:Q}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,k.R)(this._destroyed),(0,D.b)(400)).subscribe(Q=>{this._updateModel()})}ngOnChanges(Q){(Q.disabled||Q.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(Q){null!=Q?this._model=Q:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(Q){this._onChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this._disabled=Q,this.cd.markForCheck()}formatInput(Q){Q.value=Q.value.replace(mi,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(Q,Nt){const Be=this._getNextValueByProp(Q,Nt);this.form.controls[Q].setValue(Bn(Be),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let Q=this._dateAdapter.getHour(this._model);const Nt=this._dateAdapter.getMinute(this._model),Be=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(Q>=Oe.meridian?(Q-=Oe.meridian,this.meridian="PM"):this.meridian="AM",0===Q&&(Q=Oe.meridian)),this.form.controls.hour.setValue(Bn(Q)),this.form.controls.minute.setValue(Bn(Nt)),this.form.controls.second.setValue(Bn(Be))}_updateModel(){let Q=this.hour;this.enableMeridian&&("AM"===this.meridian&&Q===Oe.meridian?Q=0:"PM"===this.meridian&&Q!==Oe.meridian&&(Q+=Oe.meridian)),this._dateAdapter.setHour(this._model,Q),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(Q,Nt){const Be=Q[0].toUpperCase()+Q.slice(1),Rn=Oe[`min${Be}`];let Ao,Qi=Oe[`max${Be}`];return"hour"===Q&&this.enableMeridian&&(Qi=Oe.meridian),null==Nt?(Ao=this[Q]%Qi,"hour"===Q&&this.enableMeridian&&0===Ao&&(Ao=Qi)):(Ao=Nt?this[Q]+this[`step${Be}`]:this[Q]-this[`step${Be}`],"hour"===Q&&this.enableMeridian?(Ao%=Qi+1,0===Ao&&(Ao=Nt?1:Qi)):Ao%=Qi,Ao=Nt?Ao>Qi?Ao-Qi+Rn:Ao:Aott),multi:!0}]),p.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(Q,Nt){1&Q&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,ae,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(Rn){return Nt.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Nt.change("hour",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Nt.change("hour",!1),Rn.preventDefault()})("blur",function(){return Nt.change("hour")}),p.qZA()()(),p.TgZ(8,"td",6),p._uU(9,":"),p.qZA(),p.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),p.NdJ("input",function(Rn){return Nt.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Nt.change("minute",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Nt.change("minute",!1),Rn.preventDefault()})("blur",function(){return Nt.change("minute")}),p.qZA()()(),p.YNc(13,Kt,2,0,"td",8),p.YNc(14,de,3,0,"td",3),p.YNc(15,Wt,1,0,"td",8),p.YNc(16,re,3,3,"td",9),p.qZA(),p.YNc(17,gn,14,6,"tr",3),p.qZA()()()),2&Q&&(p.Q6J("formGroup",Nt.form),p.xp6(3),p.Q6J("ngIf",Nt.showSpinners),p.xp6(10),p.Q6J("ngIf",Nt.showSeconds),p.xp6(1),p.Q6J("ngIf",Nt.showSeconds),p.xp6(1),p.Q6J("ngIf",Nt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Nt.enableMeridian),p.xp6(1),p.Q6J("ngIf",Nt.showSpinners))},dependencies:[z.O5,Pt.KE,zt.Nt,Dt._Y,Dt.Fj,Dt.JJ,Dt.JL,Dt.nD,Dt.sg,Dt.u,Vt.Hw,at.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),tt})(),he=0;const Re=(0,J.pj)(class{constructor(tt){this._elementRef=tt}});let En=(()=>{class tt extends Re{constructor(Q,Nt,Be){super(Q),this.cd=Nt,this._viewContainerRef=Be}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new d.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(Q,Nt){if(1&Q&&(p.Gf(Ne,5),p.Gf(Tn,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Nt._calendar=Be.first),p.iGM(Be=p.CRH())&&(Nt._timePicker=Be.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Nt){2&Q&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",Nt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[p.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(Q,Nt){1&Q&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(Rn){return Nt.datepicker.select(Rn)})("yearSelected",function(Rn){return Nt.datepicker._selectYear(Rn)})("monthSelected",function(Rn){return Nt.datepicker._selectMonth(Rn)}),p.qZA(),p.YNc(1,oi,6,5,"ng-container",1)),2&Q&&(p.Q6J("id",Nt.datepicker.id)("ngClass",Nt.datepicker.panelClass)("startAt",Nt.datepicker.startAt)("startView",Nt.datepicker.startView)("minDate",Nt.datepicker._minDate)("maxDate",Nt.datepicker._maxDate)("dateFilter",Nt.datepicker._dateFilter)("headerComponent",Nt.datepicker.calendarHeaderComponent)("selected",Nt.datepicker._selected)("dateClass",Nt.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",Nt.isViewMonth))},dependencies:[z.mk,z.O5,d.Pl,Dt.JJ,Dt.On,Vt.Hw,at.lW,Tn,Ne],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[F.E2.transformPanel,F.E2.fadeInCalendar]},changeDetection:0}),tt})(),gi=(()=>{class tt{constructor(Q,Nt,Be,Rn,Qi,Ao,gr,vr){if(this._dialog=Q,this._overlay=Nt,this._ngZone=Be,this._viewContainerRef=Rn,this._dateAdapter=Ao,this._dir=gr,this._document=vr,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.openedStream=new p.vpe,this.closedStream=new p.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+he++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=b.w.EMPTY,this.stateChanges=new T.xQ,this._selectedChanged=new T.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw jn("NgxMatDateAdapter");this._scrollStrategy=Qi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get defaultColor(){return this._defaultColor}set defaultColor(Q){this._defaultColor=Q}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,ct.Ig)(Q)}get hideTime(){return this._hideTime}set hideTime(Q){this._hideTime=(0,ct.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Nt=(0,ct.Ig)(Q);Nt!==this._disabled&&(this._disabled=Nt,this.stateChanges.next(Nt))}get opened(){return this._opened}set opened(Q){Q?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(Q){this._showSpinners=Q}get showSeconds(){return this._showSeconds}set showSeconds(Q){this._showSeconds=Q}get stepHour(){return this._stepHour}set stepHour(Q){this._stepHour=Q}get stepMinute(){return this._stepMinute}set stepMinute(Q){this._stepMinute=Q}get stepSecond(){return this._stepSecond}set stepSecond(Q){this._stepSecond=Q}get enableMeridian(){return this._enableMeridian}set enableMeridian(Q){this._enableMeridian=Q}get disableMinute(){return this._disableMinute}set disableMinute(Q){this._disableMinute=Q}get defaultTime(){return this._defaultTime}set defaultTime(Q){this._defaultTime=Q}get _selected(){return this._validSelected}set _selected(Q){this._validSelected=Q}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const Q=this._minValidator(),Nt=this._maxValidator();return null==Q&&null==Nt}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(Q){this._dateAdapter.copyTime(Q,this._selected),this._selected=Q}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}ok(){const Q=this._dateAdapter.clone(this._selected);this._selectedChanged.next(Q),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(Q){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=Q,this._inputSubscription=this.datepickerInput._valueChange.subscribe(Nt=>this._selected=Nt)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const Q=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Q)):Q()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(En,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new d.C5(En,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const Q=new vt.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(Q),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,P.h)(Nt=>Nt.keyCode===A.hY||this.datepickerInput&&Nt.altKey&&Nt.keyCode===A.LH))).subscribe(Nt=>{Nt&&Nt.preventDefault(),this._hasBackdrop&&Nt?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_setColor(){const Q=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=Q),this._dialogRef&&(this._dialogRef.componentInstance.color=Q)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(it.uw),p.Y36(vt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(F.Uu),p.Y36(Jt,8),p.Y36(K.Is,8),p.Y36(z.K0,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(Q,Nt,Be){if(1&Q&&p.Suo(Be,p.Rgc,5),2&Q){let Rn;p.iGM(Rn=p.CRH())&&(Nt._customIcon=Rn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(Q,Nt){},encapsulation:2,changeDetection:0}),tt})();const go={provide:Dt.JU,useExisting:(0,p.Gpc)(()=>An),multi:!0},_o={provide:Dt.Cf,useExisting:(0,p.Gpc)(()=>An),multi:!0};class mn{constructor(Rt,Q){this.target=Rt,this.targetElement=Q,this.value=this.target.value}}let Zi,An=(()=>{class tt{constructor(Q,Nt,Be,Rn){if(this._elementRef=Q,this._dateAdapter=Nt,this._dateFormats=Be,this._formField=Rn,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this._valueChange=new p.vpe,this.stateChanges=new p.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=b.w.EMPTY,this._localeSubscription=b.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Qi=>{const Ao=this._getValidDateOrNull(this._dateAdapter.deserialize(Qi.value));return!this.min||!Ao||this._dateAdapter.compareDateWithTime(this.min,Ao,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:Ao}}},this._maxValidator=Qi=>{const Ao=this._getValidDateOrNull(this._dateAdapter.deserialize(Qi.value));return!this.max||!Ao||this._dateAdapter.compareDateWithTime(this.max,Ao,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:Ao}}},this._filterValidator=Qi=>{const Ao=this._getValidDateOrNull(this._dateAdapter.deserialize(Qi.value));return this._dateFilter&&Ao&&!this._dateFilter(Ao)?{matDatetimePickerFilter:!0}:null},this._validator=Dt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Nt.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(Q){!Q||(this._datepicker=Q,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(Nt=>{this.value=Nt,this._cvaOnChange(Nt),this._onTouched(),this.dateInput.emit(new mn(this,this._elementRef.nativeElement)),this.dateChange.emit(new mn(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(Q){this._dateFilter=Q,this._validatorOnChange()}get value(){return this._value}set value(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=!Q||this._dateAdapter.isValid(Q),Q=this._getValidDateOrNull(Q);const Nt=this.value;this._value=Q,this._formatValue(Q),this._dateAdapter.sameDate(Nt,Q)||this._valueChange.emit(Q)}get min(){return this._min}set min(Q){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get max(){return this._max}set max(Q){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(Q){const Nt=null!=Q&&"false"!=`${Q}`,Be=this._elementRef.nativeElement;this._disabled!==Nt&&(this._disabled=Nt,this.stateChanges.emit(void 0)),Nt&&Be.blur&&Be.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(Q){this.value=Q}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){this._datepicker&&Q.altKey&&Q.keyCode===A.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),Q.preventDefault())}_onInput(Q){const Nt=this._lastValueValid;let Be=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=!Be||this._dateAdapter.isValid(Be),Be=this._getValidDateOrNull(Be);const Rn=this._dateAdapter.isSameTime(Be,this._value);null!=Be&&(!Rn||!this._dateAdapter.sameDate(Be,this._value))||null==Be&&null!=this._value?(this._value=Be,this._cvaOnChange(Be),this._valueChange.emit(Be),this.dateInput.emit(new mn(this,this._elementRef.nativeElement))):Nt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new mn(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(Q){this._elementRef.nativeElement.value=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(Jt,8),p.Y36(vi,8),p.Y36(Pt.KE,8))},tt.\u0275dir=p.lG2({type:tt,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(Q,Nt){1&Q&&p.NdJ("input",function(Rn){return Nt._onInput(Rn.target.value)})("change",function(){return Nt._onChange()})("blur",function(){return Nt._onBlur()})("focus",function(){return Nt._onFocus()})("keydown",function(Rn){return Nt._onKeydown(Rn)}),2&Q&&(p.Ikx("disabled",Nt.disabled),p.uIk("aria-haspopup",Nt._datepicker?"dialog":null)("aria-owns",(null==Nt._datepicker?null:Nt._datepicker.opened)&&Nt._datepicker.id||null)("min",Nt.min?Nt._dateAdapter.toIso8601(Nt.min):null)("max",Nt.max?Nt._dateAdapter.toIso8601(Nt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[p._Bn([go,_o,{provide:zt.Jk,useExisting:tt}])]}),tt})(),sn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({imports:[z.ez,zt.c,Dt.UX,Dt.u5,Vt.Ps,at.ot]}),tt})(),ei=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[F.Lv,{provide:oe,useClass:Ce}],imports:[z.ez,F.FA,it.Is,d.eL,Dt.u5,Vt.Ps,at.ot,zt.c,sn]}),tt})();try{Zi=typeof Intl<"u"}catch{Zi=!1}const bo={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},No=fr(31,tt=>String(tt+1)),ua={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},qa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fr(tt,Rt){const Q=Array(tt);for(let Nt=0;Nt{class tt extends Jt{constructor(Q,Nt){super(),this.useUtcForDisplay=!0,super.setLocale(Q),this.useUtcForDisplay=!Nt.TRIDENT,this._clampDate=Nt.TRIDENT||Nt.EDGE}getYear(Q){return Q.getFullYear()}getMonth(Q){return Q.getMonth()}getDate(Q){return Q.getDate()}getDayOfWeek(Q){return Q.getDay()}getMonthNames(Q){if(Zi){const Nt=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return fr(12,Be=>this._stripDirectionalityCharacters(this._format(Nt,new Date(2017,Be,1))))}return bo[Q]}getDateNames(){if(Zi){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fr(31,Nt=>this._stripDirectionalityCharacters(this._format(Q,new Date(2017,0,Nt+1))))}return No}getDayOfWeekNames(Q){if(Zi){const Nt=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return fr(7,Be=>this._stripDirectionalityCharacters(this._format(Nt,new Date(2017,0,Be+1))))}return ua[Q]}getYearName(Q){if(Zi){const Nt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Nt,Q))}return String(this.getYear(Q))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Q){return this.getDate(this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+1,0))}clone(Q){return new Date(Q.getTime())}createDate(Q,Nt,Be){if(Nt<0||Nt>11)throw Error(`Invalid month index "${Nt}". Month index has to be between 0 and 11.`);if(Be<1)throw Error(`Invalid date "${Be}". Date has to be greater than 0.`);let Rn=this._createDateWithOverflow(Q,Nt,Be);if(Rn.getMonth()!=Nt)throw Error(`Invalid date "${Be}" for month with index "${Nt}".`);return Rn}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,Nt){if(!this.isValid(Q))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Zi){this._clampDate&&(Q.getFullYear()<1||Q.getFullYear()>9999)&&(Q=this.clone(Q)).setFullYear(Math.max(1,Math.min(9999,Q.getFullYear()))),Nt={...Nt,timeZone:"utc"};const Be=new Intl.DateTimeFormat(this.locale,Nt);return this._stripDirectionalityCharacters(this._format(Be,Q))}return this._stripDirectionalityCharacters(Q.toDateString())}addCalendarYears(Q,Nt){return this.addCalendarMonths(Q,12*Nt)}addCalendarMonths(Q,Nt){let Be=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+Nt,this.getDate(Q));return this.getMonth(Be)!=((this.getMonth(Q)+Nt)%12+12)%12&&(Be=this._createDateWithOverflow(this.getYear(Be),this.getMonth(Be),0)),Be}addCalendarDays(Q,Nt){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+Nt)}toIso8601(Q){return[Q.getUTCFullYear(),this._2digit(Q.getUTCMonth()+1),this._2digit(Q.getUTCDate())].join("-")}deserialize(Q){if("string"==typeof Q){if(!Q)return null;if(qa.test(Q)){let Nt=new Date(Q);if(this.isValid(Nt))return Nt}}return super.deserialize(Q)}isDateInstance(Q){return Q instanceof Date}isValid(Q){return!isNaN(Q.getTime())}invalid(){return new Date(NaN)}getHour(Q){return Q.getHours()}getMinute(Q){return Q.getMinutes()}getSecond(Q){return Q.getSeconds()}setHour(Q,Nt){Q.setHours(Nt)}setMinute(Q,Nt){Q.setMinutes(Nt)}setSecond(Q,Nt){Q.setSeconds(Nt)}_createDateWithOverflow(Q,Nt,Be){const Rn=new Date(Q,Nt,Be);return Q>=0&&Q<100&&Rn.setFullYear(this.getYear(Rn)-1900),Rn}_2digit(Q){return("00"+Q).slice(-2)}_stripDirectionalityCharacters(Q){return Q.replace(/[\u200e\u200f]/g,"")}_format(Q,Nt){const Be=new Date;return Be.setUTCFullYear(Nt.getFullYear(),Nt.getMonth(),Nt.getDate()),Be.setUTCHours(Nt.getHours(),Nt.getMinutes(),Nt.getSeconds(),Nt.getMilliseconds()),Q.format(Be)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(J.Ad,8),p.LFG(Tt.t4))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const Fn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},He={parse:{dateInput:Fn},display:{dateInput:Fn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Me=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:Jt,useClass:Je}],imports:[Tt.ud]}),tt})(),dn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:vi,useValue:He}],imports:[Me]}),tt})()},37340:(ot,et,v)=>{"use strict";v.d(et,{F4:()=>D,IO:()=>K,LC:()=>p,SB:()=>k,X$:()=>T,ZE:()=>Dt,ZN:()=>vt,_j:()=>d,eR:()=>P,jt:()=>t,k1:()=>Pt,l3:()=>b,oB:()=>U,pV:()=>z,ru:()=>A,vP:()=>x});class d{}class p{}const b="*";function T(zt,Vt){return{type:7,name:zt,definitions:Vt,options:{}}}function t(zt,Vt=null){return{type:4,styles:Vt,timings:zt}}function A(zt,Vt=null){return{type:3,steps:zt,options:Vt}}function x(zt,Vt=null){return{type:2,steps:zt,options:Vt}}function U(zt){return{type:6,styles:zt,offset:null}}function k(zt,Vt,it){return{type:0,name:zt,styles:Vt,options:it}}function D(zt){return{type:5,steps:zt}}function P(zt,Vt,it=null){return{type:1,expr:zt,animation:Vt,options:it}}function z(zt=null){return{type:9,options:zt}}function K(zt,Vt,it=null){return{type:11,selector:zt,animation:Vt,options:it}}function ct(zt){Promise.resolve().then(zt)}class vt{constructor(Vt=0,it=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=Vt+it}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}onStart(Vt){this._originalOnStartFns.push(Vt),this._onStartFns.push(Vt)}onDone(Vt){this._originalOnDoneFns.push(Vt),this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ct(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Vt){this._position=this.totalTime?Vt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Vt){const it="start"==Vt?this._onStartFns:this._onDoneFns;it.forEach(Tt=>Tt()),it.length=0}}class Dt{constructor(Vt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Vt;let it=0,Tt=0,At=0;const ft=this.players.length;0==ft?ct(()=>this._onFinish()):this.players.forEach(Et=>{Et.onDone(()=>{++it==ft&&this._onFinish()}),Et.onDestroy(()=>{++Tt==ft&&this._onDestroy()}),Et.onStart(()=>{++At==ft&&this._onStart()})}),this.totalTime=this.players.reduce((Et,Bt)=>Math.max(Et,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}init(){this.players.forEach(Vt=>Vt.init())}onStart(Vt){this._onStartFns.push(Vt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[])}onDone(Vt){this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Vt=>Vt.play())}pause(){this.players.forEach(Vt=>Vt.pause())}restart(){this.players.forEach(Vt=>Vt.restart())}finish(){this._onFinish(),this.players.forEach(Vt=>Vt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Vt=>Vt.destroy()),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this.players.forEach(Vt=>Vt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Vt){const it=Vt*this.totalTime;this.players.forEach(Tt=>{const At=Tt.totalTime?Math.min(1,it/Tt.totalTime):1;Tt.setPosition(At)})}getPosition(){const Vt=this.players.reduce((it,Tt)=>null===it||Tt.totalTime>it.totalTime?Tt:it,null);return null!=Vt?Vt.getPosition():0}beforeDestroy(){this.players.forEach(Vt=>{Vt.beforeDestroy&&Vt.beforeDestroy()})}triggerCallback(Vt){const it="start"==Vt?this._onStartFns:this._onDoneFns;it.forEach(Tt=>Tt()),it.length=0}}const Pt="!"},12687:(ot,et,v)=>{"use strict";v.d(et,{$s:()=>Bt,Em:()=>be,Kd:()=>mi,X6:()=>ne,ic:()=>qe,kH:()=>jn,mK:()=>un,qV:()=>we,qm:()=>We,rt:()=>en,s1:()=>ve,tE:()=>Bn,yG:()=>lt});var d=v(36895),p=v(94650),b=v(83353),T=v(8929),t=v(42654),A=v(591),x=v(21086),U=v(29521),k=v(22868),D=v(80013),P=v(92198),F=v(24850),z=v(72986),J=v(31307),K=v(75778),at=v(7625),ct=v(21281),vt=v(49643),Dt=v(62289);function it(le,Ge){return(le.getAttribute(Ge)||"").match(/\S+/g)||[]}const At="cdk-describedby-message",ft="cdk-describedby-host";let Et=0,Bt=(()=>{class le{constructor(Lt,wt){this._platform=wt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Et++,this._document=Lt,this._id=(0,p.f3M)(p.AFp)+"-"+Et++}describe(Lt,wt,Ot){if(!this._canBeDescribed(Lt,wt))return;const ye=Ft(wt,Ot);"string"!=typeof wt?(se(wt,this._id),this._messageRegistry.set(ye,{messageElement:wt,referenceCount:0})):this._messageRegistry.has(ye)||this._createMessageElement(wt,Ot),this._isElementDescribedByMessage(Lt,ye)||this._addMessageReference(Lt,ye)}removeDescription(Lt,wt,Ot){if(!wt||!this._isElementNode(Lt))return;const ye=Ft(wt,Ot);if(this._isElementDescribedByMessage(Lt,ye)&&this._removeMessageReference(Lt,ye),"string"==typeof wt){const Xe=this._messageRegistry.get(ye);Xe&&0===Xe.referenceCount&&this._deleteMessageElement(ye)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Lt=this._document.querySelectorAll(`[${ft}="${this._id}"]`);for(let wt=0;wt0!=Ot.indexOf(At));Lt.setAttribute("aria-describedby",wt.join(" "))}_addMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);(function zt(le,Ge,Lt){const wt=it(le,Ge);wt.some(Ot=>Ot.trim()==Lt.trim())||(wt.push(Lt.trim()),le.setAttribute(Ge,wt.join(" ")))})(Lt,"aria-describedby",Ot.messageElement.id),Lt.setAttribute(ft,this._id),Ot.referenceCount++}_removeMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);Ot.referenceCount--,function Vt(le,Ge,Lt){const Ot=it(le,Ge).filter(ye=>ye!=Lt.trim());Ot.length?le.setAttribute(Ge,Ot.join(" ")):le.removeAttribute(Ge)}(Lt,"aria-describedby",Ot.messageElement.id),Lt.removeAttribute(ft)}_isElementDescribedByMessage(Lt,wt){const Ot=it(Lt,"aria-describedby"),ye=this._messageRegistry.get(wt),Xe=ye&&ye.messageElement.id;return!!Xe&&-1!=Ot.indexOf(Xe)}_canBeDescribed(Lt,wt){if(!this._isElementNode(Lt))return!1;if(wt&&"object"==typeof wt)return!0;const Ot=null==wt?"":`${wt}`.trim(),ye=Lt.getAttribute("aria-label");return!(!Ot||ye&&ye.trim()===Ot)}_isElementNode(Lt){return Lt.nodeType===this._document.ELEMENT_NODE}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(d.K0),p.LFG(b.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function Ft(le,Ge){return"string"==typeof le?`${Ge||""}/${le}`:le}function se(le,Ge){le.id||(le.id=`${At}-${Ge}-${Et++}`)}class Gt{constructor(Ge){this._items=Ge,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Lt=>Lt.disabled,this._pressedLetters=[],this.tabOut=new T.xQ,this.change=new T.xQ,Ge instanceof p.n_E&&Ge.changes.subscribe(Lt=>{if(this._activeItem){const Ot=Lt.toArray().indexOf(this._activeItem);Ot>-1&&Ot!==this._activeItemIndex&&(this._activeItemIndex=Ot)}})}skipPredicate(Ge){return this._skipPredicateFn=Ge,this}withWrap(Ge=!0){return this._wrap=Ge,this}withVerticalOrientation(Ge=!0){return this._vertical=Ge,this}withHorizontalOrientation(Ge){return this._horizontal=Ge,this}withAllowedModifierKeys(Ge){return this._allowedModifierKeys=Ge,this}withTypeAhead(Ge=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(Lt=>this._pressedLetters.push(Lt)),(0,D.b)(Ge),(0,P.h)(()=>this._pressedLetters.length>0),(0,F.U)(()=>this._pressedLetters.join(""))).subscribe(Lt=>{const wt=this._getItemsArray();for(let Ot=1;Ot!Ge[ye]||this._allowedModifierKeys.indexOf(ye)>-1);switch(Lt){case U.Mf:return void this.tabOut.next();case U.JH:if(this._vertical&&Ot){this.setNextItemActive();break}return;case U.LH:if(this._vertical&&Ot){this.setPreviousItemActive();break}return;case U.SV:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case U.oh:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case U.Sd:if(this._homeAndEnd&&Ot){this.setFirstItemActive();break}return;case U.uR:if(this._homeAndEnd&&Ot){this.setLastItemActive();break}return;default:return void((Ot||(0,U.Vb)(Ge,"shiftKey"))&&(Ge.key&&1===Ge.key.length?this._letterKeyStream.next(Ge.key.toLocaleUpperCase()):(Lt>=U.A&&Lt<=U.Z||Lt>=U.xE&&Lt<=U.aO)&&this._letterKeyStream.next(String.fromCharCode(Lt))))}this._pressedLetters=[],Ge.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ge){const Lt=this._getItemsArray(),wt="number"==typeof Ge?Ge:Lt.indexOf(Ge);this._activeItem=Lt[wt]??null,this._activeItemIndex=wt}_setActiveItemByDelta(Ge){this._wrap?this._setActiveInWrapMode(Ge):this._setActiveInDefaultMode(Ge)}_setActiveInWrapMode(Ge){const Lt=this._getItemsArray();for(let wt=1;wt<=Lt.length;wt++){const Ot=(this._activeItemIndex+Ge*wt+Lt.length)%Lt.length;if(!this._skipPredicateFn(Lt[Ot]))return void this.setActiveItem(Ot)}}_setActiveInDefaultMode(Ge){this._setActiveItemByIndex(this._activeItemIndex+Ge,Ge)}_setActiveItemByIndex(Ge,Lt){const wt=this._getItemsArray();if(wt[Ge]){for(;this._skipPredicateFn(wt[Ge]);)if(!wt[Ge+=Lt])return;this.setActiveItem(Ge)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class ve extends Gt{setActiveItem(Ge){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ge),this.activeItem&&this.activeItem.setActiveStyles()}}class be extends Gt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ge){return this._origin=Ge,this}setActiveItem(Ge){super.setActiveItem(Ge),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class le{constructor(Lt){this._platform=Lt}isDisabled(Lt){return Lt.hasAttribute("disabled")}isVisible(Lt){return function Xt(le){return!!(le.offsetWidth||le.offsetHeight||"function"==typeof le.getClientRects&&le.getClientRects().length)}(Lt)&&"visible"===getComputedStyle(Lt).visibility}isTabbable(Lt){if(!this._platform.isBrowser)return!1;const wt=function $e(le){try{return le.frameElement}catch{return null}}(function Ae(le){return le.ownerDocument&&le.ownerDocument.defaultView||window}(Lt));if(wt&&(-1===De(wt)||!this.isVisible(wt)))return!1;let Ot=Lt.nodeName.toLowerCase(),ye=De(Lt);return Lt.hasAttribute("contenteditable")?-1!==ye:!("iframe"===Ot||"object"===Ot||this._platform.WEBKIT&&this._platform.IOS&&!function on(le){let Ge=le.nodeName.toLowerCase(),Lt="input"===Ge&&le.type;return"text"===Lt||"password"===Lt||"select"===Ge||"textarea"===Ge}(Lt))&&("audio"===Ot?!!Lt.hasAttribute("controls")&&-1!==ye:"video"===Ot?-1!==ye&&(null!==ye||this._platform.FIREFOX||Lt.hasAttribute("controls")):Lt.tabIndex>=0)}isFocusable(Lt,wt){return function _n(le){return!function ae(le){return function de(le){return"input"==le.nodeName.toLowerCase()}(le)&&"hidden"==le.type}(le)&&(function Te(le){let Ge=le.nodeName.toLowerCase();return"input"===Ge||"select"===Ge||"button"===Ge||"textarea"===Ge}(le)||function Kt(le){return function Wt(le){return"a"==le.nodeName.toLowerCase()}(le)&&le.hasAttribute("href")}(le)||le.hasAttribute("contenteditable")||re(le))}(Lt)&&!this.isDisabled(Lt)&&(wt?.ignoreVisibility||this.isVisible(Lt))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(b.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function re(le){if(!le.hasAttribute("tabindex")||void 0===le.tabIndex)return!1;let Ge=le.getAttribute("tabindex");return!(!Ge||isNaN(parseInt(Ge,10)))}function De(le){if(!re(le))return null;const Ge=parseInt(le.getAttribute("tabindex")||"",10);return isNaN(Ge)?-1:Ge}class gn{constructor(Ge,Lt,wt,Ot,ye=!1){this._element=Ge,this._checker=Lt,this._ngZone=wt,this._document=Ot,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ye||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ge){this._enabled=Ge,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}destroy(){const Ge=this._startAnchor,Lt=this._endAnchor;Ge&&(Ge.removeEventListener("focus",this.startAnchorListener),Ge.remove()),Lt&&(Lt.removeEventListener("focus",this.endAnchorListener),Lt.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ge){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusInitialElement(Ge)))})}focusFirstTabbableElementWhenReady(Ge){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusFirstTabbableElement(Ge)))})}focusLastTabbableElementWhenReady(Ge){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusLastTabbableElement(Ge)))})}_getRegionBoundary(Ge){const Lt=this._element.querySelectorAll(`[cdk-focus-region-${Ge}], [cdkFocusRegion${Ge}], [cdk-focus-${Ge}]`);return"start"==Ge?Lt.length?Lt[0]:this._getFirstTabbableElement(this._element):Lt.length?Lt[Lt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ge){const Lt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Lt){if(!this._checker.isFocusable(Lt)){const wt=this._getFirstTabbableElement(Lt);return wt?.focus(Ge),!!wt}return Lt.focus(Ge),!0}return this.focusFirstTabbableElement(Ge)}focusFirstTabbableElement(Ge){const Lt=this._getRegionBoundary("start");return Lt&&Lt.focus(Ge),!!Lt}focusLastTabbableElement(Ge){const Lt=this._getRegionBoundary("end");return Lt&&Lt.focus(Ge),!!Lt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ge){if(this._checker.isFocusable(Ge)&&this._checker.isTabbable(Ge))return Ge;const Lt=Ge.children;for(let wt=0;wt=0;wt--){const Ot=Lt[wt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Lt[wt]):null;if(Ot)return Ot}return null}_createAnchor(){const Ge=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ge),Ge.classList.add("cdk-visually-hidden"),Ge.classList.add("cdk-focus-trap-anchor"),Ge.setAttribute("aria-hidden","true"),Ge}_toggleAnchorTabIndex(Ge,Lt){Ge?Lt.setAttribute("tabindex","0"):Lt.removeAttribute("tabindex")}toggleAnchors(Ge){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}_executeOnStable(Ge){this._ngZone.isStable?Ge():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(Ge)}}let we=(()=>{class le{constructor(Lt,wt,Ot){this._checker=Lt,this._ngZone=wt,this._document=Ot}create(Lt,wt=!1){return new gn(Lt,this._checker,this._ngZone,this._document,wt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(qe),p.LFG(p.R0b),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),un=(()=>{class le{constructor(Lt,wt,Ot){this._elementRef=Lt,this._focusTrapFactory=wt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Lt){this.focusTrap.enabled=(0,ct.Ig)(Lt)}get autoCapture(){return this._autoCapture}set autoCapture(Lt){this._autoCapture=(0,ct.Ig)(Lt)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Lt){const wt=Lt.autoCapture;wt&&!wt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,b.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(we),p.Y36(d.K0))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),le})();function ne(le){return 0===le.buttons||0===le.offsetX&&0===le.offsetY}function lt(le){const Ge=le.touches&&le.touches[0]||le.changedTouches&&le.changedTouches[0];return!(!Ge||-1!==Ge.identifier||null!=Ge.radiusX&&1!==Ge.radiusX||null!=Ge.radiusY&&1!==Ge.radiusY)}const nt=new p.OlP("cdk-input-modality-detector-options"),kt={ignoreKeys:[U.zL,U.jx,U.b2,U.MW,U.JU]},oe=(0,b.i$)({passive:!0,capture:!0});let Ce=(()=>{class le{constructor(Lt,wt,Ot,ye){this._platform=Lt,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=Xe=>{this._options?.ignoreKeys?.some(Ne=>Ne===Xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(Xe))},this._onMousedown=Xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ne(Xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(Xe))},this._onTouchstart=Xe=>{lt(Xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(Xe))},this._options={...kt,...ye},this.modalityDetected=this._modality.pipe((0,J.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,K.x)()),Lt.isBrowser&&wt.runOutsideAngular(()=>{Ot.addEventListener("keydown",this._onKeydown,oe),Ot.addEventListener("mousedown",this._onMousedown,oe),Ot.addEventListener("touchstart",this._onTouchstart,oe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oe),document.removeEventListener("mousedown",this._onMousedown,oe),document.removeEventListener("touchstart",this._onTouchstart,oe))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(b.t4),p.LFG(p.R0b),p.LFG(d.K0),p.LFG(nt,8))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Oe=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Dn(){return null}}),Sn=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class le{constructor(Lt,wt,Ot,ye){this._ngZone=wt,this._defaultOptions=ye,this._document=Ot,this._liveElement=Lt||this._createLiveElement()}announce(Lt,...wt){const Ot=this._defaultOptions;let ye,Xe;return 1===wt.length&&"number"==typeof wt[0]?Xe=wt[0]:[ye,Xe]=wt,this.clear(),clearTimeout(this._previousTimeout),ye||(ye=Ot&&Ot.politeness?Ot.politeness:"polite"),null==Xe&&Ot&&(Xe=Ot.duration),this._liveElement.setAttribute("aria-live",ye),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ne=>this._currentResolve=Ne)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Lt,"number"==typeof Xe&&(this._previousTimeout=setTimeout(()=>this.clear(),Xe)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Lt="cdk-live-announcer-element",wt=this._document.getElementsByClassName(Lt),Ot=this._document.createElement("div");for(let ye=0;ye{class le{constructor(Lt,wt,Ot,ye,Xe){this._ngZone=Lt,this._platform=wt,this._inputModalityDetector=Ot,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 T.xQ,this._rootNodeFocusAndBlurListener=Ne=>{for(let he=(0,b.sA)(Ne);he;he=he.parentElement)"focus"===Ne.type?this._onFocus(Ne,he):this._onBlur(Ne,he)},this._document=ye,this._detectionMode=Xe?.detectionMode||0}monitor(Lt,wt=!1){const Ot=(0,ct.fI)(Lt);if(!this._platform.isBrowser||1!==Ot.nodeType)return(0,x.of)(null);const ye=(0,b.kV)(Ot)||this._getDocument(),Xe=this._elementInfo.get(Ot);if(Xe)return wt&&(Xe.checkChildren=!0),Xe.subject;const Ne={checkChildren:wt,subject:new T.xQ,rootNode:ye};return this._elementInfo.set(Ot,Ne),this._registerGlobalListeners(Ne),Ne.subject}stopMonitoring(Lt){const wt=(0,ct.fI)(Lt),Ot=this._elementInfo.get(wt);Ot&&(Ot.subject.complete(),this._setClasses(wt),this._elementInfo.delete(wt),this._removeGlobalListeners(Ot))}focusVia(Lt,wt,Ot){const ye=(0,ct.fI)(Lt);ye===this._getDocument().activeElement?this._getClosestElementsInfo(ye).forEach(([Ne,Tn])=>this._originChanged(Ne,wt,Tn)):(this._setOrigin(wt),"function"==typeof ye.focus&&ye.focus(Ot))}ngOnDestroy(){this._elementInfo.forEach((Lt,wt)=>this.stopMonitoring(wt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Lt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Lt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Lt&&this._isLastInteractionFromInputLabel(Lt)?"mouse":"program"}_shouldBeAttributedToTouch(Lt){return 1===this._detectionMode||!!Lt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Lt,wt){Lt.classList.toggle("cdk-focused",!!wt),Lt.classList.toggle("cdk-touch-focused","touch"===wt),Lt.classList.toggle("cdk-keyboard-focused","keyboard"===wt),Lt.classList.toggle("cdk-mouse-focused","mouse"===wt),Lt.classList.toggle("cdk-program-focused","program"===wt)}_setOrigin(Lt,wt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Lt,this._originFromTouchInteraction="touch"===Lt&&wt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Lt,wt){const Ot=this._elementInfo.get(wt),ye=(0,b.sA)(Lt);!Ot||!Ot.checkChildren&&wt!==ye||this._originChanged(wt,this._getFocusOrigin(ye),Ot)}_onBlur(Lt,wt){const Ot=this._elementInfo.get(wt);!Ot||Ot.checkChildren&&Lt.relatedTarget instanceof Node&&wt.contains(Lt.relatedTarget)||(this._setClasses(wt),this._emitOrigin(Ot,null))}_emitOrigin(Lt,wt){Lt.subject.observers.length&&this._ngZone.run(()=>Lt.subject.next(wt))}_registerGlobalListeners(Lt){if(!this._platform.isBrowser)return;const wt=Lt.rootNode,Ot=this._rootNodeFocusListenerCount.get(wt)||0;Ot||this._ngZone.runOutsideAngular(()=>{wt.addEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.addEventListener("blur",this._rootNodeFocusAndBlurListener,fi)}),this._rootNodeFocusListenerCount.set(wt,Ot+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,at.R)(this._stopInputModalityDetector)).subscribe(ye=>{this._setOrigin(ye,!0)}))}_removeGlobalListeners(Lt){const wt=Lt.rootNode;if(this._rootNodeFocusListenerCount.has(wt)){const Ot=this._rootNodeFocusListenerCount.get(wt);Ot>1?this._rootNodeFocusListenerCount.set(wt,Ot-1):(wt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fi),this._rootNodeFocusListenerCount.delete(wt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Lt,wt,Ot){this._setClasses(Lt,wt),this._emitOrigin(Ot,wt),this._lastFocusOrigin=wt}_getClosestElementsInfo(Lt){const wt=[];return this._elementInfo.forEach((Ot,ye)=>{(ye===Lt||Ot.checkChildren&&ye.contains(Lt))&&wt.push([ye,Ot])}),wt}_isLastInteractionFromInputLabel(Lt){const{_mostRecentTarget:wt,mostRecentModality:Ot}=this._inputModalityDetector;if("mouse"!==Ot||!wt||wt===Lt||"INPUT"!==Lt.nodeName&&"TEXTAREA"!==Lt.nodeName||Lt.disabled)return!1;const ye=Lt.labels;if(ye)for(let Xe=0;Xe{class le{constructor(Lt,wt){this._elementRef=Lt,this._focusMonitor=wt,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Lt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Lt,1===Lt.nodeType&&Lt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(wt=>{this._focusOrigin=wt,this.cdkFocusChange.emit(wt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(Bn))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),le})();const Ye="cdk-high-contrast-black-on-white",fn="cdk-high-contrast-white-on-black",ze="cdk-high-contrast-active";let We=(()=>{class le{constructor(Lt,wt){this._platform=Lt,this._document=wt,this._breakpointSubscription=(0,p.f3M)(Dt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Lt=this._document.createElement("div");Lt.style.backgroundColor="rgb(1,2,3)",Lt.style.position="absolute",this._document.body.appendChild(Lt);const wt=this._document.defaultView||window,Ot=wt&&wt.getComputedStyle?wt.getComputedStyle(Lt):null,ye=(Ot&&Ot.backgroundColor||"").replace(/ /g,"");switch(Lt.remove(),ye){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Lt=this._document.body.classList;Lt.remove(ze,Ye,fn),this._hasCheckedHighContrastMode=!0;const wt=this.getHighContrastMode();1===wt?Lt.add(ze,Ye):2===wt&&Lt.add(ze,fn)}}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(b.t4),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),en=(()=>{class le{constructor(Lt){Lt._applyBodyHighContrastModeCssClasses()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(We))},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({imports:[vt.Q8]}),le})()},40445:(ot,et,v)=>{"use strict";v.d(et,{Is:()=>x,vT:()=>k});var d=v(94650),p=v(36895);const b=new d.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,d.f3M)(p.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class D{constructor(F){if(this.value="ltr",this.change=new d.vpe,F){const J=F.documentElement?F.documentElement.dir:null;this.value=function A(D){const P=D?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((F.body?F.body.dir:null)||J||"ltr")}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(F){return new(F||D)(d.LFG(b,8))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),k=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({}),D})()},64425:(ot,et,v)=>{"use strict";v.d(et,{TU:()=>T});var d=v(36895),p=v(94650);class b{constructor(k,D){this._document=D;const P=this._textarea=this._document.createElement("textarea"),F=P.style;F.position="fixed",F.top=F.opacity="0",F.left="-999em",P.setAttribute("aria-hidden","true"),P.value=k,P.readOnly=!0,this._document.body.appendChild(P)}copy(){const k=this._textarea;let D=!1;try{if(k){const P=this._document.activeElement;k.select(),k.setSelectionRange(0,k.value.length),D=this._document.execCommand("copy"),P&&P.focus()}}catch{}return D}destroy(){const k=this._textarea;k&&(k.remove(),this._textarea=void 0)}}let T=(()=>{class U{constructor(D){this._document=D}copy(D){const P=this.beginCopy(D),F=P.copy();return P.destroy(),F}beginCopy(D){return new b(D,this._document)}}return U.\u0275fac=function(D){return new(D||U)(p.LFG(d.K0))},U.\u0275prov=p.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},21281:(ot,et,v)=>{"use strict";v.d(et,{Eq:()=>t,HM:()=>A,Ig:()=>p,du:()=>U,fI:()=>x,su:()=>b,t6:()=>T});var d=v(94650);function p(k){return null!=k&&"false"!=`${k}`}function b(k,D=0){return T(k)?Number(k):D}function T(k){return!isNaN(parseFloat(k))&&!isNaN(Number(k))}function t(k){return Array.isArray(k)?k:[k]}function A(k){return null==k?"":"string"==typeof k?k:`${k}px`}function x(k){return k instanceof d.SBq?k.nativeElement:k}function U(k,D=/\s+/){const P=[];if(null!=k){const F=Array.isArray(k)?k:`${k}`.split(D);for(const z of F){const J=`${z}`.trim();J&&P.push(J)}}return P}},95017:(ot,et,v)=>{"use strict";v.d(et,{A8:()=>P,Ov:()=>k,Z9:()=>t,eX:()=>U,k:()=>F,o2:()=>T,yy:()=>x});var d=v(71762),p=v(8929),b=v(94650);class T{}function t(z){return z&&"function"==typeof z.connect&&!(z instanceof d.c)}class x{applyChanges(J,K,at,ct,vt){J.forEachOperation((Dt,Pt,zt)=>{let Vt,it;if(null==Dt.previousIndex){const Tt=at(Dt,Pt,zt);Vt=K.createEmbeddedView(Tt.templateRef,Tt.context,Tt.index),it=1}else null==zt?(K.remove(Pt),it=3):(Vt=K.get(Pt),K.move(Vt,zt),it=2);vt&&vt({context:Vt?.context,operation:it,record:Dt})})}detach(){}}class U{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(J,K,at,ct,vt){J.forEachOperation((Dt,Pt,zt)=>{let Vt,it;null==Dt.previousIndex?(Vt=this._insertView(()=>at(Dt,Pt,zt),zt,K,ct(Dt)),it=Vt?1:0):null==zt?(this._detachAndCacheView(Pt,K),it=3):(Vt=this._moveView(Pt,zt,K,ct(Dt)),it=2),vt&&vt({context:Vt?.context,operation:it,record:Dt})})}detach(){for(const J of this._viewCache)J.destroy();this._viewCache=[]}_insertView(J,K,at,ct){const vt=this._insertViewFromCache(K,at);if(vt)return void(vt.context.$implicit=ct);const Dt=J();return at.createEmbeddedView(Dt.templateRef,Dt.context,Dt.index)}_detachAndCacheView(J,K){const at=K.detach(J);this._maybeCacheView(at,K)}_moveView(J,K,at,ct){const vt=at.get(J);return at.move(vt,K),vt.context.$implicit=ct,vt}_maybeCacheView(J,K){if(this._viewCache.lengththis._markSelected(vt)):this._markSelected(K[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...J){this._verifyValueAssignment(J),J.forEach(at=>this._markSelected(at));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}deselect(...J){this._verifyValueAssignment(J),J.forEach(at=>this._unmarkSelected(at));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}setSelection(...J){this._verifyValueAssignment(J);const K=this.selected,at=new Set(J);J.forEach(vt=>this._markSelected(vt)),K.filter(vt=>!at.has(vt)).forEach(vt=>this._unmarkSelected(vt));const ct=this._hasQueuedChanges();return this._emitChangeEvent(),ct}toggle(J){return this.isSelected(J)?this.deselect(J):this.select(J)}clear(J=!0){this._unmarkAll();const K=this._hasQueuedChanges();return J&&this._emitChangeEvent(),K}isSelected(J){if(this.compareWith){for(const K of this._selection)if(this.compareWith(K,J))return!0;return!1}return this._selection.has(J)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(J){this._multiple&&this.selected&&this._selected.sort(J)}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(J){this.isSelected(J)||(this._multiple||this._unmarkAll(),this.isSelected(J)||this._selection.add(J),this._emitChanges&&this._selectedToEmit.push(J))}_unmarkSelected(J){this.isSelected(J)&&(this._selection.delete(J),this._emitChanges&&this._deselectedToEmit.push(J))}_unmarkAll(){this.isEmpty()||this._selection.forEach(J=>this._unmarkSelected(J))}_verifyValueAssignment(J){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let P=(()=>{class z{constructor(){this._listeners=[]}notify(K,at){for(let ct of this._listeners)ct(K,at)}listen(K){return this._listeners.push(K),()=>{this._listeners=this._listeners.filter(at=>K!==at)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(K){return new(K||z)},z.\u0275prov=b.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const F=new b.OlP("_ViewRepeater")},73555:(ot,et,v)=>{"use strict";v.d(et,{Wj:()=>fi,Zt:()=>le,_t:()=>Ge,bA:()=>Ae});var d=v(94650),p=v(36895),b=v(67376),T=v(83353),t=v(21281),A=v(12687),x=v(8929),U=v(42654),k=v(61715),D=v(90352),P=v(56498),F=v(36787),z=v(7625),J=v(1059),K=v(24850),at=v(72986),ct=v(22868),vt=v(87545),Dt=v(40445);function Pt(Lt,wt,Ot){for(let ye in wt)if(wt.hasOwnProperty(ye)){const Xe=wt[ye];Xe?Lt.setProperty(ye,Xe,Ot?.has(ye)?"important":""):Lt.removeProperty(ye)}return Lt}function zt(Lt,wt){const Ot=wt?"":"none";Pt(Lt.style,{"touch-action":wt?"":"none","-webkit-user-drag":wt?"":"none","-webkit-tap-highlight-color":wt?"":"transparent","user-select":Ot,"-ms-user-select":Ot,"-webkit-user-select":Ot,"-moz-user-select":Ot})}function Vt(Lt,wt,Ot){Pt(Lt.style,{position:wt?"":"fixed",top:wt?"":"0",opacity:wt?"":"0",left:wt?"":"-999em"},Ot)}function it(Lt,wt){return wt&&"none"!=wt?Lt+" "+wt:Lt}function Tt(Lt){const wt=Lt.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Lt)*wt}function ft(Lt,wt){return Lt.getPropertyValue(wt).split(",").map(ye=>ye.trim())}function Et(Lt){const wt=Lt.getBoundingClientRect();return{top:wt.top,right:wt.right,bottom:wt.bottom,left:wt.left,width:wt.width,height:wt.height,x:wt.x,y:wt.y}}function Bt(Lt,wt,Ot){const{top:ye,bottom:Xe,left:Ne,right:Tn}=Lt;return Ot>=ye&&Ot<=Xe&&wt>=Ne&&wt<=Tn}function Ft(Lt,wt,Ot){Lt.top+=wt,Lt.bottom=Lt.top+Lt.height,Lt.left+=Ot,Lt.right=Lt.left+Lt.width}function se(Lt,wt,Ot,ye){const{top:Xe,right:Ne,bottom:Tn,left:he,width:Re,height:En}=Lt,gi=Re*wt,go=En*wt;return ye>Xe-go&&yehe-gi&&Ot{this.positions.set(Ot,{scrollPosition:{top:Ot.scrollTop,left:Ot.scrollLeft},clientRect:Et(Ot)})})}handleScroll(wt){const Ot=(0,T.sA)(wt),ye=this.positions.get(Ot);if(!ye)return null;const Xe=ye.scrollPosition;let Ne,Tn;if(Ot===this._document){const En=this.getViewportScrollPosition();Ne=En.top,Tn=En.left}else Ne=Ot.scrollTop,Tn=Ot.scrollLeft;const he=Xe.top-Ne,Re=Xe.left-Tn;return this.positions.forEach((En,gi)=>{En.clientRect&&Ot!==gi&&Ot.contains(gi)&&Ft(En.clientRect,he,Re)}),Xe.top=Ne,Xe.left=Tn,{top:he,left:Re}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ve(Lt){const wt=Lt.cloneNode(!0),Ot=wt.querySelectorAll("[id]"),ye=Lt.nodeName.toLowerCase();wt.removeAttribute("id");for(let Xe=0;Xe{if(this.beforeStarted.next(),this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&this._initializeDragSequence(Re,he)}else this.disabled||this._initializeDragSequence(this._rootElement,he)},this._pointerMove=he=>{const Re=this._getPointerPositionOnPage(he);if(!this._hasStartedDragging){if(Math.abs(Re.x-this._pickupPositionOnPage.x)+Math.abs(Re.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const mn=Date.now()>=this._dragStartTime+this._getDragStartDelay(he),An=this._dropContainer;if(!mn)return void this._endDragSequence(he);(!An||!An.isDragging()&&!An.isReceiving())&&(he.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(he)))}return}he.preventDefault();const En=this._getConstrainedPointerPosition(Re);if(this._hasMoved=!0,this._lastKnownPointerPosition=Re,this._updatePointerDirectionDelta(En),this._dropContainer)this._updateActiveDropContainer(En,Re);else{const gi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,go=this._activeTransform;go.x=En.x-gi.x+this._passiveTransform.x,go.y=En.y-gi.y+this._passiveTransform.y,this._applyRootElementTransform(go.x,go.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:En,event:he,distance:this._getDragDistance(En),delta:this._pointerDirectionDelta})})},this._pointerUp=he=>{this._endDragSequence(he)},this._nativeDragStart=he=>{if(this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&he.preventDefault()}else this.disabled||he.preventDefault()},this.withRootElement(wt).withParent(Ot.parentDragRef||null),this._parentPositions=new Gt(ye),Tn.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(wt){const Ot=(0,t.Ig)(wt);Ot!==this._disabled&&(this._disabled=Ot,this._toggleNativeDragInteractions(),this._handles.forEach(ye=>zt(ye,Ot)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(wt){this._handles=wt.map(ye=>(0,t.fI)(ye)),this._handles.forEach(ye=>zt(ye,this.disabled)),this._toggleNativeDragInteractions();const Ot=new Set;return this._disabledHandles.forEach(ye=>{this._handles.indexOf(ye)>-1&&Ot.add(ye)}),this._disabledHandles=Ot,this}withPreviewTemplate(wt){return this._previewTemplate=wt,this}withPlaceholderTemplate(wt){return this._placeholderTemplate=wt,this}withRootElement(wt){const Ot=(0,t.fI)(wt);return Ot!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Ot.addEventListener("mousedown",this._pointerDown,Te),Ot.addEventListener("touchstart",this._pointerDown,Xt),Ot.addEventListener("dragstart",this._nativeDragStart,Te)}),this._initialTransform=void 0,this._rootElement=Ot),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(wt){return this._boundaryElement=wt?(0,t.fI)(wt):null,this._resizeSubscription.unsubscribe(),wt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(wt){return this._parentDragRef=wt,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(wt){!this._disabledHandles.has(wt)&&this._handles.indexOf(wt)>-1&&(this._disabledHandles.add(wt),zt(wt,!0))}enableHandle(wt){this._disabledHandles.has(wt)&&(this._disabledHandles.delete(wt),zt(wt,this.disabled))}withDirection(wt){return this._direction=wt,this}_withDropContainer(wt){this._dropContainer=wt}getFreeDragPosition(){const wt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:wt.x,y:wt.y}}setFreeDragPosition(wt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=wt.x,this._passiveTransform.y=wt.y,this._dropContainer||this._applyRootElementTransform(wt.x,wt.y),this}withPreviewContainer(wt){return this._previewContainer=wt,this}_sortFromLastPointerPosition(){const wt=this._lastKnownPointerPosition;wt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(wt),wt)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(wt){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:wt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(wt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Ot=this._getPointerPositionOnPage(wt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Ot),dropPoint:Ot,event:wt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(wt){De(wt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Ot=this._dropContainer;if(Ot){const ye=this._rootElement,Xe=ye.parentNode,Ne=this._placeholder=this._createPlaceholderElement(),Tn=this._anchor=this._anchor||this._document.createComment(""),he=this._getShadowRoot();Xe.insertBefore(Tn,ye),this._initialTransform=ye.style.transform||"",this._preview=this._createPreviewElement(),Vt(ye,!1,Kt),this._document.body.appendChild(Xe.replaceChild(Ne,ye)),this._getPreviewInsertionPoint(Xe,he).appendChild(this._preview),this.started.next({source:this,event:wt}),Ot.start(),this._initialContainer=Ot,this._initialIndex=Ot.getItemIndex(this)}else this.started.next({source:this,event:wt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Ot?Ot.getScrollableParents():[])}_initializeDragSequence(wt,Ot){this._parentDragRef&&Ot.stopPropagation();const ye=this.isDragging(),Xe=De(Ot),Ne=!Xe&&0!==Ot.button,Tn=this._rootElement,he=(0,T.sA)(Ot),Re=!Xe&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),En=Xe?(0,A.yG)(Ot):(0,A.X6)(Ot);if(he&&he.draggable&&"mousedown"===Ot.type&&Ot.preventDefault(),ye||Ne||Re||En)return;if(this._handles.length){const _o=Tn.style;this._rootElementTapHighlight=_o.webkitTapHighlightColor||"",_o.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(_o=>this._updateOnScroll(_o)),this._boundaryElement&&(this._boundaryRect=Et(this._boundaryElement));const gi=this._previewTemplate;this._pickupPositionInElement=gi&&gi.template&&!gi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,wt,Ot);const go=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Ot);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:go.x,y:go.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Ot)}_cleanupDragArtifacts(wt){Vt(this._rootElement,!0,Kt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Ot=this._dropContainer,ye=Ot.getItemIndex(this),Xe=this._getPointerPositionOnPage(wt),Ne=this._getDragDistance(Xe),Tn=Ot._isOverContainer(Xe.x,Xe.y);this.ended.next({source:this,distance:Ne,dropPoint:Xe,event:wt}),this.dropped.next({item:this,currentIndex:ye,previousIndex:this._initialIndex,container:Ot,previousContainer:this._initialContainer,isPointerOverContainer:Tn,distance:Ne,dropPoint:Xe,event:wt}),Ot.drop(this,ye,this._initialIndex,this._initialContainer,Tn,Ne,Xe,wt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:wt,y:Ot},{x:ye,y:Xe}){let Ne=this._initialContainer._getSiblingContainerFromPosition(this,wt,Ot);!Ne&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(wt,Ot)&&(Ne=this._initialContainer),Ne&&Ne!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Ne,this._dropContainer.enter(this,wt,Ot,Ne===this._initialContainer&&Ne.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Ne,currentIndex:Ne.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ye,Xe),this._dropContainer._sortItem(this,wt,Ot,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(wt,Ot):this._applyPreviewTransform(wt-this._pickupPositionInElement.x,Ot-this._pickupPositionInElement.y))}_createPreviewElement(){const wt=this._previewTemplate,Ot=this.previewClass,ye=wt?wt.template:null;let Xe;if(ye&&wt){const Ne=wt.matchSize?this._initialClientRect:null,Tn=wt.viewContainer.createEmbeddedView(ye,wt.context);Tn.detectChanges(),Xe=on(Tn,this._document),this._previewRef=Tn,wt.matchSize?_n(Xe,Ne):Xe.style.transform=Wt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Xe=ve(this._rootElement),_n(Xe,this._initialClientRect),this._initialTransform&&(Xe.style.transform=this._initialTransform);return Pt(Xe.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Kt),zt(Xe,!1),Xe.classList.add("cdk-drag-preview"),Xe.setAttribute("dir",this._direction),Ot&&(Array.isArray(Ot)?Ot.forEach(Ne=>Xe.classList.add(Ne)):Xe.classList.add(Ot)),Xe}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const wt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(wt.left,wt.top);const Ot=function At(Lt){const wt=getComputedStyle(Lt),Ot=ft(wt,"transition-property"),ye=Ot.find(he=>"transform"===he||"all"===he);if(!ye)return 0;const Xe=Ot.indexOf(ye),Ne=ft(wt,"transition-duration"),Tn=ft(wt,"transition-delay");return Tt(Ne[Xe])+Tt(Tn[Xe])}(this._preview);return 0===Ot?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ye=>{const Xe=Tn=>{(!Tn||(0,T.sA)(Tn)===this._preview&&"transform"===Tn.propertyName)&&(this._preview?.removeEventListener("transitionend",Xe),ye(),clearTimeout(Ne))},Ne=setTimeout(Xe,1.5*Ot);this._preview.addEventListener("transitionend",Xe)}))}_createPlaceholderElement(){const wt=this._placeholderTemplate,Ot=wt?wt.template:null;let ye;return Ot?(this._placeholderRef=wt.viewContainer.createEmbeddedView(Ot,wt.context),this._placeholderRef.detectChanges(),ye=on(this._placeholderRef,this._document)):ye=ve(this._rootElement),ye.style.pointerEvents="none",ye.classList.add("cdk-drag-placeholder"),ye}_getPointerPositionInElement(wt,Ot,ye){const Xe=Ot===this._rootElement?null:Ot,Ne=Xe?Xe.getBoundingClientRect():wt,Tn=De(ye)?ye.targetTouches[0]:ye,he=this._getViewportScrollPosition();return{x:Ne.left-wt.left+(Tn.pageX-Ne.left-he.left),y:Ne.top-wt.top+(Tn.pageY-Ne.top-he.top)}}_getPointerPositionOnPage(wt){const Ot=this._getViewportScrollPosition(),ye=De(wt)?wt.touches[0]||wt.changedTouches[0]||{pageX:0,pageY:0}:wt,Xe=ye.pageX-Ot.left,Ne=ye.pageY-Ot.top;if(this._ownerSVGElement){const Tn=this._ownerSVGElement.getScreenCTM();if(Tn){const he=this._ownerSVGElement.createSVGPoint();return he.x=Xe,he.y=Ne,he.matrixTransform(Tn.inverse())}}return{x:Xe,y:Ne}}_getConstrainedPointerPosition(wt){const Ot=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ye,y:Xe}=this.constrainPosition?this.constrainPosition(wt,this,this._initialClientRect,this._pickupPositionInElement):wt;if("x"===this.lockAxis||"x"===Ot?Xe=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Ot)&&(ye=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Ne,y:Tn}=this._pickupPositionInElement,he=this._boundaryRect,{width:Re,height:En}=this._getPreviewRect(),gi=he.top+Tn,go=he.bottom-(En-Tn);ye=re(ye,he.left+Ne,he.right-(Re-Ne)),Xe=re(Xe,gi,go)}return{x:ye,y:Xe}}_updatePointerDirectionDelta(wt){const{x:Ot,y:ye}=wt,Xe=this._pointerDirectionDelta,Ne=this._pointerPositionAtLastDirectionChange,Tn=Math.abs(Ot-Ne.x),he=Math.abs(ye-Ne.y);return Tn>this._config.pointerDirectionChangeThreshold&&(Xe.x=Ot>Ne.x?1:-1,Ne.x=Ot),he>this._config.pointerDirectionChangeThreshold&&(Xe.y=ye>Ne.y?1:-1,Ne.y=ye),Xe}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const wt=this._handles.length>0||!this.isDragging();wt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=wt,zt(this._rootElement,wt))}_removeRootElementListeners(wt){wt.removeEventListener("mousedown",this._pointerDown,Te),wt.removeEventListener("touchstart",this._pointerDown,Xt),wt.removeEventListener("dragstart",this._nativeDragStart,Te)}_applyRootElementTransform(wt,Ot){const ye=Wt(wt,Ot),Xe=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Xe.transform&&"none"!=Xe.transform?Xe.transform:""),Xe.transform=it(ye,this._initialTransform)}_applyPreviewTransform(wt,Ot){const ye=this._previewTemplate?.template?void 0:this._initialTransform,Xe=Wt(wt,Ot);this._preview.style.transform=it(Xe,ye)}_getDragDistance(wt){const Ot=this._pickupPositionOnPage;return Ot?{x:wt.x-Ot.x,y:wt.y-Ot.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:wt,y:Ot}=this._passiveTransform;if(0===wt&&0===Ot||this.isDragging()||!this._boundaryElement)return;const ye=this._rootElement.getBoundingClientRect(),Xe=this._boundaryElement.getBoundingClientRect();if(0===Xe.width&&0===Xe.height||0===ye.width&&0===ye.height)return;const Ne=Xe.left-ye.left,Tn=ye.right-Xe.right,he=Xe.top-ye.top,Re=ye.bottom-Xe.bottom;Xe.width>ye.width?(Ne>0&&(wt+=Ne),Tn>0&&(wt-=Tn)):wt=0,Xe.height>ye.height?(he>0&&(Ot+=he),Re>0&&(Ot-=Re)):Ot=0,(wt!==this._passiveTransform.x||Ot!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Ot,x:wt})}_getDragStartDelay(wt){const Ot=this.dragStartDelay;return"number"==typeof Ot?Ot:De(wt)?Ot.touch:Ot?Ot.mouse:0}_updateOnScroll(wt){const Ot=this._parentPositions.handleScroll(wt);if(Ot){const ye=(0,T.sA)(wt);this._boundaryRect&&ye!==this._boundaryElement&&ye.contains(this._boundaryElement)&&Ft(this._boundaryRect,Ot.top,Ot.left),this._pickupPositionOnPage.x+=Ot.left,this._pickupPositionOnPage.y+=Ot.top,this._dropContainer||(this._activeTransform.x-=Ot.left,this._activeTransform.y-=Ot.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,T.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(wt,Ot){const ye=this._previewContainer||"global";if("parent"===ye)return wt;if("global"===ye){const Xe=this._document;return Ot||Xe.fullscreenElement||Xe.webkitFullscreenElement||Xe.mozFullScreenElement||Xe.msFullscreenElement||Xe.body}return(0,t.fI)(ye)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(wt){return this._handles.find(Ot=>wt.target&&(wt.target===Ot||Ot.contains(wt.target)))}}function Wt(Lt,wt){return`translate3d(${Math.round(Lt)}px, ${Math.round(wt)}px, 0)`}function re(Lt,wt,Ot){return Math.max(wt,Math.min(Ot,Lt))}function De(Lt){return"t"===Lt.type[0]}function on(Lt,wt){const Ot=Lt.rootNodes;if(1===Ot.length&&Ot[0].nodeType===wt.ELEMENT_NODE)return Ot[0];const ye=wt.createElement("div");return Ot.forEach(Xe=>ye.appendChild(Xe)),ye}function _n(Lt,wt){Lt.style.width=`${wt.width}px`,Lt.style.height=`${wt.height}px`,Lt.style.transform=Wt(wt.left,wt.top)}function Ae(Lt,wt,Ot){const ye=un(wt,Lt.length-1),Xe=un(Ot,Lt.length-1);if(ye===Xe)return;const Ne=Lt[ye],Tn=Xe0)return null;const he="horizontal"===this.orientation,Re=Ne.findIndex(ei=>ei.drag===wt),En=Ne[Tn],go=En.clientRect,_o=Re>Tn?1:-1,mn=this._getItemOffsetPx(Ne[Re].clientRect,go,_o),An=this._getSiblingOffsetPx(Re,Ne,_o),sn=Ne.slice();return Ae(Ne,Re,Tn),Ne.forEach((ei,Zi)=>{if(sn[Zi]===ei)return;const bo=ei.drag===wt,No=bo?mn:An,ua=bo?wt.getPlaceholderElement():ei.drag.getRootElement();ei.offset+=No,he?(ua.style.transform=it(`translate3d(${Math.round(ei.offset)}px, 0, 0)`,ei.initialTransform),Ft(ei.clientRect,0,No)):(ua.style.transform=it(`translate3d(0, ${Math.round(ei.offset)}px, 0)`,ei.initialTransform),Ft(ei.clientRect,No,0))}),this._previousSwap.overlaps=Bt(go,Ot,ye),this._previousSwap.drag=En.drag,this._previousSwap.delta=he?Xe.x:Xe.y,{previousIndex:Re,currentIndex:Tn}}enter(wt,Ot,ye,Xe){const Ne=null==Xe||Xe<0?this._getItemIndexFromPointerPosition(wt,Ot,ye):Xe,Tn=this._activeDraggables,he=Tn.indexOf(wt),Re=wt.getPlaceholderElement();let En=Tn[Ne];if(En===wt&&(En=Tn[Ne+1]),!En&&(null==Ne||-1===Ne||Ne-1&&Tn.splice(he,1),En&&!this._dragDropRegistry.isDragging(En)){const gi=En.getRootElement();gi.parentElement.insertBefore(Re,gi),Tn.splice(Ne,0,wt)}else(0,t.fI)(this._element).appendChild(Re),Tn.push(wt);Re.style.transform="",this._cacheItemPositions()}withItems(wt){this._activeDraggables=wt.slice(),this._cacheItemPositions()}withSortPredicate(wt){this._sortPredicate=wt}reset(){this._activeDraggables.forEach(wt=>{const Ot=wt.getRootElement();if(Ot){const ye=this._itemPositions.find(Xe=>Xe.drag===wt)?.initialTransform;Ot.style.transform=ye||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(wt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ye=>ye.drag===wt)}updateOnScroll(wt,Ot){this._itemPositions.forEach(({clientRect:ye})=>{Ft(ye,wt,Ot)}),this._itemPositions.forEach(({drag:ye})=>{this._dragDropRegistry.isDragging(ye)&&ye._sortFromLastPointerPosition()})}_cacheItemPositions(){const wt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Ot=>{const ye=Ot.getVisibleElement();return{drag:Ot,offset:0,initialTransform:ye.style.transform||"",clientRect:Et(ye)}}).sort((Ot,ye)=>wt?Ot.clientRect.left-ye.clientRect.left:Ot.clientRect.top-ye.clientRect.top)}_getItemOffsetPx(wt,Ot,ye){const Xe="horizontal"===this.orientation;let Ne=Xe?Ot.left-wt.left:Ot.top-wt.top;return-1===ye&&(Ne+=Xe?Ot.width-wt.width:Ot.height-wt.height),Ne}_getSiblingOffsetPx(wt,Ot,ye){const Xe="horizontal"===this.orientation,Ne=Ot[wt].clientRect,Tn=Ot[wt+-1*ye];let he=Ne[Xe?"width":"height"]*ye;if(Tn){const Re=Xe?"left":"top",En=Xe?"right":"bottom";-1===ye?he-=Tn.clientRect[Re]-Ne[En]:he+=Ne[Re]-Tn.clientRect[En]}return he}_shouldEnterAsFirstChild(wt,Ot){if(!this._activeDraggables.length)return!1;const ye=this._itemPositions,Xe="horizontal"===this.orientation;if(ye[0].drag!==this._activeDraggables[0]){const Tn=ye[ye.length-1].clientRect;return Xe?wt>=Tn.right:Ot>=Tn.bottom}{const Tn=ye[0].clientRect;return Xe?wt<=Tn.left:Ot<=Tn.top}}_getItemIndexFromPointerPosition(wt,Ot,ye,Xe){const Ne="horizontal"===this.orientation,Tn=this._itemPositions.findIndex(({drag:he,clientRect:Re})=>{if(he===wt)return!1;if(Xe){const En=Ne?Xe.x:Xe.y;if(he===this._previousSwap.drag&&this._previousSwap.overlaps&&En===this._previousSwap.delta)return!1}return Ne?Ot>=Math.floor(Re.left)&&Ot=Math.floor(Re.top)&&ye!0,this.sortPredicate=()=>!0,this.beforeStarted=new x.xQ,this.entered=new x.xQ,this.exited=new x.xQ,this.dropped=new x.xQ,this.sorted=new x.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,D.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Tn=this._scrollNode,he=this.autoScrollStep;1===this._verticalScrollDirection?Tn.scrollBy(0,-he):2===this._verticalScrollDirection&&Tn.scrollBy(0,he),1===this._horizontalScrollDirection?Tn.scrollBy(-he,0):2===this._horizontalScrollDirection&&Tn.scrollBy(he,0)})},this.element=(0,t.fI)(wt),this._document=ye,this.withScrollableParents([this.element]),Ot.registerDropContainer(this),this._parentPositions=new Gt(ye),this._sortStrategy=new Un(this.element,Ot),this._sortStrategy.withSortPredicate((Tn,he)=>this.sortPredicate(Tn,he,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(wt,Ot,ye,Xe){this._draggingStarted(),null==Xe&&this.sortingDisabled&&(Xe=this._draggables.indexOf(wt)),this._sortStrategy.enter(wt,Ot,ye,Xe),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:wt,container:this,currentIndex:this.getItemIndex(wt)})}exit(wt){this._reset(),this.exited.next({item:wt,container:this})}drop(wt,Ot,ye,Xe,Ne,Tn,he,Re={}){this._reset(),this.dropped.next({item:wt,currentIndex:Ot,previousIndex:ye,container:this,previousContainer:Xe,isPointerOverContainer:Ne,distance:Tn,dropPoint:he,event:Re})}withItems(wt){const Ot=this._draggables;return this._draggables=wt,wt.forEach(ye=>ye._withDropContainer(this)),this.isDragging()&&(Ot.filter(Xe=>Xe.isDragging()).every(Xe=>-1===wt.indexOf(Xe))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(wt){return this._sortStrategy.direction=wt,this}connectedTo(wt){return this._siblings=wt.slice(),this}withOrientation(wt){return this._sortStrategy.orientation=wt,this}withScrollableParents(wt){const Ot=(0,t.fI)(this.element);return this._scrollableElements=-1===wt.indexOf(Ot)?[Ot,...wt]:wt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(wt){return this._isDragging?this._sortStrategy.getItemIndex(wt):this._draggables.indexOf(wt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(wt,Ot,ye,Xe){if(this.sortingDisabled||!this._clientRect||!se(this._clientRect,.05,Ot,ye))return;const Ne=this._sortStrategy.sort(wt,Ot,ye,Xe);Ne&&this.sorted.next({previousIndex:Ne.previousIndex,currentIndex:Ne.currentIndex,container:this,item:wt})}_startScrollingIfNecessary(wt,Ot){if(this.autoScrollDisabled)return;let ye,Xe=0,Ne=0;if(this._parentPositions.positions.forEach((Tn,he)=>{he===this._document||!Tn.clientRect||ye||se(Tn.clientRect,.05,wt,Ot)&&([Xe,Ne]=function lt(Lt,wt,Ot,ye){const Xe=Ke(wt,ye),Ne=ne(wt,Ot);let Tn=0,he=0;if(Xe){const Re=Lt.scrollTop;1===Xe?Re>0&&(Tn=1):Lt.scrollHeight-Re>Lt.clientHeight&&(Tn=2)}if(Ne){const Re=Lt.scrollLeft;1===Ne?Re>0&&(he=1):Lt.scrollWidth-Re>Lt.clientWidth&&(he=2)}return[Tn,he]}(he,Tn.clientRect,wt,Ot),(Xe||Ne)&&(ye=he))}),!Xe&&!Ne){const{width:Tn,height:he}=this._viewportRuler.getViewportSize(),Re={width:Tn,height:he,top:0,right:Tn,bottom:he,left:0};Xe=Ke(Re,Ot),Ne=ne(Re,wt),ye=window}ye&&(Xe!==this._verticalScrollDirection||Ne!==this._horizontalScrollDirection||ye!==this._scrollNode)&&(this._verticalScrollDirection=Xe,this._horizontalScrollDirection=Ne,this._scrollNode=ye,(Xe||Ne)&&ye?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const wt=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=wt.msScrollSnapType||wt.scrollSnapType||"",wt.scrollSnapType=wt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const wt=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(wt).clientRect}_reset(){this._isDragging=!1;const wt=(0,t.fI)(this.element).style;wt.scrollSnapType=wt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Ot=>Ot._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(wt,Ot){return null!=this._clientRect&&Bt(this._clientRect,wt,Ot)}_getSiblingContainerFromPosition(wt,Ot,ye){return this._siblings.find(Xe=>Xe._canReceive(wt,Ot,ye))}_canReceive(wt,Ot,ye){if(!this._clientRect||!Bt(this._clientRect,Ot,ye)||!this.enterPredicate(wt,this))return!1;const Xe=this._getShadowRoot().elementFromPoint(Ot,ye);if(!Xe)return!1;const Ne=(0,t.fI)(this.element);return Xe===Ne||Ne.contains(Xe)}_startReceiving(wt,Ot){const ye=this._activeSiblings;!ye.has(wt)&&Ot.every(Xe=>this.enterPredicate(Xe,this)||this._draggables.indexOf(Xe)>-1)&&(ye.add(wt),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(wt){this._activeSiblings.delete(wt),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(wt=>{if(this.isDragging()){const Ot=this._parentPositions.handleScroll(wt);Ot&&this._sortStrategy.updateOnScroll(Ot.top,Ot.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const wt=(0,T.kV)((0,t.fI)(this.element));this._cachedShadowRoot=wt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const wt=this._sortStrategy.getActiveItemsSnapshot().filter(Ot=>Ot.isDragging());this._siblings.forEach(Ot=>Ot._startReceiving(this,wt))}}function Ke(Lt,wt){const{top:Ot,bottom:ye,height:Xe}=Lt,Ne=.05*Xe;return wt>=Ot-Ne&&wt<=Ot+Ne?1:wt>=ye-Ne&&wt<=ye+Ne?2:0}function ne(Lt,wt){const{left:Ot,right:ye,width:Xe}=Lt,Ne=.05*Xe;return wt>=Ot-Ne&&wt<=Ot+Ne?1:wt>=ye-Ne&&wt<=ye+Ne?2:0}const nt=(0,T.i$)({passive:!1,capture:!0});let kt=(()=>{class Lt{constructor(Ot,ye){this._ngZone=Ot,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Xe=>Xe.isDragging(),this.pointerMove=new x.xQ,this.pointerUp=new x.xQ,this.scroll=new x.xQ,this._preventDefaultWhileDragging=Xe=>{this._activeDragInstances.length>0&&Xe.preventDefault()},this._persistentTouchmoveListener=Xe=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Xe.preventDefault(),this.pointerMove.next(Xe))},this._document=ye}registerDropContainer(Ot){this._dropInstances.has(Ot)||this._dropInstances.add(Ot)}registerDragItem(Ot){this._dragInstances.add(Ot),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,nt)})}removeDropContainer(Ot){this._dropInstances.delete(Ot)}removeDragItem(Ot){this._dragInstances.delete(Ot),this.stopDragging(Ot),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,nt)}startDragging(Ot,ye){if(!(this._activeDragInstances.indexOf(Ot)>-1)&&(this._activeDragInstances.push(Ot),1===this._activeDragInstances.length)){const Xe=ye.type.startsWith("touch");this._globalListeners.set(Xe?"touchend":"mouseup",{handler:Ne=>this.pointerUp.next(Ne),options:!0}).set("scroll",{handler:Ne=>this.scroll.next(Ne),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:nt}),Xe||this._globalListeners.set("mousemove",{handler:Ne=>this.pointerMove.next(Ne),options:nt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Ne,Tn)=>{this._document.addEventListener(Tn,Ne.handler,Ne.options)})})}}stopDragging(Ot){const ye=this._activeDragInstances.indexOf(Ot);ye>-1&&(this._activeDragInstances.splice(ye,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Ot){return this._activeDragInstances.indexOf(Ot)>-1}scrolled(Ot){const ye=[this.scroll];return Ot&&Ot!==this._document&&ye.push(new P.y(Xe=>this._ngZone.runOutsideAngular(()=>{const Tn=he=>{this._activeDragInstances.length&&Xe.next(he)};return Ot.addEventListener("scroll",Tn,!0),()=>{Ot.removeEventListener("scroll",Tn,!0)}}))),(0,F.T)(...ye)}ngOnDestroy(){this._dragInstances.forEach(Ot=>this.removeDragItem(Ot)),this._dropInstances.forEach(Ot=>this.removeDropContainer(Ot)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Ot,ye)=>{this._document.removeEventListener(ye,Ot.handler,Ot.options)}),this._globalListeners.clear()}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(d.R0b),d.LFG(p.K0))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Jt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let oe=(()=>{class Lt{constructor(Ot,ye,Xe,Ne){this._document=Ot,this._ngZone=ye,this._viewportRuler=Xe,this._dragDropRegistry=Ne}createDrag(Ot,ye=Jt){return new de(Ot,ye,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Ot){return new si(Ot,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(p.K0),d.LFG(d.R0b),d.LFG(b.rL),d.LFG(kt))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Ce=new d.OlP("CDK_DRAG_PARENT"),Oe=new d.OlP("CdkDropListGroup"),Sn=new d.OlP("CDK_DRAG_CONFIG");let Li=0;const ho=new d.OlP("CdkDropList");let fi=(()=>{class Lt{constructor(Ot,ye,Xe,Ne,Tn,he,Re){this.element=Ot,this._changeDetectorRef=Xe,this._scrollDispatcher=Ne,this._dir=Tn,this._group=he,this._destroyed=new x.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Li++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.sorted=new d.vpe,this._unsortedItems=new Set,this._dropListRef=ye.createDropList(Ot),this._dropListRef.data=this,Re&&this._assignDefaults(Re),this._dropListRef.enterPredicate=(En,gi)=>this.enterPredicate(En.data,gi.data),this._dropListRef.sortPredicate=(En,gi,go)=>this.sortPredicate(En,gi.data,go.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Lt._dropLists.push(this),he&&he._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Ot){this._dropListRef.disabled=this._disabled=(0,t.Ig)(Ot)}addItem(Ot){this._unsortedItems.add(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Ot){this._unsortedItems.delete(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Ot,ye)=>Ot._dragRef.getVisibleElement().compareDocumentPosition(ye._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Ot=Lt._dropLists.indexOf(this);Ot>-1&&Lt._dropLists.splice(Ot,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Ot){this._dir&&this._dir.change.pipe((0,J.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(ye=>Ot.withDirection(ye)),Ot.beforeStarted.subscribe(()=>{const ye=(0,t.Eq)(this.connectedTo).map(Xe=>"string"==typeof Xe?Lt._dropLists.find(Tn=>Tn.id===Xe):Xe);if(this._group&&this._group._items.forEach(Xe=>{-1===ye.indexOf(Xe)&&ye.push(Xe)}),!this._scrollableParentsResolved){const Xe=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Ne=>Ne.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Xe),this._scrollableParentsResolved=!0}Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.sortingDisabled=(0,t.Ig)(this.sortingDisabled),Ot.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),Ot.autoScrollStep=(0,t.su)(this.autoScrollStep,2),Ot.connectedTo(ye.filter(Xe=>Xe&&Xe!==this).map(Xe=>Xe._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Ot){Ot.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(ye=>{this.entered.emit({container:this,item:ye.item.data,currentIndex:ye.currentIndex})}),Ot.exited.subscribe(ye=>{this.exited.emit({container:this,item:ye.item.data}),this._changeDetectorRef.markForCheck()}),Ot.sorted.subscribe(ye=>{this.sorted.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,container:this,item:ye.item.data})}),Ot.dropped.subscribe(ye=>{this.dropped.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,previousContainer:ye.previousContainer.data,container:ye.container.data,item:ye.item.data,isPointerOverContainer:ye.isPointerOverContainer,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Ot){const{lockAxis:ye,draggingDisabled:Xe,sortingDisabled:Ne,listAutoScrollDisabled:Tn,listOrientation:he}=Ot;this.disabled=Xe??!1,this.sortingDisabled=Ne??!1,this.autoScrollDisabled=Tn??!1,this.orientation=he||"vertical",ye&&(this.lockAxis=ye)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Ot=>Ot._dragRef))}}return Lt._dropLists=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(oe),d.Y36(d.sBO),d.Y36(b.mF),d.Y36(Dt.Is,8),d.Y36(Oe,12),d.Y36(Sn,8))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ot,ye){2&Ot&&(d.uIk("id",ye.id),d.ekj("cdk-drop-list-disabled",ye.disabled)("cdk-drop-list-dragging",ye._dropListRef.isDragging())("cdk-drop-list-receiving",ye._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[d._Bn([{provide:Oe,useValue:void 0},{provide:ho,useExisting:Lt}])]}),Lt})();const Bn=new d.OlP("CdkDragHandle"),Ye=new d.OlP("CdkDragPlaceholder"),ze=new d.OlP("CdkDragPreview");let le=(()=>{class Lt{constructor(Ot,ye,Xe,Ne,Tn,he,Re,En,gi,go,_o){this.element=Ot,this.dropContainer=ye,this._ngZone=Ne,this._viewContainerRef=Tn,this._dir=Re,this._changeDetectorRef=gi,this._selfHandle=go,this._parentDrag=_o,this._destroyed=new x.xQ,this.started=new d.vpe,this.released=new d.vpe,this.ended=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.dropped=new d.vpe,this.moved=new P.y(mn=>{const An=this._dragRef.moved.pipe((0,K.U)(sn=>({source:this,pointerPosition:sn.pointerPosition,event:sn.event,delta:sn.delta,distance:sn.distance}))).subscribe(mn);return()=>{An.unsubscribe()}}),this._dragRef=En.createDrag(Ot,{dragStartThreshold:he&&null!=he.dragStartThreshold?he.dragStartThreshold:5,pointerDirectionChangeThreshold:he&&null!=he.pointerDirectionChangeThreshold?he.pointerDirectionChangeThreshold:5,zIndex:he?.zIndex}),this._dragRef.data=this,Lt._dragInstances.push(this),he&&this._assignDefaults(he),ye&&(this._dragRef._withDropContainer(ye._dropListRef),ye.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Ot){this._disabled=(0,t.Ig)(Ot),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(Ot){this._dragRef.setFreeDragPosition(Ot)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,at.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Ot){const ye=Ot.rootElementSelector,Xe=Ot.freeDragPosition;ye&&!ye.firstChange&&this._updateRootElement(),Xe&&!Xe.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Ot=Lt._dragInstances.indexOf(this);Ot>-1&&Lt._dragInstances.splice(Ot,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Ot=this.element.nativeElement;let ye=Ot;this.rootElementSelector&&(ye=void 0!==Ot.closest?Ot.closest(this.rootElementSelector):Ot.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(ye||Ot)}_getBoundaryElement(){const Ot=this.boundaryElement;return Ot?"string"==typeof Ot?this.element.nativeElement.closest(Ot):(0,t.fI)(Ot):null}_syncInputs(Ot){Ot.beforeStarted.subscribe(()=>{if(!Ot.isDragging()){const ye=this._dir,Xe=this.dragStartDelay,Ne=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Tn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.dragStartDelay="object"==typeof Xe&&Xe?Xe:(0,t.su)(Xe),Ot.constrainPosition=this.constrainPosition,Ot.previewClass=this.previewClass,Ot.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Ne).withPreviewTemplate(Tn).withPreviewContainer(this.previewContainer||"global"),ye&&Ot.withDirection(ye.value)}}),Ot.beforeStarted.pipe((0,at.q)(1)).subscribe(()=>{if(this._parentDrag)return void Ot.withParent(this._parentDrag._dragRef);let ye=this.element.nativeElement.parentElement;for(;ye;){if(ye.classList.contains("cdk-drag")){Ot.withParent(Lt._dragInstances.find(Xe=>Xe.element.nativeElement===ye)?._dragRef||null);break}ye=ye.parentElement}})}_handleEvents(Ot){Ot.started.subscribe(ye=>{this.started.emit({source:this,event:ye.event}),this._changeDetectorRef.markForCheck()}),Ot.released.subscribe(ye=>{this.released.emit({source:this,event:ye.event})}),Ot.ended.subscribe(ye=>{this.ended.emit({source:this,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event}),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(ye=>{this.entered.emit({container:ye.container.data,item:this,currentIndex:ye.currentIndex})}),Ot.exited.subscribe(ye=>{this.exited.emit({container:ye.container.data,item:this})}),Ot.dropped.subscribe(ye=>{this.dropped.emit({previousIndex:ye.previousIndex,currentIndex:ye.currentIndex,previousContainer:ye.previousContainer.data,container:ye.container.data,isPointerOverContainer:ye.isPointerOverContainer,item:this,distance:ye.distance,dropPoint:ye.dropPoint,event:ye.event})})}_assignDefaults(Ot){const{lockAxis:ye,dragStartDelay:Xe,constrainPosition:Ne,previewClass:Tn,boundaryElement:he,draggingDisabled:Re,rootElementSelector:En,previewContainer:gi}=Ot;this.disabled=Re??!1,this.dragStartDelay=Xe||0,ye&&(this.lockAxis=ye),Ne&&(this.constrainPosition=Ne),Tn&&(this.previewClass=Tn),he&&(this.boundaryElement=he),En&&(this.rootElementSelector=En),gi&&(this.previewContainer=gi)}_setupHandlesListener(){this._handles.changes.pipe((0,J.O)(this._handles),(0,ct.b)(Ot=>{const ye=Ot.filter(Xe=>Xe._parentDrag===this).map(Xe=>Xe.element);this._selfHandle&&this.rootElementSelector&&ye.push(this.element),this._dragRef.withHandles(ye)}),(0,vt.w)(Ot=>(0,F.T)(...Ot.map(ye=>ye._stateChanges.pipe((0,J.O)(ye))))),(0,z.R)(this._destroyed)).subscribe(Ot=>{const ye=this._dragRef,Xe=Ot.element.nativeElement;Ot.disabled?ye.disableHandle(Xe):ye.enableHandle(Xe)})}}return Lt._dragInstances=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(ho,12),d.Y36(p.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(Sn,8),d.Y36(Dt.Is,8),d.Y36(oe),d.Y36(d.sBO),d.Y36(Bn,10),d.Y36(Ce,12))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDrag",""]],contentQueries:function(Ot,ye,Xe){if(1&Ot&&(d.Suo(Xe,ze,5),d.Suo(Xe,Ye,5),d.Suo(Xe,Bn,5)),2&Ot){let Ne;d.iGM(Ne=d.CRH())&&(ye._previewTemplate=Ne.first),d.iGM(Ne=d.CRH())&&(ye._placeholderTemplate=Ne.first),d.iGM(Ne=d.CRH())&&(ye._handles=Ne)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ot,ye){2&Ot&&d.ekj("cdk-drag-disabled",ye.disabled)("cdk-drag-dragging",ye._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[d._Bn([{provide:Ce,useExisting:Lt}]),d.TTD]}),Lt})(),Ge=(()=>{class Lt{}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({providers:[oe],imports:[b.ZD]}),Lt})()},29521:(ot,et,v)=>{"use strict";v.d(et,{A:()=>ae,JH:()=>Pt,JU:()=>A,K5:()=>t,Ku:()=>z,LH:()=>vt,L_:()=>F,MW:()=>Sn,Mf:()=>b,SV:()=>Dt,Sd:()=>at,VM:()=>J,Vb:()=>fc,Z:()=>Dn,ZH:()=>p,aO:()=>Le,b2:()=>Or,hY:()=>P,jx:()=>x,oh:()=>ct,uR:()=>K,xE:()=>At,yY:()=>Tt,zL:()=>U});const p=8,b=9,t=13,A=16,x=17,U=18,P=27,F=32,z=33,J=34,K=35,at=36,ct=37,vt=38,Dt=39,Pt=40,Tt=46,At=48,Le=57,ae=65,Dn=90,Sn=91,Or=224;function fc(dr,...jr){return jr.length?jr.some(Qr=>dr[Qr]):dr.altKey||dr.shiftKey||dr.ctrlKey||dr.metaKey}},62289:(ot,et,v)=>{"use strict";v.d(et,{Yg:()=>Pt,u3:()=>Vt,xu:()=>J});var d=v(94650),p=v(21281),b=v(8929),T=v(23426),t=v(61221),A=v(56498),x=v(72986),U=v(31307),k=v(80013),D=v(24850),P=v(1059),F=v(7625),z=v(83353);let J=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=d.oAB({type:it}),it.\u0275inj=d.cJS({}),it})();const K=new Set;let at,ct=(()=>{class it{constructor(At){this._platform=At,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dt}matchMedia(At){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt(it){if(!K.has(it))try{at||(at=document.createElement("style"),at.setAttribute("type","text/css"),document.head.appendChild(at)),at.sheet&&(at.sheet.insertRule(`@media ${it} {body{ }}`,0),K.add(it))}catch(Tt){console.error(Tt)}}(At),this._matchMedia(At)}}return it.\u0275fac=function(At){return new(At||it)(d.LFG(z.t4))},it.\u0275prov=d.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function Dt(it){return{matches:"all"===it||""===it,media:it,addListener:()=>{},removeListener:()=>{}}}let Pt=(()=>{class it{constructor(At,ft){this._mediaMatcher=At,this._zone=ft,this._queries=new Map,this._destroySubject=new b.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(At){return zt((0,p.Eq)(At)).some(Et=>this._registerQuery(Et).mql.matches)}observe(At){const Et=zt((0,p.Eq)(At)).map(Ft=>this._registerQuery(Ft).observable);let Bt=(0,T.aj)(Et);return Bt=(0,t.z)(Bt.pipe((0,x.q)(1)),Bt.pipe((0,U.T)(1),(0,k.b)(0))),Bt.pipe((0,D.U)(Ft=>{const se={matches:!1,breakpoints:{}};return Ft.forEach(({matches:Gt,query:ve})=>{se.matches=se.matches||Gt,se.breakpoints[ve]=Gt}),se}))}_registerQuery(At){if(this._queries.has(At))return this._queries.get(At);const ft=this._mediaMatcher.matchMedia(At),Bt={observable:new A.y(Ft=>{const se=Gt=>this._zone.run(()=>Ft.next(Gt));return ft.addListener(se),()=>{ft.removeListener(se)}}).pipe((0,P.O)(ft),(0,D.U)(({matches:Ft})=>({query:At,matches:Ft})),(0,F.R)(this._destroySubject)),mql:ft};return this._queries.set(At,Bt),Bt}}return it.\u0275fac=function(At){return new(At||it)(d.LFG(ct),d.LFG(d.R0b))},it.\u0275prov=d.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function zt(it){return it.map(Tt=>Tt.split(",")).reduce((Tt,At)=>Tt.concat(At)).map(Tt=>Tt.trim())}const Vt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(ot,et,v)=>{"use strict";v.d(et,{Q8:()=>k,wD:()=>U});var d=v(21281),p=v(94650),b=v(56498),T=v(8929),t=v(80013);let A=(()=>{class D{create(F){return typeof MutationObserver>"u"?null:new MutationObserver(F)}}return D.\u0275fac=function(F){return new(F||D)},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),x=(()=>{class D{constructor(F){this._mutationObserverFactory=F,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((F,z)=>this._cleanupObserver(z))}observe(F){const z=(0,d.fI)(F);return new b.y(J=>{const at=this._observeElement(z).subscribe(J);return()=>{at.unsubscribe(),this._unobserveElement(z)}})}_observeElement(F){if(this._observedElements.has(F))this._observedElements.get(F).count++;else{const z=new T.xQ,J=this._mutationObserverFactory.create(K=>z.next(K));J&&J.observe(F,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(F,{observer:J,stream:z,count:1})}return this._observedElements.get(F).stream}_unobserveElement(F){this._observedElements.has(F)&&(this._observedElements.get(F).count--,this._observedElements.get(F).count||this._cleanupObserver(F))}_cleanupObserver(F){if(this._observedElements.has(F)){const{observer:z,stream:J}=this._observedElements.get(F);z&&z.disconnect(),J.complete(),this._observedElements.delete(F)}}}return D.\u0275fac=function(F){return new(F||D)(p.LFG(A))},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),U=(()=>{class D{constructor(F,z,J){this._contentObserver=F,this._elementRef=z,this._ngZone=J,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,d.Ig)(F),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(F){this._debounce=(0,d.su)(F),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const F=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?F.pipe((0,t.b)(this.debounce)):F).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return D.\u0275fac=function(F){return new(F||D)(p.Y36(x),p.Y36(p.SBq),p.Y36(p.R0b))},D.\u0275dir=p.lG2({type:D,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=p.oAB({type:D}),D.\u0275inj=p.cJS({providers:[A]}),D})()},98184:(ot,et,v)=>{"use strict";v.d(et,{Iu:()=>Le,U8:()=>si,X_:()=>Tt,Xj:()=>be,_G:()=>Xt,aV:()=>Ae,pI:()=>Un,xu:()=>un});var d=v(67376),p=v(36895),b=v(94650),T=v(21281),t=v(83353),A=v(40445),x=v(84080),U=v(8929),k=v(42654),D=v(36787),P=v(72986),F=v(7625),z=v(44290),J=v(29521);const K=(0,t.Mq)();class at{constructor(lt,nt){this._viewportRuler=lt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=nt}attach(){}enable(){if(this._canBeEnabled()){const lt=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=lt.style.left||"",this._previousHTMLStyles.top=lt.style.top||"",lt.style.left=(0,T.HM)(-this._previousScrollPosition.left),lt.style.top=(0,T.HM)(-this._previousScrollPosition.top),lt.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const lt=this._document.documentElement,kt=lt.style,Jt=this._document.body.style,oe=kt.scrollBehavior||"",Ce=Jt.scrollBehavior||"";this._isEnabled=!1,kt.left=this._previousHTMLStyles.left,kt.top=this._previousHTMLStyles.top,lt.classList.remove("cdk-global-scrollblock"),K&&(kt.scrollBehavior=Jt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(kt.scrollBehavior=oe,Jt.scrollBehavior=Ce)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const nt=this._document.body,kt=this._viewportRuler.getViewportSize();return nt.scrollHeight>kt.height||nt.scrollWidth>kt.width}}class vt{constructor(lt,nt,kt,Jt){this._scrollDispatcher=lt,this._ngZone=nt,this._viewportRuler=kt,this._config=Jt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(lt){this._overlayRef=lt}enable(){if(this._scrollSubscription)return;const lt=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=lt.subscribe(()=>{const nt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(nt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=lt.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dt{enable(){}disable(){}attach(){}}function Pt(ne,lt){return lt.some(nt=>ne.bottomnt.bottom||ne.rightnt.right)}function zt(ne,lt){return lt.some(nt=>ne.topnt.bottom||ne.leftnt.right)}class Vt{constructor(lt,nt,kt,Jt){this._scrollDispatcher=lt,this._viewportRuler=nt,this._ngZone=kt,this._config=Jt,this._scrollSubscription=null}attach(lt){this._overlayRef=lt}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const nt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:kt,height:Jt}=this._viewportRuler.getViewportSize();Pt(nt,[{width:kt,height:Jt,bottom:Jt,right:kt,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let it=(()=>{class ne{constructor(nt,kt,Jt,oe){this._scrollDispatcher=nt,this._viewportRuler=kt,this._ngZone=Jt,this.noop=()=>new Dt,this.close=Ce=>new vt(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ce),this.block=()=>new at(this._viewportRuler,this._document),this.reposition=Ce=>new Vt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ce),this._document=oe}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(d.mF),b.LFG(d.rL),b.LFG(b.R0b),b.LFG(p.K0))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();class Tt{constructor(lt){if(this.scrollStrategy=new Dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,lt){const nt=Object.keys(lt);for(const kt of nt)void 0!==lt[kt]&&(this[kt]=lt[kt])}}}class Et{constructor(lt,nt){this.connectionPair=lt,this.scrollableViewProperties=nt}}let se=(()=>{class ne{constructor(nt){this._attachedOverlays=[],this._document=nt}ngOnDestroy(){this.detach()}add(nt){this.remove(nt),this._attachedOverlays.push(nt)}remove(nt){const kt=this._attachedOverlays.indexOf(nt);kt>-1&&this._attachedOverlays.splice(kt,1),0===this._attachedOverlays.length&&this.detach()}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(p.K0))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Gt=(()=>{class ne extends se{constructor(nt,kt){super(nt),this._ngZone=kt,this._keydownListener=Jt=>{const oe=this._attachedOverlays;for(let Ce=oe.length-1;Ce>-1;Ce--)if(oe[Ce]._keydownEvents.observers.length>0){const Oe=oe[Ce]._keydownEvents;this._ngZone?this._ngZone.run(()=>Oe.next(Jt)):Oe.next(Jt);break}}}add(nt){super.add(nt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(p.K0),b.LFG(b.R0b,8))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ve=(()=>{class ne extends se{constructor(nt,kt,Jt){super(nt),this._platform=kt,this._ngZone=Jt,this._cursorStyleIsSet=!1,this._pointerDownListener=oe=>{this._pointerDownEventTarget=(0,t.sA)(oe)},this._clickListener=oe=>{const Ce=(0,t.sA)(oe),Oe="click"===oe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ce;this._pointerDownEventTarget=null;const Dn=this._attachedOverlays.slice();for(let Sn=Dn.length-1;Sn>-1;Sn--){const mi=Dn[Sn];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(Ce)||mi.overlayElement.contains(Oe))break;const Li=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Li.next(oe)):Li.next(oe)}}}add(nt){if(super.add(nt),!this._isAttached){const kt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(kt)):this._addEventListeners(kt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=kt.style.cursor,kt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const nt=this._document.body;nt.removeEventListener("pointerdown",this._pointerDownListener,!0),nt.removeEventListener("click",this._clickListener,!0),nt.removeEventListener("auxclick",this._clickListener,!0),nt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(nt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(nt){nt.addEventListener("pointerdown",this._pointerDownListener,!0),nt.addEventListener("click",this._clickListener,!0),nt.addEventListener("auxclick",this._clickListener,!0),nt.addEventListener("contextmenu",this._clickListener,!0)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(p.K0),b.LFG(t.t4),b.LFG(b.R0b,8))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),be=(()=>{class ne{constructor(nt,kt){this._platform=kt,this._document=nt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const nt="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Jt=this._document.querySelectorAll(`.${nt}[platform="server"], .${nt}[platform="test"]`);for(let oe=0;oethis._backdropClick.next(Li),this._backdropTransitionendHandler=Li=>{this._disposeBackdrop(Li.target)},this._keydownEvents=new U.xQ,this._outsidePointerEvents=new U.xQ,Jt.scrollStrategy&&(this._scrollStrategy=Jt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Jt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(lt){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const nt=this._portalOutlet.attach(lt);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof nt?.onDestroy&&nt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),nt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const lt=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),lt}dispose(){const lt=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,lt&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(lt){lt!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=lt,this.hasAttached()&&(lt.attach(this),this.updatePosition()))}updateSize(lt){this._config={...this._config,...lt},this._updateElementSize()}setDirection(lt){this._config={...this._config,direction:lt},this._updateElementDirection()}addPanelClass(lt){this._pane&&this._toggleClasses(this._pane,lt,!0)}removePanelClass(lt){this._pane&&this._toggleClasses(this._pane,lt,!1)}getDirection(){const lt=this._config.direction;return lt?"string"==typeof lt?lt:lt.value:"ltr"}updateScrollStrategy(lt){lt!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=lt,this.hasAttached()&&(lt.attach(this),lt.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const lt=this._pane.style;lt.width=(0,T.HM)(this._config.width),lt.height=(0,T.HM)(this._config.height),lt.minWidth=(0,T.HM)(this._config.minWidth),lt.minHeight=(0,T.HM)(this._config.minHeight),lt.maxWidth=(0,T.HM)(this._config.maxWidth),lt.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(lt){this._pane.style.pointerEvents=lt?"":"none"}_attachBackdrop(){const lt="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(lt)})}):this._backdropElement.classList.add(lt)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const lt=this._backdropElement;if(lt){if(this._animationsDisabled)return void this._disposeBackdrop(lt);lt.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{lt.addEventListener("transitionend",this._backdropTransitionendHandler)}),lt.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(lt)},500))}}_toggleClasses(lt,nt,kt){const Jt=(0,T.Eq)(nt||[]).filter(oe=>!!oe);Jt.length&&(kt?lt.classList.add(...Jt):lt.classList.remove(...Jt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const lt=this._ngZone.onStable.pipe((0,F.R)((0,D.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),lt.unsubscribe())})})}_disposeScrollStrategy(){const lt=this._scrollStrategy;lt&&(lt.disable(),lt.detach&<.detach())}_disposeBackdrop(lt){lt&&(lt.removeEventListener("click",this._backdropClickHandler),lt.removeEventListener("transitionend",this._backdropTransitionendHandler),lt.remove(),this._backdropElement===lt&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qe="cdk-overlay-connected-position-bounding-box",$e=/([A-Za-z%]+)$/;class Xt{constructor(lt,nt,kt,Jt,oe){this._viewportRuler=nt,this._document=kt,this._platform=Jt,this._overlayContainer=oe,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 U.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(lt)}get positions(){return this._preferredPositions}attach(lt){this._validatePositions(),lt.hostElement.classList.add(qe),this._overlayRef=lt,this._boundingBox=lt.hostElement,this._pane=lt.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const lt=this._originRect,nt=this._overlayRect,kt=this._viewportRect,Jt=this._containerRect,oe=[];let Ce;for(let Oe of this._preferredPositions){let Dn=this._getOriginPoint(lt,Jt,Oe),Sn=this._getOverlayPoint(Dn,nt,Oe),mi=this._getOverlayFit(Sn,nt,kt,Oe);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Oe,Dn);this._canFitWithFlexibleDimensions(mi,Sn,kt)?oe.push({position:Oe,origin:Dn,overlayRect:nt,boundingBoxRect:this._calculateBoundingBoxRect(Dn,Oe)}):(!Ce||Ce.overlayFit.visibleAreaDn&&(Dn=mi,Oe=Sn)}return this._isPushed=!1,void this._applyPosition(Oe.position,Oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ce.position,Ce.originPoint);this._applyPosition(Ce.position,Ce.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const lt=this._lastPosition;if(lt){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const nt=this._getOriginPoint(this._originRect,this._containerRect,lt);this._applyPosition(lt,nt)}else this.apply()}withScrollableContainers(lt){return this._scrollables=lt,this}withPositions(lt){return this._preferredPositions=lt,-1===lt.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(lt){return this._viewportMargin=lt,this}withFlexibleDimensions(lt=!0){return this._hasFlexibleDimensions=lt,this}withGrowAfterOpen(lt=!0){return this._growAfterOpen=lt,this}withPush(lt=!0){return this._canPush=lt,this}withLockedPosition(lt=!0){return this._positionLocked=lt,this}setOrigin(lt){return this._origin=lt,this}withDefaultOffsetX(lt){return this._offsetX=lt,this}withDefaultOffsetY(lt){return this._offsetY=lt,this}withTransformOriginOn(lt){return this._transformOriginSelector=lt,this}_getOriginPoint(lt,nt,kt){let Jt,oe;if("center"==kt.originX)Jt=lt.left+lt.width/2;else{const Ce=this._isRtl()?lt.right:lt.left,Oe=this._isRtl()?lt.left:lt.right;Jt="start"==kt.originX?Ce:Oe}return nt.left<0&&(Jt-=nt.left),oe="center"==kt.originY?lt.top+lt.height/2:"top"==kt.originY?lt.top:lt.bottom,nt.top<0&&(oe-=nt.top),{x:Jt,y:oe}}_getOverlayPoint(lt,nt,kt){let Jt,oe;return Jt="center"==kt.overlayX?-nt.width/2:"start"===kt.overlayX?this._isRtl()?-nt.width:0:this._isRtl()?0:-nt.width,oe="center"==kt.overlayY?-nt.height/2:"top"==kt.overlayY?0:-nt.height,{x:lt.x+Jt,y:lt.y+oe}}_getOverlayFit(lt,nt,kt,Jt){const oe=Kt(nt);let{x:Ce,y:Oe}=lt,Dn=this._getOffset(Jt,"x"),Sn=this._getOffset(Jt,"y");Dn&&(Ce+=Dn),Sn&&(Oe+=Sn);let ho=0-Oe,fi=Oe+oe.height-kt.height,Bn=this._subtractOverflows(oe.width,0-Ce,Ce+oe.width-kt.width),jn=this._subtractOverflows(oe.height,ho,fi),Ye=Bn*jn;return{visibleArea:Ye,isCompletelyWithinViewport:oe.width*oe.height===Ye,fitsInViewportVertically:jn===oe.height,fitsInViewportHorizontally:Bn==oe.width}}_canFitWithFlexibleDimensions(lt,nt,kt){if(this._hasFlexibleDimensions){const Jt=kt.bottom-nt.y,oe=kt.right-nt.x,Ce=ae(this._overlayRef.getConfig().minHeight),Oe=ae(this._overlayRef.getConfig().minWidth),Sn=lt.fitsInViewportHorizontally||null!=Oe&&Oe<=oe;return(lt.fitsInViewportVertically||null!=Ce&&Ce<=Jt)&&Sn}return!1}_pushOverlayOnScreen(lt,nt,kt){if(this._previousPushAmount&&this._positionLocked)return{x:lt.x+this._previousPushAmount.x,y:lt.y+this._previousPushAmount.y};const Jt=Kt(nt),oe=this._viewportRect,Ce=Math.max(lt.x+Jt.width-oe.width,0),Oe=Math.max(lt.y+Jt.height-oe.height,0),Dn=Math.max(oe.top-kt.top-lt.y,0),Sn=Math.max(oe.left-kt.left-lt.x,0);let mi=0,Li=0;return mi=Jt.width<=oe.width?Sn||-Ce:lt.xBn&&!this._isInitialRender&&!this._growAfterOpen&&(Ce=lt.y-Bn/2)}if("end"===nt.overlayX&&!Jt||"start"===nt.overlayX&&Jt)ho=kt.width-lt.x+this._viewportMargin,mi=lt.x-this._viewportMargin;else if("start"===nt.overlayX&&!Jt||"end"===nt.overlayX&&Jt)Li=lt.x,mi=kt.right-lt.x;else{const fi=Math.min(kt.right-lt.x+kt.left,lt.x),Bn=this._lastBoundingBoxSize.width;mi=2*fi,Li=lt.x-fi,mi>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(Li=lt.x-Bn/2)}return{top:Ce,left:Li,bottom:Oe,right:ho,width:mi,height:oe}}_setBoundingBoxStyles(lt,nt){const kt=this._calculateBoundingBoxRect(lt,nt);!this._isInitialRender&&!this._growAfterOpen&&(kt.height=Math.min(kt.height,this._lastBoundingBoxSize.height),kt.width=Math.min(kt.width,this._lastBoundingBoxSize.width));const Jt={};if(this._hasExactPosition())Jt.top=Jt.left="0",Jt.bottom=Jt.right=Jt.maxHeight=Jt.maxWidth="",Jt.width=Jt.height="100%";else{const oe=this._overlayRef.getConfig().maxHeight,Ce=this._overlayRef.getConfig().maxWidth;Jt.height=(0,T.HM)(kt.height),Jt.top=(0,T.HM)(kt.top),Jt.bottom=(0,T.HM)(kt.bottom),Jt.width=(0,T.HM)(kt.width),Jt.left=(0,T.HM)(kt.left),Jt.right=(0,T.HM)(kt.right),Jt.alignItems="center"===nt.overlayX?"center":"end"===nt.overlayX?"flex-end":"flex-start",Jt.justifyContent="center"===nt.overlayY?"center":"bottom"===nt.overlayY?"flex-end":"flex-start",oe&&(Jt.maxHeight=(0,T.HM)(oe)),Ce&&(Jt.maxWidth=(0,T.HM)(Ce))}this._lastBoundingBoxSize=kt,Te(this._boundingBox.style,Jt)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(lt,nt){const kt={},Jt=this._hasExactPosition(),oe=this._hasFlexibleDimensions,Ce=this._overlayRef.getConfig();if(Jt){const mi=this._viewportRuler.getViewportScrollPosition();Te(kt,this._getExactOverlayY(nt,lt,mi)),Te(kt,this._getExactOverlayX(nt,lt,mi))}else kt.position="static";let Oe="",Dn=this._getOffset(nt,"x"),Sn=this._getOffset(nt,"y");Dn&&(Oe+=`translateX(${Dn}px) `),Sn&&(Oe+=`translateY(${Sn}px)`),kt.transform=Oe.trim(),Ce.maxHeight&&(Jt?kt.maxHeight=(0,T.HM)(Ce.maxHeight):oe&&(kt.maxHeight="")),Ce.maxWidth&&(Jt?kt.maxWidth=(0,T.HM)(Ce.maxWidth):oe&&(kt.maxWidth="")),Te(this._pane.style,kt)}_getExactOverlayY(lt,nt,kt){let Jt={top:"",bottom:""},oe=this._getOverlayPoint(nt,this._overlayRect,lt);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),"bottom"===lt.overlayY?Jt.bottom=this._document.documentElement.clientHeight-(oe.y+this._overlayRect.height)+"px":Jt.top=(0,T.HM)(oe.y),Jt}_getExactOverlayX(lt,nt,kt){let Ce,Jt={left:"",right:""},oe=this._getOverlayPoint(nt,this._overlayRect,lt);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),Ce=this._isRtl()?"end"===lt.overlayX?"left":"right":"end"===lt.overlayX?"right":"left","right"===Ce?Jt.right=this._document.documentElement.clientWidth-(oe.x+this._overlayRect.width)+"px":Jt.left=(0,T.HM)(oe.x),Jt}_getScrollVisibility(){const lt=this._getOriginRect(),nt=this._pane.getBoundingClientRect(),kt=this._scrollables.map(Jt=>Jt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zt(lt,kt),isOriginOutsideView:Pt(lt,kt),isOverlayClipped:zt(nt,kt),isOverlayOutsideView:Pt(nt,kt)}}_subtractOverflows(lt,...nt){return nt.reduce((kt,Jt)=>kt-Math.max(Jt,0),lt)}_getNarrowedViewportRect(){const lt=this._document.documentElement.clientWidth,nt=this._document.documentElement.clientHeight,kt=this._viewportRuler.getViewportScrollPosition();return{top:kt.top+this._viewportMargin,left:kt.left+this._viewportMargin,right:kt.left+lt-this._viewportMargin,bottom:kt.top+nt-this._viewportMargin,width:lt-2*this._viewportMargin,height:nt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(lt,nt){return"x"===nt?lt.offsetX??this._offsetX:lt.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(lt){this._pane&&(0,T.Eq)(lt).forEach(nt=>{""!==nt&&-1===this._appliedPanelClasses.indexOf(nt)&&(this._appliedPanelClasses.push(nt),this._pane.classList.add(nt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(lt=>{this._pane.classList.remove(lt)}),this._appliedPanelClasses=[])}_getOriginRect(){const lt=this._origin;if(lt instanceof b.SBq)return lt.nativeElement.getBoundingClientRect();if(lt instanceof Element)return lt.getBoundingClientRect();const nt=lt.width||0,kt=lt.height||0;return{top:lt.y,bottom:lt.y+kt,left:lt.x,right:lt.x+nt,height:kt,width:nt}}}function Te(ne,lt){for(let nt in lt)lt.hasOwnProperty(nt)&&(ne[nt]=lt[nt]);return ne}function ae(ne){if("number"!=typeof ne&&null!=ne){const[lt,nt]=ne.split($e);return nt&&"px"!==nt?null:parseFloat(lt)}return ne||null}function Kt(ne){return{top:Math.floor(ne.top),right:Math.floor(ne.right),bottom:Math.floor(ne.bottom),left:Math.floor(ne.left),width:Math.floor(ne.width),height:Math.floor(ne.height)}}const re="cdk-global-overlay-wrapper";class De{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(lt){const nt=lt.getConfig();this._overlayRef=lt,this._width&&!nt.width&<.updateSize({width:this._width}),this._height&&!nt.height&<.updateSize({height:this._height}),lt.hostElement.classList.add(re),this._isDisposed=!1}top(lt=""){return this._bottomOffset="",this._topOffset=lt,this._alignItems="flex-start",this}left(lt=""){return this._xOffset=lt,this._xPosition="left",this}bottom(lt=""){return this._topOffset="",this._bottomOffset=lt,this._alignItems="flex-end",this}right(lt=""){return this._xOffset=lt,this._xPosition="right",this}start(lt=""){return this._xOffset=lt,this._xPosition="start",this}end(lt=""){return this._xOffset=lt,this._xPosition="end",this}width(lt=""){return this._overlayRef?this._overlayRef.updateSize({width:lt}):this._width=lt,this}height(lt=""){return this._overlayRef?this._overlayRef.updateSize({height:lt}):this._height=lt,this}centerHorizontally(lt=""){return this.left(lt),this._xPosition="center",this}centerVertically(lt=""){return this.top(lt),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const lt=this._overlayRef.overlayElement.style,nt=this._overlayRef.hostElement.style,kt=this._overlayRef.getConfig(),{width:Jt,height:oe,maxWidth:Ce,maxHeight:Oe}=kt,Dn=!("100%"!==Jt&&"100vw"!==Jt||Ce&&"100%"!==Ce&&"100vw"!==Ce),Sn=!("100%"!==oe&&"100vh"!==oe||Oe&&"100%"!==Oe&&"100vh"!==Oe),mi=this._xPosition,Li=this._xOffset,ho="rtl"===this._overlayRef.getConfig().direction;let fi="",Bn="",jn="";Dn?jn="flex-start":"center"===mi?(jn="center",ho?Bn=Li:fi=Li):ho?"left"===mi||"end"===mi?(jn="flex-end",fi=Li):("right"===mi||"start"===mi)&&(jn="flex-start",Bn=Li):"left"===mi||"start"===mi?(jn="flex-start",fi=Li):("right"===mi||"end"===mi)&&(jn="flex-end",Bn=Li),lt.position=this._cssPosition,lt.marginLeft=Dn?"0":fi,lt.marginTop=Sn?"0":this._topOffset,lt.marginBottom=this._bottomOffset,lt.marginRight=Dn?"0":Bn,nt.justifyContent=jn,nt.alignItems=Sn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const lt=this._overlayRef.overlayElement.style,nt=this._overlayRef.hostElement,kt=nt.style;nt.classList.remove(re),kt.justifyContent=kt.alignItems=lt.marginTop=lt.marginBottom=lt.marginLeft=lt.marginRight=lt.position="",this._overlayRef=null,this._isDisposed=!0}}let on=(()=>{class ne{constructor(nt,kt,Jt,oe){this._viewportRuler=nt,this._document=kt,this._platform=Jt,this._overlayContainer=oe}global(){return new De}flexibleConnectedTo(nt){return new Xt(nt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(d.rL),b.LFG(p.K0),b.LFG(t.t4),b.LFG(be))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),_n=0,Ae=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi,Li,ho,fi){this.scrollStrategies=nt,this._overlayContainer=kt,this._componentFactoryResolver=Jt,this._positionBuilder=oe,this._keyboardDispatcher=Ce,this._injector=Oe,this._ngZone=Dn,this._document=Sn,this._directionality=mi,this._location=Li,this._outsideClickDispatcher=ho,this._animationsModuleType=fi}create(nt){const kt=this._createHostElement(),Jt=this._createPaneElement(kt),oe=this._createPortalOutlet(Jt),Ce=new Tt(nt);return Ce.direction=Ce.direction||this._directionality.value,new Le(oe,kt,Jt,Ce,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(nt){const kt=this._document.createElement("div");return kt.id="cdk-overlay-"+_n++,kt.classList.add("cdk-overlay-pane"),nt.appendChild(kt),kt}_createHostElement(){const nt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(nt),nt}_createPortalOutlet(nt){return this._appRef||(this._appRef=this._injector.get(b.z2F)),new x.u0(nt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.LFG(it),b.LFG(be),b.LFG(b._Vd),b.LFG(on),b.LFG(Gt),b.LFG(b.zs3),b.LFG(b.R0b),b.LFG(p.K0),b.LFG(A.Is),b.LFG(p.Ye),b.LFG(ve),b.LFG(b.QbO,8))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const gn=[{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"}],we=new b.OlP("cdk-connected-overlay-scroll-strategy");let un=(()=>{class ne{constructor(nt){this.elementRef=nt}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.Y36(b.SBq))},ne.\u0275dir=b.lG2({type:ne,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ne})(),Un=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce){this._overlay=nt,this._dir=Ce,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new b.vpe,this.positionChange=new b.vpe,this.attach=new b.vpe,this.detach=new b.vpe,this.overlayKeydown=new b.vpe,this.overlayOutsideClick=new b.vpe,this._templatePortal=new x.UE(kt,Jt),this._scrollStrategyFactory=oe,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(nt){this._offsetX=nt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(nt){this._offsetY=nt,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(nt){this._hasBackdrop=(0,T.Ig)(nt)}get lockPosition(){return this._lockPosition}set lockPosition(nt){this._lockPosition=(0,T.Ig)(nt)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(nt){this._flexibleDimensions=(0,T.Ig)(nt)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(nt){this._growAfterOpen=(0,T.Ig)(nt)}get push(){return this._push}set push(nt){this._push=(0,T.Ig)(nt)}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(nt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),nt.origin&&this.open&&this._position.apply()),nt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gn);const nt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=nt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=nt.detachments().subscribe(()=>this.detach.emit()),nt.keydownEvents().subscribe(kt=>{this.overlayKeydown.next(kt),kt.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(kt)&&(kt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(kt=>{this.overlayOutsideClick.next(kt)})}_buildConfig(){const nt=this._position=this.positionStrategy||this._createPositionStrategy(),kt=new Tt({direction:this._dir,positionStrategy:nt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(kt.width=this.width),(this.height||0===this.height)&&(kt.height=this.height),(this.minWidth||0===this.minWidth)&&(kt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(kt.minHeight=this.minHeight),this.backdropClass&&(kt.backdropClass=this.backdropClass),this.panelClass&&(kt.panelClass=this.panelClass),kt}_updatePositionStrategy(nt){const kt=this.positions.map(Jt=>({originX:Jt.originX,originY:Jt.originY,overlayX:Jt.overlayX,overlayY:Jt.overlayY,offsetX:Jt.offsetX||this.offsetX,offsetY:Jt.offsetY||this.offsetY,panelClass:Jt.panelClass||void 0}));return nt.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(kt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const nt=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(nt),nt}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof un?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(nt=>{this.backdropClick.emit(nt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(nt=>{this.positionChange.emit(nt),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.Y36(Ae),b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(we),b.Y36(A.Is,8))},ne.\u0275dir=b.lG2({type:ne,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[b.TTD]}),ne})();const vi={provide:we,deps:[Ae],useFactory:function oi(ne){return()=>ne.scrollStrategies.reposition()}};let si=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=b.oAB({type:ne}),ne.\u0275inj=b.cJS({providers:[Ae,vi],imports:[A.vT,x.eL,d.Cl,d.Cl]}),ne})()},83353:(ot,et,v)=>{"use strict";v.d(et,{Mq:()=>J,Oy:()=>zt,_i:()=>K,ht:()=>Dt,i$:()=>P,kV:()=>vt,qK:()=>U,sA:()=>Pt,t4:()=>T,ud:()=>t});var d=v(94650),p=v(36895);let b;try{b=typeof Intl<"u"&&Intl.v8BreakIterator}catch{b=!1}let A,T=(()=>{class Vt{constructor(Tt){this._platformId=Tt,this.isBrowser=this._platformId?(0,p.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!b)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Vt.\u0275fac=function(Tt){return new(Tt||Vt)(d.LFG(d.Lbi))},Vt.\u0275prov=d.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"}),Vt})(),t=(()=>{class Vt{}return Vt.\u0275fac=function(Tt){return new(Tt||Vt)},Vt.\u0275mod=d.oAB({type:Vt}),Vt.\u0275inj=d.cJS({}),Vt})();const x=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function U(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(x),A;let Vt=document.createElement("input");return A=new Set(x.filter(it=>(Vt.setAttribute("type",it),Vt.type===it))),A}let k,F,z,at;function P(Vt){return function D(){if(null==k&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>k=!0}))}finally{k=k||!1}return k}()?Vt:!!Vt.capture}function J(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const Vt=Element.prototype.scrollTo;z=!!Vt&&!/\{\s*\[native code\]\s*\}/.test(Vt.toString())}}return z}function K(){if("object"!=typeof document||!document)return 0;if(null==F){const Vt=document.createElement("div"),it=Vt.style;Vt.dir="rtl",it.width="1px",it.overflow="auto",it.visibility="hidden",it.pointerEvents="none",it.position="absolute";const Tt=document.createElement("div"),At=Tt.style;At.width="2px",At.height="1px",Vt.appendChild(Tt),document.body.appendChild(Vt),F=0,0===Vt.scrollLeft&&(Vt.scrollLeft=1,F=0===Vt.scrollLeft?1:2),Vt.remove()}return F}function vt(Vt){if(function ct(){if(null==at){const Vt=typeof document<"u"?document.head:null;at=!(!Vt||!Vt.createShadowRoot&&!Vt.attachShadow)}return at}()){const it=Vt.getRootNode?Vt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&it instanceof ShadowRoot)return it}return null}function Dt(){let Vt=typeof document<"u"&&document?document.activeElement:null;for(;Vt&&Vt.shadowRoot;){const it=Vt.shadowRoot.activeElement;if(it===Vt)break;Vt=it}return Vt}function Pt(Vt){return Vt.composedPath?Vt.composedPath()[0]:Vt.target}function zt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(ot,et,v)=>{"use strict";v.d(et,{C5:()=>D,Pl:()=>Dt,UE:()=>P,eL:()=>zt,en:()=>z,ig:()=>ct,u0:()=>K});var d=v(94650),p=v(36895);class k{attach(Tt){return this._attachedHost=Tt,Tt.attach(this)}detach(){let Tt=this._attachedHost;null!=Tt&&(this._attachedHost=null,Tt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Tt){this._attachedHost=Tt}}class D extends k{constructor(Tt,At,ft,Et){super(),this.component=Tt,this.viewContainerRef=At,this.injector=ft,this.componentFactoryResolver=Et}}class P extends k{constructor(Tt,At,ft,Et){super(),this.templateRef=Tt,this.viewContainerRef=At,this.context=ft,this.injector=Et}get origin(){return this.templateRef.elementRef}attach(Tt,At=this.context){return this.context=At,super.attach(Tt)}detach(){return this.context=void 0,super.detach()}}class F extends k{constructor(Tt){super(),this.element=Tt instanceof d.SBq?Tt.nativeElement:Tt}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Tt){return Tt instanceof D?(this._attachedPortal=Tt,this.attachComponentPortal(Tt)):Tt instanceof P?(this._attachedPortal=Tt,this.attachTemplatePortal(Tt)):this.attachDomPortal&&Tt instanceof F?(this._attachedPortal=Tt,this.attachDomPortal(Tt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Tt){this._disposeFn=Tt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class K extends z{constructor(Tt,At,ft,Et,Bt){super(),this.outletElement=Tt,this._componentFactoryResolver=At,this._appRef=ft,this._defaultInjector=Et,this.attachDomPortal=Ft=>{const se=Ft.element,Gt=this._document.createComment("dom-portal");se.parentNode.insertBefore(Gt,se),this.outletElement.appendChild(se),this._attachedPortal=Ft,super.setDisposeFn(()=>{Gt.parentNode&&Gt.parentNode.replaceChild(se,Gt)})},this._document=Bt}attachComponentPortal(Tt){const ft=(Tt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Tt.component);let Et;return Tt.viewContainerRef?(Et=Tt.viewContainerRef.createComponent(ft,Tt.viewContainerRef.length,Tt.injector||Tt.viewContainerRef.injector),this.setDisposeFn(()=>Et.destroy())):(Et=ft.create(Tt.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(Et.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Et.hostView),Et.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Et)),this._attachedPortal=Tt,Et}attachTemplatePortal(Tt){let At=Tt.viewContainerRef,ft=At.createEmbeddedView(Tt.templateRef,Tt.context,{injector:Tt.injector});return ft.rootNodes.forEach(Et=>this.outletElement.appendChild(Et)),ft.detectChanges(),this.setDisposeFn(()=>{let Et=At.indexOf(ft);-1!==Et&&At.remove(Et)}),this._attachedPortal=Tt,ft}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Tt){return Tt.hostView.rootNodes[0]}}let ct=(()=>{class it extends P{constructor(At,ft){super(At,ft)}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(d.Rgc),d.Y36(d.s_b))},it.\u0275dir=d.lG2({type:it,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),it})(),Dt=(()=>{class it extends z{constructor(At,ft,Et){super(),this._componentFactoryResolver=At,this._viewContainerRef=ft,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Bt=>{const Ft=Bt.element,se=this._document.createComment("dom-portal");Bt.setAttachedHost(this),Ft.parentNode.insertBefore(se,Ft),this._getRootNode().appendChild(Ft),this._attachedPortal=Bt,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(Ft,se)})},this._document=Et}get portal(){return this._attachedPortal}set portal(At){this.hasAttached()&&!At&&!this._isInitialized||(this.hasAttached()&&super.detach(),At&&super.attach(At),this._attachedPortal=At||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(At){At.setAttachedHost(this);const ft=null!=At.viewContainerRef?At.viewContainerRef:this._viewContainerRef,Bt=(At.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(At.component),Ft=ft.createComponent(Bt,ft.length,At.injector||ft.injector);return ft!==this._viewContainerRef&&this._getRootNode().appendChild(Ft.hostView.rootNodes[0]),super.setDisposeFn(()=>Ft.destroy()),this._attachedPortal=At,this._attachedRef=Ft,this.attached.emit(Ft),Ft}attachTemplatePortal(At){At.setAttachedHost(this);const ft=this._viewContainerRef.createEmbeddedView(At.templateRef,At.context,{injector:At.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=At,this._attachedRef=ft,this.attached.emit(ft),ft}_getRootNode(){const At=this._viewContainerRef.element.nativeElement;return At.nodeType===At.ELEMENT_NODE?At:At.parentNode}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(p.K0))},it.\u0275dir=d.lG2({type:it,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),it})(),zt=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=d.oAB({type:it}),it.\u0275inj=d.cJS({}),it})()},67376:(ot,et,v)=>{"use strict";v.d(et,{Cl:()=>$e,PQ:()=>it,ZD:()=>qe,mF:()=>Vt,rL:()=>At});var d=v(21281),p=v(94650),b=v(8929),T=v(21086),t=v(56498),A=v(23753),k=(v(90352),v(8139),v(57138)),D=v(92198),P=v(7625),F=v(83353),z=v(36895),J=v(40445);let Vt=(()=>{class Xt{constructor(ae,Kt,de){this._ngZone=ae,this._platform=Kt,this._scrolled=new b.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=de}register(ae){this.scrollContainers.has(ae)||this.scrollContainers.set(ae,ae.elementScrolled().subscribe(()=>this._scrolled.next(ae)))}deregister(ae){const Kt=this.scrollContainers.get(ae);Kt&&(Kt.unsubscribe(),this.scrollContainers.delete(ae))}scrolled(ae=20){return this._platform.isBrowser?new t.y(Kt=>{this._globalSubscription||this._addGlobalListener();const de=ae>0?this._scrolled.pipe((0,k.e)(ae)).subscribe(Kt):this._scrolled.subscribe(Kt);return this._scrolledCount++,()=>{de.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ae,Kt)=>this.deregister(Kt)),this._scrolled.complete()}ancestorScrolled(ae,Kt){const de=this.getAncestorScrollContainers(ae);return this.scrolled(Kt).pipe((0,D.h)(Wt=>!Wt||de.indexOf(Wt)>-1))}getAncestorScrollContainers(ae){const Kt=[];return this.scrollContainers.forEach((de,Wt)=>{this._scrollableContainsElement(Wt,ae)&&Kt.push(Wt)}),Kt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ae,Kt){let de=(0,d.fI)(Kt),Wt=ae.getElementRef().nativeElement;do{if(de==Wt)return!0}while(de=de.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ae=this._getWindow();return(0,A.R)(ae.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(p.R0b),p.LFG(F.t4),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),it=(()=>{class Xt{constructor(ae,Kt,de,Wt){this.elementRef=ae,this.scrollDispatcher=Kt,this.ngZone=de,this.dir=Wt,this._destroyed=new b.xQ,this._elementScrolled=new t.y(re=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(re)))}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(ae){const Kt=this.elementRef.nativeElement,de=this.dir&&"rtl"==this.dir.value;null==ae.left&&(ae.left=de?ae.end:ae.start),null==ae.right&&(ae.right=de?ae.start:ae.end),null!=ae.bottom&&(ae.top=Kt.scrollHeight-Kt.clientHeight-ae.bottom),de&&0!=(0,F._i)()?(null!=ae.left&&(ae.right=Kt.scrollWidth-Kt.clientWidth-ae.left),2==(0,F._i)()?ae.left=ae.right:1==(0,F._i)()&&(ae.left=ae.right?-ae.right:ae.right)):null!=ae.right&&(ae.left=Kt.scrollWidth-Kt.clientWidth-ae.right),this._applyScrollToOptions(ae)}_applyScrollToOptions(ae){const Kt=this.elementRef.nativeElement;(0,F.Mq)()?Kt.scrollTo(ae):(null!=ae.top&&(Kt.scrollTop=ae.top),null!=ae.left&&(Kt.scrollLeft=ae.left))}measureScrollOffset(ae){const Kt="left",Wt=this.elementRef.nativeElement;if("top"==ae)return Wt.scrollTop;if("bottom"==ae)return Wt.scrollHeight-Wt.clientHeight-Wt.scrollTop;const re=this.dir&&"rtl"==this.dir.value;return"start"==ae?ae=re?"right":Kt:"end"==ae&&(ae=re?Kt:"right"),re&&2==(0,F._i)()?ae==Kt?Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft:Wt.scrollLeft:re&&1==(0,F._i)()?ae==Kt?Wt.scrollLeft+Wt.scrollWidth-Wt.clientWidth:-Wt.scrollLeft:ae==Kt?Wt.scrollLeft:Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.Y36(p.SBq),p.Y36(Vt),p.Y36(p.R0b),p.Y36(J.Is,8))},Xt.\u0275dir=p.lG2({type:Xt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Xt})(),At=(()=>{class Xt{constructor(ae,Kt,de){this._platform=ae,this._change=new b.xQ,this._changeListener=Wt=>{this._change.next(Wt)},this._document=de,Kt.runOutsideAngular(()=>{if(ae.isBrowser){const Wt=this._getWindow();Wt.addEventListener("resize",this._changeListener),Wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ae=this._getWindow();ae.removeEventListener("resize",this._changeListener),ae.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ae={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ae}getViewportRect(){const ae=this.getViewportScrollPosition(),{width:Kt,height:de}=this.getViewportSize();return{top:ae.top,left:ae.left,bottom:ae.top+de,right:ae.left+Kt,height:de,width:Kt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ae=this._document,Kt=this._getWindow(),de=ae.documentElement,Wt=de.getBoundingClientRect();return{top:-Wt.top||ae.body.scrollTop||Kt.scrollY||de.scrollTop||0,left:-Wt.left||ae.body.scrollLeft||Kt.scrollX||de.scrollLeft||0}}change(ae=20){return ae>0?this._change.pipe((0,k.e)(ae)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ae=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ae.innerWidth,height:ae.innerHeight}:{width:0,height:0}}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(F.t4),p.LFG(p.R0b),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),qe=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({}),Xt})(),$e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({imports:[J.vT,qe,J.vT,qe]}),Xt})()},12138:(ot,et,v)=>{"use strict";v.d(et,{B8:()=>Pt,KL:()=>z,U5:()=>it,be:()=>Dt,gx:()=>vt,po:()=>Vt,st:()=>zt,u6:()=>J});var d=v(12687),p=v(40445),b=v(21281),T=v(29521),t=v(94650),A=v(83353),x=v(8929),U=v(21086),k=v(1059),D=v(7625);function P(Tt,At){1&Tt&&t.Hsn(0)}const F=["*"];let z=(()=>{class Tt{constructor(ft){this._elementRef=ft}focus(){this._elementRef.nativeElement.focus()}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.SBq))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Tt})(),J=(()=>{class Tt{constructor(ft){this.template=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.Rgc))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepLabel",""]]}),Tt})(),K=0;const vt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Dt=(()=>{class Tt{constructor(ft,Et){this._stepper=ft,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Et||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ft){this._editable=(0,b.Ig)(ft)}get optional(){return this._optional}set optional(ft){this._optional=(0,b.Ig)(ft)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ft){this._completedOverride=(0,b.Ig)(ft)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ft){this._customError=(0,b.Ig)(ft)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36((0,t.Gpc)(()=>Pt)),t.Y36(vt,8))},Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["cdk-step"]],contentQueries:function(ft,Et,Bt){if(1&ft&&t.Suo(Bt,J,5),2&ft){let Ft;t.iGM(Ft=t.CRH())&&(Et.stepLabel=Ft.first)}},viewQuery:function(ft,Et){if(1&ft&&t.Gf(t.Rgc,7),2&ft){let Bt;t.iGM(Bt=t.CRH())&&(Et.content=Bt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(ft,Et){1&ft&&(t.F$t(),t.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Tt})(),Pt=(()=>{class Tt{constructor(ft,Et,Bt){this._dir=ft,this._changeDetectorRef=Et,this._elementRef=Bt,this._destroyed=new x.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=K++}get linear(){return this._linear}set linear(ft){this._linear=(0,b.Ig)(ft)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ft){const Et=(0,b.su)(ft);this.steps&&this._steps?(this._isValidIndex(Et),this.selected?._markAsInteracted(),this._selectedIndex!==Et&&!this._anyControlsInvalidOrPending(Et)&&(Et>=this._selectedIndex||this.steps.toArray()[Et].editable)&&this._updateSelectedItemIndex(Et)):this._selectedIndex=Et}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ft){this.selectedIndex=ft&&this.steps?this.steps.toArray().indexOf(ft):-1}get orientation(){return this._orientation}set orientation(ft){this._orientation=ft,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ft)}ngAfterContentInit(){this._steps.changes.pipe((0,k.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(ft=>{this.steps.reset(ft.filter(Et=>Et._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,k.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(ft=>{this._sortedHeaders.reset(ft.toArray().sort((Et,Bt)=>Et._elementRef.nativeElement.compareDocumentPosition(Bt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new d.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,U.of)()).pipe((0,k.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(ft=>this._keyManager.withHorizontalOrientation(ft)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ft=>ft.reset()),this._stateChanged()}_getStepLabelId(ft){return`cdk-step-label-${this._groupId}-${ft}`}_getStepContentId(ft){return`cdk-step-content-${this._groupId}-${ft}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ft){const Et=ft-this._selectedIndex;return Et<0?"rtl"===this._layoutDirection()?"next":"previous":Et>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ft,Et="number"){const Bt=this.steps.toArray()[ft],Ft=this._isCurrentStep(ft);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,Ft):this._getGuidelineLogic(Bt,Ft,Et)}_getDefaultIndicatorLogic(ft,Et){return ft._showError()&&ft.hasError&&!Et?"error":!ft.completed||Et?"number":ft.editable?"edit":"done"}_getGuidelineLogic(ft,Et,Bt="number"){return ft._showError()&&ft.hasError&&!Et?"error":ft.completed&&!Et?"done":ft.completed&&Et?Bt:ft.editable&&Et?"edit":Bt}_isCurrentStep(ft){return this._selectedIndex===ft}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ft){const Et=this.steps.toArray();this.selectionChange.emit({selectedIndex:ft,previouslySelectedIndex:this._selectedIndex,selectedStep:Et[ft],previouslySelectedStep:Et[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ft):this._keyManager.updateActiveItem(ft),this._selectedIndex=ft,this._stateChanged()}_onKeydown(ft){const Et=(0,T.Vb)(ft),Bt=ft.keyCode,Ft=this._keyManager;null==Ft.activeItemIndex||Et||Bt!==T.L_&&Bt!==T.K5?Ft.onKeydown(ft):(this.selectedIndex=Ft.activeItemIndex,ft.preventDefault())}_anyControlsInvalidOrPending(ft){return!!(this._linear&&ft>=0)&&this.steps.toArray().slice(0,ft).some(Et=>{const Bt=Et.stepControl;return(Bt?Bt.invalid||Bt.pending||!Et.interacted:!Et.completed)&&!Et.optional&&!Et._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ft=this._elementRef.nativeElement,Et=(0,A.ht)();return ft===Et||ft.contains(Et)}_isValidIndex(ft){return ft>-1&&(!this.steps||ft{class Tt{constructor(ft){this._stepper=ft,this.type="submit"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Pt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.next()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),Vt=(()=>{class Tt{constructor(ft){this._stepper=ft,this.type="button"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Pt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.previous()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),it=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[p.vT]}),Tt})()},39349:(ot,et,v)=>{"use strict";v.d(et,{IC:()=>z,Ky:()=>J,Lq:()=>P});var d=v(83353),p=v(94650),b=v(21281),T=v(68896),t=v(8929),A=v(23753),x=v(57138),U=v(7625),k=v(36895);const D=(0,d.i$)({passive:!0});let P=(()=>{class K{constructor(ct,vt){this._platform=ct,this._ngZone=vt,this._monitoredElements=new Map}monitor(ct){if(!this._platform.isBrowser)return T.E;const vt=(0,b.fI)(ct),Dt=this._monitoredElements.get(vt);if(Dt)return Dt.subject;const Pt=new t.xQ,zt="cdk-text-field-autofilled",Vt=it=>{"cdk-text-field-autofill-start"!==it.animationName||vt.classList.contains(zt)?"cdk-text-field-autofill-end"===it.animationName&&vt.classList.contains(zt)&&(vt.classList.remove(zt),this._ngZone.run(()=>Pt.next({target:it.target,isAutofilled:!1}))):(vt.classList.add(zt),this._ngZone.run(()=>Pt.next({target:it.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{vt.addEventListener("animationstart",Vt,D),vt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(vt,{subject:Pt,unlisten:()=>{vt.removeEventListener("animationstart",Vt,D)}}),Pt}stopMonitoring(ct){const vt=(0,b.fI)(ct),Dt=this._monitoredElements.get(vt);Dt&&(Dt.unlisten(),Dt.subject.complete(),vt.classList.remove("cdk-text-field-autofill-monitored"),vt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(vt))}ngOnDestroy(){this._monitoredElements.forEach((ct,vt)=>this.stopMonitoring(vt))}}return K.\u0275fac=function(ct){return new(ct||K)(p.LFG(d.t4),p.LFG(p.R0b))},K.\u0275prov=p.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),z=(()=>{class K{constructor(ct,vt,Dt,Pt){this._elementRef=ct,this._platform=vt,this._ngZone=Dt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=zt=>{this._hasFocus="focus"===zt.type},this._document=Pt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ct){this._minRows=(0,b.su)(ct),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ct){this._maxRows=(0,b.su)(ct),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ct){ct=(0,b.Ig)(ct),this._enabled!==ct&&((this._enabled=ct)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ct){this._cachedPlaceholderHeight=void 0,ct?this._textareaElement.setAttribute("placeholder",ct):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ct=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.minHeight=ct)}_setMaxHeight(){const ct=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.maxHeight=ct)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ct=this._getWindow();(0,A.R)(ct,"resize").pipe((0,x.e)(16),(0,U.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ct=this._textareaElement.cloneNode(!1);ct.rows=1,ct.style.position="absolute",ct.style.visibility="hidden",ct.style.border="none",ct.style.padding="0",ct.style.height="",ct.style.minHeight="",ct.style.maxHeight="",ct.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ct),this._cachedLineHeight=ct.clientHeight,ct.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ct=this._textareaElement,vt=ct.style.marginBottom||"",Dt=this._platform.FIREFOX,Pt=Dt&&this._hasFocus,zt=Dt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Pt&&(ct.style.marginBottom=`${ct.clientHeight}px`),ct.classList.add(zt);const Vt=ct.scrollHeight-4;return ct.classList.remove(zt),Pt&&(ct.style.marginBottom=vt),Vt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ct=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ct}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ct=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const vt=this._elementRef.nativeElement,Dt=vt.value;if(!ct&&this._minRows===this._previousMinRows&&Dt===this._previousValue)return;const Pt=this._measureScrollHeight(),zt=Math.max(Pt,this._cachedPlaceholderHeight||0);vt.style.height=`${zt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(vt)):setTimeout(()=>this._scrollToCaretPosition(vt))}),this._previousValue=Dt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ct){const{selectionStart:vt,selectionEnd:Dt}=ct;!this._destroyed.isStopped&&this._hasFocus&&ct.setSelectionRange(vt,Dt)}}return K.\u0275fac=function(ct){return new(ct||K)(p.Y36(p.SBq),p.Y36(d.t4),p.Y36(p.R0b),p.Y36(k.K0,8))},K.\u0275dir=p.lG2({type:K,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ct,vt){1&ct&&p.NdJ("input",function(){return vt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),K})(),J=(()=>{class K{}return K.\u0275fac=function(ct){return new(ct||K)},K.\u0275mod=p.oAB({type:K}),K.\u0275inj=p.cJS({}),K})()},57851:(ot,et,v)=>{"use strict";v.d(et,{C2:()=>z,HI:()=>K,Hs:()=>At,Ud:()=>Gt,VY:()=>J,XJ:()=>se,Xx:()=>Bt,_0:()=>Tt,cu:()=>at,nZ:()=>be,rO:()=>vt});var d=v(95017),p=v(54715),b=v(8929),T=v(591),t=v(21086),A=v(72986),x=v(92198),U=v(7625),k=v(94650),D=v(21281),P=v(40445);class F{constructor(){this.expansionModel=new d.Ov(!0)}toggle(qe){this.expansionModel.toggle(this._trackByValue(qe))}expand(qe){this.expansionModel.select(this._trackByValue(qe))}collapse(qe){this.expansionModel.deselect(this._trackByValue(qe))}isExpanded(qe){return this.expansionModel.isSelected(this._trackByValue(qe))}toggleDescendants(qe){this.expansionModel.isSelected(this._trackByValue(qe))?this.collapseDescendants(qe):this.expandDescendants(qe)}collapseAll(){this.expansionModel.clear()}expandDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.select(...$e.map(Xt=>this._trackByValue(Xt)))}collapseDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.deselect(...$e.map(Xt=>this._trackByValue(Xt)))}_trackByValue(qe){return this.trackBy?this.trackBy(qe):qe}}class z extends F{constructor(qe,$e,Xt){super(),this.getLevel=qe,this.isExpandable=$e,this.options=Xt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(qe){const Xt=[];for(let Te=this.dataNodes.indexOf(qe)+1;Tethis._trackByValue(qe)))}}class J extends F{constructor(qe,$e){super(),this.getChildren=qe,this.options=$e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const qe=this.dataNodes.reduce(($e,Xt)=>[...$e,...this.getDescendants(Xt),Xt],[]);this.expansionModel.select(...qe.map($e=>this._trackByValue($e)))}getDescendants(qe){const $e=[];return this._getDescendants($e,qe),$e.splice(1)}_getDescendants(qe,$e){qe.push($e);const Xt=this.getChildren($e);Array.isArray(Xt)?Xt.forEach(Te=>this._getDescendants(qe,Te)):(0,p.b)(Xt)&&Xt.pipe((0,A.q)(1),(0,x.h)(Boolean)).subscribe(Te=>{for(const ae of Te)this._getDescendants(qe,ae)})}}const K=new k.OlP("CDK_TREE_NODE_OUTLET_NODE");let at=(()=>{class Le{constructor($e,Xt){this.viewContainer=$e,this._node=Xt}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.s_b),k.Y36(K,8))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodeOutlet",""]]}),Le})();class ct{constructor(qe){this.$implicit=qe}}let vt=(()=>{class Le{constructor($e){this.template=$e}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.Rgc))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Le})(),Tt=(()=>{class Le{constructor($e,Xt){this._differs=$e,this._changeDetectorRef=Xt,this._onDestroy=new b.xQ,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource($e){this._dataSource!==$e&&this._switchDataSource($e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const $e=this._nodeDefs.filter(Xt=>!Xt.when);this._defaultNodeDef=$e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource($e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),$e||this._nodeOutlet.viewContainer.clear(),this._dataSource=$e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let $e;(0,d.Z9)(this._dataSource)?$e=this._dataSource.connect(this):(0,p.b)(this._dataSource)?$e=this._dataSource:Array.isArray(this._dataSource)&&($e=(0,t.of)(this._dataSource)),$e&&(this._dataSubscription=$e.pipe((0,U.R)(this._onDestroy)).subscribe(Xt=>this.renderNodeChanges(Xt)))}renderNodeChanges($e,Xt=this._dataDiffer,Te=this._nodeOutlet.viewContainer,ae){const Kt=Xt.diff($e);!Kt||(Kt.forEachOperation((de,Wt,re)=>{if(null==de.previousIndex)this.insertNode($e[re],re,Te,ae);else if(null==re)Te.remove(Wt),this._levels.delete(de.item);else{const De=Te.get(Wt);Te.move(De,re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef($e,Xt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ae=>ae.when&&ae.when(Xt,$e))||this._defaultNodeDef}insertNode($e,Xt,Te,ae){const Kt=this._getNodeDef($e,Xt),de=new ct($e);de.level=this.treeControl.getLevel?this.treeControl.getLevel($e):typeof ae<"u"&&this._levels.has(ae)?this._levels.get(ae)+1:0,this._levels.set($e,de.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(Kt.template,de,Xt),At.mostRecentTreeNode&&(At.mostRecentTreeNode.data=$e)}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.ZZ4),k.Y36(k.sBO))},Le.\u0275cmp=k.Xpm({type:Le,selectors:[["cdk-tree"]],contentQueries:function($e,Xt,Te){if(1&$e&&k.Suo(Te,vt,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt._nodeDefs=ae)}},viewQuery:function($e,Xt){if(1&$e&&k.Gf(at,7),2&$e){let Te;k.iGM(Te=k.CRH())&&(Xt._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function($e,Xt){1&$e&&k.GkF(0,0)},dependencies:[at],encapsulation:2}),Le})(),At=(()=>{class Le{constructor($e,Xt){this._elementRef=$e,this._tree=Xt,this._destroyed=new b.xQ,this._dataChanges=new b.xQ,Le.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role($e){this._elementRef.nativeElement.setAttribute("role",$e)}get data(){return this._data}set data($e){$e!==this._data&&(this._data=$e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ft(Le){let qe=Le.parentElement;for(;qe&&!Et(qe);)qe=qe.parentElement;return qe?qe.classList.contains("cdk-nested-tree-node")?(0,D.su)(qe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Le.mostRecentTreeNode===this&&(Le.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Le.mostRecentTreeNode=null,Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.SBq),k.Y36(Tt))},Le.\u0275dir=k.lG2({type:Le,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function($e,Xt){2&$e&&k.uIk("aria-expanded",Xt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Le})();function Et(Le){const qe=Le.classList;return!(!qe?.contains("cdk-nested-tree-node")&&!qe?.contains("cdk-tree"))}let Bt=(()=>{class Le extends At{constructor($e,Xt,Te){super($e,Xt),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const $e=this._tree.treeControl.getChildren(this.data);Array.isArray($e)?this.updateChildrenNodes($e):(0,p.b)($e)&&$e.pipe((0,U.R)(this._destroyed)).subscribe(Xt=>this.updateChildrenNodes(Xt)),this.nodeOutlet.changes.pipe((0,U.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes($e){const Xt=this._getNodeOutlet();$e&&(this._children=$e),Xt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Xt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const $e=this._getNodeOutlet();$e&&($e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const $e=this.nodeOutlet;return $e&&$e.find(Xt=>!Xt._node||Xt._node===this)}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(k.SBq),k.Y36(Tt),k.Y36(k.ZZ4))},Le.\u0275dir=k.lG2({type:Le,selectors:[["cdk-nested-tree-node"]],contentQueries:function($e,Xt,Te){if(1&$e&&k.Suo(Te,at,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt.nodeOutlet=ae)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[k._Bn([{provide:At,useExisting:Le},{provide:K,useExisting:Le}]),k.qOj]}),Le})();const Ft=/([A-Za-z%]+)$/;let se=(()=>{class Le{constructor($e,Xt,Te,ae){this._treeNode=$e,this._tree=Xt,this._element=Te,this._dir=ae,this._destroyed=new b.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ae&&ae.change.pipe((0,U.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),$e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level($e){this._setLevelInput($e)}get indent(){return this._indent}set indent($e){this._setIndentInput($e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const $e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Xt=this._level??$e;return"number"==typeof Xt?`${Xt*this._indent}${this.indentUnits}`:null}_setPadding($e=!1){const Xt=this._paddingIndent();if(Xt!==this._currentPadding||$e){const Te=this._element.nativeElement,ae=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Kt="paddingLeft"===ae?"paddingRight":"paddingLeft";Te.style[ae]=Xt||"",Te.style[Kt]="",this._currentPadding=Xt}}_setLevelInput($e){this._level=(0,D.su)($e,null),this._setPadding()}_setIndentInput($e){let Xt=$e,Te="px";if("string"==typeof $e){const ae=$e.split(Ft);Xt=ae[0],Te=ae[1]||Te}this.indentUnits=Te,this._indent=(0,D.su)(Xt),this._setPadding()}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(At),k.Y36(Tt),k.Y36(k.SBq),k.Y36(P.Is,8))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Le})(),Gt=(()=>{class Le{constructor($e,Xt){this._tree=$e,this._treeNode=Xt,this._recursive=!1}get recursive(){return this._recursive}set recursive($e){this._recursive=(0,D.Ig)($e)}_toggle($e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),$e.stopPropagation()}}return Le.\u0275fac=function($e){return new($e||Le)(k.Y36(Tt),k.Y36(At))},Le.\u0275dir=k.lG2({type:Le,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function($e,Xt){1&$e&&k.NdJ("click",function(ae){return Xt._toggle(ae)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Le})(),be=(()=>{class Le{}return Le.\u0275fac=function($e){return new($e||Le)},Le.\u0275mod=k.oAB({type:Le}),Le.\u0275inj=k.cJS({}),Le})()},36895:(ot,et,v)=>{"use strict";v.d(et,{Do:()=>Pt,ED:()=>Mc,EM:()=>Bc,H9:()=>ql,HT:()=>t,JF:()=>ks,JJ:()=>Nl,K0:()=>x,Mx:()=>Rn,NF:()=>_u,Nd:()=>zc,O5:()=>dr,Ov:()=>xl,PC:()=>Wr,PM:()=>Mr,RF:()=>Zc,S$:()=>ct,V_:()=>D,Ye:()=>zt,b0:()=>Dt,bD:()=>gc,ez:()=>Rl,i8:()=>Dc,mk:()=>Qi,n9:()=>al,q:()=>b,qS:()=>Be,rS:()=>Rc,sg:()=>ir,tP:()=>qs,uU:()=>Al,w_:()=>A});var d=v(94650);let p=null;function b(){return p}function t(Mt){p||(p=Mt)}class A{}const x=new d.OlP("DocumentToken");let U=(()=>{class Mt{historyGo(jt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function k(){return(0,d.LFG)(P)}()},providedIn:"platform"}),Mt})();const D=new d.OlP("Location Initialized");let P=(()=>{class Mt extends U{constructor(jt){super(),this._doc=jt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return b().getBaseHref(this._doc)}onPopState(jt){const Qe=b().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("popstate",jt,!1),()=>Qe.removeEventListener("popstate",jt)}onHashChange(jt){const Qe=b().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("hashchange",jt,!1),()=>Qe.removeEventListener("hashchange",jt)}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(jt){this.location.pathname=jt}pushState(jt,Qe,Ln){F()?this._history.pushState(jt,Qe,Ln):this.location.hash=Ln}replaceState(jt,Qe,Ln){F()?this._history.replaceState(jt,Qe,Ln):this.location.hash=Ln}forward(){this._history.forward()}back(){this._history.back()}historyGo(jt=0){this._history.go(jt)}getState(){return this._history.state}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(x))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function z(){return new P((0,d.LFG)(x))}()},providedIn:"platform"}),Mt})();function F(){return!!window.history.pushState}function J(Mt,me){if(0==Mt.length)return me;if(0==me.length)return Mt;let jt=0;return Mt.endsWith("/")&&jt++,me.startsWith("/")&&jt++,2==jt?Mt+me.substring(1):1==jt?Mt+me:Mt+"/"+me}function K(Mt){const me=Mt.match(/#|\?|$/),jt=me&&me.index||Mt.length;return Mt.slice(0,jt-("/"===Mt[jt-1]?1:0))+Mt.slice(jt)}function at(Mt){return Mt&&"?"!==Mt[0]?"?"+Mt:Mt}let ct=(()=>{class Mt{historyGo(jt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return(0,d.f3M)(Dt)},providedIn:"root"}),Mt})();const vt=new d.OlP("appBaseHref");let Dt=(()=>{class Mt extends ct{constructor(jt,Qe){super(),this._platformLocation=jt,this._removeListenerFns=[],this._baseHref=Qe??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(x).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(jt){this._removeListenerFns.push(this._platformLocation.onPopState(jt),this._platformLocation.onHashChange(jt))}getBaseHref(){return this._baseHref}prepareExternalUrl(jt){return J(this._baseHref,jt)}path(jt=!1){const Qe=this._platformLocation.pathname+at(this._platformLocation.search),Ln=this._platformLocation.hash;return Ln&&jt?`${Qe}${Ln}`:Qe}pushState(jt,Qe,Ln,It){const ce=this.prepareExternalUrl(Ln+at(It));this._platformLocation.pushState(jt,Qe,ce)}replaceState(jt,Qe,Ln,It){const ce=this.prepareExternalUrl(Ln+at(It));this._platformLocation.replaceState(jt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(jt=0){this._platformLocation.historyGo?.(jt)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(U),d.LFG(vt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Pt=(()=>{class Mt extends ct{constructor(jt,Qe){super(),this._platformLocation=jt,this._baseHref="",this._removeListenerFns=[],null!=Qe&&(this._baseHref=Qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(jt){this._removeListenerFns.push(this._platformLocation.onPopState(jt),this._platformLocation.onHashChange(jt))}getBaseHref(){return this._baseHref}path(jt=!1){let Qe=this._platformLocation.hash;return null==Qe&&(Qe="#"),Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(jt){const Qe=J(this._baseHref,jt);return Qe.length>0?"#"+Qe:Qe}pushState(jt,Qe,Ln,It){let ce=this.prepareExternalUrl(Ln+at(It));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(jt,Qe,ce)}replaceState(jt,Qe,Ln,It){let ce=this.prepareExternalUrl(Ln+at(It));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(jt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(jt=0){this._platformLocation.historyGo?.(jt)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(U),d.LFG(vt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),zt=(()=>{class Mt{constructor(jt){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=jt;const Qe=this._locationStrategy.getBaseHref();this._baseHref=K(Tt(Qe)),this._locationStrategy.onPopState(Ln=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ln.state,type:Ln.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(jt=!1){return this.normalize(this._locationStrategy.path(jt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(jt,Qe=""){return this.path()==this.normalize(jt+at(Qe))}normalize(jt){return Mt.stripTrailingSlash(function it(Mt,me){return Mt&&me.startsWith(Mt)?me.substring(Mt.length):me}(this._baseHref,Tt(jt)))}prepareExternalUrl(jt){return jt&&"/"!==jt[0]&&(jt="/"+jt),this._locationStrategy.prepareExternalUrl(jt)}go(jt,Qe="",Ln=null){this._locationStrategy.pushState(Ln,"",jt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(jt+at(Qe)),Ln)}replaceState(jt,Qe="",Ln=null){this._locationStrategy.replaceState(Ln,"",jt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(jt+at(Qe)),Ln)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(jt=0){this._locationStrategy.historyGo?.(jt)}onUrlChange(jt){return this._urlChangeListeners.push(jt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(jt);this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(jt="",Qe){this._urlChangeListeners.forEach(Ln=>Ln(jt,Qe))}subscribe(jt,Qe,Ln){return this._subject.subscribe({next:jt,error:Qe,complete:Ln})}}return Mt.normalizeQueryParams=at,Mt.joinWithSlash=J,Mt.stripTrailingSlash=K,Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(ct))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function Vt(){return new zt((0,d.LFG)(ct))}()},providedIn:"root"}),Mt})();function Tt(Mt){return Mt.replace(/\/index.html$/,"")}const At={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Percent=1]="Percent",ft[ft.Currency=2]="Currency",ft[ft.Scientific=3]="Scientific",ft))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),Ft=(()=>((Ft=Ft||{})[Ft.Narrow=0]="Narrow",Ft[Ft.Abbreviated=1]="Abbreviated",Ft[Ft.Wide=2]="Wide",Ft[Ft.Short=3]="Short",Ft))(),se=(()=>((se=se||{})[se.Short=0]="Short",se[se.Medium=1]="Medium",se[se.Long=2]="Long",se[se.Full=3]="Full",se))(),Gt=(()=>((Gt=Gt||{})[Gt.Decimal=0]="Decimal",Gt[Gt.Group=1]="Group",Gt[Gt.List=2]="List",Gt[Gt.PercentSign=3]="PercentSign",Gt[Gt.PlusSign=4]="PlusSign",Gt[Gt.MinusSign=5]="MinusSign",Gt[Gt.Exponential=6]="Exponential",Gt[Gt.SuperscriptingExponent=7]="SuperscriptingExponent",Gt[Gt.PerMille=8]="PerMille",Gt[Gt.Infinity=9]="Infinity",Gt[Gt.NaN=10]="NaN",Gt[Gt.TimeSeparator=11]="TimeSeparator",Gt[Gt.CurrencyDecimal=12]="CurrencyDecimal",Gt[Gt.CurrencyGroup=13]="CurrencyGroup",Gt))();function Kt(Mt,me){return si((0,d.cg1)(Mt)[d.wAp.DateFormat],me)}function de(Mt,me){return si((0,d.cg1)(Mt)[d.wAp.TimeFormat],me)}function Wt(Mt,me){return si((0,d.cg1)(Mt)[d.wAp.DateTimeFormat],me)}function re(Mt,me){const jt=(0,d.cg1)(Mt),Qe=jt[d.wAp.NumberSymbols][me];if(typeof Qe>"u"){if(me===Gt.CurrencyDecimal)return jt[d.wAp.NumberSymbols][Gt.Decimal];if(me===Gt.CurrencyGroup)return jt[d.wAp.NumberSymbols][Gt.Group]}return Qe}function De(Mt,me){return(0,d.cg1)(Mt)[d.wAp.NumberFormats][me]}function un(Mt){if(!Mt[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Mt[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function si(Mt,me){for(let jt=me;jt>-1;jt--)if(typeof Mt[jt]<"u")return Mt[jt];throw new Error("Locale data API: locale data undefined")}function Ke(Mt){const[me,jt]=Mt.split(":");return{hours:+me,minutes:+jt}}const kt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Jt={},oe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.ShortGMT=1]="ShortGMT",Ce[Ce.Long=2]="Long",Ce[Ce.Extended=3]="Extended",Ce))(),Oe=(()=>((Oe=Oe||{})[Oe.FullYear=0]="FullYear",Oe[Oe.Month=1]="Month",Oe[Oe.Date=2]="Date",Oe[Oe.Hours=3]="Hours",Oe[Oe.Minutes=4]="Minutes",Oe[Oe.Seconds=5]="Seconds",Oe[Oe.FractionalSeconds=6]="FractionalSeconds",Oe[Oe.Day=7]="Day",Oe))(),Dn=(()=>((Dn=Dn||{})[Dn.DayPeriods=0]="DayPeriods",Dn[Dn.Days=1]="Days",Dn[Dn.Months=2]="Months",Dn[Dn.Eras=3]="Eras",Dn))();function Sn(Mt,me,jt,Qe){let Ln=function Re(Mt){if(gi(Mt))return Mt;if("number"==typeof Mt&&!isNaN(Mt))return new Date(Mt);if("string"==typeof Mt){if(Mt=Mt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Mt)){const[Ln,It=1,ce=1]=Mt.split("-").map(Ze=>+Ze);return mi(Ln,It-1,ce)}const jt=parseFloat(Mt);if(!isNaN(Mt-jt))return new Date(jt);let Qe;if(Qe=Mt.match(kt))return function En(Mt){const me=new Date(0);let jt=0,Qe=0;const Ln=Mt[8]?me.setUTCFullYear:me.setFullYear,It=Mt[8]?me.setUTCHours:me.setHours;Mt[9]&&(jt=Number(Mt[9]+Mt[10]),Qe=Number(Mt[9]+Mt[11])),Ln.call(me,Number(Mt[1]),Number(Mt[2])-1,Number(Mt[3]));const ce=Number(Mt[4]||0)-jt,Ze=Number(Mt[5]||0)-Qe,tn=Number(Mt[6]||0),bn=Math.floor(1e3*parseFloat("0."+(Mt[7]||0)));return It.call(me,ce,Ze,tn,bn),me}(Qe)}const me=new Date(Mt);if(!gi(me))throw new Error(`Unable to convert "${Mt}" into a date`);return me}(Mt);me=Li(jt,me)||me;let Ze,ce=[];for(;me;){if(Ze=oe.exec(me),!Ze){ce.push(me);break}{ce=ce.concat(Ze.slice(1));const Jn=ce.pop();if(!Jn)break;me=Jn}}let tn=Ln.getTimezoneOffset();Qe&&(tn=Ne(Qe,tn),Ln=function he(Mt,me,jt){const Qe=jt?-1:1,Ln=Mt.getTimezoneOffset();return function Tn(Mt,me){return(Mt=new Date(Mt.getTime())).setMinutes(Mt.getMinutes()+me),Mt}(Mt,Qe*(Ne(me,Ln)-Ln))}(Ln,Qe,!0));let bn="";return ce.forEach(Jn=>{const Qn=function Xe(Mt){if(ye[Mt])return ye[Mt];let me;switch(Mt){case"G":case"GG":case"GGG":me=fn(Dn.Eras,Ft.Abbreviated);break;case"GGGG":me=fn(Dn.Eras,Ft.Wide);break;case"GGGGG":me=fn(Dn.Eras,Ft.Narrow);break;case"y":me=jn(Oe.FullYear,1,0,!1,!0);break;case"yy":me=jn(Oe.FullYear,2,0,!0,!0);break;case"yyy":me=jn(Oe.FullYear,3,0,!1,!0);break;case"yyyy":me=jn(Oe.FullYear,4,0,!1,!0);break;case"Y":me=Ot(1);break;case"YY":me=Ot(2,!0);break;case"YYY":me=Ot(3);break;case"YYYY":me=Ot(4);break;case"M":case"L":me=jn(Oe.Month,1,1);break;case"MM":case"LL":me=jn(Oe.Month,2,1);break;case"MMM":me=fn(Dn.Months,Ft.Abbreviated);break;case"MMMM":me=fn(Dn.Months,Ft.Wide);break;case"MMMMM":me=fn(Dn.Months,Ft.Narrow);break;case"LLL":me=fn(Dn.Months,Ft.Abbreviated,Bt.Standalone);break;case"LLLL":me=fn(Dn.Months,Ft.Wide,Bt.Standalone);break;case"LLLLL":me=fn(Dn.Months,Ft.Narrow,Bt.Standalone);break;case"w":me=wt(1);break;case"ww":me=wt(2);break;case"W":me=wt(1,!0);break;case"d":me=jn(Oe.Date,1);break;case"dd":me=jn(Oe.Date,2);break;case"c":case"cc":me=jn(Oe.Day,1);break;case"ccc":me=fn(Dn.Days,Ft.Abbreviated,Bt.Standalone);break;case"cccc":me=fn(Dn.Days,Ft.Wide,Bt.Standalone);break;case"ccccc":me=fn(Dn.Days,Ft.Narrow,Bt.Standalone);break;case"cccccc":me=fn(Dn.Days,Ft.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":me=fn(Dn.Days,Ft.Abbreviated);break;case"EEEE":me=fn(Dn.Days,Ft.Wide);break;case"EEEEE":me=fn(Dn.Days,Ft.Narrow);break;case"EEEEEE":me=fn(Dn.Days,Ft.Short);break;case"a":case"aa":case"aaa":me=fn(Dn.DayPeriods,Ft.Abbreviated);break;case"aaaa":me=fn(Dn.DayPeriods,Ft.Wide);break;case"aaaaa":me=fn(Dn.DayPeriods,Ft.Narrow);break;case"b":case"bb":case"bbb":me=fn(Dn.DayPeriods,Ft.Abbreviated,Bt.Standalone,!0);break;case"bbbb":me=fn(Dn.DayPeriods,Ft.Wide,Bt.Standalone,!0);break;case"bbbbb":me=fn(Dn.DayPeriods,Ft.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":me=fn(Dn.DayPeriods,Ft.Abbreviated,Bt.Format,!0);break;case"BBBB":me=fn(Dn.DayPeriods,Ft.Wide,Bt.Format,!0);break;case"BBBBB":me=fn(Dn.DayPeriods,Ft.Narrow,Bt.Format,!0);break;case"h":me=jn(Oe.Hours,1,-12);break;case"hh":me=jn(Oe.Hours,2,-12);break;case"H":me=jn(Oe.Hours,1);break;case"HH":me=jn(Oe.Hours,2);break;case"m":me=jn(Oe.Minutes,1);break;case"mm":me=jn(Oe.Minutes,2);break;case"s":me=jn(Oe.Seconds,1);break;case"ss":me=jn(Oe.Seconds,2);break;case"S":me=jn(Oe.FractionalSeconds,1);break;case"SS":me=jn(Oe.FractionalSeconds,2);break;case"SSS":me=jn(Oe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=We(Ce.Short);break;case"ZZZZZ":me=We(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=We(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=We(Ce.Long);break;default:return null}return ye[Mt]=me,me}(Jn);bn+=Qn?Qn(Ln,jt,tn):"''"===Jn?"'":Jn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bn}function mi(Mt,me,jt){const Qe=new Date(0);return Qe.setFullYear(Mt,me,jt),Qe.setHours(0,0,0),Qe}function Li(Mt,me){const jt=function be(Mt){return(0,d.cg1)(Mt)[d.wAp.LocaleId]}(Mt);if(Jt[jt]=Jt[jt]||{},Jt[jt][me])return Jt[jt][me];let Qe="";switch(me){case"shortDate":Qe=Kt(Mt,se.Short);break;case"mediumDate":Qe=Kt(Mt,se.Medium);break;case"longDate":Qe=Kt(Mt,se.Long);break;case"fullDate":Qe=Kt(Mt,se.Full);break;case"shortTime":Qe=de(Mt,se.Short);break;case"mediumTime":Qe=de(Mt,se.Medium);break;case"longTime":Qe=de(Mt,se.Long);break;case"fullTime":Qe=de(Mt,se.Full);break;case"short":const Ln=Li(Mt,"shortTime"),It=Li(Mt,"shortDate");Qe=ho(Wt(Mt,se.Short),[Ln,It]);break;case"medium":const ce=Li(Mt,"mediumTime"),Ze=Li(Mt,"mediumDate");Qe=ho(Wt(Mt,se.Medium),[ce,Ze]);break;case"long":const tn=Li(Mt,"longTime"),bn=Li(Mt,"longDate");Qe=ho(Wt(Mt,se.Long),[tn,bn]);break;case"full":const Jn=Li(Mt,"fullTime"),Qn=Li(Mt,"fullDate");Qe=ho(Wt(Mt,se.Full),[Jn,Qn])}return Qe&&(Jt[jt][me]=Qe),Qe}function ho(Mt,me){return me&&(Mt=Mt.replace(/\{([^}]+)}/g,function(jt,Qe){return null!=me&&Qe in me?me[Qe]:jt})),Mt}function fi(Mt,me,jt="-",Qe,Ln){let It="";(Mt<0||Ln&&Mt<=0)&&(Ln?Mt=1-Mt:(Mt=-Mt,It=jt));let ce=String(Mt);for(;ce.length0||Ze>-jt)&&(Ze+=jt),Mt===Oe.Hours)0===Ze&&-12===jt&&(Ze=12);else if(Mt===Oe.FractionalSeconds)return function Bn(Mt,me){return fi(Mt,3).substring(0,me)}(Ze,me);const tn=re(ce,Gt.MinusSign);return fi(Ze,me,tn,Qe,Ln)}}function fn(Mt,me,jt=Bt.Format,Qe=!1){return function(Ln,It){return function ze(Mt,me,jt,Qe,Ln,It){switch(jt){case Dn.Months:return function $e(Mt,me,jt){const Qe=(0,d.cg1)(Mt),It=si([Qe[d.wAp.MonthsFormat],Qe[d.wAp.MonthsStandalone]],me);return si(It,jt)}(me,Ln,Qe)[Mt.getMonth()];case Dn.Days:return function qe(Mt,me,jt){const Qe=(0,d.cg1)(Mt),It=si([Qe[d.wAp.DaysFormat],Qe[d.wAp.DaysStandalone]],me);return si(It,jt)}(me,Ln,Qe)[Mt.getDay()];case Dn.DayPeriods:const ce=Mt.getHours(),Ze=Mt.getMinutes();if(It){const bn=function Un(Mt){const me=(0,d.cg1)(Mt);return un(me),(me[d.wAp.ExtraData][2]||[]).map(Qe=>"string"==typeof Qe?Ke(Qe):[Ke(Qe[0]),Ke(Qe[1])])}(me),Jn=function oi(Mt,me,jt){const Qe=(0,d.cg1)(Mt);un(Qe);const It=si([Qe[d.wAp.ExtraData][0],Qe[d.wAp.ExtraData][1]],me)||[];return si(It,jt)||[]}(me,Ln,Qe),Qn=bn.findIndex(yi=>{if(Array.isArray(yi)){const[wi,vo]=yi,xo=ce>=wi.hours&&Ze>=wi.minutes,To=ce0?Math.floor(Ln/60):Math.ceil(Ln/60);switch(Mt){case Ce.Short:return(Ln>=0?"+":"")+fi(ce,2,It)+fi(Math.abs(Ln%60),2,It);case Ce.ShortGMT:return"GMT"+(Ln>=0?"+":"")+fi(ce,1,It);case Ce.Long:return"GMT"+(Ln>=0?"+":"")+fi(ce,2,It)+":"+fi(Math.abs(Ln%60),2,It);case Ce.Extended:return 0===Qe?"Z":(Ln>=0?"+":"")+fi(ce,2,It)+":"+fi(Math.abs(Ln%60),2,It);default:throw new Error(`Unknown zone width "${Mt}"`)}}}function Lt(Mt){return mi(Mt.getFullYear(),Mt.getMonth(),Mt.getDate()+(4-Mt.getDay()))}function wt(Mt,me=!1){return function(jt,Qe){let Ln;if(me){const It=new Date(jt.getFullYear(),jt.getMonth(),1).getDay()-1,ce=jt.getDate();Ln=1+Math.floor((ce+It)/7)}else{const It=Lt(jt),ce=function Ge(Mt){const me=mi(Mt,0,1).getDay();return mi(Mt,0,1+(me<=4?4:11)-me)}(It.getFullYear()),Ze=It.getTime()-ce.getTime();Ln=1+Math.round(Ze/6048e5)}return fi(Ln,Mt,re(Qe,Gt.MinusSign))}}function Ot(Mt,me=!1){return function(jt,Qe){return fi(Lt(jt).getFullYear(),Mt,re(Qe,Gt.MinusSign),me)}}const ye={};function Ne(Mt,me){Mt=Mt.replace(/:/g,"");const jt=Date.parse("Jan 01, 1970 00:00:00 "+Mt)/6e4;return isNaN(jt)?me:jt}function gi(Mt){return Mt instanceof Date&&!isNaN(Mt.valueOf())}const go=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ua(Mt,me,jt,Qe,Ln,It,ce=!1){let Ze="",tn=!1;if(isFinite(Mt)){let bn=function Me(Mt){let Qe,Ln,It,ce,Ze,me=Math.abs(Mt)+"",jt=0;for((Ln=me.indexOf("."))>-1&&(me=me.replace(".","")),(It=me.search(/e/i))>0?(Ln<0&&(Ln=It),Ln+=+me.slice(It+1),me=me.substring(0,It)):Ln<0&&(Ln=me.length),It=0;"0"===me.charAt(It);It++);if(It===(Ze=me.length))Qe=[0],Ln=1;else{for(Ze--;"0"===me.charAt(Ze);)Ze--;for(Ln-=It,Qe=[],ce=0;It<=Ze;It++,ce++)Qe[ce]=Number(me.charAt(It))}return Ln>22&&(Qe=Qe.splice(0,21),jt=Ln-1,Ln=1),{digits:Qe,exponent:jt,integerLen:Ln}}(Mt);ce&&(bn=function He(Mt){if(0===Mt.digits[0])return Mt;const me=Mt.digits.length-Mt.integerLen;return Mt.exponent?Mt.exponent+=2:(0===me?Mt.digits.push(0,0):1===me&&Mt.digits.push(0),Mt.integerLen+=2),Mt}(bn));let Jn=me.minInt,Qn=me.minFrac,yi=me.maxFrac;if(It){const sa=It.match(go);if(null===sa)throw new Error(`${It} is not a valid digit info`);const ha=sa[1],ts=sa[3],zs=sa[5];null!=ha&&(Jn=tt(ha)),null!=ts&&(Qn=tt(ts)),null!=zs?yi=tt(zs):null!=ts&&Qn>yi&&(yi=Qn)}!function dn(Mt,me,jt){if(me>jt)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${jt}).`);let Qe=Mt.digits,Ln=Qe.length-Mt.integerLen;const It=Math.min(Math.max(me,Ln),jt);let ce=It+Mt.integerLen,Ze=Qe[ce];if(ce>0){Qe.splice(Math.max(Mt.integerLen,ce));for(let Qn=ce;Qn=5)if(ce-1<0){for(let Qn=0;Qn>ce;Qn--)Qe.unshift(0),Mt.integerLen++;Qe.unshift(1),Mt.integerLen++}else Qe[ce-1]++;for(;Ln=bn?vo.pop():tn=!1),yi>=10?1:0},0);Jn&&(Qe.unshift(Jn),Mt.integerLen++)}(bn,Qn,yi);let wi=bn.digits,vo=bn.integerLen;const xo=bn.exponent;let To=[];for(tn=wi.every(sa=>!sa);vo0?To=wi.splice(vo,wi.length):(To=wi,wi=[0]);const va=[];for(wi.length>=me.lgSize&&va.unshift(wi.splice(-me.lgSize,wi.length).join(""));wi.length>me.gSize;)va.unshift(wi.splice(-me.gSize,wi.length).join(""));wi.length&&va.unshift(wi.join("")),Ze=va.join(re(jt,Qe)),To.length&&(Ze+=re(jt,Ln)+To.join("")),xo&&(Ze+=re(jt,Gt.Exponential)+"+"+xo)}else Ze=re(jt,Gt.Infinity);return Ze=Mt<0&&!tn?me.negPre+Ze+me.negSuf:me.posPre+Ze+me.posSuf,Ze}function Fn(Mt,me="-"){const jt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Qe=Mt.split(";"),Ln=Qe[0],It=Qe[1],ce=-1!==Ln.indexOf(".")?Ln.split("."):[Ln.substring(0,Ln.lastIndexOf("0")+1),Ln.substring(Ln.lastIndexOf("0")+1)],Ze=ce[0],tn=ce[1]||"";jt.posPre=Ze.substring(0,Ze.indexOf("#"));for(let Jn=0;Jn{class Mt{constructor(jt,Qe,Ln,It){this._iterableDiffers=jt,this._keyValueDiffers=Qe,this._ngEl=Ln,this._renderer=It,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(jt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof jt?jt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(jt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof jt?jt.split(/\s+/):jt,this._rawClass&&((0,d.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const jt=this._iterableDiffer.diff(this._rawClass);jt&&this._applyIterableChanges(jt)}else if(this._keyValueDiffer){const jt=this._keyValueDiffer.diff(this._rawClass);jt&&this._applyKeyValueChanges(jt)}}_applyKeyValueChanges(jt){jt.forEachAddedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),jt.forEachChangedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),jt.forEachRemovedItem(Qe=>{Qe.previousValue&&this._toggleClass(Qe.key,!1)})}_applyIterableChanges(jt){jt.forEachAddedItem(Qe=>{if("string"!=typeof Qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,d.AaK)(Qe.item)}`);this._toggleClass(Qe.item,!0)}),jt.forEachRemovedItem(Qe=>this._toggleClass(Qe.item,!1))}_applyClasses(jt){jt&&(Array.isArray(jt)||jt instanceof Set?jt.forEach(Qe=>this._toggleClass(Qe,!0)):Object.keys(jt).forEach(Qe=>this._toggleClass(Qe,!!jt[Qe])))}_removeClasses(jt){jt&&(Array.isArray(jt)||jt instanceof Set?jt.forEach(Qe=>this._toggleClass(Qe,!1)):Object.keys(jt).forEach(Qe=>this._toggleClass(Qe,!1)))}_toggleClass(jt,Qe){(jt=jt.trim())&&jt.split(/\s+/g).forEach(Ln=>{Qe?this._renderer.addClass(this._ngEl.nativeElement,Ln):this._renderer.removeClass(this._ngEl.nativeElement,Ln)})}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Mt})();class us{constructor(me,jt,Qe,Ln){this.$implicit=me,this.ngForOf=jt,this.index=Qe,this.count=Ln}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ir=(()=>{class Mt{constructor(jt,Qe,Ln){this._viewContainer=jt,this._template=Qe,this._differs=Ln,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(jt){this._ngForOf=jt,this._ngForOfDirty=!0}set ngForTrackBy(jt){this._trackByFn=jt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(jt){jt&&(this._template=jt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const jt=this._ngForOf;!this._differ&&jt&&(this._differ=this._differs.find(jt).create(this.ngForTrackBy))}if(this._differ){const jt=this._differ.diff(this._ngForOf);jt&&this._applyChanges(jt)}}_applyChanges(jt){const Qe=this._viewContainer;jt.forEachOperation((Ln,It,ce)=>{if(null==Ln.previousIndex)Qe.createEmbeddedView(this._template,new us(Ln.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)Qe.remove(null===It?void 0:It);else if(null!==It){const Ze=Qe.get(It);Qe.move(Ze,ce),Or(Ze,Ln)}});for(let Ln=0,It=Qe.length;Ln{Or(Qe.get(Ln.currentIndex),Ln)})}static ngTemplateContextGuard(jt,Qe){return!0}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Mt})();function Or(Mt,me){Mt.context.$implicit=me.item}let dr=(()=>{class Mt{constructor(jt,Qe){this._viewContainer=jt,this._context=new jr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Qe}set ngIf(jt){this._context.$implicit=this._context.ngIf=jt,this._updateView()}set ngIfThen(jt){Qr("ngIfThen",jt),this._thenTemplateRef=jt,this._thenViewRef=null,this._updateView()}set ngIfElse(jt){Qr("ngIfElse",jt),this._elseTemplateRef=jt,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(jt,Qe){return!0}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Mt})();class jr{constructor(){this.$implicit=null,this.ngIf=null}}function Qr(Mt,me){if(me&&!me.createEmbeddedView)throw new Error(`${Mt} must be a TemplateRef, but received '${(0,d.AaK)(me)}'.`)}class Er{constructor(me,jt){this._viewContainerRef=me,this._templateRef=jt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Zc=(()=>{class Mt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(jt){this._ngSwitch=jt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(jt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(jt)}_matchCase(jt){const Qe=jt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Qe}_updateDefaultCases(jt){if(this._defaultViews&&jt!==this._defaultUsed){this._defaultUsed=jt;for(let Qe=0;Qe{class Mt{constructor(jt,Qe,Ln){this.ngSwitch=Ln,Ln._addCase(),this._view=new Er(jt,Qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Zc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Mt})(),Mc=(()=>{class Mt{constructor(jt,Qe,Ln){Ln._addDefault(new Er(jt,Qe))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Zc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Mt})(),Wr=(()=>{class Mt{constructor(jt,Qe,Ln){this._ngEl=jt,this._differs=Qe,this._renderer=Ln,this._ngStyle=null,this._differ=null}set ngStyle(jt){this._ngStyle=jt,!this._differ&&jt&&(this._differ=this._differs.find(jt).create())}ngDoCheck(){if(this._differ){const jt=this._differ.diff(this._ngStyle);jt&&this._applyChanges(jt)}}_setStyle(jt,Qe){const[Ln,It]=jt.split("."),ce=-1===Ln.indexOf("-")?void 0:d.JOm.DashCase;null!=Qe?this._renderer.setStyle(this._ngEl.nativeElement,Ln,It?`${Qe}${It}`:Qe,ce):this._renderer.removeStyle(this._ngEl.nativeElement,Ln,ce)}_applyChanges(jt){jt.forEachRemovedItem(Qe=>this._setStyle(Qe.key,null)),jt.forEachAddedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue)),jt.forEachChangedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Mt})(),qs=(()=>{class Mt{constructor(jt){this._viewContainerRef=jt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(jt){if(jt.ngTemplateOutlet||jt.ngTemplateOutletInjector){const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ln,ngTemplateOutletContext:It,ngTemplateOutletInjector:ce}=this;this._viewRef=Qe.createEmbeddedView(Ln,It,ce?{injector:ce}:void 0)}else this._viewRef=null}else this._viewRef&&jt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),Mt})();function hr(Mt,me){return new d.vHH(2100,!1)}class nu{createSubscription(me,jt){return me.subscribe({next:jt,error:Qe=>{throw Qe}})}dispose(me){me.unsubscribe()}}class c1{createSubscription(me,jt){return me.then(jt,Qe=>{throw Qe})}dispose(me){}}const hc=new c1,Cl=new nu;let xl=(()=>{class Mt{constructor(jt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=jt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(jt){return this._obj?jt!==this._obj?(this._dispose(),this.transform(jt)):this._latestValue:(jt&&this._subscribe(jt),this._latestValue)}_subscribe(jt){this._obj=jt,this._strategy=this._selectStrategy(jt),this._subscription=this._strategy.createSubscription(jt,Qe=>this._updateLatestValue(jt,Qe))}_selectStrategy(jt){if((0,d.QGY)(jt))return hc;if((0,d.F4k)(jt))return Cl;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(jt,Qe){jt===this._obj&&(this._latestValue=Qe,this._ref.markForCheck())}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.sBO,16))},Mt.\u0275pipe=d.Yjl({name:"async",type:Mt,pure:!1,standalone:!0}),Mt})(),Dc=(()=>{class Mt{transform(jt){if(null==jt)return null;if("string"!=typeof jt)throw hr();return jt.toLowerCase()}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275pipe=d.Yjl({name:"lowercase",type:Mt,pure:!0,standalone:!0}),Mt})();const Bs=/(?:[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;let Rc=(()=>{class Mt{transform(jt){if(null==jt)return null;if("string"!=typeof jt)throw hr();return jt.replace(Bs,Qe=>Qe[0].toUpperCase()+Qe.slice(1).toLowerCase())}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275pipe=d.Yjl({name:"titlecase",type:Mt,pure:!0,standalone:!0}),Mt})();const Vs=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Al=(()=>{class Mt{constructor(jt,Qe){this.locale=jt,this.defaultTimezone=Qe}transform(jt,Qe="mediumDate",Ln,It){if(null==jt||""===jt||jt!=jt)return null;try{return Sn(jt,Qe,It||this.locale,Ln??this.defaultTimezone??void 0)}catch(ce){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16),d.Y36(Vs,24))},Mt.\u0275pipe=d.Yjl({name:"date",type:Mt,pure:!0,standalone:!0}),Mt})(),zc=(()=>{class Mt{constructor(jt){this.differs=jt,this.keyValues=[],this.compareFn=Zs}transform(jt,Qe=Zs){if(!jt||!(jt instanceof Map)&&"object"!=typeof jt)return null;this.differ||(this.differ=this.differs.find(jt).create());const Ln=this.differ.diff(jt),It=Qe!==this.compareFn;return Ln&&(this.keyValues=[],Ln.forEachItem(ce=>{this.keyValues.push(function Gs(Mt,me){return{key:Mt,value:me}}(ce.key,ce.currentValue))})),(Ln||It)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.aQg,16))},Mt.\u0275pipe=d.Yjl({name:"keyvalue",type:Mt,pure:!1,standalone:!0}),Mt})();function Zs(Mt,me){const jt=Mt.key,Qe=me.key;if(jt===Qe)return 0;if(void 0===jt)return 1;if(void 0===Qe)return-1;if(null===jt)return 1;if(null===Qe)return-1;if("string"==typeof jt&&"string"==typeof Qe)return jt{class Mt{constructor(jt){this._locale=jt}transform(jt,Qe,Ln){if(!Ro(jt))return null;Ln=Ln||this._locale;try{return function Je(Mt,me,jt){return ua(Mt,Fn(De(me,ft.Decimal),re(me,Gt.MinusSign)),me,Gt.Group,Gt.Decimal,jt)}(or(jt),Ln,Qe)}catch(It){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16))},Mt.\u0275pipe=d.Yjl({name:"number",type:Mt,pure:!0,standalone:!0}),Mt})(),ql=(()=>{class Mt{constructor(jt,Qe="USD"){this._locale=jt,this._defaultCurrencyCode=Qe}transform(jt,Qe=this._defaultCurrencyCode,Ln="symbol",It,ce){if(!Ro(jt))return null;ce=ce||this._locale,"boolean"==typeof Ln&&(Ln=Ln?"symbol":"code");let Ze=Qe||this._defaultCurrencyCode;"code"!==Ln&&(Ze="symbol"===Ln||"symbol-narrow"===Ln?function ne(Mt,me,jt="en"){const Qe=function gn(Mt){return(0,d.cg1)(Mt)[d.wAp.Currencies]}(jt)[Mt]||At[Mt]||[],Ln=Qe[1];return"narrow"===me&&"string"==typeof Ln?Ln:Qe[0]||Mt}(Ze,"symbol"===Ln?"wide":"narrow",ce):Ln);try{return function qa(Mt,me,jt,Qe,Ln){const ce=Fn(De(me,ft.Currency),re(me,Gt.MinusSign));return ce.minFrac=function nt(Mt){let me;const jt=At[Mt];return jt&&(me=jt[2]),"number"==typeof me?me:2}(Qe),ce.maxFrac=ce.minFrac,ua(Mt,ce,me,Gt.CurrencyGroup,Gt.CurrencyDecimal,Ln).replace("\xa4",jt).replace("\xa4","").trim()}(or(jt),ce,Ze,Qe,It)}catch(tn){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16),d.Y36(d.EJc,16))},Mt.\u0275pipe=d.Yjl({name:"currency",type:Mt,pure:!0,standalone:!0}),Mt})();function Ro(Mt){return!(null==Mt||""===Mt||Mt!=Mt)}function or(Mt){if("string"==typeof Mt&&!isNaN(Number(Mt)-parseFloat(Mt)))return Number(Mt);if("number"!=typeof Mt)throw new Error(`${Mt} is not a number`);return Mt}let Rl=(()=>{class Mt{}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({}),Mt})();const gc="browser";function _u(Mt){return Mt===gc}function Mr(Mt){return"server"===Mt}let Bc=(()=>{class Mt{}return Mt.\u0275prov=(0,d.Yz7)({token:Mt,providedIn:"root",factory:()=>new vs((0,d.LFG)(x),window)}),Mt})();class vs{constructor(me,jt){this.document=me,this.window=jt,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const jt=function ar(Mt,me){const jt=Mt.getElementById(me)||Mt.getElementsByName(me)[0];if(jt)return jt;if("function"==typeof Mt.createTreeWalker&&Mt.body&&(Mt.body.createShadowRoot||Mt.body.attachShadow)){const Qe=Mt.createTreeWalker(Mt.body,NodeFilter.SHOW_ELEMENT);let Ln=Qe.currentNode;for(;Ln;){const It=Ln.shadowRoot;if(It){const ce=It.getElementById(me)||It.querySelector(`[name="${me}"]`);if(ce)return ce}Ln=Qe.nextNode()}}return null}(this.document,me);jt&&(this.scrollToElement(jt),jt.focus())}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const jt=this.window.history;jt&&jt.scrollRestoration&&(jt.scrollRestoration=me)}}scrollToElement(me){const jt=me.getBoundingClientRect(),Qe=jt.left+this.window.pageXOffset,Ln=jt.top+this.window.pageYOffset,It=this.offset();this.window.scrollTo(Qe-It[0],Ln-It[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=bc(this.window.history)||bc(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function bc(Mt){return Object.getOwnPropertyDescriptor(Mt,"scrollRestoration")}class ks{}},80529:(ot,et,v)=>{"use strict";v.d(et,{JF:()=>nt,LE:()=>vt,PG:()=>U,TP:()=>qe,Zn:()=>se,eN:()=>be});var d=v(36895),p=v(94650),b=v(21086),T=v(56498),t=v(21406),A=v(92198),x=v(24850);class U{}class k{}class D{constructor(Ce){this.normalizedNames=new Map,this.lazyUpdate=null,Ce?this.lazyInit="string"==typeof Ce?()=>{this.headers=new Map,Ce.split("\n").forEach(Oe=>{const Dn=Oe.indexOf(":");if(Dn>0){const Sn=Oe.slice(0,Dn),mi=Sn.toLowerCase(),Li=Oe.slice(Dn+1).trim();this.maybeSetNormalizedName(Sn,mi),this.headers.has(mi)?this.headers.get(mi).push(Li):this.headers.set(mi,[Li])}})}:()=>{this.headers=new Map,Object.keys(Ce).forEach(Oe=>{let Dn=Ce[Oe];const Sn=Oe.toLowerCase();"string"==typeof Dn&&(Dn=[Dn]),Dn.length>0&&(this.headers.set(Sn,Dn),this.maybeSetNormalizedName(Oe,Sn))})}:this.headers=new Map}has(Ce){return this.init(),this.headers.has(Ce.toLowerCase())}get(Ce){this.init();const Oe=this.headers.get(Ce.toLowerCase());return Oe&&Oe.length>0?Oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ce){return this.init(),this.headers.get(Ce.toLowerCase())||null}append(Ce,Oe){return this.clone({name:Ce,value:Oe,op:"a"})}set(Ce,Oe){return this.clone({name:Ce,value:Oe,op:"s"})}delete(Ce,Oe){return this.clone({name:Ce,value:Oe,op:"d"})}maybeSetNormalizedName(Ce,Oe){this.normalizedNames.has(Oe)||this.normalizedNames.set(Oe,Ce)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ce=>this.applyUpdate(Ce)),this.lazyUpdate=null))}copyFrom(Ce){Ce.init(),Array.from(Ce.headers.keys()).forEach(Oe=>{this.headers.set(Oe,Ce.headers.get(Oe)),this.normalizedNames.set(Oe,Ce.normalizedNames.get(Oe))})}clone(Ce){const Oe=new D;return Oe.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,Oe.lazyUpdate=(this.lazyUpdate||[]).concat([Ce]),Oe}applyUpdate(Ce){const Oe=Ce.name.toLowerCase();switch(Ce.op){case"a":case"s":let Dn=Ce.value;if("string"==typeof Dn&&(Dn=[Dn]),0===Dn.length)return;this.maybeSetNormalizedName(Ce.name,Oe);const Sn=("a"===Ce.op?this.headers.get(Oe):void 0)||[];Sn.push(...Dn),this.headers.set(Oe,Sn);break;case"d":const mi=Ce.value;if(mi){let Li=this.headers.get(Oe);if(!Li)return;Li=Li.filter(ho=>-1===mi.indexOf(ho)),0===Li.length?(this.headers.delete(Oe),this.normalizedNames.delete(Oe)):this.headers.set(Oe,Li)}else this.headers.delete(Oe),this.normalizedNames.delete(Oe)}}forEach(Ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Oe=>Ce(this.normalizedNames.get(Oe),this.headers.get(Oe)))}}class F{encodeKey(Ce){return at(Ce)}encodeValue(Ce){return at(Ce)}decodeKey(Ce){return decodeURIComponent(Ce)}decodeValue(Ce){return decodeURIComponent(Ce)}}const J=/%(\d[a-f0-9])/gi,K={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function at(oe){return encodeURIComponent(oe).replace(J,(Ce,Oe)=>K[Oe]??Ce)}function ct(oe){return`${oe}`}class vt{constructor(Ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ce.encoder||new F,Ce.fromString){if(Ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(oe,Ce){const Oe=new Map;return oe.length>0&&oe.replace(/^\?/,"").split("&").forEach(Sn=>{const mi=Sn.indexOf("="),[Li,ho]=-1==mi?[Ce.decodeKey(Sn),""]:[Ce.decodeKey(Sn.slice(0,mi)),Ce.decodeValue(Sn.slice(mi+1))],fi=Oe.get(Li)||[];fi.push(ho),Oe.set(Li,fi)}),Oe}(Ce.fromString,this.encoder)}else Ce.fromObject?(this.map=new Map,Object.keys(Ce.fromObject).forEach(Oe=>{const Dn=Ce.fromObject[Oe],Sn=Array.isArray(Dn)?Dn.map(ct):[ct(Dn)];this.map.set(Oe,Sn)})):this.map=null}has(Ce){return this.init(),this.map.has(Ce)}get(Ce){this.init();const Oe=this.map.get(Ce);return Oe?Oe[0]:null}getAll(Ce){return this.init(),this.map.get(Ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ce,Oe){return this.clone({param:Ce,value:Oe,op:"a"})}appendAll(Ce){const Oe=[];return Object.keys(Ce).forEach(Dn=>{const Sn=Ce[Dn];Array.isArray(Sn)?Sn.forEach(mi=>{Oe.push({param:Dn,value:mi,op:"a"})}):Oe.push({param:Dn,value:Sn,op:"a"})}),this.clone(Oe)}set(Ce,Oe){return this.clone({param:Ce,value:Oe,op:"s"})}delete(Ce,Oe){return this.clone({param:Ce,value:Oe,op:"d"})}toString(){return this.init(),this.keys().map(Ce=>{const Oe=this.encoder.encodeKey(Ce);return this.map.get(Ce).map(Dn=>Oe+"="+this.encoder.encodeValue(Dn)).join("&")}).filter(Ce=>""!==Ce).join("&")}clone(Ce){const Oe=new vt({encoder:this.encoder});return Oe.cloneFrom=this.cloneFrom||this,Oe.updates=(this.updates||[]).concat(Ce),Oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ce=>this.map.set(Ce,this.cloneFrom.map.get(Ce))),this.updates.forEach(Ce=>{switch(Ce.op){case"a":case"s":const Oe=("a"===Ce.op?this.map.get(Ce.param):void 0)||[];Oe.push(ct(Ce.value)),this.map.set(Ce.param,Oe);break;case"d":if(void 0===Ce.value){this.map.delete(Ce.param);break}{let Dn=this.map.get(Ce.param)||[];const Sn=Dn.indexOf(ct(Ce.value));-1!==Sn&&Dn.splice(Sn,1),Dn.length>0?this.map.set(Ce.param,Dn):this.map.delete(Ce.param)}}}),this.cloneFrom=this.updates=null)}}class Pt{constructor(){this.map=new Map}set(Ce,Oe){return this.map.set(Ce,Oe),this}get(Ce){return this.map.has(Ce)||this.map.set(Ce,Ce.defaultValue()),this.map.get(Ce)}delete(Ce){return this.map.delete(Ce),this}has(Ce){return this.map.has(Ce)}keys(){return this.map.keys()}}function Vt(oe){return typeof ArrayBuffer<"u"&&oe instanceof ArrayBuffer}function it(oe){return typeof Blob<"u"&&oe instanceof Blob}function Tt(oe){return typeof FormData<"u"&&oe instanceof FormData}class ft{constructor(Ce,Oe,Dn,Sn){let mi;if(this.url=Oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ce.toUpperCase(),function zt(oe){switch(oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Sn?(this.body=void 0!==Dn?Dn:null,mi=Sn):mi=Dn,mi&&(this.reportProgress=!!mi.reportProgress,this.withCredentials=!!mi.withCredentials,mi.responseType&&(this.responseType=mi.responseType),mi.headers&&(this.headers=mi.headers),mi.context&&(this.context=mi.context),mi.params&&(this.params=mi.params)),this.headers||(this.headers=new D),this.context||(this.context=new Pt),this.params){const Li=this.params.toString();if(0===Li.length)this.urlWithParams=Oe;else{const ho=Oe.indexOf("?");this.urlWithParams=Oe+(-1===ho?"?":hoYe.set(fn,Ce.setHeaders[fn]),fi)),Ce.setParams&&(Bn=Object.keys(Ce.setParams).reduce((Ye,fn)=>Ye.set(fn,Ce.setParams[fn]),Bn)),new ft(Oe,Dn,mi,{params:Bn,headers:fi,context:jn,reportProgress:ho,responseType:Sn,withCredentials:Li})}}var Et=(()=>((Et=Et||{})[Et.Sent=0]="Sent",Et[Et.UploadProgress=1]="UploadProgress",Et[Et.ResponseHeader=2]="ResponseHeader",Et[Et.DownloadProgress=3]="DownloadProgress",Et[Et.Response=4]="Response",Et[Et.User=5]="User",Et))();class Bt{constructor(Ce,Oe=200,Dn="OK"){this.headers=Ce.headers||new D,this.status=void 0!==Ce.status?Ce.status:Oe,this.statusText=Ce.statusText||Dn,this.url=Ce.url||null,this.ok=this.status>=200&&this.status<300}}class Ft extends Bt{constructor(Ce={}){super(Ce),this.type=Et.ResponseHeader}clone(Ce={}){return new Ft({headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class se extends Bt{constructor(Ce={}){super(Ce),this.type=Et.Response,this.body=void 0!==Ce.body?Ce.body:null}clone(Ce={}){return new se({body:void 0!==Ce.body?Ce.body:this.body,headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class Gt extends Bt{constructor(Ce){super(Ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ce.url||"(unknown url)"}`:`Http failure response for ${Ce.url||"(unknown url)"}: ${Ce.status} ${Ce.statusText}`,this.error=Ce.error||null}}function ve(oe,Ce){return{body:Ce,headers:oe.headers,context:oe.context,observe:oe.observe,params:oe.params,reportProgress:oe.reportProgress,responseType:oe.responseType,withCredentials:oe.withCredentials}}let be=(()=>{class oe{constructor(Oe){this.handler=Oe}request(Oe,Dn,Sn={}){let mi;if(Oe instanceof ft)mi=Oe;else{let fi,Bn;fi=Sn.headers instanceof D?Sn.headers:new D(Sn.headers),Sn.params&&(Bn=Sn.params instanceof vt?Sn.params:new vt({fromObject:Sn.params})),mi=new ft(Oe,Dn,void 0!==Sn.body?Sn.body:null,{headers:fi,context:Sn.context,params:Bn,reportProgress:Sn.reportProgress,responseType:Sn.responseType||"json",withCredentials:Sn.withCredentials})}const Li=(0,b.of)(mi).pipe((0,t.b)(fi=>this.handler.handle(fi)));if(Oe instanceof ft||"events"===Sn.observe)return Li;const ho=Li.pipe((0,A.h)(fi=>fi instanceof se));switch(Sn.observe||"body"){case"body":switch(mi.responseType){case"arraybuffer":return ho.pipe((0,x.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return fi.body}));case"blob":return ho.pipe((0,x.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof Blob))throw new Error("Response is not a Blob.");return fi.body}));case"text":return ho.pipe((0,x.U)(fi=>{if(null!==fi.body&&"string"!=typeof fi.body)throw new Error("Response is not a string.");return fi.body}));default:return ho.pipe((0,x.U)(fi=>fi.body))}case"response":return ho;default:throw new Error(`Unreachable: unhandled observe type ${Sn.observe}}`)}}delete(Oe,Dn={}){return this.request("DELETE",Oe,Dn)}get(Oe,Dn={}){return this.request("GET",Oe,Dn)}head(Oe,Dn={}){return this.request("HEAD",Oe,Dn)}jsonp(Oe,Dn){return this.request("JSONP",Oe,{params:(new vt).append(Dn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Oe,Dn={}){return this.request("OPTIONS",Oe,Dn)}patch(Oe,Dn,Sn={}){return this.request("PATCH",Oe,ve(Sn,Dn))}post(Oe,Dn,Sn={}){return this.request("POST",Oe,ve(Sn,Dn))}put(Oe,Dn,Sn={}){return this.request("PUT",Oe,ve(Sn,Dn))}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(U))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Le{constructor(Ce,Oe){this.next=Ce,this.interceptor=Oe}handle(Ce){return this.interceptor.intercept(Ce,this.next)}}const qe=new p.OlP("HTTP_INTERCEPTORS");let $e=(()=>{class oe{intercept(Oe,Dn){return Dn.handle(Oe)}}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const _n=/^\)\]\}',?\n/;let gn=(()=>{class oe{constructor(Oe){this.xhrFactory=Oe}handle(Oe){if("JSONP"===Oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Dn=>{const Sn=this.xhrFactory.build();if(Sn.open(Oe.method,Oe.urlWithParams),Oe.withCredentials&&(Sn.withCredentials=!0),Oe.headers.forEach((ze,We)=>Sn.setRequestHeader(ze,We.join(","))),Oe.headers.has("Accept")||Sn.setRequestHeader("Accept","application/json, text/plain, */*"),!Oe.headers.has("Content-Type")){const ze=Oe.detectContentTypeHeader();null!==ze&&Sn.setRequestHeader("Content-Type",ze)}if(Oe.responseType){const ze=Oe.responseType.toLowerCase();Sn.responseType="json"!==ze?ze:"text"}const mi=Oe.serializeBody();let Li=null;const ho=()=>{if(null!==Li)return Li;const ze=Sn.statusText||"OK",We=new D(Sn.getAllResponseHeaders()),en=function Ae(oe){return"responseURL"in oe&&oe.responseURL?oe.responseURL:/^X-Request-URL:/m.test(oe.getAllResponseHeaders())?oe.getResponseHeader("X-Request-URL"):null}(Sn)||Oe.url;return Li=new Ft({headers:We,status:Sn.status,statusText:ze,url:en}),Li},fi=()=>{let{headers:ze,status:We,statusText:en,url:le}=ho(),Ge=null;204!==We&&(Ge=typeof Sn.response>"u"?Sn.responseText:Sn.response),0===We&&(We=Ge?200:0);let Lt=We>=200&&We<300;if("json"===Oe.responseType&&"string"==typeof Ge){const wt=Ge;Ge=Ge.replace(_n,"");try{Ge=""!==Ge?JSON.parse(Ge):null}catch(Ot){Ge=wt,Lt&&(Lt=!1,Ge={error:Ot,text:Ge})}}Lt?(Dn.next(new se({body:Ge,headers:ze,status:We,statusText:en,url:le||void 0})),Dn.complete()):Dn.error(new Gt({error:Ge,headers:ze,status:We,statusText:en,url:le||void 0}))},Bn=ze=>{const{url:We}=ho(),en=new Gt({error:ze,status:Sn.status||0,statusText:Sn.statusText||"Unknown Error",url:We||void 0});Dn.error(en)};let jn=!1;const Ye=ze=>{jn||(Dn.next(ho()),jn=!0);let We={type:Et.DownloadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),"text"===Oe.responseType&&!!Sn.responseText&&(We.partialText=Sn.responseText),Dn.next(We)},fn=ze=>{let We={type:Et.UploadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),Dn.next(We)};return Sn.addEventListener("load",fi),Sn.addEventListener("error",Bn),Sn.addEventListener("timeout",Bn),Sn.addEventListener("abort",Bn),Oe.reportProgress&&(Sn.addEventListener("progress",Ye),null!==mi&&Sn.upload&&Sn.upload.addEventListener("progress",fn)),Sn.send(mi),Dn.next({type:Et.Sent}),()=>{Sn.removeEventListener("error",Bn),Sn.removeEventListener("abort",Bn),Sn.removeEventListener("load",fi),Sn.removeEventListener("timeout",Bn),Oe.reportProgress&&(Sn.removeEventListener("progress",Ye),null!==mi&&Sn.upload&&Sn.upload.removeEventListener("progress",fn)),Sn.readyState!==Sn.DONE&&Sn.abort()}})}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(d.JF))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const we=new p.OlP("XSRF_COOKIE_NAME"),un=new p.OlP("XSRF_HEADER_NAME");class Un{}let oi=(()=>{class oe{constructor(Oe,Dn,Sn){this.doc=Oe,this.platform=Dn,this.cookieName=Sn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Oe=this.doc.cookie||"";return Oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(Oe,this.cookieName),this.lastCookieString=Oe),this.lastToken}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(we))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),vi=(()=>{class oe{constructor(Oe,Dn){this.tokenService=Oe,this.headerName=Dn}intercept(Oe,Dn){const Sn=Oe.url.toLowerCase();if("GET"===Oe.method||"HEAD"===Oe.method||Sn.startsWith("http://")||Sn.startsWith("https://"))return Dn.handle(Oe);const mi=this.tokenService.getToken();return null!==mi&&!Oe.headers.has(this.headerName)&&(Oe=Oe.clone({headers:Oe.headers.set(this.headerName,mi)})),Dn.handle(Oe)}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(Un),p.LFG(un))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),si=(()=>{class oe{constructor(Oe,Dn){this.backend=Oe,this.injector=Dn,this.chain=null}handle(Oe){if(null===this.chain){const Dn=this.injector.get(qe,[]);this.chain=Dn.reduceRight((Sn,mi)=>new Le(Sn,mi),this.backend)}return this.chain.handle(Oe)}}return oe.\u0275fac=function(Oe){return new(Oe||oe)(p.LFG(k),p.LFG(p.zs3))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),lt=(()=>{class oe{static disable(){return{ngModule:oe,providers:[{provide:vi,useClass:$e}]}}static withOptions(Oe={}){return{ngModule:oe,providers:[Oe.cookieName?{provide:we,useValue:Oe.cookieName}:[],Oe.headerName?{provide:un,useValue:Oe.headerName}:[]]}}}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[vi,{provide:qe,useExisting:vi,multi:!0},{provide:Un,useClass:oi},{provide:we,useValue:"XSRF-TOKEN"},{provide:un,useValue:"X-XSRF-TOKEN"}]}),oe})(),nt=(()=>{class oe{}return oe.\u0275fac=function(Oe){return new(Oe||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[be,{provide:U,useClass:si},gn,{provide:k,useExisting:gn}],imports:[lt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),oe})()},94650:(ot,et,v)=>{"use strict";v.d(et,{$8M:()=>Id,$Z:()=>Os,AFp:()=>px,ALo:()=>YC,AaK:()=>U,AsE:()=>cf,B6R:()=>Ge,BQk:()=>kh,CHM:()=>hu,CRH:()=>$C,CZH:()=>s3,CqO:()=>Np,D6c:()=>$x,DdM:()=>qC,Dn7:()=>K5,EJc:()=>vx,EiD:()=>Vf,EpF:()=>ep,F$t:()=>Ph,F4k:()=>D0,FYo:()=>Jg,FiY:()=>ec,G48:()=>qx,Gf:()=>sv,GfV:()=>Wg,GkF:()=>af,Gpc:()=>P,Gre:()=>Rp,HOy:()=>R0,Hsn:()=>x4,Ikx:()=>M4,JOm:()=>_1,JVY:()=>Og,Jf7:()=>um,KtG:()=>Ws,L6k:()=>D_,LAX:()=>Rm,LFG:()=>Dr,LSH:()=>Ng,Lbi:()=>fx,Lck:()=>Bh,MAs:()=>v4,MGl:()=>rf,MMx:()=>_a,NdJ:()=>np,O4$:()=>Ei,OlP:()=>Tr,Oqu:()=>T4,PXZ:()=>Sx,Q6J:()=>b4,QGY:()=>Dh,QP$:()=>gi,QbO:()=>Uv,Qsj:()=>Q3,R0b:()=>Kd,RDi:()=>xd,Rgc:()=>jh,SBq:()=>q_,Sil:()=>Cx,Suo:()=>WC,TTD:()=>iu,TgZ:()=>Mh,Tol:()=>Nb,Udp:()=>m5,VKq:()=>V5,W1O:()=>lv,WFA:()=>c5,WLB:()=>RC,XFs:()=>si,Xpm:()=>le,Xts:()=>S2,Y36:()=>_r,YKP:()=>N4,YNc:()=>s5,Yjl:()=>Tn,Yz7:()=>de,Z0I:()=>on,ZZ4:()=>u6,_Bn:()=>R5,_UZ:()=>M0,_Vd:()=>Hm,_c5:()=>GA,_uU:()=>y4,aQg:()=>v3,c2e:()=>hx,cJS:()=>re,cg1:()=>Oc,d8E:()=>T5,dDg:()=>Mx,dqk:()=>Sn,dwT:()=>qh,eBb:()=>Eg,eFA:()=>zp,ekj:()=>F0,eoX:()=>kx,evT:()=>Xf,f3M:()=>hp,g9A:()=>_x,gM2:()=>z4,h0i:()=>ff,hGG:()=>JA,hij:()=>q0,iGM:()=>J4,ifc:()=>Dn,ip1:()=>yv,jDz:()=>H5,kL8:()=>k4,kYT:()=>ye,kcU:()=>u1,lG2:()=>Ne,lcZ:()=>ca,lnq:()=>h5,lqb:()=>$i,lri:()=>Zx,mCW:()=>B1,n5z:()=>Xs,n_E:()=>Md,oAB:()=>Ot,oJD:()=>sm,oxw:()=>wb,pB0:()=>Y1,q3G:()=>ac,qLn:()=>lm,qOj:()=>xm,qZA:()=>Z0,qzn:()=>rm,rWj:()=>Sv,s9C:()=>S0,sBO:()=>qv,sIi:()=>_i,s_b:()=>X0,soG:()=>l3,tb:()=>Tv,tp0:()=>N1,uIk:()=>du,uOi:()=>O_,vHH:()=>K,vpe:()=>id,wAp:()=>Ma,xi3:()=>W0,xp6:()=>Bm,ynx:()=>k0,z2F:()=>_3,z3N:()=>Zu,zSh:()=>ss,zs3:()=>Vm});var d=v(8929),p=v(42654),b=v(56498),T=v(36787),t=v(12474);function A(h){for(let g in h)if(h[g]===A)return g;throw Error("Could not find renamed property on target object.")}function x(h,g){for(const w in g)g.hasOwnProperty(w)&&!h.hasOwnProperty(w)&&(h[w]=g[w])}function U(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(U).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const w=g.indexOf("\n");return-1===w?g:g.substring(0,w)}function k(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const D=A({__forward_ref__:A});function P(h){return h.__forward_ref__=P,h.toString=function(){return U(this())},h}function F(h){return z(h)?h():h}function z(h){return"function"==typeof h&&h.hasOwnProperty(D)&&h.__forward_ref__===P}class K extends Error{constructor(g,w){super(function at(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,w)),this.code=g}}function ct(h){return"string"==typeof h?h:null==h?"":String(h)}function Vt(h,g){throw new K(-201,!1)}function $e(h,g){null==h&&function Xt(h,g,w,O){throw new Error(`ASSERTION ERROR: ${h}`+(null==O?"":` [Expected=> ${w} ${O} ${g} <=Actual]`))}(g,h,null,"!=")}function de(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function re(h){return{providers:h.providers||[],imports:h.imports||[]}}function De(h){return _n(h,un)||_n(h,oi)}function on(h){return null!==De(h)}function _n(h,g){return h.hasOwnProperty(g)?h[g]:null}function we(h){return h&&(h.hasOwnProperty(Un)||h.hasOwnProperty(vi))?h[Un]:null}const un=A({\u0275prov:A}),Un=A({\u0275inj:A}),oi=A({ngInjectableDef:A}),vi=A({ngInjectorDef:A});var si=(()=>((si=si||{})[si.Default=0]="Default",si[si.Host=1]="Host",si[si.Self=2]="Self",si[si.SkipSelf=4]="SkipSelf",si[si.Optional=8]="Optional",si))();let Ke;function lt(h){const g=Ke;return Ke=h,g}function nt(h,g,w){const O=De(h);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:w&si.Optional?null:void 0!==g?g:void Vt(U(h))}function Jt(h){return{toString:h}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Dn=(()=>{return(h=Dn||(Dn={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Dn;var h})();const Sn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ho={},fi=[],Bn=A({\u0275cmp:A}),jn=A({\u0275dir:A}),Ye=A({\u0275pipe:A}),fn=A({\u0275mod:A}),ze=A({\u0275fac:A}),We=A({__NG_ELEMENT_ID__:A});let en=0;function le(h){return Jt(()=>{const w=!0===h.standalone,O={},q={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:O,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||fi,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Dn.Emulated,id:"c"+en++,styles:h.styles||fi,_:null,setInput:null,schemas:h.schemas||null,tView:null},V=h.dependencies,ut=h.features;return q.inputs=Xe(h.inputs,O),q.outputs=Xe(h.outputs),ut&&ut.forEach(Ut=>Ut(q)),q.directiveDefs=V?()=>("function"==typeof V?V():V).map(Lt).filter(wt):null,q.pipeDefs=V?()=>("function"==typeof V?V():V).map(En).filter(wt):null,q})}function Ge(h,g,w){const O=h.\u0275cmp;O.directiveDefs=()=>("function"==typeof g?g():g).map(Lt),O.pipeDefs=()=>("function"==typeof w?w():w).map(En)}function Lt(h){return he(h)||Re(h)}function wt(h){return null!==h}function Ot(h){return Jt(()=>({type:h.type,bootstrap:h.bootstrap||fi,declarations:h.declarations||fi,imports:h.imports||fi,exports:h.exports||fi,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function ye(h,g){return Jt(()=>{const w=go(h,!0);w.declarations=g.declarations||fi,w.imports=g.imports||fi,w.exports=g.exports||fi})}function Xe(h,g){if(null==h)return ho;const w={};for(const O in h)if(h.hasOwnProperty(O)){let q=h[O],V=q;Array.isArray(q)&&(V=q[1],q=q[0]),w[q]=O,g&&(g[q]=V)}return w}const Ne=le;function Tn(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function he(h){return h[Bn]||null}function Re(h){return h[jn]||null}function En(h){return h[Ye]||null}function gi(h){const g=he(h)||Re(h)||En(h);return null!==g&&g.standalone}function go(h,g){const w=h[fn]||null;if(!w&&!0===g)throw new Error(`Type ${U(h)} does not have '\u0275mod' property.`);return w}const Q=18;function Qr(h){return Array.isArray(h)&&"object"==typeof h[1]}function Er(h){return Array.isArray(h)&&!0===h[1]}function Zc(h){return 0!=(8&h.flags)}function al(h){return 2==(2&h.flags)}function Mc(h){return 1==(1&h.flags)}function Ns(h){return null!==h.template}function kc(h){return 0!=(256&h[2])}function Zs(h,g){return h.hasOwnProperty(ze)?h[ze]:null}class Nl{constructor(g,w,O){this.previousValue=g,this.currentValue=w,this.firstChange=O}isFirstChange(){return this.firstChange}}function iu(){return ql}function ql(h){return h.type.prototype.ngOnChanges&&(h.setInput=or),Ro}function Ro(){const h=Iu(this),g=h?.current;if(g){const w=h.previous;if(w===ho)h.previous=g;else for(let O in g)w[O]=g[O];h.current=null,this.ngOnChanges(g)}}function or(h,g,w,O){const q=Iu(h)||function Rl(h,g){return h[uc]=g}(h,{previous:ho,current:null}),V=q.current||(q.current={}),ut=q.previous,Ut=this.declaredInputs[w],Ht=ut[Ut];V[Ut]=new Nl(Ht&&Ht.currentValue,g,ut===ho),h[O]=g}iu.ngInherit=!0;const uc="__ngSimpleChanges__";function Iu(h){return h[uc]||null}function pr(h){for(;Array.isArray(h);)h=h[0];return h}function bc(h,g){return pr(g[h])}function ar(h,g){return pr(g[h.index])}function ks(h,g){return h.data[g]}function Rs(h,g){return h[g]}function bs(h,g){const w=g[h];return Qr(w)?w:w[0]}function Hs(h){return 64==(64&h[2])}function dc(h,g){return null==g?null:h[g]}function Qs(h){h[Q]=0}function Fr(h,g){h[5]+=g;let w=h,O=h[3];for(;null!==O&&(1===g&&1===w[5]||-1===g&&0===w[5]);)O[5]+=g,w=O,O=O[3]}const ra={lFrame:_t(null),bindingsEnabled:!0};function Cc(){return ra.bindingsEnabled}function Bi(){return ra.lFrame.lView}function Pa(){return ra.lFrame.tView}function hu(h){return ra.lFrame.contextLView=h,h[8]}function Ws(h){return ra.lFrame.contextLView=null,h}function kr(){let h=pe();for(;null!==h&&64===h.type;)h=h.parent;return h}function pe(){return ra.lFrame.currentTNode}function qt(h,g){const w=ra.lFrame;w.currentTNode=h,w.isParent=g}function rt(){return ra.lFrame.isParent}function ki(){ra.lFrame.isParent=!1}function Ir(){const h=ra.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function Nr(){return ra.lFrame.bindingIndex}function tr(){return ra.lFrame.bindingIndex++}function wl(h){const g=ra.lFrame,w=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,w}function Jp(h,g){const w=ra.lFrame;w.bindingIndex=w.bindingRootIndex=h,au(g)}function au(h){ra.lFrame.currentDirectiveIndex=h}function Sc(h){const g=ra.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function sl(){return ra.lFrame.currentQueryIndex}function Ul(h){ra.lFrame.currentQueryIndex=h}function _p(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function Zl(h,g,w){if(w&si.SkipSelf){let q=g,V=h;for(;!(q=q.parent,null!==q||w&si.Host||(q=_p(V),null===q||(V=V[15],10&q.type))););if(null===q)return!1;g=q,h=V}const O=ra.lFrame=Yi();return O.currentTNode=g,O.lView=h,!0}function cl(h){const g=Yi(),w=h[1];ra.lFrame=g,g.currentTNode=w.firstChild,g.lView=h,g.tView=w,g.contextLView=h,g.bindingIndex=w.bindingStartIndex,g.inI18n=!1}function Yi(){const h=ra.lFrame,g=null===h?null:h.child;return null===g?_t(h):g}function _t(h){const g={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:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function ru(){const h=ra.lFrame;return ra.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const gu=ru;function Ua(){const h=ru();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function qr(){return ra.lFrame.selectedIndex}function ws(h){ra.lFrame.selectedIndex=h}function Ra(){const h=ra.lFrame;return ks(h.tView,h.selectedIndex)}function Ei(){ra.lFrame.currentNamespace="svg"}function u1(){!function zl(){ra.lFrame.currentNamespace=null}()}function Pi(h,g){for(let w=g.directiveStart,O=g.directiveEnd;w=O)break}else g[Ht]<0&&(h[Q]+=65536),(Ut>11>16&&(3&h[2])===g){h[2]+=2048;try{V.call(Ut)}finally{}}}else try{V.call(Ut)}finally{}}class vu{constructor(g,w,O){this.factory=g,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=O}}function Qe(h,g,w){let O=0;for(;Og){ut=V-1;break}}}for(;V>16}(h),O=g;for(;w>0;)O=O[15],w--;return O}let yi=!0;function wi(h){const g=yi;return yi=h,g}let va=0;const sa={};function ts(h,g){const w=es(h,g);if(-1!==w)return w;const O=g[1];O.firstCreatePass&&(h.injectorIndex=g.length,zs(O.data,h),zs(g,null),zs(O.blueprint,null));const q=ns(h,g),V=h.injectorIndex;if(tn(q)){const ut=bn(q),Ut=Qn(q,g),Ht=Ut[1].data;for(let ge=0;ge<8;ge++)g[V+ge]=Ut[ut+ge]|Ht[ut+ge]}return g[V+8]=q,V}function zs(h,g){h.push(0,0,0,0,0,0,0,0,g)}function es(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function ns(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let w=0,O=null,q=g;for(;null!==q;){if(O=Ds(q),null===O)return-1;if(w++,q=q[15],-1!==O.injectorIndex)return O.injectorIndex|w<<16}return-1}function ps(h,g,w){!function ha(h,g,w){let O;"string"==typeof w?O=w.charCodeAt(0)||0:w.hasOwnProperty(We)&&(O=w[We]),null==O&&(O=w[We]=va++);const q=255&O;g.data[h+(q>>5)]|=1<=0?255&g:xc:g}(w);if("function"==typeof V){if(!Zl(g,h,O))return O&si.Host?Ks(q,0,O):Lc(g,w,O,q);try{const ut=V(O);if(null!=ut||O&si.Optional)return ut;Vt()}finally{gu()}}else if("number"==typeof V){let ut=null,Ut=es(h,g),Ht=-1,ge=O&si.Host?g[16][6]:null;for((-1===Ut||O&si.SkipSelf)&&(Ht=-1===Ut?ns(h,g):g[Ut+8],-1!==Ht&&$a(O,!1)?(ut=g[1],Ut=bn(Ht),g=Qn(Ht,g)):Ut=-1);-1!==Ut;){const je=g[1];if(Qp(V,Ut,je.data)){const Cn=rr(Ut,g,w,ut,O,ge);if(Cn!==sa)return Cn}Ht=g[Ut+8],-1!==Ht&&$a(O,g[1].data[Ut+8]===ge)&&Qp(V,Ut,g)?(ut=je,Ut=bn(Ht),g=Qn(Ht,g)):Ut=-1}}return q}function rr(h,g,w,O,q,V){const ut=g[1],Ut=ut.data[h+8],je=sr(Ut,ut,w,null==O?al(Ut)&&yi:O!=ut&&0!=(3&Ut.type),q&si.Host&&V===Ut);return null!==je?Cs(g,ut,je,Ut):sa}function sr(h,g,w,O,q){const V=h.providerIndexes,ut=g.data,Ut=1048575&V,Ht=h.directiveStart,je=V>>20,ai=q?Ut+je:h.directiveEnd;for(let Ai=O?Ut:Ut+je;Ai=Ht&&Vi.type===w)return Ai}if(q){const Ai=ut[Ht];if(Ai&&Ns(Ai)&&Ai.type===w)return Ht}return null}function Cs(h,g,w,O){let q=h[w];const V=g.data;if(function $s(h){return h instanceof vu}(q)){const ut=q;ut.resolving&&function Dt(h,g){const w=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new K(-200,`Circular dependency in DI detected for ${h}${w}`)}(function vt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():ct(h)}(V[w]));const Ut=wi(ut.canSeeViewProviders);ut.resolving=!0;const Ht=ut.injectImpl?lt(ut.injectImpl):null;Zl(h,O,si.Default);try{q=h[w]=ut.factory(void 0,V,h,O),g.firstCreatePass&&w>=O.directiveStart&&function Di(h,g,w){const{ngOnChanges:O,ngOnInit:q,ngDoCheck:V}=g.type.prototype;if(O){const ut=ql(g);(w.preOrderHooks||(w.preOrderHooks=[])).push(h,ut),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,ut)}q&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-h,q),V&&((w.preOrderHooks||(w.preOrderHooks=[])).push(h,V),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,V))}(w,V[w],g)}finally{null!==Ht&<(Ht),wi(Ut),ut.resolving=!1,gu()}}return q}function Qp(h,g,w){return!!(w[g+(h>>5)]&1<{const g=h.prototype.constructor,w=g[ze]||bu(g),O=Object.prototype;let q=Object.getPrototypeOf(h.prototype).constructor;for(;q&&q!==O;){const V=q[ze]||bu(q);if(V&&V!==w)return V;q=Object.getPrototypeOf(q)}return V=>new V})}function bu(h){return z(h)?()=>{const g=bu(F(h));return g&&g()}:Zs(h)}function Ds(h){const g=h[1],w=g.type;return 2===w?g.declTNode:1===w?h[6]:null}function Id(h){return function Rr(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const w=h.attrs;if(w){const O=w.length;let q=0;for(;q{const O=function os(h){return function(...w){if(h){const O=h(...w);for(const q in O)this[q]=O[q]}}}(g);function q(...V){if(this instanceof q)return O.apply(this,V),this;const ut=new q(...V);return Ut.annotation=ut,Ut;function Ut(Ht,ge,je){const Cn=Ht.hasOwnProperty(Hu)?Ht[Hu]:Object.defineProperty(Ht,Hu,{value:[]})[Hu];for(;Cn.length<=je;)Cn.push(null);return(Cn[je]=Cn[je]||[]).push(ut),Ht}}return w&&(q.prototype=Object.create(w.prototype)),q.prototype.ngMetadataName=h,q.annotationCls=q,q})}class Tr{constructor(g,w){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=de({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Go(h,g){void 0===g&&(g=h);for(let w=0;wArray.isArray(w)?gd(w,g):g(w))}function f_(h,g,w){g>=h.length?h.push(w):h.splice(g,0,w)}function fp(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function Nd(h,g){const w=[];for(let O=0;O=0?h[1|O]=w:(O=~O,function bt(h,g,w,O){let q=h.length;if(q==g)h.push(w,O);else if(1===q)h.push(O,h[0]),h[0]=w;else{for(q--,h.push(h[q-1],h[q]);q>g;)h[q]=h[q-2],q--;h[g]=w,h[g+1]=O}}(h,O,g,w)),O}function ke(h,g){const w=kn(h,g);if(w>=0)return h[1|w]}function kn(h,g){return function Fi(h,g,w){let O=0,q=h.length>>w;for(;q!==O;){const V=O+(q-O>>1),ut=h[V<g?q=V:O=V+1}return~(q<((_1=_1||{})[_1.Important=1]="Important",_1[_1.DashCase=2]="DashCase",_1))();const Xp=new Map;let Pf=0;const Tu="__ngContext__";function Ss(h,g){Qr(g)?(h[Tu]=g[20],function xg(h){Xp.set(h[20],h)}(g)):h[Tu]=g}function Lf(h,g){return undefined(h,g)}function T_(h){const g=h[3];return Er(g)?g[3]:g}function Of(h){return Mg(h[13])}function y2(h){return Mg(h[4])}function Mg(h){for(;null!==h&&!Er(h);)h=h[4];return h}function Uu(h,g,w,O,q){if(null!=O){let V,ut=!1;Er(O)?V=O:Qr(O)&&(ut=!0,O=O[0]);const Ut=pr(O);0===h&&null!==w?null==q?te(g,w,Ut):xs(g,w,Ut,q||null,!0):1===h&&null!==w?xs(g,w,Ut,q||null,!0):2===h?function g1(h,g,w){const O=em(h,g);O&&function Dg(h,g,w,O){h.removeChild(g,w,O)}(h,O,g,w)}(g,Ut,ut):3===h&&g.destroyNode(Ut),null!=V&&function Cr(h,g,w,O,q){const V=w[7];V!==pr(w)&&Uu(g,h,O,V,q);for(let Ut=10;Ut0&&(h[w-1][4]=O[4]);const V=fp(h,10+g);!function Ff(h,g){As(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(O[1],O);const ut=V[19];null!==ut&&ut.detachView(V[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Xo(h,g){if(!(128&g[2])){const w=g[11];w.destroyNode&&As(h,g,w,3,null,null),function Em(h){let g=h[13];if(!g)return Ap(h[1],h);for(;g;){let w=null;if(Qr(g))w=g[13];else{const O=g[10];O&&(w=O)}if(!w){for(;g&&!g[4]&&g!==h;)Qr(g)&&Ap(g[1],g),g=g[3];null===g&&(g=h),Qr(g)&&Ap(g[1],g),w=g&&g[4]}g=w}}(g)}}function Ap(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function U_(h,g){let w;if(null!=h&&null!=(w=h.destroyHooks))for(let O=0;O=0?O[q=ge]():O[q=-ge].unsubscribe(),V+=2}else{const ut=O[q=w[V+1]];w[V].call(ut)}if(null!==O){for(let V=q+1;Vh,createScript:h=>h,createScriptURL:h=>h})}catch{}return z1}()?.createHTML(h)||h}function xd(h){v1=h}function Vd(){if(void 0===b1&&(b1=null,Sn.trustedTypes))try{b1=Sn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return b1}function Vl(h){return Vd()?.createHTML(h)||h}function M_(h){return Vd()?.createScriptURL(h)||h}class C1{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class k2 extends C1{getTypeName(){return"HTML"}}class Sg extends C1{getTypeName(){return"Style"}}class x1 extends C1{getTypeName(){return"Script"}}class Lg extends C1{getTypeName(){return"URL"}}class Rf extends C1{getTypeName(){return"ResourceURL"}}function Zu(h){return h instanceof C1?h.changingThisBreaksApplicationSecurity:h}function rm(h,g){const w=function k_(h){return h instanceof C1&&h.getTypeName()||null}(h);if(null!=w&&w!==g){if("ResourceURL"===w&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===g}function Og(h){return new k2(h)}function D_(h){return new Sg(h)}function Eg(h){return new x1(h)}function Rm(h){return new Lg(h)}function Y1(h){return new Rf(h)}class Mu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const w=(new window.DOMParser).parseFromString(rs(g),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(g):(w.removeChild(w.firstChild),w)}catch{return null}}}class ml{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const O=this.inertDocument.createElement("body");w.appendChild(O)}}getInertBodyElement(g){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=rs(g),w;const O=this.inertDocument.createElement("body");return O.innerHTML=rs(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(g){const w=g.attributes;for(let q=w.length-1;0"),!0}endElement(g){const w=g.nodeName.toLowerCase();Vu.hasOwnProperty(w)&&!ku.hasOwnProperty(w)&&(this.buf.push(""))}chars(g){this.buf.push(Bf(g))}checkClobberedElement(g,w){if(w&&(g.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return w}}const Yf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L_=/([^\#-~ |!])/g;function Bf(h){return h.replace(/&/g,"&").replace(Yf,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(L_,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let P2;function Vf(h,g){let w=null;try{P2=P2||function Hf(h){const g=new ml(h);return function jd(){try{return!!(new window.DOMParser).parseFromString(rs(""),"text/html")}catch{return!1}}()?new Mu(g):g}(h);let O=g?String(g):"";w=P2.getInertBodyElement(O);let q=5,V=O;do{if(0===q)throw new Error("Failed to sanitize html because the input is unstable");q--,O=V,V=w.innerHTML,w=P2.getInertBodyElement(O)}while(O!==V);return rs((new Fg).sanitizeChildren(A1(w)||w))}finally{if(w){const O=A1(w)||w;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function A1(h){return"content"in h&&function z3(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ac=(()=>((ac=ac||{})[ac.NONE=0]="NONE",ac[ac.HTML=1]="HTML",ac[ac.STYLE=2]="STYLE",ac[ac.SCRIPT=3]="SCRIPT",ac[ac.URL=4]="URL",ac[ac.RESOURCE_URL=5]="RESOURCE_URL",ac))();function sm(h){const g=ia();return g?Vl(g.sanitize(ac.HTML,h)||""):rm(h,"HTML")?Vl(Zu(h)):Vf(function qm(){return void 0!==v1?v1:typeof document<"u"?document:void 0}(),ct(h))}function Ng(h){const g=ia();return g?g.sanitize(ac.URL,h)||"":rm(h,"URL")?Zu(h):B1(ct(h))}function O_(h){const g=ia();if(g)return M_(g.sanitize(ac.RESOURCE_URL,h)||"");if(rm(h,"ResourceURL"))return M_(Zu(h));throw new K(904,!1)}function ia(){const h=Bi();return h&&h[12]}const S2=new Tr("ENVIRONMENT_INITIALIZER"),zg=new Tr("INJECTOR",-1),V1=new Tr("INJECTOR_DEF_TYPES");class Gu{get(g,w=da){if(w===da){const O=new Error(`NullInjectorError: No provider for ${U(g)}!`);throw O.name="NullInjectorError",O}return w}}function $c(...h){return{\u0275providers:Jf(0,h)}}function Jf(h,...g){const w=[],O=new Set;let q;return gd(g,V=>{const ut=V;Bg(ut,w,[],O)&&(q||(q=[]),q.push(ut))}),void 0!==q&&Yg(q,w),w}function Yg(h,g){for(let w=0;w{g.push(V)})}}function Bg(h,g,w,O){if(!(h=F(h)))return!1;let q=null,V=we(h);const ut=!V&&he(h);if(V||ut){if(ut&&!ut.standalone)return!1;q=h}else{const Ht=h.ngModule;if(V=we(Ht),!V)return!1;q=Ht}const Ut=O.has(q);if(ut){if(Ut)return!1;if(O.add(q),ut.dependencies){const Ht="function"==typeof ut.dependencies?ut.dependencies():ut.dependencies;for(const ge of Ht)Bg(ge,g,w,O)}}else{if(!V)return!1;{if(null!=V.imports&&!Ut){let ge;O.add(q);try{gd(V.imports,je=>{Bg(je,g,w,O)&&(ge||(ge=[]),ge.push(je))})}finally{}void 0!==ge&&Yg(ge,g)}if(!Ut){const ge=Zs(q)||(()=>new q);g.push({provide:q,useFactory:ge,deps:fi},{provide:V1,useValue:q,multi:!0},{provide:S2,useValue:()=>Dr(q),multi:!0})}const Ht=V.providers;null==Ht||Ut||gd(Ht,je=>{g.push(je)})}}return q!==h&&void 0!==h.providers}const Vg=A({provide:String,useValue:A});function y1(h){return null!==h&&"object"==typeof h&&Vg in h}function Du(h){return"function"==typeof h}const ss=new Tr("Set Injector scope."),jl={},_s={};let Jd;function j1(){return void 0===Jd&&(Jd=new Gu),Jd}class $i{}class Tp extends $i{constructor(g,w,O,q){super(),this.parent=w,this.source=O,this.scopes=q,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jg(g,ut=>this.processProvider(ut)),this.records.set(zg,Oi(void 0,this)),q.has("environment")&&this.records.set($i,Oi(void 0,this));const V=this.records.get(ss);null!=V&&"string"==typeof V.value&&this.scopes.add(V.value),this.injectorDefTypes=new Set(this.get(V1.multi,fi,si.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const w=Ac(this),O=lt(void 0);try{return g()}finally{Ac(w),lt(O)}}get(g,w=da,O=si.Default){this.assertNotDestroyed();const q=Ac(this),V=lt(void 0);try{if(!(O&si.SkipSelf)){let Ut=this.records.get(g);if(void 0===Ut){const Ht=function Qf(h){return"function"==typeof h||"object"==typeof h&&h instanceof Tr}(g)&&De(g);Ut=Ht&&this.injectableDefInScope(Ht)?Oi(cm(g),jl):null,this.records.set(g,Ut)}if(null!=Ut)return this.hydrate(g,Ut)}return(O&si.Self?j1():this.parent).get(g,w=O&si.Optional&&w===da?null:w)}catch(ut){if("NullInjectorError"===ut.name){if((ut[xi]=ut[xi]||[]).unshift(U(g)),q)throw ut;return function I1(h,g,w,O){const q=h[xi];throw g[h_]&&q.unshift(g[h_]),h.message=function hg(h,g,w,O=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let q=U(g);if(Array.isArray(g))q=g.map(U).join(" -> ");else if("object"==typeof g){let V=[];for(let ut in g)if(g.hasOwnProperty(ut)){let Ut=g[ut];V.push(ut+":"+("string"==typeof Ut?JSON.stringify(Ut):U(Ut)))}q=`{${V.join(", ")}}`}return`${w}${O?"("+O+")":""}[${q}]: ${h.replace(ga,"\n ")}`}("\n"+h.message,q,w,O),h.ngTokenPath=q,h[xi]=null,h}(ut,g,"R3InjectorError",this.source)}throw ut}finally{lt(V),Ac(q)}}resolveInjectorInitializers(){const g=Ac(this),w=lt(void 0);try{const O=this.get(S2.multi,fi,si.Self);for(const q of O)q()}finally{Ac(g),lt(w)}}toString(){const g=[],w=this.records;for(const O of w.keys())g.push(U(O));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processProvider(g){let w=Du(g=F(g))?g:F(g&&g.provide);const O=function I_(h){return y1(h)?Oi(void 0,h.useValue):Oi(N_(h),jl)}(g);if(Du(g)||!0!==g.multi)this.records.get(w);else{let q=this.records.get(w);q||(q=Oi(void 0,jl,!0),q.factory=()=>Rd(q.multi),this.records.set(w,q)),w=g,q.multi.push(g)}this.records.set(w,O)}hydrate(g,w){return w.value===jl&&(w.value=_s,w.value=w.factory()),"object"==typeof w.value&&w.value&&function j3(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(g){if(!g.providedIn)return!1;const w=F(g.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function cm(h){const g=De(h),w=null!==g?g.factory:Zs(h);if(null!==w)return w;if(h instanceof Tr)throw new K(204,!1);if(h instanceof Function)return function F_(h){const g=h.length;if(g>0)throw Nd(g,"?"),new K(204,!1);const w=function Ae(h){const g=h&&(h[un]||h[oi]);if(g){const w=function gn(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${w}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${w}" class.`),g}return null}(h);return null!==w?()=>w.factory(h):()=>new h}(h);throw new K(204,!1)}function N_(h,g,w){let O;if(Du(h)){const q=F(h);return Zs(q)||cm(q)}if(y1(h))O=()=>F(h.useValue);else if(function Kc(h){return!(!h||!h.useFactory)}(h))O=()=>h.useFactory(...Rd(h.deps||[]));else if(function B3(h){return!(!h||!h.useExisting)}(h))O=()=>Dr(F(h.useExisting));else{const q=F(h&&(h.useClass||h.provide));if(!function V3(h){return!!h.deps}(h))return Zs(q)||cm(q);O=()=>new q(...Rd(h.deps))}return O}function Oi(h,g,w=!1){return{factory:h,value:g,multi:w?[]:void 0}}function L2(h){return!!h.\u0275providers}function jg(h,g){for(const w of h)Array.isArray(w)?jg(w,g):L2(w)?jg(w.\u0275providers,g):g(w)}class O2{}class Gg{resolveComponentFactory(g){throw function E2(h){const g=Error(`No component factory found for ${U(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let Hm=(()=>{class h{}return h.NULL=new Gg,h})();function G3(){return zm(kr(),Bi())}function zm(h,g){return new q_(ar(h,g))}let q_=(()=>{class h{constructor(w){this.nativeElement=w}}return h.__NG_ELEMENT_ID__=G3,h})();function Ju(h){return h instanceof q_?h.nativeElement:h}class Jg{}let Q3=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function R_(){const h=Bi(),w=bs(kr().index,h);return(Qr(w)?w:h)[11]}(),h})(),Qg=(()=>{class h{}return h.\u0275prov=de({token:h,providedIn:"root",factory:()=>null}),h})();class Wg{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const Ad=new Wg("14.3.0"),Ym={};function Qu(h){return h.ngOriginalError}class lm{constructor(){this._console=console}handleError(g){const w=this._findOriginalError(g);this._console.error("ERROR",g),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(g){let w=g&&Qu(g);for(;w&&Qu(w);)w=Qu(w);return w||null}}function um(h){return h.ownerDocument.defaultView}function Xf(h){return h.ownerDocument}function Qd(h){return h instanceof Function?h():h}function I2(h,g,w){let O=h.length;for(;;){const q=h.indexOf(g,w);if(-1===q)return q;if(0===q||h.charCodeAt(q-1)<=32){const V=g.length;if(q+V===O||h.charCodeAt(q+V)<=32)return q}w=q+1}}const Xg="ng-template";function t0(h,g,w){let O=0;for(;OV?"":q[Cn+1].toLowerCase();const Ai=8&O?ai:null;if(Ai&&-1!==I2(Ai,ge,0)||2&O&&ge!==ai){if(yd(O))return!1;ut=!0}}}}else{if(!ut&&!yd(O)&&!yd(Ht))return!1;if(ut&&yd(Ht))continue;ut=!1,O=Ht|1&O}}return yd(O)||ut}function yd(h){return 0==(1&h)}function K3(h,g,w,O){if(null===g)return-1;let q=0;if(O||!w){let V=!1;for(;q-1)for(w++;w0?'="'+Ut+'"':"")+"]"}else 8&O?q+="."+ut:4&O&&(q+=" "+ut);else""!==q&&!yd(ut)&&(g+=lu(V,q),q=""),O=ut,V=V||!yd(O);w++}return""!==q&&(g+=lu(V,q)),g}const Va={};function Bm(h){wp(Pa(),Bi(),qr()+h,!1)}function wp(h,g,w,O){if(!O)if(3==(3&g[2])){const V=h.preOrderCheckHooks;null!==V&&Lo(g,V,w)}else{const V=h.preOrderHooks;null!==V&&pa(g,V,0,w)}ws(w)}function t4(h,g=null,w=null,O){const q=Wu(h,g,w,O);return q.resolveInjectorInitializers(),q}function Wu(h,g=null,w=null,O,q=new Set){const V=[w||fi,$c(h)];return O=O||("object"==typeof h?void 0:U(h)),new Tp(V,g||j1(),O||null,q)}let Vm=(()=>{class h{static create(w,O){if(Array.isArray(w))return t4({name:""},O,w,"");{const q=w.name??"";return t4({name:q},w.parent,w.providers,q)}}}return h.THROW_IF_NOT_FOUND=da,h.NULL=new Gu,h.\u0275prov=de({token:h,providedIn:"any",factory:()=>Dr(zg)}),h.__NG_ELEMENT_ID__=-1,h})();function _r(h,g=si.Default){const w=Bi();return null===w?Dr(h,g):is(kr(),w,F(h),g)}function Os(){throw new Error("invalid")}function Q1(h,g){return h<<17|g<<2}function Yr(h){return h>>17&32767}function U1(h){return 2|h}function tl(h){return(131068&h)>>2}function Lu(h,g){return-131069&h|g<<2}function ja(h){return 1|h}function d0(h,g){const w=h.contentQueries;if(null!==w)for(let O=0;O22&&wp(h,g,22,!1),w(O,q)}finally{ws(V)}}function j2(h,g,w){if(Zc(g)){const q=g.directiveEnd;for(let V=g.directiveStart;V0;){const w=h[--g];if("number"==typeof w&&w<0)return w}return 0})(Ut)!=Ht&&Ut.push(Ht),Ut.push(O,q,ut)}}function X1(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function l4(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function Q2(h,g,w){if(w){if(g.exportAs)for(let O=0;O0&&b0(w)}}function b0(h){for(let O=Of(h);null!==O;O=y2(O))for(let q=10;q0&&b0(V)}const w=h[1].components;if(null!==w)for(let O=0;O0&&b0(q)}}function p4(h,g){const w=bs(g,h),O=w[1];(function bm(h,g){for(let w=g.length;w-1&&(Zo(g,O),fp(w,O))}this._attachedToViewContainer=!1}Xo(this._lView[1],this._lView)}onDestroy(g){fh(this._lView[1],this._lView,null,g)}markForCheck(){K_(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Ch(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function If(h,g){As(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=g}}class K2 extends Xm{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;Ch(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class Fp extends Hm{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const w=he(g);return new Ip(w,this.ngModule)}}function Dl(h){const g=[];for(let w in h)h.hasOwnProperty(w)&&g.push({propName:h[w],templateName:w});return g}class yh{constructor(g,w){this.injector=g,this.parentInjector=w}get(g,w,O){const q=this.injector.get(g,Ym,O);return q!==Ym||w===Ym?q:this.parentInjector.get(g,w,O)}}class Ip extends O2{constructor(g,w){super(),this.componentDef=g,this.ngModule=w,this.componentType=g.type,this.selector=function o0(h){return h.map(G1).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return Dl(this.componentDef.inputs)}get outputs(){return Dl(this.componentDef.outputs)}create(g,w,O,q){let V=(q=q||this.ngModule)instanceof $i?q:q?.injector;V&&null!==this.componentDef.getStandaloneInjector&&(V=this.componentDef.getStandaloneInjector(V)||V);const ut=V?new yh(g,V):g,Ut=ut.get(Jg,null);if(null===Ut)throw new K(407,!1);const Ht=ut.get(Qg,null),ge=Ut.createRenderer(null,this.componentDef),je=this.componentDef.selectors[0][0]||"div",Cn=O?function _0(h,g,w){return h.selectRootElement(g,w===Dn.ShadowDom)}(ge,O,this.componentDef.encapsulation):Qc(ge,je,function X2(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(je)),ai=this.componentDef.onPush?288:272,Ai=m0(0,null,null,1,0,null,null,null,null,null),Vi=K1(null,Ai,null,ai,null,null,Ut,ge,Ht,ut,null);let yo,so;cl(Vi);try{const ma=function x0(h,g,w,O,q,V){const ut=w[1];w[22]=h;const Ht=Q_(ut,22,2,"#host",null),ge=Ht.mergedAttrs=g.hostAttrs;null!==ge&&($2(Ht,ge,!0),null!==h&&(Qe(q,h,ge),null!==Ht.classes&&Nm(q,h,Ht.classes),null!==Ht.styles&&oc(q,h,Ht.styles)));const je=O.createRenderer(h,g),Cn=K1(w,_h(g),null,g.onPush?32:16,w[22],Ht,O,je,V||null,null,null);return ut.firstCreatePass&&(ps(ts(Ht,w),ut,g.type),l4(ut,Ht),W2(Ht,w.length,1)),Km(w,Cn),w[22]=Cn}(Cn,this.componentDef,Vi,Ut,ge);if(Cn)if(O)Qe(ge,Cn,["ng-version",Ad.full]);else{const{attrs:wa,classes:ao}=function a0(h){const g=[],w=[];let O=1,q=2;for(;O0&&Nm(ge,Cn,ao.join(" "))}if(so=ks(Ai,22),void 0!==w){const wa=so.projection=[];for(let ao=0;ao=0;O--){const q=h[O];q.hostVars=g+=q.hostVars,q.hostAttrs=ce(q.hostAttrs,w=ce(w,q.hostAttrs))}}(O)}function tf(h){return h===ho?{}:h===fi?[]:h}function ef(h,g){const w=h.viewQuery;h.viewQuery=w?(O,q)=>{g(O,q),w(O,q)}:g}function L(h,g){const w=h.contentQueries;h.contentQueries=w?(O,q,V)=>{g(O,q,V),w(O,q,V)}:g}function R(h,g){const w=h.hostBindings;h.hostBindings=w?(O,q)=>{g(O,q),w(O,q)}:g}let pn=null;function Yn(){if(!pn){const h=Sn.Symbol;if(h&&h.iterator)pn=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wUt(pr(Br[O.index])):O.index;let Ea=null;if(!Ut&&Ht&&(Ea=function yb(h,g,w,O){const q=h.cleanup;if(null!=q)for(let V=0;VHt?Ut[Ht]:null}"string"==typeof ut&&(V+=2)}return null}(h,g,q,O.index)),null!==Ea)(Ea.__ngLastListenerFn__||Ea).__ngNextListenerFn__=V,Ea.__ngLastListenerFn__=V,Ai=!1;else{V=Tb(O,g,Cn,V,!1);const Br=w.listen(ma,q,V);ai.push(V,Br),je&&je.push(q,ao,wa,wa+1)}}else V=Tb(O,g,Cn,V,!1);const Vi=O.outputs;let yo;if(Ai&&null!==Vi&&(yo=Vi[q])){const so=yo.length;if(so)for(let ma=0;ma0;)g=g[15],h--;return g}(h,ra.lFrame.contextLView))[8]}(h)}function Ub(h,g){let w=null;const O=function R6(h){const g=h.attrs;if(null!=g){const w=g.indexOf(5);if(0==(1&w))return g[w+1]}return null}(h);for(let q=0;q=0}const cc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Sb(h){return h.substring(cc.key,cc.keyEnd)}function Ob(h,g){const w=cc.textEnd;return w===g?-1:(g=cc.keyEnd=function wd(h,g,w){for(;g32;)g++;return g}(h,cc.key=g,w),Na(h,g,w))}function Na(h,g,w){for(;g=0;w=Ob(g,w))ie(h,Sb(g),!0)}function P1(h,g,w,O){const q=Bi(),V=Pa(),ut=wl(2);V.firstUpdatePass&&Rb(V,h,ut,O),g!==Va&&xa(q,ut,g)&&f5(V,V.data[qr()],q,q[11],h,q[ut+1]=function Bb(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=U(Zu(h)))),h}(g,w),O,ut)}function ip(h,g,w,O){const q=Pa(),V=wl(2);q.firstUpdatePass&&Rb(q,null,V,O);const ut=Bi();if(w!==Va&&xa(ut,V,w)){const Ut=q.data[qr()];if(_c(Ut,O)&&!qb(q,V)){let Ht=O?Ut.classesWithoutHost:Ut.stylesWithoutHost;null!==Ht&&(w=k(Ht,w||"")),C4(q,Ut,ut,w,O)}else!function D8(h,g,w,O,q,V,ut,Ut){q===Va&&(q=fi);let Ht=0,ge=0,je=0=h.expandoStartIndex}function Rb(h,g,w,O){const q=h.data;if(null===q[w+1]){const V=q[qr()],ut=qb(h,w);_c(V,O)&&null===g&&!ut&&(g=!1),g=function Hb(h,g,w,O){const q=Sc(h);let V=O?g.residualClasses:g.residualStyles;if(null===q)0===(O?g.classBindings:g.styleBindings)&&(w=I0(w=Oh(null,h,g,w,O),g.attrs,O),V=null);else{const ut=g.directiveStylingLast;if(-1===ut||h[ut]!==q)if(w=Oh(q,h,g,w,O),null===V){let Ht=function M8(h,g,w){const O=w?g.classBindings:g.styleBindings;if(0!==tl(O))return h[Yr(O)]}(h,g,O);void 0!==Ht&&Array.isArray(Ht)&&(Ht=Oh(null,h,g,Ht[1],O),Ht=I0(Ht,g.attrs,O),function k8(h,g,w,O){h[Yr(w?g.classBindings:g.styleBindings)]=O}(h,g,O,Ht))}else V=function zb(h,g,w){let O;const q=g.directiveEnd;for(let V=1+g.directiveStylingLast;V0)&&(ge=!0)}else je=w;if(q)if(0!==Ht){const ai=Yr(h[Ut+1]);h[O+1]=Q1(ai,Ut),0!==ai&&(h[ai+1]=Lu(h[ai+1],O)),h[Ut+1]=function Su(h,g){return 131071&h|g<<17}(h[Ut+1],O)}else h[O+1]=Q1(Ut,0),0!==Ut&&(h[Ut+1]=Lu(h[Ut+1],O)),Ut=O;else h[O+1]=Q1(Ht,0),0===Ut?Ut=O:h[Ht+1]=Lu(h[Ht+1],O),Ht=O;ge&&(h[O+1]=U1(h[O+1])),sf(h,je,O,!0),sf(h,je,O,!1),function Db(h,g,w,O,q){const V=q?h.residualClasses:h.residualStyles;null!=V&&"string"==typeof g&&kn(V,g)>=0&&(w[O+1]=ja(w[O+1]))}(g,je,h,O,V),ut=Q1(Ut,Ht),V?g.classBindings=ut:g.styleBindings=ut}(q,V,g,w,ut,O)}}function Oh(h,g,w,O,q){let V=null;const ut=w.directiveEnd;let Ut=w.directiveStylingLast;for(-1===Ut?Ut=w.directiveStart:Ut++;Ut0;){const Ht=h[q],ge=Array.isArray(Ht),je=ge?Ht[1]:Ht,Cn=null===je;let ai=w[q+1];ai===Va&&(ai=Cn?fi:void 0);let Ai=Cn?ke(ai,O):je===O?ai:void 0;if(ge&&!Eh(Ai)&&(Ai=ke(Ht,O)),Eh(Ai)&&(Ut=Ai,ut))return Ut;const Vi=h[q+1];q=ut?Yr(Vi):tl(Vi)}if(null!==g){let Ht=V?g.residualClasses:g.residualStyles;null!=Ht&&(Ut=ke(Ht,O))}return Ut}function Eh(h){return void 0!==h}function _c(h,g){return 0!=(h.flags&(g?16:32))}function y4(h,g=""){const w=Bi(),O=Pa(),q=h+22,V=O.firstCreatePass?Q_(O,q,1,g,null):O.data[q],ut=w[q]=function kg(h,g){return h.createText(g)}(w[11],g);Jr(O,w,ut,V),qt(V,!1)}function T4(h){return q0("",h,""),T4}function q0(h,g,w){const O=Bi(),q=_l(O,h,g,w);return q!==Va&&Eu(O,qr(),q),q0}function cf(h,g,w,O,q){const V=Bi(),ut=function Es(h,g,w,O,q,V){const Ut=Aa(h,Nr(),w,q);return wl(2),Ut?g+ct(w)+O+ct(q)+V:Va}(V,h,g,w,O,q);return ut!==Va&&Eu(V,qr(),ut),cf}function h5(h,g,w,O,q,V,ut){const Ut=Bi(),Ht=function Wl(h,g,w,O,q,V,ut,Ut){const ge=Ka(h,Nr(),w,q,ut);return wl(3),ge?g+ct(w)+O+ct(q)+V+ct(ut)+Ut:Va}(Ut,h,g,w,O,q,V,ut);return Ht!==Va&&Eu(Ut,qr(),Ht),h5}function R0(h,g,w,O,q,V,ut,Ut,Ht){const ge=Bi(),je=function pu(h,g,w,O,q,V,ut,Ut,Ht,ge){const Cn=za(h,Nr(),w,q,ut,Ht);return wl(4),Cn?g+ct(w)+O+ct(q)+V+ct(ut)+Ut+ct(Ht)+ge:Va}(ge,h,g,w,O,q,V,ut,Ut,Ht);return je!==Va&&Eu(ge,qr(),je),R0}function Rp(h,g,w){ip(ie,Mo,_l(Bi(),h,g,w),!0)}function M4(h,g,w){const O=Bi();return xa(O,tr(),g)&&Ku(Pa(),Ra(),O,h,g,O[11],w,!0),M4}function T5(h,g,w){const O=Bi();if(xa(O,tr(),g)){const V=Pa(),ut=Ra();Ku(V,ut,O,h,g,D1(Sc(V.data),ut,O),w,!0)}return T5}const $d=void 0;var zn=["en",[["a","p"],["AM","PM"],$d],[["AM","PM"],$d,$d],[["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"]],$d,[["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"]],$d,[["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}",$d,"{1} 'at' {0}",$d],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Ti(h){const w=Math.floor(Math.abs(h)),O=h.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===O?1:5}];let H={};function qh(h,g,w){"string"!=typeof g&&(w=g,g=h[Ma.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),H[g]=h,w&&(H[g][Ma.ExtraData]=w)}function Oc(h){const g=function D4(h){return h.toLowerCase().replace(/_/g,"-")}(h);let w=Y0(g);if(w)return w;const O=g.split("-")[0];if(w=Y0(O),w)return w;if("en"===O)return zn;throw new K(701,!1)}function k4(h){return Oc(h)[Ma.PluralCase]}function Y0(h){return h in H||(H[h]=Sn.ng&&Sn.ng.common&&Sn.ng.common.locales&&Sn.ng.common.locales[h]),H[h]}var Ma=(()=>((Ma=Ma||{})[Ma.LocaleId=0]="LocaleId",Ma[Ma.DayPeriodsFormat=1]="DayPeriodsFormat",Ma[Ma.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ma[Ma.DaysFormat=3]="DaysFormat",Ma[Ma.DaysStandalone=4]="DaysStandalone",Ma[Ma.MonthsFormat=5]="MonthsFormat",Ma[Ma.MonthsStandalone=6]="MonthsStandalone",Ma[Ma.Eras=7]="Eras",Ma[Ma.FirstDayOfWeek=8]="FirstDayOfWeek",Ma[Ma.WeekendRange=9]="WeekendRange",Ma[Ma.DateFormat=10]="DateFormat",Ma[Ma.TimeFormat=11]="TimeFormat",Ma[Ma.DateTimeFormat=12]="DateTimeFormat",Ma[Ma.NumberSymbols=13]="NumberSymbols",Ma[Ma.NumberFormats=14]="NumberFormats",Ma[Ma.CurrencyCode=15]="CurrencyCode",Ma[Ma.CurrencySymbol=16]="CurrencySymbol",Ma[Ma.CurrencyName=17]="CurrencyName",Ma[Ma.Currencies=18]="Currencies",Ma[Ma.Directionality=19]="Directionality",Ma[Ma.PluralCase=20]="PluralCase",Ma[Ma.ExtraData=21]="ExtraData",Ma))();const e_="en-US";let Pl=e_;function Hp(h,g,w,O,q){if(h=F(h),Array.isArray(h))for(let V=0;V>20;if(Du(h)||!h.multi){const Ai=new vu(Ht,q,_r),Vi=zh(Ut,g,q?je:je+ai,Cn);-1===Vi?(ps(ts(ge,ut),V,Ut),o2(V,h,g.length),g.push(Ut),ge.directiveStart++,ge.directiveEnd++,q&&(ge.providerIndexes+=1048576),w.push(Ai),ut.push(Ai)):(w[Vi]=Ai,ut[Vi]=Ai)}else{const Ai=zh(Ut,g,je+ai,Cn),Vi=zh(Ut,g,je,je+ai),yo=Ai>=0&&w[Ai],so=Vi>=0&&w[Vi];if(q&&!so||!q&&!yo){ps(ts(ge,ut),V,Ut);const ma=function q5(h,g,w,O,q){const V=new vu(h,w,_r);return V.multi=[],V.index=g,V.componentProviders=0,I5(V,q,O&&!w),V}(q?Yh:PC,w.length,q,O,Ht);!q&&so&&(w[Vi].providerFactory=ma),o2(V,h,g.length,0),g.push(Ut),ge.directiveStart++,ge.directiveEnd++,q&&(ge.providerIndexes+=1048576),w.push(ma),ut.push(ma)}else o2(V,h,Ai>-1?Ai:Vi,I5(w[q?Vi:Ai],Ht,!q&&O));!q&&O&&so&&w[Vi].componentProviders++}}}function o2(h,g,w,O){const q=Du(g),V=function E_(h){return!!h.useClass}(g);if(q||V){const Ht=(V?F(g.useClass):g).prototype.ngOnDestroy;if(Ht){const ge=h.destroyHooks||(h.destroyHooks=[]);if(!q&&g.multi){const je=ge.indexOf(w);-1===je?ge.push(w,[O,Ht]):ge[je+1].push(O,Ht)}else ge.push(w,Ht)}}}function I5(h,g,w){return w&&h.componentProviders++,h.multi.push(g)-1}function zh(h,g,w,O){for(let q=w;q{w.providersResolver=(O,q)=>function $8(h,g,w){const O=Pa();if(O.firstCreatePass){const q=Ns(h);Hp(w,O.data,O.blueprint,q,!0),Hp(g,O.data,O.blueprint,q,!1)}}(O,q?q(h):h,g)}}class ff{}class N4{}function Bh(h,g){return new J0(h,g??null)}class J0 extends ff{constructor(g,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fp(this);const O=go(g);this._bootstrapComponents=Qd(O.bootstrap),this._r3Injector=Wu(g,w,[{provide:ff,useValue:this},{provide:Hm,useValue:this.componentFactoryResolver}],U(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(w=>w()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class q4 extends N4{constructor(g){super(),this.moduleType=g}create(g){return new J0(this.moduleType,g)}}class X8 extends ff{constructor(g,w,O){super(),this.componentFactoryResolver=new Fp(this),this.instance=null;const q=new Tp([...g,{provide:ff,useValue:this},{provide:Hm,useValue:this.componentFactoryResolver}],w||j1(),O,new Set(["environment"]));this.injector=q,q.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function _a(h,g,w=null){return new X8(h,g,w).injector}let hi=(()=>{class h{constructor(w){this._injector=w,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(w){if(!w.standalone)return null;if(!this.cachedInjectors.has(w.id)){const O=Jf(0,w.type),q=O.length>0?_a([O],this._injector,`Standalone[${w.type.name}]`):null;this.cachedInjectors.set(w.id,q)}return this.cachedInjectors.get(w.id)}ngOnDestroy(){try{for(const w of this.cachedInjectors.values())null!==w&&w.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=de({token:h,providedIn:"environment",factory:()=>new h(Dr($i))}),h})();function H5(h){h.getStandaloneInjector=g=>g.get(hi).getOrCreateStandaloneInjector(h)}function qC(h,g,w){const O=Ir()+h,q=Bi();return q[O]===Va?ea(q,O,w?g.call(w):g()):function Ca(h,g){return h[g]}(q,O)}function V5(h,g,w,O){return H4(Bi(),Ir(),h,g,w,O)}function RC(h,g,w,O,q){return Q5(Bi(),Ir(),h,g,w,O,q)}function Q0(h,g){const w=h[g];return w===Va?void 0:w}function H4(h,g,w,O,q,V){const ut=g+w;return xa(h,ut,q)?ea(h,ut+1,V?O.call(V,q):O(q)):Q0(h,ut+1)}function Q5(h,g,w,O,q,V,ut){const Ut=g+w;return Aa(h,Ut,q,V)?ea(h,Ut+2,ut?O.call(ut,q,V):O(q,V)):Q0(h,Ut+2)}function YC(h,g){const w=Pa();let O;const q=h+22;w.firstCreatePass?(O=function BC(h,g){if(g)for(let w=g.length-1;w>=0;w--){const O=g[w];if(h===O.name)return O}}(g,w.pipeRegistry),w.data[q]=O,O.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(q,O.onDestroy)):O=w.data[q];const V=O.factory||(O.factory=Zs(O.type)),ut=lt(_r);try{const Ut=wi(!1),Ht=V();return wi(Ut),function xb(h,g,w,O){w>=h.data.length&&(h.data[w]=null,h.blueprint[w]=null),g[w]=O}(w,Bi(),q,Ht),Ht}finally{lt(ut)}}function ca(h,g,w){const O=h+22,q=Bi(),V=Rs(q,O);return $0(q,O)?H4(q,Ir(),g,V.transform,w,V):V.transform(w)}function W0(h,g,w,O){const q=h+22,V=Bi(),ut=Rs(V,q);return $0(V,q)?Q5(V,Ir(),g,ut.transform,w,O,ut):ut.transform(w,O)}function K5(h,g,w,O,q){const V=h+22,ut=Bi(),Ut=Rs(ut,V);return $0(ut,V)?function W5(h,g,w,O,q,V,ut,Ut){const Ht=g+w;return Ka(h,Ht,q,V,ut)?ea(h,Ht+3,Ut?O.call(Ut,q,V,ut):O(q,V,ut)):Q0(h,Ht+3)}(ut,Ir(),g,Ut.transform,w,O,q,Ut):Ut.transform(w,O,q)}function z4(h,g,w,O,q,V){const ut=h+22,Ut=Bi(),Ht=Rs(Ut,ut);return $0(Ut,ut)?function $5(h,g,w,O,q,V,ut,Ut,Ht){const ge=g+w;return za(h,ge,q,V,ut,Ut)?ea(h,ge+4,Ht?O.call(Ht,q,V,ut,Ut):O(q,V,ut,Ut)):Q0(h,ge+4)}(Ut,Ir(),g,Ht.transform,w,O,q,V,Ht):Ht.transform(w,O,q,V)}function $0(h,g){return h[1].data[g].pure}function Y4(h){return g=>{setTimeout(h,void 0,g)}}const id=class uA extends d.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,w,O){let q=g,V=w||(()=>null),ut=O;if(g&&"object"==typeof g){const Ht=g;q=Ht.next?.bind(Ht),V=Ht.error?.bind(Ht),ut=Ht.complete?.bind(Ht)}this.__isAsync&&(V=Y4(V),q&&(q=Y4(q)),ut&&(ut=Y4(ut)));const Ut=super.subscribe({next:q,error:V,complete:ut});return g instanceof p.w&&g.add(Ut),Ut}};function dA(){return this._results[Yn()]()}class Md{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const w=Yn(),O=Md.prototype;O[w]||(O[w]=dA)}get changes(){return this._changes||(this._changes=new id)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,w){return this._results.reduce(g,w)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,w){const O=this;O.dirty=!1;const q=Go(g);(this._changesDetected=!function B(h,g,w){if(h.length!==g.length)return!1;for(let O=0;O{class h{}return h.__NG_ELEMENT_ID__=GC,h})();const X5=jh,jC=class extends X5{constructor(g,w,O){super(),this._declarationLView=g,this._declarationTContainer=w,this.elementRef=O}createEmbeddedView(g,w){const O=this._declarationTContainer.tViews,q=K1(this._declarationLView,O,g,16,null,O.declTNode,null,null,null,null,w||null);q[17]=this._declarationLView[this._declarationTContainer.index];const ut=this._declarationLView[19];return null!==ut&&(q[19]=ut.createEmbeddedView(O)),M1(O,q,g),new Xm(q)}};function GC(){return K0(kr(),Bi())}function K0(h,g){return 4&h.type?new jC(g,h,zm(h,g)):null}let X0=(()=>{class h{}return h.__NG_ELEMENT_ID__=pA,h})();function pA(){return V4(kr(),Bi())}const JC=X0,tv=class extends JC{constructor(g,w,O){super(),this._lContainer=g,this._hostTNode=w,this._hostLView=O}get element(){return zm(this._hostTNode,this._hostLView)}get injector(){return new su(this._hostTNode,this._hostLView)}get parentInjector(){const g=ns(this._hostTNode,this._hostLView);if(tn(g)){const w=Qn(g,this._hostLView),O=bn(g);return new su(w[1].data[O+8],w)}return new su(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const w=QC(this._lContainer);return null!==w&&w[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,w,O){let q,V;"number"==typeof O?q=O:null!=O&&(q=O.index,V=O.injector);const ut=g.createEmbeddedView(w||{},V);return this.insert(ut,q),ut}createComponent(g,w,O,q,V){const ut=g&&!function Uo(h){return"function"==typeof h}(g);let Ut;if(ut)Ut=w;else{const Cn=w||{};Ut=Cn.index,O=Cn.injector,q=Cn.projectableNodes,V=Cn.environmentInjector||Cn.ngModuleRef}const Ht=ut?g:new Ip(he(g)),ge=O||this.parentInjector;if(!V&&null==Ht.ngModule){const ai=(ut?ge:this.parentInjector).get($i,null);ai&&(V=ai)}const je=Ht.create(ge,q,void 0,V);return this.insert(je.hostView,Ut),je}insert(g,w){const O=g._lView,q=O[1];if(function Js(h){return Er(h[3])}(O)){const je=this.indexOf(g);if(-1!==je)this.detach(je);else{const Cn=O[3],ai=new tv(Cn,Cn[6],Cn[3]);ai.detach(ai.indexOf(g))}}const V=this._adjustIndex(w),ut=this._lContainer;!function Fm(h,g,w,O){const q=10+O,V=w.length;O>0&&(w[q-1][4]=g),O0)O.push(ut[Ut/2]);else{const ge=V[Ut+1],je=g[-Ht];for(let Cn=10;Cn{class h{constructor(w){this.appInits=w,this.resolve=t6,this.reject=t6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,q)=>{this.resolve=O,this.reject=q})}runInitializers(){if(this.initialized)return;const w=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let q=0;q{V.subscribe({complete:Ut,error:Ht})});w.push(ut)}}Promise.all(w).then(()=>{O()}).catch(q=>{this.reject(q)}),0===w.length&&O(),this.initialized=!0}}return h.\u0275fac=function(w){return new(w||h)(Dr(yv,8))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const px=new Tr("AppId",{providedIn:"root",factory:function mx(){return`${c3()}${c3()}${c3()}`}});function c3(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _x=new Tr("Platform Initializer"),fx=new Tr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Tv=new Tr("appBootstrapListener"),Uv=new Tr("AnimationModuleType");let hx=(()=>{class h{log(w){console.log(w)}warn(w){console.warn(w)}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const l3=new Tr("LocaleId",{providedIn:"root",factory:()=>hp(l3,si.Optional|si.SkipSelf)||function gx(){return typeof $localize<"u"&&$localize.locale||e_}()}),vx=new Tr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class OA{constructor(g,w){this.ngModuleFactory=g,this.componentFactories=w}}let Cx=(()=>{class h{compileModuleSync(w){return new q4(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const O=this.compileModuleSync(w),V=Qd(go(w).declarations).reduce((ut,Ut)=>{const Ht=he(Ut);return Ht&&ut.push(new Ip(Ht)),ut},[]);return new OA(O,V)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Tx=(()=>Promise.resolve(0))();function u3(h){typeof Zone>"u"?Tx.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class Kd{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:w=!1,shouldCoalesceRunChangeDetection:O=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new id(!1),this.onMicrotaskEmpty=new id(!1),this.onStable=new id(!1),this.onError=new id(!1),typeof Zone>"u")throw new K(908,!1);Zone.assertZonePatched();const q=this;if(q._nesting=0,q._outer=q._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const V=Zone.AsyncStackTaggingZoneSpec;q._inner=q._inner.fork(new V("Angular"))}Zone.TaskTrackingZoneSpec&&(q._inner=q._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(q._inner=q._inner.fork(Zone.longStackTraceZoneSpec)),q.shouldCoalesceEventChangeDetection=!O&&w,q.shouldCoalesceRunChangeDetection=O,q.lastRequestAnimationFrameId=-1,q.nativeRequestAnimationFrame=function e6(){let h=Sn.requestAnimationFrame,g=Sn.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const w=h[Zone.__symbol__("OriginalDelegate")];w&&(h=w);const O=g[Zone.__symbol__("OriginalDelegate")];O&&(g=O)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function wx(h){const g=()=>{!function Mv(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(Sn,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,kv(h),h.isCheckStableRunning=!0,n6(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),kv(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,O,q,V,ut,Ut)=>{try{return Ux(h),w.invokeTask(q,V,ut,Ut)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||h.shouldCoalesceRunChangeDetection)&&g(),Dv(h)}},onInvoke:(w,O,q,V,ut,Ut,Ht)=>{try{return Ux(h),w.invoke(q,V,ut,Ut,Ht)}finally{h.shouldCoalesceRunChangeDetection&&g(),Dv(h)}},onHasTask:(w,O,q,V)=>{w.hasTask(q,V),O===q&&("microTask"==V.change?(h._hasPendingMicrotasks=V.microTask,kv(h),n6(h)):"macroTask"==V.change&&(h.hasPendingMacrotasks=V.macroTask))},onHandleError:(w,O,q,V)=>(w.handleError(q,V),h.runOutsideAngular(()=>h.onError.emit(V)),!1)})}(q)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kd.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(Kd.isInAngularZone())throw new K(909,!1)}run(g,w,O){return this._inner.run(g,w,O)}runTask(g,w,O,q){const V=this._inner,ut=V.scheduleEventTask("NgZoneEvent: "+q,g,Zv,t6,t6);try{return V.runTask(ut,w,O)}finally{V.cancelTask(ut)}}runGuarded(g,w,O){return this._inner.runGuarded(g,w,O)}runOutsideAngular(g){return this._outer.run(g)}}const Zv={};function n6(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function kv(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function Ux(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Dv(h){h._nesting--,n6(h)}class Pv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new id,this.onMicrotaskEmpty=new id,this.onStable=new id,this.onError=new id}run(g,w,O){return g.apply(w,O)}runGuarded(g,w,O){return g.apply(w,O)}runOutsideAngular(g){return g()}runTask(g,w,O,q){return g.apply(w,O)}}const Zx=new Tr(""),Sv=new Tr("");let i6,Mx=(()=>{class h{constructor(w,O,q){this._ngZone=w,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,i6||(function Dx(h){i6=h}(q),q.addToWindow(O)),this._watchAngularEvents(),w.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kd.assertNotInAngularZone(),u3(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())u3(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(w)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,O,q){let V=-1;O&&O>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(ut=>ut.timeoutId!==V),w(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:w,timeoutId:V,updateCb:q})}whenStable(w,O,q){if(q&&!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(w,O,q),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,O,q){return[]}}return h.\u0275fac=function(w){return new(w||h)(Dr(Kd),Dr(kx),Dr(Sv))},h.\u0275prov=de({token:h,factory:h.\u0275fac}),h})(),kx=(()=>{class h{constructor(){this._applications=new Map}registerApplication(w,O){this._applications.set(w,O)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,O=!0){return i6?.findTestabilityInTree(this,w,O)??null}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),o_=null;const Lv=new Tr("AllowMultipleToken"),Ov=new Tr("PlatformDestroyListeners");class Sx{constructor(g,w){this.name=g,this.token=w}}function zp(h,g,w=[]){const O=`Platform: ${g}`,q=new Tr(O);return(V=[])=>{let ut=a6();if(!ut||ut.injector.get(Lv,!1)){const Ut=[...w,...V,{provide:q,useValue:!0}];h?h(Ut):function FA(h){if(o_&&!o_.get(Lv,!1))throw new K(400,!1);o_=h;const g=h.get(r6);(function Ox(h){const g=h.get(_x,null);g&&g.forEach(w=>w())})(h)}(function o6(h=[],g){return Vm.create({name:g,providers:[{provide:ss,useValue:"platform"},{provide:Ov,useValue:new Set([()=>o_=null])},...h]})}(Ut,O))}return function IA(h){const g=a6();if(!g)throw new K(401,!1);return g}()}}function a6(){return o_?.get(r6)??null}let r6=(()=>{class h{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,O){const q=function Ex(h,g){let w;return w="noop"===h?new Pv:("zone.js"===h?void 0:h)||new Kd(g),w}(O?.ngZone,function m3(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(O)),V=[{provide:Kd,useValue:q}];return q.run(()=>{const ut=Vm.create({providers:V,parent:this.injector,name:w.moduleType.name}),Ut=w.create(ut),Ht=Ut.injector.get(lm,null);if(!Ht)throw new K(402,!1);return q.runOutsideAngular(()=>{const ge=q.onError.subscribe({next:je=>{Ht.handleError(je)}});Ut.onDestroy(()=>{f3(this._modules,Ut),ge.unsubscribe()})}),function Fv(h,g,w){try{const O=w();return Dh(O)?O.catch(q=>{throw g.runOutsideAngular(()=>h.handleError(q)),q}):O}catch(O){throw g.runOutsideAngular(()=>h.handleError(O)),O}}(Ht,q,()=>{const ge=Ut.injector.get(s3);return ge.runInitializers(),ge.donePromise.then(()=>(function df(h){$e(h,"Expected localeId to be defined"),"string"==typeof h&&(Pl=h.toLowerCase().replace(/_/g,"-"))}(Ut.injector.get(l3,e_)||e_),this._moduleDoBootstrap(Ut),Ut))})})}bootstrapModule(w,O=[]){const q=Iv({},O);return function Ev(h,g,w){const O=new q4(w);return Promise.resolve(O)}(0,0,w).then(V=>this.bootstrapModuleFactory(V,q))}_moduleDoBootstrap(w){const O=w.injector.get(_3);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(q=>O.bootstrap(q));else{if(!w.instance.ngDoBootstrap)throw new K(403,!1);w.instance.ngDoBootstrap(O)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const w=this._injector.get(Ov,null);w&&(w.forEach(O=>O()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(w){return new(w||h)(Dr(Vm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Iv(h,g){return Array.isArray(g)?g.reduce(Iv,h):{...h,...g}}let _3=(()=>{class h{constructor(w,O,q){this._zone=w,this._injector=O,this._exceptionHandler=q,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const V=new b.y(Ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ut.next(this._stable),Ut.complete()})}),ut=new b.y(Ut=>{let Ht;this._zone.runOutsideAngular(()=>{Ht=this._zone.onStable.subscribe(()=>{Kd.assertNotInAngularZone(),u3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ut.next(!0))})})});const ge=this._zone.onUnstable.subscribe(()=>{Kd.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ut.next(!1)}))});return()=>{Ht.unsubscribe(),ge.unsubscribe()}});this.isStable=(0,T.T)(V,ut.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,O){const q=w instanceof O2;if(!this._injector.get(s3).done)throw!q&&gi(w),new K(405,false);let ut;ut=q?w:this._injector.get(Hm).resolveComponentFactory(w),this.componentTypes.push(ut.componentType);const Ut=function p3(h){return h.isBoundToModule}(ut)?void 0:this._injector.get(ff),ge=ut.create(Vm.NULL,[],O||ut.selector,Ut),je=ge.location.nativeElement,Cn=ge.injector.get(Zx,null);return Cn?.registerApplication(je),ge.onDestroy(()=>{this.detachView(ge.hostView),f3(this.components,ge),Cn?.unregisterApplication(je)}),this._loadComponent(ge),ge}tick(){if(this._runningTick)throw new K(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const O=w;this._views.push(O),O.attachToAppRef(this)}detachView(w){const O=w;f3(this._views,O),O.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(Tv,[]).concat(this._bootstrapListeners).forEach(q=>q(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>f3(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new K(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(w){return new(w||h)(Dr(Kd),Dr($i),Dr(lm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function f3(h,g){const w=h.indexOf(g);w>-1&&h.splice(w,1)}let L1=!0;function qx(){L1=!1}let qv=(()=>{class h{}return h.__NG_ELEMENT_ID__=qA,h})();function qA(h){return function zx(h,g,w){if(al(h)&&!w){const O=bs(h.index,g);return new Xm(O,O)}return 47&h.type?new Xm(g[16],g):null}(kr(),Bi(),16==(16&h))}class jv{constructor(){}supports(g){return _i(g)}create(g){return new BA(g)}}const YA=(h,g)=>g;class BA{constructor(g){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=g||YA}forEachItem(g){let w;for(w=this._itHead;null!==w;w=w._next)g(w)}forEachOperation(g){let w=this._itHead,O=this._removalsHead,q=0,V=null;for(;w||O;){const ut=!O||w&&w.currentIndex{ut=this._trackByFn(q,Ut),null!==w&&Object.is(w.trackById,ut)?(O&&(w=this._verifyReinsertion(w,Ut,ut,q)),Object.is(w.item,Ut)||this._addIdentityChange(w,Ut)):(w=this._mismatch(w,Ut,ut,q),O=!0),w=w._next,q++}),this.length=q;return this._truncate(w),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,w,O,q){let V;return null===g?V=this._itTail:(V=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._reinsertAfter(g,V,q)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(O,q))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._moveAfter(g,V,q)):g=this._addAfter(new jx(w,O),V,q),g}_verifyReinsertion(g,w,O,q){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==V?g=this._reinsertAfter(V,g._prev,q):g.currentIndex!=q&&(g.currentIndex=q,this._addToMoves(g,q)),g}_truncate(g){for(;null!==g;){const w=g._next;this._addToRemovals(this._unlink(g)),g=w}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,w,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const q=g._prevRemoved,V=g._nextRemoved;return null===q?this._removalsHead=V:q._nextRemoved=V,null===V?this._removalsTail=q:V._prevRemoved=q,this._insertAfter(g,w,O),this._addToMoves(g,O),g}_moveAfter(g,w,O){return this._unlink(g),this._insertAfter(g,w,O),this._addToMoves(g,O),g}_addAfter(g,w,O){return this._insertAfter(g,w,O),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,w,O){const q=null===w?this._itHead:w._next;return g._next=q,g._prev=w,null===q?this._itTail=g:q._prev=g,null===w?this._itHead=g:w._next=g,null===this._linkedRecords&&(this._linkedRecords=new Gv),this._linkedRecords.put(g),g.currentIndex=O,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const w=g._prev,O=g._next;return null===w?this._itHead=O:w._next=O,null===O?this._itTail=w:O._prev=w,g}_addToMoves(g,w){return g.previousIndex===w||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gv),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,w){return g.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class jx{constructor(g,w){this.item=g,this.trackById=w,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Wh{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,w){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===w||w<=O.currentIndex)&&Object.is(O.trackById,g))return O;return null}remove(g){const w=g._prevDup,O=g._nextDup;return null===w?this._head=O:w._nextDup=O,null===O?this._tail=w:O._prevDup=w,null===this._head}}class Gv{constructor(){this.map=new Map}put(g){const w=g.trackById;let O=this.map.get(w);O||(O=new Wh,this.map.set(w,O)),O.add(g)}get(g,w){const q=this.map.get(g);return q?q.get(g,w):null}remove(g){const w=g.trackById;return this.map.get(w).remove(g)&&this.map.delete(w),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function g3(h,g,w){const O=h.previousIndex;if(null===O)return O;let q=0;return w&&O{if(w&&w.key===q)this._maybeAddToChanges(w,O),this._appendAfter=w,w=w._next;else{const V=this._getOrCreateRecordForKey(q,O);w=this._insertBeforeOrAppend(w,V)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let O=w;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,w){if(g){const O=g._prev;return w._next=g,w._prev=O,g._prev=w,O&&(O._next=w),g===this._mapHead&&(this._mapHead=w),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(g,w){if(this._records.has(g)){const q=this._records.get(g);this._maybeAddToChanges(q,w);const V=q._prev,ut=q._next;return V&&(V._next=ut),ut&&(ut._prev=V),q._next=null,q._prev=null,q}const O=new Gx(g);return this._records.set(g,O),O.currentValue=w,this._addToAdditions(O),O}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,w){Object.is(w,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=w,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,w){g instanceof Map?g.forEach(w):Object.keys(g).forEach(O=>w(g[O],O))}}class Gx{constructor(g){this.key=g,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 l6(){return new u6([new jv])}let u6=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(null!=O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||l6()),deps:[[h,new N1,new ec]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(null!=O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:l6}),h})();function Jx(){return new v3([new Jv])}let v3=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||Jx()),deps:[[h,new N1,new ec]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:Jx}),h})();const GA=zp(null,"core",[]);let JA=(()=>{class h{constructor(w){}}return h.\u0275fac=function(w){return new(w||h)(Dr(_3))},h.\u0275mod=Ot({type:h}),h.\u0275inj=re({}),h})();function $x(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},85863:(ot,et,v)=>{"use strict";function d(D){for(let P in D){let F=D[P]??"";switch(P){case"display":D.display="flex"===F?["-webkit-flex","flex"]:"inline-flex"===F?["-webkit-inline-flex","inline-flex"]:F;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":D["-webkit-"+P]=F;break;case"flex-direction":D["-webkit-flex-direction"]=F,D["flex-direction"]=F;break;case"order":D.order=D["-webkit-"+P]=isNaN(+F)?"0":F}}return D}v.d(et,{Ar:()=>T,GK:()=>d,iQ:()=>b,kt:()=>k,tj:()=>A});const p="inline",b=["row","column","row-reverse","column-reverse"];function T(D){let[P,F,z]=t(D);return function U(D,P=null,F=!1){return{display:F?"inline-flex":"flex","box-sizing":"border-box","flex-direction":D,"flex-wrap":P||null}}(P,F,z)}function t(D){D=D?.toLowerCase()??"";let[P,F,z]=D.split(" ");return b.find(J=>J===P)||(P=b[0]),F===p&&(F=z!==p?z:"",z=p),[P,x(F),!!z]}function A(D){let[P]=t(D);return P.indexOf("row")>-1}function x(D){if(D)switch(D.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":D="wrap-reverse";break;case"no":case"none":case"nowrap":D="nowrap";break;default:D="wrap"}return D}function k(D,...P){if(null==D)throw TypeError("Cannot convert undefined or null to object");for(let F of P)if(null!=F)for(let z in F)F.hasOwnProperty(z)&&(D[z]=F[z]);return D}},32233:(ot,et,v)=>{"use strict";v.d(et,{Bs:()=>Dt,FL:()=>fi,IR:()=>z,Ot:()=>mi,QI:()=>zt,RK:()=>Vt,WU:()=>ct,g5:()=>at,iR:()=>lt,wY:()=>vt,yB:()=>Ke});var d=v(94650),p=v(36895),b=v(591),T=v(56498),t=v(36787),A=v(8929),x=v(85863),U=v(92198),k=v(22868);const P={provide:d.tb,useFactory:function D(Bn,jn){return()=>{if((0,p.NF)(jn)){const Ye=Array.from(Bn.querySelectorAll(`[class*=${F}]`)),fn=/\bflex-layout-.+?\b/g;Ye.forEach(ze=>{ze.classList.contains(`${F}ssr`)&&ze.parentNode?ze.parentNode.removeChild(ze):ze.className.replace(fn,"")})}}},deps:[p.K0,d.Lbi],multi:!0},F="flex-layout-";let z=(()=>{class Bn{}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)},Bn.\u0275mod=d.oAB({type:Bn}),Bn.\u0275inj=d.cJS({providers:[P]}),Bn})();class J{constructor(jn=!1,Ye="all",fn="",ze="",We=0){this.matches=jn,this.mediaQuery=Ye,this.mqAlias=fn,this.suffix=ze,this.priority=We,this.property=""}clone(){return new J(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let K=(()=>{class Bn{constructor(){this.stylesheet=new Map}addStyleToElement(Ye,fn,ze){const We=this.stylesheet.get(Ye);We?We.set(fn,ze):this.stylesheet.set(Ye,new Map([[fn,ze]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Ye,fn){const ze=this.stylesheet.get(Ye);let We="";if(ze){const en=ze.get(fn);("number"==typeof en||"string"==typeof en)&&(We=en+"")}return We}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const at={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ct=new d.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>at}),vt=new d.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Dt=new d.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Pt(Bn,jn){return Bn=Bn?.clone()??new J,jn&&(Bn.mqAlias=jn.alias,Bn.mediaQuery=jn.mediaQuery,Bn.suffix=jn.suffix,Bn.priority=jn.priority),Bn}class zt{constructor(){this.shouldCache=!0}sideEffect(jn,Ye,fn){}}let Vt=(()=>{class Bn{constructor(Ye,fn,ze,We){this._serverStylesheet=Ye,this._serverModuleLoaded=fn,this._platformId=ze,this.layoutConfig=We}applyStyleToElement(Ye,fn,ze=null){let We={};"string"==typeof fn&&(We[fn]=ze,fn=We),We=this.layoutConfig.disableVendorPrefixes?fn:(0,x.GK)(fn),this._applyMultiValueStyleToElement(We,Ye)}applyStyleToElements(Ye,fn=[]){const ze=this.layoutConfig.disableVendorPrefixes?Ye:(0,x.GK)(Ye);fn.forEach(We=>{this._applyMultiValueStyleToElement(ze,We)})}getFlowDirection(Ye){const fn="flex-direction";let ze=this.lookupStyle(Ye,fn);return[ze||"row",this.lookupInlineStyle(Ye,fn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?ze:""]}hasWrap(Ye){return"wrap"===this.lookupStyle(Ye,"flex-wrap")}lookupAttributeValue(Ye,fn){return Ye.getAttribute(fn)??""}lookupInlineStyle(Ye,fn){return(0,p.NF)(this._platformId)?Ye.style.getPropertyValue(fn):function it(Bn,jn){return ft(Bn)[jn]??""}(Ye,fn)}lookupStyle(Ye,fn,ze=!1){let We="";return Ye&&((We=this.lookupInlineStyle(Ye,fn))||((0,p.NF)(this._platformId)?ze||(We=getComputedStyle(Ye).getPropertyValue(fn)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(Ye,fn)))),We?We.trim():""}_applyMultiValueStyleToElement(Ye,fn){Object.keys(Ye).sort().forEach(ze=>{const We=Ye[ze],en=Array.isArray(We)?We:[We];en.sort();for(let le of en)le=le?le+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?fn.style.setProperty(ze,le):Tt(fn,ze,le):this._serverStylesheet.addStyleToElement(fn,ze,le)})}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(K),d.LFG(vt),d.LFG(d.Lbi),d.LFG(ct))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();function Tt(Bn,jn,Ye){jn=jn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const fn=ft(Bn);fn[jn]=Ye??"",function At(Bn,jn){let Ye="";for(const fn in jn)jn[fn]&&(Ye+=`${fn}:${jn[fn]};`);Bn.setAttribute("style",Ye)}(Bn,fn)}function ft(Bn){const jn={},Ye=Bn.getAttribute("style");if(Ye){const fn=Ye.split(/;+/g);for(let ze=0;ze0){const en=We.indexOf(":");if(-1===en)throw new Error(`Invalid CSS style: ${We}`);jn[We.substr(0,en).trim()]=We.substr(en+1).trim()}}}return jn}function Et(Bn,jn){return(jn&&jn.priority||0)-(Bn&&Bn.priority||0)}function Bt(Bn,jn){return(Bn.priority||0)-(jn.priority||0)}let Ft=(()=>{class Bn{constructor(Ye,fn,ze){this._zone=Ye,this._platformId=fn,this._document=ze,this.source=new b.X(new J(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Ye=[];return this.registry.forEach((fn,ze)=>{fn.matches&&Ye.push(ze)}),Ye}isActive(Ye){return this.registry.get(Ye)?.matches??this.registerQuery(Ye).some(ze=>ze.matches)}observe(Ye,fn=!1){if(Ye&&Ye.length){const ze=this._observable$.pipe((0,U.h)(en=>!fn||Ye.indexOf(en.mediaQuery)>-1)),We=new T.y(en=>{const le=this.registerQuery(Ye);if(le.length){const Ge=le.pop();le.forEach(Lt=>{en.next(Lt)}),this.source.next(Ge)}en.complete()});return(0,t.T)(We,ze)}return this._observable$}registerQuery(Ye){const fn=Array.isArray(Ye)?Ye:[Ye],ze=[];return function Gt(Bn,jn){const Ye=Bn.filter(fn=>!se[fn]);if(Ye.length>0){const fn=Ye.join(", ");try{const ze=jn.createElement("style");ze.setAttribute("type","text/css"),ze.styleSheet||ze.appendChild(jn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${fn} {.fx-query-test{ }}\n`)),jn.head.appendChild(ze),Ye.forEach(We=>se[We]=ze)}catch(ze){console.error(ze)}}}(fn,this._document),fn.forEach(We=>{const en=Ge=>{this._zone.run(()=>this.source.next(new J(Ge.matches,We)))};let le=this.registry.get(We);le||(le=this.buildMQL(We),le.addListener(en),this.pendingRemoveListenerFns.push(()=>le.removeListener(en)),this.registry.set(We,le)),le.matches&&ze.push(new J(!0,We))}),ze}ngOnDestroy(){let Ye;for(;Ye=this.pendingRemoveListenerFns.pop();)Ye()}buildMQL(Ye){return function be(Bn,jn){return jn&&window.matchMedia("all").addListener?window.matchMedia(Bn):function ve(Bn){const jn=new EventTarget;return jn.matches="all"===Bn||""===Bn,jn.media=Bn,jn.addListener=()=>{},jn.removeListener=()=>{},jn.addEventListener=()=>{},jn.dispatchEvent=()=>!1,jn.onchange=null,jn}(Bn)}(Ye,(0,p.NF)(this._platformId))}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(d.R0b),d.LFG(d.Lbi),d.LFG(p.K0))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const se={},Le=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],qe="(orientation: portrait) and (max-width: 599.98px)",$e="(orientation: landscape) and (max-width: 959.98px)",Xt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Te="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ae="(orientation: portrait) and (min-width: 840px)",Kt="(orientation: landscape) and (min-width: 1280px)",de={HANDSET:`${qe}, ${$e}`,TABLET:`${Xt} , ${Te}`,WEB:`${ae}, ${Kt} `,HANDSET_PORTRAIT:`${qe}`,TABLET_PORTRAIT:`${Xt} `,WEB_PORTRAIT:`${ae}`,HANDSET_LANDSCAPE:`${$e}`,TABLET_LANDSCAPE:`${Te}`,WEB_LANDSCAPE:`${Kt}`},Wt=[{alias:"handset",priority:2e3,mediaQuery:de.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:de.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:de.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:de.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:de.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:de.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:de.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:de.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:de.WEB_PORTRAIT,overlapping:!0}],re=/(\.|-|_)/g;function De(Bn){let jn=Bn.length>0?Bn.charAt(0):"",Ye=Bn.length>1?Bn.slice(1):"";return jn.toUpperCase()+Ye}const gn=new d.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Bn=(0,d.f3M)(Dt),jn=(0,d.f3M)(ct),Ye=[].concat.apply([],(Bn||[]).map(ze=>Array.isArray(ze)?ze:[ze]));return function Ae(Bn,jn=[]){const Ye={};return Bn.forEach(fn=>{Ye[fn.alias]=fn}),jn.forEach(fn=>{Ye[fn.alias]?(0,x.kt)(Ye[fn.alias],fn):Ye[fn.alias]=fn}),function _n(Bn){return Bn.forEach(jn=>{jn.suffix||(jn.suffix=function on(Bn){return Bn.replace(re,"|").split("|").map(De).join("")}(jn.alias),jn.overlapping=!!jn.overlapping)}),Bn}(Object.keys(Ye).map(fn=>Ye[fn]))}((jn.disableDefaultBps?[]:Le).concat(jn.addOrientationBps?Wt:[]),Ye)}});let we=(()=>{class Bn{constructor(Ye){this.findByMap=new Map,this.items=[...Ye].sort(Bt)}findByAlias(Ye){return Ye?this.findWithPredicate(Ye,fn=>fn.alias===Ye):null}findByQuery(Ye){return this.findWithPredicate(Ye,fn=>fn.mediaQuery===Ye)}get overlappings(){return this.items.filter(Ye=>Ye.overlapping)}get aliases(){return this.items.map(Ye=>Ye.alias)}get suffixes(){return this.items.map(Ye=>Ye?.suffix??"")}findWithPredicate(Ye,fn){let ze=this.findByMap.get(Ye);return ze||(ze=this.items.find(fn)??null,this.findByMap.set(Ye,ze)),ze??null}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(gn))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();const un="print",Un={alias:un,mediaQuery:un,priority:1e3};let oi=(()=>{class Bn{constructor(Ye,fn,ze){this.breakpoints=Ye,this.layoutConfig=fn,this._document=ze,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new vi,this.deactivations=[]}withPrintQuery(Ye){return[...Ye,un]}isPrintEvent(Ye){return Ye.mediaQuery.startsWith(un)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Ye=>this.breakpoints.findByAlias(Ye)).filter(Ye=>null!==Ye)}getEventBreakpoints({mediaQuery:Ye}){const fn=this.breakpoints.findByQuery(Ye);return(fn?[...this.printBreakPoints,fn]:this.printBreakPoints).sort(Et)}updateEvent(Ye){let fn=this.breakpoints.findByQuery(Ye.mediaQuery);return this.isPrintEvent(Ye)&&(fn=this.getEventBreakpoints(Ye)[0],Ye.mediaQuery=fn?.mediaQuery??""),Pt(Ye,fn)}registerBeforeAfterPrintHooks(Ye){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const fn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Ye,this.getEventBreakpoints(new J(!0,un))),Ye.updateStyles())},ze=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Ye),Ye.updateStyles())};this._document.defaultView.addEventListener("beforeprint",fn),this._document.defaultView.addEventListener("afterprint",ze),this.beforePrintEventListeners.push(fn),this.afterPrintEventListeners.push(ze)}interceptEvents(Ye){return fn=>{this.isPrintEvent(fn)?fn.matches&&!this.isPrinting?(this.startPrinting(Ye,this.getEventBreakpoints(fn)),Ye.updateStyles()):!fn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Ye),Ye.updateStyles()):this.collectActivations(Ye,fn)}}blockPropagation(){return Ye=>!(this.isPrinting||this.isPrintEvent(Ye))}startPrinting(Ye,fn){this.isPrinting=!0,this.formerActivations=Ye.activatedBreakpoints,Ye.activatedBreakpoints=this.queue.addPrintBreakpoints(fn)}stopPrinting(Ye){Ye.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Ye,fn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!fn.matches){const ze=this.breakpoints.findByQuery(fn.mediaQuery);if(ze){const We=this.formerActivations&&this.formerActivations.includes(ze),en=!this.formerActivations&&Ye.activatedBreakpoints.includes(ze);(We||en)&&(this.deactivations.push(ze),this.deactivations.sort(Et))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("beforeprint",Ye)),this.afterPrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("afterprint",Ye)))}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(we),d.LFG(ct),d.LFG(p.K0))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();class vi{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(jn){return jn.push(Un),jn.sort(Et),jn.forEach(Ye=>this.addBreakpoint(Ye)),this.printBreakpoints}addBreakpoint(jn){jn&&void 0===this.printBreakpoints.find(fn=>fn.mediaQuery===jn.mediaQuery)&&(this.printBreakpoints=function si(Bn){return Bn?.mediaQuery.startsWith(un)??!1}(jn)?[jn,...this.printBreakpoints]:[...this.printBreakpoints,jn])}clear(){this.printBreakpoints=[]}}let Ke=(()=>{class Bn{constructor(Ye,fn,ze){this.matchMedia=Ye,this.breakpoints=fn,this.hook=ze,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new A.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Ye){this._activatedBreakpoints=[...Ye]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Ye){this._useFallbacks=Ye}onMediaChange(Ye){const fn=this.findByQuery(Ye.mediaQuery);if(fn){Ye=Pt(Ye,fn);const ze=this.activatedBreakpoints.indexOf(fn);Ye.matches&&-1===ze?(this._activatedBreakpoints.push(fn),this._activatedBreakpoints.sort(Et),this.updateStyles()):!Ye.matches&&-1!==ze&&(this._activatedBreakpoints.splice(ze,1),this._activatedBreakpoints.sort(Et),this.updateStyles())}}init(Ye,fn,ze,We,en=[]){ne(this.updateMap,Ye,fn,ze),ne(this.clearMap,Ye,fn,We),this.buildElementKeyMap(Ye,fn),this.watchExtraTriggers(Ye,fn,en)}getValue(Ye,fn,ze){const We=this.elementMap.get(Ye);if(We){const en=void 0!==ze?We.get(ze):this.getActivatedValues(We,fn);if(en)return en.get(fn)}}hasValue(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);if(We)return void 0!==We.get(fn)||!1}return!1}setValue(Ye,fn,ze,We){let en=this.elementMap.get(Ye);if(en){const Ge=(en.get(We)??new Map).set(fn,ze);en.set(We,Ge),this.elementMap.set(Ye,en)}else en=(new Map).set(We,(new Map).set(fn,ze)),this.elementMap.set(Ye,en);const le=this.getValue(Ye,fn);void 0!==le&&this.updateElement(Ye,fn,le)}trackValue(Ye,fn){return this.subject.asObservable().pipe((0,U.h)(ze=>ze.element===Ye&&ze.key===fn))}updateStyles(){this.elementMap.forEach((Ye,fn)=>{const ze=new Set(this.elementKeyMap.get(fn));let We=this.getActivatedValues(Ye);We&&We.forEach((en,le)=>{this.updateElement(fn,le,en),ze.delete(le)}),ze.forEach(en=>{if(We=this.getActivatedValues(Ye,en),We){const le=We.get(en);this.updateElement(fn,en,le)}else this.clearElement(fn,en)})})}clearElement(Ye,fn){const ze=this.clearMap.get(Ye);if(ze){const We=ze.get(fn);We&&(We(),this.subject.next({element:Ye,key:fn,value:""}))}}updateElement(Ye,fn,ze){const We=this.updateMap.get(Ye);if(We){const en=We.get(fn);en&&(en(ze),this.subject.next({element:Ye,key:fn,value:ze}))}}releaseElement(Ye){const fn=this.watcherMap.get(Ye);fn&&(fn.forEach(We=>We.unsubscribe()),this.watcherMap.delete(Ye));const ze=this.elementMap.get(Ye);ze&&(ze.forEach((We,en)=>ze.delete(en)),this.elementMap.delete(Ye))}triggerUpdate(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);We&&(fn?this.updateElement(Ye,fn,We.get(fn)):We.forEach((en,le)=>this.updateElement(Ye,le,en)))}}buildElementKeyMap(Ye,fn){let ze=this.elementKeyMap.get(Ye);ze||(ze=new Set,this.elementKeyMap.set(Ye,ze)),ze.add(fn)}watchExtraTriggers(Ye,fn,ze){if(ze&&ze.length){let We=this.watcherMap.get(Ye);if(We||(We=new Map,this.watcherMap.set(Ye,We)),!We.get(fn)){const le=(0,t.T)(...ze).subscribe(()=>{const Ge=this.getValue(Ye,fn);this.updateElement(Ye,fn,Ge)});We.set(fn,le)}}}findByQuery(Ye){return this.breakpoints.findByQuery(Ye)}getActivatedValues(Ye,fn){for(let We=0;Wefn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Ye)).pipe((0,k.b)(this.hook.interceptEvents(this)),(0,U.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.LFG(Ft),d.LFG(we),d.LFG(oi))},Bn.\u0275prov=d.Yz7({token:Bn,factory:Bn.\u0275fac,providedIn:"root"}),Bn})();function ne(Bn,jn,Ye,fn){if(void 0!==fn){const ze=Bn.get(jn)??new Map;ze.set(Ye,fn),Bn.set(jn,ze)}}let lt=(()=>{class Bn{constructor(Ye,fn,ze,We){this.elementRef=Ye,this.styleBuilder=fn,this.styler=ze,this.marshal=We,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new A.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(Ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,this.marshal.activatedAlias)}ngOnChanges(Ye){Object.keys(Ye).forEach(fn=>{if(-1!==this.inputs.indexOf(fn)){const ze=fn.split(".").slice(1).join(".");this.setValue(Ye[fn].currentValue,ze)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Ye=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Ye)}addStyles(Ye,fn){const ze=this.styleBuilder,We=ze.shouldCache;let en=this.styleCache.get(Ye);(!en||!We)&&(en=ze.buildStyles(Ye,fn),We&&this.styleCache.set(Ye,en)),this.mru={...en},this.applyStyleToElement(en),ze.sideEffect(Ye,en,fn)}clearStyles(){Object.keys(this.mru).forEach(Ye=>{this.mru[Ye]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Ye,fn=!1){if(Ye){const[ze,We]=this.styler.getFlowDirection(Ye);if(!We&&fn){const en=(0,x.Ar)(ze);this.styler.applyStyleToElements(en,[Ye])}return ze.trim()}return"row"}hasWrap(Ye){return this.styler.hasWrap(Ye)}applyStyleToElement(Ye,fn,ze=this.nativeElement){this.styler.applyStyleToElement(ze,Ye,fn)}setValue(Ye,fn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,fn)}updateWithValue(Ye){this.currentValue!==Ye&&(this.addStyles(Ye),this.currentValue=Ye)}}return Bn.\u0275fac=function(Ye){return new(Ye||Bn)(d.Y36(d.SBq),d.Y36(zt),d.Y36(Vt),d.Y36(Ke))},Bn.\u0275dir=d.lG2({type:Bn,features:[d.TTD]}),Bn})();function mi(Bn,jn="1",Ye="1"){let fn=[jn,Ye,Bn],ze=Bn.indexOf("calc");if(ze>0){fn[2]=Li(Bn.substring(ze).trim());let We=Bn.substr(0,ze).trim().split(" ");2==We.length&&(fn[0]=We[0],fn[1]=We[1])}else if(0==ze)fn[2]=Li(Bn.trim());else{let We=Bn.split(" ");fn=3===We.length?We:[jn,Ye,Bn]}return fn}function Li(Bn){return Bn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function fi(Bn,jn){if(void 0===jn)return Bn;const Ye=fn=>{const ze=+fn.slice(0,-"x".length);return Bn.endsWith("x")&&!isNaN(ze)?`${ze*jn.value}${jn.unit}`:Bn};return Bn.includes(" ")?Bn.split(" ").map(Ye).join(" "):Ye(Bn)}EventTarget},55829:(ot,et,v)=>{"use strict";v.d(et,{Zl:()=>be,aT:()=>$e,b8:()=>Vt,oO:()=>at});var d=v(94650),p=v(32233),b=v(36895),T=v(21281),t=v(7625),A=v(11481);let z=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,De,on){super(ae,null,Kt,de),this.ngClassInstance=on,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new b.mk(Wt,re,ae,De)),this.init(),this.setValue("","")}set klass(ae){this.ngClassInstance.klass=ae,this.setValue(ae,"")}updateWithValue(ae){this.ngClassInstance.ngClass=ae,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(b.mk,10))},Xt.\u0275dir=d.lG2({type:Xt,inputs:{klass:["class","klass"]},features:[d.qOj]}),Xt})();const J=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let at=(()=>{class Xt extends z{constructor(){super(...arguments),this.inputs=J}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[d.qOj]}),Xt})(),ct=(()=>{class Xt extends p.QI{buildStyles(ae,Kt){return{display:"true"===ae?Kt.display||(Kt.isServer?"initial":""):"none"}}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275prov=d.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),vt=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,De,on){super(ae,Kt,de,Wt),this.layoutConfig=re,this.platformId=De,this.serverModuleLoaded=on,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ae=Array.from(this.nativeElement.children);for(let de=0;de{if(-1!==this.inputs.indexOf(Kt)){const de=Kt.split("."),Wt=de.slice(1).join("."),re=ae[Kt].currentValue;let De=""===re||0!==re&&(0,T.Ig)(re);"fxHide"===de[0]&&(De=!De),this.setValue(De,Wt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ae=>{this.marshal.trackValue(this.nativeElement,ae).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(ae=!0){if(""===ae)return;const Kt=(0,b.PM)(this.platformId);this.addStyles(ae?"true":"false",{display:this.display,isServer:Kt}),Kt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(ct),d.Y36(p.RK),d.Y36(p.yB),d.Y36(p.WU),d.Y36(d.Lbi),d.Y36(p.wY))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj,d.TTD]}),Xt})();const Dt=new WeakMap,Pt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Vt=(()=>{class Xt extends vt{constructor(){super(...arguments),this.inputs=Pt}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[d.qOj]}),Xt})();class it{constructor(Te,ae,Kt=!0){this.key=Te,this.value=ae,this.key=Kt?Te.replace(/['"]/g,"").trim():Te.trim(),this.value=Kt?ae.replace(/['"]/g,"").trim():ae.trim(),this.value=this.value.replace(/;/,"")}}function Tt(Xt){let Te=typeof Xt;return"object"===Te?Xt.constructor===Array?"array":Xt.constructor===Set?"set":"object":Te}function Bt(Xt){const[Te,...ae]=Xt.split(":");return new it(Te,ae.join(":"))}function Ft(Xt,Te){return Te.key&&(Xt[Te.key]=Te.value),Xt}let se=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,De,on,_n,Ae){super(ae,null,Kt,de),this.sanitizer=Wt,this.ngStyleInstance=on,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new b.PC(ae,re,De)),this.init();const gn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(gn),this.isServer=_n&&(0,b.PM)(Ae)}updateWithValue(ae){const Kt=this.buildStyleMap(ae);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Kt},this.isServer&&this.applyStyleToElement(Kt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ae){const Kt=de=>this.sanitizer.sanitize(d.q3G.STYLE,de)??"";if(ae)switch(Tt(ae)){case"string":return Le(function At(Xt,Te=";"){return String(Xt).trim().split(Te).map(ae=>ae.trim()).filter(ae=>""!==ae)}(ae),Kt);case"array":return Le(ae,Kt);default:return function Et(Xt,Te){let ae=[];return"set"===Tt(Xt)?Xt.forEach(Kt=>ae.push(Kt)):Object.keys(Xt).forEach(Kt=>{ae.push(`${Kt}:${Xt[Kt]}`)}),function ft(Xt,Te){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(Te&&(Kt.value=Te(Kt.value)),Kt)).reduce(Ft,{})}(ae,Te)}(ae,Kt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(A.H7),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(b.PC,10),d.Y36(p.wY),d.Y36(d.Lbi))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj]}),Xt})();const Gt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let be=(()=>{class Xt extends se{constructor(){super(...arguments),this.inputs=Gt}}return Xt.\u0275fac=function(){let Te;return function(Kt){return(Te||(Te=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[d.qOj]}),Xt})();function Le(Xt,Te){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(Te&&(Kt.value=Te(Kt.value)),Kt)).reduce(Ft,{})}let $e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=d.oAB({type:Xt}),Xt.\u0275inj=d.cJS({imports:[p.IR]}),Xt})()},1576:(ot,et,v)=>{"use strict";v.d(et,{SQ:()=>vt,Wh:()=>mi,XD:()=>lt,ae:()=>en,s9:()=>Jt,xw:()=>P,yH:()=>ve});var d=v(94650),p=v(40445),b=v(32233),T=v(85863),t=v(8929),A=v(7625);let x=(()=>{class le extends b.QI{buildStyles(Lt,{display:wt}){const Ot=(0,T.Ar)(Lt);return{...Ot,display:"none"===wt?wt:Ot.display}}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const U=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let D=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye,Xe){super(Lt,Ot,wt,ye),this._config=Xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Lt){const Ot=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=F.get(Ot)??new Map,F.set(Ot,this.styleCache),this.currentValue!==Lt&&(this.addStyles(Lt,{display:Ot}),this.currentValue=Lt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(x),d.Y36(b.yB),d.Y36(b.WU))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),P=(()=>{class le extends D{constructor(){super(...arguments),this.inputs=U}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[d.qOj]}),le})();const F=new Map,z={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let J=(()=>{class le extends b.QI{constructor(Lt,wt){super(),this._styler=Lt,this._config=wt}buildStyles(Lt,wt){return Lt.endsWith(it)?(Lt=Lt.slice(0,Lt.indexOf(it)),function At(le,Ge){const[Lt,wt]=le.split(" "),ye=he=>`-${he}`;let Xe="0px",Ne=ye(wt??Lt),Tn="0px";return"rtl"===Ge?Tn=ye(Lt):Xe=ye(Lt),{margin:`0px ${Xe} ${Ne} ${Tn}`}}(Lt=(0,b.FL)(Lt,this._config.multiplier),wt.directionality)):{}}sideEffect(Lt,wt,Ot){const ye=Ot.items;if(Lt.endsWith(it)){Lt=Lt.slice(0,Lt.indexOf(it));const Xe=function Tt(le,Ge){const[Lt,wt]=le.split(" ");let ye="0px",Ne="0px";return"rtl"===Ge?Ne=Lt:ye=Lt,{padding:`0px ${ye} ${wt??Lt} ${Ne}`}}(Lt=(0,b.FL)(Lt,this._config.multiplier),Ot.directionality);this._styler.applyStyleToElements(Xe,Ot.items)}else{Lt=(0,b.FL)(Lt,this._config.multiplier),Lt=this.addFallbackUnit(Lt);const Xe=ye.pop(),Ne=function Et(le,Ge){const Lt=ft(Ge.directionality,Ge.layout),wt={...z};return wt[Lt]=le,wt}(Lt,Ot);this._styler.applyStyleToElements(Ne,ye),this._styler.applyStyleToElements(z,[Xe])}}addFallbackUnit(Lt){return isNaN(+Lt)?Lt:`${Lt}${this._config.defaultUnit}`}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(b.RK),d.LFG(b.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const K=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let ct=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye,Xe,Ne){super(Lt,Xe,ye,Ne),this.zone=wt,this.directionality=Ot,this.styleUtils=ye,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Tn=[this.directionality.change,this.observerSubject.asObservable()];this.init(Tn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Lt=this.nativeElement.children,wt=[];for(let Ot=Lt.length;Ot--;)wt[Ot]=Lt[Ot];return wt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Lt){const Ot=Lt.value.split(" ");this.layout=Ot[0],T.iQ.find(ye=>ye===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Lt){const wt=this.childrenNodes.filter(Ot=>1===Ot.nodeType&&this.willDisplay(Ot)).sort((Ot,ye)=>{const Xe=+this.styler.lookupStyle(Ot,"order"),Ne=+this.styler.lookupStyle(ye,"order");return isNaN(Xe)||isNaN(Ne)||Xe===Ne?0:Xe>Ne?1:-1});if(wt.length>0){const Ot=this.directionality.value,ye=this.layout;"row"===ye&&"rtl"===Ot?this.styleCache=Dt:"row"===ye&&"rtl"!==Ot?this.styleCache=zt:"column"===ye&&"rtl"===Ot?this.styleCache=Pt:"column"===ye&&"rtl"!==Ot&&(this.styleCache=Vt),this.addStyles(Lt,{directionality:Ot,items:wt,layout:ye})}}clearStyles(){const Lt=Object.keys(this.mru).length>0,wt=Lt?"padding":ft(this.directionality.value,this.layout);Lt&&super.clearStyles(),this.styleUtils.applyStyleToElements({[wt]:""},this.childrenNodes)}willDisplay(Lt){const wt=this.marshal.getValue(Lt,"show-hide");return!0===wt||void 0===wt&&"none"!==this.styleUtils.lookupStyle(Lt,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Lt=>{Lt.some(Ot=>Ot.addedNodes&&Ot.addedNodes.length>0||Ot.removedNodes&&Ot.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(p.Is),d.Y36(b.RK),d.Y36(J),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),vt=(()=>{class le extends ct{constructor(){super(...arguments),this.inputs=K}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[d.qOj]}),le})();const Dt=new Map,Pt=new Map,zt=new Map,Vt=new Map,it=" grid";function ft(le,Ge){switch(Ge){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===le?"margin-left":"margin-right";case"row-reverse":return"rtl"===le?"margin-right":"margin-left"}}let Bt=(()=>{class le extends b.QI{constructor(Lt){super(),this.layoutConfig=Lt}buildStyles(Lt,wt){let[Ot,ye,...Xe]=Lt.split(" "),Ne=Xe.join(" ");const Tn=wt.direction.indexOf("column")>-1?"column":"row",he=(0,T.tj)(Tn)?"max-width":"max-height",Re=(0,T.tj)(Tn)?"min-width":"min-height",En=String(Ne).indexOf("calc")>-1,gi=En||"auto"===Ne,go=String(Ne).indexOf("%")>-1&&!En,_o=String(Ne).indexOf("px")>-1||String(Ne).indexOf("rem")>-1||String(Ne).indexOf("em")>-1||String(Ne).indexOf("vw")>-1||String(Ne).indexOf("vh")>-1;let mn=En||_o;Ot="0"==Ot?0:Ot,ye="0"==ye?0:ye;const An=!Ot&&!ye;let sn={};const ei={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ne||""){case"":const Zi=!1!==this.layoutConfig.useColumnBasisZero;Ne="row"===Tn?"0%":Zi?"0.000000001px":"auto";break;case"initial":case"nogrow":Ot=0,Ne="auto";break;case"grow":Ne="100%";break;case"noshrink":ye=0,Ne="auto";break;case"auto":break;case"none":Ot=0,ye=0,Ne="auto";break;default:!mn&&!go&&!isNaN(Ne)&&(Ne+="%"),"0%"===Ne&&(mn=!0),"0px"===Ne&&(Ne="0%"),sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":ye,"flex-basis":mn?Ne:"100%"}:{flex:`${Ot} ${ye} ${mn?Ne:"100%"}`})}return sn.flex||sn["flex-grow"]||(sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":ye,"flex-basis":Ne}:{flex:`${Ot} ${ye} ${Ne}`})),"0%"!==Ne&&"0px"!==Ne&&"0.000000001px"!==Ne&&"auto"!==Ne&&(sn[Re]=An||mn&&Ot?Ne:null,sn[he]=An||!gi&&ye?Ne:null),sn[Re]||sn[he]?wt.hasWrap&&(sn[En?"flex-basis":"flex"]=sn[he]?En?sn[he]:`${Ot} ${ye} ${sn[he]}`:En?sn[Re]:`${Ot} ${ye} ${sn[Re]}`):sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":ye,"flex-basis":Ne}:{flex:`${Ot} ${ye} ${Ne}`}),(0,T.kt)(sn,{"box-sizing":"border-box"})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(b.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Ft=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Gt=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye,Xe){super(Lt,ye,wt,Xe),this.layoutConfig=Ot,this.marshal=Xe,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Lt){this.flexShrink=Lt||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Lt){this.flexGrow=Lt||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,A.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Lt){const Ot=Lt.value.split(" ");this.direction=Ot[0],this.wrap=void 0!==Ot[1]&&"wrap"===Ot[1],this.triggerUpdate()}updateWithValue(Lt){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const Ot=this.direction,ye=Ot.startsWith("row"),Xe=this.wrap;ye&&Xe?this.styleCache=qe:ye&&!Xe?this.styleCache=be:!ye&&Xe?this.styleCache=$e:!ye&&!Xe&&(this.styleCache=Le);const Ne=String(Lt).replace(";",""),Tn=(0,b.Ot)(Ne,this.flexGrow,this.flexShrink);this.addStyles(Tn.join(" "),{direction:Ot,hasWrap:Xe})}triggerReflow(){const Lt=this.activatedValue;if(void 0!==Lt){const wt=(0,b.Ot)(Lt+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,wt.join(" "))}}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(b.WU),d.Y36(Bt),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[d.qOj]}),le})(),ve=(()=>{class le extends Gt{constructor(){super(...arguments),this.inputs=Ft}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[d.qOj]}),le})();const be=new Map,Le=new Map,qe=new Map,$e=new Map;let oi=(()=>{class le extends b.QI{buildStyles(Lt){const wt={};switch(Lt=Lt||"stretch"){case"start":wt["align-self"]="flex-start";break;case"end":wt["align-self"]="flex-end";break;default:wt["align-self"]=Lt}return wt}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const vi=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let Ke=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye){super(Lt,Ot,wt,ye),this.DIRECTIVE_KEY="flex-align",this.styleCache=ne,this.init()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(oi),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})();const ne=new Map;let lt=(()=>{class le extends Ke{constructor(){super(...arguments),this.inputs=vi}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[d.qOj]}),le})();const nt={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let kt=(()=>{class le extends b.QI{buildStyles(Lt){return nt}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),Jt=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye){super(Lt,Ot,wt,ye),this.styleCache=oe,this.addStyles("")}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(kt),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[d.qOj]}),le})();const oe=new Map;let Ce=(()=>{class le extends b.QI{buildStyles(Lt,wt){const Ot={},[ye,Xe]=Lt.split(" ");switch(ye){case"center":Ot["justify-content"]="center";break;case"space-around":Ot["justify-content"]="space-around";break;case"space-between":Ot["justify-content"]="space-between";break;case"space-evenly":Ot["justify-content"]="space-evenly";break;case"end":case"flex-end":Ot["justify-content"]="flex-end";break;default:Ot["justify-content"]="flex-start"}switch(Xe){case"start":case"flex-start":Ot["align-items"]=Ot["align-content"]="flex-start";break;case"center":Ot["align-items"]=Ot["align-content"]="center";break;case"end":case"flex-end":Ot["align-items"]=Ot["align-content"]="flex-end";break;case"space-between":Ot["align-content"]="space-between",Ot["align-items"]="stretch";break;case"space-around":Ot["align-content"]="space-around",Ot["align-items"]="stretch";break;case"baseline":Ot["align-content"]="stretch",Ot["align-items"]="baseline";break;default:Ot["align-items"]=Ot["align-content"]="stretch"}return(0,T.kt)(Ot,{display:wt.inline?"inline-flex":"flex","flex-direction":wt.layout,"box-sizing":"border-box","max-width":"stretch"===Xe?(0,T.tj)(wt.layout)?null:"100%":null,"max-height":"stretch"===Xe&&(0,T.tj)(wt.layout)?"100%":null})}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Oe=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Sn=(()=>{class le extends b.iR{constructor(Lt,wt,Ot,ye){super(Lt,Ot,wt,ye),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Lt){const wt=this.layout||"row",Ot=this.inline;"row"===wt&&Ot?this.styleCache=jn:"row"!==wt||Ot?"row-reverse"===wt&&Ot?this.styleCache=fn:"row-reverse"!==wt||Ot?"column"===wt&&Ot?this.styleCache=Ye:"column"!==wt||Ot?"column-reverse"===wt&&Ot?this.styleCache=ze:"column-reverse"===wt&&!Ot&&(this.styleCache=Bn):this.styleCache=ho:this.styleCache=fi:this.styleCache=Li,this.addStyles(Lt,{layout:wt,inline:Ot})}onLayoutChange(Lt){const wt=Lt.value.split(" ");this.layout=wt[0],this.inline=Lt.value.includes("inline"),T.iQ.find(Ot=>Ot===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(b.RK),d.Y36(Ce),d.Y36(b.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),mi=(()=>{class le extends Sn{constructor(){super(...arguments),this.inputs=Oe}}return le.\u0275fac=function(){let Ge;return function(wt){return(Ge||(Ge=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[d.qOj]}),le})();const Li=new Map,ho=new Map,fi=new Map,Bn=new Map,jn=new Map,Ye=new Map,fn=new Map,ze=new Map;let en=(()=>{class le{}return le.\u0275fac=function(Lt){return new(Lt||le)},le.\u0275mod=d.oAB({type:le}),le.\u0275inj=d.cJS({imports:[b.IR,p.vT]}),le})()},24006:(ot,et,v)=>{"use strict";v.d(et,{CE:()=>Gs,Cf:()=>vt,F:()=>vr,Fd:()=>pr,Fj:()=>J,JJ:()=>si,JL:()=>Ke,JU:()=>U,NI:()=>Or,On:()=>Wr,Q7:()=>Hl,QS:()=>Ws,UX:()=>rl,Zs:()=>ks,_Y:()=>qs,a5:()=>un,kI:()=>zt,nD:()=>dc,nJ:()=>Re,oH:()=>Vs,p4:()=>fc,qQ:()=>vs,qu:()=>Pa,sg:()=>pd,u:()=>Nl,u5:()=>Vc,wV:()=>hr,x0:()=>js});var d=v(94650),p=v(36895),b=v(5254),T=v(30567),t=v(24850);let A=(()=>{class pe{constructor(qt,rt){this._renderer=qt,this._elementRef=rt,this.onChange=ki=>{},this.onTouched=()=>{}}setProperty(qt,rt){this._renderer.setProperty(this._elementRef.nativeElement,qt,rt)}registerOnTouched(qt){this.onTouched=qt}registerOnChange(qt){this.onChange=qt}setDisabledState(qt){this.setProperty("disabled",qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq))},pe.\u0275dir=d.lG2({type:pe}),pe})(),x=(()=>{class pe extends A{}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const U=new d.OlP("NgValueAccessor"),P={provide:U,useExisting:(0,d.Gpc)(()=>J),multi:!0},z=new d.OlP("CompositionEventMode");let J=(()=>{class pe extends A{constructor(qt,rt,ki){super(qt,rt),this._compositionMode=ki,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function F(){const pe=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(pe.toLowerCase())}())}writeValue(qt){this.setProperty("value",qt??"")}_handleInput(qt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(qt)}_compositionStart(){this._composing=!0}_compositionEnd(qt){this._composing=!1,this._compositionMode&&this.onChange(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(z,8))},pe.\u0275dir=d.lG2({type:pe,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(qt,rt){1&qt&&d.NdJ("input",function(jo){return rt._handleInput(jo.target.value)})("blur",function(){return rt.onTouched()})("compositionstart",function(){return rt._compositionStart()})("compositionend",function(jo){return rt._compositionEnd(jo.target.value)})},features:[d._Bn([P]),d.qOj]}),pe})();function at(pe){return null==pe||("string"==typeof pe||Array.isArray(pe))&&0===pe.length}function ct(pe){return null!=pe&&"number"==typeof pe.length}const vt=new d.OlP("NgValidators"),Dt=new d.OlP("NgAsyncValidators"),Pt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zt{static min(ee){return Vt(ee)}static max(ee){return it(ee)}static required(ee){return Tt(ee)}static requiredTrue(ee){return At(ee)}static email(ee){return function ft(pe){return at(pe.value)||Pt.test(pe.value)?null:{email:!0}}(ee)}static minLength(ee){return function Et(pe){return ee=>at(ee.value)||!ct(ee.value)?null:ee.value.length{if(at(rt.value))return null;const ki=rt.value;return ee.test(ki)?null:{pattern:{requiredPattern:qt,actualValue:ki}}}}(ee)}static nullValidator(ee){return null}static compose(ee){return Xt(ee)}static composeAsync(ee){return ae(ee)}}function Vt(pe){return ee=>{if(at(ee.value)||at(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt{if(at(ee.value)||at(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt>pe?{max:{max:pe,actual:ee.value}}:null}}function Tt(pe){return at(pe.value)?{required:!0}:null}function At(pe){return!0===pe.value?null:{required:!0}}function Bt(pe){return ee=>ct(ee.value)&&ee.value.length>pe?{maxlength:{requiredLength:pe,actualLength:ee.value.length}}:null}function se(pe){return null}function Gt(pe){return null!=pe}function ve(pe){return(0,d.QGY)(pe)?(0,b.D)(pe):pe}function be(pe){let ee={};return pe.forEach(qt=>{ee=null!=qt?{...ee,...qt}:ee}),0===Object.keys(ee).length?null:ee}function Le(pe,ee){return ee.map(qt=>qt(pe))}function $e(pe){return pe.map(ee=>function qe(pe){return!pe.validate}(ee)?ee:qt=>ee.validate(qt))}function Xt(pe){if(!pe)return null;const ee=pe.filter(Gt);return 0==ee.length?null:function(qt){return be(Le(qt,ee))}}function Te(pe){return null!=pe?Xt($e(pe)):null}function ae(pe){if(!pe)return null;const ee=pe.filter(Gt);return 0==ee.length?null:function(qt){const rt=Le(qt,ee).map(ve);return(0,T.D)(rt).pipe((0,t.U)(be))}}function Kt(pe){return null!=pe?ae($e(pe)):null}function de(pe,ee){return null===pe?[ee]:Array.isArray(pe)?[...pe,ee]:[pe,ee]}function Wt(pe){return pe._rawValidators}function re(pe){return pe._rawAsyncValidators}function De(pe){return pe?Array.isArray(pe)?pe:[pe]:[]}function on(pe,ee){return Array.isArray(pe)?pe.includes(ee):pe===ee}function _n(pe,ee){const qt=De(ee);return De(pe).forEach(ki=>{on(qt,ki)||qt.push(ki)}),qt}function Ae(pe,ee){return De(ee).filter(qt=>!on(pe,qt))}class gn{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(ee){this._rawValidators=ee||[],this._composedValidatorFn=Te(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=Kt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee){this.control&&this.control.reset(ee)}hasError(ee,qt){return!!this.control&&this.control.hasError(ee,qt)}getError(ee,qt){return this.control?this.control.getError(ee,qt):null}}class we extends gn{get formDirective(){return null}get path(){return null}}class un extends gn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Un{constructor(ee){this._cd=ee}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let si=(()=>{class pe extends Un{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(un,2))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)},features:[d.qOj]}),pe})(),Ke=(()=>{class pe extends Un{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)("ng-submitted",rt.isSubmitted)},features:[d.qOj]}),pe})();const ze="VALID",We="INVALID",en="PENDING",le="DISABLED";function Ge(pe){return(ye(pe)?pe.validators:pe)||null}function Lt(pe){return Array.isArray(pe)?Te(pe):pe||null}function wt(pe,ee){return(ye(ee)?ee.asyncValidators:pe)||null}function Ot(pe){return Array.isArray(pe)?Kt(pe):pe||null}function ye(pe){return null!=pe&&!Array.isArray(pe)&&"object"==typeof pe}function Xe(pe,ee,qt){const rt=pe.controls;if(!(ee?Object.keys(rt):rt).length)throw new d.vHH(1e3,"");if(!rt[qt])throw new d.vHH(1001,"")}function Ne(pe,ee,qt){pe._forEachChild((rt,ki)=>{if(void 0===qt[ki])throw new d.vHH(1002,"")})}class Tn{constructor(ee,qt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ee,this._rawAsyncValidators=qt,this._composedValidatorFn=Lt(this._rawValidators),this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===ze}get invalid(){return this.status===We}get pending(){return this.status==en}get disabled(){return this.status===le}get enabled(){return this.status!==le}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._rawValidators=ee,this._composedValidatorFn=Lt(ee)}setAsyncValidators(ee){this._rawAsyncValidators=ee,this._composedAsyncValidatorFn=Ot(ee)}addValidators(ee){this.setValidators(_n(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(_n(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(Ae(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(Ae(ee,this._rawAsyncValidators))}hasValidator(ee){return on(this._rawValidators,ee)}hasAsyncValidator(ee){return on(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(qt=>{qt.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(qt=>{qt.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=en,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=le,this.errors=null,this._forEachChild(rt=>{rt.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!0))}enable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=ze,this._forEachChild(rt=>{rt.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ze||this.status===en)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(qt=>qt._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?le:ze}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=en,this._hasOwnPendingAsyncValidator=!0;const qt=ve(this.asyncValidator(this));this._asyncValidationSubscription=qt.subscribe(rt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(rt,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,qt={}){this.errors=ee,this._updateControlsErrors(!1!==qt.emitEvent)}get(ee){let qt=ee;return null==qt||(Array.isArray(qt)||(qt=qt.split(".")),0===qt.length)?null:qt.reduce((rt,ki)=>rt&&rt._find(ki),this)}getError(ee,qt){const rt=qt?this.get(qt):this;return rt&&rt.errors?rt.errors[ee]:null}hasError(ee,qt){return!!this.getError(ee,qt)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?le:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(en)?en:this._anyControlsHaveStatus(We)?We:ze}_anyControlsHaveStatus(ee){return this._anyControls(qt=>qt.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){ye(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}}class he extends Tn{constructor(ee,qt,rt){super(Ge(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ee,qt){return this.controls[ee]?this.controls[ee]:(this.controls[ee]=qt,qt.setParent(this),qt._registerOnCollectionChange(this._onCollectionChange),qt)}addControl(ee,qt,rt={}){this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}removeControl(ee,qt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}setControl(ee,qt,rt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],qt&&this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}contains(ee){return this.controls.hasOwnProperty(ee)&&this.controls[ee].enabled}setValue(ee,qt={}){Ne(this,0,ee),Object.keys(ee).forEach(rt=>{Xe(this,!0,rt),this.controls[rt].setValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(Object.keys(ee).forEach(rt=>{const ki=this.controls[rt];ki&&ki.patchValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee={},qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this._reduceChildren({},(ee,qt,rt)=>(ee[rt]=qt.getRawValue(),ee))}_syncPendingControls(){let ee=this._reduceChildren(!1,(qt,rt)=>!!rt._syncPendingControls()||qt);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){Object.keys(this.controls).forEach(qt=>{const rt=this.controls[qt];rt&&ee(rt,qt)})}_setUpControls(){this._forEachChild(ee=>{ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ee){for(const[qt,rt]of Object.entries(this.controls))if(this.contains(qt)&&ee(rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(qt,rt,ki)=>((rt.enabled||this.disabled)&&(qt[ki]=rt.value),qt))}_reduceChildren(ee,qt){let rt=ee;return this._forEachChild((ki,jo)=>{rt=qt(rt,ki,jo)}),rt}_allControlsDisabled(){for(const ee of Object.keys(this.controls))if(this.controls[ee].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ee){return this.controls.hasOwnProperty(ee)?this.controls[ee]:null}}const Re=he;class gi extends he{}function _o(pe,ee){return[...ee.path,pe]}function mn(pe,ee){Zi(pe,ee),ee.valueAccessor.writeValue(pe.value),pe.disabled&&ee.valueAccessor.setDisabledState?.(!0),function No(pe,ee){ee.valueAccessor.registerOnChange(qt=>{pe._pendingValue=qt,pe._pendingChange=!0,pe._pendingDirty=!0,"change"===pe.updateOn&&qa(pe,ee)})}(pe,ee),function fr(pe,ee){const qt=(rt,ki)=>{ee.valueAccessor.writeValue(rt),ki&&ee.viewToModelUpdate(rt)};pe.registerOnChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnChange(qt)})}(pe,ee),function ua(pe,ee){ee.valueAccessor.registerOnTouched(()=>{pe._pendingTouched=!0,"blur"===pe.updateOn&&pe._pendingChange&&qa(pe,ee),"submit"!==pe.updateOn&&pe.markAsTouched()})}(pe,ee),function ei(pe,ee){if(ee.valueAccessor.setDisabledState){const qt=rt=>{ee.valueAccessor.setDisabledState(rt)};pe.registerOnDisabledChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnDisabledChange(qt)})}}(pe,ee)}function An(pe,ee,qt=!0){const rt=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(rt),ee.valueAccessor.registerOnTouched(rt)),bo(pe,ee),pe&&(ee._invokeOnDestroyCallbacks(),pe._registerOnCollectionChange(()=>{}))}function sn(pe,ee){pe.forEach(qt=>{qt.registerOnValidatorChange&&qt.registerOnValidatorChange(ee)})}function Zi(pe,ee){const qt=Wt(pe);null!==ee.validator?pe.setValidators(de(qt,ee.validator)):"function"==typeof qt&&pe.setValidators([qt]);const rt=re(pe);null!==ee.asyncValidator?pe.setAsyncValidators(de(rt,ee.asyncValidator)):"function"==typeof rt&&pe.setAsyncValidators([rt]);const ki=()=>pe.updateValueAndValidity();sn(ee._rawValidators,ki),sn(ee._rawAsyncValidators,ki)}function bo(pe,ee){let qt=!1;if(null!==pe){if(null!==ee.validator){const ki=Wt(pe);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(La=>La!==ee.validator);jo.length!==ki.length&&(qt=!0,pe.setValidators(jo))}}if(null!==ee.asyncValidator){const ki=re(pe);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(La=>La!==ee.asyncValidator);jo.length!==ki.length&&(qt=!0,pe.setAsyncValidators(jo))}}}const rt=()=>{};return sn(ee._rawValidators,rt),sn(ee._rawAsyncValidators,rt),qt}function qa(pe,ee){pe._pendingDirty&&pe.markAsDirty(),pe.setValue(pe._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(pe._pendingValue),pe._pendingChange=!1}function Je(pe,ee){Zi(pe,ee)}function Rt(pe,ee){if(!pe.hasOwnProperty("model"))return!1;const qt=pe.model;return!!qt.isFirstChange()||!Object.is(ee,qt.currentValue)}function Nt(pe,ee){pe._syncPendingControls(),ee.forEach(qt=>{const rt=qt.control;"submit"===rt.updateOn&&rt._pendingChange&&(qt.viewToModelUpdate(rt._pendingValue),rt._pendingChange=!1)})}function Be(pe,ee){if(!ee)return null;let qt,rt,ki;return Array.isArray(ee),ee.forEach(jo=>{jo.constructor===J?qt=jo:function Q(pe){return Object.getPrototypeOf(pe.constructor)===x}(jo)?rt=jo:ki=jo}),ki||rt||qt||null}const Ao={provide:we,useExisting:(0,d.Gpc)(()=>vr)},gr=(()=>Promise.resolve())();let vr=(()=>{class pe extends we{constructor(qt,rt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new he({},Te(qt),Kt(rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);qt.control=rt.registerControl(qt.name,qt.control),mn(qt.control,qt),qt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(qt)})}getControl(qt){return this.form.get(qt.path)}removeControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name),this._directives.delete(qt)})}addFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path),ki=new he({});Je(ki,qt),rt.registerControl(qt.name,ki),ki.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name)})}getFormGroup(qt){return this.form.get(qt.path)}updateModel(qt,rt){gr.then(()=>{this.form.get(qt.path).setValue(rt)})}setValue(qt){this.control.setValue(qt)}onSubmit(qt){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(qt){return qt.pop(),qt.length?this.form.get(qt):this.form}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(jo){return rt.onSubmit(jo)})("reset",function(){return rt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Ao]),d.qOj]}),pe})();function us(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}function ir(pe){return"object"==typeof pe&&null!==pe&&2===Object.keys(pe).length&&"value"in pe&&"disabled"in pe}const Or=class extends Tn{constructor(ee=null,qt,rt){super(Ge(qt),wt(rt,qt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(qt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ye(qt)&&(qt.nonNullable||qt.initialValueIsDefault)&&(this.defaultValue=ir(ee)?ee.value:ee)}setValue(ee,qt={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==qt.emitModelToViewChange&&this._onChange.forEach(rt=>rt(this.value,!1!==qt.emitViewToModelChange)),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){this.setValue(ee,qt)}reset(ee=this.defaultValue,qt={}){this._applyFormState(ee),this.markAsPristine(qt),this.markAsUntouched(qt),this.setValue(this.value,qt),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){us(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){us(this._onDisabledChange,ee)}_forEachChild(ee){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ee){ir(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},fc=Or;let jr=(()=>{class pe extends we{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const kc={provide:un,useExisting:(0,d.Gpc)(()=>Wr)},bl=(()=>Promise.resolve())();let Wr=(()=>{class pe extends un{constructor(qt,rt,ki,jo,La){super(),this._changeDetectorRef=La,this.control=new Or,this._registered=!1,this.update=new d.vpe,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,jo)}ngOnChanges(qt){if(this._checkForErrors(),!this._registered||"name"in qt){if(this._registered&&(this._checkName(),this.formDirective)){const rt=qt.name.previousValue;this.formDirective.removeControl({name:rt,path:this._getPath(rt)})}this._setUpControl()}"isDisabled"in qt&&this._updateDisabled(qt),Rt(qt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){mn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(qt){bl.then(()=>{this.control.setValue(qt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(qt){const rt=qt.isDisabled.currentValue,ki=0!==rt&&(0,d.D6c)(rt);bl.then(()=>{ki&&!this.control.disabled?this.control.disable():!ki&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(qt){return this._parent?_o(qt,this._parent):[qt]}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,9),d.Y36(vt,10),d.Y36(Dt,10),d.Y36(U,10),d.Y36(d.sBO,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[d._Bn([kc]),d.qOj,d.TTD]}),pe})(),qs=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),pe})();const s1={provide:U,useExisting:(0,d.Gpc)(()=>hr),multi:!0};let hr=(()=>{class pe extends x{writeValue(qt){this.setProperty("value",qt??"")}registerOnChange(qt){this.onChange=rt=>{qt(""==rt?null:parseFloat(rt))}}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("input",function(jo){return rt.onChange(jo.target.value)})("blur",function(){return rt.onTouched()})},features:[d._Bn([s1]),d.qOj]}),pe})(),hc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({}),pe})();const Rc=new d.OlP("NgModelWithFormControlWarning"),Hc={provide:un,useExisting:(0,d.Gpc)(()=>Vs)};let Vs=(()=>{class pe extends un{constructor(qt,rt,ki,jo){super(),this._ngModelWarningConfig=jo,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(qt),this._setAsyncValidators(rt),this.valueAccessor=Be(0,ki)}set isDisabled(qt){}ngOnChanges(qt){if(this._isControlChanged(qt)){const rt=qt.form.previousValue;rt&&An(rt,this,!1),mn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Rt(qt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&An(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}_isControlChanged(qt){return qt.hasOwnProperty("form")}}return pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(vt,10),d.Y36(Dt,10),d.Y36(U,10),d.Y36(Rc,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[d._Bn([Hc]),d.qOj,d.TTD]}),pe})();const Al={provide:we,useExisting:(0,d.Gpc)(()=>pd)};let pd=(()=>{class pe extends we{constructor(qt,rt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(qt),this._setAsyncValidators(rt)}ngOnChanges(qt){this._checkFormPresent(),qt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(qt){const rt=this.form.get(qt.path);return mn(rt,qt),rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(qt),rt}getControl(qt){return this.form.get(qt.path)}removeControl(qt){An(qt.control||null,qt,!1),function Rn(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}(this.directives,qt)}addFormGroup(qt){this._setUpFormContainer(qt)}removeFormGroup(qt){this._cleanUpFormContainer(qt)}getFormGroup(qt){return this.form.get(qt.path)}addFormArray(qt){this._setUpFormContainer(qt)}removeFormArray(qt){this._cleanUpFormContainer(qt)}getFormArray(qt){return this.form.get(qt.path)}updateModel(qt,rt){this.form.get(qt.path).setValue(rt)}onSubmit(qt){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_updateDomValue(){this.directives.forEach(qt=>{const rt=qt.control,ki=this.form.get(qt.path);rt!==ki&&(An(rt||null,qt),(pe=>pe instanceof Or)(ki)&&(mn(ki,qt),qt.control=ki))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(qt){const rt=this.form.get(qt.path);Je(rt,qt),rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(qt){if(this.form){const rt=this.form.get(qt.path);rt&&function Fn(pe,ee){return bo(pe,ee)}(rt,qt)&&rt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zi(this.form,this),this._oldForm&&bo(this._oldForm,this)}_checkFormPresent(){}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroup",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(jo){return rt.onSubmit(jo)})("reset",function(){return rt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Al]),d.qOj,d.TTD]}),pe})();const Il={provide:we,useExisting:(0,d.Gpc)(()=>js)};let js=(()=>{class pe extends jr{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki)}_checkParentType(){zc(this._parent)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,13),d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[d._Bn([Il]),d.qOj]}),pe})();const yl={provide:we,useExisting:(0,d.Gpc)(()=>Gs)};let Gs=(()=>{class pe extends we{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){zc(this._parent)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,13),d.Y36(vt,10),d.Y36(Dt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[d._Bn([yl]),d.qOj]}),pe})();function zc(pe){return!(pe instanceof js||pe instanceof pd||pe instanceof Gs)}const Zs={provide:un,useExisting:(0,d.Gpc)(()=>Nl)};let Nl=(()=>{class pe extends un{constructor(qt,rt,ki,jo,La){super(),this._ngModelWarningConfig=La,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,jo)}set isDisabled(qt){}ngOnChanges(qt){this._added||this._setUpControl(),Rt(qt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}get path(){return _o(null==this.name?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}}return pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(we,13),d.Y36(vt,10),d.Y36(Dt,10),d.Y36(U,10),d.Y36(Rc,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([Zs]),d.qOj,d.TTD]}),pe})();function Mr(pe){return"number"==typeof pe?pe:parseFloat(pe)}let vc=(()=>{class pe{constructor(){this._validator=se}ngOnChanges(qt){if(this.inputName in qt){const rt=this.normalizeInput(qt[this.inputName].currentValue);this._enabled=this.enabled(rt),this._validator=this._enabled?this.createValidator(rt):se,this._onChange&&this._onChange()}}validate(qt){return this._validator(qt)}registerOnValidatorChange(qt){this._onChange=qt}enabled(qt){return null!=qt}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,features:[d.TTD]}),pe})();const Wa={provide:vt,useExisting:(0,d.Gpc)(()=>pr),multi:!0};let pr=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=qt=>Mr(qt),this.createValidator=qt=>it(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("max",rt._enabled?rt.max:null)},inputs:{max:"max"},features:[d._Bn([Wa]),d.qOj]}),pe})();const Bc={provide:vt,useExisting:(0,d.Gpc)(()=>vs),multi:!0};let vs=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=qt=>Mr(qt),this.createValidator=qt=>Vt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("min",rt._enabled?rt.min:null)},inputs:{min:"min"},features:[d._Bn([Bc]),d.qOj]}),pe})();const bc={provide:vt,useExisting:(0,d.Gpc)(()=>Hl),multi:!0},ar={provide:vt,useExisting:(0,d.Gpc)(()=>ks),multi:!0};let Hl=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=qt=>Tt}enabled(qt){return qt}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([bc]),d.qOj]}),pe})(),ks=(()=>{class pe extends Hl{constructor(){super(...arguments),this.createValidator=qt=>At}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},features:[d._Bn([ar]),d.qOj]}),pe})();const Js={provide:vt,useExisting:(0,d.Gpc)(()=>dc),multi:!0};let dc=(()=>{class pe extends vc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=qt=>function _u(pe){return"number"==typeof pe?pe:parseInt(pe,10)}(qt),this.createValidator=qt=>Bt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("maxlength",rt._enabled?rt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[d._Bn([Js]),d.qOj]}),pe})(),Gr=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[hc]}),pe})(),Vc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[Gr]}),pe})(),rl=(()=>{class pe{static withConfig(qt){return{ngModule:pe,providers:[{provide:Rc,useValue:qt.warnOnNgModelWithFormControl}]}}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[Gr]}),pe})();class Cc extends Tn{constructor(ee,qt,rt){super(Ge(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ee){return this.controls[this._adjustIndex(ee)]}push(ee,qt={}){this.controls.push(ee),this._registerControl(ee),this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}insert(ee,qt,rt={}){this.controls.splice(ee,0,qt),this._registerControl(qt),this.updateValueAndValidity({emitEvent:rt.emitEvent})}removeAt(ee,qt={}){let rt=this._adjustIndex(ee);rt<0&&(rt=0),this.controls[rt]&&this.controls[rt]._registerOnCollectionChange(()=>{}),this.controls.splice(rt,1),this.updateValueAndValidity({emitEvent:qt.emitEvent})}setControl(ee,qt,rt={}){let ki=this._adjustIndex(ee);ki<0&&(ki=0),this.controls[ki]&&this.controls[ki]._registerOnCollectionChange(()=>{}),this.controls.splice(ki,1),qt&&(this.controls.splice(ki,0,qt),this._registerControl(qt)),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ee,qt={}){Ne(this,0,ee),ee.forEach((rt,ki)=>{Xe(this,!1,ki),this.at(ki).setValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(ee.forEach((rt,ki)=>{this.at(ki)&&this.at(ki).patchValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee=[],qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this.controls.map(ee=>ee.getRawValue())}clear(ee={}){this.controls.length<1||(this._forEachChild(qt=>qt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ee.emitEvent}))}_adjustIndex(ee){return ee<0?ee+this.length:ee}_syncPendingControls(){let ee=this.controls.reduce((qt,rt)=>!!rt._syncPendingControls()||qt,!1);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){this.controls.forEach((qt,rt)=>{ee(qt,rt)})}_updateValue(){this.value=this.controls.filter(ee=>ee.enabled||this.disabled).map(ee=>ee.value)}_anyControls(ee){return this.controls.some(qt=>qt.enabled&&ee(qt))}_setUpControls(){this._forEachChild(ee=>this._registerControl(ee))}_allControlsDisabled(){for(const ee of this.controls)if(ee.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ee){ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)}_find(ee){return this.at(ee)??null}}function Bi(pe){return!!pe&&(void 0!==pe.asyncValidators||void 0!==pe.validators||void 0!==pe.updateOn)}let Pa=(()=>{class pe{constructor(){this.useNonNullable=!1}get nonNullable(){const qt=new pe;return qt.useNonNullable=!0,qt}group(qt,rt=null){const ki=this._reduceControls(qt);let jo={};return Bi(rt)?jo=rt:null!==rt&&(jo.validators=rt.validator,jo.asyncValidators=rt.asyncValidator),new he(ki,jo)}record(qt,rt=null){const ki=this._reduceControls(qt);return new gi(ki,rt)}control(qt,rt,ki){let jo={};return this.useNonNullable?(Bi(rt)?jo=rt:(jo.validators=rt,jo.asyncValidators=ki),new Or(qt,{...jo,nonNullable:!0})):new Or(qt,rt,ki)}array(qt,rt,ki){const jo=qt.map(La=>this._createControl(La));return new Cc(jo,rt,ki)}_reduceControls(qt){const rt={};return Object.keys(qt).forEach(ki=>{rt[ki]=this._createControl(qt[ki])}),rt}_createControl(qt){return qt instanceof Or||qt instanceof Tn?qt:Array.isArray(qt)?this.control(qt[0],qt.length>1?qt[1]:null,qt.length>2?qt[2]:null):this.control(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})(),Ws=(()=>{class pe extends Pa{group(qt,rt=null){return super.group(qt,rt)}control(qt,rt,ki){return super.control(qt,rt,ki)}array(qt,rt,ki){return super.array(qt,rt,ki)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})()},47957:(ot,et,v)=>{"use strict";v.d(et,{Bb:()=>_n,XC:()=>$e,ZL:()=>on});var d=v(12687),p=v(21281),b=v(83353),T=v(94650),t=v(3238),A=v(42654),x=v(8929),U=v(88514),k=v(36787),D=v(21086),P=v(23753),F=v(36895),z=v(98184),J=v(67376),K=v(40445),at=v(29521),ct=v(84080),vt=v(24006),Dt=v(59549),Pt=v(1059),zt=v(87545),Vt=v(72986),it=v(92198),Tt=v(24850),At=v(22868),ft=v(18583);const Et=["panel"];function Bt(Ae,gn){if(1&Ae&&(T.TgZ(0,"div",0,1),T.Hsn(2),T.qZA()),2&Ae){const we=gn.id,un=T.oxw();T.Q6J("id",un.id)("ngClass",un._classList),T.uIk("aria-label",un.ariaLabel||null)("aria-labelledby",un._getPanelAriaLabelledby(we))}}const Ft=["*"];let se=0;class Gt{constructor(gn,we){this.source=gn,this.option=we}}const ve=(0,t.Kr)(class{}),be=new T.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Le(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let qe=(()=>{class Ae extends ve{constructor(we,un,Un,oi){super(),this._changeDetectorRef=we,this._elementRef=un,this._activeOptionChanges=A.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T.vpe,this.opened=new T.vpe,this.closed=new T.vpe,this.optionActivated=new T.vpe,this._classList={},this.id="mat-autocomplete-"+se++,this.inertGroups=oi?.SAFARI||!1,this._autoActiveFirstOption=!!Un.autoActiveFirstOption,this._autoSelectActiveOption=!!Un.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,p.Ig)(we)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(we){this._autoSelectActiveOption=(0,p.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,p.du)(we).reduce((un,Un)=>(un[Un]=!0,un),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new d.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const un=new Gt(this,we);this.optionSelected.emit(un)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return Ae.\u0275fac=function(we){return new(we||Ae)(T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(be),T.Y36(b.t4))},Ae.\u0275dir=T.lG2({type:Ae,viewQuery:function(we,un){if(1&we&&(T.Gf(T.Rgc,7),T.Gf(Et,5)),2&we){let Un;T.iGM(Un=T.CRH())&&(un.template=Un.first),T.iGM(Un=T.CRH())&&(un.panel=Un.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[T.qOj]}),Ae})(),$e=(()=>{class Ae extends qe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ae.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(Ae)))(un||Ae)}}(),Ae.\u0275cmp=T.Xpm({type:Ae,selectors:[["mat-autocomplete"]],contentQueries:function(we,un,Un){if(1&we&&(T.Suo(Un,t.K7,5),T.Suo(Un,t.ey,5)),2&we){let oi;T.iGM(oi=T.CRH())&&(un.optionGroups=oi),T.iGM(oi=T.CRH())&&(un.options=oi)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[T._Bn([{provide:t.HF,useExisting:Ae}]),T.qOj],ngContentSelectors:Ft,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,un){1&we&&(T.F$t(),T.YNc(0,Bt,3,4,"ng-template"))},dependencies:[F.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Ae})();const ae=new T.OlP("mat-autocomplete-scroll-strategy"),de={provide:ae,deps:[z.aV],useFactory:function Kt(Ae){return()=>Ae.scrollStrategies.reposition()}},Wt={provide:vt.JU,useExisting:(0,T.Gpc)(()=>on),multi:!0};let De=(()=>{class Ae{constructor(we,un,Un,oi,vi,si,Ke,ne,lt,nt,kt){this._element=we,this._overlay=un,this._viewContainerRef=Un,this._zone=oi,this._changeDetectorRef=vi,this._dir=Ke,this._formField=ne,this._document=lt,this._viewportRuler=nt,this._defaults=kt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new x.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,U.P)(()=>{const Jt=this.autocomplete?this.autocomplete.options:null;return Jt?Jt.changes.pipe((0,Pt.O)(Jt),(0,zt.w)(()=>(0,k.T)(...Jt.map(oe=>oe.onSelectionChange)))):this._zone.onStable.pipe((0,Vt.q)(1),(0,zt.w)(()=>this.optionSelections))}),this._scrollStrategy=si}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,p.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();typeof we<"u"&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();typeof we<"u"&&we.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,k.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,it.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,it.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,Tt.U)(we=>we instanceof t.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,k.T)((0,P.R)(this._document,"click"),(0,P.R)(this._document,"auxclick"),(0,P.R)(this._document,"touchend")).pipe((0,it.h)(we=>{const un=(0,b.sA)(we),Un=this._formField?this._formField._elementRef.nativeElement:null,oi=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&un!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Un||!Un.contains(un))&&(!oi||!oi.contains(un))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(un)}))}writeValue(we){Promise.resolve(null).then(()=>this._assignOptionValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const un=we.keyCode,Un=(0,at.Vb)(we);if(un===at.hY&&!Un&&we.preventDefault(),this.activeOption&&un===at.K5&&this.panelOpen&&!Un)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const oi=this.autocomplete._keyManager.activeItem,vi=un===at.LH||un===at.JH;un===at.Mf||vi&&!Un&&this.panelOpen?this.autocomplete._keyManager.onKeydown(we):vi&&this._canOpen()&&this.openPanel(),(vi||this.autocomplete._keyManager.activeItem!==oi)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(we){let un=we.target,Un=un.value;"number"===un.type&&(Un=""==Un?null:parseFloat(Un)),this._previousValue!==Un&&(this._previousValue=Un,this._pendingAutoselectedOption=null,this._onChange(Un),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,Vt.q)(1)),un=this.autocomplete.options.changes.pipe((0,At.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ft.g)(0));return(0,k.T)(we,un).pipe((0,zt.w)(()=>(this._zone.run(()=>{const Un=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Un!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Vt.q)(1)).subscribe(Un=>this._setValueAndClose(Un))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(we){const un=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we;this._updateNativeInputValue(un??"")}_updateNativeInputValue(we){this._formField?this._formField._control.value=we:this._element.nativeElement.value=we,this._previousValue=we}_setValueAndClose(we){const un=we?we.source:this._pendingAutoselectedOption;un&&(this._clearPreviousSelectedOption(un),this._assignOptionValue(un.value),this._onChange(un.value),this.autocomplete._emitSelectEvent(un),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(un=>{un!==we&&un.selected&&un.deselect()})}_attachOverlay(){let we=this._overlayRef;we?(this._positionStrategy.setOrigin(this._getConnectedElement()),we.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),we=this._overlay.create(this._getOverlayConfig()),this._overlayRef=we,this._handleOverlayEvents(we),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&we&&we.updateSize({width:this._getPanelWidth()})})),we&&!we.hasAttached()&&(we.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const un=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&un!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const un=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Un=this._aboveClass,oi=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Un},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Un}];let vi;vi="above"===this.position?oi:"below"===this.position?un:[...un,...oi],we.withPositions(vi)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(we){const un=this.autocomplete,Un=(0,t.CB)(we,un.options,un.optionGroups);if(0===we&&1===Un)un._setScrollTop(0);else if(un.panel){const oi=un.options.toArray()[we];if(oi){const vi=oi._getHostElement(),si=(0,t.jH)(vi.offsetTop,vi.offsetHeight,un._getScrollTop(),un.panel.nativeElement.offsetHeight);un._setScrollTop(si)}}}_handleOverlayEvents(we){we.keydownEvents().subscribe(un=>{(un.keyCode===at.hY&&!(0,at.Vb)(un)||un.keyCode===at.LH&&(0,at.Vb)(un,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),un.stopPropagation(),un.preventDefault())}),we.outsidePointerEvents().subscribe()}}return Ae.\u0275fac=function(we){return new(we||Ae)(T.Y36(T.SBq),T.Y36(z.aV),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(T.sBO),T.Y36(ae),T.Y36(K.Is,8),T.Y36(Dt.G_,9),T.Y36(F.K0,8),T.Y36(J.rL),T.Y36(be,8))},Ae.\u0275dir=T.lG2({type:Ae,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[T.TTD]}),Ae})(),on=(()=>{class Ae extends De{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ae.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(Ae)))(un||Ae)}}(),Ae.\u0275dir=T.lG2({type:Ae,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,un){1&we&&T.NdJ("focusin",function(){return un._handleFocus()})("blur",function(){return un._onTouched()})("input",function(oi){return un._handleInput(oi)})("keydown",function(oi){return un._handleKeydown(oi)})("click",function(){return un._handleClick()}),2&we&&T.uIk("autocomplete",un.autocompleteAttribute)("role",un.autocompleteDisabled?null:"combobox")("aria-autocomplete",un.autocompleteDisabled?null:"list")("aria-activedescendant",un.panelOpen&&un.activeOption?un.activeOption.id:null)("aria-expanded",un.autocompleteDisabled?null:un.panelOpen.toString())("aria-owns",un.autocompleteDisabled||!un.panelOpen||null==un.autocomplete?null:un.autocomplete.id)("aria-haspopup",un.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[T._Bn([Wt]),T.qOj]}),Ae})(),_n=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275mod=T.oAB({type:Ae}),Ae.\u0275inj=T.cJS({providers:[de],imports:[z.U8,t.Ng,t.BQ,F.ez,J.ZD,t.Ng,t.BQ]}),Ae})()},42673:(ot,et,v)=>{"use strict";v.d(et,{g:()=>k,k:()=>U});var d=v(94650),p=v(3238),b=v(12687),T=v(21281);let t=0;const A=(0,p.Id)(class{}),x="mat-badge-content";let U=(()=>{class D extends A{constructor(F,z,J,K,at){super(),this._ngZone=F,this._elementRef=z,this._ariaDescriber=J,this._renderer=K,this._animationMode=at,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(F){this._setColor(F),this._color=F}get overlap(){return this._overlap}set overlap(F){this._overlap=(0,T.Ig)(F)}get content(){return this._content}set content(F){this._updateRenderedContent(F)}get description(){return this._description}set description(F){this._updateHostAriaDescription(F)}get hidden(){return this._hidden}set hidden(F){this._hidden=(0,T.Ig)(F)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const F=this._renderer.createElement("span"),z="mat-badge-active";return F.setAttribute("id",`mat-badge-content-${this._id}`),F.setAttribute("aria-hidden","true"),F.classList.add(x),"NoopAnimations"===this._animationMode&&F.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(F),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{F.classList.add(z)})}):F.classList.add(z),F}_updateRenderedContent(F){const z=`${F??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(F){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),F&&this._ariaDescriber.describe(this._elementRef.nativeElement,F),this._description=F}_setColor(F){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),F&&z.add(`mat-badge-${F}`)}_clearExistingBadges(){const F=this._elementRef.nativeElement.querySelectorAll(`:scope > .${x}`);for(const z of Array.from(F))z!==this._badgeElement&&z.remove()}}return D.\u0275fac=function(F){return new(F||D)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(b.$s),d.Y36(d.Qsj),d.Y36(d.QbO,8))},D.\u0275dir=d.lG2({type:D,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(F,z){2&F&&d.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[d.qOj]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({imports:[b.rt,p.BQ,p.BQ]}),D})()},90811:(ot,et,v)=>{"use strict";v.d(et,{A9:()=>J,Yi:()=>at,vV:()=>ct});var d=v(12687),p=v(21281),b=v(95017),T=v(94650),t=v(24006),A=v(3238);const x=["button"],U=["*"],k=new T.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),D=new T.OlP("MatButtonToggleGroup"),P={provide:t.JU,useExisting:(0,T.Gpc)(()=>J),multi:!0};let F=0;class z{constructor(Dt,Pt){this.source=Dt,this.value=Pt}}let J=(()=>{class vt{constructor(Pt,zt){this._changeDetector=Pt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+F++,this.valueChange=new T.vpe,this.change=new T.vpe,this.appearance=zt&&zt.appearance?zt.appearance:"standard"}get name(){return this._name}set name(Pt){this._name=Pt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Pt){this._vertical=(0,p.Ig)(Pt)}get value(){const Pt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Pt.map(zt=>zt.value):Pt[0]?Pt[0].value:void 0}set value(Pt){this._setSelectionByValue(Pt),this.valueChange.emit(this.value)}get selected(){const Pt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Pt:Pt[0]||null}get multiple(){return this._multiple}set multiple(Pt){this._multiple=(0,p.Ig)(Pt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Pt){this._disabled=(0,p.Ig)(Pt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new b.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Pt=>Pt.checked))}writeValue(Pt){this.value=Pt,this._changeDetector.markForCheck()}registerOnChange(Pt){this._controlValueAccessorChangeFn=Pt}registerOnTouched(Pt){this._onTouched=Pt}setDisabledState(Pt){this.disabled=Pt}_emitChangeEvent(Pt){const zt=new z(Pt,this.value);this._controlValueAccessorChangeFn(zt.value),this.change.emit(zt)}_syncButtonToggle(Pt,zt,Vt=!1,it=!1){!this.multiple&&this.selected&&!Pt.checked&&(this.selected.checked=!1),this._selectionModel?zt?this._selectionModel.select(Pt):this._selectionModel.deselect(Pt):it=!0,it?Promise.resolve().then(()=>this._updateModelValue(Pt,Vt)):this._updateModelValue(Pt,Vt)}_isSelected(Pt){return this._selectionModel&&this._selectionModel.isSelected(Pt)}_isPrechecked(Pt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(zt=>null!=Pt.value&&zt===Pt.value):Pt.value===this._rawValue)}_setSelectionByValue(Pt){this._rawValue=Pt,this._buttonToggles&&(this.multiple&&Pt?(Array.isArray(Pt),this._clearSelection(),Pt.forEach(zt=>this._selectValue(zt))):(this._clearSelection(),this._selectValue(Pt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Pt=>Pt.checked=!1)}_selectValue(Pt){const zt=this._buttonToggles.find(Vt=>null!=Vt.value&&Vt.value===Pt);zt&&(zt.checked=!0,this._selectionModel.select(zt))}_updateModelValue(Pt,zt){zt&&this._emitChangeEvent(Pt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Pt=>Pt._markForCheck())}}return vt.\u0275fac=function(Pt){return new(Pt||vt)(T.Y36(T.sBO),T.Y36(k,8))},vt.\u0275dir=T.lG2({type:vt,selectors:[["mat-button-toggle-group"]],contentQueries:function(Pt,zt,Vt){if(1&Pt&&T.Suo(Vt,at,5),2&Pt){let it;T.iGM(it=T.CRH())&&(zt._buttonToggles=it)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Pt,zt){2&Pt&&(T.uIk("aria-disabled",zt.disabled),T.ekj("mat-button-toggle-vertical",zt.vertical)("mat-button-toggle-group-appearance-standard","standard"===zt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[T._Bn([P,{provide:D,useExisting:vt}])]}),vt})();const K=(0,A.Kr)(class{});let at=(()=>{class vt extends K{constructor(Pt,zt,Vt,it,Tt,At){super(),this._changeDetectorRef=zt,this._elementRef=Vt,this._focusMonitor=it,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T.vpe;const ft=Number(Tt);this.tabIndex=ft||0===ft?ft:null,this.buttonToggleGroup=Pt,this.appearance=At&&At.appearance?At.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Pt){this._appearance=Pt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Pt){const zt=(0,p.Ig)(Pt);zt!==this._checked&&(this._checked=zt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Pt){this._disabled=(0,p.Ig)(Pt)}ngOnInit(){const Pt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+F++,Pt&&(Pt._isPrechecked(this)?this.checked=!0:Pt._isSelected(this)!==this._checked&&Pt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Pt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Pt&&Pt._isSelected(this)&&Pt._syncButtonToggle(this,!1,!1,!0)}focus(Pt){this._buttonElement.nativeElement.focus(Pt)}_onButtonClick(){const Pt=!!this._isSingleSelector()||!this._checked;Pt!==this._checked&&(this._checked=Pt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new z(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return vt.\u0275fac=function(Pt){return new(Pt||vt)(T.Y36(D,8),T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(d.tE),T.$8M("tabindex"),T.Y36(k,8))},vt.\u0275cmp=T.Xpm({type:vt,selectors:[["mat-button-toggle"]],viewQuery:function(Pt,zt){if(1&Pt&&T.Gf(x,5),2&Pt){let Vt;T.iGM(Vt=T.CRH())&&(zt._buttonElement=Vt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Pt,zt){1&Pt&&T.NdJ("focus",function(){return zt.focus()}),2&Pt&&(T.uIk("aria-label",null)("aria-labelledby",null)("id",zt.id)("name",null),T.ekj("mat-button-toggle-standalone",!zt.buttonToggleGroup)("mat-button-toggle-checked",zt.checked)("mat-button-toggle-disabled",zt.disabled)("mat-button-toggle-appearance-standard","standard"===zt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[T.qOj],ngContentSelectors:U,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(Pt,zt){if(1&Pt&&(T.F$t(),T.TgZ(0,"button",0,1),T.NdJ("click",function(){return zt._onButtonClick()}),T.TgZ(2,"span",2),T.Hsn(3),T.qZA()(),T._UZ(4,"span",3)(5,"span",4)),2&Pt){const Vt=T.MAs(1);T.Q6J("id",zt.buttonId)("disabled",zt.disabled||null),T.uIk("tabindex",zt.disabled?-1:zt.tabIndex)("aria-pressed",zt.checked)("name",zt._getButtonName())("aria-label",zt.ariaLabel)("aria-labelledby",zt.ariaLabelledby),T.xp6(5),T.Q6J("matRippleTrigger",Vt)("matRippleDisabled",zt.disableRipple||zt.disabled)}},dependencies:[A.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),vt})(),ct=(()=>{class vt{}return vt.\u0275fac=function(Pt){return new(Pt||vt)},vt.\u0275mod=T.oAB({type:vt}),vt.\u0275inj=T.cJS({imports:[A.BQ,A.si,A.BQ]}),vt})()},4859:(ot,et,v)=>{"use strict";v.d(et,{lW:()=>D,ot:()=>F});var d=v(94650),p=v(3238),b=v(12687);const T=["mat-button",""],t=["*"],U=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],k=(0,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(z){this._elementRef=z}})));let D=(()=>{class z extends k{constructor(K,at,ct){super(K),this._focusMonitor=at,this._animationMode=ct,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const vt of U)this._hasHostAttributes(vt)&&this._getHostElement().classList.add(vt);K.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(K,at){K?this._focusMonitor.focusVia(this._getHostElement(),K,at):this._getHostElement().focus(at)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...K){return K.some(at=>this._getHostElement().hasAttribute(at))}}return z.\u0275fac=function(K){return new(K||z)(d.Y36(d.SBq),d.Y36(b.tE),d.Y36(d.QbO,8))},z.\u0275cmp=d.Xpm({type:z,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(K,at){if(1&K&&d.Gf(p.wG,5),2&K){let ct;d.iGM(ct=d.CRH())&&(at.ripple=ct.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(K,at){2&K&&(d.uIk("disabled",at.disabled||null),d.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)("mat-button-disabled",at.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[d.qOj],attrs:T,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(K,at){1&K&&(d.F$t(),d.TgZ(0,"span",0),d.Hsn(1),d.qZA(),d._UZ(2,"span",1)(3,"span",2)),2&K&&(d.xp6(2),d.ekj("mat-button-ripple-round",at.isRoundButton||at.isIconButton),d.Q6J("matRippleDisabled",at._isRippleDisabled())("matRippleCentered",at.isIconButton)("matRippleTrigger",at._getHostElement()))},dependencies:[p.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),F=(()=>{class z{}return z.\u0275fac=function(K){return new(K||z)},z.\u0275mod=d.oAB({type:z}),z.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),z})()},73546:(ot,et,v)=>{"use strict";v.d(et,{$j:()=>P,C1:()=>Vt,G2:()=>J,QW:()=>it,a8:()=>Pt,dk:()=>zt,dn:()=>k,hq:()=>F,n5:()=>D,nc:()=>at});var d=v(94650),p=v(3238);const b=["*",[["mat-card-footer"]]],T=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],A=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],x=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],U=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let k=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Tt})(),D=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Tt})(),P=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Tt})(),F=(()=>{class Tt{constructor(){this.align="start"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("mat-card-actions-align-end","end"===Et.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Tt})(),J=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Tt})(),at=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Tt})(),Pt=(()=>{class Tt{constructor(ft){this._animationMode=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(d.Y36(d.QbO,8))},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode)},exportAs:["matCard"],ngContentSelectors:T,decls:2,vars:0,template:function(ft,Et){1&ft&&(d.F$t(b),d.Hsn(0),d.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Tt})(),zt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:A,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ft,Et){1&ft&&(d.F$t(t),d.Hsn(0),d.TgZ(1,"div",0),d.Hsn(2,1),d.qZA(),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:U,decls:4,vars:0,template:function(ft,Et){1&ft&&(d.F$t(x),d.TgZ(0,"div"),d.Hsn(1),d.qZA(),d.Hsn(2,1),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Tt})(),it=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),Tt})()},56709:(ot,et,v)=>{"use strict";v.d(et,{e_:()=>zt,oG:()=>Dt,p9:()=>it});var d=v(12687),p=v(21281),b=v(94650),T=v(24006),t=v(3238),A=v(49643);const x=["input"],U=["label"],k=function(Tt){return{enterDuration:Tt}},D=["*"],P=new b.OlP("mat-checkbox-default-options",{providedIn:"root",factory:F});function F(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const J=F(),K={provide:T.JU,useExisting:(0,b.Gpc)(()=>Dt),multi:!0};class at{}const ct=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Tt){this._elementRef=Tt}}))));let vt=(()=>{class Tt extends ct{constructor(ft,Et,Bt,Ft,se,Gt,ve){super(Et),this._changeDetectorRef=Bt,this._ngZone=Ft,this._animationMode=Gt,this._options=ve,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new b.vpe,this.indeterminateChange=new b.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||J,this.color=this.defaultColor=this._options.color||J.color,this.tabIndex=parseInt(se)||0,this.id=this._uniqueId=`${ft}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ft){this._required=(0,p.Ig)(ft)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ft){const Et=(0,p.Ig)(ft);Et!=this.checked&&(this._checked=Et,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ft){const Et=(0,p.Ig)(ft);Et!==this.disabled&&(this._disabled=Et,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ft){const Et=ft!=this._indeterminate;this._indeterminate=(0,p.Ig)(ft),Et&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ft){this.checked=!!ft}registerOnChange(ft){this._controlValueAccessorChangeFn=ft}registerOnTouched(ft){this._onTouched=ft}setDisabledState(ft){this.disabled=ft}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ft){let Et=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Et!==ft&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Et,ft),this._currentCheckState=ft,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const Ft=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(Ft)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ft=this._options?.clickAction;this.disabled||"noop"===ft?!this.disabled&&"noop"===ft&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ft&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ft){ft.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ft,Et){if("NoopAnimations"===this._animationMode)return"";switch(ft){case 0:if(1===Et)return this._animationClasses.uncheckedToChecked;if(3==Et)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Et?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Et?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Et?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ft){const Et=this._inputElement;Et&&(Et.nativeElement.indeterminate=ft)}}return Tt.\u0275fac=function(ft){b.$Z()},Tt.\u0275dir=b.lG2({type:Tt,viewQuery:function(ft,Et){if(1&ft&&(b.Gf(x,5),b.Gf(U,5),b.Gf(t.wG,5)),2&ft){let Bt;b.iGM(Bt=b.CRH())&&(Et._inputElement=Bt.first),b.iGM(Bt=b.CRH())&&(Et._labelElement=Bt.first),b.iGM(Bt=b.CRH())&&(Et.ripple=Bt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[b.qOj]}),Tt})(),Dt=(()=>{class Tt extends vt{constructor(ft,Et,Bt,Ft,se,Gt,ve){super("mat-checkbox-",ft,Et,Ft,se,Gt,ve),this._focusMonitor=Bt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ft){const Et=new at;return Et.source=this,Et.checked=ft,Et}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ft=>{ft||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ft){ft.stopPropagation(),super._handleInputClick()}focus(ft,Et){ft?this._focusMonitor.focusVia(this._inputElement,ft,Et):this._inputElement.nativeElement.focus(Et)}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(d.tE),b.Y36(b.R0b),b.$8M("tabindex"),b.Y36(b.QbO,8),b.Y36(P,8))},Tt.\u0275cmp=b.Xpm({type:Tt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ft,Et){2&ft&&(b.Ikx("id",Et.id),b.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),b.ekj("mat-checkbox-indeterminate",Et.indeterminate)("mat-checkbox-checked",Et.checked)("mat-checkbox-disabled",Et.disabled)("mat-checkbox-label-before","before"==Et.labelPosition)("_mat-animation-noopable","NoopAnimations"===Et._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[b._Bn([K]),b.qOj],ngContentSelectors:D,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ft,Et){if(1&ft&&(b.F$t(),b.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),b.NdJ("change",function(Ft){return Et._onInteractionEvent(Ft)})("click",function(Ft){return Et._onInputClick(Ft)}),b.qZA(),b.TgZ(5,"span",5),b._UZ(6,"span",6),b.qZA(),b._UZ(7,"span",7),b.TgZ(8,"span",8),b.O4$(),b.TgZ(9,"svg",9),b._UZ(10,"path",10),b.qZA(),b.kcU(),b._UZ(11,"span",11),b.qZA()(),b.TgZ(12,"span",12,13),b.NdJ("cdkObserveContent",function(){return Et._onLabelTextChange()}),b.TgZ(14,"span",14),b._uU(15,"\xa0"),b.qZA(),b.Hsn(16),b.qZA()()),2&ft){const Bt=b.MAs(1),Ft=b.MAs(13);b.uIk("for",Et.inputId),b.xp6(2),b.ekj("mat-checkbox-inner-container-no-side-margin",!Ft.textContent||!Ft.textContent.trim()),b.xp6(1),b.Q6J("id",Et.inputId)("required",Et.required)("checked",Et.checked)("disabled",Et.disabled)("tabIndex",Et.tabIndex),b.uIk("value",Et.value)("name",Et.name)("aria-label",Et.ariaLabel||null)("aria-labelledby",Et.ariaLabelledby)("aria-checked",Et._getAriaChecked())("aria-describedby",Et.ariaDescribedby),b.xp6(2),b.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Et._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",b.VKq(19,k,"NoopAnimations"===Et._animationMode?0:150))}},dependencies:[t.wG,A.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Tt})();const Pt={provide:T.Cf,useExisting:(0,b.Gpc)(()=>zt),multi:!0};let zt=(()=>{class Tt extends T.Zs{}return Tt.\u0275fac=function(){let At;return function(Et){return(At||(At=b.n5z(Tt)))(Et||Tt)}}(),Tt.\u0275dir=b.lG2({type:Tt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[b._Bn([Pt]),b.qOj]}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=b.oAB({type:Tt}),Tt.\u0275inj=b.cJS({}),Tt})(),it=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=b.oAB({type:Tt}),Tt.\u0275inj=b.cJS({imports:[t.si,t.BQ,A.Q8,Vt,t.BQ,Vt]}),Tt})()},3238:(ot,et,v)=>{"use strict";v.d(et,{yN:()=>vt,mZ:()=>Dt,_A:()=>Le,rD:()=>re,sG:()=>qe,Ad:()=>ve,K7:()=>Sn,HF:()=>oe,Y2:()=>ne,BQ:()=>Vt,X2:()=>De,uc:()=>Ae,XK:()=>de,ey:()=>Bn,Ng:()=>fn,rN:()=>ho,nP:()=>kt,us:()=>Jt,wG:()=>lt,si:()=>nt,IR:()=>si,CB:()=>jn,jH:()=>Ye,pj:()=>Et,Kr:()=>Bt,Id:()=>ft,FD:()=>se,dB:()=>Gt,sb:()=>Ft,E0:()=>on});var d=v(94650),p=v(12687),b=v(40445),t=v(36895),A=v(83353),x=v(21281),U=v(56498),k=v(8929),D=v(1059),P=v(29521);function J(ze,We){if(1&ze&&d._UZ(0,"mat-pseudo-checkbox",4),2&ze){const en=d.oxw();d.Q6J("state",en.selected?"checked":"unchecked")("disabled",en.disabled)}}function K(ze,We){if(1&ze&&(d.TgZ(0,"span",5),d._uU(1),d.qZA()),2&ze){const en=d.oxw();d.xp6(1),d.hij("(",en.group.label,")")}}const at=["*"];let vt=(()=>{class ze{}return ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ze})(),Dt=(()=>{class ze{}return ze.COMPLEX="375ms",ze.ENTERING="225ms",ze.EXITING="195ms",ze})();const zt=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function Pt(){return!0}});let Vt=(()=>{class ze{constructor(en,le,Ge){this._sanityChecks=le,this._document=Ge,this._hasDoneGlobalChecks=!1,en._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(en){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[en])}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(p.qm),d.LFG(zt,8),d.LFG(t.K0))},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[b.vT,b.vT]}),ze})();function ft(ze){return class extends ze{constructor(...We){super(...We),this._disabled=!1}get disabled(){return this._disabled}set disabled(We){this._disabled=(0,x.Ig)(We)}}}function Et(ze,We){return class extends ze{constructor(...en){super(...en),this.defaultColor=We,this.color=We}get color(){return this._color}set color(en){const le=en||this.defaultColor;le!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),le&&this._elementRef.nativeElement.classList.add(`mat-${le}`),this._color=le)}}}function Bt(ze){return class extends ze{constructor(...We){super(...We),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(We){this._disableRipple=(0,x.Ig)(We)}}}function Ft(ze,We=0){return class extends ze{constructor(...en){super(...en),this._tabIndex=We,this.defaultTabIndex=We}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(en){this._tabIndex=null!=en?(0,x.su)(en):this.defaultTabIndex}}}function se(ze){return class extends ze{constructor(...We){super(...We),this.errorState=!1}updateErrorState(){const We=this.errorState,Lt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Lt!==We&&(this.errorState=Lt,this.stateChanges.next())}}}function Gt(ze){return class extends ze{constructor(...We){super(...We),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new U.y(en=>{this._isInitialized?this._notifySubscriber(en):this._pendingSubscribers.push(en)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(We){We.next(),We.complete()}}}const ve=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function be(){return(0,d.f3M)(d.soG)}});class Le{constructor(){this._localeChanges=new k.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(We){return this.isDateInstance(We)&&this.isValid(We)?We:null}deserialize(We){return null==We||this.isDateInstance(We)&&this.isValid(We)?We:this.invalid()}setLocale(We){this.locale=We,this._localeChanges.next()}compareDate(We,en){return this.getYear(We)-this.getYear(en)||this.getMonth(We)-this.getMonth(en)||this.getDate(We)-this.getDate(en)}sameDate(We,en){if(We&&en){let le=this.isValid(We),Ge=this.isValid(en);return le&&Ge?!this.compareDate(We,en):le==Ge}return We==en}clampDate(We,en,le){return en&&this.compareDate(We,en)<0?en:le&&this.compareDate(We,le)>0?le:We}}const qe=new d.OlP("mat-date-formats"),$e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Xt(ze,We){const en=Array(ze);for(let le=0;le{class ze extends Le{constructor(en,le){super(),this.useUtcForDisplay=!1,super.setLocale(en)}getYear(en){return en.getFullYear()}getMonth(en){return en.getMonth()}getDate(en){return en.getDate()}getDayOfWeek(en){return en.getDay()}getMonthNames(en){const le=new Intl.DateTimeFormat(this.locale,{month:en,timeZone:"utc"});return Xt(12,Ge=>this._format(le,new Date(2017,Ge,1)))}getDateNames(){const en=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Xt(31,le=>this._format(en,new Date(2017,0,le+1)))}getDayOfWeekNames(en){const le=new Intl.DateTimeFormat(this.locale,{weekday:en,timeZone:"utc"});return Xt(7,Ge=>this._format(le,new Date(2017,0,Ge+1)))}getYearName(en){const le=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(le,en)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(en){return this.getDate(this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+1,0))}clone(en){return new Date(en.getTime())}createDate(en,le,Ge){let Lt=this._createDateWithOverflow(en,le,Ge);return Lt.getMonth(),Lt}today(){return new Date}parse(en,le){return"number"==typeof en?new Date(en):en?new Date(Date.parse(en)):null}format(en,le){if(!this.isValid(en))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ge=new Intl.DateTimeFormat(this.locale,{...le,timeZone:"utc"});return this._format(Ge,en)}addCalendarYears(en,le){return this.addCalendarMonths(en,12*le)}addCalendarMonths(en,le){let Ge=this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+le,this.getDate(en));return this.getMonth(Ge)!=((this.getMonth(en)+le)%12+12)%12&&(Ge=this._createDateWithOverflow(this.getYear(Ge),this.getMonth(Ge),0)),Ge}addCalendarDays(en,le){return this._createDateWithOverflow(this.getYear(en),this.getMonth(en),this.getDate(en)+le)}toIso8601(en){return[en.getUTCFullYear(),this._2digit(en.getUTCMonth()+1),this._2digit(en.getUTCDate())].join("-")}deserialize(en){if("string"==typeof en){if(!en)return null;if($e.test(en)){let le=new Date(en);if(this.isValid(le))return le}}return super.deserialize(en)}isDateInstance(en){return en instanceof Date}isValid(en){return!isNaN(en.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(en,le,Ge){const Lt=new Date;return Lt.setFullYear(en,le,Ge),Lt.setHours(0,0,0,0),Lt}_2digit(en){return("00"+en).slice(-2)}_format(en,le){const Ge=new Date;return Ge.setUTCFullYear(le.getFullYear(),le.getMonth(),le.getDate()),Ge.setUTCHours(le.getHours(),le.getMinutes(),le.getSeconds(),le.getMilliseconds()),en.format(Ge)}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(ve,8),d.LFG(A.t4))},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const ae={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Kt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:Le,useClass:Te}]}),ze})(),de=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:qe,useValue:ae}],imports:[Kt]}),ze})(),re=(()=>{class ze{isErrorState(en,le){return!!(en&&en.invalid&&(en.touched||le&&le.submitted))}}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),De=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})();function on(ze,We,en="mat"){ze.changes.pipe((0,D.O)(ze)).subscribe(({length:le})=>{_n(We,`${en}-2-line`,!1),_n(We,`${en}-3-line`,!1),_n(We,`${en}-multi-line`,!1),2===le||3===le?_n(We,`${en}-${le}-line`,!0):le>3&&_n(We,`${en}-multi-line`,!0)})}function _n(ze,We,en){ze.nativeElement.classList.toggle(We,en)}let Ae=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})();class gn{constructor(We,en,le,Ge=!1){this._renderer=We,this.element=en,this.config=le,this._animationForciblyDisabledThroughCss=Ge,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const we={enterDuration:225,exitDuration:150},Un=(0,A.i$)({passive:!0}),oi=["mousedown","touchstart"],vi=["mouseup","mouseleave","touchend","touchcancel"];class si{constructor(We,en,le,Ge){this._target=We,this._ngZone=en,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ge.isBrowser&&(this._containerElement=(0,x.fI)(le))}fadeInRipple(We,en,le={}){const Ge=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Lt={...we,...le.animation};le.centered&&(We=Ge.left+Ge.width/2,en=Ge.top+Ge.height/2);const wt=le.radius||function Ke(ze,We,en){const le=Math.max(Math.abs(ze-en.left),Math.abs(ze-en.right)),Ge=Math.max(Math.abs(We-en.top),Math.abs(We-en.bottom));return Math.sqrt(le*le+Ge*Ge)}(We,en,Ge),Ot=We-Ge.left,ye=en-Ge.top,Xe=Lt.enterDuration,Ne=document.createElement("div");Ne.classList.add("mat-ripple-element"),Ne.style.left=Ot-wt+"px",Ne.style.top=ye-wt+"px",Ne.style.height=2*wt+"px",Ne.style.width=2*wt+"px",null!=le.color&&(Ne.style.backgroundColor=le.color),Ne.style.transitionDuration=`${Xe}ms`,this._containerElement.appendChild(Ne);const Tn=window.getComputedStyle(Ne),Re=Tn.transitionDuration,En="none"===Tn.transitionProperty||"0s"===Re||"0s, 0s"===Re,gi=new gn(this,Ne,le,En);Ne.style.transform="scale3d(1, 1, 1)",gi.state=0,le.persistent||(this._mostRecentTransientRipple=gi);let go=null;return!En&&(Xe||Lt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _o=()=>this._finishRippleTransition(gi),mn=()=>this._destroyRipple(gi);Ne.addEventListener("transitionend",_o),Ne.addEventListener("transitioncancel",mn),go={onTransitionEnd:_o,onTransitionCancel:mn}}),this._activeRipples.set(gi,go),(En||!Xe)&&this._finishRippleTransition(gi),gi}fadeOutRipple(We){if(2===We.state||3===We.state)return;const en=We.element,le={...we,...We.config.animation};en.style.transitionDuration=`${le.exitDuration}ms`,en.style.opacity="0",We.state=2,(We._animationForciblyDisabledThroughCss||!le.exitDuration)&&this._finishRippleTransition(We)}fadeOutAll(){this._getActiveRipples().forEach(We=>We.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(We=>{We.config.persistent||We.fadeOut()})}setupTriggerEvents(We){const en=(0,x.fI)(We);!en||en===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=en,this._registerEvents(oi))}handleEvent(We){"mousedown"===We.type?this._onMousedown(We):"touchstart"===We.type?this._onTouchStart(We):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vi),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(We){0===We.state?this._startFadeOutTransition(We):2===We.state&&this._destroyRipple(We)}_startFadeOutTransition(We){const en=We===this._mostRecentTransientRipple,{persistent:le}=We.config;We.state=1,!le&&(!en||!this._isPointerDown)&&We.fadeOut()}_destroyRipple(We){const en=this._activeRipples.get(We)??null;this._activeRipples.delete(We),this._activeRipples.size||(this._containerRect=null),We===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),We.state=3,null!==en&&(We.element.removeEventListener("transitionend",en.onTransitionEnd),We.element.removeEventListener("transitioncancel",en.onTransitionCancel)),We.element.remove()}_onMousedown(We){const en=(0,p.X6)(We),le=this._lastTouchStartEvent&&Date.now(){!We.config.persistent&&(1===We.state||We.config.terminateOnPointerUp&&0===We.state)&&We.fadeOut()}))}_registerEvents(We){this._ngZone.runOutsideAngular(()=>{We.forEach(en=>{this._triggerElement.addEventListener(en,this,Un)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(oi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Un)}),this._pointerUpEventsRegistered&&vi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Un)}))}}const ne=new d.OlP("mat-ripple-global-options");let lt=(()=>{class ze{constructor(en,le,Ge,Lt,wt){this._elementRef=en,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Lt||{},this._rippleRenderer=new si(this,le,en,Ge)}get disabled(){return this._disabled}set disabled(en){en&&this.fadeOutAllNonPersistent(),this._disabled=en,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(en){this._trigger=en,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(en,le=0,Ge){return"number"==typeof en?this._rippleRenderer.fadeInRipple(en,le,{...this.rippleConfig,...Ge}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...en})}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(A.t4),d.Y36(ne,8),d.Y36(d.QbO,8))},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(en,le){2&en&&d.ekj("mat-ripple-unbounded",le.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ze})(),nt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})(),kt=(()=>{class ze{constructor(en){this._animationMode=en,this.state="unchecked",this.disabled=!1}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.QbO,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(en,le){2&en&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===le.state)("mat-pseudo-checkbox-checked","checked"===le.state)("mat-pseudo-checkbox-disabled",le.disabled)("_mat-animation-noopable","NoopAnimations"===le._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(en,le){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),ze})(),Jt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt]}),ze})();const oe=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),Sn=new d.OlP("MatOptgroup");let Li=0;class ho{constructor(We,en=!1){this.source=We,this.isUserInput=en}}let fi=(()=>{class ze{constructor(en,le,Ge,Lt){this._element=en,this._changeDetectorRef=le,this._parent=Ge,this.group=Lt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Li++,this.onSelectionChange=new d.vpe,this._stateChanges=new k.xQ}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(en){this._disabled=(0,x.Ig)(en)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(en,le){const Ge=this._getHostElement();"function"==typeof Ge.focus&&Ge.focus(le)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(en){(en.keyCode===P.K5||en.keyCode===P.L_)&&!(0,P.Vb)(en)&&(this._selectViaInteraction(),en.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const en=this.viewValue;en!==this._mostRecentViewValue&&(this._mostRecentViewValue=en,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(en=!1){this.onSelectionChange.emit(new ho(this,en))}}return ze.\u0275fac=function(en){d.$Z()},ze.\u0275dir=d.lG2({type:ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})(),Bn=(()=>{class ze extends fi{constructor(en,le,Ge,Lt){super(en,le,Ge,Lt)}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(oe,8),d.Y36(Sn,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(en,le){1&en&&d.NdJ("click",function(){return le._selectViaInteraction()})("keydown",function(Lt){return le._handleKeydown(Lt)}),2&en&&(d.Ikx("id",le.id),d.uIk("tabindex",le._getTabIndex())("aria-selected",le._getAriaSelected())("aria-disabled",le.disabled.toString()),d.ekj("mat-selected",le.selected)("mat-option-multiple",le.multiple)("mat-active",le.active)("mat-option-disabled",le.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:at,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(en,le){1&en&&(d.F$t(),d.YNc(0,J,1,2,"mat-pseudo-checkbox",0),d.TgZ(1,"span",1),d.Hsn(2),d.qZA(),d.YNc(3,K,2,1,"span",2),d._UZ(4,"div",3)),2&en&&(d.Q6J("ngIf",le.multiple),d.xp6(3),d.Q6J("ngIf",le.group&&le.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",le._getHostElement())("matRippleDisabled",le.disabled||le.disableRipple))},dependencies:[lt,t.O5,kt],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-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-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),ze})();function jn(ze,We,en){if(en.length){let le=We.toArray(),Ge=en.toArray(),Lt=0;for(let wt=0;wten+le?Math.max(0,ze-le+We):en}let fn=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[nt,t.ez,Vt,Jt]}),ze})()},99602:(ot,et,v)=>{"use strict";v.d(et,{C0:()=>Un,E2:()=>en,FA:()=>He,Lv:()=>wt,Mq:()=>Ne,S8:()=>De,Uu:()=>Ge,hl:()=>go,nW:()=>mn});var d=v(12687),p=v(98184),b=v(84080),T=v(36895),t=v(94650),A=v(4859),x=v(67376),U=v(3238),k=v(8929),D=v(42654),P=v(36787),F=v(21086),z=v(29521),J=v(40445),K=v(72986),at=v(1059),ct=v(92198),vt=v(21281),Dt=v(83353),Pt=v(37340),zt=v(24006),Vt=v(59549),it=v(284);const Tt=["mat-calendar-body",""];function At(Me,dn){if(1&Me&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Me){const tt=t.oxw();t.xp6(1),t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt.numCols),t.xp6(1),t.hij(" ",tt.label," ")}}function ft(Me,dn){if(1&Me&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Me){const tt=t.oxw(2);t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt._firstRowOffset),t.xp6(1),t.hij(" ",tt._firstRowOffset>=tt.labelMinRequiredCells?tt.label:""," ")}}function Et(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._cellClicked(Be,Q))})("focus",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._emitActiveDateChange(Be,Q))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Me){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw().index,Nt=t.oxw();t.Udp("width",Nt._cellWidth)("padding-top",Nt._cellPadding)("padding-bottom",Nt._cellPadding),t.uIk("data-mat-row",Q)("data-mat-col",Rt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!tt.enabled)("mat-calendar-body-active",Nt._isActiveCell(Q,Rt))("mat-calendar-body-range-start",Nt._isRangeStart(tt.compareValue))("mat-calendar-body-range-end",Nt._isRangeEnd(tt.compareValue))("mat-calendar-body-in-range",Nt._isInRange(tt.compareValue))("mat-calendar-body-comparison-bridge-start",Nt._isComparisonBridgeStart(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-bridge-end",Nt._isComparisonBridgeEnd(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-start",Nt._isComparisonStart(tt.compareValue))("mat-calendar-body-comparison-end",Nt._isComparisonEnd(tt.compareValue))("mat-calendar-body-in-comparison-range",Nt._isInComparisonRange(tt.compareValue))("mat-calendar-body-preview-start",Nt._isPreviewStart(tt.compareValue))("mat-calendar-body-preview-end",Nt._isPreviewEnd(tt.compareValue))("mat-calendar-body-in-preview",Nt._isInPreview(tt.compareValue)),t.Q6J("ngClass",tt.cssClasses)("tabindex",Nt._isActiveCell(Q,Rt)?0:-1),t.uIk("aria-label",tt.ariaLabel)("aria-disabled",!tt.enabled||null)("aria-pressed",Nt._isSelected(tt.compareValue))("aria-current",Nt.todayValue===tt.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Nt._isSelected(tt.compareValue))("mat-calendar-body-comparison-identical",Nt._isComparisonIdentical(tt.compareValue))("mat-calendar-body-today",Nt.todayValue===tt.compareValue),t.xp6(1),t.hij(" ",tt.displayValue," ")}}function Bt(Me,dn){if(1&Me&&(t.TgZ(0,"tr",4),t.YNc(1,ft,2,6,"td",5),t.YNc(2,Et,5,47,"td",6),t.qZA()),2&Me){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Rt&&Q._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",tt)}}function Ft(Me,dn){if(1&Me&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Me){const tt=dn.$implicit;t.xp6(2),t.Oqu(tt.long),t.xp6(2),t.Oqu(tt.narrow)}}const se=["*"];function Gt(Me,dn){}function ve(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt.activeDate=Q)})("_userSelection",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._dateSelected(Q))}),t.qZA()}if(2&Me){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)("comparisonStart",tt.comparisonStart)("comparisonEnd",tt.comparisonEnd)}}function be(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt.activeDate=Q)})("monthSelected",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._monthSelectedInYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._goToDateInView(Q,"month"))}),t.qZA()}if(2&Me){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function Le(Me,dn){if(1&Me){const tt=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt.activeDate=Q)})("yearSelected",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._yearSelectedInMultiYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Nt=t.oxw();return t.KtG(Nt._goToDateInView(Q,"year"))}),t.qZA()}if(2&Me){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function qe(Me,dn){}const $e=["button"];function Xt(Me,dn){1&Me&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],ae=["[matDatepickerToggleIcon]"];let De=(()=>{class Me{constructor(){this.changes=new k.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(tt,Rt){return`${tt} \u2013 ${Rt}`}formatYearRangeLabel(tt,Rt){return`${tt} to ${Rt}`}}return Me.\u0275fac=function(tt){return new(tt||Me)},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();class on{constructor(dn,tt,Rt,Q,Nt={},Be=dn,Rn){this.value=dn,this.displayValue=tt,this.ariaLabel=Rt,this.enabled=Q,this.cssClasses=Nt,this.compareValue=Be,this.rawValue=Rn}}let _n=(()=>{class Me{constructor(tt,Rt){this._elementRef=tt,this._ngZone=Rt,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=Q=>{if(this._skipNextFocus&&"focus"===Q.type)this._skipNextFocus=!1;else if(Q.target&&this.isRange){const Nt=this._getCellFromElement(Q.target);Nt&&this._ngZone.run(()=>this.previewChange.emit({value:Nt.enabled?Nt:null,event:Q}))}},this._leaveHandler=Q=>{null!==this.previewEnd&&this.isRange&&Q.target&&this._getCellFromElement(Q.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Q}))},Rt.runOutsideAngular(()=>{const Q=tt.nativeElement;Q.addEventListener("mouseenter",this._enterHandler,!0),Q.addEventListener("focus",this._enterHandler,!0),Q.addEventListener("mouseleave",this._leaveHandler,!0),Q.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(tt,Rt){tt.enabled&&this.selectedValueChange.emit({value:tt.value,event:Rt})}_emitActiveDateChange(tt,Rt){tt.enabled&&this.activeDateChange.emit({value:tt.value,event:Rt})}_isSelected(tt){return this.startValue===tt||this.endValue===tt}ngOnChanges(tt){const Rt=tt.numCols,{rows:Q,numCols:Nt}=this;(tt.rows||Rt)&&(this._firstRowOffset=Q&&Q.length&&Q[0].length?Nt-Q[0].length:0),(tt.cellAspectRatio||Rt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Nt+"%"),(Rt||!this._cellWidth)&&(this._cellWidth=100/Nt+"%")}ngOnDestroy(){const tt=this._elementRef.nativeElement;tt.removeEventListener("mouseenter",this._enterHandler,!0),tt.removeEventListener("focus",this._enterHandler,!0),tt.removeEventListener("mouseleave",this._leaveHandler,!0),tt.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(tt,Rt){let Q=tt*this.numCols+Rt;return tt&&(Q-=this._firstRowOffset),Q==this.activeCell}_focusActiveCell(tt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>{setTimeout(()=>{const Rt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Rt&&(tt||(this._skipNextFocus=!0),Rt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(tt){return gn(tt,this.startValue,this.endValue)}_isRangeEnd(tt){return we(tt,this.startValue,this.endValue)}_isInRange(tt){return un(tt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(tt){return gn(tt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(tt,Rt,Q){if(!this._isComparisonStart(tt)||this._isRangeStart(tt)||!this._isInRange(tt))return!1;let Nt=this.rows[Rt][Q-1];if(!Nt){const Be=this.rows[Rt-1];Nt=Be&&Be[Be.length-1]}return Nt&&!this._isRangeEnd(Nt.compareValue)}_isComparisonBridgeEnd(tt,Rt,Q){if(!this._isComparisonEnd(tt)||this._isRangeEnd(tt)||!this._isInRange(tt))return!1;let Nt=this.rows[Rt][Q+1];if(!Nt){const Be=this.rows[Rt+1];Nt=Be&&Be[0]}return Nt&&!this._isRangeStart(Nt.compareValue)}_isComparisonEnd(tt){return we(tt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(tt){return un(tt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(tt){return this.comparisonStart===this.comparisonEnd&&tt===this.comparisonStart}_isPreviewStart(tt){return gn(tt,this.previewStart,this.previewEnd)}_isPreviewEnd(tt){return we(tt,this.previewStart,this.previewEnd)}_isInPreview(tt){return un(tt,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(tt){let Rt;if(Ae(tt)?Rt=tt:Ae(tt.parentNode)&&(Rt=tt.parentNode),Rt){const Q=Rt.getAttribute("data-mat-row"),Nt=Rt.getAttribute("data-mat-col");if(Q&&Nt)return this.rows[parseInt(Q)][parseInt(Nt)]}return null}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(t.R0b))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:Tt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(tt,Rt){1&tt&&(t.YNc(0,At,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&tt&&(t.Q6J("ngIf",Rt._firstRowOffset=dn&&Me===tt}function un(Me,dn,tt,Rt){return Rt&&null!==dn&&null!==tt&&dn!==tt&&Me>=dn&&Me<=tt}class Un{constructor(dn,tt){this.start=dn,this.end=tt}}let oi=(()=>{class Me{constructor(tt,Rt){this.selection=tt,this._adapter=Rt,this._selectionChanged=new k.xQ,this.selectionChanged=this._selectionChanged,this.selection=tt}updateSelection(tt,Rt){const Q=this.selection;this.selection=tt,this._selectionChanged.next({selection:tt,source:Rt,oldValue:Q})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(tt){return this._adapter.isDateInstance(tt)&&this._adapter.isValid(tt)}}return Me.\u0275fac=function(tt){t.$Z()},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),vi=(()=>{class Me extends oi{constructor(tt){super(null,tt)}add(tt){super.updateSelection(tt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const tt=new Me(this._adapter);return tt.updateSelection(this.selection,this),tt}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.LFG(U._A))},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const ne={provide:oi,deps:[[new t.FiY,new t.tp0,oi],U._A],useFactory:function Ke(Me,dn){return Me||new vi(dn)}},kt=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Dn=(()=>{class Me{constructor(tt,Rt,Q,Nt,Be){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Nt,this._rangeStrategy=Be,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(tt){const Rt=this._activeDate,Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._hasSameMonthAndYear(Rt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnChanges(tt){const Rt=tt.comparisonStart||tt.comparisonEnd;Rt&&!Rt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(tt){const Rt=tt.value,Q=this._getDateFromDayOfMonth(Rt);let Nt,Be;this._selected instanceof Un?(Nt=this._getDateInCurrentMonth(this._selected.start),Be=this._getDateInCurrentMonth(this._selected.end)):Nt=Be=this._getDateInCurrentMonth(this._selected),(Nt!==Rt||Be!==Rt)&&this.selectedChange.emit(Q),this._userSelection.emit({value:Q,event:tt.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=tt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=tt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&tt.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(tt)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:tt}),tt.preventDefault(),tt.stopPropagation()));default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let tt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(tt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(tt){this._matCalendarBody._focusActiveCell(tt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:tt,value:Rt}){if(this._rangeStrategy){const Nt=this._rangeStrategy.createPreview(Rt?Rt.rawValue:null,this.selected,tt);this._previewStart=this._getCellCompareValue(Nt.start),this._previewEnd=this._getCellCompareValue(Nt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(tt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),tt)}_initWeekdays(){const tt=this._dateAdapter.getFirstDayOfWeek(),Rt=this._dateAdapter.getDayOfWeekNames("narrow");let Nt=this._dateAdapter.getDayOfWeekNames("long").map((Be,Rn)=>({long:Be,narrow:Rt[Rn]}));this._weekdays=Nt.slice(tt).concat(Nt.slice(0,tt))}_createWeekCells(){const tt=this._dateAdapter.getNumDaysInMonth(this.activeDate),Rt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Q=0,Nt=this._firstWeekOffset;Q=0)&&(!this.maxDate||this._dateAdapter.compareDate(tt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(tt))}_getDateInCurrentMonth(tt){return tt&&this._hasSameMonthAndYear(tt,this.activeDate)?this._dateAdapter.getDate(tt):null}_hasSameMonthAndYear(tt,Rt){return!(!tt||!Rt||this._dateAdapter.getMonth(tt)!=this._dateAdapter.getMonth(Rt)||this._dateAdapter.getYear(tt)!=this._dateAdapter.getYear(Rt))}_getCellCompareValue(tt){if(tt){const Rt=this._dateAdapter.getYear(tt),Q=this._dateAdapter.getMonth(tt),Nt=this._dateAdapter.getDate(tt);return new Date(Rt,Q,Nt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(tt){tt instanceof Un?(this._rangeStart=this._getCellCompareValue(tt.start),this._rangeEnd=this._getCellCompareValue(tt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(tt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(tt){return!this.dateFilter||this.dateFilter(tt)}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.sBO),t.Y36(U.sG,8),t.Y36(U._A,8),t.Y36(J.Is,8),t.Y36(kt,8))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-month-view"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(_n,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._matCalendarBody=Q.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(tt,Rt){1&tt&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,Ft,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(Nt){return Rt._dateSelected(Nt)})("activeDateChange",function(Nt){return Rt._updateActiveDate(Nt)})("previewChange",function(Nt){return Rt._previewChanged(Nt)})("keyup",function(Nt){return Rt._handleCalendarBodyKeyup(Nt)})("keydown",function(Nt){return Rt._handleCalendarBodyKeydown(Nt)}),t.qZA()()),2&tt&&(t.xp6(3),t.Q6J("ngForOf",Rt._weekdays),t.xp6(3),t.Q6J("label",Rt._monthLabel)("rows",Rt._weeks)("todayValue",Rt._todayDate)("startValue",Rt._rangeStart)("endValue",Rt._rangeEnd)("comparisonStart",Rt._comparisonRangeStart)("comparisonEnd",Rt._comparisonRangeEnd)("previewStart",Rt._previewStart)("previewEnd",Rt._previewEnd)("isRange",Rt._isRange)("labelMinRequiredCells",3)("activeCell",Rt._dateAdapter.getDate(Rt.activeDate)-1))},dependencies:[T.sg,_n],encapsulation:2,changeDetection:0}),Me})(),Li=(()=>{class Me{constructor(tt,Rt,Q){this._changeDetectorRef=tt,this._dateAdapter=Rt,this._dir=Q,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),ho(this._dateAdapter,Rt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedYear(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Rt=this._dateAdapter.getYear(this._activeDate)-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Q=0,Nt=[];Q<24;Q++)Nt.push(Rt+Q),4==Nt.length&&(this._years.push(Nt.map(Be=>this._createCellForYear(Be))),Nt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(Rt,0,1),Nt=this._getDateFromYear(Rt);this.yearSelected.emit(Q),this.selectedChange.emit(Nt)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromYear(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?-240:-24);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?240:24);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_getActiveCell(){return fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(tt){const Rt=this._dateAdapter.getMonth(this.activeDate),Q=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(tt,Rt,1));return this._dateAdapter.createDate(tt,Rt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForYear(tt){const Rt=this._dateAdapter.createDate(tt,0,1),Q=this._dateAdapter.getYearName(Rt),Nt=this.dateClass?this.dateClass(Rt,"multi-year"):void 0;return new on(tt,Q,Q,this._shouldEnableYear(tt),Nt)}_shouldEnableYear(tt){if(null==tt||this.maxDate&&tt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tt{class Me{constructor(tt,Rt,Q,Nt){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Nt,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._dateAdapter.getYear(Rt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedMonth(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Rt,1);this.monthSelected.emit(Q);const Nt=this._getDateFromMonth(Rt);this.selectedChange.emit(Nt)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let tt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Rt=>Rt.map(Q=>this._createCellForMonth(Q,tt[Q]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(tt){return tt&&this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(tt):null}_getDateFromMonth(tt){const Rt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Q=this._dateAdapter.getNumDaysInMonth(Rt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForMonth(tt,Rt){const Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Nt=this._dateAdapter.format(Q,this._dateFormats.display.monthYearA11yLabel),Be=this.dateClass?this.dateClass(Q,"year"):void 0;return new on(tt,Rt.toLocaleUpperCase(),Nt,this._shouldEnableMonth(tt),Be)}_shouldEnableMonth(tt){const Rt=this._dateAdapter.getYear(this.activeDate);if(null==tt||this._isYearAndMonthAfterMaxDate(Rt,tt)||this._isYearAndMonthBeforeMinDate(Rt,tt))return!1;if(!this.dateFilter)return!0;for(let Nt=this._dateAdapter.createDate(Rt,tt,1);this._dateAdapter.getMonth(Nt)==tt;Nt=this._dateAdapter.addCalendarDays(Nt,1))if(this.dateFilter(Nt))return!0;return!1}_isYearAndMonthAfterMaxDate(tt,Rt){if(this.maxDate){const Q=this._dateAdapter.getYear(this.maxDate),Nt=this._dateAdapter.getMonth(this.maxDate);return tt>Q||tt===Q&&Rt>Nt}return!1}_isYearAndMonthBeforeMinDate(tt,Rt){if(this.minDate){const Q=this._dateAdapter.getYear(this.minDate),Nt=this._dateAdapter.getMonth(this.minDate);return tt{class Me{constructor(tt,Rt,Q,Nt,Be){this._intl=tt,this.calendar=Rt,this._dateAdapter=Q,this._dateFormats=Nt,this._buttonDescriptionId="mat-calendar-button-"+fn++,this.calendar.stateChanges.subscribe(()=>Be.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Rt=this._dateAdapter.getYear(this.calendar.activeDate)-fi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Q=Rt+24-1,Nt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Rt,0,1)),Be=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return this._intl.formatYearRange(Nt,Be)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(tt,Rt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt)&&this._dateAdapter.getMonth(tt)==this._dateAdapter.getMonth(Rt):"year"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt):ho(this._dateAdapter,tt,Rt,this.calendar.minDate,this.calendar.maxDate)}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(De),t.Y36((0,t.Gpc)(()=>We)),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:se,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(tt,Rt){1&tt&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Rt.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Rt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Rt.nextClicked()}),t.qZA()()()),2&tt&&(t.xp6(2),t.uIk("aria-label",Rt.periodButtonLabel)("aria-describedby",Rt._buttonDescriptionId),t.xp6(1),t.uIk("id",Rt._buttonDescriptionId),t.xp6(1),t.Oqu(Rt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Rt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Rt.previousEnabled()),t.uIk("aria-label",Rt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Rt.nextEnabled()),t.uIk("aria-label",Rt.nextButtonLabel))},dependencies:[A.lW],encapsulation:2,changeDetection:0}),Me})(),We=(()=>{class Me{constructor(tt,Rt,Q,Nt){this._dateAdapter=Rt,this._dateFormats=Q,this._changeDetectorRef=Nt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new k.xQ,this._intlChanges=tt.changes.subscribe(()=>{Nt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Un?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get activeDate(){return this._clampedActiveDate}set activeDate(tt){this._clampedActiveDate=this._dateAdapter.clampDate(tt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(tt){const Rt=this._currentView!==tt?tt:null;this._currentView=tt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Rt&&this.viewChanged.emit(Rt)}ngAfterContentInit(){this._calendarHeaderPortal=new b.C5(this.headerComponent||ze),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(tt){const Rt=tt.minDate&&!this._dateAdapter.sameDate(tt.minDate.previousValue,tt.minDate.currentValue)?tt.minDate:void 0,Q=tt.maxDate&&!this._dateAdapter.sameDate(tt.maxDate.previousValue,tt.maxDate.currentValue)?tt.maxDate:void 0,Nt=Rt||Q||tt.dateFilter;if(Nt&&!Nt.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(tt){const Rt=tt.value;(this.selected instanceof Un||Rt&&!this._dateAdapter.sameDate(Rt,this.selected))&&this.selectedChange.emit(Rt),this._userSelection.emit(tt)}_yearSelectedInMultiYearView(tt){this.yearSelected.emit(tt)}_monthSelectedInYearView(tt){this.monthSelected.emit(tt)}_goToDateInView(tt,Rt){this.activeDate=tt,this.currentView=Rt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(De),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-calendar"]],viewQuery:function(tt,Rt){if(1&tt&&(t.Gf(Dn,5),t.Gf(Ye,5),t.Gf(Li,5)),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt.monthView=Q.first),t.iGM(Q=t.CRH())&&(Rt.yearView=Q.first),t.iGM(Q=t.CRH())&&(Rt.multiYearView=Q.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([ne]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(tt,Rt){1&tt&&(t.YNc(0,Gt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,ve,1,8,"mat-month-view",2),t.YNc(3,be,1,6,"mat-year-view",3),t.YNc(4,Le,1,6,"mat-multi-year-view",4),t.qZA()),2&tt&&(t.Q6J("cdkPortalOutlet",Rt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Rt.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,d.kH,b.Pl,Dn,Ye,Li],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Me})();const en={transformPanel:(0,Pt.X$)("transformPanel",[(0,Pt.eR)("void => enter-dropdown",(0,Pt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Pt.F4)([(0,Pt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Pt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Pt.eR)("void => enter-dialog",(0,Pt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Pt.F4)([(0,Pt.oB)({opacity:0,transform:"scale(0.7)"}),(0,Pt.oB)({transform:"none",opacity:1})]))),(0,Pt.eR)("* => void",(0,Pt.jt)("100ms linear",(0,Pt.oB)({opacity:0})))]),fadeInCalendar:(0,Pt.X$)("fadeInCalendar",[(0,Pt.SB)("void",(0,Pt.oB)({opacity:0})),(0,Pt.SB)("enter",(0,Pt.oB)({opacity:1})),(0,Pt.eR)("void => *",(0,Pt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let le=0;const Ge=new t.OlP("mat-datepicker-scroll-strategy"),wt={provide:Ge,deps:[p.aV],useFactory:function Lt(Me){return()=>Me.scrollStrategies.reposition()}},Ot=(0,U.pj)(class{constructor(Me){this._elementRef=Me}});let ye=(()=>{class Me extends Ot{constructor(tt,Rt,Q,Nt,Be,Rn){super(tt),this._changeDetectorRef=Rt,this._globalModel=Q,this._dateAdapter=Nt,this._rangeSelectionStrategy=Be,this._subscriptions=new D.w,this._animationDone=new k.xQ,this._actionsPortal=null,this._closeButtonText=Rn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(tt){const Rt=this._model.selection,Q=tt.value,Nt=Rt instanceof Un;if(Nt&&this._rangeSelectionStrategy){const Be=this._rangeSelectionStrategy.selectionFinished(Q,Rt,tt.event);this._model.updateSelection(Be,this)}else Q&&(Nt||!this._dateAdapter.sameDate(Q,Rt))&&this._model.add(Q);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(tt,Rt){this._model=tt?this._globalModel.clone():this._globalModel,this._actionsPortal=tt,Rt&&this._changeDetectorRef.detectChanges()}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oi),t.Y36(U._A),t.Y36(kt,8),t.Y36(De))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-content"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(We,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._calendar=Q.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(tt,Rt){1&tt&&t.WFA("@transformPanel.done",function(){return Rt._animationDone.next()}),2&tt&&(t.d8E("@transformPanel",Rt._animationState),t.ekj("mat-datepicker-content-touch",Rt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(tt,Rt){if(1&tt&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Nt){return Rt.datepicker._selectYear(Nt)})("monthSelected",function(Nt){return Rt.datepicker._selectMonth(Nt)})("viewChanged",function(Nt){return Rt.datepicker._viewChanged(Nt)})("_userSelection",function(Nt){return Rt._handleUserSelection(Nt)}),t.qZA(),t.YNc(2,qe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Rt._closeButtonFocused=!0})("blur",function(){return Rt._closeButtonFocused=!1})("click",function(){return Rt.datepicker.close()}),t._uU(4),t.qZA()()),2&tt){let Q;t.ekj("mat-datepicker-content-container-with-custom-header",Rt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Rt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(Q=Rt._dialogLabelId)&&void 0!==Q?Q:void 0),t.xp6(1),t.Q6J("id",Rt.datepicker.id)("ngClass",Rt.datepicker.panelClass)("startAt",Rt.datepicker.startAt)("startView",Rt.datepicker.startView)("minDate",Rt.datepicker._getMinDate())("maxDate",Rt.datepicker._getMaxDate())("dateFilter",Rt.datepicker._getDateFilter())("headerComponent",Rt.datepicker.calendarHeaderComponent)("selected",Rt._getSelected())("dateClass",Rt.datepicker.dateClass)("comparisonStart",Rt.comparisonStart)("comparisonEnd",Rt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Rt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Rt._closeButtonFocused),t.Q6J("color",Rt.color||"primary"),t.xp6(1),t.Oqu(Rt._closeButtonText)}},dependencies:[T.mk,A.lW,d.mK,b.Pl,We],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[en.transformPanel,en.fadeInCalendar]},changeDetection:0}),Me})(),Xe=(()=>{class Me{constructor(tt,Rt,Q,Nt,Be,Rn,Qi){this._overlay=tt,this._ngZone=Rt,this._viewContainerRef=Q,this._dateAdapter=Be,this._dir=Rn,this._model=Qi,this._inputStateChanges=D.w.EMPTY,this._document=(0,t.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+le++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k.xQ,this._scrollStrategy=Nt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(tt){this._color=tt}get touchUi(){return this._touchUi}set touchUi(tt){this._touchUi=(0,vt.Ig)(tt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(tt){const Rt=(0,vt.Ig)(tt);Rt!==this._disabled&&(this._disabled=Rt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(tt){this._restoreFocus=(0,vt.Ig)(tt)}get panelClass(){return this._panelClass}set panelClass(tt){this._panelClass=(0,vt.du)(tt)}get opened(){return this._opened}set opened(tt){(0,vt.Ig)(tt)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(tt){const Rt=tt.xPosition||tt.yPosition;if(Rt&&!Rt.firstChange&&this._overlayRef){const Q=this._overlayRef.getConfig().positionStrategy;Q instanceof p._G&&(this._setConnectedPositions(Q),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(tt){this._model.add(tt)}_selectYear(tt){this.yearSelected.emit(tt)}_selectMonth(tt){this.monthSelected.emit(tt)}_viewChanged(tt){this.viewChanged.emit(tt)}registerInput(tt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=tt,this._inputStateChanges=tt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(tt){this._actionsPortal=tt,this._componentRef?.instance._assignActions(tt,!0)}removeActions(tt){tt===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Dt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const tt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Rt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Q,location:Nt}=this._componentRef;Q._startExitAnimation(),Q._animationDone.pipe((0,K.q)(1)).subscribe(()=>{const Be=this._document.activeElement;tt&&(!Be||Be===this._document.activeElement||Nt.nativeElement.contains(Be))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}tt?setTimeout(Rt):Rt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(tt){tt.datepicker=this,tt.color=this.color,tt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),tt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const tt=this.touchUi,Rt=new b.C5(ye,this._viewContainerRef),Q=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:tt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[tt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:tt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(tt?"dialog":"popup")}));this._getCloseStream(Q).subscribe(Nt=>{Nt&&Nt.preventDefault(),this.close()}),Q.keydownEvents().subscribe(Nt=>{const Be=Nt.keyCode;(Be===z.LH||Be===z.JH||Be===z.oh||Be===z.SV||Be===z.Ku||Be===z.VM)&&Nt.preventDefault()}),this._componentRef=Q.attach(Rt),this._forwardContentValues(this._componentRef.instance),tt||this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>Q.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const tt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(tt)}_setConnectedPositions(tt){const Rt="end"===this.xPosition?"end":"start",Q="start"===Rt?"end":"start",Nt="above"===this.yPosition?"bottom":"top",Be="top"===Nt?"bottom":"top";return tt.withPositions([{originX:Rt,originY:Be,overlayX:Rt,overlayY:Nt},{originX:Rt,originY:Nt,overlayX:Rt,overlayY:Be},{originX:Q,originY:Be,overlayX:Q,overlayY:Nt},{originX:Q,originY:Nt,overlayX:Q,overlayY:Be}])}_getCloseStream(tt){return(0,P.T)(tt.backdropClick(),tt.detachments(),tt.keydownEvents().pipe((0,ct.h)(Rt=>Rt.keyCode===z.hY&&!(0,z.Vb)(Rt)||this.datepickerInput&&(0,z.Vb)(Rt,"altKey")&&Rt.keyCode===z.LH)))}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Ge),t.Y36(U._A,8),t.Y36(J.Is,8),t.Y36(oi))},Me.\u0275dir=t.lG2({type:Me,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Me})(),Ne=(()=>{class Me extends Xe{}return Me.\u0275fac=function(){let dn;return function(Rt){return(dn||(dn=t.n5z(Me)))(Rt||Me)}}(),Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ne,{provide:Xe,useExisting:Me}]),t.qOj],decls:0,vars:0,template:function(tt,Rt){},encapsulation:2,changeDetection:0}),Me})();class Tn{constructor(dn,tt){this.target=dn,this.targetElement=tt,this.value=this.target.value}}let he=(()=>{class Me{constructor(tt,Rt,Q){this._elementRef=tt,this._dateAdapter=Rt,this._dateFormats=Q,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new k.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.w.EMPTY,this._localeSubscription=D.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Nt=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Nt.value));return!Be||this._matchesFilter(Be)?null:{matDatepickerFilter:!0}},this._minValidator=Nt=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Nt.value)),Rn=this._getMinDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)<=0?null:{matDatepickerMin:{min:Rn,actual:Be}}},this._maxValidator=Nt=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Nt.value)),Rn=this._getMaxDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)>=0?null:{matDatepickerMax:{max:Rn,actual:Be}}},this._lastValueValid=!1,this._localeSubscription=Rt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(tt){this._assignValueProgrammatically(tt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(tt){const Rt=(0,vt.Ig)(tt),Q=this._elementRef.nativeElement;this._disabled!==Rt&&(this._disabled=Rt,this.stateChanges.next(void 0)),Rt&&this._isInitialized&&Q.blur&&Q.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(tt){this._model=tt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Rt=>{if(this._shouldHandleChangeEvent(Rt)){const Q=this._getValueFromModel(Rt.selection);this._lastValueValid=this._isValidValue(Q),this._cvaOnChange(Q),this._onTouched(),this._formatValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)),this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(tt){(function Re(Me,dn){const tt=Object.keys(Me);for(let Rt of tt){const{previousValue:Q,currentValue:Nt}=Me[Rt];if(!dn.isDateInstance(Q)||!dn.isDateInstance(Nt))return!0;if(!dn.sameDate(Q,Nt))return!0}return!1})(tt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(tt){this._validatorOnChange=tt}validate(tt){return this._validator?this._validator(tt):null}writeValue(tt){this._assignValueProgrammatically(tt)}registerOnChange(tt){this._cvaOnChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt}_onKeydown(tt){tt.altKey&&tt.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),tt.preventDefault())}_onInput(tt){const Rt=this._lastValueValid;let Q=this._dateAdapter.parse(tt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q);const Nt=!this._dateAdapter.sameDate(Q,this.value);!Q||Nt?this._cvaOnChange(Q):(tt&&!this.value&&this._cvaOnChange(Q),Rt!==this._lastValueValid&&this._validatorOnChange()),Nt&&(this._assignValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(tt){this._elementRef.nativeElement.value=null!=tt?this._dateAdapter.format(tt,this._dateFormats.display.dateInput):""}_assignValue(tt){this._model?(this._assignValueToModel(tt),this._pendingValue=null):this._pendingValue=tt}_isValidValue(tt){return!tt||this._dateAdapter.isValid(tt)}_parentDisabled(){return!1}_assignValueProgrammatically(tt){tt=this._dateAdapter.deserialize(tt),this._lastValueValid=this._isValidValue(tt),tt=this._dateAdapter.getValidDateOrNull(tt),this._assignValue(tt),this._formatValue(tt)}_matchesFilter(tt){const Rt=this._getDateFilter();return!Rt||Rt(tt)}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8))},Me.\u0275dir=t.lG2({type:Me,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Me})();const En={provide:zt.JU,useExisting:(0,t.Gpc)(()=>go),multi:!0},gi={provide:zt.Cf,useExisting:(0,t.Gpc)(()=>go),multi:!0};let go=(()=>{class Me extends he{constructor(tt,Rt,Q,Nt){super(tt,Rt,Q),this._formField=Nt,this._closedSubscription=D.w.EMPTY,this._validator=zt.kI.compose(super._getValidators())}set matDatepicker(tt){tt&&(this._datepicker=tt,this._closedSubscription=tt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(tt.registerInput(this)))}get min(){return this._min}set min(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._min)||(this._min=Rt,this._validatorOnChange())}get max(){return this._max}set max(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._max)||(this._max=Rt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(tt){const Rt=this._matchesFilter(this.value);this._dateFilter=tt,this._matchesFilter(this.value)!==Rt&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(tt){return tt}_assignValueToModel(tt){this._model&&this._model.updateSelection(tt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(tt){return tt.source!==this}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(Vt.G_,8))},Me.\u0275dir=t.lG2({type:Me,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(tt,Rt){1&tt&&t.NdJ("input",function(Nt){return Rt._onInput(Nt.target.value)})("change",function(){return Rt._onChange()})("blur",function(){return Rt._onBlur()})("keydown",function(Nt){return Rt._onKeydown(Nt)}),2&tt&&(t.Ikx("disabled",Rt.disabled),t.uIk("aria-haspopup",Rt._datepicker?"dialog":null)("aria-owns",(null==Rt._datepicker?null:Rt._datepicker.opened)&&Rt._datepicker.id||null)("min",Rt.min?Rt._dateAdapter.toIso8601(Rt.min):null)("max",Rt.max?Rt._dateAdapter.toIso8601(Rt.max):null)("data-mat-calendar",Rt._datepicker?Rt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([En,gi,{provide:it.Jk,useExisting:Me}]),t.qOj]}),Me})(),_o=(()=>{class Me{}return Me.\u0275fac=function(tt){return new(tt||Me)},Me.\u0275dir=t.lG2({type:Me,selectors:[["","matDatepickerToggleIcon",""]]}),Me})(),mn=(()=>{class Me{constructor(tt,Rt,Q){this._intl=tt,this._changeDetectorRef=Rt,this._stateChanges=D.w.EMPTY;const Nt=Number(Q);this.tabIndex=Nt||0===Nt?Nt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(tt){this._disabled=(0,vt.Ig)(tt)}ngOnChanges(tt){tt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(tt){this.datepicker&&!this.disabled&&(this.datepicker.open(),tt.stopPropagation())}_watchStateChanges(){const tt=this.datepicker?this.datepicker.stateChanges:(0,F.of)(),Rt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,F.of)(),Q=this.datepicker?(0,P.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,F.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,P.T)(this._intl.changes,tt,Rt,Q).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Me.\u0275fac=function(tt){return new(tt||Me)(t.Y36(De),t.Y36(t.sBO),t.$8M("tabindex"))},Me.\u0275cmp=t.Xpm({type:Me,selectors:[["mat-datepicker-toggle"]],contentQueries:function(tt,Rt,Q){if(1&tt&&t.Suo(Q,_o,5),2&tt){let Nt;t.iGM(Nt=t.CRH())&&(Rt._customIcon=Nt.first)}},viewQuery:function(tt,Rt){if(1&tt&&t.Gf($e,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._button=Q.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(tt,Rt){1&tt&&t.NdJ("click",function(Nt){return Rt._open(Nt)}),2&tt&&(t.uIk("tabindex",null)("data-mat-calendar",Rt.datepicker?Rt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Rt.datepicker&&Rt.datepicker.opened)("mat-accent",Rt.datepicker&&"accent"===Rt.datepicker.color)("mat-warn",Rt.datepicker&&"warn"===Rt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ae,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(tt,Rt){1&tt&&(t.F$t(Te),t.TgZ(0,"button",0,1),t.YNc(2,Xt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&tt&&(t.Q6J("disabled",Rt.disabled)("disableRipple",Rt.disableRipple),t.uIk("aria-haspopup",Rt.datepicker?"dialog":null)("aria-label",Rt.ariaLabel||Rt._intl.openCalendarLabel)("tabindex",Rt.disabled?-1:Rt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Rt._customIcon))},dependencies:[T.O5,A.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Me})(),He=(()=>{class Me{}return Me.\u0275fac=function(tt){return new(tt||Me)},Me.\u0275mod=t.oAB({type:Me}),Me.\u0275inj=t.cJS({providers:[De,wt],imports:[T.ez,A.ot,p.U8,d.rt,b.eL,U.BQ,x.ZD]}),Me})()},65412:(ot,et,v)=>{"use strict";v.d(et,{WI:()=>Kt,uw:()=>gn,H8:()=>vi,ZT:()=>un,xY:()=>oi,Is:()=>Ke,so:()=>Te,uh:()=>Un});var d=v(12687),p=v(98184),b=v(83353),T=v(84080),t=v(36895),A=v(94650),x=v(29521),U=v(8929),k=v(88514),D=v(21086),P=v(40445),F=v(1059);function z(ne,lt){}class J{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}}let at=(()=>{class ne extends T.en{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn){super(),this._elementRef=nt,this._focusTrapFactory=kt,this._config=oe,this._interactivityChecker=Ce,this._ngZone=Oe,this._overlayRef=Dn,this._focusMonitor=Sn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Li=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Li},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Jt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(nt){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachComponentPortal(nt);return this._contentAttached(),kt}attachTemplatePortal(nt){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachTemplatePortal(nt);return this._contentAttached(),kt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(nt,kt){this._interactivityChecker.isFocusable(nt)||(nt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Jt=()=>{nt.removeEventListener("blur",Jt),nt.removeEventListener("mousedown",Jt),nt.removeAttribute("tabindex")};nt.addEventListener("blur",Jt),nt.addEventListener("mousedown",Jt)})),nt.focus(kt)}_focusByCssSelector(nt,kt){let Jt=this._elementRef.nativeElement.querySelector(nt);Jt&&this._forceFocus(Jt,kt)}_trapFocus(){const nt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||nt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(kt=>{kt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const nt=this._config.restoreFocus;let kt=null;if("string"==typeof nt?kt=this._document.querySelector(nt):"boolean"==typeof nt?kt=nt?this._elementFocusedBeforeDialogWasOpened:null:nt&&(kt=nt),this._config.restoreFocus&&kt&&"function"==typeof kt.focus){const Jt=(0,b.ht)(),oe=this._elementRef.nativeElement;(!Jt||Jt===this._document.body||Jt===oe||oe.contains(Jt))&&(this._focusMonitor?(this._focusMonitor.focusVia(kt,this._closeInteractionType),this._closeInteractionType=null):kt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const nt=this._elementRef.nativeElement,kt=(0,b.ht)();return nt===kt||nt.contains(kt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(J),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["cdk-dialog-container"]],viewQuery:function(nt,kt){if(1&nt&&A.Gf(T.Pl,7),2&nt){let Jt;A.iGM(Jt=A.CRH())&&(kt._portalOutlet=Jt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(nt,kt){2&nt&&A.uIk("id",kt._config.id||null)("role",kt._config.role)("aria-modal",kt._config.ariaModal)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(nt,kt){1&nt&&A.YNc(0,z,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ne})();class ct{constructor(lt,nt){this.overlayRef=lt,this.config=nt,this.closed=new U.xQ,this.disableClose=nt.disableClose,this.backdropClick=lt.backdropClick(),this.keydownEvents=lt.keydownEvents(),this.outsidePointerEvents=lt.outsidePointerEvents(),this.id=nt.id,this.keydownEvents.subscribe(kt=>{kt.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(kt)&&(kt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(lt,nt){if(this.containerInstance){const kt=this.closed;this.containerInstance._closeInteractionType=nt?.focusOrigin||"program",this.overlayRef.dispose(),kt.next(lt),kt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(lt="",nt=""){return this.overlayRef.updateSize({width:lt,height:nt}),this}addPanelClass(lt){return this.overlayRef.addPanelClass(lt),this}removePanelClass(lt){return this.overlayRef.removePanelClass(lt),this}}const vt=new A.OlP("DialogScrollStrategy"),Dt=new A.OlP("DialogData"),Pt=new A.OlP("DefaultDialogConfig"),Vt={provide:vt,deps:[p.aV],useFactory:function zt(ne){return()=>ne.scrollStrategies.block()}};let it=0,Tt=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce,Oe){this._overlay=nt,this._injector=kt,this._defaultOptions=Jt,this._parentDialog=oe,this._overlayContainer=Ce,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,F.O)(void 0))),this._scrollStrategy=Oe}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(nt,kt){(kt={...this._defaultOptions||new J,...kt}).id=kt.id||"cdk-dialog-"+it++,kt.id&&this.getDialogById(kt.id);const oe=this._getOverlayConfig(kt),Ce=this._overlay.create(oe),Oe=new ct(Ce,kt),Dn=this._attachContainer(Ce,Oe,kt);return Oe.containerInstance=Dn,this._attachDialogContent(nt,Oe,Dn,kt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Oe),Oe.closed.subscribe(()=>this._removeOpenDialog(Oe,!0)),this.afterOpened.next(Oe),Oe}closeAll(){At(this.openDialogs,nt=>nt.close())}getDialogById(nt){return this.openDialogs.find(kt=>kt.id===nt)}ngOnDestroy(){At(this._openDialogsAtThisLevel,nt=>{!1===nt.config.closeOnDestroy&&this._removeOpenDialog(nt,!1)}),At(this._openDialogsAtThisLevel,nt=>nt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(nt){const kt=new p.X_({positionStrategy:nt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:nt.scrollStrategy||this._scrollStrategy(),panelClass:nt.panelClass,hasBackdrop:nt.hasBackdrop,direction:nt.direction,minWidth:nt.minWidth,minHeight:nt.minHeight,maxWidth:nt.maxWidth,maxHeight:nt.maxHeight,width:nt.width,height:nt.height,disposeOnNavigation:nt.closeOnNavigation});return nt.backdropClass&&(kt.backdropClass=nt.backdropClass),kt}_attachContainer(nt,kt,Jt){const oe=Jt.injector||Jt.viewContainerRef?.injector,Ce=[{provide:J,useValue:Jt},{provide:ct,useValue:kt},{provide:p.Iu,useValue:nt}];let Oe;Jt.container?"function"==typeof Jt.container?Oe=Jt.container:(Oe=Jt.container.type,Ce.push(...Jt.container.providers(Jt))):Oe=at;const Dn=new T.C5(Oe,Jt.viewContainerRef,A.zs3.create({parent:oe||this._injector,providers:Ce}),Jt.componentFactoryResolver);return nt.attach(Dn).instance}_attachDialogContent(nt,kt,Jt,oe){if(nt instanceof A.Rgc){const Ce=this._createInjector(oe,kt,Jt,void 0);let Oe={$implicit:oe.data,dialogRef:kt};oe.templateContext&&(Oe={...Oe,..."function"==typeof oe.templateContext?oe.templateContext():oe.templateContext}),Jt.attachTemplatePortal(new T.UE(nt,null,Oe,Ce))}else{const Ce=this._createInjector(oe,kt,Jt,this._injector),Oe=Jt.attachComponentPortal(new T.C5(nt,oe.viewContainerRef,Ce,oe.componentFactoryResolver));kt.componentInstance=Oe.instance}}_createInjector(nt,kt,Jt,oe){const Ce=nt.injector||nt.viewContainerRef?.injector,Oe=[{provide:Dt,useValue:nt.data},{provide:ct,useValue:kt}];return nt.providers&&("function"==typeof nt.providers?Oe.push(...nt.providers(kt,nt,Jt)):Oe.push(...nt.providers)),nt.direction&&(!Ce||!Ce.get(P.Is,null,A.XFs.Optional))&&Oe.push({provide:P.Is,useValue:{value:nt.direction,change:(0,D.of)()}}),A.zs3.create({parent:Ce||oe,providers:Oe})}_removeOpenDialog(nt,kt){const Jt=this.openDialogs.indexOf(nt);Jt>-1&&(this.openDialogs.splice(Jt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((oe,Ce)=>{oe?Ce.setAttribute("aria-hidden",oe):Ce.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),kt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const nt=this._overlayContainer.getContainerElement();if(nt.parentElement){const kt=nt.parentElement.children;for(let Jt=kt.length-1;Jt>-1;Jt--){const oe=kt[Jt];oe!==nt&&"SCRIPT"!==oe.nodeName&&"STYLE"!==oe.nodeName&&!oe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(oe,oe.getAttribute("aria-hidden")),oe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const nt=this._parentDialog;return nt?nt._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(Pt,8),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(vt))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function At(ne,lt){let nt=ne.length;for(;nt--;)lt(ne[nt])}let ft=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[Tt,Vt],imports:[p.U8,T.eL,d.rt,T.eL]}),ne})();var Et=v(3238),Bt=v(36787),Ft=v(92198),se=v(72986),Gt=v(37340);function ve(ne,lt){}const be={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Le={dialogContainer:(0,Gt.X$)("dialogContainer",[(0,Gt.SB)("void, exit",(0,Gt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Gt.SB)("enter",(0,Gt.oB)({transform:"none"})),(0,Gt.eR)("* => enter",(0,Gt.ru)([(0,Gt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Gt.oB)({transform:"none",opacity:1})),(0,Gt.IO)("@*",(0,Gt.pV)(),{optional:!0})]),be),(0,Gt.eR)("* => void, * => exit",(0,Gt.ru)([(0,Gt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Gt.oB)({opacity:0})),(0,Gt.IO)("@*",(0,Gt.pV)(),{optional:!0})]),be)])};class qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",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,this.enterAnimationDuration=be.params.enterAnimationDuration,this.exitAnimationDuration=be.params.exitAnimationDuration}}let $e=(()=>{class ne extends at{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn){super(nt,kt,Jt,oe,Ce,Oe,Dn,Sn),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(nt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:nt})}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(nt,kt){},encapsulation:2}),ne})(),Xt=(()=>{class ne extends $e{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi){super(nt,kt,Jt,oe,Ce,Oe,Dn,mi),this._changeDetectorRef=Sn,this._state="enter"}_onAnimationDone({toState:nt,totalTime:kt}){"enter"===nt?this._openAnimationDone(kt):"exit"===nt&&this._animationStateChanged.next({state:"closed",totalTime:kt})}_onAnimationStart({toState:nt,totalTime:kt}){"enter"===nt?this._animationStateChanged.next({state:"opening",totalTime:kt}):("exit"===nt||"void"===nt)&&this._animationStateChanged.next({state:"closing",totalTime:kt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||be.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||be.params.exitAnimationDuration}}}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(A.sBO),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(nt,kt){1&nt&&A.WFA("@dialogContainer.start",function(oe){return kt._onAnimationStart(oe)})("@dialogContainer.done",function(oe){return kt._onAnimationDone(oe)}),2&nt&&(A.Ikx("id",kt._config.id),A.uIk("aria-modal",kt._config.ariaModal)("role",kt._config.role)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null),A.d8E("@dialogContainer",kt._getAnimationState()))},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(nt,kt){1&nt&&A.YNc(0,ve,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Le.dialogContainer]}}),ne})();class Te{constructor(lt,nt,kt){this._ref=lt,this._containerInstance=kt,this._afterOpened=new U.xQ,this._beforeClosed=new U.xQ,this._state=0,this.disableClose=nt.disableClose,this.id=lt.id,kt._animationStateChanged.pipe((0,Ft.h)(Jt=>"opened"===Jt.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),kt._animationStateChanged.pipe((0,Ft.h)(Jt=>"closed"===Jt.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),lt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ft.h)(Jt=>Jt.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Jt)))).subscribe(Jt=>{this.disableClose||(Jt.preventDefault(),ae(this,"keydown"===Jt.type?"keyboard":"mouse"))})}close(lt){this._result=lt,this._containerInstance._animationStateChanged.pipe((0,Ft.h)(nt=>"closing"===nt.state),(0,se.q)(1)).subscribe(nt=>{this._beforeClosed.next(lt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),nt.totalTime+100)}),this._state=1,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(lt){let nt=this._ref.config.positionStrategy;return lt&&(lt.left||lt.right)?lt.left?nt.left(lt.left):nt.right(lt.right):nt.centerHorizontally(),lt&&(lt.top||lt.bottom)?lt.top?nt.top(lt.top):nt.bottom(lt.bottom):nt.centerVertically(),this._ref.updatePosition(),this}updateSize(lt="",nt=""){return this._ref.updateSize(lt,nt),this}addPanelClass(lt){return this._ref.addPanelClass(lt),this}removePanelClass(lt){return this._ref.removePanelClass(lt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ae(ne,lt,nt){return ne._closeInteractionType=lt,ne.close(nt)}const Kt=new A.OlP("MatDialogData"),de=new A.OlP("mat-dialog-default-options"),Wt=new A.OlP("mat-dialog-scroll-strategy"),on={provide:Wt,deps:[p.aV],useFactory:function De(ne){return()=>ne.scrollStrategies.block()}};let _n=0,Ae=(()=>{class ne{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi,Li){this._overlay=nt,this._defaultOptions=Jt,this._parentDialog=oe,this._dialogRefConstructor=Dn,this._dialogContainerType=Sn,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,F.O)(void 0))),this._scrollStrategy=Oe,this._dialog=kt.get(Tt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const nt=this._parentDialog;return nt?nt._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(nt,kt){let Jt;(kt={...this._defaultOptions||new qe,...kt}).id=kt.id||`${this._idPrefix}${_n++}`,kt.scrollStrategy=kt.scrollStrategy||this._scrollStrategy();const oe=this._dialog.open(nt,{...kt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:qe,useValue:kt},{provide:J,useValue:kt}]},templateContext:()=>({dialogRef:Jt}),providers:(Ce,Oe,Dn)=>(Jt=new this._dialogRefConstructor(Ce,kt,Dn),Jt.updatePosition(kt?.position),[{provide:this._dialogContainerType,useValue:Dn},{provide:this._dialogDataToken,useValue:Oe.data},{provide:this._dialogRefConstructor,useValue:Jt}])});return Jt.componentInstance=oe.componentInstance,this.openDialogs.push(Jt),this.afterOpened.next(Jt),Jt.afterClosed().subscribe(()=>{const Ce=this.openDialogs.indexOf(Jt);Ce>-1&&(this.openDialogs.splice(Ce,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Jt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(nt){return this.openDialogs.find(kt=>kt.id===nt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(nt){let kt=nt.length;for(;kt--;)nt[kt].close()}}return ne.\u0275fac=function(nt){A.$Z()},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),gn=(()=>{class ne extends Ae{constructor(nt,kt,Jt,oe,Ce,Oe,Dn,Sn){super(nt,kt,oe,Oe,Dn,Ce,Te,Xt,Kt,Sn)}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(t.Ye,8),A.LFG(de,8),A.LFG(Wt),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(A.QbO,8))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),we=0,un=(()=>{class ne{constructor(nt,kt,Jt){this.dialogRef=nt,this._elementRef=kt,this._dialog=Jt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=si(this._elementRef,this._dialog.openDialogs))}ngOnChanges(nt){const kt=nt._matDialogClose||nt._matDialogCloseResult;kt&&(this.dialogResult=kt.currentValue)}_onButtonClick(nt){ae(this.dialogRef,0===nt.screenX&&0===nt.screenY?"keyboard":"mouse",this.dialogResult)}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(nt,kt){1&nt&&A.NdJ("click",function(oe){return kt._onButtonClick(oe)}),2&nt&&A.uIk("aria-label",kt.ariaLabel||null)("type",kt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[A.TTD]}),ne})(),Un=(()=>{class ne{constructor(nt,kt,Jt){this._dialogRef=nt,this._elementRef=kt,this._dialog=Jt,this.id="mat-dialog-title-"+we++}ngOnInit(){this._dialogRef||(this._dialogRef=si(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const nt=this._dialogRef._containerInstance;nt&&!nt._ariaLabelledBy&&(nt._ariaLabelledBy=this.id)})}}return ne.\u0275fac=function(nt){return new(nt||ne)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(nt,kt){2&nt&&A.Ikx("id",kt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ne})(),oi=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ne})(),vi=(()=>{class ne{constructor(){this.align="start"}}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(nt,kt){2&nt&&A.ekj("mat-dialog-actions-align-center","center"===kt.align)("mat-dialog-actions-align-end","end"===kt.align)},inputs:{align:"align"}}),ne})();function si(ne,lt){let nt=ne.nativeElement.parentElement;for(;nt&&!nt.classList.contains("mat-dialog-container");)nt=nt.parentElement;return nt?lt.find(kt=>kt.id===nt.id):null}let Ke=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[gn,on],imports:[ft,p.U8,T.eL,Et.BQ,Et.BQ]}),ne})()},44850:(ot,et,v)=>{"use strict";v.d(et,{d:()=>T,t:()=>t});var d=v(94650),p=v(21281),b=v(3238);let T=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(U){this._vertical=(0,p.Ig)(U)}get inset(){return this._inset}set inset(U){this._inset=(0,p.Ig)(U)}}return A.\u0275fac=function(U){return new(U||A)},A.\u0275cmp=d.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(U,k){2&U&&(d.uIk("aria-orientation",k.vertical?"vertical":"horizontal"),d.ekj("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(U,k){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),A})(),t=(()=>{class A{}return A.\u0275fac=function(U){return new(U||A)},A.\u0275mod=d.oAB({type:A}),A.\u0275inj=d.cJS({imports:[b.BQ,b.BQ]}),A})()},37084:(ot,et,v)=>{"use strict";v.d(et,{pp:()=>on,To:()=>_n,ib:()=>Te,u4:()=>re,yz:()=>Wt,yK:()=>De});var d=v(94650),p=v(95017),b=v(21281),T=v(8929),t=v(42654);let A=0;const x=new d.OlP("CdkAccordion");let U=(()=>{class Ae{constructor(){this._stateChanges=new T.xQ,this._openCloseAllActions=new T.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(we){this._multi=(0,b.Ig)(we)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(we){this._stateChanges.next(we)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:x,useExisting:Ae}]),d.TTD]}),Ae})(),k=0,D=(()=>{class Ae{constructor(we,un,Un){this.accordion=we,this._changeDetectorRef=un,this._expansionDispatcher=Un,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new d.vpe,this.opened=new d.vpe,this.destroyed=new d.vpe,this.expandedChange=new d.vpe,this.id="cdk-accordion-child-"+k++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Un.listen((oi,vi)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===vi&&this.id!==oi&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(we){we=(0,b.Ig)(we),this._expanded!==we&&(this._expanded=we,this.expandedChange.emit(we),we?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,b.Ig)(we)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(we=>{this.disabled||(this.expanded=we)})}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(x,12),d.Y36(d.sBO),d.Y36(p.A8))},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[d._Bn([{provide:x,useValue:void 0}])]}),Ae})(),P=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275mod=d.oAB({type:Ae}),Ae.\u0275inj=d.cJS({}),Ae})();var F=v(84080),z=v(36895),J=v(3238),K=v(12687),at=v(75778),ct=v(1059),vt=v(92198),Dt=v(72986),Pt=v(29521),zt=v(68896),Vt=v(36787),it=v(37340);const Tt=["body"];function At(Ae,gn){}const ft=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Et=["mat-expansion-panel-header","*","mat-action-row"];function Bt(Ae,gn){if(1&Ae&&d._UZ(0,"span",2),2&Ae){const we=d.oxw();d.Q6J("@indicatorRotate",we._getExpandedState())}}const Ft=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],Gt=new d.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",be={indicatorRotate:(0,it.X$)("indicatorRotate",[(0,it.SB)("collapsed, void",(0,it.oB)({transform:"rotate(0deg)"})),(0,it.SB)("expanded",(0,it.oB)({transform:"rotate(180deg)"})),(0,it.eR)("expanded <=> collapsed, void => collapsed",(0,it.jt)(ve))]),bodyExpansion:(0,it.X$)("bodyExpansion",[(0,it.SB)("collapsed, void",(0,it.oB)({height:"0px",visibility:"hidden"})),(0,it.SB)("expanded",(0,it.oB)({height:"*",visibility:"visible"})),(0,it.eR)("expanded <=> collapsed, void => collapsed",(0,it.jt)(ve))])},Le=new d.OlP("MAT_EXPANSION_PANEL");let qe=(()=>{class Ae{constructor(we,un){this._template=we,this._expansionPanel=un}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(d.Rgc),d.Y36(Le,8))},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ae})(),$e=0;const Xt=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class Ae extends D{constructor(we,un,Un,oi,vi,si,Ke){super(we,un,Un),this._viewContainerRef=oi,this._animationMode=si,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new T.xQ,this._headerId="mat-expansion-panel-header-"+$e++,this._bodyAnimationDone=new T.xQ,this.accordion=we,this._document=vi,this._bodyAnimationDone.pipe((0,at.x)((ne,lt)=>ne.fromState===lt.fromState&&ne.toState===lt.toState)).subscribe(ne=>{"void"!==ne.fromState&&("expanded"===ne.toState?this.afterExpand.emit():"collapsed"===ne.toState&&this.afterCollapse.emit())}),Ke&&(this.hideToggle=Ke.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(we){this._hideToggle=(0,b.Ig)(we)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(we){this._togglePosition=we}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ct.O)(null),(0,vt.h)(()=>this.expanded&&!this._portal),(0,Dt.q)(1)).subscribe(()=>{this._portal=new F.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(we){this._inputChanges.next(we)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const we=this._document.activeElement,un=this._body.nativeElement;return we===un||un.contains(we)}return!1}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(Gt,12),d.Y36(d.sBO),d.Y36(p.A8),d.Y36(d.s_b),d.Y36(z.K0),d.Y36(d.QbO,8),d.Y36(Xt,8))},Ae.\u0275cmp=d.Xpm({type:Ae,selectors:[["mat-expansion-panel"]],contentQueries:function(we,un,Un){if(1&we&&d.Suo(Un,qe,5),2&we){let oi;d.iGM(oi=d.CRH())&&(un._lazyContent=oi.first)}},viewQuery:function(we,un){if(1&we&&d.Gf(Tt,5),2&we){let Un;d.iGM(Un=d.CRH())&&(un._body=Un.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(we,un){2&we&&d.ekj("mat-expanded",un.expanded)("_mat-animation-noopable","NoopAnimations"===un._animationMode)("mat-expansion-panel-spacing",un._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[d._Bn([{provide:Gt,useValue:void 0},{provide:Le,useExisting:Ae}]),d.qOj,d.TTD],ngContentSelectors:Et,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(we,un){1&we&&(d.F$t(ft),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(oi){return un._bodyAnimationDone.next(oi)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,At,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&we&&(d.xp6(1),d.Q6J("@bodyExpansion",un._getExpandedState())("id",un.id),d.uIk("aria-labelledby",un._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",un._portal))},dependencies:[F.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[be.bodyExpansion]},changeDetection:0}),Ae})();class Kt{}const de=(0,J.sb)(Kt);let Wt=(()=>{class Ae extends de{constructor(we,un,Un,oi,vi,si,Ke){super(),this.panel=we,this._element=un,this._focusMonitor=Un,this._changeDetectorRef=oi,this._animationMode=si,this._parentChangeSubscription=t.w.EMPTY;const ne=we.accordion?we.accordion._stateChanges.pipe((0,vt.h)(lt=>!(!lt.hideToggle&&!lt.togglePosition))):zt.E;this.tabIndex=parseInt(Ke||"")||0,this._parentChangeSubscription=(0,Vt.T)(we.opened,we.closed,ne,we._inputChanges.pipe((0,vt.h)(lt=>!!(lt.hideToggle||lt.disabled||lt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),we.closed.pipe((0,vt.h)(()=>we._containsFocus())).subscribe(()=>Un.focusVia(un,"program")),vi&&(this.expandedHeight=vi.expandedHeight,this.collapsedHeight=vi.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const we=this._isExpanded();return we&&this.expandedHeight?this.expandedHeight:!we&&this.collapsedHeight?this.collapsedHeight:null}_keydown(we){switch(we.keyCode){case Pt.L_:case Pt.K5:(0,Pt.Vb)(we)||(we.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(we))}}focus(we,un){we?this._focusMonitor.focusVia(this._element,we,un):this._element.nativeElement.focus(un)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(we=>{we&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ae.\u0275fac=function(we){return new(we||Ae)(d.Y36(Te,1),d.Y36(d.SBq),d.Y36(K.tE),d.Y36(d.sBO),d.Y36(Xt,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},Ae.\u0275cmp=d.Xpm({type:Ae,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(we,un){1&we&&d.NdJ("click",function(){return un._toggle()})("keydown",function(oi){return un._keydown(oi)}),2&we&&(d.uIk("id",un.panel._headerId)("tabindex",un.tabIndex)("aria-controls",un._getPanelId())("aria-expanded",un._isExpanded())("aria-disabled",un.panel.disabled),d.Udp("height",un._getHeaderHeight()),d.ekj("mat-expanded",un._isExpanded())("mat-expansion-toggle-indicator-after","after"===un._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===un._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===un._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:se,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(we,un){1&we&&(d.F$t(Ft),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Bt,1,1,"span",1)),2&we&&(d.ekj("mat-content-hide-toggle",!un._showToggle()),d.xp6(4),d.Q6J("ngIf",un._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[be.indicatorRotate]},changeDetection:0}),Ae})(),re=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ae})(),De=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ae})(),on=(()=>{class Ae extends U{constructor(){super(...arguments),this._ownHeaders=new d.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(we){this._hideToggle=(0,b.Ig)(we)}ngAfterContentInit(){this._headers.changes.pipe((0,ct.O)(this._headers)).subscribe(we=>{this._ownHeaders.reset(we.filter(un=>un.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(we){this._keyManager.onKeydown(we)}_handleHeaderFocus(we){this._keyManager.updateActiveItem(we)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ae.\u0275fac=function(){let gn;return function(un){return(gn||(gn=d.n5z(Ae)))(un||Ae)}}(),Ae.\u0275dir=d.lG2({type:Ae,selectors:[["mat-accordion"]],contentQueries:function(we,un,Un){if(1&we&&d.Suo(Un,Wt,5),2&we){let oi;d.iGM(oi=d.CRH())&&(un._headers=oi)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(we,un){2&we&&d.ekj("mat-accordion-multi",un.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:Gt,useExisting:Ae}]),d.qOj]}),Ae})(),_n=(()=>{class Ae{}return Ae.\u0275fac=function(we){return new(we||Ae)},Ae.\u0275mod=d.oAB({type:Ae}),Ae.\u0275inj=d.cJS({imports:[z.ez,J.BQ,P,F.eL]}),Ae})()},59549:(ot,et,v)=>{"use strict";v.d(et,{Eo:()=>qe,G_:()=>vi,KE:()=>si,R9:()=>Ae,TO:()=>be,bx:()=>de,hX:()=>Wt,lN:()=>Ke,o2:()=>oi,qo:()=>on});var d=v(49643),p=v(36895),b=v(94650),T=v(3238),t=v(40445),A=v(21281),x=v(8929),U=v(36787),k=v(23753),D=v(1059),P=v(7625),F=v(72986),z=v(37340),J=v(83353);const K=["connectionContainer"],at=["inputContainer"],ct=["label"];function vt(ne,lt){1&ne&&(b.ynx(0),b.TgZ(1,"div",14),b._UZ(2,"div",15)(3,"div",16)(4,"div",17),b.qZA(),b.TgZ(5,"div",18),b._UZ(6,"div",15)(7,"div",16)(8,"div",17),b.qZA(),b.BQk())}function Dt(ne,lt){if(1&ne){const nt=b.EpF();b.TgZ(0,"div",19),b.NdJ("cdkObserveContent",function(){b.CHM(nt);const Jt=b.oxw();return b.KtG(Jt.updateOutlineGap())}),b.Hsn(1,1),b.qZA()}if(2&ne){const nt=b.oxw();b.Q6J("cdkObserveContentDisabled","outline"!=nt.appearance)}}function Pt(ne,lt){if(1&ne&&(b.ynx(0),b.Hsn(1,2),b.TgZ(2,"span"),b._uU(3),b.qZA(),b.BQk()),2&ne){const nt=b.oxw(2);b.xp6(3),b.Oqu(nt._control.placeholder)}}function zt(ne,lt){1&ne&&b.Hsn(0,3,["*ngSwitchCase","true"])}function Vt(ne,lt){1&ne&&(b.TgZ(0,"span",23),b._uU(1," *"),b.qZA())}function it(ne,lt){if(1&ne){const nt=b.EpF();b.TgZ(0,"label",20,21),b.NdJ("cdkObserveContent",function(){b.CHM(nt);const Jt=b.oxw();return b.KtG(Jt.updateOutlineGap())}),b.YNc(2,Pt,4,1,"ng-container",12),b.YNc(3,zt,1,0,"ng-content",12),b.YNc(4,Vt,2,0,"span",22),b.qZA()}if(2&ne){const nt=b.oxw();b.ekj("mat-empty",nt._control.empty&&!nt._shouldAlwaysFloat())("mat-form-field-empty",nt._control.empty&&!nt._shouldAlwaysFloat())("mat-accent","accent"==nt.color)("mat-warn","warn"==nt.color),b.Q6J("cdkObserveContentDisabled","outline"!=nt.appearance)("id",nt._labelId)("ngSwitch",nt._hasLabel()),b.uIk("for",nt._control.id)("aria-owns",nt._control.id),b.xp6(2),b.Q6J("ngSwitchCase",!1),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngIf",!nt.hideRequiredMarker&&nt._control.required&&!nt._control.disabled)}}function Tt(ne,lt){1&ne&&(b.TgZ(0,"div",24),b.Hsn(1,4),b.qZA())}function At(ne,lt){if(1&ne&&(b.TgZ(0,"div",25),b._UZ(1,"span",26),b.qZA()),2&ne){const nt=b.oxw();b.xp6(1),b.ekj("mat-accent","accent"==nt.color)("mat-warn","warn"==nt.color)}}function ft(ne,lt){if(1&ne&&(b.TgZ(0,"div"),b.Hsn(1,5),b.qZA()),2&ne){const nt=b.oxw();b.Q6J("@transitionMessages",nt._subscriptAnimationState)}}function Et(ne,lt){if(1&ne&&(b.TgZ(0,"div",30),b._uU(1),b.qZA()),2&ne){const nt=b.oxw(2);b.Q6J("id",nt._hintLabelId),b.xp6(1),b.Oqu(nt.hintLabel)}}function Bt(ne,lt){if(1&ne&&(b.TgZ(0,"div",27),b.YNc(1,Et,2,2,"div",28),b.Hsn(2,6),b._UZ(3,"div",29),b.Hsn(4,7),b.qZA()),2&ne){const nt=b.oxw();b.Q6J("@transitionMessages",nt._subscriptAnimationState),b.xp6(1),b.Q6J("ngIf",nt.hintLabel)}}const Ft=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],se=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Gt=0;const ve=new b.OlP("MatError");let be=(()=>{class ne{constructor(nt,kt){this.id="mat-error-"+Gt++,nt||kt.nativeElement.setAttribute("aria-live","polite")}}return ne.\u0275fac=function(nt){return new(nt||ne)(b.$8M("aria-live"),b.Y36(b.SBq))},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(nt,kt){2&nt&&b.uIk("id",kt.id)},inputs:{id:"id"},features:[b._Bn([{provide:ve,useExisting:ne}])]}),ne})();const Le={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qe=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne}),ne})(),ae=0;const Kt=new b.OlP("MatHint");let de=(()=>{class ne{constructor(){this.align="start",this.id="mat-hint-"+ae++}}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(nt,kt){2&nt&&(b.uIk("id",kt.id)("align",null),b.ekj("mat-form-field-hint-end","end"===kt.align))},inputs:{align:"align",id:"id"},features:[b._Bn([{provide:Kt,useExisting:ne}])]}),ne})(),Wt=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-label"]]}),ne})(),re=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["mat-placeholder"]]}),ne})();const De=new b.OlP("MatPrefix");let on=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["","matPrefix",""]],features:[b._Bn([{provide:De,useExisting:ne}])]}),ne})();const _n=new b.OlP("MatSuffix");let Ae=(()=>{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275dir=b.lG2({type:ne,selectors:[["","matSuffix",""]],features:[b._Bn([{provide:_n,useExisting:ne}])]}),ne})(),gn=0;const Un=(0,T.pj)(class{constructor(ne){this._elementRef=ne}},"primary"),oi=new b.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),vi=new b.OlP("MatFormField");let si=(()=>{class ne extends Un{constructor(nt,kt,Jt,oe,Ce,Oe,Dn){super(nt),this._changeDetectorRef=kt,this._dir=Jt,this._defaults=oe,this._platform=Ce,this._ngZone=Oe,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new x.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+gn++,this._labelId="mat-form-field-label-"+gn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Dn,this.appearance=oe?.appearance||"legacy",oe&&(this._hideRequiredMarker=Boolean(oe.hideRequiredMarker),oe.color&&(this.color=this.defaultColor=oe.color))}get appearance(){return this._appearance}set appearance(nt){const kt=this._appearance;this._appearance=nt||this._defaults?.appearance||"legacy","outline"===this._appearance&&kt!==nt&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(nt){this._hideRequiredMarker=(0,A.Ig)(nt)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(nt){this._hintLabel=nt,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(nt){nt!==this._floatLabel&&(this._floatLabel=nt||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(nt){this._explicitFormFieldControl=nt}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const nt=this._control;nt.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${nt.controlType}`),nt.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),nt.ngControl&&nt.ngControl.valueChanges&&nt.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,U.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(nt){const kt=this._control?this._control.ngControl:null;return kt&&kt[nt]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,k.R)(this._label.nativeElement,"transitionend").pipe((0,F.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let nt=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&nt.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const kt=this._hintChildren?this._hintChildren.find(oe=>"start"===oe.align):null,Jt=this._hintChildren?this._hintChildren.find(oe=>"end"===oe.align):null;kt?nt.push(kt.id):this._hintLabel&&nt.push(this._hintLabelId),Jt&&nt.push(Jt.id)}else this._errorChildren&&nt.push(...this._errorChildren.map(kt=>kt.id));this._control.setDescribedByIds(nt)}}_validateControlChild(){}updateOutlineGap(){const nt=this._label?this._label.nativeElement:null,kt=this._connectionContainerRef.nativeElement,Jt=".mat-form-field-outline-start",oe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!nt||!nt.children.length||!nt.textContent.trim()){const mi=kt.querySelectorAll(`${Jt}, ${oe}`);for(let Li=0;Li0?.75*Bn+10:0}for(let mi=0;mi{class ne{}return ne.\u0275fac=function(nt){return new(nt||ne)},ne.\u0275mod=b.oAB({type:ne}),ne.\u0275inj=b.cJS({imports:[p.ez,T.BQ,d.Q8,T.BQ]}),ne})()},90782:(ot,et,v)=>{"use strict";v.d(et,{DX:()=>F,Il:()=>At,N6:()=>ft});var d=v(94650),p=v(3238),b=v(21281),T=v(40445);const t=["*"];class k{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const Ft=Math.max(...this.tracker);return Ft>1?this.rowCount+Ft-1:this.rowCount}update(Ft,se){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(Ft),this.tracker.fill(0,0,this.tracker.length),this.positions=se.map(Gt=>this._trackTile(Gt))}_trackTile(Ft){const se=this._findMatchingGap(Ft.colspan);return this._markTilePosition(se,Ft),this.columnIndex=se+Ft.colspan,new D(this.rowIndex,se)}_findMatchingGap(Ft){let se=-1,Gt=-1;do{this.columnIndex+Ft>this.tracker.length?(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),Gt=this._findGapEndIndex(se)):(se=this.tracker.indexOf(0,this.columnIndex),-1!=se?(Gt=this._findGapEndIndex(se),this.columnIndex=se+1):(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),Gt=this._findGapEndIndex(se)))}while(Gt-se{class Bt{constructor(se,Gt){this._element=se,this._gridList=Gt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(se){this._rowspan=Math.round((0,b.su)(se))}get colspan(){return this._colspan}set colspan(se){this._colspan=Math.round((0,b.su)(se))}_setStyle(se,Gt){this._element.nativeElement.style[se]=Gt}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(P,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(se,Gt){2&se&&d.uIk("rowspan",Gt.rowspan)("colspan",Gt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(se,Gt){1&se&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})();const ct=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class vt{constructor(){this._rows=0,this._rowspan=0}init(Ft,se,Gt,ve){this._gutterSize=it(Ft),this._rows=se.rowCount,this._rowspan=se.rowspan,this._cols=Gt,this._direction=ve}getBaseTileSize(Ft,se){return`(${Ft}% - (${this._gutterSize} * ${se}))`}getTilePosition(Ft,se){return 0===se?"0":Vt(`(${Ft} + ${this._gutterSize}) * ${se}`)}getTileSize(Ft,se){return`(${Ft} * ${se}) + (${se-1} * ${this._gutterSize})`}setStyle(Ft,se,Gt){let ve=100/this._cols,be=(this._cols-1)/this._cols;this.setColStyles(Ft,Gt,ve,be),this.setRowStyles(Ft,se,ve,be)}setColStyles(Ft,se,Gt,ve){let be=this.getBaseTileSize(Gt,ve);Ft._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(be,se)),Ft._setStyle("width",Vt(this.getTileSize(be,Ft.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(Ft){return`${this._rowspan} * ${this.getTileSize(Ft,1)}`}getComputedHeight(){return null}}class Dt extends vt{constructor(Ft){super(),this.fixedRowHeight=Ft}init(Ft,se,Gt,ve){super.init(Ft,se,Gt,ve),this.fixedRowHeight=it(this.fixedRowHeight),ct.test(this.fixedRowHeight)}setRowStyles(Ft,se){Ft._setStyle("top",this.getTilePosition(this.fixedRowHeight,se)),Ft._setStyle("height",Vt(this.getTileSize(this.fixedRowHeight,Ft.rowspan)))}getComputedHeight(){return["height",Vt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(Ft){Ft._setListStyle(["height",null]),Ft._tiles&&Ft._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}class Pt extends vt{constructor(Ft){super(),this._parseRatio(Ft)}setRowStyles(Ft,se,Gt,ve){this.baseTileHeight=this.getBaseTileSize(Gt/this.rowHeightRatio,ve),Ft._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,se)),Ft._setStyle("paddingTop",Vt(this.getTileSize(this.baseTileHeight,Ft.rowspan)))}getComputedHeight(){return["paddingBottom",Vt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(Ft){Ft._setListStyle(["paddingBottom",null]),Ft._tiles.forEach(se=>{se._setStyle("marginTop",null),se._setStyle("paddingTop",null)})}_parseRatio(Ft){const se=Ft.split(":");this.rowHeightRatio=parseFloat(se[0])/parseFloat(se[1])}}class zt extends vt{setRowStyles(Ft,se){let be=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);Ft._setStyle("top",this.getTilePosition(be,se)),Ft._setStyle("height",Vt(this.getTileSize(be,Ft.rowspan)))}reset(Ft){Ft._tiles&&Ft._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}function Vt(Bt){return`calc(${Bt})`}function it(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let At=(()=>{class Bt{constructor(se,Gt){this._element=se,this._dir=Gt,this._gutter="1px"}get cols(){return this._cols}set cols(se){this._cols=Math.max(1,Math.round((0,b.su)(se)))}get gutterSize(){return this._gutter}set gutterSize(se){this._gutter=`${se??""}`}get rowHeight(){return this._rowHeight}set rowHeight(se){const Gt=`${se??""}`;Gt!==this._rowHeight&&(this._rowHeight=Gt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(se){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===se?new zt:se&&se.indexOf(":")>-1?new Pt(se):new Dt(se)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new k);const se=this._tileCoordinator,Gt=this._tiles.filter(be=>!be._gridList||be._gridList===this),ve=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Gt),this._tileStyler.init(this.gutterSize,se,this.cols,ve),Gt.forEach((be,Le)=>{const qe=se.positions[Le];this._tileStyler.setStyle(be,qe.row,qe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(se){se&&(this._element.nativeElement.style[se[0]]=se[1])}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(T.Is,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(se,Gt,ve){if(1&se&&d.Suo(ve,F,5),2&se){let be;d.iGM(be=d.CRH())&&(Gt._tiles=be)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(se,Gt){2&se&&d.uIk("cols",Gt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:P,useExisting:Bt}])],ngContentSelectors:t,decls:2,vars:0,template:function(se,Gt){1&se&&(d.F$t(),d.TgZ(0,"div"),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Bt})(),ft=(()=>{class Bt{}return Bt.\u0275fac=function(se){return new(se||Bt)},Bt.\u0275mod=d.oAB({type:Bt}),Bt.\u0275inj=d.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Bt})()},97392:(ot,et,v)=>{"use strict";v.d(et,{Hw:()=>ae,Ps:()=>Kt});var d=v(94650),p=v(3238),b=v(21281),T=v(36895),t=v(21086),A=v(61737),x=v(30567),U=v(42654),k=v(22868),D=v(24850),P=v(27221),F=v(40537),z=v(12474),J=v(72986),K=v(80529),at=v(11481);const ct=["*"];let vt;function Pt(de){return function Dt(){if(void 0===vt&&(vt=null,typeof window<"u")){const de=window;void 0!==de.trustedTypes&&(vt=de.trustedTypes.createPolicy("angular#components",{createHTML:Wt=>Wt}))}return vt}()?.createHTML(de)||de}function zt(de){return Error(`Unable to find icon with the name "${de}"`)}function it(de){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${de}".`)}function Tt(de){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${de}".`)}class At{constructor(Wt,re,De){this.url=Wt,this.svgText=re,this.options=De}}let ft=(()=>{class de{constructor(re,De,on,_n){this._httpClient=re,this._sanitizer=De,this._errorHandler=_n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=on}addSvgIcon(re,De,on){return this.addSvgIconInNamespace("",re,De,on)}addSvgIconLiteral(re,De,on){return this.addSvgIconLiteralInNamespace("",re,De,on)}addSvgIconInNamespace(re,De,on,_n){return this._addSvgIconConfig(re,De,new At(on,null,_n))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,De,on,_n){const Ae=this._sanitizer.sanitize(d.q3G.HTML,on);if(!Ae)throw Tt(on);const gn=Pt(Ae);return this._addSvgIconConfig(re,De,new At("",gn,_n))}addSvgIconSet(re,De){return this.addSvgIconSetInNamespace("",re,De)}addSvgIconSetLiteral(re,De){return this.addSvgIconSetLiteralInNamespace("",re,De)}addSvgIconSetInNamespace(re,De,on){return this._addSvgIconSetConfig(re,new At(De,null,on))}addSvgIconSetLiteralInNamespace(re,De,on){const _n=this._sanitizer.sanitize(d.q3G.HTML,De);if(!_n)throw Tt(De);const Ae=Pt(_n);return this._addSvgIconSetConfig(re,new At("",Ae,on))}registerFontClassAlias(re,De=re){return this._fontCssClassesByAlias.set(re,De),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const De=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,re);if(!De)throw it(re);const on=this._cachedIconsByUrl.get(De);return on?(0,t.of)(Ft(on)):this._loadSvgIconFromConfig(new At(re,null)).pipe((0,k.b)(_n=>this._cachedIconsByUrl.set(De,_n)),(0,D.U)(_n=>Ft(_n)))}getNamedSvgIcon(re,De=""){const on=se(De,re);let _n=this._svgIconConfigs.get(on);if(_n)return this._getSvgFromConfig(_n);if(_n=this._getIconConfigFromResolvers(De,re),_n)return this._svgIconConfigs.set(on,_n),this._getSvgFromConfig(_n);const Ae=this._iconSetConfigs.get(De);return Ae?this._getSvgFromIconSetConfigs(re,Ae):(0,A._)(zt(on))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,t.of)(Ft(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,D.U)(De=>Ft(De)))}_getSvgFromIconSetConfigs(re,De){const on=this._extractIconWithNameFromAnySet(re,De);if(on)return(0,t.of)(on);const _n=De.filter(Ae=>!Ae.svgText).map(Ae=>this._loadSvgIconSetFromConfig(Ae).pipe((0,P.K)(gn=>{const un=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,Ae.url)} failed: ${gn.message}`;return this._errorHandler.handleError(new Error(un)),(0,t.of)(null)})));return(0,x.D)(_n).pipe((0,D.U)(()=>{const Ae=this._extractIconWithNameFromAnySet(re,De);if(!Ae)throw zt(re);return Ae}))}_extractIconWithNameFromAnySet(re,De){for(let on=De.length-1;on>=0;on--){const _n=De[on];if(_n.svgText&&_n.svgText.toString().indexOf(re)>-1){const Ae=this._svgElementFromConfig(_n),gn=this._extractSvgIconFromSet(Ae,re,_n.options);if(gn)return gn}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,k.b)(De=>re.svgText=De),(0,D.U)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,t.of)(null):this._fetchIcon(re).pipe((0,k.b)(De=>re.svgText=De))}_extractSvgIconFromSet(re,De,on){const _n=re.querySelector(`[id="${De}"]`);if(!_n)return null;const Ae=_n.cloneNode(!0);if(Ae.removeAttribute("id"),"svg"===Ae.nodeName.toLowerCase())return this._setSvgAttributes(Ae,on);if("symbol"===Ae.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ae),on);const gn=this._svgElementFromString(Pt(""));return gn.appendChild(Ae),this._setSvgAttributes(gn,on)}_svgElementFromString(re){const De=this._document.createElement("DIV");De.innerHTML=re;const on=De.querySelector("svg");if(!on)throw Error(" tag not found");return on}_toSvgElement(re){const De=this._svgElementFromString(Pt("")),on=re.attributes;for(let _n=0;_nPt(un)),(0,F.x)(()=>this._inProgressUrlFetches.delete(Ae)),(0,z.B)());return this._inProgressUrlFetches.set(Ae,we),we}_addSvgIconConfig(re,De,on){return this._svgIconConfigs.set(se(re,De),on),this}_addSvgIconSetConfig(re,De){const on=this._iconSetConfigs.get(re);return on?on.push(De):this._iconSetConfigs.set(re,[De]),this}_svgElementFromConfig(re){if(!re.svgElement){const De=this._svgElementFromString(re.svgText);this._setSvgAttributes(De,re.options),re.svgElement=De}return re.svgElement}_getIconConfigFromResolvers(re,De){for(let on=0;onWt?Wt.pathname+Wt.search:""}}}),$e=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xt=$e.map(de=>`[${de}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let ae=(()=>{class de extends ve{constructor(re,De,on,_n,Ae,gn){super(re),this._iconRegistry=De,this._location=_n,this._errorHandler=Ae,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=U.w.EMPTY,gn&&(gn.color&&(this.color=this.defaultColor=gn.color),gn.fontSet&&(this.fontSet=gn.fontSet)),on||re.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(re){this._inline=(0,b.Ig)(re)}get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}get fontSet(){return this._fontSet}set fontSet(re){const De=this._cleanupFontValue(re);De!==this._fontSet&&(this._fontSet=De,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(re){const De=this._cleanupFontValue(re);De!==this._fontIcon&&(this._fontIcon=De,this._updateFontIconClasses())}_splitIconName(re){if(!re)return["",""];const De=re.split(":");switch(De.length){case 1:return["",De[0]];case 2:return De;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const De=this._location.getPathname();De!==this._previousPath&&(this._previousPath=De,this._prependPathToReferences(De))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const De=this._location.getPathname();this._previousPath=De,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(De),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let De=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();De--;){const on=re.childNodes[De];(1!==on.nodeType||"svg"===on.nodeName.toLowerCase())&&on.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,De=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(on=>on.length>0);this._previousFontSetClass.forEach(on=>re.classList.remove(on)),De.forEach(on=>re.classList.add(on)),this._previousFontSetClass=De,this.fontIcon!==this._previousFontIconClass&&!De.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const De=this._elementsWithExternalReferences;De&&De.forEach((on,_n)=>{on.forEach(Ae=>{_n.setAttribute(Ae.name,`url('${re}#${Ae.value}')`)})})}_cacheChildrenWithExternalReferences(re){const De=re.querySelectorAll(Xt),on=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _n=0;_n{const gn=De[_n],we=gn.getAttribute(Ae),un=we?we.match(Te):null;if(un){let Un=on.get(gn);Un||(Un=[],on.set(gn,Un)),Un.push({name:Ae,value:un[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[De,on]=this._splitIconName(re);De&&(this._svgNamespace=De),on&&(this._svgName=on),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(on,De).pipe((0,J.q)(1)).subscribe(_n=>this._setSvgElement(_n),_n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${De}:${on}! ${_n.message}`))})}}}return de.\u0275fac=function(re){return new(re||de)(d.Y36(d.SBq),d.Y36(ft),d.$8M("aria-hidden"),d.Y36(Le),d.Y36(d.qLn),d.Y36(be,8))},de.\u0275cmp=d.Xpm({type:de,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(re,De){2&re&&(d.uIk("data-mat-icon-type",De._usingFontIcon()?"font":"svg")("data-mat-icon-name",De._svgName||De.fontIcon)("data-mat-icon-namespace",De._svgNamespace||De.fontSet)("fontIcon",De._usingFontIcon()?De.fontIcon:null),d.ekj("mat-icon-inline",De.inline)("mat-icon-no-color","primary"!==De.color&&"accent"!==De.color&&"warn"!==De.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:ct,decls:1,vars:0,template:function(re,De){1&re&&(d.F$t(),d.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),de})(),Kt=(()=>{class de{}return de.\u0275fac=function(re){return new(re||de)},de.\u0275mod=d.oAB({type:de}),de.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),de})()},284:(ot,et,v)=>{"use strict";v.d(et,{Jk:()=>D,Nt:()=>J,c:()=>K});var d=v(21281),p=v(83353),b=v(39349),T=v(94650),t=v(24006),A=v(3238),x=v(59549),U=v(8929);const D=new T.OlP("MAT_INPUT_VALUE_ACCESSOR"),P=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let F=0;const z=(0,A.FD)(class{constructor(at,ct,vt,Dt){this._defaultErrorStateMatcher=at,this._parentForm=ct,this._parentFormGroup=vt,this.ngControl=Dt,this.stateChanges=new U.xQ}});let J=(()=>{class at extends z{constructor(vt,Dt,Pt,zt,Vt,it,Tt,At,ft,Et){super(it,zt,Vt,Pt),this._elementRef=vt,this._platform=Dt,this._autofillMonitor=At,this._formField=Et,this._uid="mat-input-"+F++,this.focused=!1,this.stateChanges=new U.xQ,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(se=>(0,p.qK)().has(se)),this._iOSKeyupListener=se=>{const Gt=se.target;!Gt.value&&0===Gt.selectionStart&&0===Gt.selectionEnd&&(Gt.setSelectionRange(1,1),Gt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,Ft=Bt.nodeName.toLowerCase();this._inputValueAccessor=Tt||Bt,this._previousNativeValue=this.value,this.id=this.id,Dt.IOS&&ft.runOutsideAngular(()=>{vt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Ft,this._isTextarea="textarea"===Ft,this._isInFormField=!!Et,this._isNativeSelect&&(this.controlType=Bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(vt){this._disabled=(0,d.Ig)(vt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(vt){this._id=vt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(vt){this._required=(0,d.Ig)(vt)}get type(){return this._type}set type(vt){this._type=vt||"text",this._validateType(),!this._isTextarea&&(0,p.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(vt){vt!==this.value&&(this._inputValueAccessor.value=vt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(vt){this._readonly=(0,d.Ig)(vt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(vt=>{this.autofilled=vt.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._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(vt){this._elementRef.nativeElement.focus(vt)}_focusChanged(vt){vt!==this.focused&&(this.focused=vt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const vt=this._formField,Dt=vt&&"legacy"===vt.appearance&&!vt._hasLabel?.()?null:this.placeholder;if(Dt!==this._previousPlaceholder){const Pt=this._elementRef.nativeElement;this._previousPlaceholder=Dt,Dt?Pt.setAttribute("placeholder",Dt):Pt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const vt=this._elementRef.nativeElement.value;this._previousNativeValue!==vt&&(this._previousNativeValue=vt,this.stateChanges.next())}_validateType(){P.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let vt=this._elementRef.nativeElement.validity;return vt&&vt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const vt=this._elementRef.nativeElement,Dt=vt.options[0];return this.focused||vt.multiple||!this.empty||!!(vt.selectedIndex>-1&&Dt&&Dt.label)}return this.focused||!this.empty}setDescribedByIds(vt){vt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",vt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const vt=this._elementRef.nativeElement;return this._isNativeSelect&&(vt.multiple||vt.size>1)}}return at.\u0275fac=function(vt){return new(vt||at)(T.Y36(T.SBq),T.Y36(p.t4),T.Y36(t.a5,10),T.Y36(t.F,8),T.Y36(t.sg,8),T.Y36(A.rD),T.Y36(D,10),T.Y36(b.Lq),T.Y36(T.R0b),T.Y36(x.G_,8))},at.\u0275dir=T.lG2({type:at,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(vt,Dt){1&vt&&T.NdJ("focus",function(){return Dt._focusChanged(!0)})("blur",function(){return Dt._focusChanged(!1)})("input",function(){return Dt._onInput()}),2&vt&&(T.Ikx("disabled",Dt.disabled)("required",Dt.required),T.uIk("id",Dt.id)("data-placeholder",Dt.placeholder)("name",Dt.name||null)("readonly",Dt.readonly&&!Dt._isNativeSelect||null)("aria-invalid",Dt.empty&&Dt.required?null:Dt.errorState)("aria-required",Dt.required),T.ekj("mat-input-server",Dt._isServer)("mat-native-select-inline",Dt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[T._Bn([{provide:x.Eo,useExisting:at}]),T.qOj,T.TTD]}),at})(),K=(()=>{class at{}return at.\u0275fac=function(vt){return new(vt||at)},at.\u0275mod=T.oAB({type:at}),at.\u0275inj=T.cJS({providers:[A.rD],imports:[b.Ky,x.lN,A.BQ,b.Ky,x.lN]}),at})()},96338:(ot,et,v)=>{"use strict";v.d(et,{Hk:()=>At,Nh:()=>Bt,Tg:()=>se,gs:()=>Ft,i$:()=>ft,ie:()=>Xt});var d=v(36895),p=v(94650),b=v(3238),T=v(21281),t=v(8929),A=v(7625),F=(v(1059),v(12687),v(95017),v(29521),v(24006),v(44850));const z=["*"],K=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],at=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],zt=(0,b.Id)((0,b.Kr)(class{})),Vt=(0,b.Kr)(class{}),it=new p.OlP("MatList"),Tt=new p.OlP("MatNavList");let At=(()=>{class Te extends zt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(){let ae;return function(de){return(ae||(ae=p.n5z(Te)))(de||Te)}}(),Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[p._Bn([{provide:Tt,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),ft=(()=>{class Te extends zt{constructor(Kt){super(),this._elementRef=Kt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(Kt.nativeElement.classList.add("mat-action-list"),Kt.nativeElement.setAttribute("role","group"))}_getListType(){const Kt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Kt?"list":"mat-action-list"===Kt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(Kt){return new(Kt||Te)(p.Y36(p.SBq))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:it,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),Et=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Bt=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),Ft=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Te})(),se=(()=>{class Te extends Vt{constructor(Kt,de,Wt,re){super(),this._element=Kt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Wt||re&&"action-list"===re._getListType()),this._list=Wt||re;const De=this._getHostElement();"button"===De.nodeName.toLowerCase()&&!De.hasAttribute("type")&&De.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{de.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Kt){this._disabled=(0,T.Ig)(Kt)}ngAfterContentInit(){(0,b.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Te.\u0275fac=function(Kt){return new(Kt||Te)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Tt,8),p.Y36(it,8))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Kt,de,Wt){if(1&Kt&&(p.Suo(Wt,Et,5),p.Suo(Wt,Bt,5),p.Suo(Wt,b.X2,5)),2&Kt){let re;p.iGM(re=p.CRH())&&(de._avatar=re.first),p.iGM(re=p.CRH())&&(de._icon=re.first),p.iGM(re=p.CRH())&&(de._lines=re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Kt,de){2&Kt&&p.ekj("mat-list-item-disabled",de.disabled)("mat-list-item-with-avatar",de._avatar||de._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:at,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(Kt,de){1&Kt&&(p.F$t(K),p.TgZ(0,"span",0),p._UZ(1,"span",1),p.Hsn(2),p.TgZ(3,"span",2),p.Hsn(4,1),p.qZA(),p.Hsn(5,2),p.qZA()),2&Kt&&(p.xp6(1),p.Q6J("matRippleTrigger",de._getHostElement())("matRippleDisabled",de._isRippleDisabled()))},dependencies:[b.wG],encapsulation:2,changeDetection:0}),Te})(),Xt=(()=>{class Te{}return Te.\u0275fac=function(Kt){return new(Kt||Te)},Te.\u0275mod=p.oAB({type:Te}),Te.\u0275inj=p.cJS({imports:[b.uc,b.si,b.BQ,b.us,d.ez,b.uc,b.BQ,b.us,F.t]}),Te})()},28255:(ot,et,v)=>{"use strict";v.d(et,{OP:()=>ae,Tx:()=>oi,VK:()=>De,p6:()=>Un});var d=v(12687),p=v(21281),b=v(29521),T=v(94650),t=v(8929),A=v(42654),x=v(36787),U=v(21086),k=v(8139),D=v(1059),P=v(87545),F=v(72986),z=v(7625),J=v(92198),K=v(18583),at=v(37340),ct=v(84080),vt=v(36895),Dt=v(3238),Pt=v(40445),zt=v(98184),Vt=v(83353),it=v(67376);const Tt=["mat-menu-item",""];function At(vi,si){1&vi&&(T.O4$(),T.TgZ(0,"svg",2),T._UZ(1,"polygon",3),T.qZA())}const ft=["*"];function Et(vi,si){if(1&vi){const Ke=T.EpF();T.TgZ(0,"div",0),T.NdJ("keydown",function(lt){T.CHM(Ke);const nt=T.oxw();return T.KtG(nt._handleKeydown(lt))})("click",function(){T.CHM(Ke);const lt=T.oxw();return T.KtG(lt.closed.emit("click"))})("@transformMenu.start",function(lt){T.CHM(Ke);const nt=T.oxw();return T.KtG(nt._onAnimationStart(lt))})("@transformMenu.done",function(lt){T.CHM(Ke);const nt=T.oxw();return T.KtG(nt._onAnimationDone(lt))}),T.TgZ(1,"div",1),T.Hsn(2),T.qZA()()}if(2&vi){const Ke=T.oxw();T.Q6J("id",Ke.panelId)("ngClass",Ke._classList)("@transformMenu",Ke._panelAnimationState),T.uIk("aria-label",Ke.ariaLabel||null)("aria-labelledby",Ke.ariaLabelledby||null)("aria-describedby",Ke.ariaDescribedby||null)}}const Bt={transformMenu:(0,at.X$)("transformMenu",[(0,at.SB)("void",(0,at.oB)({opacity:0,transform:"scale(0.8)"})),(0,at.eR)("void => enter",(0,at.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,at.oB)({opacity:1,transform:"scale(1)"}))),(0,at.eR)("* => void",(0,at.jt)("100ms 25ms linear",(0,at.oB)({opacity:0})))]),fadeInItems:(0,at.X$)("fadeInItems",[(0,at.SB)("showing",(0,at.oB)({opacity:1})),(0,at.eR)("void => *",[(0,at.oB)({opacity:0}),(0,at.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Gt=new T.OlP("MatMenuContent"),Xt=new T.OlP("MAT_MENU_PANEL"),Te=(0,Dt.Kr)((0,Dt.Id)(class{}));let ae=(()=>{class vi extends Te{constructor(Ke,ne,lt,nt,kt){super(),this._elementRef=Ke,this._document=ne,this._focusMonitor=lt,this._parentMenu=nt,this._changeDetectorRef=kt,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,nt?.addItem?.(this)}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._getHostElement(),Ke,ne):this._getHostElement().focus(ne),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Ke){this.disabled&&(Ke.preventDefault(),Ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Ke=this._elementRef.nativeElement.cloneNode(!0),ne=Ke.querySelectorAll("mat-icon, .material-icons");for(let lt=0;lt{class vi{constructor(Ke,ne,lt,nt){this._elementRef=Ke,this._ngZone=ne,this._defaultOptions=lt,this._changeDetectorRef=nt,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new T.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new T.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Wt++}get xPosition(){return this._xPosition}set xPosition(Ke){this._xPosition=Ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Ke){this._yPosition=Ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Ke){this._overlapTrigger=(0,p.Ig)(Ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ke){this._hasBackdrop=(0,p.Ig)(Ke)}set panelClass(Ke){const ne=this._previousPanelClass;ne&&ne.length&&ne.split(" ").forEach(lt=>{this._classList[lt]=!1}),this._previousPanelClass=Ke,Ke&&Ke.length&&(Ke.split(" ").forEach(lt=>{this._classList[lt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Ke){this.panelClass=Ke}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new d.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(Ke=>(0,x.T)(...Ke.map(ne=>ne._focused)))).subscribe(Ke=>this._keyManager.updateActiveItem(Ke)),this._directDescendantItems.changes.subscribe(Ke=>{const ne=this._keyManager;if("enter"===this._panelAnimationState&&ne.activeItem?._hasFocus()){const lt=Ke.toArray(),nt=Math.max(0,Math.min(lt.length-1,ne.activeItemIndex||0));lt[nt]&&!lt[nt].disabled?ne.setActiveItem(nt):ne.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(ne=>(0,x.T)(...ne.map(lt=>lt._hovered))))}addItem(Ke){}removeItem(Ke){}_handleKeydown(Ke){const ne=Ke.keyCode,lt=this._keyManager;switch(ne){case b.hY:(0,b.Vb)(Ke)||(Ke.preventDefault(),this.closed.emit("keydown"));break;case b.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case b.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ne===b.LH||ne===b.JH)&<.setFocusOrigin("keyboard"),void lt.onKeydown(Ke)}Ke.stopPropagation()}focusFirstItem(Ke="program"){this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(()=>{let ne=null;if(this._directDescendantItems.length&&(ne=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ne||!ne.contains(document.activeElement)){const lt=this._keyManager;lt.setFocusOrigin(Ke).setFirstItemActive(),!lt.activeItem&&ne&&ne.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Ke){const ne=Math.min(this._baseElevation+Ke,24),lt=`${this._elevationPrefix}${ne}`,nt=Object.keys(this._classList).find(kt=>kt.startsWith(this._elevationPrefix));(!nt||nt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[lt]=!0,this._previousElevation=lt)}setPositionClasses(Ke=this.xPosition,ne=this.yPosition){const lt=this._classList;lt["mat-menu-before"]="before"===Ke,lt["mat-menu-after"]="after"===Ke,lt["mat-menu-above"]="above"===ne,lt["mat-menu-below"]="below"===ne,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Ke){this._animationDone.next(Ke),this._isAnimating=!1}_onAnimationStart(Ke){this._isAnimating=!0,"enter"===Ke.toState&&0===this._keyManager.activeItemIndex&&(Ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(Ke=>{this._directDescendantItems.reset(Ke.filter(ne=>ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return vi.\u0275fac=function(Ke){return new(Ke||vi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},vi.\u0275dir=T.lG2({type:vi,contentQueries:function(Ke,ne,lt){if(1&Ke&&(T.Suo(lt,Gt,5),T.Suo(lt,ae,5),T.Suo(lt,ae,4)),2&Ke){let nt;T.iGM(nt=T.CRH())&&(ne.lazyContent=nt.first),T.iGM(nt=T.CRH())&&(ne._allItems=nt),T.iGM(nt=T.CRH())&&(ne.items=nt)}},viewQuery:function(Ke,ne){if(1&Ke&&T.Gf(T.Rgc,5),2&Ke){let lt;T.iGM(lt=T.CRH())&&(ne.templateRef=lt.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),vi})(),De=(()=>{class vi extends re{constructor(Ke,ne,lt,nt){super(Ke,ne,lt,nt),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return vi.\u0275fac=function(Ke){return new(Ke||vi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},vi.\u0275cmp=T.Xpm({type:vi,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Ke,ne){2&Ke&&T.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[T._Bn([{provide:Xt,useExisting:vi}]),T.qOj],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Ke,ne){1&Ke&&(T.F$t(),T.YNc(0,Et,3,6,"ng-template"))},dependencies:[vt.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bt.transformMenu,Bt.fadeInItems]},changeDetection:0}),vi})();const on=new T.OlP("mat-menu-scroll-strategy"),Ae={provide:on,deps:[zt.aV],useFactory:function _n(vi){return()=>vi.scrollStrategies.reposition()}},we=(0,Vt.i$)({passive:!0});let un=(()=>{class vi{constructor(Ke,ne,lt,nt,kt,Jt,oe,Ce,Oe){this._overlay=Ke,this._element=ne,this._viewContainerRef=lt,this._menuItemInstance=Jt,this._dir=oe,this._focusMonitor=Ce,this._ngZone=Oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=Dn=>{(0,d.yG)(Dn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new T.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=nt,this._parentMaterialMenu=kt instanceof re?kt:void 0,ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,we),Jt&&(Jt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Ke){this.menu=Ke}get menu(){return this._menu}set menu(Ke){Ke!==this._menu&&(this._menu=Ke,this._menuCloseSubscription.unsubscribe(),Ke&&(this._menuCloseSubscription=Ke.close.subscribe(ne=>{this._destroyMenu(ne),("click"===ne||"tab"===ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ne)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,we),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Ke=this.menu;if(this._menuOpen||!Ke)return;const ne=this._createOverlay(Ke),lt=ne.getConfig(),nt=lt.positionStrategy;this._setPosition(Ke,nt),lt.hasBackdrop=Ke.hasBackdrop??!this.triggersSubmenu(),ne.attach(this._getPortal(Ke)),Ke.lazyContent&&Ke.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Ke),Ke instanceof re&&(Ke._startAnimation(),Ke._directDescendantItems.changes.pipe((0,z.R)(Ke.close)).subscribe(()=>{nt.withLockedPosition(!1).reapplyLastPosition(),nt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._element,Ke,ne):this._element.nativeElement.focus(ne)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Ke){if(!this._overlayRef||!this.menuOpen)return;const ne=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ne instanceof re?(ne._resetAnimation(),ne.lazyContent?ne._animationDone.pipe((0,J.h)(lt=>"void"===lt.toState),(0,F.q)(1),(0,z.R)(ne.lazyContent._attached)).subscribe({next:()=>ne.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ne?.lazyContent?.detach())}_initMenu(Ke){Ke.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Ke.direction=this.dir,this._setMenuElevation(Ke),Ke.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Ke){if(Ke.setElevation){let ne=0,lt=Ke.parentMenu;for(;lt;)ne++,lt=lt.parentMenu;Ke.setElevation(ne)}}_setIsMenuOpen(Ke){this._menuOpen=Ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Ke)}_createOverlay(Ke){if(!this._overlayRef){const ne=this._getOverlayConfig(Ke);this._subscribeToPositions(Ke,ne.positionStrategy),this._overlayRef=this._overlay.create(ne),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Ke){return new zt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Ke.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Ke.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Ke,ne){Ke.setPositionClasses&&ne.positionChanges.subscribe(lt=>{const nt="start"===lt.connectionPair.overlayX?"after":"before",kt="top"===lt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Ke.setPositionClasses(nt,kt)):Ke.setPositionClasses(nt,kt)})}_setPosition(Ke,ne){let[lt,nt]="before"===Ke.xPosition?["end","start"]:["start","end"],[kt,Jt]="above"===Ke.yPosition?["bottom","top"]:["top","bottom"],[oe,Ce]=[kt,Jt],[Oe,Dn]=[lt,nt],Sn=0;if(this.triggersSubmenu()){if(Dn=lt="before"===Ke.xPosition?"start":"end",nt=Oe="end"===lt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}Sn="bottom"===kt?this._parentInnerPadding:-this._parentInnerPadding}}else Ke.overlapTrigger||(oe="top"===kt?"bottom":"top",Ce="top"===Jt?"bottom":"top");ne.withPositions([{originX:lt,originY:oe,overlayX:Oe,overlayY:kt,offsetY:Sn},{originX:nt,originY:oe,overlayX:Dn,overlayY:kt,offsetY:Sn},{originX:lt,originY:Ce,overlayX:Oe,overlayY:Jt,offsetY:-Sn},{originX:nt,originY:Ce,overlayX:Dn,overlayY:Jt,offsetY:-Sn}])}_menuClosingActions(){const Ke=this._overlayRef.backdropClick(),ne=this._overlayRef.detachments(),lt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,U.of)(),nt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,J.h)(kt=>kt!==this._menuItemInstance),(0,J.h)(()=>this._menuOpen)):(0,U.of)();return(0,x.T)(Ke,lt,nt,ne)}_handleMousedown(Ke){(0,d.X6)(Ke)||(this._openedBy=0===Ke.button?"mouse":void 0,this.triggersSubmenu()&&Ke.preventDefault())}_handleKeydown(Ke){const ne=Ke.keyCode;(ne===b.K5||ne===b.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ne===b.SV&&"ltr"===this.dir||ne===b.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Ke){this.triggersSubmenu()?(Ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,J.h)(Ke=>Ke===this._menuItemInstance&&!Ke.disabled),(0,K.g)(0,k.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof re&&this.menu._isAnimating?this.menu._animationDone.pipe((0,F.q)(1),(0,K.g)(0,k.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Ke){return(!this._portal||this._portal.templateRef!==Ke.templateRef)&&(this._portal=new ct.UE(Ke.templateRef,this._viewContainerRef)),this._portal}}return vi.\u0275fac=function(Ke){return new(Ke||vi)(T.Y36(zt.aV),T.Y36(T.SBq),T.Y36(T.s_b),T.Y36(on),T.Y36(Xt,8),T.Y36(ae,10),T.Y36(Pt.Is,8),T.Y36(d.tE),T.Y36(T.R0b))},vi.\u0275dir=T.lG2({type:vi,hostVars:3,hostBindings:function(Ke,ne){1&Ke&&T.NdJ("click",function(nt){return ne._handleClick(nt)})("mousedown",function(nt){return ne._handleMousedown(nt)})("keydown",function(nt){return ne._handleKeydown(nt)}),2&Ke&&T.uIk("aria-haspopup",ne.menu?"menu":null)("aria-expanded",ne.menuOpen||null)("aria-controls",ne.menuOpen?ne.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),vi})(),Un=(()=>{class vi extends un{}return vi.\u0275fac=function(){let si;return function(ne){return(si||(si=T.n5z(vi)))(ne||vi)}}(),vi.\u0275dir=T.lG2({type:vi,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[T.qOj]}),vi})(),oi=(()=>{class vi{}return vi.\u0275fac=function(Ke){return new(Ke||vi)},vi.\u0275mod=T.oAB({type:vi}),vi.\u0275inj=T.cJS({providers:[Ae],imports:[vt.ez,Dt.BQ,Dt.si,zt.U8,it.ZD,Dt.BQ]}),vi})()},98739:(ot,et,v)=>{"use strict";v.d(et,{NW:()=>Tt,TU:()=>At});var d=v(36895),p=v(94650),b=v(3238),T=v(4859),t=v(84385),A=v(10266),x=v(21281),U=v(8929),k=v(59549);function D(ft,Et){if(1&ft&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&ft){const Bt=Et.$implicit;p.Q6J("value",Bt),p.xp6(1),p.hij(" ",Bt," ")}}function P(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(se){p.CHM(Bt);const Gt=p.oxw(2);return p.KtG(Gt._changePageSize(se.value))}),p.YNc(2,D,2,2,"mat-option",18),p.qZA()()}if(2&ft){const Bt=p.oxw(2);p.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),p.xp6(1),p.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function F(ft,Et){if(1&ft&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&ft){const Bt=p.oxw(2);p.xp6(1),p.Oqu(Bt.pageSize)}}function z(ft,Et){if(1&ft&&(p.TgZ(0,"div",12)(1,"div",13),p._uU(2),p.qZA(),p.YNc(3,P,3,8,"mat-form-field",14),p.YNc(4,F,2,1,"div",15),p.qZA()),2&ft){const Bt=p.oxw();p.xp6(2),p.hij(" ",Bt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function J(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),p.uIk("aria-label",Bt._intl.firstPageLabel)}}function K(ft,Et){if(1&ft){const Bt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),p.uIk("aria-label",Bt._intl.lastPageLabel)}}let at=(()=>{class ft{constructor(){this.changes=new U.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Bt,Ft,se)=>{if(0==se||0==Ft)return`0 of ${se}`;const Gt=Bt*Ft;return`${Gt+1} \u2013 ${Gt<(se=Math.max(se,0))?Math.min(Gt+Ft,se):Gt+Ft} of ${se}`}}}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275prov=p.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const vt={provide:at,deps:[[new p.FiY,new p.tp0,at]],useFactory:function ct(ft){return ft||new at}},zt=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Vt=(0,b.Id)((0,b.dB)(class{}));let it=(()=>{class ft extends Vt{constructor(Bt,Ft,se){if(super(),this._intl=Bt,this._changeDetectorRef=Ft,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),se){const{pageSize:Gt,pageSizeOptions:ve,hidePageSize:be,showFirstLastButtons:Le}=se;null!=Gt&&(this._pageSize=Gt),null!=ve&&(this._pageSizeOptions=ve),null!=be&&(this._hidePageSize=be),null!=Le&&(this._showFirstLastButtons=Le)}}get pageIndex(){return this._pageIndex}set pageIndex(Bt){this._pageIndex=Math.max((0,x.su)(Bt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Bt){this._length=(0,x.su)(Bt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Bt){this._pageSize=Math.max((0,x.su)(Bt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Bt){this._pageSizeOptions=(Bt||[]).map(Ft=>(0,x.su)(Ft)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Bt){this._hidePageSize=(0,x.Ig)(Bt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Bt){this._showFirstLastButtons=(0,x.Ig)(Bt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Bt)}previousPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Bt)}firstPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Bt)}lastPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Bt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Bt=this.getNumberOfPages()-1;return this.pageIndexBt-Ft),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ft.\u0275fac=function(Bt){p.$Z()},ft.\u0275dir=p.lG2({type:ft,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),ft})(),Tt=(()=>{class ft extends it{constructor(Bt,Ft,se){super(Bt,Ft,se),se&&null!=se.formFieldAppearance&&(this._formFieldAppearance=se.formFieldAppearance)}}return ft.\u0275fac=function(Bt){return new(Bt||ft)(p.Y36(at),p.Y36(p.sBO),p.Y36(zt,8))},ft.\u0275cmp=p.Xpm({type:ft,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[p.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Bt,Ft){1&Bt&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,z,5,3,"div",2),p.TgZ(3,"div",3)(4,"div",4),p._uU(5),p.qZA(),p.YNc(6,J,3,5,"button",5),p.TgZ(7,"button",6),p.NdJ("click",function(){return Ft.previousPage()}),p.O4$(),p.TgZ(8,"svg",7),p._UZ(9,"path",8),p.qZA()(),p.kcU(),p.TgZ(10,"button",9),p.NdJ("click",function(){return Ft.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,K,3,5,"button",11),p.qZA()()()),2&Bt&&(p.xp6(2),p.Q6J("ngIf",!Ft.hidePageSize),p.xp6(3),p.hij(" ",Ft._intl.getRangeLabel(Ft.pageIndex,Ft.pageSize,Ft.length)," "),p.xp6(1),p.Q6J("ngIf",Ft.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",Ft._intl.previousPageLabel)("matTooltipDisabled",Ft._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Ft._previousButtonsDisabled()),p.uIk("aria-label",Ft._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",Ft._intl.nextPageLabel)("matTooltipDisabled",Ft._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Ft._nextButtonsDisabled()),p.uIk("aria-label",Ft._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",Ft.showFirstLastButtons))},dependencies:[d.sg,d.O5,T.lW,k.KE,t.gD,b.ey,A.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ft})(),At=(()=>{class ft{}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275mod=p.oAB({type:ft}),ft.\u0275inj=p.cJS({providers:[vt],imports:[d.ez,T.ot,t.LD,A.AV,b.BQ]}),ft})()},73162:(ot,et,v)=>{"use strict";v.d(et,{Cv:()=>at,pW:()=>J});var d=v(94650),p=v(36895),b=v(3238),T=v(21281),t=v(42654),A=v(23753),x=v(92198);const U=["primaryValueBar"],k=(0,b.pj)(class{constructor(ct){this._elementRef=ct}},"primary"),D=new d.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const ct=(0,d.f3M)(p.K0),vt=ct?ct.location:null;return{getPathname:()=>vt?vt.pathname+vt.search:""}}}),F=new d.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let z=0,J=(()=>{class ct extends k{constructor(Dt,Pt,zt,Vt,it,Tt){super(Dt),this._ngZone=Pt,this._animationMode=zt,this._changeDetectorRef=Tt,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new d.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+z++;const At=Vt?Vt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${At}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===zt,it&&(it.color&&(this.color=this.defaultColor=it.color),this.mode=it.mode||this.mode)}get value(){return this._value}set value(Dt){this._value=K((0,T.su)(Dt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Dt){this._bufferValue=K(Dt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Dt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,A.R)(Dt,"transitionend").pipe((0,x.h)(Pt=>Pt.target===Dt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return ct.\u0275fac=function(Dt){return new(Dt||ct)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.QbO,8),d.Y36(D,8),d.Y36(F,8),d.Y36(d.sBO))},ct.\u0275cmp=d.Xpm({type:ct,selectors:[["mat-progress-bar"]],viewQuery:function(Dt,Pt){if(1&Dt&&d.Gf(U,5),2&Dt){let zt;d.iGM(zt=d.CRH())&&(Pt._primaryValueBar=zt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Dt,Pt){2&Dt&&(d.uIk("aria-valuenow","indeterminate"===Pt.mode||"query"===Pt.mode?null:Pt.value)("mode",Pt.mode),d.ekj("_mat-animation-noopable",Pt._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[d.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Dt,Pt){1&Dt&&(d.TgZ(0,"div",0),d.O4$(),d.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),d._UZ(4,"circle",3),d.qZA()(),d._UZ(5,"rect",4),d.qZA(),d.kcU(),d._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),d.qZA()),2&Dt&&(d.xp6(3),d.Q6J("id",Pt.progressbarId),d.xp6(2),d.uIk("fill",Pt._rectangleFillValue),d.xp6(1),d.Q6J("ngStyle",Pt._bufferTransform()),d.xp6(1),d.Q6J("ngStyle",Pt._primaryTransform()))},dependencies:[p.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),ct})();function K(ct,vt=0,Dt=100){return Math.max(vt,Math.min(Dt,ct))}let at=(()=>{class ct{}return ct.\u0275fac=function(Dt){return new(Dt||ct)},ct.\u0275mod=d.oAB({type:ct}),ct.\u0275inj=d.cJS({imports:[p.ez,b.BQ,b.BQ]}),ct})()},51572:(ot,et,v)=>{"use strict";v.d(et,{Cq:()=>ct,Ou:()=>at});var d=v(21281),p=v(83353),b=v(67376),T=v(36895),t=v(94650),A=v(3238),x=v(42654);function U(Dt,Pt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+zt._spinnerAnimationLabel)("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._getCircleRadius())}}function k(Dt,Pt){if(1&Dt&&(t.O4$(),t._UZ(0,"circle",4)),2&Dt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._getCircleRadius())}}const F=(0,A.pj)(class{constructor(Dt){this._elementRef=Dt}},"primary"),z=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function J(){return{diameter:100}}});class at extends F{constructor(Pt,zt,Vt,it,Tt,At,ft,Et){super(Pt),this._document=Vt,this._diameter=100,this._value=0,this._resizeSubscription=x.w.EMPTY,this.mode="determinate";const Bt=at._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Vt.head)||Bt.set(Vt.head,new Set([100])),this._noopAnimations="NoopAnimations"===it&&!!Tt&&!Tt._forceAnimations,"mat-spinner"===Pt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Tt&&(Tt.color&&(this.color=this.defaultColor=Tt.color),Tt.diameter&&(this.diameter=Tt.diameter),Tt.strokeWidth&&(this.strokeWidth=Tt.strokeWidth)),zt.isBrowser&&zt.SAFARI&&ft&&At&&Et&&(this._resizeSubscription=ft.change(150).subscribe(()=>{"indeterminate"===this.mode&&Et.run(()=>At.markForCheck())}))}get diameter(){return this._diameter}set diameter(Pt){this._diameter=(0,d.su)(Pt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Pt){this._strokeWidth=(0,d.su)(Pt)}get value(){return"determinate"===this.mode?this._value:0}set value(Pt){this._value=Math.max(0,Math.min(100,(0,d.su)(Pt)))}ngOnInit(){const Pt=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(Pt)||this._document.head,this._attachStyleNode(),Pt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Pt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Pt} ${Pt}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Pt){const zt=50*(Pt.currentScale??1);return`${zt}% ${zt}%`}_attachStyleNode(){const Pt=this._styleRoot,zt=this._diameter,Vt=at._diameters;let it=Vt.get(Pt);if(!it||!it.has(zt)){const Tt=this._document.createElement("style");Tt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Tt.textContent=this._getAnimationText(),Pt.appendChild(Tt),it||(it=new Set,Vt.set(Pt,it)),it.add(zt)}}_getAnimationText(){const Pt=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Pt).replace(/END_VALUE/g,""+.2*Pt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}at._diameters=new WeakMap,at.\u0275fac=function(Pt){return new(Pt||at)(t.Y36(t.SBq),t.Y36(p.t4),t.Y36(T.K0,8),t.Y36(t.QbO,8),t.Y36(z),t.Y36(t.sBO),t.Y36(b.rL),t.Y36(t.R0b))},at.\u0275cmp=t.Xpm({type:at,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Pt,zt){2&Pt&&(t.uIk("aria-valuemin","determinate"===zt.mode?0:null)("aria-valuemax","determinate"===zt.mode?100:null)("aria-valuenow","determinate"===zt.mode?zt.value:null)("mode",zt.mode),t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.ekj("_mat-animation-noopable",zt._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Pt,zt){1&Pt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,U,1,11,"circle",2),t.YNc(3,k,1,9,"circle",3),t.qZA()),2&Pt&&(t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===zt.mode),t.uIk("viewBox",zt._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ct=(()=>{class Dt{}return Dt.\u0275fac=function(zt){return new(zt||Dt)},Dt.\u0275mod=t.oAB({type:Dt}),Dt.\u0275inj=t.cJS({imports:[A.BQ,T.ez,A.BQ]}),Dt})()},71948:(ot,et,v)=>{"use strict";v.d(et,{Fk:()=>Vt,U0:()=>zt,VQ:()=>ct});var d=v(94650),p=v(3238),b=v(12687),T=v(21281),t=v(95017),A=v(24006);const x=["input"],U=function(it){return{enterDuration:it}},k=["*"],D=new d.OlP("mat-radio-default-options",{providedIn:"root",factory:function P(){return{color:"accent"}}});let F=0;const z={provide:A.JU,useExisting:(0,d.Gpc)(()=>ct),multi:!0};class J{constructor(Tt,At){this.source=Tt,this.value=At}}const K=new d.OlP("MatRadioGroup");let at=(()=>{class it{constructor(At){this._changeDetector=At,this._value=null,this._name="mat-radio-group-"+F++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new d.vpe}get name(){return this._name}set name(At){this._name=At,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(At){this._labelPosition="before"===At?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(At){this._selected=At,this.value=At?At.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At),this._markRadiosForCheck()}get required(){return this._required}set required(At){this._required=(0,T.Ig)(At),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(At=>{At.name=this.name,At._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ft=>{ft.checked=this.value===ft.value,ft.checked&&(this._selected=ft)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new J(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(At=>At._markForCheck())}writeValue(At){this.value=At,this._changeDetector.markForCheck()}registerOnChange(At){this._controlValueAccessorChangeFn=At}registerOnTouched(At){this.onTouched=At}setDisabledState(At){this.disabled=At,this._changeDetector.markForCheck()}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(d.sBO))},it.\u0275dir=d.lG2({type:it,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),it})(),ct=(()=>{class it extends at{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=d.n5z(it)))(ft||it)}}(),it.\u0275dir=d.lG2({type:it,selectors:[["mat-radio-group"]],contentQueries:function(At,ft,Et){if(1&At&&d.Suo(Et,zt,5),2&At){let Bt;d.iGM(Bt=d.CRH())&&(ft._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([z,{provide:K,useExisting:it}]),d.qOj]}),it})();class vt{constructor(Tt){this._elementRef=Tt}}const Dt=(0,p.Kr)((0,p.sb)(vt));let Pt=(()=>{class it extends Dt{constructor(At,ft,Et,Bt,Ft,se,Gt,ve){super(ft),this._changeDetector=Et,this._focusMonitor=Bt,this._radioDispatcher=Ft,this._providerOverride=Gt,this._uniqueId="mat-radio-"+ ++F,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=At,this._noopAnimations="NoopAnimations"===se,ve&&(this.tabIndex=(0,T.su)(ve,0)),this._removeUniqueSelectionListener=Ft.listen((be,Le)=>{be!==this.id&&Le===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(At){const ft=(0,T.Ig)(At);this._checked!==ft&&(this._checked=ft,ft&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ft&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ft&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===At),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(At){this._labelPosition=At}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(At){this._setDisabled((0,T.Ig)(At))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(At){this._required=(0,T.Ig)(At)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(At){this._color=At}get inputId(){return`${this.id||this._uniqueId}-input`}focus(At,ft){ft?this._focusMonitor.focusVia(this._inputElement,ft,At):this._inputElement.nativeElement.focus(At)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(At=>{!At&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new J(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(At){At.stopPropagation()}_onInputInteraction(At){if(At.stopPropagation(),!this.checked&&!this.disabled){const ft=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ft&&this.radioGroup._emitChangeEvent())}}_setDisabled(At){this._disabled!==At&&(this._disabled=At,this._changeDetector.markForCheck())}_updateTabIndex(){const At=this.radioGroup;let ft;if(ft=At&&At.selected&&!this.disabled?At.selected===this?this.tabIndex:-1:this.tabIndex,ft!==this._previousTabIndex){const Et=this._inputElement?.nativeElement;Et&&(Et.setAttribute("tabindex",ft+""),this._previousTabIndex=ft)}}}return it.\u0275fac=function(At){d.$Z()},it.\u0275dir=d.lG2({type:it,viewQuery:function(At,ft){if(1&At&&d.Gf(x,5),2&At){let Et;d.iGM(Et=d.CRH())&&(ft._inputElement=Et.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[d.qOj]}),it})(),zt=(()=>{class it extends Pt{constructor(At,ft,Et,Bt,Ft,se,Gt,ve){super(At,ft,Et,Bt,Ft,se,Gt,ve)}}return it.\u0275fac=function(At){return new(At||it)(d.Y36(K,8),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(b.tE),d.Y36(t.A8),d.Y36(d.QbO,8),d.Y36(D,8),d.$8M("tabindex"))},it.\u0275cmp=d.Xpm({type:it,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(At,ft){1&At&&d.NdJ("focus",function(){return ft._inputElement.nativeElement.focus()}),2&At&&(d.uIk("tabindex",null)("id",ft.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-radio-checked",ft.checked)("mat-radio-disabled",ft.disabled)("_mat-animation-noopable",ft._noopAnimations)("mat-primary","primary"===ft.color)("mat-accent","accent"===ft.color)("mat-warn","warn"===ft.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[d.qOj],ngContentSelectors:k,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(At,ft){if(1&At&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2),d._UZ(3,"span",3)(4,"span",4),d.TgZ(5,"input",5,6),d.NdJ("change",function(Bt){return ft._onInputInteraction(Bt)})("click",function(Bt){return ft._onInputClick(Bt)}),d.qZA(),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()(),d.TgZ(9,"span",9)(10,"span",10),d._uU(11,"\xa0"),d.qZA(),d.Hsn(12),d.qZA()()),2&At){const Et=d.MAs(1);d.uIk("for",ft.inputId),d.xp6(5),d.Q6J("id",ft.inputId)("checked",ft.checked)("disabled",ft.disabled)("required",ft.required),d.uIk("name",ft.name)("value",ft.value)("aria-label",ft.ariaLabel)("aria-labelledby",ft.ariaLabelledby)("aria-describedby",ft.ariaDescribedby),d.xp6(2),d.Q6J("matRippleTrigger",Et)("matRippleDisabled",ft._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(17,U,ft._noopAnimations?0:150)),d.xp6(2),d.ekj("mat-radio-label-before","before"==ft.labelPosition)}},dependencies:[p.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),it})(),Vt=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=d.oAB({type:it}),it.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),it})()},84385:(ot,et,v)=>{"use strict";v.d(et,{LD:()=>si,gD:()=>vi});var d=v(98184),p=v(36895),b=v(94650),T=v(3238),t=v(59549),A=v(67376),x=v(12687),U=v(40445),k=v(21281),D=v(95017),P=v(29521),F=v(24006),z=v(8929),J=v(88514),K=v(36787),at=v(1059),ct=v(87545),vt=v(72986),Dt=v(92198),Pt=v(24850),zt=v(75778),Vt=v(7625),it=v(37340);const Tt=["trigger"],At=["panel"];function ft(Ke,ne){if(1&Ke&&(b.TgZ(0,"span",8),b._uU(1),b.qZA()),2&Ke){const lt=b.oxw();b.xp6(1),b.Oqu(lt.placeholder)}}function Et(Ke,ne){if(1&Ke&&(b.TgZ(0,"span",12),b._uU(1),b.qZA()),2&Ke){const lt=b.oxw(2);b.xp6(1),b.Oqu(lt.triggerValue)}}function Bt(Ke,ne){1&Ke&&b.Hsn(0,0,["*ngSwitchCase","true"])}function Ft(Ke,ne){if(1&Ke&&(b.TgZ(0,"span",9),b.YNc(1,Et,2,1,"span",10),b.YNc(2,Bt,1,0,"ng-content",11),b.qZA()),2&Ke){const lt=b.oxw();b.Q6J("ngSwitch",!!lt.customTrigger),b.xp6(2),b.Q6J("ngSwitchCase",!0)}}function se(Ke,ne){if(1&Ke){const lt=b.EpF();b.TgZ(0,"div",13)(1,"div",14,15),b.NdJ("@transformPanel.done",function(kt){b.CHM(lt);const Jt=b.oxw();return b.KtG(Jt._panelDoneAnimatingStream.next(kt.toState))})("keydown",function(kt){b.CHM(lt);const Jt=b.oxw();return b.KtG(Jt._handleKeydown(kt))}),b.Hsn(3,1),b.qZA()()}if(2&Ke){const lt=b.oxw();b.Q6J("@transformPanelWrap",void 0),b.xp6(1),b.Gre("mat-select-panel ",lt._getPanelTheme(),""),b.Udp("transform-origin",lt._transformOrigin)("font-size",lt._triggerFontSize,"px"),b.Q6J("ngClass",lt.panelClass)("@transformPanel",lt.multiple?"showing-multiple":"showing"),b.uIk("id",lt.id+"-panel")("aria-multiselectable",lt.multiple)("aria-label",lt.ariaLabel||null)("aria-labelledby",lt._getPanelAriaLabelledby())}}const Gt=[[["mat-select-trigger"]],"*"],ve=["mat-select-trigger","*"],be={transformPanelWrap:(0,it.X$)("transformPanelWrap",[(0,it.eR)("* => void",(0,it.IO)("@transformPanel",[(0,it.pV)()],{optional:!0}))]),transformPanel:(0,it.X$)("transformPanel",[(0,it.SB)("void",(0,it.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,it.SB)("showing",(0,it.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,it.SB)("showing-multiple",(0,it.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,it.eR)("void => *",(0,it.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,it.eR)("* => void",(0,it.jt)("100ms 25ms linear",(0,it.oB)({opacity:0})))])};let Xt=0;const De=new b.OlP("mat-select-scroll-strategy"),_n=new b.OlP("MAT_SELECT_CONFIG"),Ae={provide:De,deps:[d.aV],useFactory:function on(Ke){return()=>Ke.scrollStrategies.reposition()}};class gn{constructor(ne,lt){this.source=ne,this.value=lt}}const we=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(Ke,ne,lt,nt,kt){this._elementRef=Ke,this._defaultErrorStateMatcher=ne,this._parentForm=lt,this._parentFormGroup=nt,this.ngControl=kt,this.stateChanges=new z.xQ}})))),un=new b.OlP("MatSelectTrigger");let oi=(()=>{class Ke extends we{constructor(lt,nt,kt,Jt,oe,Ce,Oe,Dn,Sn,mi,Li,ho,fi,Bn){super(oe,Jt,Oe,Dn,mi),this._viewportRuler=lt,this._changeDetectorRef=nt,this._ngZone=kt,this._dir=Ce,this._parentFormField=Sn,this._liveAnnouncer=fi,this._defaultOptions=Bn,this._panelOpen=!1,this._compareWith=(jn,Ye)=>jn===Ye,this._uid="mat-select-"+Xt++,this._triggerAriaLabelledBy=null,this._destroy=new z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Xt++,this._panelDoneAnimatingStream=new z.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,J.P)(()=>{const jn=this.options;return jn?jn.changes.pipe((0,at.O)(jn),(0,ct.w)(()=>(0,K.T)(...jn.map(Ye=>Ye.onSelectionChange)))):this._ngZone.onStable.pipe((0,vt.q)(1),(0,ct.w)(()=>this.optionSelectionChanges))}),this.openedChange=new b.vpe,this._openedStream=this.openedChange.pipe((0,Dt.h)(jn=>jn),(0,Pt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Dt.h)(jn=>!jn),(0,Pt.U)(()=>{})),this.selectionChange=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Bn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Bn.typeaheadDebounceInterval),this._scrollStrategyFactory=ho,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Li)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(lt){this._placeholder=lt,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(F.kI.required)??!1}set required(lt){this._required=(0,k.Ig)(lt),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(lt){this._multiple=(0,k.Ig)(lt)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(lt){this._disableOptionCentering=(0,k.Ig)(lt)}get compareWith(){return this._compareWith}set compareWith(lt){this._compareWith=lt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(lt){this._assignValue(lt)&&this._onChange(lt)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(lt){this._typeaheadDebounceInterval=(0,k.su)(lt)}get id(){return this._id}set id(lt){this._id=lt||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,zt.x)(),(0,Vt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Vt.R)(this._destroy)).subscribe(lt=>{lt.added.forEach(nt=>nt.select()),lt.removed.forEach(nt=>nt.deselect())}),this.options.changes.pipe((0,at.O)(null),(0,Vt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const lt=this._getTriggerAriaLabelledby(),nt=this.ngControl;if(lt!==this._triggerAriaLabelledBy){const kt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=lt,lt?kt.setAttribute("aria-labelledby",lt):kt.removeAttribute("aria-labelledby")}nt&&(this._previousControl!==nt.control&&(void 0!==this._previousControl&&null!==nt.disabled&&nt.disabled!==this.disabled&&(this.disabled=nt.disabled),this._previousControl=nt.control),this.updateErrorState())}ngOnChanges(lt){(lt.disabled||lt.userAriaDescribedBy)&&this.stateChanges.next(),lt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(lt){this._assignValue(lt)}registerOnChange(lt){this._onChange=lt}registerOnTouched(lt){this._onTouched=lt}setDisabledState(lt){this.disabled=lt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const lt=this._selectionModel.selected.map(nt=>nt.viewValue);return this._isRtl()&<.reverse(),lt.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(lt){this.disabled||(this.panelOpen?this._handleOpenKeydown(lt):this._handleClosedKeydown(lt))}_handleClosedKeydown(lt){const nt=lt.keyCode,kt=nt===P.JH||nt===P.LH||nt===P.oh||nt===P.SV,Jt=nt===P.K5||nt===P.L_,oe=this._keyManager;if(!oe.isTyping()&&Jt&&!(0,P.Vb)(lt)||(this.multiple||lt.altKey)&&kt)lt.preventDefault(),this.open();else if(!this.multiple){const Ce=this.selected;oe.onKeydown(lt);const Oe=this.selected;Oe&&Ce!==Oe&&this._liveAnnouncer.announce(Oe.viewValue,1e4)}}_handleOpenKeydown(lt){const nt=this._keyManager,kt=lt.keyCode,Jt=kt===P.JH||kt===P.LH,oe=nt.isTyping();if(Jt&<.altKey)lt.preventDefault(),this.close();else if(oe||kt!==P.K5&&kt!==P.L_||!nt.activeItem||(0,P.Vb)(lt))if(!oe&&this._multiple&&kt===P.A&<.ctrlKey){lt.preventDefault();const Ce=this.options.some(Oe=>!Oe.disabled&&!Oe.selected);this.options.forEach(Oe=>{Oe.disabled||(Ce?Oe.select():Oe.deselect())})}else{const Ce=nt.activeItemIndex;nt.onKeydown(lt),this._multiple&&Jt&<.shiftKey&&nt.activeItem&&nt.activeItemIndex!==Ce&&nt.activeItem._selectViaInteraction()}else lt.preventDefault(),nt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,vt.q)(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(lt){if(this._selectionModel.selected.forEach(nt=>nt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&<)Array.isArray(lt),lt.forEach(nt=>this._selectOptionByValue(nt)),this._sortValues();else{const nt=this._selectOptionByValue(lt);nt?this._keyManager.updateActiveItem(nt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(lt){const nt=this.options.find(kt=>{if(this._selectionModel.isSelected(kt))return!1;try{return null!=kt.value&&this._compareWith(kt.value,lt)}catch{return!1}});return nt&&this._selectionModel.select(nt),nt}_assignValue(lt){return!!(lt!==this._value||this._multiple&&Array.isArray(lt))&&(this.options&&this._setSelectionByValue(lt),this._value=lt,!0)}_initKeyManager(){this._keyManager=new x.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const lt=(0,K.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Vt.R)(lt)).subscribe(nt=>{this._onSelect(nt.source,nt.isUserInput),nt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,K.T)(...this.options.map(nt=>nt._stateChanges)).pipe((0,Vt.R)(lt)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(lt,nt){const kt=this._selectionModel.isSelected(lt);null!=lt.value||this._multiple?(kt!==lt.selected&&(lt.selected?this._selectionModel.select(lt):this._selectionModel.deselect(lt)),nt&&this._keyManager.setActiveItem(lt),this.multiple&&(this._sortValues(),nt&&this.focus())):(lt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(lt.value)),kt!==this._selectionModel.isSelected(lt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const lt=this.options.toArray();this._selectionModel.sort((nt,kt)=>this.sortComparator?this.sortComparator(nt,kt,lt):lt.indexOf(nt)-lt.indexOf(kt)),this.stateChanges.next()}}_propagateChanges(lt){let nt=null;nt=this.multiple?this.selected.map(kt=>kt.value):this.selected?this.selected.value:lt,this._value=nt,this.valueChange.emit(nt),this._onChange(nt),this.selectionChange.emit(this._getChangeEvent(nt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(lt){this._elementRef.nativeElement.focus(lt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const lt=this._parentFormField?.getLabelId();return this.ariaLabelledby?(lt?lt+" ":"")+this.ariaLabelledby:lt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const lt=this._parentFormField?.getLabelId();let nt=(lt?lt+" ":"")+this._valueId;return this.ariaLabelledby&&(nt+=" "+this.ariaLabelledby),nt}_panelDoneAnimating(lt){this.openedChange.emit(lt)}setDescribedByIds(lt){lt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",lt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ke.\u0275fac=function(lt){return new(lt||Ke)(b.Y36(A.rL),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(T.rD),b.Y36(b.SBq),b.Y36(U.Is,8),b.Y36(F.F,8),b.Y36(F.sg,8),b.Y36(t.G_,8),b.Y36(F.a5,10),b.$8M("tabindex"),b.Y36(De),b.Y36(x.Kd),b.Y36(_n,8))},Ke.\u0275dir=b.lG2({type:Ke,viewQuery:function(lt,nt){if(1<&&(b.Gf(Tt,5),b.Gf(At,5),b.Gf(d.pI,5)),2<){let kt;b.iGM(kt=b.CRH())&&(nt.trigger=kt.first),b.iGM(kt=b.CRH())&&(nt.panel=kt.first),b.iGM(kt=b.CRH())&&(nt._overlayDir=kt.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[b.qOj,b.TTD]}),Ke})(),vi=(()=>{class Ke extends oi{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(lt,nt,kt){const Jt=this._getItemHeight();return Math.min(Math.max(0,Jt*lt-nt+Jt/2),kt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(lt){const nt=(0,T.CB)(lt,this.options,this.optionGroups),kt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===lt&&1===nt?0:(0,T.jH)((lt+nt)*kt,kt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(lt){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(lt)}_getChangeEvent(lt){return new gn(this,lt)}_calculateOverlayOffsetX(){const lt=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),nt=this._viewportRuler.getViewportSize(),kt=this._isRtl(),Jt=this.multiple?56:32;let oe;if(this.multiple)oe=40;else if(this.disableOptionCentering)oe=16;else{let Dn=this._selectionModel.selected[0]||this.options.first;oe=Dn&&Dn.group?32:16}kt||(oe*=-1);const Ce=0-(lt.left+oe-(kt?Jt:0)),Oe=lt.right+oe-nt.width+(kt?0:Jt);Ce>0?oe+=Ce+8:Oe>0&&(oe-=Oe+8),this._overlayDir.offsetX=Math.round(oe),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(lt,nt,kt){const Jt=this._getItemHeight(),oe=(Jt-this._triggerRect.height)/2,Ce=Math.floor(256/Jt);let Oe;return this.disableOptionCentering?0:(Oe=0===this._scrollTop?lt*Jt:this._scrollTop===kt?(lt-(this._getItemCount()-Ce))*Jt+(Jt-(this._getItemCount()*Jt-256)%Jt):nt-Jt/2,Math.round(-1*Oe-oe))}_checkOverlayWithinViewport(lt){const nt=this._getItemHeight(),kt=this._viewportRuler.getViewportSize(),Jt=this._triggerRect.top-8,oe=kt.height-this._triggerRect.bottom-8,Ce=Math.abs(this._offsetY),Dn=Math.min(this._getItemCount()*nt,256)-Ce-this._triggerRect.height;Dn>oe?this._adjustPanelUp(Dn,oe):Ce>Jt?this._adjustPanelDown(Ce,Jt,lt):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(lt,nt){const kt=Math.round(lt-nt);this._scrollTop-=kt,this._offsetY-=kt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(lt,nt,kt){const Jt=Math.round(lt-nt);if(this._scrollTop+=Jt,this._offsetY+=Jt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=kt)return this._scrollTop=kt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const lt=this._getItemHeight(),nt=this._getItemCount(),kt=Math.min(nt*lt,256),oe=nt*lt-kt;let Ce;Ce=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Ce+=(0,T.CB)(Ce,this.options,this.optionGroups);const Oe=kt/2;this._scrollTop=this._calculateOverlayScroll(Ce,Oe,oe),this._offsetY=this._calculateOverlayOffsetY(Ce,Oe,oe),this._checkOverlayWithinViewport(oe)}_getOriginBasedOnOption(){const lt=this._getItemHeight(),nt=(lt-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-nt+lt/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ke.\u0275fac=function(){let ne;return function(nt){return(ne||(ne=b.n5z(Ke)))(nt||Ke)}}(),Ke.\u0275cmp=b.Xpm({type:Ke,selectors:[["mat-select"]],contentQueries:function(lt,nt,kt){if(1<&&(b.Suo(kt,un,5),b.Suo(kt,T.ey,5),b.Suo(kt,T.K7,5)),2<){let Jt;b.iGM(Jt=b.CRH())&&(nt.customTrigger=Jt.first),b.iGM(Jt=b.CRH())&&(nt.options=Jt),b.iGM(Jt=b.CRH())&&(nt.optionGroups=Jt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(lt,nt){1<&&b.NdJ("keydown",function(Jt){return nt._handleKeydown(Jt)})("focus",function(){return nt._onFocus()})("blur",function(){return nt._onBlur()}),2<&&(b.uIk("id",nt.id)("tabindex",nt.tabIndex)("aria-controls",nt.panelOpen?nt.id+"-panel":null)("aria-expanded",nt.panelOpen)("aria-label",nt.ariaLabel||null)("aria-required",nt.required.toString())("aria-disabled",nt.disabled.toString())("aria-invalid",nt.errorState)("aria-activedescendant",nt._getAriaActiveDescendant()),b.ekj("mat-select-disabled",nt.disabled)("mat-select-invalid",nt.errorState)("mat-select-required",nt.required)("mat-select-empty",nt.empty)("mat-select-multiple",nt.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[b._Bn([{provide:t.Eo,useExisting:Ke},{provide:T.HF,useExisting:Ke}]),b.qOj],ngContentSelectors:ve,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(lt,nt){if(1<&&(b.F$t(Gt),b.TgZ(0,"div",0,1),b.NdJ("click",function(){return nt.toggle()}),b.TgZ(3,"div",2),b.YNc(4,ft,2,1,"span",3),b.YNc(5,Ft,3,2,"span",4),b.qZA(),b.TgZ(6,"div",5),b._UZ(7,"div",6),b.qZA()(),b.YNc(8,se,4,14,"ng-template",7),b.NdJ("backdropClick",function(){return nt.close()})("attach",function(){return nt._onAttached()})("detach",function(){return nt.close()})),2<){const kt=b.MAs(1);b.uIk("aria-owns",nt.panelOpen?nt.id+"-panel":null),b.xp6(3),b.Q6J("ngSwitch",nt.empty),b.uIk("id",nt._valueId),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1),b.xp6(3),b.Q6J("cdkConnectedOverlayPanelClass",nt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",nt._scrollStrategy)("cdkConnectedOverlayOrigin",kt)("cdkConnectedOverlayOpen",nt.panelOpen)("cdkConnectedOverlayPositions",nt._positions)("cdkConnectedOverlayMinWidth",null==nt._triggerRect?null:nt._triggerRect.width)("cdkConnectedOverlayOffsetY",nt._offsetY)}},dependencies:[p.mk,p.RF,p.n9,p.ED,d.pI,d.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{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;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[be.transformPanelWrap,be.transformPanel]},changeDetection:0}),Ke})(),si=(()=>{class Ke{}return Ke.\u0275fac=function(lt){return new(lt||Ke)},Ke.\u0275mod=b.oAB({type:Ke}),Ke.\u0275inj=b.cJS({providers:[Ae],imports:[p.ez,d.U8,T.Ng,T.BQ,A.ZD,t.lN,T.Ng,T.BQ]}),Ke})()},23267:(ot,et,v)=>{"use strict";v.d(et,{JX:()=>Wt,Rh:()=>de,SJ:()=>De,TM:()=>re});var d=v(67376),p=v(36895),b=v(94650),T=v(3238),t=v(12687),A=v(40445),x=v(21281),U=v(29521),k=v(83353),D=v(8929),P=v(23753),F=v(36787),z=v(92198),J=v(24850),K=v(77604),at=v(7625),ct=v(75778),vt=v(72986),Dt=v(1059),Pt=v(80013),zt=v(37340);const Vt=["*"],it=["content"];function Tt(on,_n){if(1&on){const Ae=b.EpF();b.TgZ(0,"div",2),b.NdJ("click",function(){b.CHM(Ae);const we=b.oxw();return b.KtG(we._onBackdropClicked())}),b.qZA()}if(2&on){const Ae=b.oxw();b.ekj("mat-drawer-shown",Ae._isShowingBackdrop())}}function At(on,_n){1&on&&(b.TgZ(0,"mat-drawer-content"),b.Hsn(1,2),b.qZA())}const ft=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Et=["mat-drawer","mat-drawer-content","*"];function Bt(on,_n){if(1&on){const Ae=b.EpF();b.TgZ(0,"div",2),b.NdJ("click",function(){b.CHM(Ae);const we=b.oxw();return b.KtG(we._onBackdropClicked())}),b.qZA()}if(2&on){const Ae=b.oxw();b.ekj("mat-drawer-shown",Ae._isShowingBackdrop())}}function Ft(on,_n){1&on&&(b.TgZ(0,"mat-sidenav-content"),b.Hsn(1,2),b.qZA())}const se=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Gt=["mat-sidenav","mat-sidenav-content","*"],be={transformDrawer:(0,zt.X$)("transform",[(0,zt.SB)("open, open-instant",(0,zt.oB)({transform:"none",visibility:"visible"})),(0,zt.SB)("void",(0,zt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,zt.eR)("void => open-instant",(0,zt.jt)("0ms")),(0,zt.eR)("void <=> open, open-instant => void",(0,zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qe=new b.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Xt(){return!1}}),$e=new b.OlP("MAT_DRAWER_CONTAINER");let Te=(()=>{class on extends d.PQ{constructor(Ae,gn,we,un,Un){super(we,un,Un),this._changeDetectorRef=Ae,this._container=gn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(b.sBO),b.Y36((0,b.Gpc)(()=>Kt)),b.Y36(b.SBq),b.Y36(d.mF),b.Y36(b.R0b))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Ae,gn){2&Ae&&b.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[b._Bn([{provide:d.PQ,useExisting:on}]),b.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(Ae,gn){1&Ae&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),ae=(()=>{class on{constructor(Ae,gn,we,un,Un,oi,vi,si){this._elementRef=Ae,this._focusTrapFactory=gn,this._focusMonitor=we,this._platform=un,this._ngZone=Un,this._interactivityChecker=oi,this._doc=vi,this._container=si,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new D.xQ,this._animationEnd=new D.xQ,this._animationState="void",this.openedChange=new b.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(Ke=>Ke),(0,J.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&0===Ke.toState.indexOf("open")),(0,K.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(Ke=>!Ke),(0,J.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&"void"===Ke.toState),(0,K.h)(void 0)),this._destroyed=new D.xQ,this.onPositionChanged=new b.vpe,this._modeChanged=new D.xQ,this.openedChange.subscribe(Ke=>{Ke?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(Ke=>Ke.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ke)),(0,at.R)(this._destroyed)).subscribe(Ke=>this._ngZone.run(()=>{this.close(),Ke.stopPropagation(),Ke.preventDefault()}))}),this._animationEnd.pipe((0,ct.x)((Ke,ne)=>Ke.fromState===ne.fromState&&Ke.toState===ne.toState)).subscribe(Ke=>{const{fromState:ne,toState:lt}=Ke;(0===lt.indexOf("open")&&"void"===ne||"void"===lt&&0===ne.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Ae){(Ae="end"===Ae?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Ae),this._position=Ae,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Ae){this._mode=Ae,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Ae){this._disableClose=(0,x.Ig)(Ae)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Ae){("true"===Ae||"false"===Ae||null==Ae)&&(Ae=(0,x.Ig)(Ae)),this._autoFocus=Ae}get opened(){return this._opened}set opened(Ae){this.toggle((0,x.Ig)(Ae))}_forceFocus(Ae,gn){this._interactivityChecker.isFocusable(Ae)||(Ae.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const we=()=>{Ae.removeEventListener("blur",we),Ae.removeEventListener("mousedown",we),Ae.removeAttribute("tabindex")};Ae.addEventListener("blur",we),Ae.addEventListener("mousedown",we)})),Ae.focus(gn)}_focusByCssSelector(Ae,gn){let we=this._elementRef.nativeElement.querySelector(Ae);we&&this._forceFocus(we,gn)}_takeFocus(){if(!this._focusTrap)return;const Ae=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(gn=>{!gn&&"function"==typeof this._elementRef.nativeElement.focus&&Ae.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Ae){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Ae):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Ae=this._doc.activeElement;return!!Ae&&this._elementRef.nativeElement.contains(Ae)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Ae){return this.toggle(!0,Ae)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Ae=!this.opened,gn){Ae&&gn&&(this._openedVia=gn);const we=this._setOpen(Ae,!Ae&&this._isFocusWithinDrawer(),this._openedVia||"program");return Ae||(this._openedVia=null),we}_setOpen(Ae,gn,we){return this._opened=Ae,Ae?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",gn&&this._restoreFocus(we)),this._updateFocusTrapState(),new Promise(un=>{this.openedChange.pipe((0,vt.q)(1)).subscribe(Un=>un(Un?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Ae){const gn=this._elementRef.nativeElement,we=gn.parentNode;"end"===Ae?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),we.insertBefore(this._anchor,gn)),we.appendChild(gn)):this._anchor&&this._anchor.parentNode.insertBefore(gn,this._anchor)}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(b.SBq),b.Y36(t.qV),b.Y36(t.tE),b.Y36(k.t4),b.Y36(b.R0b),b.Y36(t.ic),b.Y36(p.K0,8),b.Y36($e,8))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-drawer"]],viewQuery:function(Ae,gn){if(1&Ae&&b.Gf(it,5),2&Ae){let we;b.iGM(we=b.CRH())&&(gn._content=we.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ae,gn){1&Ae&&b.WFA("@transform.start",function(un){return gn._animationStarted.next(un)})("@transform.done",function(un){return gn._animationEnd.next(un)}),2&Ae&&(b.uIk("align",null),b.d8E("@transform",gn._animationState),b.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ae,gn){1&Ae&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[be.transformDrawer]},changeDetection:0}),on})(),Kt=(()=>{class on{constructor(Ae,gn,we,un,Un,oi=!1,vi){this._dir=Ae,this._element=gn,this._ngZone=we,this._changeDetectorRef=un,this._animationMode=vi,this._drawers=new b.n_E,this.backdropClick=new b.vpe,this._destroyed=new D.xQ,this._doCheckSubject=new D.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new D.xQ,Ae&&Ae.change.pipe((0,at.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Un.change().pipe((0,at.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=oi}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Ae){this._autosize=(0,x.Ig)(Ae)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Ae){this._backdropOverride=null==Ae?null:(0,x.Ig)(Ae)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Dt.O)(this._allDrawers),(0,at.R)(this._destroyed)).subscribe(Ae=>{this._drawers.reset(Ae.filter(gn=>!gn._container||gn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Dt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Ae=>{this._watchDrawerToggle(Ae),this._watchDrawerPosition(Ae),this._watchDrawerMode(Ae)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Pt.b)(10),(0,at.R)(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(Ae=>Ae.open())}close(){this._drawers.forEach(Ae=>Ae.close())}updateContentMargins(){let Ae=0,gn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Ae+=this._left._getWidth();else if("push"==this._left.mode){const we=this._left._getWidth();Ae+=we,gn-=we}if(this._right&&this._right.opened)if("side"==this._right.mode)gn+=this._right._getWidth();else if("push"==this._right.mode){const we=this._right._getWidth();gn+=we,Ae-=we}Ae=Ae||null,gn=gn||null,(Ae!==this._contentMargins.left||gn!==this._contentMargins.right)&&(this._contentMargins={left:Ae,right:gn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Ae){Ae._animationStarted.pipe((0,z.h)(gn=>gn.fromState!==gn.toState),(0,at.R)(this._drawers.changes)).subscribe(gn=>{"open-instant"!==gn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Ae.mode&&Ae.openedChange.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Ae.opened))}_watchDrawerPosition(Ae){!Ae||Ae.onPositionChanged.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,vt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Ae){Ae&&Ae._modeChanged.pipe((0,at.R)((0,F.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Ae){const gn=this._element.nativeElement.classList,we="mat-drawer-container-has-open";Ae?gn.add(we):gn.remove(we)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Ae=>{"end"==Ae.position?this._end=Ae:this._start=Ae}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Ae=>Ae&&!Ae.disableClose&&this._canHaveBackdrop(Ae)).forEach(Ae=>Ae._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Ae){return"side"!==Ae.mode||!!this._backdropOverride}_isDrawerOpen(Ae){return null!=Ae&&Ae.opened}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(A.Is,8),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(d.rL),b.Y36(qe),b.Y36(b.QbO,8))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-drawer-container"]],contentQueries:function(Ae,gn,we){if(1&Ae&&(b.Suo(we,Te,5),b.Suo(we,ae,5)),2&Ae){let un;b.iGM(un=b.CRH())&&(gn._content=un.first),b.iGM(un=b.CRH())&&(gn._allDrawers=un)}},viewQuery:function(Ae,gn){if(1&Ae&&b.Gf(Te,5),2&Ae){let we;b.iGM(we=b.CRH())&&(gn._userContent=we.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ae,gn){2&Ae&&b.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[b._Bn([{provide:$e,useExisting:on}])],ngContentSelectors:Et,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ae,gn){1&Ae&&(b.F$t(ft),b.YNc(0,Tt,1,2,"div",0),b.Hsn(1),b.Hsn(2,1),b.YNc(3,At,2,0,"mat-drawer-content",1)),2&Ae&&(b.Q6J("ngIf",gn.hasBackdrop),b.xp6(3),b.Q6J("ngIf",!gn._content))},dependencies:[p.O5,Te],styles:['.mat-drawer-container{position:relative;z-index:1;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}.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;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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),de=(()=>{class on extends Te{constructor(Ae,gn,we,un,Un){super(Ae,gn,we,un,Un)}}return on.\u0275fac=function(Ae){return new(Ae||on)(b.Y36(b.sBO),b.Y36((0,b.Gpc)(()=>re)),b.Y36(b.SBq),b.Y36(d.mF),b.Y36(b.R0b))},on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Ae,gn){2&Ae&&b.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[b._Bn([{provide:d.PQ,useExisting:on}]),b.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(Ae,gn){1&Ae&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),Wt=(()=>{class on extends ae{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Ae){this._fixedInViewport=(0,x.Ig)(Ae)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Ae){this._fixedTopGap=(0,x.su)(Ae)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Ae){this._fixedBottomGap=(0,x.su)(Ae)}}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=b.n5z(on)))(gn||on)}}(),on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Ae,gn){2&Ae&&(b.uIk("align",null),b.Udp("top",gn.fixedInViewport?gn.fixedTopGap:null,"px")("bottom",gn.fixedInViewport?gn.fixedBottomGap:null,"px"),b.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.opened)("mat-sidenav-fixed",gn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[b.qOj],ngContentSelectors:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Ae,gn){1&Ae&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[be.transformDrawer]},changeDetection:0}),on})(),re=(()=>{class on extends Kt{}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=b.n5z(on)))(gn||on)}}(),on.\u0275cmp=b.Xpm({type:on,selectors:[["mat-sidenav-container"]],contentQueries:function(Ae,gn,we){if(1&Ae&&(b.Suo(we,de,5),b.Suo(we,Wt,5)),2&Ae){let un;b.iGM(un=b.CRH())&&(gn._content=un.first),b.iGM(un=b.CRH())&&(gn._allDrawers=un)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Ae,gn){2&Ae&&b.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},exportAs:["matSidenavContainer"],features:[b._Bn([{provide:$e,useExisting:on}]),b.qOj],ngContentSelectors:Gt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ae,gn){1&Ae&&(b.F$t(se),b.YNc(0,Bt,1,2,"div",0),b.Hsn(1),b.Hsn(2,1),b.YNc(3,Ft,2,0,"mat-sidenav-content",1)),2&Ae&&(b.Q6J("ngIf",gn.hasBackdrop),b.xp6(3),b.Q6J("ngIf",!gn._content))},dependencies:[p.O5,de],styles:['.mat-drawer-container{position:relative;z-index:1;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}.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;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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),De=(()=>{class on{}return on.\u0275fac=function(Ae){return new(Ae||on)},on.\u0275mod=b.oAB({type:on}),on.\u0275inj=b.cJS({imports:[p.ez,T.BQ,d.ZD,d.ZD,T.BQ]}),on})()},90455:(ot,et,v)=>{"use strict";v.d(et,{Rr:()=>at,rP:()=>Pt});var d=v(49643),p=v(94650),b=v(3238),T=v(12687),t=v(21281),A=v(24006);const x=["input"],U=function(zt){return{enterDuration:zt}},k=["*"],D=new p.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const F={provide:A.JU,useExisting:(0,p.Gpc)(()=>at),multi:!0};class z{constructor(Vt,it){this.source=Vt,this.checked=it}}const J=(0,b.sb)((0,b.pj)((0,b.Kr)((0,b.Id)(class{constructor(zt){this._elementRef=zt}}))));let K=(()=>{class zt extends J{constructor(it,Tt,At,ft,Et,Bt,Ft){super(it),this._focusMonitor=Tt,this._changeDetectorRef=At,this.defaults=Et,this._onChange=se=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new p.vpe,this.toggleChange=new p.vpe,this.tabIndex=parseInt(ft)||0,this.color=this.defaultColor=Et.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${Ft}${++P}`}get required(){return this._required}set required(it){this._required=(0,t.Ig)(it)}get checked(){return this._checked}set checked(it){this._checked=(0,t.Ig)(it),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(it=>{"keyboard"===it||"program"===it?this._focused=!0:it||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(it){this.checked=!!it}registerOnChange(it){this._onChange=it}registerOnTouched(it){this._onTouched=it}setDisabledState(it){this.disabled=it,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return zt.\u0275fac=function(it){p.$Z()},zt.\u0275dir=p.lG2({type:zt,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[p.qOj]}),zt})(),at=(()=>{class zt extends K{constructor(it,Tt,At,ft,Et,Bt){super(it,Tt,At,ft,Et,Bt,"mat-slide-toggle-")}_createChangeEvent(it){return new z(this,it)}_onChangeEvent(it){it.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(it){it.stopPropagation()}focus(it,Tt){Tt?this._focusMonitor.focusVia(this._inputElement,Tt,it):this._inputElement.nativeElement.focus(it)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return zt.\u0275fac=function(it){return new(it||zt)(p.Y36(p.SBq),p.Y36(T.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(D),p.Y36(p.QbO,8))},zt.\u0275cmp=p.Xpm({type:zt,selectors:[["mat-slide-toggle"]],viewQuery:function(it,Tt){if(1&it&&p.Gf(x,5),2&it){let At;p.iGM(At=p.CRH())&&(Tt._inputElement=At.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(it,Tt){2&it&&(p.Ikx("id",Tt.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",Tt.checked)("mat-disabled",Tt.disabled)("mat-slide-toggle-label-before","before"==Tt.labelPosition)("_mat-animation-noopable",Tt._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[p._Bn([F]),p.qOj],ngContentSelectors:k,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(it,Tt){if(1&it&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(ft){return Tt._onChangeEvent(ft)})("click",function(ft){return Tt._onInputClick(ft)}),p.qZA(),p.TgZ(5,"span",5),p._UZ(6,"span",6),p.TgZ(7,"span",7),p._UZ(8,"span",8),p.qZA()()(),p.TgZ(9,"span",9,10),p.NdJ("cdkObserveContent",function(){return Tt._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&it){const At=p.MAs(1),ft=p.MAs(10);p.uIk("for",Tt.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!ft.textContent||!ft.textContent.trim()),p.xp6(1),p.Q6J("id",Tt.inputId)("required",Tt.required)("tabIndex",Tt.tabIndex)("checked",Tt.checked)("disabled",Tt.disabled),p.uIk("name",Tt.name)("aria-checked",Tt.checked)("aria-label",Tt.ariaLabel)("aria-labelledby",Tt.ariaLabelledby)("aria-describedby",Tt.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",At)("matRippleDisabled",Tt.disableRipple||Tt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,U,Tt._noopAnimations?0:150))}},dependencies:[b.wG,d.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),zt})(),Dt=(()=>{class zt{}return zt.\u0275fac=function(it){return new(it||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({}),zt})(),Pt=(()=>{class zt{}return zt.\u0275fac=function(it){return new(it||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({imports:[Dt,b.si,b.BQ,d.Q8,Dt,b.BQ]}),zt})()},17009:(ot,et,v)=>{"use strict";v.d(et,{ZX:()=>Tt,ux:()=>Bt});var d=v(98184),p=v(84080),b=v(36895),T=v(94650),t=v(3238),A=v(4859),x=v(8929),U=v(83353),k=v(72986),D=v(7625),P=v(37340),F=v(12687),z=v(62289);function J(Ft,se){if(1&Ft){const Gt=T.EpF();T.TgZ(0,"div",2)(1,"button",3),T.NdJ("click",function(){T.CHM(Gt);const be=T.oxw();return T.KtG(be.action())}),T._uU(2),T.qZA()()}if(2&Ft){const Gt=T.oxw();T.xp6(2),T.Oqu(Gt.data.action)}}function K(Ft,se){}const at=new T.OlP("MatSnackBarData");class ct{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const vt=Math.pow(2,31)-1;class Dt{constructor(se,Gt){this._overlayRef=Gt,this._afterDismissed=new x.xQ,this._afterOpened=new x.xQ,this._onAction=new x.xQ,this._dismissedByAction=!1,this.containerInstance=se,se._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(se){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(se,vt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let Pt=(()=>{class Ft{constructor(Gt,ve){this.snackBarRef=Gt,this.data=ve}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)(T.Y36(Dt),T.Y36(at))},Ft.\u0275cmp=T.Xpm({type:Ft,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Gt,ve){1&Gt&&(T.TgZ(0,"span",0),T._uU(1),T.qZA(),T.YNc(2,J,3,1,"div",1)),2&Gt&&(T.xp6(1),T.Oqu(ve.data.message),T.xp6(1),T.Q6J("ngIf",ve.hasAction))},dependencies:[b.O5,A.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),Ft})();const zt={snackBarState:(0,P.X$)("state",[(0,P.SB)("void, hidden",(0,P.oB)({transform:"scale(0.8)",opacity:0})),(0,P.SB)("visible",(0,P.oB)({transform:"scale(1)",opacity:1})),(0,P.eR)("* => visible",(0,P.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,P.eR)("* => void, * => hidden",(0,P.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,P.oB)({opacity:0})))])};let Vt=(()=>{class Ft extends p.en{constructor(Gt,ve,be,Le,qe){super(),this._ngZone=Gt,this._elementRef=ve,this._changeDetectorRef=be,this._platform=Le,this.snackBarConfig=qe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x.xQ,this._onExit=new x.xQ,this._onEnter=new x.xQ,this._animationState="void",this.attachDomPortal=$e=>{this._assertNotAttached();const Xt=this._portalOutlet.attachDomPortal($e);return this._afterPortalAttached(),Xt},this._live="assertive"!==qe.politeness||qe.announcementMessage?"off"===qe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Gt){this._assertNotAttached();const ve=this._portalOutlet.attachComponentPortal(Gt);return this._afterPortalAttached(),ve}attachTemplatePortal(Gt){this._assertNotAttached();const ve=this._portalOutlet.attachTemplatePortal(Gt);return this._afterPortalAttached(),ve}onAnimationEnd(Gt){const{fromState:ve,toState:be}=Gt;if(("void"===be&&"void"!==ve||"hidden"===be)&&this._completeExit(),"visible"===be){const Le=this._onEnter;this._ngZone.run(()=>{Le.next(),Le.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Gt=this._elementRef.nativeElement,ve=this.snackBarConfig.panelClass;ve&&(Array.isArray(ve)?ve.forEach(be=>Gt.classList.add(be)):Gt.classList.add(ve))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Gt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ve=this._elementRef.nativeElement.querySelector("[aria-live]");if(Gt&&ve){let be=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Gt.contains(document.activeElement)&&(be=document.activeElement),Gt.removeAttribute("aria-hidden"),ve.appendChild(Gt),be?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)(T.Y36(T.R0b),T.Y36(T.SBq),T.Y36(T.sBO),T.Y36(U.t4),T.Y36(ct))},Ft.\u0275dir=T.lG2({type:Ft,viewQuery:function(Gt,ve){if(1&Gt&&T.Gf(p.Pl,7),2&Gt){let be;T.iGM(be=T.CRH())&&(ve._portalOutlet=be.first)}},features:[T.qOj]}),Ft})(),it=(()=>{class Ft extends Vt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return Ft.\u0275fac=function(){let se;return function(ve){return(se||(se=T.n5z(Ft)))(ve||Ft)}}(),Ft.\u0275cmp=T.Xpm({type:Ft,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Gt,ve){1&Gt&&T.WFA("@state.done",function(Le){return ve.onAnimationEnd(Le)}),2&Gt&&T.d8E("@state",ve._animationState)},features:[T.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Gt,ve){1&Gt&&(T.TgZ(0,"div",0),T.YNc(1,K,0,0,"ng-template",1),T.qZA(),T._UZ(2,"div")),2&Gt&&(T.xp6(2),T.uIk("aria-live",ve._live)("role",ve._role))},dependencies:[p.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[zt.snackBarState]}}),Ft})(),Tt=(()=>{class Ft{}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)},Ft.\u0275mod=T.oAB({type:Ft}),Ft.\u0275inj=T.cJS({imports:[d.U8,p.eL,b.ez,A.ot,t.BQ,t.BQ]}),Ft})();const At=new T.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ft(){return new ct}});let Et=(()=>{class Ft{constructor(Gt,ve,be,Le,qe,$e){this._overlay=Gt,this._live=ve,this._injector=be,this._breakpointObserver=Le,this._parentSnackBar=qe,this._defaultConfig=$e,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Gt=this._parentSnackBar;return Gt?Gt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Gt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Gt:this._snackBarRefAtThisLevel=Gt}openFromComponent(Gt,ve){return this._attach(Gt,ve)}openFromTemplate(Gt,ve){return this._attach(Gt,ve)}open(Gt,ve="",be){const Le={...this._defaultConfig,...be};return Le.data={message:Gt,action:ve},Le.announcementMessage===Gt&&(Le.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Le)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Gt,ve){const Le=T.zs3.create({parent:ve&&ve.viewContainerRef&&ve.viewContainerRef.injector||this._injector,providers:[{provide:ct,useValue:ve}]}),qe=new p.C5(this.snackBarContainerComponent,ve.viewContainerRef,Le),$e=Gt.attach(qe);return $e.instance.snackBarConfig=ve,$e.instance}_attach(Gt,ve){const be={...new ct,...this._defaultConfig,...ve},Le=this._createOverlay(be),qe=this._attachSnackBarContainer(Le,be),$e=new Dt(qe,Le);if(Gt instanceof T.Rgc){const Xt=new p.UE(Gt,null,{$implicit:be.data,snackBarRef:$e});$e.instance=qe.attachTemplatePortal(Xt)}else{const Xt=this._createInjector(be,$e),Te=new p.C5(Gt,void 0,Xt),ae=qe.attachComponentPortal(Te);$e.instance=ae.instance}return this._breakpointObserver.observe(z.u3.HandsetPortrait).pipe((0,D.R)(Le.detachments())).subscribe(Xt=>{Le.overlayElement.classList.toggle(this.handsetCssClass,Xt.matches)}),be.announcementMessage&&qe._onAnnounce.subscribe(()=>{this._live.announce(be.announcementMessage,be.politeness)}),this._animateSnackBar($e,be),this._openedSnackBarRef=$e,this._openedSnackBarRef}_animateSnackBar(Gt,ve){Gt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Gt&&(this._openedSnackBarRef=null),ve.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Gt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Gt.containerInstance.enter(),ve.duration&&ve.duration>0&&Gt.afterOpened().subscribe(()=>Gt._dismissAfter(ve.duration))}_createOverlay(Gt){const ve=new d.X_;ve.direction=Gt.direction;let be=this._overlay.position().global();const Le="rtl"===Gt.direction,qe="left"===Gt.horizontalPosition||"start"===Gt.horizontalPosition&&!Le||"end"===Gt.horizontalPosition&&Le,$e=!qe&&"center"!==Gt.horizontalPosition;return qe?be.left("0"):$e?be.right("0"):be.centerHorizontally(),"top"===Gt.verticalPosition?be.top("0"):be.bottom("0"),ve.positionStrategy=be,this._overlay.create(ve)}_createInjector(Gt,ve){return T.zs3.create({parent:Gt&&Gt.viewContainerRef&&Gt.viewContainerRef.injector||this._injector,providers:[{provide:Dt,useValue:ve},{provide:at,useValue:Gt.data}]})}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)(T.LFG(d.aV),T.LFG(F.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(Ft,12),T.LFG(At))},Ft.\u0275prov=T.Yz7({token:Ft,factory:Ft.\u0275fac}),Ft})(),Bt=(()=>{class Ft extends Et{constructor(Gt,ve,be,Le,qe,$e){super(Gt,ve,be,Le,qe,$e),this.simpleSnackBarComponent=Pt,this.snackBarContainerComponent=it,this.handsetCssClass="mat-snack-bar-handset"}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)(T.LFG(d.aV),T.LFG(F.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(Ft,12),T.LFG(At))},Ft.\u0275prov=T.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:Tt}),Ft})()},96308:(ot,et,v)=>{"use strict";v.d(et,{JX:()=>Bt,YE:()=>Dt,nU:()=>Et});var d=v(94650),p=v(12687),b=v(21281),T=v(29521),t=v(3238),A=v(8929),x=v(36787),U=v(37340),k=v(36895);const D=["mat-sort-header",""];function P(Ft,se){if(1&Ft){const Gt=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(Gt);const be=d.oxw();return d.KtG(be._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(Gt);const be=d.oxw();return d.KtG(be._disableViewStateAnimation=!1)}),d._UZ(1,"div",4),d.TgZ(2,"div",5),d._UZ(3,"div",6)(4,"div",7)(5,"div",8),d.qZA()()}if(2&Ft){const Gt=d.oxw();d.Q6J("@arrowOpacity",Gt._getArrowViewState())("@arrowPosition",Gt._getArrowViewState())("@allowChildren",Gt._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",Gt._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",Gt._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",Gt._getArrowDirectionState())}}const F=["*"],ct=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),vt=(0,t.dB)((0,t.Id)(class{}));let Dt=(()=>{class Ft extends vt{constructor(Gt){super(),this._defaultOptions=Gt,this.sortables=new Map,this._stateChanges=new A.xQ,this.start="asc",this._direction="",this.sortChange=new d.vpe}get direction(){return this._direction}set direction(Gt){this._direction=Gt}get disableClear(){return this._disableClear}set disableClear(Gt){this._disableClear=(0,b.Ig)(Gt)}register(Gt){this.sortables.set(Gt.id,Gt)}deregister(Gt){this.sortables.delete(Gt.id)}sort(Gt){this.active!=Gt.id?(this.active=Gt.id,this.direction=Gt.start?Gt.start:this.start):this.direction=this.getNextSortDirection(Gt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Gt){if(!Gt)return"";let be=function Pt(Ft,se){let Gt=["asc","desc"];return"desc"==Ft&&Gt.reverse(),se||Gt.push(""),Gt}(Gt.start||this.start,Gt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Le=be.indexOf(this.direction)+1;return Le>=be.length&&(Le=0),be[Le]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)(d.Y36(ct,8))},Ft.\u0275dir=d.lG2({type:Ft,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[d.qOj,d.TTD]}),Ft})();const zt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Vt={indicator:(0,U.X$)("indicator",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"translateY(0px)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"translateY(10px)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),leftPointer:(0,U.X$)("leftPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),rightPointer:(0,U.X$)("rightPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),arrowOpacity:(0,U.X$)("arrowOpacity",[(0,U.SB)("desc-to-active, asc-to-active, active",(0,U.oB)({opacity:1})),(0,U.SB)("desc-to-hint, asc-to-hint, hint",(0,U.oB)({opacity:.54})),(0,U.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,U.oB)({opacity:0})),(0,U.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,U.jt)("0ms")),(0,U.eR)("* <=> *",(0,U.jt)(zt))]),arrowPosition:(0,U.X$)("arrowPosition",[(0,U.eR)("* => desc-to-hint, * => desc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(-25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-desc, * => active-to-desc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(25%)"})]))),(0,U.eR)("* => asc-to-hint, * => asc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-asc, * => active-to-asc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(-25%)"})]))),(0,U.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,U.oB)({transform:"translateY(0)"})),(0,U.SB)("hint-to-desc, active-to-desc, desc",(0,U.oB)({transform:"translateY(-25%)"})),(0,U.SB)("hint-to-asc, active-to-asc, asc",(0,U.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,U.X$)("allowChildren",[(0,U.eR)("* <=> *",[(0,U.IO)("@*",(0,U.pV)(),{optional:!0})])])};let it=(()=>{class Ft{constructor(){this.changes=new A.xQ}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)},Ft.\u0275prov=d.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})();const At={provide:it,deps:[[new d.FiY,new d.tp0,it]],useFactory:function Tt(Ft){return Ft||new it}},ft=(0,t.Id)(class{});let Et=(()=>{class Ft extends ft{constructor(Gt,ve,be,Le,qe,$e,Xt,Te){super(),this._intl=Gt,this._changeDetectorRef=ve,this._sort=be,this._columnDef=Le,this._focusMonitor=qe,this._elementRef=$e,this._ariaDescriber=Xt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Gt){this._updateSortActionDescription(Gt)}get disableClear(){return this._disableClear}set disableClear(Gt){this._disableClear=(0,b.Ig)(Gt)}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(Gt=>{const ve=!!Gt;ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ve),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Gt){this._isDisabled()&&Gt||(this._showIndicatorHint=Gt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Gt){this._viewState=Gt||{},this._disableViewStateAnimation&&(this._viewState={toState:Gt.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Gt){!this._isDisabled()&&(Gt.keyCode===T.L_||Gt.keyCode===T.K5)&&(Gt.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Gt=this._viewState.fromState;return(Gt?`${Gt}-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()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Gt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Gt)),this._sortActionDescription=Gt}_handleStateChanges(){this._rerenderSubscription=(0,x.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)(d.Y36(it),d.Y36(d.sBO),d.Y36(Dt,8),d.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),d.Y36(p.tE),d.Y36(d.SBq),d.Y36(p.$s,8),d.Y36(ct,8))},Ft.\u0275cmp=d.Xpm({type:Ft,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Gt,ve){1&Gt&&d.NdJ("click",function(){return ve._handleClick()})("keydown",function(Le){return ve._handleKeydown(Le)})("mouseenter",function(){return ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return ve._setIndicatorHintVisible(!1)}),2&Gt&&(d.uIk("aria-sort",ve._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",ve._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[d.qOj],attrs:D,ngContentSelectors:F,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[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(Gt,ve){1&Gt&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.Hsn(2),d.qZA(),d.YNc(3,P,6,6,"div",2),d.qZA()),2&Gt&&(d.ekj("mat-sort-header-sorted",ve._isSorted())("mat-sort-header-position-before","before"===ve.arrowPosition),d.uIk("tabindex",ve._isDisabled()?null:0)("role",ve._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",ve._renderArrow()))},dependencies:[k.O5],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;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:[Vt.indicator,Vt.leftPointer,Vt.rightPointer,Vt.arrowOpacity,Vt.arrowPosition,Vt.allowChildren]},changeDetection:0}),Ft})(),Bt=(()=>{class Ft{}return Ft.\u0275fac=function(Gt){return new(Gt||Ft)},Ft.\u0275mod=d.oAB({type:Ft}),Ft.\u0275inj=d.cJS({providers:[At],imports:[k.ez,t.BQ]}),Ft})()},58425:(ot,et,v)=>{"use strict";v.d(et,{C0:()=>oi,Ic:()=>si,T5:()=>ne,VY:()=>de,Vq:()=>vi,fd:()=>Ke,z9:()=>un});var d=v(84080),p=v(12138),b=v(36895),T=v(94650),t=v(4859),A=v(3238),x=v(97392),U=v(12687),k=v(8929),D=v(42654),P=v(40445),F=v(87545),z=v(24850),J=v(1059),K=v(7625),at=v(75778),ct=v(37340);function vt(lt,nt){if(1<&&T.GkF(0,8),2<){const kt=T.oxw();T.Q6J("ngTemplateOutlet",kt.iconOverrides[kt.state])("ngTemplateOutletContext",kt._getIconContext())}}function Dt(lt,nt){if(1<&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2<){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function Pt(lt,nt){if(1<&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2<){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.completedLabel)}}function zt(lt,nt){if(1<&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2<){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.editableLabel)}}function Vt(lt,nt){if(1<&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2<){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function it(lt,nt){if(1<&&(T.ynx(0,9),T.YNc(1,Dt,2,1,"span",10),T.YNc(2,Pt,2,1,"span",11),T.YNc(3,zt,2,1,"span",11),T.YNc(4,Vt,2,1,"mat-icon",12),T.BQk()),2<){const kt=T.oxw();T.Q6J("ngSwitch",kt.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===kt.state),T.xp6(1),T.Q6J("ngIf","edit"===kt.state)}}function Tt(lt,nt){if(1<&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2<){const kt=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",kt._templateLabel().template)}}function At(lt,nt){if(1<&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2<){const kt=T.oxw();T.xp6(1),T.Oqu(kt.label)}}function ft(lt,nt){if(1<&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2<){const kt=T.oxw();T.xp6(1),T.Oqu(kt._intl.optionalLabel)}}function Et(lt,nt){if(1<&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2<){const kt=T.oxw();T.xp6(1),T.Oqu(kt.errorMessage)}}function Bt(lt,nt){}function Ft(lt,nt){if(1<&&(T.Hsn(0),T.YNc(1,Bt,0,0,"ng-template",0)),2<){const kt=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",kt._portal)}}const se=["*"];function Gt(lt,nt){1<&&T._UZ(0,"div",11)}const ve=function(lt,nt){return{step:lt,i:nt}};function be(lt,nt){if(1<&&(T.ynx(0),T.GkF(1,9),T.YNc(2,Gt,1,0,"div",10),T.BQk()),2<){const kt=nt.$implicit,Jt=nt.index,oe=nt.last;T.oxw(2);const Ce=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ce)("ngTemplateOutletContext",T.WLB(3,ve,kt,Jt)),T.xp6(1),T.Q6J("ngIf",!oe)}}const Le=function(lt){return{animationDuration:lt}},qe=function(lt,nt){return{value:lt,params:nt}};function $e(lt,nt){if(1<){const kt=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.GkF(1,13),T.qZA()}if(2<){const kt=nt.$implicit,Jt=nt.index,oe=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",oe.selectedIndex!==Jt),T.Q6J("@horizontalStepTransition",T.WLB(8,qe,oe._getAnimationDirection(Jt),T.VKq(6,Le,oe._getAnimationDuration())))("id",oe._getStepContentId(Jt)),T.uIk("aria-labelledby",oe._getStepLabelId(Jt)),T.xp6(1),T.Q6J("ngTemplateOutlet",kt.content)}}function Xt(lt,nt){if(1<&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,be,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,$e,2,11,"div",8),T.qZA()()),2<){const kt=T.oxw();T.xp6(2),T.Q6J("ngForOf",kt.steps),T.xp6(2),T.Q6J("ngForOf",kt.steps)}}function Te(lt,nt){if(1<){const kt=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2<){const kt=nt.$implicit,Jt=nt.index,oe=nt.last,Ce=T.oxw(2),Oe=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",T.WLB(10,ve,kt,Jt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!oe),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",Ce.selectedIndex!==Jt),T.Q6J("@verticalStepTransition",T.WLB(15,qe,Ce._getAnimationDirection(Jt),T.VKq(13,Le,Ce._getAnimationDuration())))("id",Ce._getStepContentId(Jt)),T.uIk("aria-labelledby",Ce._getStepLabelId(Jt)),T.xp6(2),T.Q6J("ngTemplateOutlet",kt.content)}}function ae(lt,nt){if(1<&&(T.ynx(0),T.YNc(1,Te,6,18,"div",14),T.BQk()),2<){const kt=T.oxw();T.xp6(1),T.Q6J("ngForOf",kt.steps)}}function Kt(lt,nt){if(1<){const kt=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const Ce=T.CHM(kt).step;return T.KtG(Ce.select())})("keydown",function(oe){T.CHM(kt);const Ce=T.oxw();return T.KtG(Ce._onKeydown(oe))}),T.qZA()}if(2<){const kt=nt.step,Jt=nt.i,oe=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===oe.orientation)("mat-vertical-stepper-header","vertical"===oe.orientation),T.Q6J("tabIndex",oe._getFocusIndex()===Jt?0:-1)("id",oe._getStepLabelId(Jt))("index",Jt)("state",oe._getIndicatorType(Jt,kt.state))("label",kt.stepLabel||kt.label)("selected",oe.selectedIndex===Jt)("active",oe._stepIsNavigable(Jt,kt))("optional",kt.optional)("errorMessage",kt.errorMessage)("iconOverrides",oe._iconOverrides)("disableRipple",oe.disableRipple||!oe._stepIsNavigable(Jt,kt))("color",kt.color||oe.color),T.uIk("aria-posinset",Jt+1)("aria-setsize",oe.steps.length)("aria-controls",oe._getStepContentId(Jt))("aria-selected",oe.selectedIndex==Jt)("aria-label",kt.ariaLabel||null)("aria-labelledby",!kt.ariaLabel&&kt.ariaLabelledby?kt.ariaLabelledby:null)("aria-disabled",!oe._stepIsNavigable(Jt,kt)||null)}}let de=(()=>{class lt extends p.u6{}return lt.\u0275fac=function(){let nt;return function(Jt){return(nt||(nt=T.n5z(lt)))(Jt||lt)}}(),lt.\u0275dir=T.lG2({type:lt,selectors:[["","matStepLabel",""]],features:[T.qOj]}),lt})(),Wt=(()=>{class lt{constructor(){this.changes=new k.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return lt.\u0275fac=function(kt){return new(kt||lt)},lt.\u0275prov=T.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const De={provide:Wt,deps:[[new T.FiY,new T.tp0,Wt]],useFactory:function re(lt){return lt||new Wt}},on=(0,A.pj)(class extends p.KL{constructor(nt){super(nt)}},"primary");let _n=(()=>{class lt extends on{constructor(kt,Jt,oe,Ce){super(oe),this._intl=kt,this._focusMonitor=Jt,this._intlSubscription=kt.changes.subscribe(()=>Ce.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(kt,Jt){kt?this._focusMonitor.focusVia(this._elementRef,kt,Jt):this._elementRef.nativeElement.focus(Jt)}_stringLabel(){return this.label instanceof de?null:this.label}_templateLabel(){return this.label instanceof de?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(kt){return"number"==kt?`${this.index+1}`:"edit"==kt?"create":"error"==kt?"warning":kt}}return lt.\u0275fac=function(kt){return new(kt||lt)(T.Y36(Wt),T.Y36(U.tE),T.Y36(T.SBq),T.Y36(T.sBO))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[T.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(kt,Jt){1&kt&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,vt,1,2,"ng-container",2),T.YNc(4,it,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,Tt,2,1,"div",5),T.YNc(7,At,2,1,"div",5),T.YNc(8,ft,2,1,"div",6),T.YNc(9,Et,2,1,"div",7),T.qZA()),2&kt&&(T.Q6J("matRippleTrigger",Jt._getHostElement())("matRippleDisabled",Jt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",Jt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",Jt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!Jt.iconOverrides||!Jt.iconOverrides[Jt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",Jt.active)("mat-step-label-selected",Jt.selected)("mat-step-label-error","error"==Jt.state),T.xp6(1),T.Q6J("ngIf",Jt._templateLabel()),T.xp6(1),T.Q6J("ngIf",Jt._stringLabel()),T.xp6(1),T.Q6J("ngIf",Jt.optional&&"error"!=Jt.state),T.xp6(1),T.Q6J("ngIf","error"==Jt.state))},dependencies:[b.O5,b.tP,b.RF,b.n9,b.ED,x.Hw,A.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),lt})();const we={horizontalStepTransition:(0,ct.X$)("horizontalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({transform:"none",visibility:"inherit"})),(0,ct.SB)("next",(0,ct.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ct.eR)("* => *",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,ct.X$)("verticalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("next",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({height:"*",visibility:"inherit"})),(0,ct.eR)("* <=> current",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let un=(()=>{class lt{constructor(kt){this.templateRef=kt}}return lt.\u0275fac=function(kt){return new(kt||lt)(T.Y36(T.Rgc))},lt.\u0275dir=T.lG2({type:lt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),lt})(),Un=(()=>{class lt{constructor(kt){this._template=kt}}return lt.\u0275fac=function(kt){return new(kt||lt)(T.Y36(T.Rgc))},lt.\u0275dir=T.lG2({type:lt,selectors:[["ng-template","matStepContent",""]]}),lt})(),oi=(()=>{class lt extends p.be{constructor(kt,Jt,oe,Ce){super(kt,Ce),this._errorStateMatcher=Jt,this._viewContainerRef=oe,this._isSelected=D.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,F.w)(()=>this._stepper.selectionChange.pipe((0,z.U)(kt=>kt.selectedStep===this),(0,J.O)(this._stepper.selected===this)))).subscribe(kt=>{kt&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(kt,Jt){return this._errorStateMatcher.isErrorState(kt,Jt)||!!(kt&&kt.invalid&&this.interacted)}}return lt.\u0275fac=function(kt){return new(kt||lt)(T.Y36((0,T.Gpc)(()=>vi)),T.Y36(A.rD,4),T.Y36(T.s_b),T.Y36(p.gx,8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["mat-step"]],contentQueries:function(kt,Jt,oe){if(1&kt&&(T.Suo(oe,de,5),T.Suo(oe,Un,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Jt.stepLabel=Ce.first),T.iGM(Ce=T.CRH())&&(Jt._lazyContent=Ce.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:A.rD,useExisting:lt},{provide:p.be,useExisting:lt}]),T.qOj],ngContentSelectors:se,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(kt,Jt){1&kt&&(T.F$t(),T.YNc(0,Ft,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),lt})(),vi=(()=>{class lt extends p.B8{constructor(kt,Jt,oe){super(kt,Jt,oe),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new k.xQ,this._animationDuration="";const Ce=oe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Ce?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(kt){this._animationDuration=/^\d+$/.test(kt)?kt+"ms":kt}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:kt,templateRef:Jt})=>this._iconOverrides[kt]=Jt),this.steps.changes.pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,at.x)((kt,Jt)=>kt.fromState===Jt.fromState&&kt.toState===Jt.toState),(0,K.R)(this._destroyed)).subscribe(kt=>{"current"===kt.toState&&this.animationDone.emit()})}_stepIsNavigable(kt,Jt){return Jt.completed||this.selectedIndex===kt||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return lt.\u0275fac=function(kt){return new(kt||lt)(T.Y36(P.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(kt,Jt,oe){if(1&kt&&(T.Suo(oe,oi,5),T.Suo(oe,un,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Jt._steps=Ce),T.iGM(Ce=T.CRH())&&(Jt._icons=Ce)}},viewQuery:function(kt,Jt){if(1&kt&&T.Gf(_n,5),2&kt){let oe;T.iGM(oe=T.CRH())&&(Jt._stepHeader=oe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(kt,Jt){2&kt&&(T.uIk("aria-orientation",Jt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===Jt.orientation)("mat-stepper-vertical","vertical"===Jt.orientation)("mat-stepper-label-position-end","horizontal"===Jt.orientation&&"end"==Jt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Jt.orientation&&"bottom"==Jt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Jt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:p.B8,useExisting:lt}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(kt,Jt){1&kt&&(T.ynx(0,0),T.YNc(1,Xt,5,2,"div",1),T.YNc(2,ae,2,1,"ng-container",2),T.BQk(),T.YNc(3,Kt,1,23,"ng-template",null,3,T.W1O)),2&kt&&(T.Q6J("ngSwitch",Jt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[b.sg,b.O5,b.tP,b.RF,b.n9,_n],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[we.horizontalStepTransition,we.verticalStepTransition]},changeDetection:0}),lt})(),si=(()=>{class lt extends p.st{}return lt.\u0275fac=function(){let nt;return function(Jt){return(nt||(nt=T.n5z(lt)))(Jt||lt)}}(),lt.\u0275dir=T.lG2({type:lt,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(kt,Jt){2&kt&&T.Ikx("type",Jt.type)},inputs:{type:"type"},features:[T.qOj]}),lt})(),Ke=(()=>{class lt extends p.po{}return lt.\u0275fac=function(){let nt;return function(Jt){return(nt||(nt=T.n5z(lt)))(Jt||lt)}}(),lt.\u0275dir=T.lG2({type:lt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(kt,Jt){2&kt&&T.Ikx("type",Jt.type)},inputs:{type:"type"},features:[T.qOj]}),lt})(),ne=(()=>{class lt{}return lt.\u0275fac=function(kt){return new(kt||lt)},lt.\u0275mod=T.oAB({type:lt}),lt.\u0275inj=T.cJS({providers:[De,A.rD],imports:[A.BQ,b.ez,d.eL,t.ot,p.U5,x.Ps,A.si,A.BQ]}),lt})()},30671:(ot,et,v)=>{"use strict";v.d(et,{ev:()=>En,Dz:()=>ye,w1:()=>Tn,yh:()=>Re,mD:()=>Ne,Q2:()=>An,Ke:()=>go,ge:()=>he,fO:()=>Xe,XQ:()=>mn,as:()=>gi,Gk:()=>sn,nj:()=>_o,BZ:()=>Ot,by:()=>fr,p0:()=>No});var d=v(94650),p=v(40445),b=v(21281),T=v(95017),t=v(83353),A=v(67376),x=v(36895),U=v(8929),k=v(5254),D=v(591),P=v(54715),F=v(21086),z=v(7625),J=v(72986);const K=[[["caption"]],[["colgroup"],["col"]]],at=["caption","colgroup, col"];function Dt(Je){return class extends Je{constructor(...Fn){super(...Fn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Fn){const He=this._sticky;this._sticky=(0,b.Ig)(Fn),this._hasStickyChanged=He!==this._sticky}hasStickyChanged(){const Fn=this._hasStickyChanged;return this._hasStickyChanged=!1,Fn}resetStickyChanged(){this._hasStickyChanged=!1}}}const Pt=new d.OlP("CDK_TABLE");let Vt=(()=>{class Je{constructor(He){this.template=He}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkCellDef",""]]}),Je})(),it=(()=>{class Je{constructor(He){this.template=He}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkHeaderCellDef",""]]}),Je})(),Tt=(()=>{class Je{constructor(He){this.template=He}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkFooterCellDef",""]]}),Je})();class At{}const ft=Dt(At);let Et=(()=>{class Je extends ft{constructor(He){super(),this._table=He,this._stickyEnd=!1}get name(){return this._name}set name(He){this._setNameInput(He)}get stickyEnd(){return this._stickyEnd}set stickyEnd(He){const Me=this._stickyEnd;this._stickyEnd=(0,b.Ig)(He),this._hasStickyChanged=Me!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(He){He&&(this._name=He,this.cssClassFriendlyName=He.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkColumnDef",""]],contentQueries:function(He,Me,dn){if(1&He&&(d.Suo(dn,Vt,5),d.Suo(dn,it,5),d.Suo(dn,Tt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(Me.cell=tt.first),d.iGM(tt=d.CRH())&&(Me.headerCell=tt.first),d.iGM(tt=d.CRH())&&(Me.footerCell=tt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Je}]),d.qOj]}),Je})();class Bt{constructor(Fn,He){He.nativeElement.classList.add(...Fn._columnCssClassName)}}let Ft=(()=>{class Je extends Bt{constructor(He,Me){super(He,Me)}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Et),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),Je})(),se=(()=>{class Je extends Bt{constructor(He,Me){if(super(He,Me),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Et),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]}),Je})(),Gt=(()=>{class Je extends Bt{constructor(He,Me){if(super(He,Me),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");Me.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(Et),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),Je})();class ve{constructor(){this.tasks=[],this.endTasks=[]}}const be=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Le=(()=>{class Je{constructor(He){this._ngZone=He,this._currentSchedule=null,this._destroyed=new U.xQ}schedule(He){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(He)}scheduleEnd(He){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(He)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ve,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const He=this._currentSchedule;this._currentSchedule=new ve;for(const Me of He.tasks)Me();for(const Me of He.endTasks)Me()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,J.q)(1))}}return Je.\u0275fac=function(He){return new(He||Je)(d.LFG(d.R0b))},Je.\u0275prov=d.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),$e=(()=>{class Je{constructor(He,Me){this.template=He,this._differs=Me}ngOnChanges(He){if(!this._columnsDiffer){const Me=He.columns&&He.columns.currentValue||[];this._columnsDiffer=this._differs.find(Me).create(),this._columnsDiffer.diff(Me)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(He){return this instanceof ae?He.headerCell.template:this instanceof Wt?He.footerCell.template:He.cell.template}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},Je.\u0275dir=d.lG2({type:Je,features:[d.TTD]}),Je})();class Xt extends $e{}const Te=Dt(Xt);let ae=(()=>{class Je extends Te{constructor(He,Me,dn){super(He,Me),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Je})();class Kt extends $e{}const de=Dt(Kt);let Wt=(()=>{class Je extends de{constructor(He,Me,dn){super(He,Me),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Je})(),re=(()=>{class Je extends $e{constructor(He,Me,dn){super(He,Me),this._table=dn}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Pt,8))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),Je})(),De=(()=>{class Je{constructor(He){this._viewContainer=He,Je.mostRecentCellOutlet=this}ngOnDestroy(){Je.mostRecentCellOutlet===this&&(Je.mostRecentCellOutlet=null)}}return Je.mostRecentCellOutlet=null,Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","cdkCellOutlet",""]]}),Je})(),on=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),_n=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),Ae=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),gn=(()=>{class Je{constructor(He){this.templateRef=He,this._contentClassName="cdk-no-data-row"}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.Rgc))},Je.\u0275dir=d.lG2({type:Je,selectors:[["ng-template","cdkNoDataRow",""]]}),Je})();const we=["top","bottom","left","right"];class un{constructor(Fn,He,Me,dn,tt=!0,Rt=!0,Q){this._isNativeHtmlTable=Fn,this._stickCellCss=He,this.direction=Me,this._coalescedStyleScheduler=dn,this._isBrowser=tt,this._needsPositionStickyOnElement=Rt,this._positionListener=Q,this._cachedCellWidths=[],this._borderCellCss={top:`${He}-border-elem-top`,bottom:`${He}-border-elem-bottom`,left:`${He}-border-elem-left`,right:`${He}-border-elem-right`}}clearStickyPositioning(Fn,He){const Me=[];for(const dn of Fn)if(dn.nodeType===dn.ELEMENT_NODE){Me.push(dn);for(let tt=0;tt{for(const dn of Me)this._removeStickyStyle(dn,He)})}updateStickyColumns(Fn,He,Me,dn=!0){if(!Fn.length||!this._isBrowser||!He.some(Ao=>Ao)&&!Me.some(Ao=>Ao))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const tt=Fn[0],Rt=tt.children.length,Q=this._getCellWidths(tt,dn),Nt=this._getStickyStartColumnPositions(Q,He),Be=this._getStickyEndColumnPositions(Q,Me),Rn=He.lastIndexOf(!0),Qi=Me.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ao="rtl"===this.direction,gr=Ao?"right":"left",vr=Ao?"left":"right";for(const us of Fn)for(let ir=0;irHe[ir]?us:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Qi?[]:Q.slice(Qi).map((us,ir)=>Me[ir+Qi]?us:null).reverse()}))})}stickRows(Fn,He,Me){if(!this._isBrowser)return;const dn="bottom"===Me?Fn.slice().reverse():Fn,tt="bottom"===Me?He.slice().reverse():He,Rt=[],Q=[],Nt=[];for(let Rn=0,Qi=0;Rn{for(let Rn=0;Rn{He.some(dn=>!dn)?this._removeStickyStyle(Me,["bottom"]):this._addStickyStyle(Me,"bottom",0,!1)})}_removeStickyStyle(Fn,He){for(const dn of He)Fn.style[dn]="",Fn.classList.remove(this._borderCellCss[dn]);we.some(dn=>-1===He.indexOf(dn)&&Fn.style[dn])?Fn.style.zIndex=this._getCalculatedZIndex(Fn):(Fn.style.zIndex="",this._needsPositionStickyOnElement&&(Fn.style.position=""),Fn.classList.remove(this._stickCellCss))}_addStickyStyle(Fn,He,Me,dn){Fn.classList.add(this._stickCellCss),dn&&Fn.classList.add(this._borderCellCss[He]),Fn.style[He]=`${Me}px`,Fn.style.zIndex=this._getCalculatedZIndex(Fn),this._needsPositionStickyOnElement&&(Fn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Fn){const He={top:100,bottom:10,left:1,right:1};let Me=0;for(const dn of we)Fn.style[dn]&&(Me+=He[dn]);return Me?`${Me}`:""}_getCellWidths(Fn,He=!0){if(!He&&this._cachedCellWidths.length)return this._cachedCellWidths;const Me=[],dn=Fn.children;for(let tt=0;tt0;tt--)He[tt]&&(Me[tt]=dn,dn+=Fn[tt]);return Me}}const kt=new d.OlP("CDK_SPL");let oe=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","rowOutlet",""]]}),Je})(),Ce=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","headerRowOutlet",""]]}),Je})(),Oe=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","footerRowOutlet",""]]}),Je})(),Dn=(()=>{class Je{constructor(He,Me){this.viewContainer=He,this.elementRef=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.s_b),d.Y36(d.SBq))},Je.\u0275dir=d.lG2({type:Je,selectors:[["","noDataRowOutlet",""]]}),Je})(),Li=(()=>{class Je{constructor(He,Me,dn,tt,Rt,Q,Nt,Be,Rn,Qi,Ao,gr){this._differs=He,this._changeDetectorRef=Me,this._elementRef=dn,this._dir=Rt,this._platform=Nt,this._viewRepeater=Be,this._coalescedStyleScheduler=Rn,this._viewportRuler=Qi,this._stickyPositioningListener=Ao,this._ngZone=gr,this._onDestroy=new U.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.vpe,this.viewChange=new D.X({start:0,end:Number.MAX_VALUE}),tt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(He){this._trackByFn=He}get dataSource(){return this._dataSource}set dataSource(He){this._dataSource!==He&&this._switchDataSource(He)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(He){this._multiTemplateDataRows=(0,b.Ig)(He),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(He){this._fixedLayout=(0,b.Ig)(He),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((He,Me)=>this.trackBy?this.trackBy(Me.dataIndex,Me.data):Me),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Me=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Me,this._forceRecalculateCellWidths=Me,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(He=>{He.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const He=this._dataDiffer.diff(this._renderRows);if(!He)return this._updateNoDataRow(),void this.contentChanged.next();const Me=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(He,Me,(dn,tt,Rt)=>this._getEmbeddedViewArgs(dn.item,Rt),dn=>dn.item.data,dn=>{1===dn.operation&&dn.context&&this._renderCellTemplateForItem(dn.record.item.rowDef,dn.context)}),this._updateRowIndexContext(),He.forEachIdentityChange(dn=>{Me.get(dn.currentIndex).context.$implicit=dn.item.data}),this._updateNoDataRow(),this._ngZone&&d.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,J.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(He){this._customColumnDefs.add(He)}removeColumnDef(He){this._customColumnDefs.delete(He)}addRowDef(He){this._customRowDefs.add(He)}removeRowDef(He){this._customRowDefs.delete(He)}addHeaderRowDef(He){this._customHeaderRowDefs.add(He),this._headerRowDefChanged=!0}removeHeaderRowDef(He){this._customHeaderRowDefs.delete(He),this._headerRowDefChanged=!0}addFooterRowDef(He){this._customFooterRowDefs.add(He),this._footerRowDefChanged=!0}removeFooterRowDef(He){this._customFooterRowDefs.delete(He),this._footerRowDefChanged=!0}setNoDataRow(He){this._customNoDataRow=He}updateStickyHeaderRowStyles(){const He=this._getRenderedRows(this._headerRowOutlet),dn=this._elementRef.nativeElement.querySelector("thead");dn&&(dn.style.display=He.length?"":"none");const tt=this._headerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["top"]),this._stickyStyler.stickRows(He,tt,"top"),this._headerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyFooterRowStyles(){const He=this._getRenderedRows(this._footerRowOutlet),dn=this._elementRef.nativeElement.querySelector("tfoot");dn&&(dn.style.display=He.length?"":"none");const tt=this._footerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["bottom"]),this._stickyStyler.stickRows(He,tt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,tt),this._footerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyColumnStyles(){const He=this._getRenderedRows(this._headerRowOutlet),Me=this._getRenderedRows(this._rowOutlet),dn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...He,...Me,...dn],["left","right"]),this._stickyColumnStylesNeedReset=!1),He.forEach((tt,Rt)=>{this._addStickyColumnStyles([tt],this._headerRowDefs[Rt])}),this._rowDefs.forEach(tt=>{const Rt=[];for(let Q=0;Q{this._addStickyColumnStyles([tt],this._footerRowDefs[Rt])}),Array.from(this._columnDefsByName.values()).forEach(tt=>tt.resetStickyChanged())}_getAllRenderRows(){const He=[],Me=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let dn=0;dn{const Q=dn&&dn.has(Rt)?dn.get(Rt):[];if(Q.length){const Nt=Q.shift();return Nt.dataIndex=Me,Nt}return{data:He,rowDef:Rt,dataIndex:Me}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ho(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Me=>{this._columnDefsByName.has(Me.name),this._columnDefsByName.set(Me.name,Me)})}_cacheRowDefs(){this._headerRowDefs=ho(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ho(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ho(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const He=this._rowDefs.filter(Me=>!Me.when);this._defaultRowDef=He[0]}_renderUpdatedColumns(){const He=(Rt,Q)=>Rt||!!Q.getColumnsDiff(),Me=this._rowDefs.reduce(He,!1);Me&&this._forceRenderDataRows();const dn=this._headerRowDefs.reduce(He,!1);dn&&this._forceRenderHeaderRows();const tt=this._footerRowDefs.reduce(He,!1);return tt&&this._forceRenderFooterRows(),Me||dn||tt}_switchDataSource(He){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),He||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=He}_observeRenderChanges(){if(!this.dataSource)return;let He;(0,T.Z9)(this.dataSource)?He=this.dataSource.connect(this):(0,P.b)(this.dataSource)?He=this.dataSource:Array.isArray(this.dataSource)&&(He=(0,F.of)(this.dataSource)),this._renderChangeSubscription=He.pipe((0,z.R)(this._onDestroy)).subscribe(Me=>{this._data=Me||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((He,Me)=>this._renderRow(this._headerRowOutlet,He,Me)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((He,Me)=>this._renderRow(this._footerRowOutlet,He,Me)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(He,Me){const dn=Array.from(Me.columns||[]).map(Q=>this._columnDefsByName.get(Q)),tt=dn.map(Q=>Q.sticky),Rt=dn.map(Q=>Q.stickyEnd);this._stickyStyler.updateStickyColumns(He,tt,Rt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(He){const Me=[];for(let dn=0;dn!tt.when||tt.when(Me,He));else{let tt=this._rowDefs.find(Rt=>Rt.when&&Rt.when(Me,He))||this._defaultRowDef;tt&&dn.push(tt)}return dn}_getEmbeddedViewArgs(He,Me){return{templateRef:He.rowDef.template,context:{$implicit:He.data},index:Me}}_renderRow(He,Me,dn,tt={}){const Rt=He.viewContainer.createEmbeddedView(Me.template,tt,dn);return this._renderCellTemplateForItem(Me,tt),Rt}_renderCellTemplateForItem(He,Me){for(let dn of this._getCellTemplates(He))De.mostRecentCellOutlet&&De.mostRecentCellOutlet._viewContainer.createEmbeddedView(dn,Me);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const He=this._rowOutlet.viewContainer;for(let Me=0,dn=He.length;Me{const dn=this._columnDefsByName.get(Me);return He.extractCellTemplate(dn)}):[]}_applyNativeTableSections(){const He=this._document.createDocumentFragment(),Me=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const dn of Me){const tt=this._document.createElement(dn.tag);tt.setAttribute("role","rowgroup");for(const Rt of dn.outlets)tt.appendChild(Rt.elementRef.nativeElement);He.appendChild(tt)}this._elementRef.nativeElement.appendChild(He)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const He=(Me,dn)=>Me||dn.hasStickyChanged();this._headerRowDefs.reduce(He,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(He,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(He,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new un(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,F.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Me=>{this._stickyStyler.direction=Me,this.updateStickyColumnStyles()})}_getOwnDefs(He){return He.filter(Me=>!Me._table||Me._table===this)}_updateNoDataRow(){const He=this._customNoDataRow||this._noDataRow;if(!He)return;const Me=0===this._rowOutlet.viewContainer.length;if(Me===this._isShowingNoDataRow)return;const dn=this._noDataRowOutlet.viewContainer;if(Me){const tt=dn.createEmbeddedView(He.templateRef),Rt=tt.rootNodes[0];1===tt.rootNodes.length&&Rt?.nodeType===this._document.ELEMENT_NODE&&(Rt.setAttribute("role","row"),Rt.classList.add(He._contentClassName))}else dn.clear();this._isShowingNoDataRow=Me}}return Je.\u0275fac=function(He){return new(He||Je)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(p.Is,8),d.Y36(x.K0),d.Y36(t.t4),d.Y36(T.k),d.Y36(be),d.Y36(A.rL),d.Y36(kt,12),d.Y36(d.R0b,8))},Je.\u0275cmp=d.Xpm({type:Je,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(He,Me,dn){if(1&He&&(d.Suo(dn,gn,5),d.Suo(dn,Et,5),d.Suo(dn,re,5),d.Suo(dn,ae,5),d.Suo(dn,Wt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(Me._noDataRow=tt.first),d.iGM(tt=d.CRH())&&(Me._contentColumnDefs=tt),d.iGM(tt=d.CRH())&&(Me._contentRowDefs=tt),d.iGM(tt=d.CRH())&&(Me._contentHeaderRowDefs=tt),d.iGM(tt=d.CRH())&&(Me._contentFooterRowDefs=tt)}},viewQuery:function(He,Me){if(1&He&&(d.Gf(oe,7),d.Gf(Ce,7),d.Gf(Oe,7),d.Gf(Dn,7)),2&He){let dn;d.iGM(dn=d.CRH())&&(Me._rowOutlet=dn.first),d.iGM(dn=d.CRH())&&(Me._headerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(Me._footerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(Me._noDataRowOutlet=dn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(He,Me){2&He&&d.ekj("cdk-table-fixed-layout",Me.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:Pt,useExisting:Je},{provide:T.k,useClass:T.yy},{provide:be,useClass:Le},{provide:kt,useValue:null}])],ngContentSelectors:at,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,Me){1&He&&(d.F$t(K),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Oe,Dn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Je})();function ho(Je,Fn){return Je.concat(Array.from(Fn))}let jn=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275mod=d.oAB({type:Je}),Je.\u0275inj=d.cJS({imports:[A.Cl]}),Je})();var Ye=v(3238),fn=v(36787),ze=v(23426),We=v(24850);const en=[[["caption"]],[["colgroup"],["col"]]],le=["caption","colgroup, col"];let Ot=(()=>{class Je extends Li{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(He,Me){2&He&&d.ekj("mat-table-fixed-layout",Me.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:T.k,useClass:T.yy},{provide:Li,useExisting:Je},{provide:Pt,useExisting:Je},{provide:be,useClass:Le},{provide:kt,useValue:null}]),d.qOj],ngContentSelectors:le,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,Me){1&He&&(d.F$t(en),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Oe,Dn],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Je})(),ye=(()=>{class Je extends Vt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Vt,useExisting:Je}]),d.qOj]}),Je})(),Xe=(()=>{class Je extends it{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:it,useExisting:Je}]),d.qOj]}),Je})(),Ne=(()=>{class Je extends Tt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matFooterCellDef",""]],features:[d._Bn([{provide:Tt,useExisting:Je}]),d.qOj]}),Je})(),Tn=(()=>{class Je extends Et{get name(){return this._name}set name(He){this._setNameInput(He)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:Et,useExisting:Je},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Je}]),d.qOj]}),Je})(),he=(()=>{class Je extends Ft{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[d.qOj]}),Je})(),Re=(()=>{class Je extends se{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[d.qOj]}),Je})(),En=(()=>{class Je extends Gt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[d.qOj]}),Je})(),gi=(()=>{class Je extends ae{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:ae,useExisting:Je}]),d.qOj]}),Je})(),go=(()=>{class Je extends Wt{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[d._Bn([{provide:Wt,useExisting:Je}]),d.qOj]}),Je})(),_o=(()=>{class Je extends re{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275dir=d.lG2({type:Je,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:re,useExisting:Je}]),d.qOj]}),Je})(),mn=(()=>{class Je extends on{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:on,useExisting:Je}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),An=(()=>{class Je extends _n{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[d._Bn([{provide:_n,useExisting:Je}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),sn=(()=>{class Je extends Ae{}return Je.\u0275fac=function(){let Fn;return function(Me){return(Fn||(Fn=d.n5z(Je)))(Me||Je)}}(),Je.\u0275cmp=d.Xpm({type:Je,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[d._Bn([{provide:Ae,useExisting:Je}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,Me){1&He&&d.GkF(0,0)},dependencies:[De],encapsulation:2}),Je})(),No=(()=>{class Je{}return Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275mod=d.oAB({type:Je}),Je.\u0275inj=d.cJS({imports:[jn,Ye.BQ,Ye.BQ]}),Je})();class qa extends T.o2{constructor(Fn=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new U.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(He,Me)=>{const dn=He[Me];if((0,b.t6)(dn)){const tt=Number(dn);return tt<9007199254740991?tt:dn}return dn},this.sortData=(He,Me)=>{const dn=Me.active,tt=Me.direction;return dn&&""!=tt?He.sort((Rt,Q)=>{let Nt=this.sortingDataAccessor(Rt,dn),Be=this.sortingDataAccessor(Q,dn);const Rn=typeof Nt,Qi=typeof Be;Rn!==Qi&&("number"===Rn&&(Nt+=""),"number"===Qi&&(Be+=""));let Ao=0;return null!=Nt&&null!=Be?Nt>Be?Ao=1:Nt{const dn=Object.keys(He).reduce((Rt,Q)=>Rt+He[Q]+"\u25ec","").toLowerCase(),tt=Me.trim().toLowerCase();return-1!=dn.indexOf(tt)},this._data=new D.X(Fn),this._updateChangeSubscription()}get data(){return this._data.value}set data(Fn){Fn=Array.isArray(Fn)?Fn:[],this._data.next(Fn),this._renderChangesSubscription||this._filterData(Fn)}get filter(){return this._filter.value}set filter(Fn){this._filter.next(Fn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Fn){this._sort=Fn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Fn){this._paginator=Fn,this._updateChangeSubscription()}_updateChangeSubscription(){const Fn=this._sort?(0,fn.T)(this._sort.sortChange,this._sort.initialized):(0,F.of)(null),He=this._paginator?(0,fn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,F.of)(null),dn=(0,ze.aj)([this._data,this._filter]).pipe((0,We.U)(([Q])=>this._filterData(Q))),tt=(0,ze.aj)([dn,Fn]).pipe((0,We.U)(([Q])=>this._orderData(Q))),Rt=(0,ze.aj)([tt,He]).pipe((0,We.U)(([Q])=>this._pageData(Q)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Rt.subscribe(Q=>this._renderData.next(Q))}_filterData(Fn){return this.filteredData=null==this.filter||""===this.filter?Fn:Fn.filter(He=>this.filterPredicate(He,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Fn){return this.sort?this.sortData(Fn.slice(),this.sort):Fn}_pageData(Fn){if(!this.paginator)return Fn;const He=this.paginator.pageIndex*this.paginator.pageSize;return Fn.slice(He,He+this.paginator.pageSize)}_updatePaginator(Fn){Promise.resolve().then(()=>{const He=this.paginator;if(He&&(He.length=Fn,He.pageIndex>0)){const Me=Math.ceil(He.length/He.pageSize)-1||0,dn=Math.min(He.pageIndex,Me);dn!==He.pageIndex&&(He.pageIndex=dn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class fr extends qa{}},3848:(ot,et,v)=>{"use strict";v.d(et,{BU:()=>Ge,Nh:()=>Xe,Nj:()=>Ot,SP:()=>We,uD:()=>vi,uX:()=>ne});var d=v(12687),p=v(49643),b=v(84080),T=v(36895),t=v(94650),A=v(3238),x=v(72986),U=v(1059),k=v(75778),D=v(7625),P=v(87545),F=v(31307),z=v(92198),J=v(8929),K=v(42654),at=v(23753),ct=v(21086),vt=v(36787),Dt=v(68896),Pt=v(56498),zt=v(98723),Vt=v(40445),it=v(37340),Tt=v(21281),At=v(67376),ft=v(83353),Et=v(29521);function Bt(Ne,Tn){1&Ne&&t.Hsn(0)}const Ft=["*"];function se(Ne,Tn){}const Gt=function(Ne){return{animationDuration:Ne}},ve=function(Ne,Tn){return{value:Ne,params:Tn}},be=["tabListContainer"],Le=["tabList"],qe=["tabListInner"],$e=["nextPaginator"],Xt=["previousPaginator"],Te=["tabBodyWrapper"],ae=["tabHeader"];function Kt(Ne,Tn){}function de(Ne,Tn){if(1&Ne&&t.YNc(0,Kt,0,0,"ng-template",10),2&Ne){const he=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",he.templateLabel)}}function Wt(Ne,Tn){if(1&Ne&&t._uU(0),2&Ne){const he=t.oxw().$implicit;t.Oqu(he.textLabel)}}function re(Ne,Tn){if(1&Ne){const he=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const En=t.CHM(he),gi=En.$implicit,go=En.index,_o=t.oxw(),mn=t.MAs(1);return t.KtG(_o._handleClick(gi,mn,go))})("cdkFocusChange",function(En){const go=t.CHM(he).index,_o=t.oxw();return t.KtG(_o._tabFocusChanged(En,go))}),t.TgZ(1,"div",7),t.YNc(2,de,1,1,"ng-template",8),t.YNc(3,Wt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&Ne){const he=Tn.$implicit,Re=Tn.index,En=t.MAs(4),gi=t.oxw();t.ekj("mat-tab-label-active",gi.selectedIndex===Re),t.Q6J("id",gi._getTabLabelId(Re))("ngClass",he.labelClass)("disabled",he.disabled)("matRippleDisabled",he.disabled||gi.disableRipple),t.uIk("tabIndex",gi._getTabIndex(he,Re))("aria-posinset",Re+1)("aria-setsize",gi._tabs.length)("aria-controls",gi._getTabContentId(Re))("aria-selected",gi.selectedIndex===Re)("aria-label",he.ariaLabel||null)("aria-labelledby",!he.ariaLabel&&he.ariaLabelledby?he.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",he.templateLabel)("ngIfElse",En)}}function De(Ne,Tn){if(1&Ne){const he=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(he);const En=t.oxw();return t.KtG(En._removeTabBodyWrapperHeight())})("_onCentering",function(En){t.CHM(he);const gi=t.oxw();return t.KtG(gi._setTabBodyWrapperHeight(En))}),t.qZA()}if(2&Ne){const he=Tn.$implicit,Re=Tn.index,En=t.oxw();t.ekj("mat-tab-body-active",En.selectedIndex===Re),t.Q6J("id",En._getTabContentId(Re))("ngClass",he.bodyClass)("content",he.content)("position",he.position)("origin",he.origin)("animationDuration",En.animationDuration)("preserveContent",En.preserveContent),t.uIk("tabindex",null!=En.contentTabIndex&&En.selectedIndex===Re?En.contentTabIndex:null)("aria-labelledby",En._getTabLabelId(Re))}}const on=["mat-tab-nav-bar",""],_n=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ae(){return Tn=>({left:Tn?(Tn.offsetLeft||0)+"px":"0",width:Tn?(Tn.offsetWidth||0)+"px":"0"})}});let gn=(()=>{class Ne{constructor(he,Re,En,gi){this._elementRef=he,this._ngZone=Re,this._inkBarPositioner=En,this._animationMode=gi}alignToElement(he){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>{const Re=this._inkBarPositioner(he),En=this._elementRef.nativeElement;En.style.left=Re.left,En.style.width=Re.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_n),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(he,Re){2&he&&t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode)}}),Ne})();const we=new t.OlP("MatTabContent"),Un=new t.OlP("MatTabLabel"),oi=new t.OlP("MAT_TAB");let vi=(()=>{class Ne extends b.ig{constructor(he,Re,En){super(he,Re),this._closestTab=En}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(oi,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Un,useExisting:Ne}]),t.qOj]}),Ne})();const si=(0,A.Id)(class{}),Ke=new t.OlP("MAT_TAB_GROUP");let ne=(()=>{class Ne extends si{constructor(he,Re){super(),this._viewContainerRef=he,this._closestTabGroup=Re,this.textLabel="",this._contentPortal=null,this._stateChanges=new J.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(he){this._setTemplateLabelInput(he)}get content(){return this._contentPortal}ngOnChanges(he){(he.hasOwnProperty("textLabel")||he.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new b.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(he){he&&he._closestTab===this&&(this._templateLabel=he)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.s_b),t.Y36(Ke,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab"]],contentQueries:function(he,Re,En){if(1&he&&(t.Suo(En,Un,5),t.Suo(En,we,7,t.Rgc)),2&he){let gi;t.iGM(gi=t.CRH())&&(Re.templateLabel=gi.first),t.iGM(gi=t.CRH())&&(Re._explicitContent=gi.first)}},viewQuery:function(he,Re){if(1&he&&t.Gf(t.Rgc,7),2&he){let En;t.iGM(En=t.CRH())&&(Re._implicitContent=En.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:oi,useExisting:Ne}]),t.qOj,t.TTD],ngContentSelectors:Ft,decls:1,vars:0,template:function(he,Re){1&he&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Ne})();const lt={translateTab:(0,it.X$)("translateTab",[(0,it.SB)("center, void, left-origin-center, right-origin-center",(0,it.oB)({transform:"none"})),(0,it.SB)("left",(0,it.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,it.SB)("right",(0,it.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,it.eR)("* => left, * => right, left => center, right => center",(0,it.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,it.eR)("void => left-origin-center",[(0,it.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,it.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,it.eR)("void => right-origin-center",[(0,it.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,it.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let nt=(()=>{class Ne extends b.Pl{constructor(he,Re,En,gi){super(he,Re,gi),this._host=En,this._centeringSub=K.w.EMPTY,this._leavingSub=K.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(he=>{he&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Jt)),t.Y36(T.K0))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),Ne})(),kt=(()=>{class Ne{constructor(he,Re,En){this._elementRef=he,this._dir=Re,this._dirChangeSubscription=K.w.EMPTY,this._translateTabComplete=new J.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Re&&(this._dirChangeSubscription=Re.change.subscribe(gi=>{this._computePositionAnimationState(gi),En.markForCheck()})),this._translateTabComplete.pipe((0,k.x)((gi,go)=>gi.fromState===go.fromState&&gi.toState===go.toState)).subscribe(gi=>{this._isCenterPosition(gi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(gi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(he){this._positionIndex=he,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(he){const Re=this._isCenterPosition(he.toState);this._beforeCentering.emit(Re),Re&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(he){return"center"==he||"left-origin-center"==he||"right-origin-center"==he}_computePositionAnimationState(he=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==he?"left":"right":this._positionIndex>0?"ltr"==he?"right":"left":"center"}_computePositionFromOrigin(he){const Re=this._getLayoutDirection();return"ltr"==Re&&he<=0||"rtl"==Re&&he>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),Jt=(()=>{class Ne extends kt{constructor(he,Re,En){super(he,Re,En)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(he,Re){if(1&he&&t.Gf(b.Pl,5),2&he){let En;t.iGM(En=t.CRH())&&(Re._portalHost=En.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(he,Re){1&he&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(gi){return Re._onTranslateTabStarted(gi)})("@translateTab.done",function(gi){return Re._translateTabComplete.next(gi)}),t.YNc(2,se,0,0,"ng-template",2),t.qZA()),2&he&&t.Q6J("@translateTab",t.WLB(3,ve,Re._position,t.VKq(1,Gt,Re.animationDuration)))},dependencies:[nt],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[lt.translateTab]}}),Ne})();const oe=new t.OlP("MAT_TABS_CONFIG"),Ce=(0,A.Id)(class{});let Oe=(()=>{class Ne extends Ce{constructor(he){super(),this.elementRef=he}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(he,Re){2&he&&(t.uIk("aria-disabled",!!Re.disabled),t.ekj("mat-tab-disabled",Re.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),Ne})();const Dn=(0,ft.i$)({passive:!0});let ho=(()=>{class Ne{constructor(he,Re,En,gi,go,_o,mn){this._elementRef=he,this._changeDetectorRef=Re,this._viewportRuler=En,this._dir=gi,this._ngZone=go,this._platform=_o,this._animationMode=mn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new J.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new J.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,go.runOutsideAngular(()=>{(0,at.R)(he.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){he=(0,Tt.su)(he),this._selectedIndex!=he&&(this._selectedIndexChanged=!0,this._selectedIndex=he,this._keyManager&&this._keyManager.updateActiveItem(he))}ngAfterViewInit(){(0,at.R)(this._previousPaginator.nativeElement,"touchstart",Dn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,at.R)(this._nextPaginator.nativeElement,"touchstart",Dn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const he=this._dir?this._dir.change:(0,ct.of)("ltr"),Re=this._viewportRuler.change(150),En=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new d.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(En),(0,vt.T)(he,Re,this._items.changes,this._itemsResized()).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),En()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(gi=>{this.indexFocused.emit(gi),this._setTabFocus(gi)})}_itemsResized(){return"function"!=typeof ResizeObserver?Dt.E:this._items.changes.pipe((0,U.O)(this._items),(0,P.w)(he=>new Pt.y(Re=>this._ngZone.runOutsideAngular(()=>{const En=new ResizeObserver(gi=>Re.next(gi));return he.forEach(gi=>En.observe(gi.elementRef.nativeElement)),()=>{En.disconnect()}}))),(0,F.T)(1),(0,z.h)(he=>he.some(Re=>Re.contentRect.width>0&&Re.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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(he){if(!(0,Et.Vb)(he))switch(he.keyCode){case Et.K5:case Et.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(he));break;default:this._keyManager.onKeydown(he)}}_onContentChanges(){const he=this._elementRef.nativeElement.textContent;he!==this._currentTextContent&&(this._currentTextContent=he||"",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(he){!this._isValidIndex(he)||this.focusIndex===he||!this._keyManager||this._keyManager.setActiveItem(he)}_isValidIndex(he){if(!this._items)return!0;const Re=this._items?this._items.toArray()[he]:null;return!!Re&&!Re.disabled}_setTabFocus(he){if(this._showPaginationControls&&this._scrollToLabel(he),this._items&&this._items.length){this._items.toArray()[he].focus();const Re=this._tabListContainer.nativeElement;Re.scrollLeft="ltr"==this._getLayoutDirection()?0:Re.scrollWidth-Re.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const he=this.scrollDistance,Re="ltr"===this._getLayoutDirection()?-he:he;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Re)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(he){this._scrollTo(he)}_scrollHeader(he){return this._scrollTo(this._scrollDistance+("before"==he?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(he){this._stopInterval(),this._scrollHeader(he)}_scrollToLabel(he){if(this.disablePagination)return;const Re=this._items?this._items.toArray()[he]:null;if(!Re)return;const En=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:gi,offsetWidth:go}=Re.elementRef.nativeElement;let _o,mn;"ltr"==this._getLayoutDirection()?(_o=gi,mn=_o+go):(mn=this._tabListInner.nativeElement.offsetWidth-gi,_o=mn-go);const An=this.scrollDistance,sn=this.scrollDistance+En;_osn&&(this.scrollDistance+=mn-sn+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const he=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;he||(this.scrollDistance=0),he!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=he}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const he=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Re=he?he.elementRef.nativeElement:null;Re?this._inkBar.alignToElement(Re):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(he,Re){Re&&null!=Re.button&&0!==Re.button||(this._stopInterval(),(0,zt.H)(650,100).pipe((0,D.R)((0,vt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:En,distance:gi}=this._scrollHeader(he);(0===gi||gi>=En)&&this._stopInterval()}))}_scrollTo(he){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Re=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Re,he)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Re,distance:this._scrollDistance}}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),fi=(()=>{class Ne extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(he){he.preventDefault()}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),Ne})(),Bn=(()=>{class Ne extends fi{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Oe,4),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(be,7),t.Gf(Le,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:Ft,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ne})(),jn=0;class Ye{}const fn=(0,A.pj)((0,A.Kr)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let ze=(()=>{class Ne extends fn{constructor(he,Re,En,gi){super(he),this._changeDetectorRef=Re,this._animationMode=gi,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=K.w.EMPTY,this._tabLabelSubscription=K.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=jn++,this.animationDuration=En&&En.animationDuration?En.animationDuration:"500ms",this.disablePagination=!(!En||null==En.disablePagination)&&En.disablePagination,this.dynamicHeight=!(!En||null==En.dynamicHeight)&&En.dynamicHeight,this.contentTabIndex=En?.contentTabIndex??null,this.preserveContent=!!En?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(he){this._dynamicHeight=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){this._indexToSelect=(0,Tt.su)(he,null)}get animationDuration(){return this._animationDuration}set animationDuration(he){this._animationDuration=/^\d+$/.test(he+"")?he+"ms":he}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(he){this._contentTabIndex=(0,Tt.su)(he,null)}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get preserveContent(){return this._preserveContent}set preserveContent(he){this._preserveContent=(0,Tt.Ig)(he)}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement;Re.classList.remove(`mat-background-${this.backgroundColor}`),he&&Re.classList.add(`mat-background-${he}`),this._backgroundColor=he}ngAfterContentChecked(){const he=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=he){const Re=null==this._selectedIndex;if(!Re){this.selectedTabChange.emit(this._createChangeEvent(he));const En=this._tabBodyWrapper.nativeElement;En.style.minHeight=En.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((En,gi)=>En.isActive=gi===he),Re||(this.selectedIndexChange.emit(he),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Re,En)=>{Re.position=En-he,null!=this._selectedIndex&&0==Re.position&&!Re.origin&&(Re.origin=he-this._selectedIndex)}),this._selectedIndex!==he&&(this._selectedIndex=he,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const he=this._clampTabIndex(this._indexToSelect);if(he===this._selectedIndex){const Re=this._tabs.toArray();let En;for(let gi=0;gi{Re[he].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(he))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(he=>{this._tabs.reset(he.filter(Re=>Re._closestTabGroup===this||!Re._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(he){const Re=this._tabHeader;Re&&(Re.focusIndex=he)}_focusChanged(he){this._lastFocusedTabIndex=he,this.focusChange.emit(this._createChangeEvent(he))}_createChangeEvent(he){const Re=new Ye;return Re.index=he,this._tabs&&this._tabs.length&&(Re.tab=this._tabs.toArray()[he]),Re}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,vt.T)(...this._tabs.map(he=>he._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(he){return Math.min(this._tabs.length-1,Math.max(he||0,0))}_getTabLabelId(he){return`mat-tab-label-${this._groupId}-${he}`}_getTabContentId(he){return`mat-tab-content-${this._groupId}-${he}`}_setTabBodyWrapperHeight(he){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Re=this._tabBodyWrapper.nativeElement;Re.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Re.style.height=he+"px")}_removeTabBodyWrapperHeight(){const he=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=he.clientHeight,he.style.height="",this.animationDone.emit()}_handleClick(he,Re,En){he.disabled||(this.selectedIndex=Re.focusIndex=En)}_getTabIndex(he,Re){return he.disabled?null:Re===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(he,Re){he&&"mouse"!==he&&"touch"!==he&&(this._tabHeader.focusIndex=Re)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),Ne})(),We=(()=>{class Ne extends ze{constructor(he,Re,En,gi){super(he,Re,En,gi)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,ne,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._allTabs=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(Te,5),t.Gf(ae,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._tabBodyWrapper=En.first),t.iGM(En=t.CRH())&&(Re._tabHeader=En.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-group-dynamic-height",Re.dynamicHeight)("mat-tab-group-inverted-header","below"===Re.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:Ke,useExisting:Ne}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(he,Re){1&he&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(gi){return Re._focusChanged(gi)})("selectFocusedIndex",function(gi){return Re.selectedIndex=gi}),t.YNc(2,re,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,De,1,11,"mat-tab-body",5),t.qZA()),2&he&&(t.Q6J("selectedIndex",Re.selectedIndex||0)("disableRipple",Re.disableRipple)("disablePagination",Re.disablePagination),t.xp6(2),t.Q6J("ngForOf",Re._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(2),t.Q6J("ngForOf",Re._tabs))},dependencies:[T.mk,T.sg,T.O5,b.Pl,A.wG,d.kH,Oe,Jt,Bn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ne})(),en=0,le=(()=>{class Ne extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,gi,go,Re,En,_o,mn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement.classList;Re.remove(`mat-background-${this.backgroundColor}`),he&&Re.add(`mat-background-${he}`),this._backgroundColor=he}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const he=this._items.toArray();for(let Re=0;Re{class Ne extends le{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(ft.t4),t.Y36(t.QbO,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Ot,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(be,7),t.Gf(Le,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(he,Re){2&he&&(t.uIk("role",Re._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())("mat-primary","warn"!==Re.color&&"accent"!==Re.color)("mat-accent","accent"===Re.color)("mat-warn","warn"===Re.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:on,ngContentSelectors:Ft,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),Ne})();const Lt=(0,A.sb)((0,A.Kr)((0,A.Id)(class{})));let wt=(()=>{class Ne extends Lt{constructor(he,Re,En,gi,go,_o){super(),this._tabNavBar=he,this.elementRef=Re,this._focusMonitor=go,this._isActive=!1,this.id="mat-tab-link-"+en++,this.rippleConfig=En||{},this.tabIndex=parseInt(gi)||0,"NoopAnimations"===_o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(he){const Re=(0,Tt.Ig)(he);Re!==this._isActive&&(this._isActive=Re,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(he){this._tabNavBar.tabPanel&&he.keyCode===Et.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(le),t.Y36(t.SBq),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,inputs:{active:"active",id:"id"},features:[t.qOj]}),Ne})(),Ot=(()=>{class Ne extends wt{constructor(he,Re,En,gi,go,_o,mn,An){super(he,Re,go,_o,mn,An),this._tabLinkRipple=new A.IR(this,En,Re,gi),this._tabLinkRipple.setupTriggerEvents(Re.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(he){return new(he||Ne)(t.Y36(Ge),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Ne.\u0275dir=t.lG2({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(he,Re){1&he&&t.NdJ("focus",function(){return Re._handleFocus()})("keydown",function(gi){return Re._handleKeydown(gi)}),2&he&&(t.uIk("aria-controls",Re._getAriaControls())("aria-current",Re._getAriaCurrent())("aria-disabled",Re.disabled)("aria-selected",Re._getAriaSelected())("id",Re.id)("tabIndex",Re._getTabIndex())("role",Re._getRole()),t.ekj("mat-tab-disabled",Re.disabled)("mat-tab-label-active",Re.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),Ne})(),Xe=(()=>{class Ne{}return Ne.\u0275fac=function(he){return new(he||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[T.ez,A.BQ,b.eL,A.si,p.Q8,d.rt,A.BQ]}),Ne})()},83683:(ot,et,v)=>{"use strict";v.d(et,{Ye:()=>k,g0:()=>P});var d=v(94650),p=v(3238),b=v(83353),T=v(36895);const t=["*",[["mat-toolbar-row"]]],A=["*","mat-toolbar-row"],x=(0,p.pj)(class{constructor(F){this._elementRef=F}});let U=(()=>{class F{}return F.\u0275fac=function(J){return new(J||F)},F.\u0275dir=d.lG2({type:F,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),F})(),k=(()=>{class F extends x{constructor(J,K,at){super(J),this._platform=K,this._document=at}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return F.\u0275fac=function(J){return new(J||F)(d.Y36(d.SBq),d.Y36(b.t4),d.Y36(T.K0))},F.\u0275cmp=d.Xpm({type:F,selectors:[["mat-toolbar"]],contentQueries:function(J,K,at){if(1&J&&d.Suo(at,U,5),2&J){let ct;d.iGM(ct=d.CRH())&&(K._toolbarRows=ct)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(J,K){2&J&&d.ekj("mat-toolbar-multiple-rows",K._toolbarRows.length>0)("mat-toolbar-single-row",0===K._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:A,decls:2,vars:0,template:function(J,K){1&J&&(d.F$t(t),d.Hsn(0),d.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),F})(),P=(()=>{class F{}return F.\u0275fac=function(J){return new(J||F)},F.\u0275mod=d.oAB({type:F}),F.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),F})()},10266:(ot,et,v)=>{"use strict";v.d(et,{AV:()=>be,gM:()=>se});var d=v(98184),p=v(12687),b=v(36895),T=v(94650),t=v(3238),A=v(67376),x=v(40445),U=v(21281),k=v(29521),D=v(62289),P=v(83353),F=v(84080),z=v(8929),J=v(7625),K=v(72986);v(37340);const ct=["tooltip"],Pt="tooltip-panel",zt=(0,P.i$)({passive:!0}),Tt=new T.OlP("mat-tooltip-scroll-strategy"),ft={provide:Tt,deps:[d.aV],useFactory:function At(qe){return()=>qe.scrollStrategies.reposition({scrollThrottle:20})}},Et=new T.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ft=(()=>{class qe{constructor(Xt,Te,ae,Kt,de,Wt,re,De,on,_n,Ae,gn){this._overlay=Xt,this._elementRef=Te,this._scrollDispatcher=ae,this._viewContainerRef=Kt,this._ngZone=de,this._platform=Wt,this._ariaDescriber=re,this._focusMonitor=De,this._dir=_n,this._defaultOptions=Ae,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new z.xQ,this._scrollStrategy=on,this._document=gn,Ae&&(Ae.position&&(this.position=Ae.position),Ae.touchGestures&&(this.touchGestures=Ae.touchGestures)),_n.change.pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Xt){Xt!==this._position&&(this._position=Xt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Xt){this._disabled=(0,U.Ig)(Xt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Xt){this._showDelay=(0,U.su)(Xt)}get hideDelay(){return this._hideDelay}set hideDelay(Xt){this._hideDelay=(0,U.su)(Xt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Xt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Xt?String(Xt).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(Xt){this._tooltipClass=Xt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,J.R)(this._destroyed)).subscribe(Xt=>{Xt?"keyboard"===Xt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Xt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Te,ae])=>{Xt.removeEventListener(Te,ae,zt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Xt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Xt)}show(Xt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Te=this._createOverlay();this._detach(),this._portal=this._portal||new F.C5(this._tooltipComponent,this._viewContainerRef);const ae=this._tooltipInstance=Te.attach(this._portal).instance;ae._triggerElement=this._elementRef.nativeElement,ae._mouseLeaveHideDelay=this._hideDelay,ae.afterHidden().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ae.show(Xt)}hide(Xt=this.hideDelay){const Te=this._tooltipInstance;Te&&(Te.isVisible()?Te.hide(Xt):(Te._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Xt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Te=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Xt);return Te.positionChanges.pipe((0,J.R)(this._destroyed)).subscribe(ae=>{this._updateCurrentPositionClass(ae.connectionPair),this._tooltipInstance&&ae.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Te,panelClass:`${this._cssClassPrefix}-${Pt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,J.R)(this._destroyed)).subscribe(ae=>{this._isTooltipVisible()&&ae.keyCode===k.hY&&!(0,k.Vb)(ae)&&(ae.preventDefault(),ae.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(Xt){const Te=Xt.getConfig().positionStrategy,ae=this._getOrigin(),Kt=this._getOverlayPosition();Te.withPositions([this._addOffset({...ae.main,...Kt.main}),this._addOffset({...ae.fallback,...Kt.fallback})])}_addOffset(Xt){return Xt}_getOrigin(){const Xt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ae;"above"==Te||"below"==Te?ae={originX:"center",originY:"above"==Te?"top":"bottom"}:"before"==Te||"left"==Te&&Xt||"right"==Te&&!Xt?ae={originX:"start",originY:"center"}:("after"==Te||"right"==Te&&Xt||"left"==Te&&!Xt)&&(ae={originX:"end",originY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.originX,ae.originY);return{main:ae,fallback:{originX:Kt,originY:de}}}_getOverlayPosition(){const Xt=!this._dir||"ltr"==this._dir.value,Te=this.position;let ae;"above"==Te?ae={overlayX:"center",overlayY:"bottom"}:"below"==Te?ae={overlayX:"center",overlayY:"top"}:"before"==Te||"left"==Te&&Xt||"right"==Te&&!Xt?ae={overlayX:"end",overlayY:"center"}:("after"==Te||"right"==Te&&Xt||"left"==Te&&!Xt)&&(ae={overlayX:"start",overlayY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.overlayX,ae.overlayY);return{main:ae,fallback:{overlayX:Kt,overlayY:de}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,K.q)(1),(0,J.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Xt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Xt,this._tooltipInstance._markForCheck())}_invertPosition(Xt,Te){return"above"===this.position||"below"===this.position?"top"===Te?Te="bottom":"bottom"===Te&&(Te="top"):"end"===Xt?Xt="start":"start"===Xt&&(Xt="end"),{x:Xt,y:Te}}_updateCurrentPositionClass(Xt){const{overlayY:Te,originX:ae,originY:Kt}=Xt;let de;if(de="center"===Te?this._dir&&"rtl"===this._dir.value?"end"===ae?"left":"right":"start"===ae?"left":"right":"bottom"===Te&&"top"===Kt?"above":"below",de!==this._currentPosition){const Wt=this._overlayRef;if(Wt){const re=`${this._cssClassPrefix}-${Pt}-`;Wt.removePanelClass(re+this._currentPosition),Wt.addPanelClass(re+de)}this._currentPosition=de}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Xt=[];if(this._platformSupportsMouseEvents())Xt.push(["mouseleave",Te=>{const ae=Te.relatedTarget;(!ae||!this._overlayRef?.overlayElement.contains(ae))&&this.hide()}],["wheel",Te=>this._wheelListener(Te)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Te=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Xt.push(["touchend",Te],["touchcancel",Te])}this._addListeners(Xt),this._passiveListeners.push(...Xt)}_addListeners(Xt){Xt.forEach(([Te,ae])=>{this._elementRef.nativeElement.addEventListener(Te,ae,zt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Xt){if(this._isTooltipVisible()){const Te=this._document.elementFromPoint(Xt.clientX,Xt.clientY),ae=this._elementRef.nativeElement;Te!==ae&&!ae.contains(Te)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Xt=this.touchGestures;if("off"!==Xt){const Te=this._elementRef.nativeElement,ae=Te.style;("on"===Xt||"INPUT"!==Te.nodeName&&"TEXTAREA"!==Te.nodeName)&&(ae.userSelect=ae.msUserSelect=ae.webkitUserSelect=ae.MozUserSelect="none"),("on"===Xt||!Te.draggable)&&(ae.webkitUserDrag="none"),ae.touchAction="none",ae.webkitTapHighlightColor="transparent"}}}return qe.\u0275fac=function(Xt){T.$Z()},qe.\u0275dir=T.lG2({type:qe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),qe})(),se=(()=>{class qe extends Ft{constructor(Xt,Te,ae,Kt,de,Wt,re,De,on,_n,Ae,gn){super(Xt,Te,ae,Kt,de,Wt,re,De,on,_n,Ae,gn),this._tooltipComponent=ve}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(d.aV),T.Y36(T.SBq),T.Y36(A.mF),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(P.t4),T.Y36(p.$s),T.Y36(p.tE),T.Y36(Tt),T.Y36(x.Is,8),T.Y36(Et,8),T.Y36(b.K0))},qe.\u0275dir=T.lG2({type:qe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[T.qOj]}),qe})(),Gt=(()=>{class qe{constructor(Xt,Te){this._changeDetectorRef=Xt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.xQ,this._animationsDisabled="NoopAnimations"===Te}show(Xt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Xt)}hide(Xt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Xt)}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:Xt}){(!Xt||!this._triggerElement.contains(Xt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Xt}){(Xt===this._showAnimation||Xt===this._hideAnimation)&&this._finalizeAnimation(Xt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Xt){Xt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Xt){const Te=this._tooltip.nativeElement,ae=this._showAnimation,Kt=this._hideAnimation;if(Te.classList.remove(Xt?Kt:ae),Te.classList.add(Xt?ae:Kt),this._isVisible=Xt,Xt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const de=getComputedStyle(Te);("0s"===de.getPropertyValue("animation-duration")||"none"===de.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Xt&&this._onShow(),this._animationsDisabled&&(Te.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Xt))}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(T.QbO,8))},qe.\u0275dir=T.lG2({type:qe}),qe})(),ve=(()=>{class qe extends Gt{constructor(Xt,Te,ae){super(Xt,ae),this._breakpointObserver=Te,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(D.Yg),T.Y36(T.QbO,8))},qe.\u0275cmp=T.Xpm({type:qe,selectors:[["mat-tooltip-component"]],viewQuery:function(Xt,Te){if(1&Xt&&T.Gf(ct,7),2&Xt){let ae;T.iGM(ae=T.CRH())&&(Te._tooltip=ae.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Xt,Te){1&Xt&&T.NdJ("mouseleave",function(Kt){return Te._handleMouseLeave(Kt)}),2&Xt&&T.Udp("zoom",Te.isVisible()?1:null)},features:[T.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Xt,Te){if(1&Xt&&(T.TgZ(0,"div",0,1),T.NdJ("animationend",function(Kt){return Te._handleAnimationEnd(Kt)}),T.ALo(2,"async"),T._uU(3),T.qZA()),2&Xt){let ae;T.ekj("mat-tooltip-handset",null==(ae=T.lcZ(2,4,Te._isHandset))?null:ae.matches),T.Q6J("ngClass",Te.tooltipClass),T.xp6(3),T.Oqu(Te.message)}},dependencies:[b.mk,b.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),qe})(),be=(()=>{class qe{}return qe.\u0275fac=function(Xt){return new(Xt||qe)},qe.\u0275mod=T.oAB({type:qe}),qe.\u0275inj=T.cJS({providers:[ft],imports:[p.rt,b.ez,d.U8,t.BQ,t.BQ,A.ZD]}),qe})()},35423:(ot,et,v)=>{"use strict";v.d(et,{Ar:()=>K,GZ:()=>z,JZ:()=>Pt,WX:()=>Vt,ah:()=>J,dp:()=>Dt,eu:()=>ct,fQ:()=>F,gi:()=>at,kc:()=>zt,uo:()=>P});var d=v(57851),p=v(94650),b=v(3238),T=v(21281),t=v(95017),A=v(591),x=v(36787),U=v(72986),k=v(24850);const D=(0,b.sb)((0,b.Id)(d.Hs));let P=(()=>{class it extends D{constructor(At,ft,Et){super(At,ft),this.tabIndex=Number(Et)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return it.\u0275fac=function(At){return new(At||it)(p.Y36(p.SBq),p.Y36(d._0),p.$8M("tabindex"))},it.\u0275dir=p.lG2({type:it,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[p._Bn([{provide:d.Hs,useExisting:it}]),p.qOj]}),it})(),F=(()=>{class it extends d.rO{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:d.rO,useExisting:it}]),p.qOj]}),it})(),z=(()=>{class it extends d.Xx{constructor(At,ft,Et,Bt){super(At,ft,Et),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(At){this._tabIndex=At??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return it.\u0275fac=function(At){return new(At||it)(p.Y36(p.SBq),p.Y36(d._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},it.\u0275dir=p.lG2({type:it,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[p._Bn([{provide:d.Xx,useExisting:it},{provide:d.Hs,useExisting:it},{provide:d.HI,useExisting:it}]),p.qOj]}),it})(),J=(()=>{class it extends d.XJ{get level(){return this._level}set level(At){this._setLevelInput(At)}get indent(){return this._indent}set indent(At){this._setIndentInput(At)}}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:d.XJ,useExisting:it}]),p.qOj]}),it})(),K=(()=>{class it{constructor(At,ft){this.viewContainer=At,this._node=ft}}return it.\u0275fac=function(At){return new(At||it)(p.Y36(p.s_b),p.Y36(d.HI,8))},it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:d.cu,useExisting:it}])]}),it})(),at=(()=>{class it extends d._0{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275cmp=p.Xpm({type:it,selectors:[["mat-tree"]],viewQuery:function(At,ft){if(1&At&&p.Gf(K,7),2&At){let Et;p.iGM(Et=p.CRH())&&(ft._nodeOutlet=Et.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:d._0,useExisting:it}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(At,ft){1&At&&p.GkF(0,0)},dependencies:[K],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),it})(),ct=(()=>{class it extends d.Ud{}return it.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(it)))(ft||it)}}(),it.\u0275dir=p.lG2({type:it,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:d.Ud,useExisting:it}]),p.qOj]}),it})(),Dt=(()=>{class it{}return it.\u0275fac=function(At){return new(At||it)},it.\u0275mod=p.oAB({type:it}),it.\u0275inj=p.cJS({imports:[d.nZ,b.BQ,b.BQ]}),it})();class Pt{constructor(Tt,At,ft,Et){this.transformFunction=Tt,this.getLevel=At,this.isExpandable=ft,this.getChildren=Et}_flattenNode(Tt,At,ft,Et){const Bt=this.transformFunction(Tt,At);if(ft.push(Bt),this.isExpandable(Bt)){const Ft=this.getChildren(Tt);Ft&&(Array.isArray(Ft)?this._flattenChildren(Ft,At,ft,Et):Ft.pipe((0,U.q)(1)).subscribe(se=>{this._flattenChildren(se,At,ft,Et)}))}return ft}_flattenChildren(Tt,At,ft,Et){Tt.forEach((Bt,Ft)=>{let se=Et.slice();se.push(Ft!=Tt.length-1),this._flattenNode(Bt,At+1,ft,se)})}flattenNodes(Tt){let At=[];return Tt.forEach(ft=>this._flattenNode(ft,0,At,[])),At}expandFlattenedNodes(Tt,At){let ft=[],Et=[];return Et[0]=!0,Tt.forEach(Bt=>{let Ft=!0;for(let se=0;se<=this.getLevel(Bt);se++)Ft=Ft&&Et[se];Ft&&ft.push(Bt),this.isExpandable(Bt)&&(Et[this.getLevel(Bt)+1]=At.isExpanded(Bt))}),ft}}class zt extends t.o2{constructor(Tt,At,ft){super(),this._treeControl=Tt,this._treeFlattener=At,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ft&&(this.data=ft)}get data(){return this._data.value}set data(Tt){this._data.next(Tt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Tt){return(0,x.T)(Tt.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,k.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Vt extends t.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Tt){this._data.next(Tt)}connect(Tt){return(0,x.T)(Tt.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},11481:(ot,et,v)=>{"use strict";v.d(et,{Dx:()=>oe,H7:()=>En,b2:()=>ne,q6:()=>oi,se:()=>Gt});var d=v(36895),p=v(94650);class b extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends b{static makeCurrent(){(0,d.HT)(new T)}onAndCancel(An,sn,ei){return An.addEventListener(sn,ei,!1),()=>{An.removeEventListener(sn,ei,!1)}}dispatchEvent(An,sn){An.dispatchEvent(sn)}remove(An){An.parentNode&&An.parentNode.removeChild(An)}createElement(An,sn){return(sn=sn||this.getDefaultDocument()).createElement(An)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(An){return An.nodeType===Node.ELEMENT_NODE}isShadowRoot(An){return An instanceof DocumentFragment}getGlobalEventTarget(An,sn){return"window"===sn?window:"document"===sn?An:"body"===sn?An.body:null}getBaseHref(An){const sn=function A(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==sn?null:function U(mn){x=x||document.createElement("a"),x.setAttribute("href",mn);const An=x.pathname;return"/"===An.charAt(0)?An:`/${An}`}(sn)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(An){return(0,d.Mx)(document.cookie,An)}}let x,t=null;const k=new p.OlP("TRANSITION_ID"),P=[{provide:p.ip1,useFactory:function D(mn,An,sn){return()=>{sn.get(p.CZH).donePromise.then(()=>{const ei=(0,d.q)(),Zi=An.querySelectorAll(`style[ng-transition="${mn}"]`);for(let bo=0;bo{class mn{build(){return new XMLHttpRequest}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const J=new p.OlP("EventManagerPlugins");let K=(()=>{class mn{constructor(sn,ei){this._zone=ei,this._eventNameToPlugin=new Map,sn.forEach(Zi=>Zi.manager=this),this._plugins=sn.slice().reverse()}addEventListener(sn,ei,Zi){return this._findPluginFor(ei).addEventListener(sn,ei,Zi)}addGlobalEventListener(sn,ei,Zi){return this._findPluginFor(ei).addGlobalEventListener(sn,ei,Zi)}getZone(){return this._zone}_findPluginFor(sn){const ei=this._eventNameToPlugin.get(sn);if(ei)return ei;const Zi=this._plugins;for(let bo=0;bo{class mn{constructor(){this._stylesSet=new Set}addStyles(sn){const ei=new Set;sn.forEach(Zi=>{this._stylesSet.has(Zi)||(this._stylesSet.add(Zi),ei.add(Zi))}),this.onStylesAdded(ei)}onStylesAdded(sn){}getAllStyles(){return Array.from(this._stylesSet)}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})(),vt=(()=>{class mn extends ct{constructor(sn){super(),this._doc=sn,this._hostNodes=new Map,this._hostNodes.set(sn.head,[])}_addStylesToHost(sn,ei,Zi){sn.forEach(bo=>{const No=this._doc.createElement("style");No.textContent=bo,Zi.push(ei.appendChild(No))})}addHost(sn){const ei=[];this._addStylesToHost(this._stylesSet,sn,ei),this._hostNodes.set(sn,ei)}removeHost(sn){const ei=this._hostNodes.get(sn);ei&&ei.forEach(Dt),this._hostNodes.delete(sn)}onStylesAdded(sn){this._hostNodes.forEach((ei,Zi)=>{this._addStylesToHost(sn,Zi,ei)})}ngOnDestroy(){this._hostNodes.forEach(sn=>sn.forEach(Dt))}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();function Dt(mn){(0,d.q)().remove(mn)}const Pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},zt=/%COMP%/g;function Bt(mn,An,sn){for(let ei=0;ei{if("__ngUnwrap__"===An)return mn;!1===mn(An)&&(An.preventDefault(),An.returnValue=!1)}}let Gt=(()=>{class mn{constructor(sn,ei,Zi){this.eventManager=sn,this.sharedStylesHost=ei,this.appId=Zi,this.rendererByCompId=new Map,this.defaultRenderer=new ve(sn)}createRenderer(sn,ei){if(!sn||!ei)return this.defaultRenderer;switch(ei.encapsulation){case p.ifc.Emulated:{let Zi=this.rendererByCompId.get(ei.id);return Zi||(Zi=new $e(this.eventManager,this.sharedStylesHost,ei,this.appId),this.rendererByCompId.set(ei.id,Zi)),Zi.applyToHost(sn),Zi}case 1:case p.ifc.ShadowDom:return new Xt(this.eventManager,this.sharedStylesHost,sn,ei);default:if(!this.rendererByCompId.has(ei.id)){const Zi=Bt(ei.id,ei.styles,[]);this.sharedStylesHost.addStyles(Zi),this.rendererByCompId.set(ei.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(K),p.LFG(vt),p.LFG(p.AFp))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();class ve{constructor(An){this.eventManager=An,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(An,sn){return sn?document.createElementNS(Pt[sn]||sn,An):document.createElement(An)}createComment(An){return document.createComment(An)}createText(An){return document.createTextNode(An)}appendChild(An,sn){(qe(An)?An.content:An).appendChild(sn)}insertBefore(An,sn,ei){An&&(qe(An)?An.content:An).insertBefore(sn,ei)}removeChild(An,sn){An&&An.removeChild(sn)}selectRootElement(An,sn){let ei="string"==typeof An?document.querySelector(An):An;if(!ei)throw new Error(`The selector "${An}" did not match any elements`);return sn||(ei.textContent=""),ei}parentNode(An){return An.parentNode}nextSibling(An){return An.nextSibling}setAttribute(An,sn,ei,Zi){if(Zi){sn=Zi+":"+sn;const bo=Pt[Zi];bo?An.setAttributeNS(bo,sn,ei):An.setAttribute(sn,ei)}else An.setAttribute(sn,ei)}removeAttribute(An,sn,ei){if(ei){const Zi=Pt[ei];Zi?An.removeAttributeNS(Zi,sn):An.removeAttribute(`${ei}:${sn}`)}else An.removeAttribute(sn)}addClass(An,sn){An.classList.add(sn)}removeClass(An,sn){An.classList.remove(sn)}setStyle(An,sn,ei,Zi){Zi&(p.JOm.DashCase|p.JOm.Important)?An.style.setProperty(sn,ei,Zi&p.JOm.Important?"important":""):An.style[sn]=ei}removeStyle(An,sn,ei){ei&p.JOm.DashCase?An.style.removeProperty(sn):An.style[sn]=""}setProperty(An,sn,ei){An[sn]=ei}setValue(An,sn){An.nodeValue=sn}listen(An,sn,ei){return"string"==typeof An?this.eventManager.addGlobalEventListener(An,sn,Ft(ei)):this.eventManager.addEventListener(An,sn,Ft(ei))}}function qe(mn){return"TEMPLATE"===mn.tagName&&void 0!==mn.content}class $e extends ve{constructor(An,sn,ei,Zi){super(An),this.component=ei;const bo=Bt(Zi+"-"+ei.id,ei.styles,[]);sn.addStyles(bo),this.contentAttr=function ft(mn){return"_ngcontent-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id),this.hostAttr=function Et(mn){return"_nghost-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id)}applyToHost(An){super.setAttribute(An,this.hostAttr,"")}createElement(An,sn){const ei=super.createElement(An,sn);return super.setAttribute(ei,this.contentAttr,""),ei}}class Xt extends ve{constructor(An,sn,ei,Zi){super(An),this.sharedStylesHost=sn,this.hostEl=ei,this.shadowRoot=ei.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const bo=Bt(Zi.id,Zi.styles,[]);for(let No=0;No{class mn extends at{constructor(sn){super(sn)}supports(sn){return!0}addEventListener(sn,ei,Zi){return sn.addEventListener(ei,Zi,!1),()=>this.removeEventListener(sn,ei,Zi)}removeEventListener(sn,ei,Zi){return sn.removeEventListener(ei,Zi)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const ae=["alt","control","meta","shift"],Kt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},de={alt:mn=>mn.altKey,control:mn=>mn.ctrlKey,meta:mn=>mn.metaKey,shift:mn=>mn.shiftKey};let Wt=(()=>{class mn extends at{constructor(sn){super(sn)}supports(sn){return null!=mn.parseEventName(sn)}addEventListener(sn,ei,Zi){const bo=mn.parseEventName(ei),No=mn.eventCallback(bo.fullKey,Zi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(sn,bo.domEventName,No))}static parseEventName(sn){const ei=sn.toLowerCase().split("."),Zi=ei.shift();if(0===ei.length||"keydown"!==Zi&&"keyup"!==Zi)return null;const bo=mn._normalizeKey(ei.pop());let No="",ua=ei.indexOf("code");if(ua>-1&&(ei.splice(ua,1),No="code."),ae.forEach(fr=>{const Je=ei.indexOf(fr);Je>-1&&(ei.splice(Je,1),No+=fr+".")}),No+=bo,0!=ei.length||0===bo.length)return null;const qa={};return qa.domEventName=Zi,qa.fullKey=No,qa}static matchEventFullKeyCode(sn,ei){let Zi=Kt[sn.key]||sn.key,bo="";return ei.indexOf("code.")>-1&&(Zi=sn.code,bo="code."),!(null==Zi||!Zi)&&(Zi=Zi.toLowerCase()," "===Zi?Zi="space":"."===Zi&&(Zi="dot"),ae.forEach(No=>{No!==Zi&&(0,de[No])(sn)&&(bo+=No+".")}),bo+=Zi,bo===ei)}static eventCallback(sn,ei,Zi){return bo=>{mn.matchEventFullKeyCode(bo,sn)&&Zi.runGuarded(()=>ei(bo))}}static _normalizeKey(sn){return"esc"===sn?"escape":sn}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const oi=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function gn(){T.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function un(){return(0,p.RDi)(document),document},deps:[]}]),vi=new p.OlP(""),si=[{provide:p.rWj,useClass:class F{addToWindow(An){p.dqk.getAngularTestability=(ei,Zi=!0)=>{const bo=An.findTestabilityInTree(ei,Zi);if(null==bo)throw new Error("Could not find testability for element.");return bo},p.dqk.getAllAngularTestabilities=()=>An.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>An.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ei=>{const Zi=p.dqk.getAllAngularTestabilities();let bo=Zi.length,No=!1;const ua=function(qa){No=No||qa,bo--,0==bo&&ei(No)};Zi.forEach(function(qa){qa.whenStable(ua)})})}findTestabilityInTree(An,sn,ei){return null==sn?null:An.getTestability(sn)??(ei?(0,d.q)().isShadowRoot(sn)?this.findTestabilityInTree(An,sn.host,!0):this.findTestabilityInTree(An,sn.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Ke=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function we(){return new p.qLn},deps:[]},{provide:J,useClass:Te,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:J,useClass:Wt,multi:!0,deps:[d.K0]},{provide:Gt,useClass:Gt,deps:[K,vt,p.AFp]},{provide:p.FYo,useExisting:Gt},{provide:ct,useExisting:vt},{provide:vt,useClass:vt,deps:[d.K0]},{provide:K,useClass:K,deps:[J,p.R0b]},{provide:d.JF,useClass:z,deps:[]},[]];let ne=(()=>{class mn{constructor(sn){}static withServerTransition(sn){return{ngModule:mn,providers:[{provide:p.AFp,useValue:sn.appId},{provide:k,useExisting:p.AFp},P]}}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(vi,12))},mn.\u0275mod=p.oAB({type:mn}),mn.\u0275inj=p.cJS({providers:[...Ke,...si],imports:[d.ez,p.hGG]}),mn})(),oe=(()=>{class mn{constructor(sn){this._doc=sn}getTitle(){return this._doc.title}setTitle(sn){this._doc.title=sn||""}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function Jt(){return new oe((0,p.LFG)(d.K0))}(),ei},providedIn:"root"}),mn})();typeof window<"u"&&window;let En=(()=>{class mn{}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new(sn||mn):p.LFG(go),ei},providedIn:"root"}),mn})(),go=(()=>{class mn extends En{constructor(sn){super(),this._doc=sn}sanitize(sn,ei){if(null==ei)return null;switch(sn){case p.q3G.NONE:return ei;case p.q3G.HTML:return(0,p.qzn)(ei,"HTML")?(0,p.z3N)(ei):(0,p.EiD)(this._doc,String(ei)).toString();case p.q3G.STYLE:return(0,p.qzn)(ei,"Style")?(0,p.z3N)(ei):ei;case p.q3G.SCRIPT:if((0,p.qzn)(ei,"Script"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ei,"URL")?(0,p.z3N)(ei):(0,p.mCW)(String(ei));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ei,"ResourceURL"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${sn} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(sn){return(0,p.JVY)(sn)}bypassSecurityTrustStyle(sn){return(0,p.L6k)(sn)}bypassSecurityTrustScript(sn){return(0,p.eBb)(sn)}bypassSecurityTrustUrl(sn){return(0,p.LAX)(sn)}bypassSecurityTrustResourceUrl(sn){return(0,p.pB0)(sn)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function gi(mn){return new go(mn.get(d.K0))}(p.LFG(p.zs3)),ei},providedIn:"root"}),mn})()},83689:(ot,et,v)=>{"use strict";v.d(et,{gz:()=>js,m2:()=>Er,wN:()=>xo,F0:()=>Cs,rH:()=>$a,Od:()=>xc,yS:()=>su,Bz:()=>__,lC:()=>pr});var d=v(94650),p=v(5254),b=v(21086),T=v(591),t=v(84450),A=v(23426),x=v(61221),U=v(88514),k=v(4843),D=v(61737),P=v(56498),F=v(68896),z=v(71762),J=v(8929),K=v(36895),at=v(24850),ct=v(87545),vt=v(72986),Dt=v(1059),Pt=v(92198),zt=v(61709),Vt=v(87224),it=v(21406),Tt=v(22868),At=v(27221),ft=v(43489);function Et(bt,yt){let pt=!1;return arguments.length>=2&&(pt=!0),function(ie){return ie.lift(new Bt(bt,yt,pt))}}class Bt{constructor(yt,pt,Yt=!1){this.accumulator=yt,this.seed=pt,this.hasSeed=Yt}call(yt,pt){return pt.subscribe(new Ft(yt,this.accumulator,this.seed,this.hasSeed))}}class Ft extends ft.L{constructor(yt,pt,Yt,ie){super(yt),this.accumulator=pt,this._seed=Yt,this.hasSeed=ie,this.index=0}get seed(){return this._seed}set seed(yt){this.hasSeed=!0,this._seed=yt}_next(yt){if(this.hasSeed)return this._tryNext(yt);this.seed=yt,this.destination.next(yt)}_tryNext(yt){const pt=this.index++;let Yt;try{Yt=this.accumulator(this.seed,yt,pt)}catch(ie){this.destination.error(ie)}this.seed=Yt,this.destination.next(Yt)}}var se=v(94231);function Gt(bt){return function(pt){return 0===bt?(0,F.c)():pt.lift(new ve(bt))}}class ve{constructor(yt){if(this.total=yt,this.total<0)throw new se.W}call(yt,pt){return pt.subscribe(new be(yt,this.total))}}class be extends ft.L{constructor(yt,pt){super(yt),this.total=pt,this.ring=new Array,this.count=0}_next(yt){const pt=this.ring,Yt=this.total,ie=this.count++;pt.length0){const Yt=this.count>=this.total?this.total:this.count,ie=this.ring;for(let ke=0;ke=2;return Yt=>Yt.pipe(bt?(0,Pt.h)((ie,ke)=>bt(ie,ke,Yt)):$e.y,Gt(1),pt?(0,qe.d)(yt):(0,Le.T)(()=>new t.K))}var Te=v(44290),ae=v(77604),Kt=v(40537),de=v(74327),Wt=v(89146),re=v(11481);const De="primary",on=Symbol("RouteTitle");class _n{constructor(yt){this.params=yt||{}}has(yt){return Object.prototype.hasOwnProperty.call(this.params,yt)}get(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt[0]:pt}return null}getAll(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt:[pt]}return[]}get keys(){return Object.keys(this.params)}}function Ae(bt){return new _n(bt)}function gn(bt,yt,pt){const Yt=pt.path.split("/");if(Yt.length>bt.length||"full"===pt.pathMatch&&(yt.hasChildren()||Yt.lengthYt[ke]===ie)}return bt===yt}function oi(bt){return Array.prototype.concat.apply([],bt)}function vi(bt){return bt.length>0?bt[bt.length-1]:null}function Ke(bt,yt){for(const pt in bt)bt.hasOwnProperty(pt)&&yt(bt[pt],pt)}function ne(bt){return(0,d.CqO)(bt)?bt:(0,d.QGY)(bt)?(0,p.D)(Promise.resolve(bt)):(0,b.of)(bt)}const kt={exact:function Oe(bt,yt,pt){if(!Ye(bt.segments,yt.segments)||!Li(bt.segments,yt.segments,pt)||bt.numberOfChildren!==yt.numberOfChildren)return!1;for(const Yt in yt.children)if(!bt.children[Yt]||!Oe(bt.children[Yt],yt.children[Yt],pt))return!1;return!0},subset:Sn},Jt={exact:function Ce(bt,yt){return un(bt,yt)},subset:function Dn(bt,yt){return Object.keys(yt).length<=Object.keys(bt).length&&Object.keys(yt).every(pt=>Un(bt[pt],yt[pt]))},ignored:()=>!0};function oe(bt,yt,pt){return kt[pt.paths](bt.root,yt.root,pt.matrixParams)&&Jt[pt.queryParams](bt.queryParams,yt.queryParams)&&!("exact"===pt.fragment&&bt.fragment!==yt.fragment)}function Sn(bt,yt,pt){return mi(bt,yt,yt.segments,pt)}function mi(bt,yt,pt,Yt){if(bt.segments.length>pt.length){const ie=bt.segments.slice(0,pt.length);return!(!Ye(ie,pt)||yt.hasChildren()||!Li(ie,pt,Yt))}if(bt.segments.length===pt.length){if(!Ye(bt.segments,pt)||!Li(bt.segments,pt,Yt))return!1;for(const ie in yt.children)if(!bt.children[ie]||!Sn(bt.children[ie],yt.children[ie],Yt))return!1;return!0}{const ie=pt.slice(0,bt.segments.length),ke=pt.slice(bt.segments.length);return!!(Ye(bt.segments,ie)&&Li(bt.segments,ie,Yt)&&bt.children[De])&&mi(bt.children[De],yt,ke,Yt)}}function Li(bt,yt,pt){return yt.every((Yt,ie)=>Jt[pt](bt[ie].parameters,Yt.parameters))}class ho{constructor(yt,pt,Yt){this.root=yt,this.queryParams=pt,this.fragment=Yt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ae(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class fi{constructor(yt,pt){this.segments=yt,this.children=pt,this.parent=null,Ke(pt,(Yt,ie)=>Yt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return le(this)}}class Bn{constructor(yt,pt){this.path=yt,this.parameters=pt}get parameterMap(){return this._parameterMap||(this._parameterMap=Ae(this.parameters)),this._parameterMap}toString(){return Tn(this)}}function Ye(bt,yt){return bt.length===yt.length&&bt.every((pt,Yt)=>pt.path===yt[Yt].path)}let ze=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275prov=d.Yz7({token:bt,factory:function(){return new We},providedIn:"root"}),bt})();class We{parse(yt){const pt=new sn(yt);return new ho(pt.parseRootSegment(),pt.parseQueryParams(),pt.parseFragment())}serialize(yt){const pt=`/${Ge(yt.root,!0)}`,Yt=function Re(bt){const yt=Object.keys(bt).map(pt=>{const Yt=bt[pt];return Array.isArray(Yt)?Yt.map(ie=>`${wt(pt)}=${wt(ie)}`).join("&"):`${wt(pt)}=${wt(Yt)}`}).filter(pt=>!!pt);return yt.length?`?${yt.join("&")}`:""}(yt.queryParams);return`${pt}${Yt}${"string"==typeof yt.fragment?`#${function Ot(bt){return encodeURI(bt)}(yt.fragment)}`:""}`}}const en=new We;function le(bt){return bt.segments.map(yt=>Tn(yt)).join("/")}function Ge(bt,yt){if(!bt.hasChildren())return le(bt);if(yt){const pt=bt.children[De]?Ge(bt.children[De],!1):"",Yt=[];return Ke(bt.children,(ie,ke)=>{ke!==De&&Yt.push(`${ke}:${Ge(ie,!1)}`)}),Yt.length>0?`${pt}(${Yt.join("//")})`:pt}{const pt=function fn(bt,yt){let pt=[];return Ke(bt.children,(Yt,ie)=>{ie===De&&(pt=pt.concat(yt(Yt,ie)))}),Ke(bt.children,(Yt,ie)=>{ie!==De&&(pt=pt.concat(yt(Yt,ie)))}),pt}(bt,(Yt,ie)=>ie===De?[Ge(bt.children[De],!1)]:[`${ie}:${Ge(Yt,!1)}`]);return 1===Object.keys(bt.children).length&&null!=bt.children[De]?`${le(bt)}/${pt[0]}`:`${le(bt)}/(${pt.join("//")})`}}function Lt(bt){return encodeURIComponent(bt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wt(bt){return Lt(bt).replace(/%3B/gi,";")}function ye(bt){return Lt(bt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xe(bt){return decodeURIComponent(bt)}function Ne(bt){return Xe(bt.replace(/\+/g,"%20"))}function Tn(bt){return`${ye(bt.path)}${function he(bt){return Object.keys(bt).map(yt=>`;${ye(yt)}=${ye(bt[yt])}`).join("")}(bt.parameters)}`}const En=/^[^\/()?;=#]+/;function gi(bt){const yt=bt.match(En);return yt?yt[0]:""}const go=/^[^=?&#]+/,mn=/^[^&#]+/;class sn{constructor(yt){this.url=yt,this.remaining=yt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fi([],{}):new fi([],this.parseChildren())}parseQueryParams(){const yt={};if(this.consumeOptional("?"))do{this.parseQueryParam(yt)}while(this.consumeOptional("&"));return yt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const yt=[];for(this.peekStartsWith("(")||yt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),yt.push(this.parseSegment());let pt={};this.peekStartsWith("/(")&&(this.capture("/"),pt=this.parseParens(!0));let Yt={};return this.peekStartsWith("(")&&(Yt=this.parseParens(!1)),(yt.length>0||Object.keys(pt).length>0)&&(Yt[De]=new fi(yt,pt)),Yt}parseSegment(){const yt=gi(this.remaining);if(""===yt&&this.peekStartsWith(";"))throw new d.vHH(4009,!1);return this.capture(yt),new Bn(Xe(yt),this.parseMatrixParams())}parseMatrixParams(){const yt={};for(;this.consumeOptional(";");)this.parseParam(yt);return yt}parseParam(yt){const pt=gi(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const ie=gi(this.remaining);ie&&(Yt=ie,this.capture(Yt))}yt[Xe(pt)]=Xe(Yt)}parseQueryParam(yt){const pt=function _o(bt){const yt=bt.match(go);return yt?yt[0]:""}(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const kn=function An(bt){const yt=bt.match(mn);return yt?yt[0]:""}(this.remaining);kn&&(Yt=kn,this.capture(Yt))}const ie=Ne(pt),ke=Ne(Yt);if(yt.hasOwnProperty(ie)){let kn=yt[ie];Array.isArray(kn)||(kn=[kn],yt[ie]=kn),kn.push(ke)}else yt[ie]=ke}parseParens(yt){const pt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Yt=gi(this.remaining),ie=this.remaining[Yt.length];if("/"!==ie&&")"!==ie&&";"!==ie)throw new d.vHH(4010,!1);let ke;Yt.indexOf(":")>-1?(ke=Yt.slice(0,Yt.indexOf(":")),this.capture(ke),this.capture(":")):yt&&(ke=De);const kn=this.parseChildren();pt[ke]=1===Object.keys(kn).length?kn[De]:new fi([],kn),this.consumeOptional("//")}return pt}peekStartsWith(yt){return this.remaining.startsWith(yt)}consumeOptional(yt){return!!this.peekStartsWith(yt)&&(this.remaining=this.remaining.substring(yt.length),!0)}capture(yt){if(!this.consumeOptional(yt))throw new d.vHH(4011,!1)}}function ei(bt){return bt.segments.length>0?new fi([],{[De]:bt}):bt}function Zi(bt){const yt={};for(const Yt of Object.keys(bt.children)){const ke=Zi(bt.children[Yt]);(ke.segments.length>0||ke.hasChildren())&&(yt[Yt]=ke)}return function bo(bt){if(1===bt.numberOfChildren&&bt.children[De]){const yt=bt.children[De];return new fi(bt.segments.concat(yt.segments),yt.children)}return bt}(new fi(bt.segments,yt))}function No(bt){return bt instanceof ho}function Fn(bt,yt,pt,Yt,ie){if(0===pt.length)return dn(yt.root,yt.root,yt.root,Yt,ie);const ke=function Q(bt){if("string"==typeof bt[0]&&1===bt.length&&"/"===bt[0])return new Rt(!0,0,bt);let yt=0,pt=!1;const Yt=bt.reduce((ie,ke,kn)=>{if("object"==typeof ke&&null!=ke){if(ke.outlets){const In={};return Ke(ke.outlets,(Fi,Gi)=>{In[Gi]="string"==typeof Fi?Fi.split("/"):Fi}),[...ie,{outlets:In}]}if(ke.segmentPath)return[...ie,ke.segmentPath]}return"string"!=typeof ke?[...ie,ke]:0===kn?(ke.split("/").forEach((In,Fi)=>{0==Fi&&"."===In||(0==Fi&&""===In?pt=!0:".."===In?yt++:""!=In&&ie.push(In))}),ie):[...ie,ke]},[]);return new Rt(pt,yt,Yt)}(pt);return ke.toRoot()?dn(yt.root,yt.root,new fi([],{}),Yt,ie):function kn(Fi){const Gi=function Rn(bt,yt,pt,Yt){if(bt.isAbsolute)return new Nt(yt.root,!0,0);if(-1===Yt)return new Nt(pt,pt===yt.root,0);return function Qi(bt,yt,pt){let Yt=bt,ie=yt,ke=pt;for(;ke>ie;){if(ke-=ie,Yt=Yt.parent,!Yt)throw new d.vHH(4005,!1);ie=Yt.segments.length}return new Nt(Yt,!1,ie-ke)}(pt,Yt+(He(bt.commands[0])?0:1),bt.numberOfDoubleDots)}(ke,yt,bt.snapshot?._urlSegment,Fi),Sa=Gi.processChildren?vr(Gi.segmentGroup,Gi.index,ke.commands):gr(Gi.segmentGroup,Gi.index,ke.commands);return dn(yt.root,Gi.segmentGroup,Sa,Yt,ie)}(bt.snapshot?._lastPathIndex)}function He(bt){return"object"==typeof bt&&null!=bt&&!bt.outlets&&!bt.segmentPath}function Me(bt){return"object"==typeof bt&&null!=bt&&bt.outlets}function dn(bt,yt,pt,Yt,ie){let kn,ke={};Yt&&Ke(Yt,(Fi,Gi)=>{ke[Gi]=Array.isArray(Fi)?Fi.map(Sa=>`${Sa}`):`${Fi}`}),kn=bt===yt?pt:tt(bt,yt,pt);const In=ei(Zi(kn));return new ho(In,ke,ie)}function tt(bt,yt,pt){const Yt={};return Ke(bt.children,(ie,ke)=>{Yt[ke]=ie===yt?pt:tt(ie,yt,pt)}),new fi(bt.segments,Yt)}class Rt{constructor(yt,pt,Yt){if(this.isAbsolute=yt,this.numberOfDoubleDots=pt,this.commands=Yt,yt&&Yt.length>0&&He(Yt[0]))throw new d.vHH(4003,!1);const ie=Yt.find(Me);if(ie&&ie!==vi(Yt))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nt{constructor(yt,pt,Yt){this.segmentGroup=yt,this.processChildren=pt,this.index=Yt}}function gr(bt,yt,pt){if(bt||(bt=new fi([],{})),0===bt.segments.length&&bt.hasChildren())return vr(bt,yt,pt);const Yt=function us(bt,yt,pt){let Yt=0,ie=yt;const ke={match:!1,pathIndex:0,commandIndex:0};for(;ie=pt.length)return ke;const kn=bt.segments[ie],In=pt[Yt];if(Me(In))break;const Fi=`${In}`,Gi=Yt0&&void 0===Fi)break;if(Fi&&Gi&&"object"==typeof Gi&&void 0===Gi.outlets){if(!dr(Fi,Gi,kn))return ke;Yt+=2}else{if(!dr(Fi,{},kn))return ke;Yt++}ie++}return{match:!0,pathIndex:ie,commandIndex:Yt}}(bt,yt,pt),ie=pt.slice(Yt.commandIndex);if(Yt.match&&Yt.pathIndex{"string"==typeof ke&&(ke=[ke]),null!==ke&&(ie[kn]=gr(bt.children[kn],yt,ke))}),Ke(bt.children,(ke,kn)=>{void 0===Yt[kn]&&(ie[kn]=ke)}),new fi(bt.segments,ie)}}function ir(bt,yt,pt){const Yt=bt.segments.slice(0,yt);let ie=0;for(;ie{"string"==typeof pt&&(pt=[pt]),null!==pt&&(yt[Yt]=ir(new fi([],{}),0,pt))}),yt}function fc(bt){const yt={};return Ke(bt,(pt,Yt)=>yt[Yt]=`${pt}`),yt}function dr(bt,yt,pt){return bt==pt.path&&un(yt,pt.parameters)}class jr{constructor(yt,pt){this.id=yt,this.url=pt}}class Qr extends jr{constructor(yt,pt,Yt="imperative",ie=null){super(yt,pt),this.type=0,this.navigationTrigger=Yt,this.restoredState=ie}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Er extends jr{constructor(yt,pt,Yt){super(yt,pt),this.urlAfterRedirects=Yt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zc extends jr{constructor(yt,pt,Yt,ie){super(yt,pt),this.reason=Yt,this.code=ie,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class al extends jr{constructor(yt,pt,Yt,ie){super(yt,pt),this.error=Yt,this.target=ie,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Mc extends jr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ns extends jr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kc extends jr{constructor(yt,pt,Yt,ie,ke){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.shouldActivate=ke,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class bl extends jr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wr extends jr{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qs{constructor(yt){this.route=yt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class s1{constructor(yt){this.route=yt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hr{constructor(yt){this.snapshot=yt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nu{constructor(yt){this.snapshot=yt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class c1{constructor(yt){this.snapshot=yt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hc{constructor(yt){this.snapshot=yt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cl{constructor(yt,pt,Yt){this.routerEvent=yt,this.position=pt,this.anchor=Yt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Dc{constructor(yt){this._root=yt}get root(){return this._root.value}parent(yt){const pt=this.pathFromRoot(yt);return pt.length>1?pt[pt.length-2]:null}children(yt){const pt=Bs(yt,this._root);return pt?pt.children.map(Yt=>Yt.value):[]}firstChild(yt){const pt=Bs(yt,this._root);return pt&&pt.children.length>0?pt.children[0].value:null}siblings(yt){const pt=Rc(yt,this._root);return pt.length<2?[]:pt[pt.length-2].children.map(ie=>ie.value).filter(ie=>ie!==yt)}pathFromRoot(yt){return Rc(yt,this._root).map(pt=>pt.value)}}function Bs(bt,yt){if(bt===yt.value)return yt;for(const pt of yt.children){const Yt=Bs(bt,pt);if(Yt)return Yt}return null}function Rc(bt,yt){if(bt===yt.value)return[yt];for(const pt of yt.children){const Yt=Rc(bt,pt);if(Yt.length)return Yt.unshift(yt),Yt}return[]}class Hc{constructor(yt,pt){this.value=yt,this.children=pt}toString(){return`TreeNode(${this.value})`}}function Vs(bt){const yt={};return bt&&bt.children.forEach(pt=>yt[pt.value.outlet]=pt),yt}class Al extends Dc{constructor(yt,pt){super(yt),this.snapshot=pt,Nl(this,yt)}toString(){return this.snapshot.toString()}}function pd(bt,yt){const pt=function Il(bt,yt){const kn=new zc([],{},{},"",{},De,yt,null,bt.root,-1,{});return new Zs("",new Hc(kn,[]))}(bt,yt),Yt=new T.X([new Bn("",{})]),ie=new T.X({}),ke=new T.X({}),kn=new T.X({}),In=new T.X(""),Fi=new js(Yt,ie,kn,In,ke,De,yt,pt.root);return Fi.snapshot=pt.root,new Al(new Hc(Fi,[]),pt)}class js{constructor(yt,pt,Yt,ie,ke,kn,In,Fi){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=ke,this.outlet=kn,this.component=In,this.title=this.data?.pipe((0,at.U)(Gi=>Gi[on]))??(0,b.of)(void 0),this._futureSnapshot=Fi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,at.U)(yt=>Ae(yt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,at.U)(yt=>Ae(yt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function yl(bt,yt="emptyOnly"){const pt=bt.pathFromRoot;let Yt=0;if("always"!==yt)for(Yt=pt.length-1;Yt>=1;){const ie=pt[Yt],ke=pt[Yt-1];if(ie.routeConfig&&""===ie.routeConfig.path)Yt--;else{if(ke.component)break;Yt--}}return function Gs(bt){return bt.reduce((yt,pt)=>({params:{...yt.params,...pt.params},data:{...yt.data,...pt.data},resolve:{...pt.data,...yt.resolve,...pt.routeConfig?.data,...pt._resolvedData}}),{params:{},data:{},resolve:{}})}(pt.slice(Yt))}class zc{constructor(yt,pt,Yt,ie,ke,kn,In,Fi,Gi,Sa,$o,xr){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=ke,this.outlet=kn,this.component=In,this.title=this.data?.[on],this.routeConfig=Fi,this._urlSegment=Gi,this._lastPathIndex=Sa,this._correctedLastPathIndex=xr??Sa,this._resolve=$o}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ae(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ae(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Yt=>Yt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Zs extends Dc{constructor(yt,pt){super(pt),this.url=yt,Nl(this,pt)}toString(){return iu(this._root)}}function Nl(bt,yt){yt.value._routerState=bt,yt.children.forEach(pt=>Nl(bt,pt))}function iu(bt){const yt=bt.children.length>0?` { ${bt.children.map(iu).join(", ")} } `:"";return`${bt.value}${yt}`}function ql(bt){if(bt.snapshot){const yt=bt.snapshot,pt=bt._futureSnapshot;bt.snapshot=pt,un(yt.queryParams,pt.queryParams)||bt.queryParams.next(pt.queryParams),yt.fragment!==pt.fragment&&bt.fragment.next(pt.fragment),un(yt.params,pt.params)||bt.params.next(pt.params),function we(bt,yt){if(bt.length!==yt.length)return!1;for(let pt=0;ptun(pt.parameters,yt[Yt].parameters))}(bt.url,yt.url);return pt&&!(!bt.parent!=!yt.parent)&&(!bt.parent||Ro(bt.parent,yt.parent))}function uc(bt,yt,pt){if(pt&&bt.shouldReuseRoute(yt.value,pt.value.snapshot)){const Yt=pt.value;Yt._futureSnapshot=yt.value;const ie=function Iu(bt,yt,pt){return yt.children.map(Yt=>{for(const ie of pt.children)if(bt.shouldReuseRoute(Yt.value,ie.value.snapshot))return uc(bt,Yt,ie);return uc(bt,Yt)})}(bt,yt,pt);return new Hc(Yt,ie)}{if(bt.shouldAttach(yt.value)){const ke=bt.retrieve(yt.value);if(null!==ke){const kn=ke.route;return kn.value._futureSnapshot=yt.value,kn.children=yt.children.map(In=>uc(bt,In)),kn}}const Yt=function Rl(bt){return new js(new T.X(bt.url),new T.X(bt.params),new T.X(bt.queryParams),new T.X(bt.fragment),new T.X(bt.data),bt.outlet,bt.component,bt)}(yt.value),ie=yt.children.map(ke=>uc(bt,ke));return new Hc(Yt,ie)}}const gc="ngNavigationCancelingError";function Tl(bt,yt){const{redirectTo:pt,navigationBehaviorOptions:Yt}=No(yt)?{redirectTo:yt,navigationBehaviorOptions:void 0}:yt,ie=Ms(!1,0,yt);return ie.url=pt,ie.navigationBehaviorOptions=Yt,ie}function Ms(bt,yt,pt){const Yt=new Error("NavigationCancelingError: "+(bt||""));return Yt[gc]=!0,Yt.cancellationCode=yt,pt&&(Yt.url=pt),Yt}function Yc(bt){return _u(bt)&&No(bt.url)}function _u(bt){return bt&&bt[gc]}class Mr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new vc,this.attachRef=null}}let vc=(()=>{class bt{constructor(){this.contexts=new Map}onChildOutletCreated(pt,Yt){const ie=this.getOrCreateContext(pt);ie.outlet=Yt,this.contexts.set(pt,ie)}onChildOutletDestroyed(pt){const Yt=this.getContext(pt);Yt&&(Yt.outlet=null,Yt.attachRef=null)}onOutletDeactivated(){const pt=this.contexts;return this.contexts=new Map,pt}onOutletReAttached(pt){this.contexts=pt}getOrCreateContext(pt){let Yt=this.getContext(pt);return Yt||(Yt=new Mr,this.contexts.set(pt,Yt)),Yt}getContext(pt){return this.contexts.get(pt)||null}}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();const Wa=!1;let pr=(()=>{class bt{constructor(pt,Yt,ie,ke,kn){this.parentContexts=pt,this.location=Yt,this.changeDetector=ke,this.environmentInjector=kn,this.activated=null,this._activatedRoute=null,this.activateEvents=new d.vpe,this.deactivateEvents=new d.vpe,this.attachEvents=new d.vpe,this.detachEvents=new d.vpe,this.name=ie||De,pt.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const pt=this.parentContexts.getContext(this.name);pt&&pt.route&&(pt.attachRef?this.attach(pt.attachRef,pt.route):this.activateWith(pt.route,pt.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.vHH(4012,Wa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.vHH(4012,Wa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.vHH(4012,Wa);this.location.detach();const pt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(pt.instance),pt}attach(pt,Yt){this.activated=pt,this._activatedRoute=Yt,this.location.insert(pt.hostView),this.attachEvents.emit(pt.instance)}deactivate(){if(this.activated){const pt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(pt)}}activateWith(pt,Yt){if(this.isActivated)throw new d.vHH(4013,Wa);this._activatedRoute=pt;const ie=this.location,kn=pt._futureSnapshot.component,In=this.parentContexts.getOrCreateContext(this.name).children,Fi=new Bc(pt,In,ie.injector);if(Yt&&function vs(bt){return!!bt.resolveComponentFactory}(Yt)){const Gi=Yt.resolveComponentFactory(kn);this.activated=ie.createComponent(Gi,ie.length,Fi)}else this.activated=ie.createComponent(kn,{index:ie.length,injector:Fi,environmentInjector:Yt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(vc),d.Y36(d.s_b),d.$8M("name"),d.Y36(d.sBO),d.Y36(d.lqb))},bt.\u0275dir=d.lG2({type:bt,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),bt})();class Bc{constructor(yt,pt,Yt){this.route=yt,this.childContexts=pt,this.parent=Yt}get(yt,pt){return yt===js?this.route:yt===vc?this.childContexts:this.parent.get(yt,pt)}}let bc=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=d.Xpm({type:bt,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(pt,Yt){1&pt&&d._UZ(0,"router-outlet")},dependencies:[pr],encapsulation:2}),bt})();function ar(bt,yt){return bt.providers&&!bt._injector&&(bt._injector=(0,d.MMx)(bt.providers,yt,`Route: ${bt.path}`)),bt._injector??yt}function Qs(bt){const yt=bt.children&&bt.children.map(Qs),pt=yt?{...bt,children:yt}:{...bt};return!pt.component&&!pt.loadComponent&&(yt||pt.loadChildren)&&pt.outlet&&pt.outlet!==De&&(pt.component=bc),pt}function Fr(bt){return bt.outlet||De}function ra(bt,yt){const pt=bt.filter(Yt=>Fr(Yt)===yt);return pt.push(...bt.filter(Yt=>Fr(Yt)!==yt)),pt}function pc(bt){if(!bt)return null;if(bt.routeConfig?._injector)return bt.routeConfig._injector;for(let yt=bt.parent;yt;yt=yt.parent){const pt=yt.routeConfig;if(pt?._loadedInjector)return pt._loadedInjector;if(pt?._injector)return pt._injector}return null}class Gr{constructor(yt,pt,Yt,ie){this.routeReuseStrategy=yt,this.futureState=pt,this.currState=Yt,this.forwardEvent=ie}activate(yt){const pt=this.futureState._root,Yt=this.currState?this.currState._root:null;this.deactivateChildRoutes(pt,Yt,yt),ql(this.futureState.root),this.activateChildRoutes(pt,Yt,yt)}deactivateChildRoutes(yt,pt,Yt){const ie=Vs(pt);yt.children.forEach(ke=>{const kn=ke.value.outlet;this.deactivateRoutes(ke,ie[kn],Yt),delete ie[kn]}),Ke(ie,(ke,kn)=>{this.deactivateRouteAndItsChildren(ke,Yt)})}deactivateRoutes(yt,pt,Yt){const ie=yt.value,ke=pt?pt.value:null;if(ie===ke)if(ie.component){const kn=Yt.getContext(ie.outlet);kn&&this.deactivateChildRoutes(yt,pt,kn.children)}else this.deactivateChildRoutes(yt,pt,Yt);else ke&&this.deactivateRouteAndItsChildren(pt,Yt)}deactivateRouteAndItsChildren(yt,pt){yt.value.component&&this.routeReuseStrategy.shouldDetach(yt.value.snapshot)?this.detachAndStoreRouteSubtree(yt,pt):this.deactivateRouteAndOutlet(yt,pt)}detachAndStoreRouteSubtree(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,ke=Vs(yt);for(const kn of Object.keys(ke))this.deactivateRouteAndItsChildren(ke[kn],ie);if(Yt&&Yt.outlet){const kn=Yt.outlet.detach(),In=Yt.children.onOutletDeactivated();this.routeReuseStrategy.store(yt.value.snapshot,{componentRef:kn,route:yt,contexts:In})}}deactivateRouteAndOutlet(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,ke=Vs(yt);for(const kn of Object.keys(ke))this.deactivateRouteAndItsChildren(ke[kn],ie);Yt&&Yt.outlet&&(Yt.outlet.deactivate(),Yt.children.onOutletDeactivated(),Yt.attachRef=null,Yt.resolver=null,Yt.route=null)}activateChildRoutes(yt,pt,Yt){const ie=Vs(pt);yt.children.forEach(ke=>{this.activateRoutes(ke,ie[ke.value.outlet],Yt),this.forwardEvent(new hc(ke.value.snapshot))}),yt.children.length&&this.forwardEvent(new nu(yt.value.snapshot))}activateRoutes(yt,pt,Yt){const ie=yt.value,ke=pt?pt.value:null;if(ql(ie),ie===ke)if(ie.component){const kn=Yt.getOrCreateContext(ie.outlet);this.activateChildRoutes(yt,pt,kn.children)}else this.activateChildRoutes(yt,pt,Yt);else if(ie.component){const kn=Yt.getOrCreateContext(ie.outlet);if(this.routeReuseStrategy.shouldAttach(ie.snapshot)){const In=this.routeReuseStrategy.retrieve(ie.snapshot);this.routeReuseStrategy.store(ie.snapshot,null),kn.children.onOutletReAttached(In.contexts),kn.attachRef=In.componentRef,kn.route=In.route.value,kn.outlet&&kn.outlet.attach(In.componentRef,In.route.value),ql(In.route.value),this.activateChildRoutes(yt,null,kn.children)}else{const In=pc(ie.snapshot),Fi=In?.get(d._Vd)??null;kn.attachRef=null,kn.route=ie,kn.resolver=Fi,kn.injector=In,kn.outlet&&kn.outlet.activateWith(ie,kn.injector),this.activateChildRoutes(yt,null,kn.children)}}else this.activateChildRoutes(yt,null,Yt)}}class Vc{constructor(yt){this.path=yt,this.route=this.path[this.path.length-1]}}class rl{constructor(yt,pt){this.component=yt,this.route=pt}}function Cc(bt,yt,pt){const Yt=bt._root;return Bi(Yt,yt?yt._root:null,pt,[Yt.value])}function fu(bt,yt){const pt=Symbol(),Yt=yt.get(bt,pt);return Yt===pt?"function"!=typeof bt||(0,d.Z0I)(bt)?yt.get(bt):bt:Yt}function Bi(bt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const ke=Vs(yt);return bt.children.forEach(kn=>{(function Pa(bt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const ke=bt.value,kn=yt?yt.value:null,In=pt?pt.getContext(bt.value.outlet):null;if(kn&&ke.routeConfig===kn.routeConfig){const Fi=function hu(bt,yt,pt){if("function"==typeof pt)return pt(bt,yt);switch(pt){case"pathParamsChange":return!Ye(bt.url,yt.url);case"pathParamsOrQueryParamsChange":return!Ye(bt.url,yt.url)||!un(bt.queryParams,yt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ro(bt,yt)||!un(bt.queryParams,yt.queryParams);default:return!Ro(bt,yt)}}(kn,ke,ke.routeConfig.runGuardsAndResolvers);Fi?ie.canActivateChecks.push(new Vc(Yt)):(ke.data=kn.data,ke._resolvedData=kn._resolvedData),Bi(bt,yt,ke.component?In?In.children:null:pt,Yt,ie),Fi&&In&&In.outlet&&In.outlet.isActivated&&ie.canDeactivateChecks.push(new rl(In.outlet.component,kn))}else kn&&Ws(yt,In,ie),ie.canActivateChecks.push(new Vc(Yt)),Bi(bt,null,ke.component?In?In.children:null:pt,Yt,ie)})(kn,ke[kn.value.outlet],pt,Yt.concat([kn.value]),ie),delete ke[kn.value.outlet]}),Ke(ke,(kn,In)=>Ws(kn,pt.getContext(In),ie)),ie}function Ws(bt,yt,pt){const Yt=Vs(bt),ie=bt.value;Ke(Yt,(ke,kn)=>{Ws(ke,ie.component?yt?yt.children.getContext(kn):null:yt,pt)}),pt.canDeactivateChecks.push(new rl(ie.component&&yt&&yt.outlet&&yt.outlet.isActivated?yt.outlet.component:null,ie))}function kr(bt){return"function"==typeof bt}function Pc(bt){return bt instanceof t.K||"EmptyError"===bt?.name}const Ir=Symbol("INITIAL_VALUE");function Nr(){return(0,ct.w)(bt=>(0,A.aj)(bt.map(yt=>yt.pipe((0,vt.q)(1),(0,Dt.O)(Ir)))).pipe((0,at.U)(yt=>{for(const pt of yt)if(!0!==pt){if(pt===Ir)return Ir;if(!1===pt||pt instanceof ho)return pt}return!0}),(0,Pt.h)(yt=>yt!==Ir),(0,vt.q)(1)))}function sl(bt){return(0,k.z)((0,Tt.b)(yt=>{if(No(yt))throw Tl(0,yt)}),(0,at.U)(yt=>!0===yt))}const _p={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Zl(bt,yt,pt,Yt,ie){const ke=cl(bt,yt,pt);return ke.matched?function Ul(bt,yt,pt,Yt){const ie=yt.canMatch;if(!ie||0===ie.length)return(0,b.of)(!0);const ke=ie.map(kn=>{const In=fu(kn,bt);return ne(function jo(bt){return bt&&kr(bt.canMatch)}(In)?In.canMatch(yt,pt):bt.runInContext(()=>In(yt,pt)))});return(0,b.of)(ke).pipe(Nr(),sl())}(Yt=ar(yt,Yt),yt,pt).pipe((0,at.U)(kn=>!0===kn?ke:{..._p})):(0,b.of)(ke)}function cl(bt,yt,pt){if(""===yt.path)return"full"===yt.pathMatch&&(bt.hasChildren()||pt.length>0)?{..._p}:{matched:!0,consumedSegments:[],remainingSegments:pt,parameters:{},positionalParamSegments:{}};const ie=(yt.matcher||gn)(pt,bt,yt);if(!ie)return{..._p};const ke={};Ke(ie.posParams,(In,Fi)=>{ke[Fi]=In.path});const kn=ie.consumed.length>0?{...ke,...ie.consumed[ie.consumed.length-1].parameters}:ke;return{matched:!0,consumedSegments:ie.consumed,remainingSegments:pt.slice(ie.consumed.length),parameters:kn,positionalParamSegments:ie.posParams??{}}}function Yi(bt,yt,pt,Yt,ie="corrected"){if(pt.length>0&&function gu(bt,yt,pt){return pt.some(Yt=>ll(bt,yt,Yt)&&Fr(Yt)!==De)}(bt,pt,Yt)){const kn=new fi(yt,function ru(bt,yt,pt,Yt){const ie={};ie[De]=Yt,Yt._sourceSegment=bt,Yt._segmentIndexShift=yt.length;for(const ke of pt)if(""===ke.path&&Fr(ke)!==De){const kn=new fi([],{});kn._sourceSegment=bt,kn._segmentIndexShift=yt.length,ie[Fr(ke)]=kn}return ie}(bt,yt,Yt,new fi(pt,bt.children)));return kn._sourceSegment=bt,kn._segmentIndexShift=yt.length,{segmentGroup:kn,slicedSegments:[]}}if(0===pt.length&&function Ua(bt,yt,pt){return pt.some(Yt=>ll(bt,yt,Yt))}(bt,pt,Yt)){const kn=new fi(bt.segments,function _t(bt,yt,pt,Yt,ie,ke){const kn={};for(const In of Yt)if(ll(bt,pt,In)&&!ie[Fr(In)]){const Fi=new fi([],{});Fi._sourceSegment=bt,Fi._segmentIndexShift="legacy"===ke?bt.segments.length:yt.length,kn[Fr(In)]=Fi}return{...ie,...kn}}(bt,yt,pt,Yt,bt.children,ie));return kn._sourceSegment=bt,kn._segmentIndexShift=yt.length,{segmentGroup:kn,slicedSegments:pt}}const ke=new fi(bt.segments,bt.children);return ke._sourceSegment=bt,ke._segmentIndexShift=yt.length,{segmentGroup:ke,slicedSegments:pt}}function ll(bt,yt,pt){return(!(bt.hasChildren()||yt.length>0)||"full"!==pt.pathMatch)&&""===pt.path}function Ja(bt,yt,pt,Yt){return!!(Fr(bt)===Yt||Yt!==De&&ll(yt,pt,bt))&&("**"===bt.path||cl(yt,bt,pt).matched)}function qr(bt,yt,pt){return 0===yt.length&&!bt.children[pt]}const ws=!1;class Ra{constructor(yt){this.segmentGroup=yt||null}}class Ei{constructor(yt){this.urlTree=yt}}function md(bt){return(0,D._)(new Ra(bt))}function u1(bt){return(0,D._)(new Ei(bt))}class Pi{constructor(yt,pt,Yt,ie,ke){this.injector=yt,this.configLoader=pt,this.urlSerializer=Yt,this.urlTree=ie,this.config=ke,this.allowRedirects=!0}apply(){const yt=Yi(this.urlTree.root,[],[],this.config).segmentGroup,pt=new fi(yt.segments,yt.children);return this.expandSegmentGroup(this.injector,this.config,pt,De).pipe((0,at.U)(ke=>this.createUrlTree(Zi(ke),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,At.K)(ke=>{if(ke instanceof Ei)return this.allowRedirects=!1,this.match(ke.urlTree);throw ke instanceof Ra?this.noMatchError(ke):ke}))}match(yt){return this.expandSegmentGroup(this.injector,this.config,yt.root,De).pipe((0,at.U)(ie=>this.createUrlTree(Zi(ie),yt.queryParams,yt.fragment))).pipe((0,At.K)(ie=>{throw ie instanceof Ra?this.noMatchError(ie):ie}))}noMatchError(yt){return new d.vHH(4002,ws)}createUrlTree(yt,pt,Yt){const ie=ei(yt);return new ho(ie,pt,Yt)}expandSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.expandChildren(yt,pt,Yt).pipe((0,at.U)(ke=>new fi([],ke))):this.expandSegment(yt,Yt,pt,Yt.segments,ie,!0)}expandChildren(yt,pt,Yt){const ie=[];for(const ke of Object.keys(Yt.children))"primary"===ke?ie.unshift(ke):ie.push(ke);return(0,p.D)(ie).pipe((0,it.b)(ke=>{const kn=Yt.children[ke],In=ra(pt,ke);return this.expandSegmentGroup(yt,In,kn,ke).pipe((0,at.U)(Fi=>({segment:Fi,outlet:ke})))}),Et((ke,kn)=>(ke[kn.outlet]=kn.segment,ke),{}),Xt())}expandSegment(yt,pt,Yt,ie,ke,kn){return(0,p.D)(Yt).pipe((0,it.b)(In=>this.expandSegmentAgainstRoute(yt,pt,Yt,In,ie,ke,kn).pipe((0,At.K)(Gi=>{if(Gi instanceof Ra)return(0,b.of)(null);throw Gi}))),(0,Vt.P)(In=>!!In),(0,At.K)((In,Fi)=>{if(Pc(In))return qr(pt,ie,ke)?(0,b.of)(new fi([],{})):md(pt);throw In}))}expandSegmentAgainstRoute(yt,pt,Yt,ie,ke,kn,In){return Ja(ie,pt,ke,kn)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(yt,pt,ie,ke,kn):In&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn):md(pt):md(pt)}expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn){return"**"===ie.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(yt,Yt,ie,kn):this.expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn)}expandWildCardWithParamsAgainstRouteUsingRedirect(yt,pt,Yt,ie){const ke=this.applyRedirectCommands([],Yt.redirectTo,{});return Yt.redirectTo.startsWith("/")?u1(ke):this.lineralizeSegments(Yt,ke).pipe((0,zt.zg)(kn=>{const In=new fi(kn,{});return this.expandSegment(yt,In,pt,kn,ie,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,ke,kn){const{matched:In,consumedSegments:Fi,remainingSegments:Gi,positionalParamSegments:Sa}=cl(pt,ie,ke);if(!In)return md(pt);const $o=this.applyRedirectCommands(Fi,ie.redirectTo,Sa);return ie.redirectTo.startsWith("/")?u1($o):this.lineralizeSegments(ie,$o).pipe((0,zt.zg)(xr=>this.expandSegment(yt,pt,Yt,xr.concat(Gi),kn,!1)))}matchSegmentAgainstRoute(yt,pt,Yt,ie,ke){return"**"===Yt.path?(yt=ar(Yt,yt),Yt.loadChildren?(Yt._loadedRoutes?(0,b.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector}):this.configLoader.loadChildren(yt,Yt)).pipe((0,at.U)(In=>(Yt._loadedRoutes=In.routes,Yt._loadedInjector=In.injector,new fi(ie,{})))):(0,b.of)(new fi(ie,{}))):Zl(pt,Yt,ie,yt).pipe((0,ct.w)(({matched:kn,consumedSegments:In,remainingSegments:Fi})=>kn?this.getChildConfig(yt=Yt._injector??yt,Yt,ie).pipe((0,zt.zg)(Sa=>{const $o=Sa.injector??yt,xr=Sa.routes,{segmentGroup:Ps,slicedSegments:Yu}=Yi(pt,In,Fi,xr),Bl=new fi(Ps.segments,Ps.children);if(0===Yu.length&&Bl.hasChildren())return this.expandChildren($o,xr,Bl).pipe((0,at.U)(On=>new fi(In,On)));if(0===xr.length&&0===Yu.length)return(0,b.of)(new fi(In,{}));const ba=Fr(Yt)===ke;return this.expandSegment($o,Bl,xr,Yu,ba?De:ke,!0).pipe((0,at.U)(da=>new fi(In.concat(da.segments),da.children)))})):md(pt)))}getChildConfig(yt,pt,Yt){return pt.children?(0,b.of)({routes:pt.children,injector:yt}):pt.loadChildren?void 0!==pt._loadedRoutes?(0,b.of)({routes:pt._loadedRoutes,injector:pt._loadedInjector}):function Sc(bt,yt,pt,Yt){const ie=yt.canLoad;if(void 0===ie||0===ie.length)return(0,b.of)(!0);const ke=ie.map(kn=>{const In=fu(kn,bt);return ne(function ee(bt){return bt&&kr(bt.canLoad)}(In)?In.canLoad(yt,pt):bt.runInContext(()=>In(yt,pt)))});return(0,b.of)(ke).pipe(Nr(),sl())}(yt,pt,Yt).pipe((0,zt.zg)(ie=>ie?this.configLoader.loadChildren(yt,pt).pipe((0,Tt.b)(ke=>{pt._loadedRoutes=ke.routes,pt._loadedInjector=ke.injector})):function pi(bt){return(0,D._)(Ms(ws,3))}())):(0,b.of)({routes:[],injector:yt})}lineralizeSegments(yt,pt){let Yt=[],ie=pt.root;for(;;){if(Yt=Yt.concat(ie.segments),0===ie.numberOfChildren)return(0,b.of)(Yt);if(ie.numberOfChildren>1||!ie.children[De])return(0,D._)(new d.vHH(4e3,ws));ie=ie.children[De]}}applyRedirectCommands(yt,pt,Yt){return this.applyRedirectCreateUrlTree(pt,this.urlSerializer.parse(pt),yt,Yt)}applyRedirectCreateUrlTree(yt,pt,Yt,ie){const ke=this.createSegmentGroup(yt,pt.root,Yt,ie);return new ho(ke,this.createQueryParams(pt.queryParams,this.urlTree.queryParams),pt.fragment)}createQueryParams(yt,pt){const Yt={};return Ke(yt,(ie,ke)=>{if("string"==typeof ie&&ie.startsWith(":")){const In=ie.substring(1);Yt[ke]=pt[In]}else Yt[ke]=ie}),Yt}createSegmentGroup(yt,pt,Yt,ie){const ke=this.createSegments(yt,pt.segments,Yt,ie);let kn={};return Ke(pt.children,(In,Fi)=>{kn[Fi]=this.createSegmentGroup(yt,In,Yt,ie)}),new fi(ke,kn)}createSegments(yt,pt,Yt,ie){return pt.map(ke=>ke.path.startsWith(":")?this.findPosParam(yt,ke,ie):this.findOrReturn(ke,Yt))}findPosParam(yt,pt,Yt){const ie=Yt[pt.path.substring(1)];if(!ie)throw new d.vHH(4001,ws);return ie}findOrReturn(yt,pt){let Yt=0;for(const ie of pt){if(ie.path===yt.path)return pt.splice(Yt),ie;Yt++}return yt}}class er{}class Ie{constructor(yt,pt,Yt,ie,ke,kn,In,Fi){this.injector=yt,this.rootComponentType=pt,this.config=Yt,this.urlTree=ie,this.url=ke,this.paramsInheritanceStrategy=kn,this.relativeLinkResolution=In,this.urlSerializer=Fi}recognize(){const yt=Yi(this.urlTree.root,[],[],this.config.filter(pt=>void 0===pt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,yt,De).pipe((0,at.U)(pt=>{if(null===pt)return null;const Yt=new zc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},De,this.rootComponentType,null,this.urlTree.root,-1,{}),ie=new Hc(Yt,pt),ke=new Zs(this.url,ie);return this.inheritParamsAndData(ke._root),ke}))}inheritParamsAndData(yt){const pt=yt.value,Yt=yl(pt,this.paramsInheritanceStrategy);pt.params=Object.freeze(Yt.params),pt.data=Object.freeze(Yt.data),yt.children.forEach(ie=>this.inheritParamsAndData(ie))}processSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.processChildren(yt,pt,Yt):this.processSegment(yt,pt,Yt,Yt.segments,ie)}processChildren(yt,pt,Yt){return(0,p.D)(Object.keys(Yt.children)).pipe((0,it.b)(ie=>{const ke=Yt.children[ie],kn=ra(pt,ie);return this.processSegmentGroup(yt,kn,ke,ie)}),Et((ie,ke)=>ie&&ke?(ie.push(...ke),ie):null),(0,Te.o)(ie=>null!==ie),(0,qe.d)(null),Xt(),(0,at.U)(ie=>{if(null===ie)return null;const ke=_d(ie);return function vu(bt){bt.sort((yt,pt)=>yt.value.outlet===De?-1:pt.value.outlet===De?1:yt.value.outlet.localeCompare(pt.value.outlet))}(ke),ke}))}processSegment(yt,pt,Yt,ie,ke){return(0,p.D)(pt).pipe((0,it.b)(kn=>this.processSegmentAgainstRoute(kn._injector??yt,kn,Yt,ie,ke)),(0,Vt.P)(kn=>!!kn),(0,At.K)(kn=>{if(Pc(kn))return qr(Yt,ie,ke)?(0,b.of)([]):(0,b.of)(null);throw kn}))}processSegmentAgainstRoute(yt,pt,Yt,ie,ke){if(pt.redirectTo||!Ja(pt,Yt,ie,ke))return(0,b.of)(null);let kn;if("**"===pt.path){const In=ie.length>0?vi(ie).parameters:{},Fi=Mt(Yt)+ie.length,Gi=new zc(ie,In,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jt(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,Ru(Yt),Fi,Qe(pt),Fi);kn=(0,b.of)({snapshot:Gi,consumedSegments:[],remainingSegments:[]})}else kn=Zl(Yt,pt,ie,yt).pipe((0,at.U)(({matched:In,consumedSegments:Fi,remainingSegments:Gi,parameters:Sa})=>{if(!In)return null;const $o=Mt(Yt)+Fi.length;return{snapshot:new zc(Fi,Sa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jt(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,Ru(Yt),$o,Qe(pt),$o),consumedSegments:Fi,remainingSegments:Gi}}));return kn.pipe((0,ct.w)(In=>{if(null===In)return(0,b.of)(null);const{snapshot:Fi,consumedSegments:Gi,remainingSegments:Sa}=In;yt=pt._injector??yt;const $o=pt._loadedInjector??yt,xr=function $s(bt){return bt.children?bt.children:bt.loadChildren?bt._loadedRoutes:[]}(pt),{segmentGroup:Ps,slicedSegments:Yu}=Yi(Yt,Gi,Sa,xr.filter(ba=>void 0===ba.redirectTo),this.relativeLinkResolution);if(0===Yu.length&&Ps.hasChildren())return this.processChildren($o,xr,Ps).pipe((0,at.U)(ba=>null===ba?null:[new Hc(Fi,ba)]));if(0===xr.length&&0===Yu.length)return(0,b.of)([new Hc(Fi,[])]);const Bl=Fr(pt)===ke;return this.processSegment($o,xr,Ps,Yu,Bl?De:ke).pipe((0,at.U)(ba=>null===ba?null:[new Hc(Fi,ba)]))}))}}function eo(bt){const yt=bt.value.routeConfig;return yt&&""===yt.path&&void 0===yt.redirectTo}function _d(bt){const yt=[],pt=new Set;for(const Yt of bt){if(!eo(Yt)){yt.push(Yt);continue}const ie=yt.find(ke=>Yt.value.routeConfig===ke.value.routeConfig);void 0!==ie?(ie.children.push(...Yt.children),pt.add(ie)):yt.push(Yt)}for(const Yt of pt){const ie=_d(Yt.children);yt.push(new Hc(Yt.value,ie))}return yt.filter(Yt=>!pt.has(Yt))}function Ru(bt){let yt=bt;for(;yt._sourceSegment;)yt=yt._sourceSegment;return yt}function Mt(bt){let yt=bt,pt=yt._segmentIndexShift??0;for(;yt._sourceSegment;)yt=yt._sourceSegment,pt+=yt._segmentIndexShift??0;return pt-1}function jt(bt){return bt.data||{}}function Qe(bt){return bt.resolve||{}}function Jn(bt){return"string"==typeof bt.title||null===bt.title}function Qn(bt){return(0,ct.w)(yt=>{const pt=bt(yt);return pt?(0,p.D)(pt).pipe((0,at.U)(()=>yt)):(0,b.of)(yt)})}let yi=(()=>{class bt{buildTitle(pt){let Yt,ie=pt.root;for(;void 0!==ie;)Yt=this.getResolvedTitleForRoute(ie)??Yt,ie=ie.children.find(ke=>ke.outlet===De);return Yt}getResolvedTitleForRoute(pt){return pt.data[on]}}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275prov=d.Yz7({token:bt,factory:function(){return(0,d.f3M)(wi)},providedIn:"root"}),bt})(),wi=(()=>{class bt extends yi{constructor(pt){super(),this.title=pt}updateTitle(pt){const Yt=this.buildTitle(pt);void 0!==Yt&&this.title.setTitle(Yt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(re.Dx))},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();class xo{}class va extends class To{shouldDetach(yt){return!1}store(yt,pt){}shouldAttach(yt){return!1}retrieve(yt){return null}shouldReuseRoute(yt,pt){return yt.routeConfig===pt.routeConfig}}{}const ha=new d.OlP("",{providedIn:"root",factory:()=>({})}),zs=new d.OlP("ROUTES");let es=(()=>{class bt{constructor(pt,Yt){this.injector=pt,this.compiler=Yt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(pt){if(this.componentLoaders.get(pt))return this.componentLoaders.get(pt);if(pt._loadedComponent)return(0,b.of)(pt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(pt);const Yt=ne(pt.loadComponent()).pipe((0,Tt.b)(ke=>{this.onLoadEndListener&&this.onLoadEndListener(pt),pt._loadedComponent=ke}),(0,Kt.x)(()=>{this.componentLoaders.delete(pt)})),ie=new z.c(Yt,()=>new J.xQ).pipe((0,de.x)());return this.componentLoaders.set(pt,ie),ie}loadChildren(pt,Yt){if(this.childrenLoaders.get(Yt))return this.childrenLoaders.get(Yt);if(Yt._loadedRoutes)return(0,b.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Yt);const ke=this.loadModuleFactoryOrRoutes(Yt.loadChildren).pipe((0,at.U)(In=>{this.onLoadEndListener&&this.onLoadEndListener(Yt);let Fi,Gi,Sa=!1;Array.isArray(In)?Gi=In:(Fi=In.create(pt).injector,Gi=oi(Fi.get(zs,[],d.XFs.Self|d.XFs.Optional)));return{routes:Gi.map(Qs),injector:Fi}}),(0,Kt.x)(()=>{this.childrenLoaders.delete(Yt)})),kn=new z.c(ke,()=>new J.xQ).pipe((0,de.x)());return this.childrenLoaders.set(Yt,kn),kn}loadModuleFactoryOrRoutes(pt){return ne(pt()).pipe((0,zt.zg)(Yt=>Yt instanceof d.YKP||Array.isArray(Yt)?(0,b.of)(Yt):(0,p.D)(this.compiler.compileModuleAsync(Yt))))}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(d.zs3),d.LFG(d.Sil))},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();class ns{}class ps{shouldProcessUrl(yt){return!0}extract(yt){return yt}merge(yt,pt){return yt}}function Ks(bt){throw bt}function Lc(bt,yt,pt){return yt.parse("/")}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function sr(){const bt=(0,d.f3M)(ze),yt=(0,d.f3M)(vc),pt=(0,d.f3M)(K.Ye),Yt=(0,d.f3M)(d.zs3),ie=(0,d.f3M)(d.Sil),ke=(0,d.f3M)(zs,{optional:!0})??[],kn=(0,d.f3M)(ha,{optional:!0})??{},In=(0,d.f3M)(wi),Fi=(0,d.f3M)(yi,{optional:!0}),Gi=(0,d.f3M)(ns,{optional:!0}),Sa=(0,d.f3M)(xo,{optional:!0}),$o=new Cs(null,bt,yt,pt,Yt,ie,oi(ke));return Gi&&($o.urlHandlingStrategy=Gi),Sa&&($o.routeReuseStrategy=Sa),$o.titleStrategy=Fi??In,function rr(bt,yt){bt.errorHandler&&(yt.errorHandler=bt.errorHandler),bt.malformedUriErrorHandler&&(yt.malformedUriErrorHandler=bt.malformedUriErrorHandler),bt.onSameUrlNavigation&&(yt.onSameUrlNavigation=bt.onSameUrlNavigation),bt.paramsInheritanceStrategy&&(yt.paramsInheritanceStrategy=bt.paramsInheritanceStrategy),bt.relativeLinkResolution&&(yt.relativeLinkResolution=bt.relativeLinkResolution),bt.urlUpdateStrategy&&(yt.urlUpdateStrategy=bt.urlUpdateStrategy),bt.canceledNavigationResolution&&(yt.canceledNavigationResolution=bt.canceledNavigationResolution)}(kn,$o),$o}let Cs=(()=>{class bt{constructor(pt,Yt,ie,ke,kn,In,Fi){this.rootComponentType=pt,this.urlSerializer=Yt,this.rootContexts=ie,this.location=ke,this.config=Fi,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new J.xQ,this.errorHandler=Ks,this.malformedUriErrorHandler=Lc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,b.of)(void 0),this.urlHandlingStrategy=new ps,this.routeReuseStrategy=new va,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=kn.get(es),this.configLoader.onLoadEndListener=xr=>this.triggerEvent(new s1(xr)),this.configLoader.onLoadStartListener=xr=>this.triggerEvent(new qs(xr)),this.ngModule=kn.get(d.h0i),this.console=kn.get(d.c2e);const $o=kn.get(d.R0b);this.isNgZoneEnabled=$o instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(Fi),this.currentUrlTree=function nt(){return new ho(new fi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=pd(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(pt){const Yt=this.events;return pt.pipe((0,Pt.h)(ie=>0!==ie.id),(0,at.U)(ie=>({...ie,extractedUrl:this.urlHandlingStrategy.extract(ie.rawUrl)})),(0,ct.w)(ie=>{let ke=!1,kn=!1;return(0,b.of)(ie).pipe((0,Tt.b)(In=>{this.currentNavigation={id:In.id,initialUrl:In.rawUrl,extractedUrl:In.extractedUrl,trigger:In.source,extras:In.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ct.w)(In=>{const Fi=this.browserUrlTree.toString(),Gi=!this.navigated||In.extractedUrl.toString()!==Fi||Fi!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Gi)&&this.urlHandlingStrategy.shouldProcessUrl(In.rawUrl))return Qp(In.source)&&(this.browserUrlTree=In.extractedUrl),(0,b.of)(In).pipe((0,ct.w)($o=>{const xr=this.transitions.getValue();return Yt.next(new Qr($o.id,this.serializeUrl($o.extractedUrl),$o.source,$o.restoredState)),xr!==this.transitions.getValue()?F.E:Promise.resolve($o)}),function Lo(bt,yt,pt,Yt){return(0,ct.w)(ie=>function Di(bt,yt,pt,Yt,ie){return new Pi(bt,yt,pt,Yt,ie).apply()}(bt,yt,pt,ie.extractedUrl,Yt).pipe((0,at.U)(ke=>({...ie,urlAfterRedirects:ke}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Tt.b)($o=>{this.currentNavigation={...this.currentNavigation,finalUrl:$o.urlAfterRedirects},ie.urlAfterRedirects=$o.urlAfterRedirects}),function Ln(bt,yt,pt,Yt,ie,ke){return(0,zt.zg)(kn=>function Ve(bt,yt,pt,Yt,ie,ke,kn="emptyOnly",In="legacy"){return new Ie(bt,yt,pt,Yt,ie,kn,In,ke).recognize().pipe((0,ct.w)(Fi=>null===Fi?function hn(bt){return new P.y(yt=>yt.error(bt))}(new er):(0,b.of)(Fi)))}(bt,yt,pt,kn.urlAfterRedirects,Yt.serialize(kn.urlAfterRedirects),Yt,ie,ke).pipe((0,at.U)(In=>({...kn,targetSnapshot:In}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Tt.b)($o=>{if(ie.targetSnapshot=$o.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!$o.extras.skipLocationChange){const Ps=this.urlHandlingStrategy.merge($o.urlAfterRedirects,$o.rawUrl);this.setBrowserUrl(Ps,$o)}this.browserUrlTree=$o.urlAfterRedirects}const xr=new Mc($o.id,this.serializeUrl($o.extractedUrl),this.serializeUrl($o.urlAfterRedirects),$o.targetSnapshot);Yt.next(xr)}));if(Gi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:Ps,source:Yu,restoredState:Bl,extras:ba}=In,Hr=new Qr(xr,this.serializeUrl(Ps),Yu,Bl);Yt.next(Hr);const da=pd(Ps,this.rootComponentType).snapshot;return ie={...In,targetSnapshot:da,urlAfterRedirects:Ps,extras:{...ba,skipLocationChange:!1,replaceUrl:!1}},(0,b.of)(ie)}return this.rawUrlTree=In.rawUrl,In.resolve(null),F.E}),(0,Tt.b)(In=>{const Fi=new Ns(In.id,this.serializeUrl(In.extractedUrl),this.serializeUrl(In.urlAfterRedirects),In.targetSnapshot);this.triggerEvent(Fi)}),(0,at.U)(In=>ie={...In,guards:Cc(In.targetSnapshot,In.currentSnapshot,this.rootContexts)}),function Nu(bt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,currentSnapshot:ie,guards:{canActivateChecks:ke,canDeactivateChecks:kn}}=pt;return 0===kn.length&&0===ke.length?(0,b.of)({...pt,guardsResult:!0}):function tr(bt,yt,pt,Yt){return(0,p.D)(bt).pipe((0,zt.zg)(ie=>function au(bt,yt,pt,Yt,ie){const ke=yt&&yt.routeConfig?yt.routeConfig.canDeactivate:null;if(!ke||0===ke.length)return(0,b.of)(!0);const kn=ke.map(In=>{const Fi=pc(yt)??ie,Gi=fu(In,Fi);return ne(function ki(bt){return bt&&kr(bt.canDeactivate)}(Gi)?Gi.canDeactivate(bt,yt,pt,Yt):Fi.runInContext(()=>Gi(bt,yt,pt,Yt))).pipe((0,Vt.P)())});return(0,b.of)(kn).pipe(Nr())}(ie.component,ie.route,pt,yt,Yt)),(0,Vt.P)(ie=>!0!==ie,!0))}(kn,Yt,ie,bt).pipe((0,zt.zg)(In=>In&&function pe(bt){return"boolean"==typeof bt}(In)?function wl(bt,yt,pt,Yt){return(0,p.D)(yt).pipe((0,it.b)(ie=>(0,x.z)(function qu(bt,yt){return null!==bt&&yt&&yt(new hr(bt)),(0,b.of)(!0)}(ie.route.parent,Yt),function ou(bt,yt){return null!==bt&&yt&&yt(new c1(bt)),(0,b.of)(!0)}(ie.route,Yt),function l1(bt,yt,pt){const Yt=yt[yt.length-1],ke=yt.slice(0,yt.length-1).reverse().map(kn=>function Ed(bt){const yt=bt.routeConfig?bt.routeConfig.canActivateChild:null;return yt&&0!==yt.length?{node:bt,guards:yt}:null}(kn)).filter(kn=>null!==kn).map(kn=>(0,U.P)(()=>{const In=kn.guards.map(Fi=>{const Gi=pc(kn.node)??pt,Sa=fu(Fi,Gi);return ne(function rt(bt){return bt&&kr(bt.canActivateChild)}(Sa)?Sa.canActivateChild(Yt,bt):Gi.runInContext(()=>Sa(Yt,bt))).pipe((0,Vt.P)())});return(0,b.of)(In).pipe(Nr())}));return(0,b.of)(ke).pipe(Nr())}(bt,ie.path,pt),function Jp(bt,yt,pt){const Yt=yt.routeConfig?yt.routeConfig.canActivate:null;if(!Yt||0===Yt.length)return(0,b.of)(!0);const ie=Yt.map(ke=>(0,U.P)(()=>{const kn=pc(yt)??pt,In=fu(ke,kn);return ne(function qt(bt){return bt&&kr(bt.canActivate)}(In)?In.canActivate(yt,bt):kn.runInContext(()=>In(yt,bt))).pipe((0,Vt.P)())}));return(0,b.of)(ie).pipe(Nr())}(bt,ie.route,pt))),(0,Vt.P)(ie=>!0!==ie,!0))}(Yt,ke,bt,yt):(0,b.of)(In)),(0,at.U)(In=>({...pt,guardsResult:In})))})}(this.ngModule.injector,In=>this.triggerEvent(In)),(0,Tt.b)(In=>{if(ie.guardsResult=In.guardsResult,No(In.guardsResult))throw Tl(0,In.guardsResult);const Fi=new kc(In.id,this.serializeUrl(In.extractedUrl),this.serializeUrl(In.urlAfterRedirects),In.targetSnapshot,!!In.guardsResult);this.triggerEvent(Fi)}),(0,Pt.h)(In=>!!In.guardsResult||(this.restoreHistory(In),this.cancelNavigationTransition(In,"",3),!1)),Qn(In=>{if(In.guards.canActivateChecks.length)return(0,b.of)(In).pipe((0,Tt.b)(Fi=>{const Gi=new bl(Fi.id,this.serializeUrl(Fi.extractedUrl),this.serializeUrl(Fi.urlAfterRedirects),Fi.targetSnapshot);this.triggerEvent(Gi)}),(0,ct.w)(Fi=>{let Gi=!1;return(0,b.of)(Fi).pipe(function It(bt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,guards:{canActivateChecks:ie}}=pt;if(!ie.length)return(0,b.of)(pt);let ke=0;return(0,p.D)(ie).pipe((0,it.b)(kn=>function ce(bt,yt,pt,Yt){const ie=bt.routeConfig,ke=bt._resolve;return void 0!==ie?.title&&!Jn(ie)&&(ke[on]=ie.title),function Ze(bt,yt,pt,Yt){const ie=function tn(bt){return[...Object.keys(bt),...Object.getOwnPropertySymbols(bt)]}(bt);if(0===ie.length)return(0,b.of)({});const ke={};return(0,p.D)(ie).pipe((0,zt.zg)(kn=>function bn(bt,yt,pt,Yt){const ie=pc(yt)??Yt,ke=fu(bt,ie);return ne(ke.resolve?ke.resolve(yt,pt):ie.runInContext(()=>ke(yt,pt)))}(bt[kn],yt,pt,Yt).pipe((0,Vt.P)(),(0,Tt.b)(In=>{ke[kn]=In}))),Gt(1),(0,ae.h)(ke),(0,At.K)(kn=>Pc(kn)?F.E:(0,D._)(kn)))}(ke,bt,yt,Yt).pipe((0,at.U)(kn=>(bt._resolvedData=kn,bt.data=yl(bt,pt).resolve,ie&&Jn(ie)&&(bt.data[on]=ie.title),null)))}(kn.route,Yt,bt,yt)),(0,Tt.b)(()=>ke++),Gt(1),(0,zt.zg)(kn=>ke===ie.length?(0,b.of)(pt):F.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Tt.b)({next:()=>Gi=!0,complete:()=>{Gi||(this.restoreHistory(Fi),this.cancelNavigationTransition(Fi,"",2))}}))}),(0,Tt.b)(Fi=>{const Gi=new Wr(Fi.id,this.serializeUrl(Fi.extractedUrl),this.serializeUrl(Fi.urlAfterRedirects),Fi.targetSnapshot);this.triggerEvent(Gi)}))}),Qn(In=>{const Fi=Gi=>{const Sa=[];Gi.routeConfig?.loadComponent&&!Gi.routeConfig._loadedComponent&&Sa.push(this.configLoader.loadComponent(Gi.routeConfig).pipe((0,Tt.b)($o=>{Gi.component=$o}),(0,at.U)(()=>{})));for(const $o of Gi.children)Sa.push(...Fi($o));return Sa};return(0,A.aj)(Fi(In.targetSnapshot.root)).pipe((0,qe.d)(),(0,vt.q)(1))}),Qn(()=>this.afterPreactivation()),(0,at.U)(In=>{const Fi=function or(bt,yt,pt){const Yt=uc(bt,yt._root,pt?pt._root:void 0);return new Al(Yt,yt)}(this.routeReuseStrategy,In.targetSnapshot,In.currentRouterState);return ie={...In,targetRouterState:Fi}}),(0,Tt.b)(In=>{this.currentUrlTree=In.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(In.urlAfterRedirects,In.rawUrl),this.routerState=In.targetRouterState,"deferred"===this.urlUpdateStrategy&&(In.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,In),this.browserUrlTree=In.urlAfterRedirects)}),((bt,yt,pt)=>(0,at.U)(Yt=>(new Gr(yt,Yt.targetRouterState,Yt.currentRouterState,pt).activate(bt),Yt)))(this.rootContexts,this.routeReuseStrategy,In=>this.triggerEvent(In)),(0,Tt.b)({next(){ke=!0},complete(){ke=!0}}),(0,Kt.x)(()=>{ke||kn||this.cancelNavigationTransition(ie,"",1),this.currentNavigation?.id===ie.id&&(this.currentNavigation=null)}),(0,At.K)(In=>{if(kn=!0,_u(In)){Yc(In)||(this.navigated=!0,this.restoreHistory(ie,!0));const Fi=new Zc(ie.id,this.serializeUrl(ie.extractedUrl),In.message,In.cancellationCode);if(Yt.next(Fi),Yc(In)){const Gi=this.urlHandlingStrategy.merge(In.url,this.rawUrlTree),Sa={skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qp(ie.source)};this.scheduleNavigation(Gi,"imperative",null,Sa,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}else ie.resolve(!1)}else{this.restoreHistory(ie,!0);const Fi=new al(ie.id,this.serializeUrl(ie.extractedUrl),In,ie.targetSnapshot??void 0);Yt.next(Fi);try{ie.resolve(this.errorHandler(In))}catch(Gi){ie.reject(Gi)}}return F.E}))}))}resetRootComponentType(pt){this.rootComponentType=pt,this.routerState.root.component=this.rootComponentType}setTransition(pt){this.transitions.next({...this.transitions.value,...pt})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(pt=>{const Yt="popstate"===pt.type?"popstate":"hashchange";"popstate"===Yt&&setTimeout(()=>{const ie={replaceUrl:!0},ke=pt.state?.navigationId?pt.state:null;if(ke){const In={...ke};delete In.navigationId,delete In.\u0275routerPageId,0!==Object.keys(In).length&&(ie.state=In)}const kn=this.parseUrl(pt.url);this.scheduleNavigation(kn,Yt,ke,ie)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(pt){this.events.next(pt)}resetConfig(pt){this.config=pt.map(Qs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(pt,Yt={}){const{relativeTo:ie,queryParams:ke,fragment:kn,queryParamsHandling:In,preserveFragment:Fi}=Yt,Gi=ie||this.routerState.root,Sa=Fi?this.currentUrlTree.fragment:kn;let $o=null;switch(In){case"merge":$o={...this.currentUrlTree.queryParams,...ke};break;case"preserve":$o=this.currentUrlTree.queryParams;break;default:$o=ke||null}return null!==$o&&($o=this.removeEmptyProps($o)),Fn(Gi,this.currentUrlTree,pt,$o,Sa??null)}navigateByUrl(pt,Yt={skipLocationChange:!1}){const ie=No(pt)?pt:this.parseUrl(pt),ke=this.urlHandlingStrategy.merge(ie,this.rawUrlTree);return this.scheduleNavigation(ke,"imperative",null,Yt)}navigate(pt,Yt={skipLocationChange:!1}){return function m_(bt){for(let yt=0;yt{const ke=pt[ie];return null!=ke&&(Yt[ie]=ke),Yt},{})}processNavigations(){this.navigations.subscribe(pt=>{this.navigated=!0,this.lastSuccessfulId=pt.id,this.currentPageId=pt.targetPageId,this.events.next(new Er(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),pt.resolve(!0)},pt=>{this.console.warn(`Unhandled Navigation Error: ${pt}`)})}scheduleNavigation(pt,Yt,ie,ke,kn){if(this.disposed)return Promise.resolve(!1);let In,Fi,Gi;kn?(In=kn.resolve,Fi=kn.reject,Gi=kn.promise):Gi=new Promise((xr,Ps)=>{In=xr,Fi=Ps});const Sa=++this.navigationId;let $o;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ie=this.location.getState()),$o=ie&&ie.\u0275routerPageId?ie.\u0275routerPageId:ke.replaceUrl||ke.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):$o=0,this.setTransition({id:Sa,targetPageId:$o,source:Yt,restoredState:ie,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pt,extras:ke,resolve:In,reject:Fi,promise:Gi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Gi.catch(xr=>Promise.reject(xr))}setBrowserUrl(pt,Yt){const ie=this.urlSerializer.serialize(pt),ke={...Yt.extras.state,...this.generateNgRouterState(Yt.id,Yt.targetPageId)};this.location.isCurrentPathEqualTo(ie)||Yt.extras.replaceUrl?this.location.replaceState(ie,"",ke):this.location.go(ie,"",ke)}restoreHistory(pt,Yt=!1){if("computed"===this.canceledNavigationResolution){const ie=this.currentPageId-pt.targetPageId;"popstate"!==pt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ie?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ie&&(this.resetState(pt),this.browserUrlTree=pt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ie)}else"replace"===this.canceledNavigationResolution&&(Yt&&this.resetState(pt),this.resetUrlToCurrentUrlTree())}resetState(pt){this.routerState=pt.currentRouterState,this.currentUrlTree=pt.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,pt.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(pt,Yt,ie){const ke=new Zc(pt.id,this.serializeUrl(pt.extractedUrl),Yt,ie);this.triggerEvent(ke),pt.resolve(!1)}generateNgRouterState(pt,Yt){return"computed"===this.canceledNavigationResolution?{navigationId:pt,\u0275routerPageId:Yt}:{navigationId:pt}}}return bt.\u0275fac=function(pt){d.$Z()},bt.\u0275prov=d.Yz7({token:bt,factory:function(){return sr()},providedIn:"root"}),bt})();function Qp(bt){return"imperative"!==bt}let $a=(()=>{class bt{constructor(pt,Yt,ie,ke,kn){this.router=pt,this.route=Yt,this.tabIndexAttribute=ie,this.renderer=ke,this.el=kn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new J.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(pt){if(null!=this.tabIndexAttribute)return;const Yt=this.renderer,ie=this.el.nativeElement;null!==pt?Yt.setAttribute(ie,"tabindex",pt):Yt.removeAttribute(ie,"tabindex")}ngOnChanges(pt){this.onChanges.next(this)}set routerLink(pt){null!=pt?(this.commands=Array.isArray(pt)?pt:[pt],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(Cs),d.Y36(js),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq))},bt.\u0275dir=d.lG2({type:bt,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(){return Yt.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),bt})(),su=(()=>{class bt{constructor(pt,Yt,ie){this.router=pt,this.route=Yt,this.locationStrategy=ie,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new J.xQ,this.subscription=pt.events.subscribe(ke=>{ke instanceof Er&&this.updateTargetUrlAndHref()})}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}set routerLink(pt){this.commands=null!=pt?Array.isArray(pt)?pt:[pt]:null}ngOnChanges(pt){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(pt,Yt,ie,ke,kn){return!!(0!==pt||Yt||ie||ke||kn||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(Cs),d.Y36(js),d.Y36(K.S$))},bt.\u0275dir=d.lG2({type:bt,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(ke){return Yt.onClick(ke.button,ke.ctrlKey,ke.shiftKey,ke.altKey,ke.metaKey)}),2&pt&&d.uIk("target",Yt.target)("href",Yt.href,d.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),bt})(),xc=(()=>{class bt{constructor(pt,Yt,ie,ke,kn,In){this.router=pt,this.element=Yt,this.renderer=ie,this.cdr=ke,this.link=kn,this.linkWithHref=In,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.vpe,this.routerEventsSubscription=pt.events.subscribe(Fi=>{Fi instanceof Er&&this.update()})}ngAfterContentInit(){(0,b.of)(this.links.changes,this.linksWithHrefs.changes,(0,b.of)(null)).pipe((0,Wt.J)()).subscribe(pt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const pt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Yt=>!!Yt).map(Yt=>Yt.onChanges);this.linkInputChangesSubscription=(0,p.D)(pt).pipe((0,Wt.J)()).subscribe(Yt=>{this.isActive!==this.isLinkActive(this.router)(Yt)&&this.update()})}set routerLinkActive(pt){const Yt=Array.isArray(pt)?pt:pt.split(" ");this.classes=Yt.filter(ie=>!!ie)}ngOnChanges(pt){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const pt=this.hasActiveLinks();this.isActive!==pt&&(this.isActive=pt,this.cdr.markForCheck(),this.classes.forEach(Yt=>{pt?this.renderer.addClass(this.element.nativeElement,Yt):this.renderer.removeClass(this.element.nativeElement,Yt)}),pt&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(pt))})}isLinkActive(pt){const Yt=function Xs(bt){return!!bt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ie=>!!ie.urlTree&&pt.isActive(ie.urlTree,Yt)}hasActiveLinks(){const pt=this.isLinkActive(this.router);return this.link&&pt(this.link)||this.linkWithHref&&pt(this.linkWithHref)||this.links.some(pt)||this.linksWithHrefs.some(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.Y36(Cs),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36($a,8),d.Y36(su,8))},bt.\u0275dir=d.lG2({type:bt,selectors:[["","routerLinkActive",""]],contentQueries:function(pt,Yt,ie){if(1&pt&&(d.Suo(ie,$a,5),d.Suo(ie,su,5)),2&pt){let ke;d.iGM(ke=d.CRH())&&(Yt.links=ke),d.iGM(ke=d.CRH())&&(Yt.linksWithHrefs=ke)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),bt})();class bu{}let Id=(()=>{class bt{constructor(pt,Yt,ie,ke,kn){this.router=pt,this.injector=ie,this.preloadingStrategy=ke,this.loader=kn}setUpPreloading(){this.subscription=this.router.events.pipe((0,Pt.h)(pt=>pt instanceof Er),(0,it.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pt,Yt){const ie=[];for(const ke of Yt){ke.providers&&!ke._injector&&(ke._injector=(0,d.MMx)(ke.providers,pt,`Route: ${ke.path}`));const kn=ke._injector??pt,In=ke._loadedInjector??kn;ke.loadChildren&&!ke._loadedRoutes&&void 0===ke.canLoad||ke.loadComponent&&!ke._loadedComponent?ie.push(this.preloadConfig(kn,ke)):(ke.children||ke._loadedRoutes)&&ie.push(this.processRoutes(In,ke.children??ke._loadedRoutes))}return(0,p.D)(ie).pipe((0,Wt.J)())}preloadConfig(pt,Yt){return this.preloadingStrategy.preload(Yt,()=>{let ie;ie=Yt.loadChildren&&void 0===Yt.canLoad?this.loader.loadChildren(pt,Yt):(0,b.of)(null);const ke=ie.pipe((0,zt.zg)(kn=>null===kn?(0,b.of)(void 0):(Yt._loadedRoutes=kn.routes,Yt._loadedInjector=kn.injector,this.processRoutes(kn.injector??pt,kn.routes))));if(Yt.loadComponent&&!Yt._loadedComponent){const kn=this.loader.loadComponent(Yt);return(0,p.D)([ke,kn]).pipe((0,Wt.J)())}return ke})}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(Cs),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(bu),d.LFG(es))},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac,providedIn:"root"}),bt})();const Yl=new d.OlP("");let Hu=(()=>{class bt{constructor(pt,Yt,ie={}){this.router=pt,this.viewportScroller=Yt,this.options=ie,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ie.scrollPositionRestoration=ie.scrollPositionRestoration||"disabled",ie.anchorScrolling=ie.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Qr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=pt.navigationTrigger,this.restoredId=pt.restoredState?pt.restoredState.navigationId:0):pt instanceof Er&&(this.lastId=pt.id,this.scheduleScrollEvent(pt,this.router.parseUrl(pt.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Cl&&(pt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(pt.position):pt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(pt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(pt,Yt){this.router.triggerEvent(new Cl(pt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Yt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return bt.\u0275fac=function(pt){d.$Z()},bt.\u0275prov=d.Yz7({token:bt,factory:bt.\u0275fac}),bt})();function as(bt,yt){return{\u0275kind:bt,\u0275providers:yt}}function Gc(bt){return[{provide:zs,multi:!0,useValue:bt}]}function Tr(){const bt=(0,d.f3M)(d.zs3);return yt=>{const pt=bt.get(d.z2F);if(yt!==pt.components[0])return;const Yt=bt.get(Cs),ie=bt.get(cn);1===bt.get(fd)&&Yt.initialNavigation(),bt.get(F1,null,d.XFs.Optional)?.setUpPreloading(),bt.get(Yl,null,d.XFs.Optional)?.init(),Yt.resetRootComponentType(pt.componentTypes[0]),ie.closed||(ie.next(),ie.unsubscribe())}}const cn=new d.OlP("",{factory:()=>new J.xQ}),fd=new d.OlP("",{providedIn:"root",factory:()=>1});const F1=new d.OlP("");function Io(bt){return as(0,[{provide:F1,useExisting:Id},{provide:bu,useExisting:bt}])}const wr=new d.OlP("ROUTER_FORROOT_GUARD"),zu=[K.Ye,{provide:ze,useClass:We},{provide:Cs,useFactory:sr},vc,{provide:js,useFactory:function os(bt){return bt.routerState.root},deps:[Cs]},es];function Uo(){return new d.PXZ("Router",Cs)}let __=(()=>{class bt{constructor(pt){}static forRoot(pt,Yt){return{ngModule:bt,providers:[zu,[],Gc(pt),{provide:wr,useFactory:f_,deps:[[Cs,new d.FiY,new d.tp0]]},{provide:ha,useValue:Yt||{}},Yt?.useHash?{provide:K.S$,useClass:K.Do}:{provide:K.S$,useClass:K.b0},{provide:Yl,useFactory:()=>{const bt=(0,d.f3M)(Cs),yt=(0,d.f3M)(K.EM),pt=(0,d.f3M)(ha);return pt.scrollOffset&&yt.setOffset(pt.scrollOffset),new Hu(bt,yt,pt)}},Yt?.preloadingStrategy?Io(Yt.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:Uo},Yt?.initialNavigation?fp(Yt):[],[{provide:Nd,useFactory:Tr},{provide:d.tb,multi:!0,useExisting:Nd}]]}}static forChild(pt){return{ngModule:bt,providers:[Gc(pt)]}}}return bt.\u0275fac=function(pt){return new(pt||bt)(d.LFG(wr,8))},bt.\u0275mod=d.oAB({type:bt}),bt.\u0275inj=d.cJS({imports:[bc]}),bt})();function f_(bt){return"guarded"}function fp(bt){return["disabled"===bt.initialNavigation?as(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const yt=(0,d.f3M)(Cs);return()=>{yt.setUpLocationChangeListener()}}},{provide:fd,useValue:2}]).\u0275providers:[],"enabledBlocking"===bt.initialNavigation?as(2,[{provide:fd,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:yt=>{const pt=yt.get(K.V_,Promise.resolve());let Yt=!1;return()=>pt.then(()=>new Promise(ke=>{const kn=yt.get(Cs),In=yt.get(cn);(function ie(ke){yt.get(Cs).events.pipe((0,Pt.h)(In=>In instanceof Er||In instanceof Zc||In instanceof al),(0,at.U)(In=>In instanceof Er||In instanceof Zc&&(0===In.code||1===In.code)&&null),(0,Pt.h)(In=>null!==In),(0,vt.q)(1)).subscribe(()=>{ke()})})(()=>{ke(!0),Yt=!0}),kn.afterPreactivation=()=>(ke(!0),Yt||In.closed?(0,b.of)(void 0):In),kn.initialNavigation()}))}}]).\u0275providers:[]]}const Nd=new d.OlP("")},92216:(ot,et,v)=>{"use strict";v.d(et,{BN:()=>Xr,by:()=>$s,uH:()=>Ln});var d=v(94650);function p(It,ce){var Ze=Object.keys(It);if(Object.getOwnPropertySymbols){var tn=Object.getOwnPropertySymbols(It);ce&&(tn=tn.filter(function(bn){return Object.getOwnPropertyDescriptor(It,bn).enumerable})),Ze.push.apply(Ze,tn)}return Ze}function b(It){for(var ce=1;ceIt.length)&&(ce=It.length);for(var Ze=0,tn=new Array(ce);Ze0;)ce+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return ce}function Re(It){for(var ce=[],Ze=(It||[]).length>>>0;Ze--;)ce[Ze]=It[Ze];return ce}function En(It){return It.classList?Re(It.classList):(It.getAttribute("class")||"").split(" ").filter(function(ce){return ce})}function gi(It){return"".concat(It).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _o(It){return Object.keys(It||{}).reduce(function(ce,Ze){return ce+"".concat(Ze,": ").concat(It[Ze].trim(),";")},"")}function mn(It){return It.size!==Xe.size||It.x!==Xe.x||It.y!==Xe.y||It.rotate!==Xe.rotate||It.flipX||It.flipY}function Zi(){var ce=on,Ze=Lt.cssPrefix,tn=Lt.replacementClass,bn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==Ze||tn!==ce){var Jn=new RegExp("\\.".concat("fa","\\-"),"g"),Qn=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(ce),"g");bn=bn.replace(Jn,".".concat(Ze,"-")).replace(Qn,"--".concat(Ze,"-")).replace(yi,".".concat(tn))}return bn}var bo=!1;function No(){Lt.autoAddCss&&!bo&&(function Ne(It){if(It&&qe){var ce=Gt.createElement("style");ce.setAttribute("type","text/css"),ce.innerHTML=It;for(var Ze=Gt.head.childNodes,tn=null,bn=Ze.length-1;bn>-1;bn--){var Jn=Ze[bn],Qn=(Jn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Qn)>-1&&(tn=Jn)}Gt.head.insertBefore(ce,tn)}}(Zi()),bo=!0)}var ua={mixout:function(){return{dom:{css:Zi,insertCss:No}}},hooks:function(){return{beforeDOMElementCreation:function(){No()},beforeI2svg:function(){No()}}}},qa=se||{};qa[Wt]||(qa[Wt]={}),qa[Wt].styles||(qa[Wt].styles={}),qa[Wt].hooks||(qa[Wt].hooks={}),qa[Wt].shims||(qa[Wt].shims=[]);var fr=qa[Wt],Je=[],He=!1;function Me(It){!qe||(He?setTimeout(It,0):Je.push(It))}function dn(It){var ce=It.tag,Ze=It.attributes,tn=void 0===Ze?{}:Ze,bn=It.children,Jn=void 0===bn?[]:bn;return"string"==typeof It?gi(It):"<".concat(ce," ").concat(function go(It){return Object.keys(It||{}).reduce(function(ce,Ze){return ce+"".concat(Ze,'="').concat(gi(It[Ze]),'" ')},"").trim()}(tn),">").concat(Jn.map(dn).join(""),"")}function tt(It,ce,Ze){if(It&&It[ce]&&It[ce][Ze])return{prefix:ce,iconName:Ze,icon:It[ce][Ze]}}qe&&((He=(Gt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gt.readyState))||Gt.addEventListener("DOMContentLoaded",function It(){Gt.removeEventListener("DOMContentLoaded",It),He=1,Je.map(function(ce){return ce()})}));var Q=function(ce,Ze,tn,bn){var wi,vo,xo,Jn=Object.keys(ce),Qn=Jn.length,yi=void 0!==bn?function(ce,Ze){return function(tn,bn,Jn,Qn){return ce.call(Ze,tn,bn,Jn,Qn)}}(Ze,bn):Ze;for(void 0===tn?(wi=1,xo=ce[Jn[0]]):(wi=0,xo=tn);wi=55296&&bn<=56319&&Ze2&&void 0!==arguments[2]?arguments[2]:{},tn=Ze.skipHooks,bn=void 0!==tn&&tn,Jn=Qi(ce);"function"!=typeof fr.hooks.addPack||bn?fr.styles[It]=b(b({},fr.styles[It]||{}),Jn):fr.hooks.addPack(It,Qi(ce)),"fas"===It&&Ao("fa",ce)}var vr,us,ir,Or=fr.styles,fc=fr.shims,dr=(k(vr={},Ke,Object.values(oe[Ke])),k(vr,ne,Object.values(oe[ne])),vr),jr=null,Qr={},Er={},Zc={},al={},Mc={},Ns=(k(us={},Ke,Object.keys(kt[Ke])),k(us,ne,Object.keys(kt[ne])),us);function bl(It,ce){var Ze=ce.split("-"),tn=Ze[0],bn=Ze.slice(1).join("-");return tn!==It||""===bn||function kc(It){return~Ye.indexOf(It)}(bn)?null:bn}var Wr=function(){var ce=function(Jn){return Q(Or,function(Qn,yi,wi){return Qn[wi]=Q(yi,Jn,{}),Qn},{})};Qr=ce(function(bn,Jn,Qn){return Jn[3]&&(bn[Jn[3]]=Qn),Jn[2]&&Jn[2].filter(function(wi){return"number"==typeof wi}).forEach(function(wi){bn[wi.toString(16)]=Qn}),bn}),Er=ce(function(bn,Jn,Qn){return bn[Qn]=Qn,Jn[2]&&Jn[2].filter(function(wi){return"string"==typeof wi}).forEach(function(wi){bn[wi]=Qn}),bn}),Mc=ce(function(bn,Jn,Qn){var yi=Jn[2];return bn[Qn]=Qn,yi.forEach(function(wi){bn[wi]=Qn}),bn});var Ze="far"in Or||Lt.autoFetchSvg,tn=Q(fc,function(bn,Jn){var Qn=Jn[0],yi=Jn[1],wi=Jn[2];return"far"===yi&&!Ze&&(yi="fas"),"string"==typeof Qn&&(bn.names[Qn]={prefix:yi,iconName:wi}),"number"==typeof Qn&&(bn.unicodes[Qn.toString(16)]={prefix:yi,iconName:wi}),bn},{names:{},unicodes:{}});Zc=tn.names,al=tn.unicodes,jr=xl(Lt.styleDefault,{family:Lt.familyDefault})};function qs(It,ce){return(Qr[It]||{})[ce]}function hr(It,ce){return(Mc[It]||{})[ce]}function nu(It){return Zc[It]||{prefix:null,iconName:null}}function hc(){return jr}function xl(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ze=ce.family,tn=void 0===Ze?Ke:Ze,bn=kt[tn][It],Jn=Jt[tn][It]||Jt[tn][bn],Qn=It in fr.styles?It:null;return Jn||Qn||null}(function Ot(It){wt.push(It)})(function(It){jr=xl(It.styleDefault,{family:Lt.familyDefault})}),Wr();var Dc=(k(ir={},Ke,Object.keys(oe[Ke])),k(ir,ne,Object.keys(oe[ne])),ir);function Bs(It){var ce,Ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Ze.skipLookups,bn=void 0!==tn&&tn,Jn=(k(ce={},Ke,"".concat(Lt.cssPrefix,"-").concat(Ke)),k(ce,ne,"".concat(Lt.cssPrefix,"-").concat(ne)),ce),Qn=null,yi=Ke;(It.includes(Jn[Ke])||It.some(function(vo){return Dc[Ke].includes(vo)}))&&(yi=Ke),(It.includes(Jn[ne])||It.some(function(vo){return Dc[ne].includes(vo)}))&&(yi=ne);var wi=It.reduce(function(vo,xo){var To=bl(Lt.cssPrefix,xo);if(Or[xo]?(xo=dr[yi].includes(xo)?Ce[yi][xo]:xo,Qn=xo,vo.prefix=xo):Ns[yi].indexOf(xo)>-1?(Qn=xo,vo.prefix=xl(xo,{family:yi})):To?vo.iconName=To:xo!==Lt.replacementClass&&xo!==Jn[Ke]&&xo!==Jn[ne]&&vo.rest.push(xo),!bn&&vo.prefix&&vo.iconName){var va="fa"===Qn?nu(vo.iconName):{},sa=hr(vo.prefix,vo.iconName);va.prefix&&(Qn=null),vo.iconName=va.iconName||sa||vo.iconName,vo.prefix=va.prefix||vo.prefix,"far"===vo.prefix&&!Or.far&&Or.fas&&!Lt.autoFetchSvg&&(vo.prefix="fas")}return vo},{prefix:null,iconName:null,rest:[]});return(It.includes("fa-brands")||It.includes("fab"))&&(wi.prefix="fab"),(It.includes("fa-duotone")||It.includes("fad"))&&(wi.prefix="fad"),!wi.prefix&&yi===ne&&(Or.fass||Lt.autoFetchSvg)&&(wi.prefix="fass",wi.iconName=hr(wi.prefix,wi.iconName)||wi.iconName),("fa"===wi.prefix||"fa"===Qn)&&(wi.prefix=hc()||"fas"),wi}var Rc=function(){function It(){(function A(It,ce){if(!(It instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,It),this.definitions={}}return function U(It,ce,Ze){ce&&x(It.prototype,ce),Ze&&x(It,Ze),Object.defineProperty(It,"prototype",{writable:!1})}(It,[{key:"add",value:function(){for(var Ze=this,tn=arguments.length,bn=new Array(tn),Jn=0;Jn0&&xo.forEach(function(To){"string"==typeof To&&(Ze[yi][To]=vo)}),Ze[yi][wi]=vo}),Ze}}]),It}(),Hc=[],Vs={},Al={},pd=Object.keys(Al);function js(It,ce){for(var Ze=arguments.length,tn=new Array(Ze>2?Ze-2:0),bn=2;bn1?ce-1:0),tn=1;tn0&&void 0!==arguments[0]?arguments[0]:{};return qe?(yl("beforeI2svg",ce),Gs("pseudoElements2svg",ce),Gs("i2svg",ce)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ze=ce.autoReplaceSvgRoot;!1===Lt.autoReplaceSvg&&(Lt.autoReplaceSvg=!0),Lt.observeMutations=!0,Me(function(){or({autoReplaceSvgRoot:Ze}),yl("watch",ce)})}},Ro={noAuto:function(){Lt.autoReplaceSvg=!1,Lt.observeMutations=!1,yl("noAuto")},config:Lt,dom:iu,parse:{icon:function(ce){if(null===ce)return null;if("object"===T(ce)&&ce.prefix&&ce.iconName)return{prefix:ce.prefix,iconName:hr(ce.prefix,ce.iconName)||ce.iconName};if(Array.isArray(ce)&&2===ce.length){var Ze=0===ce[1].indexOf("fa-")?ce[1].slice(3):ce[1],tn=xl(ce[0]);return{prefix:tn,iconName:hr(tn,Ze)||Ze}}if("string"==typeof ce&&(ce.indexOf("".concat(Lt.cssPrefix,"-"))>-1||ce.match(Oe))){var bn=Bs(ce.split(" "),{skipLookups:!0});return{prefix:bn.prefix||hc(),iconName:hr(bn.prefix,bn.iconName)||bn.iconName}}if("string"==typeof ce){var Jn=hc();return{prefix:Jn,iconName:hr(Jn,ce)||ce}}}},library:Zs,findIconDefinition:zc,toHtml:dn},or=function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ze=ce.autoReplaceSvgRoot,tn=void 0===Ze?Gt:Ze;(Object.keys(fr.styles).length>0||Lt.autoFetchSvg)&&qe&&Lt.autoReplaceSvg&&Ro.dom.i2svg({node:tn})};function uc(It,ce){return Object.defineProperty(It,"abstract",{get:ce}),Object.defineProperty(It,"html",{get:function(){return It.abstract.map(function(tn){return dn(tn)})}}),Object.defineProperty(It,"node",{get:function(){if(qe){var tn=Gt.createElement("div");return tn.innerHTML=It.html,tn.children}}}),It}function gc(It){var ce=It.icons,Ze=ce.main,tn=ce.mask,bn=It.prefix,Jn=It.iconName,Qn=It.transform,yi=It.symbol,wi=It.title,vo=It.maskId,xo=It.titleId,To=It.extra,va=It.watchable,sa=void 0!==va&&va,ha=tn.found?tn:Ze,ts=ha.width,zs=ha.height,es="fak"===bn,ns=[Lt.replacementClass,Jn?"".concat(Lt.cssPrefix,"-").concat(Jn):""].filter(function(rr){return-1===To.classes.indexOf(rr)}).filter(function(rr){return""!==rr||!!rr}).concat(To.classes).join(" "),ps={children:[],attributes:b(b({},To.attributes),{},{"data-prefix":bn,"data-icon":Jn,class:ns,role:To.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ts," ").concat(zs)})},Rr=es&&!~To.classes.indexOf("fa-fw")?{width:"".concat(ts/zs*16*.0625,"em")}:{};sa&&(ps.attributes[_n]=""),wi&&(ps.children.push({tag:"title",attributes:{id:ps.attributes["aria-labelledby"]||"title-".concat(xo||he())},children:[wi]}),delete ps.attributes.title);var Ks=b(b({},ps),{},{prefix:bn,iconName:Jn,main:Ze,mask:tn,maskId:vo,transform:Qn,symbol:yi,styles:b(b({},Rr),To.styles)}),Lc=tn.found&&Ze.found?Gs("generateAbstractMask",Ks)||{children:[],attributes:{}}:Gs("generateAbstractIcon",Ks)||{children:[],attributes:{}},Fd=Lc.attributes;return Ks.children=Lc.children,Ks.attributes=Fd,yi?function Rl(It){var Ze=It.iconName,tn=It.children,bn=It.attributes,Jn=It.symbol,Qn=!0===Jn?"".concat(It.prefix,"-").concat(Lt.cssPrefix,"-").concat(Ze):Jn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:b(b({},bn),{},{id:Qn}),children:tn}]}]}(Ks):function Iu(It){var ce=It.children,Ze=It.main,tn=It.mask,bn=It.attributes,Jn=It.styles,Qn=It.transform;if(mn(Qn)&&Ze.found&&!tn.found){var vo={x:Ze.width/Ze.height/2,y:.5};bn.style=_o(b(b({},Jn),{},{"transform-origin":"".concat(vo.x+Qn.x/16,"em ").concat(vo.y+Qn.y/16,"em")}))}return[{tag:"svg",attributes:bn,children:ce}]}(Ks)}function Tl(It){var ce=It.content,Ze=It.width,tn=It.height,bn=It.transform,Jn=It.title,Qn=It.extra,yi=It.watchable,wi=void 0!==yi&&yi,vo=b(b(b({},Qn.attributes),Jn?{title:Jn}:{}),{},{class:Qn.classes.join(" ")});wi&&(vo[_n]="");var xo=b({},Qn.styles);mn(bn)&&(xo.transform=function sn(It){var ce=It.transform,Ze=It.width,bn=It.height,Jn=void 0===bn?16:bn,Qn=It.startCentered,yi=void 0!==Qn&&Qn,wi="";return wi+=yi&&$e?"translate(".concat(ce.x/16-(void 0===Ze?16:Ze)/2,"em, ").concat(ce.y/16-Jn/2,"em) "):yi?"translate(calc(-50% + ".concat(ce.x/16,"em), calc(-50% + ").concat(ce.y/16,"em)) "):"translate(".concat(ce.x/16,"em, ").concat(ce.y/16,"em) "),(wi+="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "))+"rotate(".concat(ce.rotate,"deg) ")}({transform:bn,startCentered:!0,width:Ze,height:tn}),xo["-webkit-transform"]=xo.transform);var To=_o(xo);To.length>0&&(vo.style=To);var va=[];return va.push({tag:"span",attributes:vo,children:[ce]}),Jn&&va.push({tag:"span",attributes:{class:"sr-only"},children:[Jn]}),va}function Ms(It){var ce=It.content,Ze=It.title,tn=It.extra,bn=b(b(b({},tn.attributes),Ze?{title:Ze}:{}),{},{class:tn.classes.join(" ")}),Jn=_o(tn.styles);Jn.length>0&&(bn.style=Jn);var Qn=[];return Qn.push({tag:"span",attributes:bn,children:[ce]}),Ze&&Qn.push({tag:"span",attributes:{class:"sr-only"},children:[Ze]}),Qn}var Yc=fr.styles;function _u(It){var ce=It[0],Ze=It[1],Jn=F(It.slice(4),1)[0];return{found:!0,width:ce,height:Ze,icon:Array.isArray(Jn)?{tag:"g",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Jn[0]}},{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Jn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Jn}}}}var Mr={found:!1,width:512,height:512};function Wa(It,ce){var Ze=ce;return"fa"===ce&&null!==Lt.styleDefault&&(ce=hc()),new Promise(function(tn,bn){if(Gs("missingIconAbstract"),"fa"===Ze){var Qn=nu(It)||{};It=Qn.iconName||It,ce=Qn.prefix||ce}if(It&&ce&&Yc[ce]&&Yc[ce][It])return tn(_u(Yc[ce][It]));(function vc(It,ce){!si&&!Lt.showMissingIcons&&It&&console.error('Icon with name "'.concat(It,'" and prefix "').concat(ce,'" is missing.'))})(It,ce),tn(b(b({},Mr),{},{icon:Lt.showMissingIcons&&It&&Gs("missingIconAbstract")||{}}))})}var pr=function(){},Bc=Lt.measurePerformance&&be&&be.mark&&be.measure?be:{mark:pr,measure:pr},vs='FA "6.2.1"',Hl_begin=function(ce){return Bc.mark("".concat(vs," ").concat(ce," begins")),function(){return function(ce){Bc.mark("".concat(vs," ").concat(ce," ends")),Bc.measure("".concat(vs," ").concat(ce),"".concat(vs," ").concat(ce," begins"),"".concat(vs," ").concat(ce," ends"))}(ce)}},ks=function(){};function Rs(It){return"string"==typeof(It.getAttribute?It.getAttribute(_n):null)}function Js(It){return Gt.createElementNS("http://www.w3.org/2000/svg",It)}function dc(It){return Gt.createElement(It)}function Qs(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ze=ce.ceFn,tn=void 0===Ze?"svg"===It.tag?Js:dc:Ze;if("string"==typeof It)return Gt.createTextNode(It);var bn=tn(It.tag);Object.keys(It.attributes||[]).forEach(function(Qn){bn.setAttribute(Qn,It.attributes[Qn])});var Jn=It.children||[];return Jn.forEach(function(Qn){bn.appendChild(Qs(Qn,{ceFn:tn}))}),bn}var ra={replace:function(ce){var Ze=ce[0];if(Ze.parentNode)if(ce[1].forEach(function(bn){Ze.parentNode.insertBefore(Qs(bn),Ze)}),null===Ze.getAttribute(_n)&&Lt.keepOriginalSource){var tn=Gt.createComment(function Fr(It){var ce=" ".concat(It.outerHTML," ");return"".concat(ce,"Font Awesome fontawesome.com ")}(Ze));Ze.parentNode.replaceChild(tn,Ze)}else Ze.remove()},nest:function(ce){var Ze=ce[0],tn=ce[1];if(~En(Ze).indexOf(Lt.replacementClass))return ra.replace(ce);var bn=new RegExp("".concat(Lt.cssPrefix,"-.*"));if(delete tn[0].attributes.id,tn[0].attributes.class){var Jn=tn[0].attributes.class.split(" ").reduce(function(yi,wi){return wi===Lt.replacementClass||wi.match(bn)?yi.toSvg.push(wi):yi.toNode.push(wi),yi},{toNode:[],toSvg:[]});tn[0].attributes.class=Jn.toSvg.join(" "),0===Jn.toNode.length?Ze.removeAttribute("class"):Ze.setAttribute("class",Jn.toNode.join(" "))}var Qn=tn.map(function(yi){return dn(yi)}).join("\n");Ze.setAttribute(_n,""),Ze.innerHTML=Qn}};function pc(It){It()}function br(It,ce){var Ze="function"==typeof ce?ce:ks;if(0===It.length)Ze();else{var tn=pc;"async"===Lt.mutateApproach&&(tn=se.requestAnimationFrame||pc),tn(function(){var bn=function Hs(){return!0===Lt.autoReplaceSvg?ra.replace:ra[Lt.autoReplaceSvg]||ra.replace}(),Jn=Hl_begin("mutate");It.map(bn),Jn(),Ze()})}}var Gr=!1;function Vc(){Gr=!0}function rl(){Gr=!1}var Cc=null;function Ed(It){if(ve&&Lt.observeMutations){var ce=It.treeCallback,Ze=void 0===ce?ks:ce,tn=It.nodeCallback,bn=void 0===tn?ks:tn,Jn=It.pseudoElementsCallback,Qn=void 0===Jn?ks:Jn,yi=It.observeMutationsRoot,wi=void 0===yi?Gt:yi;Cc=new ve(function(vo){if(!Gr){var xo=hc();Re(vo).forEach(function(To){if("childList"===To.type&&To.addedNodes.length>0&&!Rs(To.addedNodes[0])&&(Lt.searchPseudoElements&&Qn(To.target),Ze(To.target)),"attributes"===To.type&&To.target.parentNode&&Lt.searchPseudoElements&&Qn(To.target.parentNode),"attributes"===To.type&&Rs(To.target)&&~fi.indexOf(To.attributeName))if("class"===To.attributeName&&function bs(It){var ce=It.getAttribute?It.getAttribute(we):null,Ze=It.getAttribute?It.getAttribute(un):null;return ce&&Ze}(To.target)){var va=Bs(En(To.target)),ha=va.iconName;To.target.setAttribute(we,va.prefix||xo),ha&&To.target.setAttribute(un,ha)}else(function ds(It){return It&&It.classList&&It.classList.contains&&It.classList.contains(Lt.replacementClass)})(To.target)&&bn(To.target)})}}),qe&&Cc.observe(wi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Bi(It){var ce=It.getAttribute("style"),Ze=[];return ce&&(Ze=ce.split(";").reduce(function(tn,bn){var Jn=bn.split(":"),Qn=Jn[0],yi=Jn.slice(1);return Qn&&yi.length>0&&(tn[Qn]=yi.join(":").trim()),tn},{})),Ze}function Pa(It){var ce=It.getAttribute("data-prefix"),Ze=It.getAttribute("data-icon"),tn=void 0!==It.innerText?It.innerText.trim():"",bn=Bs(En(It));return bn.prefix||(bn.prefix=hc()),ce&&Ze&&(bn.prefix=ce,bn.iconName=Ze),bn.iconName&&bn.prefix||(bn.prefix&&tn.length>0&&(bn.iconName=function s1(It,ce){return(Er[It]||{})[ce]}(bn.prefix,It.innerText)||qs(bn.prefix,Be(It.innerText))),!bn.iconName&&Lt.autoFetchSvg&&It.firstChild&&It.firstChild.nodeType===Node.TEXT_NODE&&(bn.iconName=It.firstChild.data)),bn}function hu(It){var ce=Re(It.attributes).reduce(function(bn,Jn){return"class"!==bn.name&&"style"!==bn.name&&(bn[Jn.name]=Jn.value),bn},{}),Ze=It.getAttribute("title"),tn=It.getAttribute("data-fa-title-id");return Lt.autoA11y&&(Ze?ce["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(tn||he()):(ce["aria-hidden"]="true",ce.focusable="false")),ce}function kr(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Ze=Pa(It),tn=Ze.iconName,bn=Ze.prefix,Jn=Ze.rest,Qn=hu(It),yi=js("parseNodeAttributes",{},It),wi=ce.styleParser?Bi(It):[];return b({iconName:tn,title:It.getAttribute("title"),titleId:It.getAttribute("data-fa-title-id"),prefix:bn,transform:Xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Jn,styles:wi,attributes:Qn}},yi)}var pe=fr.styles;function ee(It){var ce="nest"===Lt.autoReplaceSvg?kr(It,{styleParser:!1}):kr(It);return~ce.extra.classes.indexOf(Dn)?Gs("generateLayersText",It,ce):Gs("generateSvgReplacementMutation",It,ce)}var qt=new Set;function rt(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!qe)return Promise.resolve();var Ze=Gt.documentElement.classList,tn=function(To){return Ze.add("".concat(Un,"-").concat(To))},bn=function(To){return Ze.remove("".concat(Un,"-").concat(To))},Jn=Lt.autoFetchSvg?qt:lt.map(function(xo){return"fa-".concat(xo)}).concat(Object.keys(pe));Jn.includes("fa")||Jn.push("fa");var Qn=[".".concat(Dn,":not([").concat(_n,"])")].concat(Jn.map(function(xo){return".".concat(xo,":not([").concat(_n,"])")})).join(", ");if(0===Qn.length)return Promise.resolve();var yi=[];try{yi=Re(It.querySelectorAll(Qn))}catch{}if(!(yi.length>0))return Promise.resolve();tn("pending"),bn("complete");var wi=Hl_begin("onTree"),vo=yi.reduce(function(xo,To){try{var va=ee(To);va&&xo.push(va)}catch(sa){si||"MissingIcon"===sa.name&&console.error(sa)}return xo},[]);return new Promise(function(xo,To){Promise.all(vo).then(function(va){br(va,function(){tn("active"),tn("complete"),bn("pending"),"function"==typeof ce&&ce(),wi(),xo()})}).catch(function(va){wi(),To(va)})})}function ki(It){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ee(It).then(function(Ze){Ze&&br([Ze],ce)})}lt.map(function(It){qt.add("fa-".concat(It))}),Object.keys(kt[Ke]).map(qt.add.bind(qt)),Object.keys(kt[ne]).map(qt.add.bind(qt)),qt=z(qt);var La=function(ce){var Ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Ze.transform,bn=void 0===tn?Xe:tn,Jn=Ze.symbol,Qn=void 0!==Jn&&Jn,yi=Ze.mask,wi=void 0===yi?null:yi,vo=Ze.maskId,xo=void 0===vo?null:vo,To=Ze.title,va=void 0===To?null:To,sa=Ze.titleId,ha=void 0===sa?null:sa,ts=Ze.classes,zs=void 0===ts?[]:ts,es=Ze.attributes,ns=void 0===es?{}:es,ps=Ze.styles,Rr=void 0===ps?{}:ps;if(ce){var Ks=ce.prefix,Lc=ce.iconName,is=ce.icon;return uc(b({type:"icon"},ce),function(){return yl("beforeDOMElementCreation",{iconDefinition:ce,params:Ze}),Lt.autoA11y&&(va?ns["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(ha||he()):(ns["aria-hidden"]="true",ns.focusable="false")),gc({icons:{main:_u(is),mask:wi?_u(wi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Ks,iconName:Lc,transform:b(b({},Xe),bn),symbol:Qn,title:va,maskId:xo,titleId:ha,extra:{attributes:ns,styles:Rr,classes:zs}})})}},jc={mixout:function(){return{icon:(It=La,function(ce){var Ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=(ce||{}).icon?ce:zc(ce||{}),bn=Ze.mask;return bn&&(bn=(bn||{}).icon?bn:zc(bn||{})),It(tn,b(b({},Ze),{},{mask:bn}))})};var It},hooks:function(){return{mutationObserverCallbacks:function(Ze){return Ze.treeCallback=rt,Ze.nodeCallback=ki,Ze}}},provides:function(ce){ce.i2svg=function(Ze){var tn=Ze.node,Jn=Ze.callback;return rt(void 0===tn?Gt:tn,void 0===Jn?function(){}:Jn)},ce.generateSvgReplacementMutation=function(Ze,tn){var bn=tn.iconName,Jn=tn.title,Qn=tn.titleId,yi=tn.prefix,wi=tn.transform,vo=tn.symbol,xo=tn.mask,To=tn.maskId,va=tn.extra;return new Promise(function(sa,ha){Promise.all([Wa(bn,yi),xo.iconName?Wa(xo.iconName,xo.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ts){var zs=F(ts,2);sa([Ze,gc({icons:{main:zs[0],mask:zs[1]},prefix:yi,iconName:bn,transform:wi,symbol:vo,maskId:To,title:Jn,titleId:Qn,extra:va,watchable:!0})])}).catch(ha)})},ce.generateAbstractIcon=function(Ze){var vo,tn=Ze.children,bn=Ze.attributes,Jn=Ze.main,Qn=Ze.transform,wi=_o(Ze.styles);return wi.length>0&&(bn.style=wi),mn(Qn)&&(vo=Gs("generateAbstractTransformGrouping",{main:Jn,transform:Qn,containerWidth:Jn.width,iconWidth:Jn.width})),tn.push(vo||Jn.icon),{children:tn,attributes:bn}}}},Pc={mixout:function(){return{layer:function(Ze){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=tn.classes,Jn=void 0===bn?[]:bn;return uc({type:"layer"},function(){yl("beforeDOMElementCreation",{assembler:Ze,params:tn});var Qn=[];return Ze(function(yi){Array.isArray(yi)?yi.map(function(wi){Qn=Qn.concat(wi.abstract)}):Qn=Qn.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(Lt.cssPrefix,"-layers")].concat(z(Jn)).join(" ")},children:Qn}]})}}}},Ir={mixout:function(){return{counter:function(Ze){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=tn.title,Jn=void 0===bn?null:bn,Qn=tn.classes,yi=void 0===Qn?[]:Qn,wi=tn.attributes,vo=void 0===wi?{}:wi,xo=tn.styles,To=void 0===xo?{}:xo;return uc({type:"counter",content:Ze},function(){return yl("beforeDOMElementCreation",{content:Ze,params:tn}),Ms({content:Ze.toString(),title:Jn,extra:{attributes:vo,styles:To,classes:["".concat(Lt.cssPrefix,"-layers-counter")].concat(z(yi))}})})}}}},Nr={mixout:function(){return{text:function(Ze){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},bn=tn.transform,Jn=void 0===bn?Xe:bn,Qn=tn.title,yi=void 0===Qn?null:Qn,wi=tn.classes,vo=void 0===wi?[]:wi,xo=tn.attributes,To=void 0===xo?{}:xo,va=tn.styles,sa=void 0===va?{}:va;return uc({type:"text",content:Ze},function(){return yl("beforeDOMElementCreation",{content:Ze,params:tn}),Tl({content:Ze,transform:b(b({},Xe),Jn),title:yi,extra:{attributes:To,styles:sa,classes:["".concat(Lt.cssPrefix,"-layers-text")].concat(z(vo))}})})}}},provides:function(ce){ce.generateLayersText=function(Ze,tn){var bn=tn.title,Jn=tn.transform,Qn=tn.extra,yi=null,wi=null;if($e){var vo=parseInt(getComputedStyle(Ze).fontSize,10),xo=Ze.getBoundingClientRect();yi=xo.width/vo,wi=xo.height/vo}return Lt.autoA11y&&!bn&&(Qn.attributes["aria-hidden"]="true"),Promise.resolve([Ze,Tl({content:Ze.innerHTML,width:yi,height:wi,transform:Jn,title:bn,extra:Qn,watchable:!0})])}}},Nu=new RegExp('"',"ug"),tr=[1105920,1112319];function ou(It,ce){var Ze="".concat("data-fa-pseudo-element-pending").concat(ce.replace(":","-"));return new Promise(function(tn,bn){if(null!==It.getAttribute(Ze))return tn();var Qn=Re(It.children).filter(function(is){return is.getAttribute(Ae)===ce})[0],yi=se.getComputedStyle(It,ce),wi=yi.getPropertyValue("font-family").match(Sn),vo=yi.getPropertyValue("font-weight"),xo=yi.getPropertyValue("content");if(Qn&&!wi)return It.removeChild(Qn),tn();if(wi&&"none"!==xo&&""!==xo){var To=yi.getPropertyValue("content"),va=~["Sharp"].indexOf(wi[2])?ne:Ke,sa=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(wi[2])?Jt[va][wi[2].toLowerCase()]:mi[va][vo],ha=function wl(It){var ce=It.replace(Nu,""),Ze=function Rn(It,ce){var bn,Ze=It.length,tn=It.charCodeAt(ce);return tn>=55296&&tn<=56319&&Ze>ce+1&&(bn=It.charCodeAt(ce+1))>=56320&&bn<=57343?1024*(tn-55296)+bn-56320+65536:tn}(ce,0),tn=Ze>=tr[0]&&Ze<=tr[1],bn=2===ce.length&&ce[0]===ce[1];return{value:Be(bn?ce[0]:ce),isSecondary:tn||bn}}(To),ts=ha.value,zs=ha.isSecondary,es=wi[0].startsWith("FontAwesome"),ns=qs(sa,ts),ps=ns;if(es){var Rr=function c1(It){var ce=al[It],Ze=qs("fas",It);return ce||(Ze?{prefix:"fas",iconName:Ze}:null)||{prefix:null,iconName:null}}(ts);Rr.iconName&&Rr.prefix&&(ns=Rr.iconName,sa=Rr.prefix)}if(!ns||zs||Qn&&Qn.getAttribute(we)===sa&&Qn.getAttribute(un)===ps)tn();else{It.setAttribute(Ze,ps),Qn&&It.removeChild(Qn);var Ks=function Ws(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Lc=Ks.extra;Lc.attributes[Ae]=ce,Wa(ns,sa).then(function(is){var Fd=gc(b(b({},Ks),{},{icons:{main:is,mask:{prefix:null,iconName:null,rest:[]}},prefix:sa,iconName:ps,extra:Lc,watchable:!0})),rr=Gt.createElement("svg");"::before"===ce?It.insertBefore(rr,It.firstChild):It.appendChild(rr),rr.outerHTML=Fd.map(function(sr){return dn(sr)}).join("\n"),It.removeAttribute(Ze),tn()}).catch(bn)}}else tn()})}function qu(It){return Promise.all([ou(It,"::before"),ou(It,"::after")])}function Jp(It){return!(It.parentNode===document.head||~vi.indexOf(It.tagName.toUpperCase())||It.getAttribute(Ae)||It.parentNode&&"svg"===It.parentNode.tagName)}function l1(It){if(qe)return new Promise(function(ce,Ze){var tn=Re(It.querySelectorAll("*")).filter(Jp).map(qu),bn=Hl_begin("searchPseudoElements");Vc(),Promise.all(tn).then(function(){bn(),rl(),ce()}).catch(function(){bn(),rl(),Ze()})})}var Sc=!1,Ul=function(ce){return ce.toLowerCase().split(" ").reduce(function(tn,bn){var Jn=bn.toLowerCase().split("-"),Qn=Jn[0],yi=Jn.slice(1).join("-");if(Qn&&"h"===yi)return tn.flipX=!0,tn;if(Qn&&"v"===yi)return tn.flipY=!0,tn;if(yi=parseFloat(yi),isNaN(yi))return tn;switch(Qn){case"grow":tn.size=tn.size+yi;break;case"shrink":tn.size=tn.size-yi;break;case"left":tn.x=tn.x-yi;break;case"right":tn.x=tn.x+yi;break;case"up":tn.y=tn.y-yi;break;case"down":tn.y=tn.y+yi;break;case"rotate":tn.rotate=tn.rotate+yi}return tn},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Zl={x:0,y:0,width:"100%",height:"100%"};function cl(It){var ce=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return It.attributes&&(It.attributes.fill||ce)&&(It.attributes.fill="black"),It}!function Il(It,ce){var Ze=ce.mixoutsTo;Hc=It,Vs={},Object.keys(Al).forEach(function(tn){-1===pd.indexOf(tn)&&delete Al[tn]}),Hc.forEach(function(tn){var bn=tn.mixout?tn.mixout():{};if(Object.keys(bn).forEach(function(Qn){"function"==typeof bn[Qn]&&(Ze[Qn]=bn[Qn]),"object"===T(bn[Qn])&&Object.keys(bn[Qn]).forEach(function(yi){Ze[Qn]||(Ze[Qn]={}),Ze[Qn][yi]=bn[Qn][yi]})}),tn.hooks){var Jn=tn.hooks();Object.keys(Jn).forEach(function(Qn){Vs[Qn]||(Vs[Qn]=[]),Vs[Qn].push(Jn[Qn])})}tn.provides&&tn.provides(Al)})}([ua,jc,Pc,Ir,Nr,{hooks:function(){return{mutationObserverCallbacks:function(Ze){return Ze.pseudoElementsCallback=l1,Ze}}},provides:function(ce){ce.pseudoElements2svg=function(Ze){var tn=Ze.node;Lt.searchPseudoElements&&l1(void 0===tn?Gt:tn)}}},{mixout:function(){return{dom:{unwatch:function(){Vc(),Sc=!0}}}},hooks:function(){return{bootstrap:function(){Ed(js("mutationObserverCallbacks",{}))},noAuto:function(){!function fu(){!Cc||Cc.disconnect()}()},watch:function(Ze){var tn=Ze.observeMutationsRoot;Sc?rl():Ed(js("mutationObserverCallbacks",{observeMutationsRoot:tn}))}}}},{mixout:function(){return{parse:{transform:function(Ze){return Ul(Ze)}}}},hooks:function(){return{parseNodeAttributes:function(Ze,tn){var bn=tn.getAttribute("data-fa-transform");return bn&&(Ze.transform=Ul(bn)),Ze}}},provides:function(ce){ce.generateAbstractTransformGrouping=function(Ze){var tn=Ze.main,bn=Ze.transform,Qn=Ze.iconWidth,yi={transform:"translate(".concat(Ze.containerWidth/2," 256)")},wi="translate(".concat(32*bn.x,", ").concat(32*bn.y,") "),vo="scale(".concat(bn.size/16*(bn.flipX?-1:1),", ").concat(bn.size/16*(bn.flipY?-1:1),") "),xo="rotate(".concat(bn.rotate," 0 0)"),sa={outer:yi,inner:{transform:"".concat(wi," ").concat(vo," ").concat(xo)},path:{transform:"translate(".concat(Qn/2*-1," -256)")}};return{tag:"g",attributes:b({},sa.outer),children:[{tag:"g",attributes:b({},sa.inner),children:[{tag:tn.icon.tag,children:tn.icon.children,attributes:b(b({},tn.icon.attributes),sa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Ze,tn){var bn=tn.getAttribute("data-fa-mask"),Jn=bn?Bs(bn.split(" ").map(function(Qn){return Qn.trim()})):{prefix:null,iconName:null,rest:[]};return Jn.prefix||(Jn.prefix=hc()),Ze.mask=Jn,Ze.maskId=tn.getAttribute("data-fa-mask-id"),Ze}}},provides:function(ce){ce.generateAbstractMask=function(Ze){var It,tn=Ze.children,bn=Ze.attributes,Jn=Ze.main,Qn=Ze.mask,yi=Ze.maskId,xo=Jn.icon,va=Qn.icon,sa=function An(It){var ce=It.transform,tn=It.iconWidth,bn={transform:"translate(".concat(It.containerWidth/2," 256)")},Jn="translate(".concat(32*ce.x,", ").concat(32*ce.y,") "),Qn="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "),yi="rotate(".concat(ce.rotate," 0 0)");return{outer:bn,inner:{transform:"".concat(Jn," ").concat(Qn," ").concat(yi)},path:{transform:"translate(".concat(tn/2*-1," -256)")}}}({transform:Ze.transform,containerWidth:Qn.width,iconWidth:Jn.width}),ha={tag:"rect",attributes:b(b({},Zl),{},{fill:"white"})},ts=xo.children?{children:xo.children.map(cl)}:{},zs={tag:"g",attributes:b({},sa.inner),children:[cl(b({tag:xo.tag,attributes:b(b({},xo.attributes),sa.path)},ts))]},es={tag:"g",attributes:b({},sa.outer),children:[zs]},ns="mask-".concat(yi||he()),ps="clip-".concat(yi||he()),Rr={tag:"mask",attributes:b(b({},Zl),{},{id:ns,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ha,es]},Ks={tag:"defs",children:[{tag:"clipPath",attributes:{id:ps},children:(It=va,"g"===It.tag?It.children:[It])},Rr]};return tn.push(Ks,{tag:"rect",attributes:b({fill:"currentColor","clip-path":"url(#".concat(ps,")"),mask:"url(#".concat(ns,")")},Zl)}),{children:tn,attributes:bn}}}},{provides:function(ce){var Ze=!1;se.matchMedia&&(Ze=se.matchMedia("(prefers-reduced-motion: reduce)").matches),ce.missingIconAbstract=function(){var tn=[],bn={fill:"currentColor"},Jn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};tn.push({tag:"path",attributes:b(b({},bn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var Qn=b(b({},Jn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:b(b({},bn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Ze||yi.children.push({tag:"animate",attributes:b(b({},Jn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:b(b({},Qn),{},{values:"1;0;1;1;0;1;"})}),tn.push(yi),tn.push({tag:"path",attributes:b(b({},bn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Ze?[]:[{tag:"animate",attributes:b(b({},Qn),{},{values:"1;0;0;0;0;1;"})}]}),Ze||tn.push({tag:"path",attributes:b(b({},bn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:b(b({},Qn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:tn}}}},{hooks:function(){return{parseNodeAttributes:function(Ze,tn){var bn=tn.getAttribute("data-fa-symbol");return Ze.symbol=null!==bn&&(""===bn||bn),Ze}}}}],{mixoutsTo:Ro});var Ra=Ro.parse,u1=Ro.icon,Pi=v(11481);const Lo=["*"],hn=It=>{const ce={"fa-spin":It.spin,"fa-pulse":It.pulse,"fa-fw":It.fixedWidth,"fa-border":It.border,"fa-inverse":It.inverse,"fa-layers-counter":It.counter,"fa-flip-horizontal":"horizontal"===It.flip||"both"===It.flip,"fa-flip-vertical":"vertical"===It.flip||"both"===It.flip,[`fa-${It.size}`]:null!==It.size,[`fa-rotate-${It.rotate}`]:null!==It.rotate,[`fa-pull-${It.pull}`]:null!==It.pull,[`fa-stack-${It.stackItemSize}`]:null!=It.stackItemSize};return Object.keys(ce).map(Ze=>ce[Ze]?Ze:null).filter(Ze=>Ze)};let vu=(()=>{class It{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275prov=d.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})(),$s=(()=>{class It{constructor(){this.definitions={}}addIcons(...Ze){for(const tn of Ze){tn.prefix in this.definitions||(this.definitions[tn.prefix]={}),this.definitions[tn.prefix][tn.iconName]=tn;for(const bn of tn.icon[2])"string"==typeof bn&&(this.definitions[tn.prefix][bn]=tn)}}addIconPacks(...Ze){for(const tn of Ze){const bn=Object.keys(tn).map(Jn=>tn[Jn]);this.addIcons(...bn)}}getIconDefinition(Ze,tn){return Ze in this.definitions&&tn in this.definitions[Ze]?this.definitions[Ze][tn]:null}}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275prov=d.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})(),eo=(()=>{class It{constructor(){this.stackItemSize="1x"}ngOnChanges(Ze){if("size"in Ze)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275dir=d.lG2({type:It,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[d.TTD]}),It})(),_d=(()=>{class It{constructor(Ze,tn){this.renderer=Ze,this.elementRef=tn}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Ze){"size"in Ze&&(null!=Ze.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Ze.size.currentValue}`),null!=Ze.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Ze.size.previousValue}`))}}return It.\u0275fac=function(Ze){return new(Ze||It)(d.Y36(d.Qsj),d.Y36(d.SBq))},It.\u0275cmp=d.Xpm({type:It,selectors:[["fa-stack"]],inputs:{size:"size"},features:[d.TTD],ngContentSelectors:Lo,decls:1,vars:0,template:function(Ze,tn){1&Ze&&(d.F$t(),d.Hsn(0))},encapsulation:2}),It})(),Xr=(()=>{class It{constructor(Ze,tn,bn,Jn,Qn){this.sanitizer=Ze,this.config=tn,this.iconLibrary=bn,this.stackItem=Jn,this.classes=[],null!=Qn&&null==Jn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Ze){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let tn=null;if(tn=this.icon??this.config.fallbackIcon,Ze){const bn=this.findIconDefinition(tn);if(null!=bn){const Jn=this.buildParams();this.renderIcon(bn,Jn)}}}render(){this.ngOnChanges({})}findIconDefinition(Ze){const tn=((It,ce)=>(It=>void 0!==It.prefix&&void 0!==It.iconName)(It)?It:Array.isArray(It)&&2===It.length?{prefix:It[0],iconName:It[1]}:"string"==typeof It?{prefix:ce,iconName:It}:void 0)(Ze,this.config.defaultPrefix);return"icon"in tn?tn:this.iconLibrary.getIconDefinition(tn.prefix,tn.iconName)??((It=>{throw new Error(`Could not find icon with iconName=${It.iconName} and prefix=${It.prefix} in the icon library.`)})(tn),null)}buildParams(){const Ze={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},tn="string"==typeof this.transform?Ra.transform(this.transform):this.transform;return{title:this.title,transform:tn,classes:[...hn(Ze),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Ze,tn){const bn=u1(Ze,tn);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(bn.html.join("\n"))}}return It.\u0275fac=function(Ze){return new(Ze||It)(d.Y36(Pi.H7),d.Y36(vu),d.Y36($s),d.Y36(eo,8),d.Y36(_d,8))},It.\u0275cmp=d.Xpm({type:It,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ze,tn){2&Ze&&(d.Ikx("innerHTML",tn.renderedIconHTML,d.oJD),d.uIk("title",tn.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[d.TTD],decls:0,vars:0,template:function(Ze,tn){},encapsulation:2}),It})(),Ln=(()=>{class It{}return It.\u0275fac=function(Ze){return new(Ze||It)},It.\u0275mod=d.oAB({type:It}),It.\u0275inj=d.cJS({}),It})()},33231:(ot,et,v)=>{"use strict";v.d(et,{Co:()=>gn,nu:()=>_n});var d=v(29521),p=v(94650),b=v(24006),T=v(3238),t=v(59549),A=v(84385),x=v(591),U=v(21086),k=v(23426),D=v(8929),P=v(87545),F=v(24850),z=v(1059),J=v(18583),K=v(7625),at=v(72986),ct=v(92198),vt=v(22868),Dt=v(67376),Pt=v(56709),zt=v(51572),Vt=v(4859),it=v(97392),Tt=v(36895),At=v(10266);const ft=["searchSelectInput"],Et=["innerSelectSearch"];function Bt(we,un){if(1&we){const Un=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(vi){p.CHM(Un);const si=p.oxw();return p.KtG(si._emitSelectAllBooleanToParent(vi.checked))}),p.qZA()}if(2&we){const Un=p.oxw();p.Q6J("color",null==Un.matFormField?null:Un.matFormField.color)("checked",Un.toggleAllCheckboxChecked)("indeterminate",Un.toggleAllCheckboxIndeterminate)("matTooltip",Un.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Un.toggleAllCheckboxTooltipPosition)}}function Ft(we,un){1&we&&p._UZ(0,"mat-spinner",10)}function se(we,un){1&we&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Gt(we,un){if(1&we&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&we){const Un=p.oxw(2);p.Q6J("svgIcon",Un.closeSvgIcon),p.xp6(1),p.hij(" ",Un.closeSvgIcon?null:Un.closeIcon," ")}}function ve(we,un){if(1&we){const Un=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(Un);const vi=p.oxw();return p.KtG(vi._reset(!0))}),p.YNc(1,se,1,0,"ng-content",12),p.YNc(2,Gt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&we){const Un=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.clearIcon)("ngIfElse",Un)}}function be(we,un){1&we&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Le(we,un){if(1&we&&p._uU(0),2&we){const Un=p.oxw(2);p.Oqu(Un.noEntriesFoundLabel)}}function qe(we,un){if(1&we&&(p.TgZ(0,"div",15),p.YNc(1,be,1,0,"ng-content",12),p.YNc(2,Le,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&we){const Un=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.noEntriesFound)("ngIfElse",Un)}}const $e=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Xt=function(we,un){return{"mat-select-search-inner-multiple":we,"mat-select-search-inner-toggle-all":un}},Te=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ae=(()=>{class we{}return we.\u0275fac=function(Un){return new(Un||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","ngxMatSelectSearchClear",""]]}),we})();const Kt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],de=new p.OlP("mat-selectsearch-default-options");let De=(()=>{class we{}return we.\u0275fac=function(Un){return new(Un||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),we})(),_n=(()=>{class we{constructor(Un,oi,vi,si=null,Ke=null,ne){this.matSelect=Un,this.changeDetectorRef=oi,this._viewportRuler=vi,this.matOption=si,this.matFormField=Ke,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new p.vpe,this.onTouched=lt=>{},this._options$=new x.X(null),this.optionsList$=this._options$.pipe((0,P.w)(lt=>lt?lt.changes.pipe((0,F.U)(nt=>nt.toArray()),(0,z.O)(lt.toArray())):(0,U.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,F.U)(lt=>lt?lt.length:0)),this._formControl=new b.NI(""),this._showNoEntriesFound$=(0,k.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,F.U)(([lt,nt])=>this.noEntriesFoundLabel&<&&nt===this.getOptionsLengthOffset())),this._onDestroy=new D.xQ,this.applyDefaultOptions(ne)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Un){this._options$.next(Un)}get _options(){return this._options$.getValue()}applyDefaultOptions(Un){if(Un)for(const oi of Kt)Un.hasOwnProperty(oi)&&(this[oi]=Un[oi])}ngOnInit(){const Un="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Un):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Un]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Un]=!0):this.matSelect.panelClass=Un,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,J.g)(1),(0,K.R)(this._onDestroy)).subscribe(oi=>{oi?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,at.q)(1)).pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,K.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let oi=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const vi=this._options.toArray(),si=vi[this.getOptionsLengthOffset()],Ke=this.matSelect._keyManager;Ke&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(oi,si)||!Ke.activeItem||!vi.find(lt=>this.matSelect.compareWith(lt,Ke.activeItem)))&&Ke.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),oi=si})})}),this._showNoEntriesFound$.pipe((0,K.R)(this._onDestroy)).subscribe(oi=>{this.matOption&&(oi?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Un){this.toggleAll.emit(Un)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Un){(Un.key&&1===Un.key.length||Un.keyCode>=d.A&&Un.keyCode<=d.Z||Un.keyCode>=d.xE&&Un.keyCode<=d.aO||Un.keyCode===d.L_||this.preventHomeEndKeyPropagation&&(Un.keyCode===d.Sd||Un.keyCode===d.uR))&&Un.stopPropagation(),this.matSelect.multiple&&Un.key&&Un.keyCode===d.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Un.keyCode===d.hY&&this.value&&(this._reset(!0),Un.stopPropagation())}_handleKeyup(Un){if(Un.keyCode===d.LH||Un.keyCode===d.JH){const oi=this.matSelect._getAriaActiveDescendant(),vi=this._options.toArray().findIndex(si=>si.id===oi);-1!==vi&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[vi]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",oi))}}writeValue(Un){this._lastExternalInputValue=Un,this._formControl.setValue(Un),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Un){this._formControl.valueChanges.pipe((0,ct.h)(oi=>oi!==this._lastExternalInputValue),(0,vt.b)(()=>this._lastExternalInputValue=void 0),(0,K.R)(this._onDestroy)).subscribe(Un)}registerOnTouched(Un){this.onTouched=Un}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Un=this.matSelect.panel.nativeElement,oi=Un.scrollTop;this.searchSelectInput.nativeElement.focus(),Un.scrollTop=oi}_reset(Un){this._formControl.setValue(""),Un&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,K.R)(this._onDestroy)).subscribe(Un=>{let oi=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Un||!Array.isArray(Un))&&(Un=[]);const vi=this.matSelect.options.map(si=>si.value);this.previousSelectedValues.forEach(si=>{!Un.some(Ke=>this.matSelect.compareWith(Ke,si))&&!vi.some(Ke=>this.matSelect.compareWith(Ke,si))&&(Un.push(si),oi=!0)})}this.previousSelectedValues=Un,oi&&this.matSelect._onChange(Un)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Un=this.getMatOptionHeight(),oi=this.matSelect._keyManager.activeItemIndex||0,vi=(0,T.CB)(oi,this.matSelect.options,this.matSelect.optionGroups),si=(this.matOption?-1:0)+vi+oi,Ke=this.matSelect.panel.nativeElement.scrollTop,ne=this.innerSelectSearch.nativeElement.offsetHeight,lt=Math.floor((256-ne)/Un),nt=Math.round((Ke+ne)/Un)-1;nt>=si?this.matSelect.panel.nativeElement.scrollTop=si*Un:nt+lt<=si&&(this.matSelect.panel.nativeElement.scrollTop=(si+1)*Un-(256-ne))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let oi,Un=this.innerSelectSearch.nativeElement;for(;Un=Un.parentElement;)if(Un.classList.contains("mat-select-panel")){oi=Un;break}oi&&(this.innerSelectSearch.nativeElement.style.width=oi.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return we.\u0275fac=function(Un){return new(Un||we)(p.Y36(A.gD),p.Y36(p.sBO),p.Y36(Dt.rL),p.Y36(T.ey,8),p.Y36(t.KE,8),p.Y36(de,8))},we.\u0275cmp=p.Xpm({type:we,selectors:[["ngx-mat-select-search"]],contentQueries:function(Un,oi,vi){if(1&Un&&(p.Suo(vi,ae,5),p.Suo(vi,De,5)),2&Un){let si;p.iGM(si=p.CRH())&&(oi.clearIcon=si.first),p.iGM(si=p.CRH())&&(oi.noEntriesFound=si.first)}},viewQuery:function(Un,oi){if(1&Un&&(p.Gf(ft,7,p.SBq),p.Gf(Et,7,p.SBq)),2&Un){let vi;p.iGM(vi=p.CRH())&&(oi.searchSelectInput=vi.first),p.iGM(vi=p.CRH())&&(oi.innerSelectSearch=vi.first)}},hostVars:2,hostBindings:function(Un,oi){2&Un&&p.ekj("mat-select-search-inside-mat-option",oi.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[p._Bn([{provide:b.JU,useExisting:(0,p.Gpc)(()=>we),multi:!0}])],ngContentSelectors:Te,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Un,oi){1&Un&&(p.F$t($e),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Bt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(si){return oi._handleKeydown(si)})("keyup",function(si){return oi._handleKeyup(si)})("blur",function(){return oi.onBlur()}),p.qZA(),p.YNc(6,Ft,1,0,"mat-spinner",6),p.YNc(7,ve,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,qe,4,2,"div",8),p.ALo(10,"async")),2&Un&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,Xt,oi.matSelect.multiple,oi._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",oi._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",oi.type)("formControl",oi._formControl)("placeholder",oi.placeholderLabel),p.uIk("aria-label",oi.ariaLabel),p.xp6(2),p.Q6J("ngIf",oi.searching),p.xp6(1),p.Q6J("ngIf",!oi.hideClearSearchButton&&oi.value&&!oi.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,oi._showNoEntriesFound$)))},dependencies:[Pt.oG,zt.Ou,Vt.lW,it.Hw,Tt.mk,Tt.O5,At.gM,b.Fj,b.JJ,b.oH,Tt.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),we})(),gn=(()=>{class we{}return we.\u0275fac=function(Un){return new(Un||we)},we.\u0275mod=p.oAB({type:we}),we.\u0275inj=p.cJS({imports:[[Tt.ez,b.UX,Vt.ot,Pt.p9,it.Ps,zt.Cq,At.AV]]}),we})()}},ot=>{ot(ot.s=71688)}]); \ No newline at end of file diff --git a/src_app_savings_savings_module_ts.js b/src_app_savings_savings_module_ts.js index 8d9a10518a..4fb6b586f0 100644 --- a/src_app_savings_savings_module_ts.js +++ b/src_app_savings_savings_module_ts.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_savings_savings_module_ts"],{62811:(Jr,K,m)=>{m.r(K),m.d(K,{SavingsModule:()=>Yr});var l=m(83689),Q=m(13450),t=m(94650),h=m(65412),T=m(4859);const bt=function(){return{confirm:!0}};let Zt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-calculate-interest-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Calculate Interest"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to calculate interest ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,bt)))},dependencies:[T.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();var U=m(49274);const Ot=function(){return{confirm:!0}};let Pt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"labels.heading.Post Interest")),t.xp6(6),t.hij("",t.lcZ(8,7,"labels.text.Are you sure you want to post interest")," ?"),t.xp6(7),t.Oqu(t.lcZ(15,9,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(13,Ot)),t.xp6(1),t.Oqu(t.lcZ(19,11,"labels.buttons.Confirm")))},dependencies:[T.lW,h.ZT,h.uh,h.xY,h.H8,U.X$]}),n})();const Mt=function(){return{confirm:!0}};let tt=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(1),t.hij("",a.data.isEnable?"Enable":"Disable"," Withhold Tax"),t.xp6(5),t.hij("Are you sure you want to ",a.data.isEnable?"enable":"disable"," withhold tax for this account ?"),t.xp6(8),t.s9C("color",a.data.isEnable?"accent":"warn"),t.Q6J("mat-dialog-close",t.DdM(4,Mt)))},dependencies:[T.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();class yt{constructor(o,e){this.setOptions(o),this.setButtons(o,e)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(o,e){switch(o){case"Active":this.buttonsArray=[],e.block?this.buttonsArray=[{name:"Unblock Account",icon:"lock-open",taskPermissionName:"UNBLOCK_SAVINGSACCOUNT"}]:(e.blockCredit?this.buttonsArray.push({name:"Unblock Deposit",icon:"lock-open",taskPermissionName:"UNBLOCKDEPOSIT_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_SAVINGSACCOUNT"},{name:"Block Deposit",icon:"lock",taskPermissionName:"BLOCKDEPOSIT_SAVINGSACCOUNT"}),e.blockDebit?this.buttonsArray.push({name:"Unblock Withdrawal",icon:"lock-open",taskPermissionName:"UNBLOCKWITHDRAWAL_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Withdrawal",icon:"arrow-down",taskPermissionName:"WITHDRAWAL_SAVINGSACCOUNT"},{name:"Block Withdrawal",icon:"lock",taskPermissionName:"BLOCKWITHDRAWAL_SAVINGSACCOUNT"}),this.buttonsArray=this.buttonsArray.concat([{name:"Block Account",icon:"lock",taskPermissionName:"BLOCK_SAVINGSACCOUNT"},{name:"Hold Amount",icon:"lock",taskPermissionName:"HOLDAMOUNT_SAVINGSACCOUNT"},{name:"Calculate Interest",icon:"table",taskPermissionName:"CALCULATEINTEREST_SAVINGSACCOUNT"},{name:"Post Interest As On",icon:"arrow-right",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"}]));break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pen",taskPermissionName:"UPDATE_SAVINGSACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SAVINGSACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SAVINGSACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SAVINGSACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"}];break;default:this.buttonsArray=[]}}setOptions(o){switch(o){case"Active":this.optionArray=[{name:"Post Interest",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Close",taskPermissionName:"CLOSE_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SAVINGSACCOUNT"},{name:"Withdraw By Client",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Delete",taskPermissionName:"DELETE_SAVINGSACCOUNT"}];break;default:this.optionArray=[]}}addOption(o){this.optionArray.push(o)}}var St=m(89517),C=m(59349),f=m(36895),P=m(92216),u=m(1576),R=m(55829),d=m(73546),nt=m(97392),qt=m(96338),w=m(28255),G=m(3848),E=m(10266),Dt=m(15705),S=m(30998),et=m(87197);function wt(n,o){if(1&n&&(t._UZ(0,"i",23),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function It(n,o){if(1&n&&(t._UZ(0,"i",23),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function Nt(n,o){if(1&n&&(t.TgZ(0,"span",9),t._uU(1,"\n "),t._UZ(2,"mifosx-account-number",10),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("accountNo",e.savingsAccountData.clientAccountNo)}}function Ft(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table",11),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",24),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",24),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,5,"labels.heading.Account Overview")," "),t.xp6(10),t.Oqu(t.lcZ(14,7,"labels.inputs.Current Balance")),t.xp6(4),t.Oqu(t.gM2(18,9,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,14,"labels.inputs.Available Balance")),t.xp6(4),t.Oqu(t.gM2(29,16,e.savingsAccountData.summary.availableBalance,e.currency.code,"symbol-narrow","1.2-2"))}}function Lt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw();return t.KtG(c.doAction(i.name))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon",27),t._uU(3,"\n "),t._UZ(4,"fa-icon",28),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(4),t.s9C("icon",e.icon),t.xp6(4),t.hij(" ",t.lcZ(9,2,"labels.menus."+e.name)," ")}}function kt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Lt,11,4,"button",25),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function Yt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.doAction(i.name))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.menus."+e.name))}}function Jt(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Yt,3,3,"button",25),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function Qt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",29),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-menu",null,30),t._uU(8,"\n "),t.YNc(9,Jt,4,1,"span",20),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.BQk()),2&n){const e=t.MAs(7),a=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Oqu(t.lcZ(4,3,"labels.menus.More")),t.xp6(6),t.Q6J("ngForOf",a.buttonConfig.options)}}const Rt=function(){return["./notes"]};function Gt(n,o){if(1&n&&(t.TgZ(0,"a",32,39),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Rt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Notes"),"\n ")}}const Et=function(){return["./standing-instructions"]};function Bt(n,o){if(1&n&&(t.TgZ(0,"a",32,41),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Et))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Standing Instructions"),"\n ")}}function Ht(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Bt,4,6,"a",40),t._uU(3,"\n "),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.clientId)}}const jt=function(n){return["./datatables",n]};function zt(n,o){if(1&n&&(t.TgZ(0,"a",32,42),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,jt,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function Wt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,zt,3,5,"a",37),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const Vt=function(){return["./general"]},$t=function(){return["./transactions"]},Xt=function(){return["./charges"]},Kt=function(){return["./documents"]};function tn(n,o){if(1&n&&(t.TgZ(0,"nav",31),t._uU(1,"\n "),t.TgZ(2,"a",32,33),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"a",32,34),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"a",32,35),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"a",32,36),t._uU(19),t.ALo(20,"translate"),t.qZA(),t._uU(21,"\n "),t.YNc(22,Gt,4,6,"a",37),t._uU(23,"\n "),t.YNc(24,Ht,4,1,"ng-container",38),t._uU(25,"\n "),t.YNc(26,Wt,4,1,"ng-container",20),t._uU(27,"\n "),t.qZA()),2&n){const e=t.MAs(3),a=t.MAs(8),i=t.MAs(13),c=t.MAs(18),r=t.oxw();t.xp6(2),t.Q6J("routerLink",t.DdM(23,Vt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,15,"labels.inputs.General"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(24,$t))("active",a.isActive),t.xp6(2),t.hij("\n ",t.lcZ(10,17,"labels.inputs.Transactions"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(25,Xt))("active",i.isActive),t.xp6(2),t.hij("\n ",t.lcZ(15,19,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(26,Kt))("active",c.isActive),t.xp6(2),t.hij("\n ",t.lcZ(20,21,"labels.inputs.Savings Documents"),"\n "),t.xp6(3),t.Q6J("mifosxHasPermission","READ_SAVINGSNOTE"),t.xp6(2),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngForOf",r.savingsDatatables)}}let nn=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.savingsService=i,this.translateService=c,this.dialog=r,this.isActive=!1,this.route.data.subscribe(g=>{this.savingsAccountData=g.savingsAccountData,this.currency=this.savingsAccountData.currency,this.savingsDatatables=g.savingsDatatables}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){const e=this.savingsAccountData.status.value;this.isActive="Active"===e,this.buttonConfig=new yt(e,this.savingsAccountData.subStatus),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.buttonConfig.addOption(this.savingsAccountData.fieldOfficerId?{name:"Unassign Staff",taskPermissionName:"REMOVESAVINGSOFFICER_SAVINGSACCOUNT"}:{name:"Assign Staff",taskPermissionName:"UPDATESAVINGSOFFICER_SAVINGSACCOUNT"}),this.savingsAccountData.charges&&this.savingsAccountData.charges.forEach(c=>{"Annual fee - INR"===c.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.savingsAccountData.taxGroup&&this.buttonConfig.addOption(this.savingsAccountData.withHoldTax?{name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}:{name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"})}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}doAction(e){switch(e){case"Approve":case"Reject":case"Deposit":case"Activate":case"Close":case"Undo Approval":case"Post Interest As On":case"Assign Staff":case"Add Charge":case"Hold Amount":case"Block Account":case"Block Deposit":case"Block Withdrawal":case"Unassign Staff":case"Withdraw By Client":case"Apply Annual Fees":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Withdrawal":this.router.navigate(["actions/Withdrawal"],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSavingsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break;case"Transfer Funds":this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:{savingsId:this.savingsAccountData.id,accountType:"fromsavings"}});break;case"Unblock Account":case"Unblock Deposit":case"Unblock Withdrawal":this.unblockSavingsAccount(e)}}deleteSavingsAccount(){this.dialog.open(Q.F,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(Zt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(Pt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(tt,{data:{isEnable:!0}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(tt,{data:{isEnable:!1}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){const a=this.dialog.open(St.z,{data:{heading:this.translateService.instant("labels.heading.Savings Account"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want")+e+this.translateService.instant("this Savings Account")}});let i="unblock";"Unblock Deposit"===e&&(i="unblockCredit"),"Unblock Withdrawal"===e&&(i="unblockDebit"),a.afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,i,{}).subscribe(()=>{this.reload()})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.d),t.Y36(U.sK),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-view"]],decls:76,vars:24,consts:[[1,"account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex","60%"],["class","fa fa-stop",3,"ngClass","matTooltip",4,"ngIf"],[1,"m-l-10"],[3,"accountNo"],[1,"account-overview"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["fxFlex","auto"],["fxFlex","5%"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["mat-tab-nav-bar","","class","navigation-tabs",4,"ngIf"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["savingsDocuments","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[4,"mifosxHasPermission"],["notes","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngIf"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t.ALo(11,"translate"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",5),t._uU(16,"\n "),t.TgZ(17,"mat-card-title",6),t._uU(18,"\n "),t.TgZ(19,"div",7),t._uU(20,"\n "),t.TgZ(21,"h3"),t._uU(22,"\n "),t.YNc(23,wt,2,4,"i",8),t._uU(24,"\n "),t.YNc(25,It,2,4,"i",8),t._uU(26),t.ALo(27,"translate"),t.TgZ(28,"span",9),t._uU(29,"\n "),t._UZ(30,"mifosx-account-number",10),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"span",11),t._uU(34),t.ALo(35,"translate"),t.ALo(36,"translate"),t.YNc(37,Nt,4,1,"span",12),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.YNc(41,Ft,34,21,"div",13),t._uU(42,"\n\n "),t._UZ(43,"span",14),t._uU(44,"\n\n "),t.TgZ(45,"div",15),t._uU(46,"\n "),t.TgZ(47,"button",16),t._uU(48,"\n "),t.TgZ(49,"mat-icon",17),t._uU(50,"\n "),t._UZ(51,"fa-icon",18),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n\n "),t.TgZ(58,"mat-menu",null,19),t._uU(60,"\n "),t.YNc(61,kt,4,1,"ng-container",20),t._uU(62,"\n\n "),t.YNc(63,Qt,12,5,"ng-container",13),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"mat-card-content",21),t._uU(69,"\n\n "),t.YNc(70,tn,28,27,"nav",22),t._uU(71,"\n\n "),t._UZ(72,"router-outlet"),t._uU(73,"\n\n "),t.qZA(),t._uU(74,"\n\n"),t.qZA(),t._uU(75,"\n")),2&e){const i=t.MAs(59);t.xp6(10),t.s9C("matTooltip",t.lcZ(11,16,"tooltips.Savings Account")),t.Q6J("src","assets/images/savings_account_placeholder.png",t.LSH),t.xp6(13),t.Q6J("ngIf",!a.savingsAccountData.subStatus.block),t.xp6(2),t.Q6J("ngIf",a.savingsAccountData.subStatus.block),t.xp6(1),t.AsE("\n ",t.lcZ(27,18,"labels.inputs.Savings Product")," : ",a.savingsAccountData.savingsProductName,""),t.xp6(4),t.s9C("accountNo",a.savingsAccountData.accountNo),t.xp6(4),t.lnq("\n ",t.lcZ(35,20,"labels.text."+a.entityType)," ",t.lcZ(36,22,"labels.inputs.name"),": ",a.savingsAccountData.clientName||a.savingsAccountData.groupName,"\n "),t.xp6(3),t.Q6J("ngIf",a.savingsAccountData.clientAccountNo),t.xp6(4),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval),t.xp6(6),t.Q6J("matMenuTriggerFor",i),t.xp6(14),t.Q6J("ngForOf",a.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",a.buttonConfig.options&&!a.savingsAccountData.subStatus.block),t.xp6(7),t.Q6J("ngIf",a.isActive)}},dependencies:[f.mk,f.sg,f.O5,P.BN,u.xw,u.yH,R.oO,T.lW,d.a8,d.dk,d.C1,d.dn,d.n5,d.nc,nt.Hw,qt.Nh,w.VK,w.OP,w.p6,G.BU,G.Nj,E.gM,Dt.t,S.A,l.lC,l.yS,l.Od,f.H9,U.X$,et.F]}),n})();var s=m(24006),B=m(98739),z=m(96308),p=m(30671),b=m(73426),x=m(99639),at=m(29243),H=m(56709),q=m(35769),J=m(39122);const en=function(){return["export"]};function an(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",29),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.hideReversed())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-checkbox",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.hideAccruals())}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t._uU(10,"\n "),t.TgZ(11,"button",31),t._uU(12),t.ALo(13,"translate"),t.qZA(),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hideReversedParam),t.xp6(1),t.hij("\n ",t.lcZ(4,6,"labels.inputs.Hide Reversed"),""),t.xp6(3),t.Q6J("formControl",e.hideAccrualsParam),t.xp6(1),t.hij("\n ",t.lcZ(8,8,"labels.inputs.Hide Accruals"),""),t.xp6(4),t.Q6J("routerLink",t.DdM(12,en)),t.xp6(1),t.Oqu(t.lcZ(13,10,"labels.buttons.Export"))}}function on(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1," # "),t.qZA())}function cn(n,o){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=o.index;t.xp6(1),t.Oqu(e+1)}}function sn(n,o){1&n&&(t.TgZ(0,"th",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Id")," "))}function rn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",34),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.showTransactions(c))}),t._uU(1),t.qZA()}if(2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",e.id," ")}}function un(n,o){1&n&&(t.TgZ(0,"th",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Date")," "))}function ln(n,o){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.date)," ")}}function gn(n,o){1&n&&(t.TgZ(0,"th",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Type")," "))}function mn(n,o){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",e.transactionType.value," ")}}function _n(n,o){1&n&&(t.TgZ(0,"th",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Debit")," "))}function pn(n,o){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?t.lcZ(2,2,e.amount):"N/A"," ")}}function dn(n,o){1&n&&(t.TgZ(0,"th",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Credit")," "))}function fn(n,o){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?"N/A":t.lcZ(2,2,e.amount)," ")}}function An(n,o){1&n&&(t.TgZ(0,"th",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Balance")," "))}function hn(n,o){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.runningBalance)," ")}}function vn(n,o){1&n&&(t.TgZ(0,"th",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Cn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw().$implicit,r=t.oxw();return t.KtG(r.undoTransaction(c,i))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon"),t._UZ(3,"fa-icon",50),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8,"\n "),t.qZA()}2&n&&(t.xp6(6),t.Oqu(t.lcZ(7,1,"tooltips.Undo Transaction")))}const Tn=function(n){return[n,"reciept"]},Un=function(n){return["/","journal-entry","view",n]};function xn(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",40),t._uU(1,"\n "),t.TgZ(2,"button",41),t._uU(3,"\n "),t.TgZ(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-menu",null,42),t._uU(10,"\n "),t.TgZ(11,"button",43),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.showTransactions(c))}),t._uU(12,"\n "),t.TgZ(13,"mat-icon"),t._UZ(14,"fa-icon",44),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"span"),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,Cn,9,3,"button",45),t._uU(22," \n "),t.TgZ(23,"button",46),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(24,"\n "),t.TgZ(25,"mat-icon"),t._UZ(26,"fa-icon",47),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"span"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",48),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(34,"\n "),t.TgZ(35,"mat-icon"),t._UZ(36,"fa-icon",49),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"span"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA()}if(2&n){const e=o.$implicit,a=t.MAs(9);t.xp6(2),t.Q6J("matMenuTriggerFor",a),t.xp6(15),t.Oqu(t.lcZ(18,7,"labels.text.View Transaction")),t.xp6(4),t.Q6J("mifosxHasPermission","ADJUST_LOAN"),t.xp6(2),t.Q6J("routerLink",t.VKq(13,Tn,e.id)),t.xp6(6),t.Oqu(t.lcZ(30,9,"tooltips.View Receipts")),t.xp6(4),t.Q6J("routerLink",t.VKq(15,Un,"S"+e.id)),t.xp6(6),t.Oqu(t.lcZ(40,11,"tooltips.View Journal Entries"))}}function bn(n,o){1&n&&t._UZ(0,"tr",51)}function Zn(n,o){1&n&&t._UZ(0,"tr",52)}const On=function(){return[50,100,200]};let Pn=(()=>{class n{constructor(e,a,i,c,r,g){this.route=e,this.router=a,this.savingsService=i,this.settingsService=c,this.dialog=r,this.dateUtils=g,this.transactionsData=[],this.displayedColumns=["row","id","date","transactionType","debit","credit","balance","actions"],this.accountWithTransactions=!1,this.route.parent.parent.data.subscribe(v=>{this.transactionsData=v.savingsAccountData.transactions,this.status=v.savingsAccountData.status.value}),this.accountId=this.route.parent.parent.snapshot.params.savingAccountId}ngOnInit(){this.hideAccrualsParam=new s.p4(!1),this.hideReversedParam=new s.p4(!1),this.setTransactions()}setTransactions(){this.dataSource=new p.by(this.transactionsData),this.accountWithTransactions=this.transactionsData&&this.transactionsData.length>0,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}isDebit(e){return!0===e.withdrawal||!0===e.feeDeduction||!0===e.overdraftInterest||!0===e.withholdTax}isAccrual(e){return e.accrual||"savingsAccountTransactionType.accrual"===e.code}checkStatus(){return"Active"===this.status||"Closed"===this.status||"Transfer in progress"===this.status||"Transfer on hold"===this.status||"Premature Closed"===this.status||"Matured"===this.status}showTransactions(e){this.router.navigate(e.transfer?[`../transfer-funds/account-transfers/${e.transfer.id}`]:[e.id,"general"],{relativeTo:this.route})}routeEdit(e){e.stopPropagation()}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,!this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(!this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,a){let i=this.transactionsData;(a||e)&&(i=this.transactionsData.filter(c=>!(e&&c.reversed||a&&c.transactionType.accrual))),this.dataSource=new p.by(i),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}undoTransaction(e){this.dialog.open(at.z).afterClosed().subscribe(i=>{if(i.confirm){const c=this.settingsService.language.code,r=this.settingsService.dateFormat,g={transactionDate:this.dateUtils.parseDate(e.date),transactionAmount:0,dateFormat:r,locale:c};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",g,e.id).subscribe(()=>{this.reload()})}})}reload(){const a=this.router.url;this.router.navigateByUrl(`/clients/${this.route.parent.parent.snapshot.params.clientId}/savings-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([a]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.d),t.Y36(x.g),t.Y36(h.uw),t.Y36(b.L))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-transactions-tab"]],viewQuery:function(e,a){if(1&e&&(t.Gf(B.NW,7),t.Gf(z.YE,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first),t.iGM(i=t.CRH())&&(a.sort=i.first)}},decls:92,vars:15,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25",3,"hidden"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20","fxLayout","row","fxLayoutGap","20px",4,"ngIf"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","transactionType"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","debit"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["fxLayout","row","fxLayoutGap","20px",1,"action-button","m-b-20"],[1,"accruals",3,"formControl","click"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngClass","click"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell","",3,"ngClass"],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount",3,"ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["transactionMenu","matMenu"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",1,"account-action-button",3,"routerLink","click"],["icon","receipt","size","sm"],["mat-menu-item","",3,"routerLink","click"],["icon","table-cells","size","sm"],["icon","undo","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"h3"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.YNc(13,an,15,13,"div",4),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"table",5),t._uU(17,"\n\n "),t.ynx(18,6),t._uU(19,"\n "),t.YNc(20,on,2,0,"th",7),t._uU(21,"\n "),t.YNc(22,cn,2,1,"td",8),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,9),t._uU(26,"\n "),t.YNc(27,sn,3,3,"th",7),t._uU(28,"\n "),t.YNc(29,rn,2,2,"td",10),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,11),t._uU(33,"\n "),t.YNc(34,un,3,3,"th",12),t._uU(35,"\n "),t.YNc(36,ln,3,4,"td",13),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,14),t._uU(40,"\n "),t.YNc(41,gn,3,3,"th",15),t._uU(42,"\n "),t.YNc(43,mn,2,2,"td",13),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,16),t._uU(47,"\n "),t.YNc(48,_n,3,3,"th",17),t._uU(49,"\n "),t.YNc(50,pn,3,4,"td",18),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,19),t._uU(54,"\n "),t.YNc(55,dn,3,3,"th",17),t._uU(56,"\n "),t.YNc(57,fn,3,4,"td",18),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,20),t._uU(61,"\n "),t.YNc(62,An,3,3,"th",17),t._uU(63,"\n "),t.YNc(64,hn,3,4,"td",18),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,21),t._uU(68,"\n "),t.YNc(69,vn,3,3,"th",15),t._uU(70,"\n "),t.YNc(71,xn,44,17,"td",22),t._uU(72,"\n "),t.BQk(),t._uU(73,"\n\n "),t.YNc(74,bn,1,0,"tr",23),t._uU(75,"\n "),t.YNc(76,Zn,1,0,"tr",24),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t._UZ(79,"mat-paginator",25),t._uU(80,"\n\n "),t.qZA(),t._uU(81,"\n\n "),t.TgZ(82,"div",26),t._uU(83,"\n "),t.TgZ(84,"div",27),t._uU(85,"\n "),t._UZ(86,"i",28),t._uU(87),t.ALo(88,"translate"),t.qZA(),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n"),t.qZA(),t._uU(91,"\n")),2&e&&(t.xp6(2),t.Q6J("hidden",!a.accountWithTransactions),t.xp6(7),t.Oqu(t.lcZ(10,10,"labels.heading.All Transactions")),t.xp6(4),t.Q6J("ngIf",a.checkStatus()),t.xp6(3),t.Q6J("dataSource",a.dataSource),t.xp6(58),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSize",50)("pageSizeOptions",t.DdM(14,On)),t.xp6(3),t.Q6J("hidden",a.accountWithTransactions),t.xp6(5),t.hij("\n ",t.lcZ(88,12,"labels.text.No transaction was found"),"\n "))},dependencies:[f.mk,f.O5,P.BN,u.xw,u.SQ,u.Wh,R.oO,T.lW,H.oG,nt.Hw,w.VK,w.OP,w.p6,B.NW,z.YE,z.nU,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,s.JJ,s.oH,S.A,l.rH,U.X$,q.E,J.w],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#4461e2b3;border:1px solid #1a34a6;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var ot=m(45063);let Mn=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(a=>{this.entityDatatable=a.transactionDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-transaction-tab"]],decls:5,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Saving Account Transaction",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[ot.j]}),n})();var M=m(3238),A=m(99602),_=m(59549),I=m(39349),O=m(284),y=m(84385),W=m(90455);function yn(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Withdraw Money From Saving Account")))}function Sn(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Deposit Money To Saving Account")))}function qn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Dn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function wn(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function In(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function Nn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function Fn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function Ln(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function kn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}const Yn=function(){return["../../transactions"]};let Jn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(v=>{this.paymentTypeOptions=v.savingsAccountActionData.paymentTypeOptions}),this.transactionCommand=this.route.snapshot.params.name.toLowerCase(),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.savingAccountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,s.kI.required],transactionAmount:[0,s.kI.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.savingAccountTransactionForm.addControl("accountNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("checkNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("routingCode",new s.p4("")),this.savingAccountTransactionForm.addControl("receiptNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("bankNumber",new s.p4(""))):(this.savingAccountTransactionForm.removeControl("accountNumber"),this.savingAccountTransactionForm.removeControl("checkNumber"),this.savingAccountTransactionForm.removeControl("routingCode"),this.savingAccountTransactionForm.removeControl("receiptNumber"),this.savingAccountTransactionForm.removeControl("bankNumber"))}submit(){const e=this.savingAccountTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.savingAccountTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,this.transactionCommand,r).subscribe(g=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(b.L),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transactions"]],inputs:{currencyCode:"currencyCode"},decls:106,vars:41,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],["fxFlex","auto"],["type","number","formControlName","transactionAmount","required","","matInput","",1,"right-input"],["required","","formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,yn,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,Sn,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field",4),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(23);return t.KtG(r.open())}),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t._UZ(18,"input",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker-toggle",6),t._uU(21,"\n "),t._UZ(22,"mat-datepicker",null,7),t._uU(24,"\n "),t.YNc(25,qn,8,9,"mat-error",8),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"mat-form-field",9),t._uU(29,"\n "),t.TgZ(30,"mat-label"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"span",10),t._uU(35),t.qZA(),t._uU(36,"\n "),t._UZ(37,"span",11),t._uU(38,"\n "),t._UZ(39,"input",12),t._uU(40,"\n "),t.YNc(41,Dn,8,9,"mat-error",8),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"mat-form-field"),t._uU(45,"\n "),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.TgZ(50,"mat-select",13),t._uU(51,"\n "),t.YNc(52,wn,2,2,"mat-option",14),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"div",15),t._uU(57,"\n "),t.TgZ(58,"span",16),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(59,"\n "),t.TgZ(60,"mat-slide-toggle"),t._uU(61,"\n "),t.TgZ(62,"div",17),t._uU(63,"\n "),t.TgZ(64,"span",18),t._uU(65),t.ALo(66,"translate"),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.YNc(72,In,8,3,"mat-form-field",8),t._uU(73,"\n\n "),t.YNc(74,Nn,8,3,"mat-form-field",8),t._uU(75,"\n\n "),t.YNc(76,Fn,8,3,"mat-form-field",8),t._uU(77,"\n\n "),t.YNc(78,Ln,8,3,"mat-form-field",8),t._uU(79,"\n\n "),t.YNc(80,kn,8,3,"mat-form-field",8),t._uU(81,"\n\n "),t.TgZ(82,"mat-form-field"),t._uU(83,"\n "),t.TgZ(84,"mat-label"),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t._UZ(88,"textarea",19),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n\n "),t.TgZ(91,"mat-card-actions",20),t._uU(92,"\n "),t.TgZ(93,"button",21),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"button",22),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n\n "),t.qZA(),t._uU(102,"\n\n "),t.qZA(),t._uU(103,"\n\n "),t.qZA(),t._uU(104,"\n\n"),t.qZA(),t._uU(105,"\n")}if(2&e){const i=t.MAs(23);t.xp6(4),t.Q6J("ngIf",a.transactionType.withdrawal),t.xp6(2),t.Q6J("ngIf",a.transactionType.deposit),t.xp6(2),t.Q6J("formGroup",a.savingAccountTransactionForm),t.xp6(7),t.Oqu(t.lcZ(16,26,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(32,28,"labels.inputs.Transaction Amount")),t.xp6(4),t.Oqu(a.currencyCode),t.xp6(6),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(48,30,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.addPaymentDetailsFlag?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(66,32,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(5),t.Oqu(t.lcZ(86,34,"labels.inputs.Notes")),t.xp6(8),t.Q6J("routerLink",t.DdM(40,Yn)),t.xp6(1),t.Oqu(t.lcZ(95,36,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingAccountTransactionForm.valid),t.xp6(1),t.Oqu(t.lcZ(99,38,"labels.buttons.Submit"))}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,I.IC,O.Nt,y.gD,W.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]}),n})();function Qn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Rn=function(){return["../../"]};let Gn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSavingsAccountForm()}createApproveSavingsAccountForm(){this.approveSavingsAccountForm=this.formBuilder.group({approvedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.approveSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(this.approveSavingsAccountForm.value.approvedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-approve-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Qn,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.approveSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.approveSavingsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Rn)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.approveSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,I.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function En(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Bn=function(){return["../../"]};let Hn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSavingsAccountForm()}createRejectSavingsAccountForm(){this.rejectSavingsAccountForm=this.formBuilder.group({rejectedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.rejectSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(this.rejectSavingsAccountForm.value.rejectedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-reject-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,En,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.rejectSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.rejectSavingsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Bn)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.rejectSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,I.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function jn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const zn=function(){return["../../transactions"]};let Wn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSavingsAccountForm()}createActivateSavingsAccountForm(){this.activateSavingsAccountForm=this.formBuilder.group({activatedOnDate:["",s.kI.required]})}submit(){const e=this.activateSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(this.activateSavingsAccountForm.value.activatedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-activate-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,jn,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.activateSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.activateSavingsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,zn)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.activateSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();const Vn=function(){return["../../"]};let $n=(()=>{class n{constructor(e,a,i,c){this.formBuilder=e,this.savingsService=a,this.route=i,this.router=c,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.createUndoApprovalSavingsAccountForm()}createUndoApprovalSavingsAccountForm(){this.undoApprovalSavingsAccountForm=this.formBuilder.group({note:[""]})}submit(){const e={...this.undoApprovalSavingsAccountForm.value};this.savingsService.executeSavingsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-approval-savings-account"]],decls:32,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.undoApprovalSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,Vn)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.undoApprovalSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,_.KE,_.hX,I.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Xn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Kn=function(){return["../../"]};let te=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPostInterestSavingsAccountForm()}createPostInterestSavingsAccountForm(){this.postInterestSavingsAccountForm=this.formBuilder.group({transactionDate:["",s.kI.required]})}submit(){const e=this.postInterestSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.postInterestSavingsAccountForm.value.transactionDate,i));const r={...e,IsPostInterestAsOn:!0,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-as-on-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,Xn,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.postInterestSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.postInterestSavingsAccountForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,Kn)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.postInterestSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ne(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function ee(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Assignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ae=function(){return["../../"]};let oe=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fieldOfficerData=this.savingsAccountData.fieldOfficerOptions,this.createSavingsAssignStaffForm()}createSavingsAssignStaffForm(){this.savingsAssignStaffForm=this.formBuilder.group({toSavingsOfficerId:[""],assignmentDate:["",s.kI.required]})}submit(){const e=this.savingsAssignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(this.savingsAssignStaffForm.value.assignmentDate,i));const r={...e,fromSavingsOfficerId:"",dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-assign-staff"]],decls:54,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["fxFlex","48%"],["formControlName","toSavingsOfficerId"],[3,"value",4,"ngFor","ngForOf"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["assignmentDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",4),t._uU(17,"\n "),t.YNc(18,ne,2,2,"mat-option",5),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"mat-form-field",6),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(23,"\n "),t.TgZ(24,"mat-label"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",7),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",8),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,9),t._uU(34,"\n "),t.YNc(35,ee,8,9,"mat-error",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-card-actions",11),t._uU(41,"\n "),t.TgZ(42,"button",12),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"button",13),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n"),t.qZA(),t._uU(53,"\n")}if(2&e){const i=t.MAs(33);t.xp6(4),t.Q6J("formGroup",a.savingsAssignStaffForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.To Savings Officer")),t.xp6(5),t.Q6J("ngForOf",a.fieldOfficerData),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Assignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsAssignStaffForm.controls.assignmentDate.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,ae)),t.xp6(1),t.Oqu(t.lcZ(44,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsAssignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(48,19,"labels.buttons.Confirm"))}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.yH,M.ey,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,y.gD,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ie(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Unassignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ce=function(){return["../../"]};let se=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsUnassignStaffForm()}createSavingsUnassignStaffForm(){this.savingsUnassignStaffForm=this.formBuilder.group({unassignedDate:["",s.kI.required]})}submit(){const e=this.savingsUnassignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.unassignedDate instanceof Date&&(e.unassignedDate=this.dateUtils.formatDate(this.savingsUnassignStaffForm.value.unassignedDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-unassign-staff"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","unassignedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["unassignedDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,ie,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.savingsUnassignStaffForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Unassignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsUnassignStaffForm.controls.unassignedDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,ce)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsUnassignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function re(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ue=function(){return["../../"]};let le=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawSavingsAccountForm()}createWithdrawSavingsAccountForm(){this.withdrawSavingsAccountForm=this.formBuilder.group({withdrawnOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.withdrawSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawSavingsAccountForm.value.withdrawnOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-withdraw-by-client-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,re,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.withdrawSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.withdrawSavingsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,ue)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.withdrawSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,I.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ge(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name+" ("+e.currency.name+")","\n ")}}function me(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function _e(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function pe(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function de(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function fe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ae(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,fe,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.dueDate.hasError("required"))}}function he(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ve(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,he,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function Ce(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Te(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,_e,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,pe,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,de,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,Ae,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,ve,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,Ce,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",e.savingsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",e.savingsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeInterval"))}}const Ue=function(){return["../../transactions"]};let xe=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(v=>{this.savingsChargeOptions=v.savingsAccountActionData.chargeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsChargeForm(),this.buildDependencies()}buildDependencies(){this.savingsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(a=>{this.chargeDetails=a;const i=a.chargeTimeType.id;("Withdrawal Fee"===a.chargeTimeType.value||"Saving No Activity Fee"===a.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===a.chargeTimeType.value||"Monthly Fee"===a.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.removeControl("dueDate"):this.savingsChargeForm.addControl("dueDate",new s.p4("",s.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("feeOnMonthDay",new s.p4("",s.kI.required)):this.savingsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===i.value?this.savingsChargeForm.addControl("feeInterval",new s.p4(a.feeInterval,s.kI.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:a.amount,chargeCalculationType:a.chargeCalculationType.id,chargeTimeType:a.chargeTimeType.id})})})}createSavingsChargeForm(){this.savingsChargeForm=this.formBuilder.group({chargeId:["",s.kI.required],amount:["",s.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const e=this.savingsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const a="MMMM-dd";e.monthDayFormat=a,e.feeOnMonthDay&&(e.feeOnMonthDay=this.dateUtils.formatDate(this.savingsChargeForm.value.feeOnMonthDay,a))}else{const a=this.settingsService.dateFormat;e.dateFormat=a,e.dueDate&&(e.dueDate=this.dateUtils.formatDate(this.savingsChargeForm.value.dueDate,a))}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(b.L),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-add-charge-savings-account"]],decls:42,vars:16,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,ge,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,me,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Te,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.savingsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",a.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",a.savingsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,Ue)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,M.ey,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,y.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function be(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ze(n,o){1&n&&(t.TgZ(0,"mat-form-field",20),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transaction Amount")))}function Oe(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Pe(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",22),t._uU(7,"\n "),t.YNc(8,Oe,2,2,"mat-option",23),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",e.paymentTypeOptions)}}function Me(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function ye(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function Se(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function qe(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function De(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}function we(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.YNc(2,Ze,8,3,"mat-form-field",15),t._uU(3,"\n\n "),t.YNc(4,Pe,11,4,"mat-form-field",7),t._uU(5,"\n\n "),t.TgZ(6,"div",16),t._uU(7,"\n "),t.TgZ(8,"span",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addPaymentDetails())}),t._uU(9,"\n "),t.TgZ(10,"mat-slide-toggle"),t._uU(11,"\n "),t.TgZ(12,"div",18),t._uU(13,"\n "),t.TgZ(14,"span",19),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.YNc(22,Me,8,3,"mat-form-field",7),t._uU(23,"\n\n "),t.YNc(24,ye,8,3,"mat-form-field",7),t._uU(25,"\n\n "),t.YNc(26,Se,8,3,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,qe,8,3,"mat-form-field",7),t._uU(29,"\n\n "),t.YNc(30,De,8,3,"mat-form-field",7),t._uU(31,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.amount),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.paymentTypeId),t.xp6(8),t.Q6J("className",e.showPaymentDetails?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(16,9,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.bankNumber)}}const Ie=function(){return["../../"]};let Ne=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(v=>{this.paymentTypeOptions=v.savingsAccountActionData[0].paymentTypeOptions,this.transactionAmount=v.savingsAccountActionData[1].summary.accountBalance}),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSavingsAccountForm(),this.buildDependencies()}createCloseSavingsAccountForm(){this.closeSavingsAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required],withdrawBalance:[!1],postInterestValidationOnClosure:[!1],note:[""]})}buildDependencies(){this.closeSavingsAccountForm.get("withdrawBalance").valueChanges.subscribe(e=>{e?(this.closeSavingsAccountForm.addControl("amount",new s.p4({value:this.transactionAmount,disabled:!0})),this.closeSavingsAccountForm.addControl("paymentTypeId",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("amount"),this.closeSavingsAccountForm.removeControl("paymentTypeId"))})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.closeSavingsAccountForm.addControl("accountNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("checkNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("routingCode",new s.p4("")),this.closeSavingsAccountForm.addControl("receiptNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("bankNumber",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("accountNumber"),this.closeSavingsAccountForm.removeControl("checkNumber"),this.closeSavingsAccountForm.removeControl("routingCode"),this.closeSavingsAccountForm.removeControl("receiptNumber"),this.closeSavingsAccountForm.removeControl("bankNumber"))}submit(){const e=this.closeSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.closeSavingsAccountForm.value.closedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"close",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-close-savings-account"]],decls:61,vars:28,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["formControlName","withdrawBalance",1,"m-b-25","m-t-15"],["formControlName","postInterestValidationOnClosure"],["fxLayout","column",4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["class","m-t-20",4,"ngIf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],[1,"m-t-20"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,be,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-checkbox",8),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-checkbox",9),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n\n "),t.YNc(34,we,32,11,"div",10),t._uU(35,"\n\n "),t.TgZ(36,"mat-form-field"),t._uU(37,"\n "),t.TgZ(38,"mat-label"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n "),t._UZ(42,"textarea",11),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-card-actions",12),t._uU(48,"\n "),t.TgZ(49,"button",13),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"button",14),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n\n "),t.qZA(),t._uU(58,"\n\n "),t.qZA(),t._uU(59,"\n\n"),t.qZA(),t._uU(60,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.closeSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,15,"labels.inputs.Closed On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.closedOnDate.hasError("required")),t.xp6(4),t.hij("\n ",t.lcZ(28,17,"labels.inputs.Withdraw Balance"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(32,19,"labels.inputs.Is Interest Posting required on closure date"),"?\n "),t.xp6(3),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.withdrawBalance.value),t.xp6(5),t.Oqu(t.lcZ(40,21,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(27,Ie)),t.xp6(1),t.Oqu(t.lcZ(51,23,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.closeSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(55,25,"labels.buttons.Confirm"))}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,T.lW,d.a8,d.dn,d.hq,H.oG,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,I.IC,O.Nt,y.gD,W.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Fe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Le(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ke=function(){return["../../"]};let Ye=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplyAnnualFeesForm(),this.applyCharge()}createApplyAnnualFeesForm(){this.applyAnnualFeesForm=this.formBuilder.group({dueDate:["",s.kI.required],amount:[""]})}applyCharge(){this.savingsAccountData.charges.forEach(a=>{"Annual fee - INR"===a.name&&(this.chargeId=a.id,this.applyAnnualFeesForm.get("amount").patchValue(a.amount))})}submit(){const e=this.applyAnnualFeesForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(this.applyAnnualFeesForm.value.dueDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",r,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-apply-annual-fees-savings-account"]],decls:53,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","amount","required","","matInput",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Fe,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"input",8),t._uU(33,"\n "),t.YNc(34,Le,8,9,"mat-error",7),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-card-actions",9),t._uU(40,"\n "),t.TgZ(41,"button",10),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"button",11),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n"),t.qZA(),t._uU(52,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.applyAnnualFeesForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.Annual Fees Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.dueDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,15,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.amount.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,ke)),t.xp6(1),t.Oqu(t.lcZ(43,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.applyAnnualFeesForm.valid),t.xp6(1),t.Oqu(t.lcZ(47,19,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();var Je=m(41659);function Qe(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Hold Amount")))}function Re(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Block Savings Account")))}function Ge(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ee(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Reason")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Be(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function He(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.YNc(13,Be,8,9,"mat-error",6),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.transactionDate.hasError("required"))}}function je(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ze(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",17),t._uU(7,"\n "),t.YNc(8,je,8,9,"mat-error",6),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Transaction Amount")),t.xp6(5),t.Q6J("ngIf",e.manageSavingsAccountForm.controls.transactionAmount.hasError("required"))}}const We=function(){return["../../transactions"]};let Ve=(()=>{class n{constructor(e,a,i,c,r,g,v){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.systemService=g,this.settingsService=v,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.reasonOptions=[],this.transactionType={holdamount:!1,blockaccount:!1,blockdeposit:!1,blockwithdrawal:!1},this.transactionCommand=this.route.snapshot.params.name.toLowerCase().replaceAll(" ",""),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createManageSavingsAccountForm(),(this.transactionType.holdamount||this.transactionType.blockaccount||this.transactionType.blockdeposit||this.transactionType.blockwithdrawal)&&this.getCodeValues()}getCodeValues(){let e="SavingsTransactionFreezeReasons";this.transactionType.blockaccount?e="SavingsAccountBlockReasons":this.transactionType.blockdeposit?e="CreditTransactionFreezeReasons":this.transactionType.blockwithdrawal&&(e="DebitTransactionFreezeReasons"),this.systemService.getCodes().subscribe(a=>{a.some(i=>(i.name===e&&this.systemService.getCodeValues(i.id).subscribe(c=>(this.reasonOptions=c,!0)),!1))})}createManageSavingsAccountForm(){this.manageSavingsAccountForm=this.formBuilder.group(this.transactionType.holdamount?{reasonForBlock:["",s.kI.required],transactionDate:["",s.kI.required],transactionAmount:[0,s.kI.required]}:{reasonForBlock:["",s.kI.required]})}submit(){let e="",a={};if(this.transactionType.holdamount){const i=this.manageSavingsAccountForm.value,c=this.settingsService.language.code,r=this.settingsService.dateFormat,g=this.manageSavingsAccountForm.value.transactionDate;i.transactionDate instanceof Date&&(i.transactionDate=this.dateUtils.formatDate(g,r)),a={...i,dateFormat:r,locale:c},e="holdAmount",this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,a).subscribe(v=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else a={...this.manageSavingsAccountForm.value},e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,a).subscribe(i=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(b.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Je.o),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-manage-savings-account"]],decls:45,vars:19,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","reasonForBlock"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxFlex","",3,"click",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],["type","number","formControlName","transactionAmount","required","","matInput",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,Qe,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,Re,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field"),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"mat-select",4),t._uU(19,"\n "),t.YNc(20,Ge,2,2,"mat-option",5),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.YNc(23,Ee,8,9,"mat-error",6),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.YNc(26,He,15,8,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,ze,10,4,"mat-form-field",6),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-card-actions",8),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.TgZ(37,"button",10),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.qZA(),t._uU(43,"\n\n"),t.qZA(),t._uU(44,"\n")),2&e&&(t.xp6(4),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.blockaccount),t.xp6(2),t.Q6J("formGroup",a.manageSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(16,12,"labels.inputs.Reason")),t.xp6(5),t.Q6J("ngForOf",a.reasonOptions),t.xp6(3),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.reasonForBlock.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(5),t.Q6J("routerLink",t.DdM(18,We)),t.xp6(1),t.Oqu(t.lcZ(35,14,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.manageSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(39,16,"labels.buttons.Confirm")))},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.yH,M.ey,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,y.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,U.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function $e(n,o){1&n&&t._UZ(0,"mifosx-approve-savings-account")}function Xe(n,o){1&n&&t._UZ(0,"mifosx-reject-savings-account")}function Ke(n,o){1&n&&t._UZ(0,"mifosx-activate-savings-account")}function ta(n,o){1&n&&t._UZ(0,"mifosx-undo-approval-savings-account")}function na(n,o){1&n&&t._UZ(0,"mifosx-post-interest-as-on-savings-account")}function ea(n,o){1&n&&t._UZ(0,"mifosx-savings-account-assign-staff")}function aa(n,o){1&n&&t._UZ(0,"mifosx-savings-account-unassign-staff")}function oa(n,o){1&n&&t._UZ(0,"mifosx-withdraw-by-client-savings-account")}function ia(n,o){1&n&&t._UZ(0,"mifosx-add-charge-savings-account")}function ca(n,o){if(1&n&&t._UZ(0,"mifosx-savings-transactions",2),2&n){const e=t.oxw();t.Q6J("currencyCode",e.currencyCode)}}function sa(n,o){1&n&&t._UZ(0,"mifosx-close-savings-account")}function ra(n,o){1&n&&t._UZ(0,"mifosx-apply-annual-fees-savings-account")}function ua(n,o){1&n&&t._UZ(0,"mifosx-manage-savings-account")}let la=(()=>{class n{constructor(e){this.route=e,this.actions={Approve:!1,Reject:!1,Withdrawal:!1,Deposit:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Post Interest As On":!1,"Assign Staff":!1,"Add Charge":!1,"Unassign Staff":!1,"Withdraw By Client":!1,"Apply Annual Fees":!1,"Hold Amount":!1,"Block Account":!1,"Unblock Account":!1,"Block Deposit":!1,"Unblock Deposit":!1,"Block Withdrawal":!1,"Unblock Withdrawal":!1},this.route.data.subscribe(i=>{i.savingsAccountActionData&&(this.currencyCode=i.savingsAccountActionData.currency.code)}),this.actions[this.route.snapshot.params.name]=!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-saving-account-actions"]],decls:26,vars:13,consts:[[4,"ngIf"],[3,"currencyCode",4,"ngIf"],[3,"currencyCode"]],template:function(e,a){1&e&&(t.YNc(0,$e,1,0,"mifosx-approve-savings-account",0),t._uU(1,"\n"),t.YNc(2,Xe,1,0,"mifosx-reject-savings-account",0),t._uU(3,"\n"),t.YNc(4,Ke,1,0,"mifosx-activate-savings-account",0),t._uU(5,"\n"),t.YNc(6,ta,1,0,"mifosx-undo-approval-savings-account",0),t._uU(7,"\n"),t.YNc(8,na,1,0,"mifosx-post-interest-as-on-savings-account",0),t._uU(9,"\n"),t.YNc(10,ea,1,0,"mifosx-savings-account-assign-staff",0),t._uU(11,"\n"),t.YNc(12,aa,1,0,"mifosx-savings-account-unassign-staff",0),t._uU(13,"\n"),t.YNc(14,oa,1,0,"mifosx-withdraw-by-client-savings-account",0),t._uU(15,"\n"),t.YNc(16,ia,1,0,"mifosx-add-charge-savings-account",0),t._uU(17,"\n"),t.YNc(18,ca,1,1,"mifosx-savings-transactions",1),t._uU(19,"\n"),t.YNc(20,sa,1,0,"mifosx-close-savings-account",0),t._uU(21,"\n"),t.YNc(22,ra,1,0,"mifosx-apply-annual-fees-savings-account",0),t._uU(23,"\n"),t.YNc(24,ua,1,0,"mifosx-manage-savings-account",0),t._uU(25,"\n")),2&e&&(t.Q6J("ngIf",a.actions.Approve),t.xp6(2),t.Q6J("ngIf",a.actions.Reject),t.xp6(2),t.Q6J("ngIf",a.actions.Activate),t.xp6(2),t.Q6J("ngIf",a.actions["Undo Approval"]),t.xp6(2),t.Q6J("ngIf",a.actions["Post Interest As On"]),t.xp6(2),t.Q6J("ngIf",a.actions["Assign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Unassign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Withdraw By Client"]),t.xp6(2),t.Q6J("ngIf",a.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",a.actions.Withdrawal||a.actions.Deposit),t.xp6(2),t.Q6J("ngIf",a.actions.Close),t.xp6(2),t.Q6J("ngIf",a.actions["Apply Annual Fees"]),t.xp6(2),t.Q6J("ngIf",a.actions["Hold Amount"]||a.actions["Block Account"]||a.actions["Block Deposit"]||a.actions["Block Withdrawal"]))},dependencies:[f.O5,Jn,Gn,Hn,Wn,$n,te,oe,se,le,xe,Ne,Ye,Ve]}),n})();var D=m(34417);const ga=function(){return{confirm:!0}};let it=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-waive-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Waive Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to waive charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,ga)))},dependencies:[T.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();const ma=function(){return{confirm:!0}};let ct=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-inactivate-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Inactivate Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to inactivate charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,ma)))},dependencies:[T.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();var N=m(68830),V=m(23107);const _a=["chargesTable"];function pa(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleCharges())}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij("\n ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges","")}}function da(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Name "),t.qZA())}function fa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function Aa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Fee/Penalty "),t.qZA())}function ha(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",!0===e.penalty?"Penalty":"Fee"," ")}}function va(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Payment Due At "),t.qZA())}function Ca(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeTimeType.value," ")}}function Ta(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Due As Of "),t.qZA())}function Ua(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.dueDate)," ")}}function xa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Repeats On (M/d) "),t.qZA())}function ba(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.feeOnMonthDay?e.feeOnMonthDay.join("/"):""," ")}}function Za(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Calculation Type "),t.qZA())}function Oa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.chargeCalculationType.value," ")}}function Pa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Due "),t.qZA())}function Ma(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ya(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Paid "),t.qZA())}function Sa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function qa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Waived "),t.qZA())}function Da(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function wa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Outstanding "),t.qZA())}function Ia(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Na(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1," Actions "),t.qZA())}function Fa(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.editCharge(c))}),t._uU(1,"\n "),t._UZ(2,"i",30),t._uU(3,"\n "),t.qZA()}}function La(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.deleteCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",32),t._uU(3,"\n "),t.qZA()}}function ka(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Fa,4,0,"button",27),t._uU(3,"\n "),t.YNc(4,La,4,0,"button",28),t._uU(5,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Ya(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.payCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",36),t._uU(3,"\n "),t.qZA()}}function Ja(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.waiveCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",38),t._uU(3,"\n "),t.qZA()}}function Qa(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(3).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.inactivateCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",41),t._uU(3,"\n "),t.qZA()}}function Ra(n,o){1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Qa,4,0,"button",39),t._uU(3,"\n "),t.BQk()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function Ga(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ya,4,0,"button",33),t._uU(3,"\n "),t.YNc(4,Ja,4,0,"button",34),t._uU(5,"\n "),t.YNc(6,Ra,4,1,"ng-container",26),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw().$implicit,a=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",a.isRecurringCharge(e))}}function Ea(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1,"\n "),t.YNc(2,ka,6,2,"span",26),t._uU(3,"\n "),t.YNc(4,Ga,8,3,"span",26),t._uU(5,"\n "),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==e.amountOutstanding)}}function Ba(n,o){1&n&&t._UZ(0,"tr",42)}const Ha=function(n){return[n]};function ja(n,o){1&n&&t._UZ(0,"tr",43),2&n&&t.Q6J("routerLink",t.VKq(1,Ha,o.$implicit.id))}let za=(()=>{class n{constructor(e,a,i,c,r,g){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=g,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountData,this.chargesData=this.savingsAccountData.charges})}ngOnInit(){const e=this.chargesData?this.chargesData.filter(a=>a.isActive):[];this.dataSource=new p.by(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){const e=this.chargesData.filter(a=>!a.isActive);this.dataSource.data=e}else{const e=this.chargesData.filter(a=>a.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){const a=[new N.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new V.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(D.E,{data:{title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const g=this.settingsService.language.code,v=this.settingsService.dateFormat,Y={...r.data.value,dueDate:this.dateUtils.formatDate(r.data.value.dueDate,v),dateFormat:v,locale:g};this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"paycharge",Y,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(it,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(ct,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){const a=[new N.M({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})];this.dialog.open(D.E,{data:{title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const Y={...r.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.savingsAccountData.id,Y,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(Q.F,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.savingsService.deleteSavingsAccountCharge(this.savingsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value}routeEdit(e){e.stopPropagation()}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.d),t.Y36(l.gz),t.Y36(b.L),t.Y36(l.F0),t.Y36(h.uw),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-charges-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(_a,7),2&e){let i;t.iGM(i=t.CRH())&&(a.chargesTableRef=i.first)}},decls:102,vars:4,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20",4,"ngIf"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Charge",1,"account-action-button",3,"click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn","matTooltip","Delete Charge",1,"account-action-button",3,"click"],[1,"fa","fa-trash"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Pay Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Waive Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Pay Charge",1,"account-action-button",3,"click"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary","matTooltip","Waive Charge",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Inactivate Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Inactivate Charge",1,"account-action-button",3,"click"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7,"All Charges"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n "),t.YNc(10,pa,5,1,"div",3),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"div",4),t._uU(14,"\n\n "),t.TgZ(15,"table",5,6),t._uU(17,"\n\n "),t.ynx(18,7),t._uU(19,"\n "),t.YNc(20,da,2,0,"th",8),t._uU(21,"\n "),t.YNc(22,fa,2,1,"td",9),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,10),t._uU(26,"\n "),t.YNc(27,Aa,2,0,"th",8),t._uU(28,"\n "),t.YNc(29,ha,2,1,"td",9),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,11),t._uU(33,"\n "),t.YNc(34,va,2,0,"th",8),t._uU(35,"\n "),t.YNc(36,Ca,2,1,"td",9),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,12),t._uU(40,"\n "),t.YNc(41,Ta,2,0,"th",8),t._uU(42,"\n "),t.YNc(43,Ua,3,3,"td",9),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,13),t._uU(47,"\n "),t.YNc(48,xa,2,0,"th",8),t._uU(49,"\n "),t.YNc(50,ba,2,1,"td",9),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,14),t._uU(54,"\n "),t.YNc(55,Za,2,0,"th",8),t._uU(56,"\n "),t.YNc(57,Oa,2,1,"td",9),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,15),t._uU(61,"\n "),t.YNc(62,Pa,2,0,"th",8),t._uU(63,"\n "),t.YNc(64,Ma,3,6,"td",9),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,16),t._uU(68,"\n "),t.YNc(69,ya,2,0,"th",8),t._uU(70,"\n "),t.YNc(71,Sa,3,6,"td",9),t._uU(72,"\n "),t.BQk(),t._uU(73,"\n\n "),t.ynx(74,17),t._uU(75,"\n "),t.YNc(76,qa,2,0,"th",8),t._uU(77,"\n "),t.YNc(78,Da,3,6,"td",9),t._uU(79,"\n "),t.BQk(),t._uU(80,"\n\n "),t.ynx(81,18),t._uU(82,"\n "),t.YNc(83,wa,2,0,"th",8),t._uU(84,"\n "),t.YNc(85,Ia,3,6,"td",9),t._uU(86,"\n "),t.BQk(),t._uU(87,"\n\n "),t.ynx(88,19),t._uU(89,"\n "),t.YNc(90,Na,2,0,"th",8),t._uU(91,"\n "),t.YNc(92,Ea,6,2,"td",9),t._uU(93,"\n "),t.BQk(),t._uU(94,"\n\n "),t.YNc(95,Ba,1,0,"tr",20),t._uU(96,"\n "),t.YNc(97,ja,1,3,"tr",21),t._uU(98,"\n\n "),t.qZA(),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n"),t.qZA(),t._uU(101,"\n")),2&e&&(t.xp6(10),t.Q6J("ngIf",a.chargesData),t.xp6(5),t.Q6J("dataSource",a.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[f.O5,u.xw,u.Wh,T.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,E.gM,S.A,l.rH,f.H9,q.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var Wa=m(35023);const Va=["instructionsTable"];function $a(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Client "),t.qZA())}function Xa(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromClient.displayName,"-",e.fromClient.id,"")}}function Ka(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," From Account "),t.qZA())}function to(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromAccount.accountNo," (",e.fromAccountType.value,")")}}function no(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Beneficiary "),t.qZA())}function eo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e.toClient.displayName)}}function ao(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," To Account "),t.qZA())}function oo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.toAccount.accountNo," (",e.toAccountType.value,")")}}function io(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Amount "),t.qZA())}function co(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.instructionType.value,"/",e.amount,"")}}function so(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Validity "),t.qZA())}function ro(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,e.validFrom)," to ",t.lcZ(3,4,e.validTill),"")}}function uo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Actions "),t.qZA())}function lo(n,o){1&n&&(t.TgZ(0,"button",21),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA())}function go(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,lo,4,0,"button",20),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function mo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,c=t.oxw();return t.KtG(c.deleteStandingInstruction(i.id))}),t._uU(1,"\n "),t._UZ(2,"i",25),t._uU(3,"\n "),t.qZA()}}function _o(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,mo,4,0,"button",23),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function po(n,o){1&n&&(t.TgZ(0,"button",26),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA())}function fo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,go,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,_o,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,po,4,0,"button",19),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Ao(n,o){1&n&&t._UZ(0,"tr",28)}function ho(n,o){1&n&&t._UZ(0,"tr",29)}let vo=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.savingsService=a,this.dialog=i,this.accountTransfersService=c,this.settingsService=r,this.dataSource=new p.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(g=>{this.savingsData=g.savingsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.savingsService.getStandingInstructions(this.savingsData.clientId,this.savingsData.clientName,this.savingsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(g=>{this.instructionsData=g.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(Q.F,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(C.d),t.Y36(h.uw),t.Y36(Wa.o),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(Va,7),2&e){let i;t.iGM(i=t.CRH())&&(a.instructionTableRef=i.first)}},decls:69,vars:3,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","View Standing Instruction",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",1,"account-action-button"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",1,"account-action-button",3,"click"],[1,"fa","fa-times"],["mat-raised-button","","color","primary","matTooltip","View Standing Instruction",1,"account-action-button"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5,"All Standing Instructions"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"table",3,4),t._uU(12,"\n\n "),t.ynx(13,5),t._uU(14,"\n "),t.YNc(15,$a,2,0,"th",6),t._uU(16,"\n "),t.YNc(17,Xa,2,2,"td",7),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t.ynx(20,8),t._uU(21,"\n "),t.YNc(22,Ka,2,0,"th",6),t._uU(23,"\n "),t.YNc(24,to,2,2,"td",7),t._uU(25,"\n "),t.BQk(),t._uU(26,"\n\n "),t.ynx(27,9),t._uU(28,"\n "),t.YNc(29,no,2,0,"th",6),t._uU(30,"\n "),t.YNc(31,eo,2,1,"td",7),t._uU(32,"\n "),t.BQk(),t._uU(33,"\n\n "),t.ynx(34,10),t._uU(35,"\n "),t.YNc(36,ao,2,0,"th",6),t._uU(37,"\n "),t.YNc(38,oo,2,2,"td",7),t._uU(39,"\n "),t.BQk(),t._uU(40,"\n\n "),t.ynx(41,11),t._uU(42,"\n "),t.YNc(43,io,2,0,"th",6),t._uU(44,"\n "),t.YNc(45,co,2,2,"td",7),t._uU(46,"\n "),t.BQk(),t._uU(47,"\n\n "),t.ynx(48,12),t._uU(49,"\n "),t.YNc(50,so,2,0,"th",6),t._uU(51,"\n "),t.YNc(52,ro,4,6,"td",7),t._uU(53,"\n "),t.BQk(),t._uU(54,"\n\n "),t.ynx(55,13),t._uU(56,"\n "),t.YNc(57,uo,2,0,"th",6),t._uU(58,"\n "),t.YNc(59,fo,8,3,"td",7),t._uU(60,"\n "),t.BQk(),t._uU(61,"\n\n "),t.YNc(62,Ao,1,0,"tr",14),t._uU(63,"\n "),t.YNc(64,ho,1,0,"tr",15),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n"),t.qZA(),t._uU(68,"\n")),2&e&&(t.xp6(10),t.Q6J("dataSource",a.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[f.O5,T.lW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,E.gM,S.A,q.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})(),Co=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("savingAccountId"),this.route.data.subscribe(a=>{this.entityDatatable=a.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[ot.j]}),n})();var Z=m(58425);function To(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.TgZ(13,"mat-error"),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.TgZ(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.inputs.Submitted On")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(6),t.AsE("\n ",t.lcZ(15,10,"labels.inputs.Submitted On")," ",t.lcZ(16,12,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(19,14,"labels.commons.required"))}}function xo(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function bo(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",17),t._uU(7,"\n "),t.YNc(8,xo,2,2,"mat-option",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Field Officer")),t.xp6(5),t.Q6J("ngForOf",e.fieldOfficerData)}}function Zo(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",18),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.External ID")))}let F=(()=>{class n{constructor(e,a,i){this.formBuilder=e,this.savingsService=a,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.savingsProductSelected=!1,this.savingsAccountProductTemplate=new t.vpe,this.createSavingsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.savingsAccountTemplate&&(this.productData=this.savingsAccountTemplate.productOptions,this.savingsAccountDetailsForm.patchValue(this.savingsAccountTemplate.savingsProductId?{productId:this.savingsAccountTemplate.savingsProductId,submittedOnDate:this.savingsAccountTemplate.timeline.submittedOnDate&&new Date(this.savingsAccountTemplate.timeline.submittedOnDate),externalId:this.savingsAccountTemplate.externalId}:{submittedOnDate:new Date}))}createSavingsAccountDetailsForm(){this.savingsAccountDetailsForm=this.formBuilder.group({productId:["",s.kI.required],submittedOnDate:["",s.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const e=this.savingsAccountTemplate.clientId||this.savingsAccountTemplate.groupId;this.savingsAccountDetailsForm.get("productId").valueChanges.subscribe(a=>{this.savingsService.getSavingsAccountTemplate(e,a,!!this.savingsAccountTemplate.groupId).subscribe(i=>{this.savingsAccountProductTemplate.emit(i),this.fieldOfficerData=i.fieldOfficerOptions,this.savingsProductSelected=!0,!this.isFieldOfficerPatched&&this.savingsAccountTemplate.fieldOfficerId?(this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue(this.savingsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get savingsAccountDetails(){return this.savingsAccountDetailsForm.getRawValue()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-details-step"]],inputs:{savingsAccountTemplate:"savingsAccountTemplate"},outputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate"},decls:47,vars:23,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,To,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,Uo,22,16,"mat-form-field",5),t._uU(26,"\n\n "),t.YNc(27,bo,11,4,"mat-form-field",6),t._uU(28,"\n\n "),t.YNc(29,Zo,8,3,"mat-form-field",6),t._uU(30,"\n\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",7),t._uU(33,"\n "),t.TgZ(34,"button",8),t._uU(35,"\n "),t._UZ(36,"fa-icon",9),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"button",10),t._uU(41),t.ALo(42,"translate"),t._UZ(43,"fa-icon",11),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n"),t.qZA()),2&e&&(t.Q6J("formGroup",a.savingsAccountDetailsForm),t.xp6(7),t.Oqu(t.lcZ(8,11,"labels.inputs.Product Name")),t.xp6(5),t.Q6J("ngForOf",a.productData),t.xp6(4),t.AsE("\n ",t.lcZ(17,13,"labels.inputs.Product Name")," ",t.lcZ(18,15,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,17,"labels.commons.required")),t.xp6(5),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(8),t.hij("\n ",t.lcZ(38,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(42,21,"labels.buttons.Next"),"\n "))},dependencies:[f.sg,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,M.ey,T.lW,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,y.gD,Z.Ic,Z.fd,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,U.X$]}),n})();var st=m(44850);function Oo(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Po(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function Mo(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function yo(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function So(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function qo(n,o){1&n&&(t.TgZ(0,"div",29),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",30),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",31),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t.TgZ(11,"mat-form-field",30),t._uU(12,"\n "),t.TgZ(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",32),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",30),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",33),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA()),2&n&&(t.xp6(5),t.Oqu(t.lcZ(6,3,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),t.xp6(9),t.Oqu(t.lcZ(15,5,"labels.inputs.Nominal Annual Interest for Overdraft")),t.xp6(9),t.Oqu(t.lcZ(24,7,"labels.inputs.Maximum Overdraft Amount Limit")))}function Do(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",34),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Balance Required for Interest Calculation")))}let L=(()=>{class n{constructor(e,a){this.formBuilder=e,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createSavingsAccountTermsForm(),this.buildDependencies()}ngOnChanges(){this.savingsAccountProductTemplate&&(this.savingsAccountTermsForm.patchValue({currencyCode:this.savingsAccountProductTemplate.currency.code,decimal:this.savingsAccountProductTemplate.currency.decimalPlaces,minBalanceForInterestCalculation:this.savingsAccountProductTemplate.minBalanceForInterestCalculation,nominalAnnualInterestRate:this.savingsAccountProductTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountProductTemplate.minRequiredOpeningBalance,allowOverdraft:this.savingsAccountProductTemplate.allowOverdraft,overdraftLimit:this.savingsAccountProductTemplate.overdraftLimit,enforceMinRequiredBalance:this.savingsAccountProductTemplate.enforceMinRequiredBalance,minOverdraftForInterestCalculation:this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,minRequiredBalance:this.savingsAccountProductTemplate.minRequiredBalance,withdrawalFeeForTransfers:this.savingsAccountProductTemplate.withdrawalFeeForTransfers}),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.savingsAccountTemplate&&this.savingsAccountTermsForm.patchValue({nominalAnnualInterestRate:this.savingsAccountTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountTemplate.minRequiredOpeningBalance,withdrawalFeeForTransfers:this.savingsAccountTemplate.withdrawalFeeForTransfers,lockinPeriodFrequency:this.savingsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingsAccountTemplate.lockinPeriodFrequencyType&&this.savingsAccountTemplate.lockinPeriodFrequencyType.id,allowOverdraft:this.savingsAccountTemplate.allowOverdraft,enforceMinRequiredBalance:this.savingsAccountTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingsAccountTemplate.minRequiredBalance})}createSavingsAccountTermsForm(){this.savingsAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],nominalAnnualInterestRate:["",s.kI.required],interestCompoundingPeriodType:["",s.kI.required],interestPostingPeriodType:["",s.kI.required],interestCalculationType:["",s.kI.required],interestCalculationDaysInYearType:["",s.kI.required],minRequiredOpeningBalance:[""],withdrawalFeeForTransfers:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowOverdraft:[!1],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.interestCompoundingPeriodTypeData=this.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions}buildDependencies(){this.savingsAccountTermsForm.get("allowOverdraft").valueChanges.subscribe(e=>{e?(this.savingsAccountTermsForm.addControl("minOverdraftForInterestCalculation",new s.p4("")),this.savingsAccountTermsForm.addControl("nominalAnnualInterestRateOverdraft",new s.p4("")),this.savingsAccountTermsForm.addControl("overdraftLimit",new s.p4(""))):(this.savingsAccountTermsForm.removeControl("minOverdraftForInterestCalculation"),this.savingsAccountTermsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingsAccountTermsForm.removeControl("overdraftLimit"))})}get savingsAccountTerms(){const e=this.savingsAccountTermsForm.getRawValue();return delete e.currencyCode,delete e.decimal,delete e.minBalanceForInterestCalculation,e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-terms-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate"},features:[t.TTD],decls:208,vars:107,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column","fxLayoutAlign.gt-sm","start center"],["fxFlex","48%"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","decimal"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required",""],["formControlName","interestCompoundingPeriodType","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["type","number","matInput","","formControlName","minRequiredOpeningBalance"],["fxFlex","48%","labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"margin-v"],["fxFlex","98%",1,"mat-h4"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],["fxFlex","98%"],["fxFlex","23%",1,"mat-h3"],["fxFlex","73%","labelPosition","before","formControlName","allowOverdraft",1,"margin-b"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column",4,"ngIf"],["fxFlex","48%","labelPosition","before","formControlName","enforceMinRequiredBalance",1,"margin-v"],["type","number","matInput","","formControlName","minRequiredBalance"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","31%"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft"],["type","number","matInput","","formControlName","overdraftLimit"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t._UZ(10,"input",3),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field",2),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t._UZ(19,"input",4),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"mat-form-field",2),t._uU(23,"\n "),t.TgZ(24,"mat-label"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",5),t._uU(29,"\n "),t.TgZ(30,"mat-error"),t._uU(31),t.ALo(32,"translate"),t.ALo(33,"translate"),t.TgZ(34,"strong"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-form-field",2),t._uU(41,"\n "),t.TgZ(42,"mat-label"),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"mat-select",6),t._uU(47,"\n "),t.YNc(48,Oo,2,2,"mat-option",7),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.TgZ(51,"mat-error"),t._uU(52),t.ALo(53,"translate"),t.ALo(54,"translate"),t.TgZ(55,"strong"),t._uU(56),t.ALo(57,"translate"),t.qZA(),t._uU(58,"\n "),t.qZA(),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n\n "),t.TgZ(61,"mat-form-field",2),t._uU(62,"\n "),t.TgZ(63,"mat-label"),t._uU(64),t.ALo(65,"translate"),t.qZA(),t._uU(66,"\n "),t.TgZ(67,"mat-select",8),t._uU(68,"\n "),t.YNc(69,Po,2,2,"mat-option",7),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n "),t.TgZ(72,"mat-error"),t._uU(73),t.ALo(74,"translate"),t.ALo(75,"translate"),t.TgZ(76,"strong"),t._uU(77),t.ALo(78,"translate"),t.qZA(),t._uU(79,"\n "),t.qZA(),t._uU(80,"\n "),t.qZA(),t._uU(81,"\n\n "),t.TgZ(82,"mat-form-field",2),t._uU(83,"\n "),t.TgZ(84,"mat-label"),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t.TgZ(88,"mat-select",9),t._uU(89,"\n "),t.YNc(90,Mo,2,2,"mat-option",7),t._uU(91,"\n "),t.qZA(),t._uU(92,"\n "),t.TgZ(93,"mat-error"),t._uU(94),t.ALo(95,"translate"),t.ALo(96,"translate"),t.TgZ(97,"strong"),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n "),t.qZA(),t._uU(102,"\n\n "),t.TgZ(103,"mat-form-field",2),t._uU(104,"\n "),t.TgZ(105,"mat-label"),t._uU(106),t.ALo(107,"translate"),t.qZA(),t._uU(108,"\n "),t.TgZ(109,"mat-select",10),t._uU(110,"\n "),t.YNc(111,yo,2,2,"mat-option",7),t._uU(112,"\n "),t.qZA(),t._uU(113,"\n "),t.TgZ(114,"mat-error"),t._uU(115),t.ALo(116,"translate"),t.ALo(117,"translate"),t.TgZ(118,"strong"),t._uU(119),t.ALo(120,"translate"),t.qZA(),t._uU(121,"\n "),t.qZA(),t._uU(122,"\n "),t.qZA(),t._uU(123,"\n\n "),t.TgZ(124,"mat-form-field",2),t._uU(125,"\n "),t.TgZ(126,"mat-label"),t._uU(127),t.ALo(128,"translate"),t.qZA(),t._uU(129,"\n "),t._UZ(130,"input",11),t._uU(131,"\n "),t.qZA(),t._uU(132,"\n\n "),t.TgZ(133,"mat-checkbox",12),t._uU(134),t.ALo(135,"translate"),t.qZA(),t._uU(136,"\n\n "),t.TgZ(137,"h4",13),t._uU(138),t.ALo(139,"translate"),t.qZA(),t._uU(140,"\n\n "),t.TgZ(141,"mat-form-field",2),t._uU(142,"\n "),t.TgZ(143,"mat-label"),t._uU(144),t.ALo(145,"translate"),t.qZA(),t._uU(146,"\n "),t._UZ(147,"input",14),t._uU(148,"\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"mat-form-field",2),t._uU(151,"\n "),t.TgZ(152,"mat-label"),t._uU(153),t.ALo(154,"translate"),t.qZA(),t._uU(155,"\n "),t.TgZ(156,"mat-select",15),t._uU(157,"\n "),t.YNc(158,So,2,2,"mat-option",7),t._uU(159,"\n "),t.qZA(),t._uU(160,"\n "),t.qZA(),t._uU(161,"\n\n "),t._UZ(162,"mat-divider",16),t._uU(163,"\n\n "),t.TgZ(164,"h3",17),t._uU(165),t.ALo(166,"translate"),t.qZA(),t._uU(167,"\n\n "),t.TgZ(168,"mat-checkbox",18),t._uU(169),t.ALo(170,"translate"),t.qZA(),t._uU(171,"\n\n "),t.YNc(172,qo,29,9,"div",19),t._uU(173,"\n\n "),t._UZ(174,"mat-divider",16),t._uU(175,"\n\n "),t.TgZ(176,"mat-checkbox",20),t._uU(177),t.ALo(178,"translate"),t.qZA(),t._uU(179,"\n\n "),t.TgZ(180,"mat-form-field",2),t._uU(181,"\n "),t.TgZ(182,"mat-label"),t._uU(183),t.ALo(184,"translate"),t.qZA(),t._uU(185,"\n "),t._UZ(186,"input",21),t._uU(187,"\n "),t.qZA(),t._uU(188,"\n\n "),t.YNc(189,Do,8,3,"mat-form-field",22),t._uU(190,"\n\n "),t.qZA(),t._uU(191,"\n\n "),t.TgZ(192,"div",23),t._uU(193,"\n "),t.TgZ(194,"button",24),t._uU(195,"\n "),t._UZ(196,"fa-icon",25),t._uU(197),t.ALo(198,"translate"),t.qZA(),t._uU(199,"\n "),t.TgZ(200,"button",26),t._uU(201),t.ALo(202,"translate"),t._UZ(203,"fa-icon",27),t._uU(204,"\n "),t.qZA(),t._uU(205,"\n "),t.qZA(),t._uU(206,"\n\n"),t.qZA(),t._uU(207,"\n")),2&e&&(t.Q6J("formGroup",a.savingsAccountTermsForm),t.xp6(7),t.Oqu(t.lcZ(8,41,"labels.inputs.Currency")),t.xp6(9),t.Oqu(t.lcZ(17,43,"labels.inputs.Decimal Places")),t.xp6(9),t.Oqu(t.lcZ(26,45,"labels.inputs.Nominal Annual Interest")),t.xp6(6),t.AsE("\n ",t.lcZ(32,47,"labels.inputs.Nominal Annual Interest")," ",t.lcZ(33,49,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(36,51,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(44,53,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Q6J("ngForOf",a.interestCompoundingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(53,55,"labels.inputs.Interest Compounding Period")," ",t.lcZ(54,57,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(57,59,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(65,61,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Q6J("ngForOf",a.interestPostingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(74,63,"labels.inputs.Interest Posting Period")," ",t.lcZ(75,65,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(78,67,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(86,69,"labels.inputs.Interest Calculated using")),t.xp6(5),t.Q6J("ngForOf",a.interestCalculationTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(95,71,"labels.inputs.Interest Calculated using")," ",t.lcZ(96,73,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(99,75,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(107,77,"labels.inputs.Days in Year")),t.xp6(5),t.Q6J("ngForOf",a.interestCalculationDaysInYearTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(116,79,"labels.inputs.Days in Year")," ",t.lcZ(117,81,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(120,83,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(128,85,"labels.inputs.Minimum Opening Balance")),t.xp6(7),t.hij("\n ",t.lcZ(135,87,"labels.inputs.Apply Withdrawal Fee for Transfers"),"\n "),t.xp6(4),t.Oqu(t.lcZ(139,89,"labels.inputs.Lock-in Period")),t.xp6(6),t.Oqu(t.lcZ(145,91,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(154,93,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",a.lockinPeriodFrequencyTypeData),t.xp6(7),t.Oqu(t.lcZ(166,95,"labels.inputs.Overdraft")),t.xp6(4),t.hij("\n ",t.lcZ(170,97,"labels.inputs.Is Overdraft Allowed"),"\n "),t.xp6(3),t.Q6J("ngIf",a.savingsAccountTermsForm.value.allowOverdraft),t.xp6(5),t.hij("\n ",t.lcZ(178,99,"labels.inputs.Enforce Minimum Balance"),"\n "),t.xp6(6),t.Oqu(t.lcZ(184,101,"labels.inputs.Minimum Balance")),t.xp6(6),t.Q6J("ngIf",a.savingsAccountTermsForm.controls.minBalanceForInterestCalculation.value),t.xp6(8),t.hij("\n ",t.lcZ(198,103,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(202,105,"labels.buttons.Next"),"\n "))},dependencies:[f.sg,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,T.lW,H.oG,st.d,_.TO,_.KE,_.hX,O.Nt,y.gD,Z.Ic,Z.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,U.X$],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var wo=m(63613);function Io(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function No(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Name")," "))}function Fo(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Lo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function ko(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function Yo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Jo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1),t.ALo(2,"formatNumber"),t.TgZ(3,"button",29),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.editChargeAmount(c))}),t._uU(4,"\n "),t._UZ(5,"fa-icon",30),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.amount),"\n ")}}function Qo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Ro(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function Go(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function Eo(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function Bo(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function Ho(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function jo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeDate(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function zo(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,Eo,3,3,"span",31),t._uU(3,"\n "),t.YNc(4,Bo,3,3,"span",31),t._uU(5,"\n "),t.YNc(6,Ho,2,0,"span",31),t._uU(7,"\n "),t.YNc(8,jo,4,0,"button",32),t._uU(9,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value)}}function Wo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function Vo(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.feeInterval)}}function $o(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function Xo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeFeeInterval(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function Ko(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,Vo,2,1,"span",31),t._uU(3,"\n "),t.YNc(4,$o,3,3,"span",31),t._uU(5,"\n "),t.YNc(6,Xo,4,0,"button",32),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf",e.feeInterval),t.xp6(2),t.Q6J("ngIf",!e.feeInterval),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value)}}function ti(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function ni(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"button",33),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.deleteCharge(c))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",34),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function ei(n,o){1&n&&t._UZ(0,"tr",35)}function ai(n,o){1&n&&t._UZ(0,"tr",36)}function oi(n,o){if(1&n&&(t.TgZ(0,"table",15),t._uU(1,"\n\n "),t.ynx(2,16),t._uU(3,"\n "),t.YNc(4,No,3,3,"th",17),t._uU(5,"\n "),t.YNc(6,Fo,2,1,"td",18),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,19),t._uU(10,"\n "),t.YNc(11,Lo,3,3,"th",17),t._uU(12,"\n "),t.YNc(13,ko,2,1,"td",18),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,20),t._uU(17,"\n "),t.YNc(18,Yo,3,3,"th",17),t._uU(19,"\n "),t.YNc(20,Jo,8,3,"td",18),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,21),t._uU(24,"\n "),t.YNc(25,Qo,3,3,"th",17),t._uU(26,"\n "),t.YNc(27,Ro,2,1,"td",18),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,22),t._uU(31,"\n "),t.YNc(32,Go,3,3,"th",17),t._uU(33,"\n "),t.YNc(34,zo,10,4,"td",18),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,23),t._uU(38,"\n "),t.YNc(39,Wo,3,3,"th",17),t._uU(40,"\n "),t.YNc(41,Ko,8,3,"td",18),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,24),t._uU(45,"\n "),t.YNc(46,ti,3,3,"th",17),t._uU(47,"\n "),t.YNc(48,ni,7,0,"td",18),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.YNc(51,ei,1,0,"tr",25),t._uU(52,"\n "),t.YNc(53,ai,1,0,"tr",26),t._uU(54,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("dataSource",e.chargesDataSource),t.xp6(51),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumns)}}function ii(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"th",27),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelects())})("ngModelChange",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.selectAllItems=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngModel",e.selectAllItems)}}function ci(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelect())})("ngModelChange",function(i){const r=t.CHM(e).$implicit;return t.KtG(r.selected=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngModel",e.selected)}}function si(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client ID")," "))}function ri(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function ui(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client Name")," "))}function li(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function gi(n,o){1&n&&t._UZ(0,"tr",35)}function mi(n,o){1&n&&t._UZ(0,"tr",36)}function _i(n,o){if(1&n&&(t.TgZ(0,"div",37),t._uU(1,"\n "),t.TgZ(2,"table",38),t._uU(3,"\n\n "),t._uU(4,"\n "),t.ynx(5,39),t._uU(6,"\n "),t.YNc(7,ii,4,1,"th",17),t._uU(8,"\n "),t.YNc(9,ci,4,1,"td",18),t._uU(10,"\n "),t.BQk(),t._uU(11,"\n\n "),t._uU(12,"\n "),t.ynx(13,40),t._uU(14,"\n "),t.YNc(15,si,3,3,"th",17),t._uU(16,"\n "),t.YNc(17,ri,2,1,"td",18),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t._uU(20,"\n "),t.ynx(21,16),t._uU(22,"\n "),t.YNc(23,ui,3,3,"th",17),t._uU(24,"\n "),t.YNc(25,li,2,1,"td",18),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n\n "),t.YNc(28,gi,1,0,"tr",25),t._uU(29,"\n "),t.YNc(30,mi,1,0,"tr",26),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(26),t.Q6J("matHeaderRowDef",e.displayedColumn),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumn)}}let k=(()=>{class n{constructor(e,a){this.dialog=e,this.dateUtils=a,this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name"]}ngOnInit(){this.savingsAccountTemplate&&(!this.isChargesPatched&&this.savingsAccountTemplate.charges?(this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[],this.isChargesPatched=!0):this.chargesDataSource=[],this.dataSource=new p.by(this.activeClientMembers))}ngOnChanges(){this.savingsAccountProductTemplate&&(this.chargeData=this.savingsAccountProductTemplate.chargeOptions,this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[])}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){const a=[new N.M({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})];this.dialog.open(D.E,{data:{title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const g={...e,amount:r.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,g),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){const a=[new V.d({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})];this.dialog.open(D.E,{data:{title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){let g;const Y=this.dateUtils.formatDate(r.data.value.date,"dd MMMM yyyy");switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":g={...e,dueDate:Y};break;case"Annual Fee":g={...e,feeOnMonthDay:Y}}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,g),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){const a=[new N.M({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})];this.dialog.open(D.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const g={...e,feeInterval:r.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,g),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get savingsAccountCharges(){return{charges:this.chargesDataSource}}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(const e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){const e=this.activeClientMembers.length;this.selectAllItems=0!==e&&this.activeClientMembers.filter(a=>a.selected).length===e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.uw),t.Y36(b.L))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-charges-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",currencyCode:"currencyCode",activeClientMembers:"activeClientMembers"},features:[t.TTD],decls:44,vars:20,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlex","98%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["fxFlex","98%"],["fxFlex","98%","mat-table","",3,"dataSource"],["matColumnDef","check"],["matColumnDef","id"],[3,"ngModel","change","ngModelChange"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-select",null,2),t._uU(10,"\n "),t.YNc(11,Io,2,2,"mat-option",3),t.ALo(12,"chargesFilter"),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",4),t._uU(17,"\n "),t.TgZ(18,"button",5),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(9);return t.KtG(a.addCharge(r))}),t._uU(19,"\n "),t._UZ(20,"fa-icon",6),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,oi,55,3,"table",7),t._uU(26,"\n\n "),t.YNc(27,_i,33,3,"div",8),t._uU(28,"\n\n\n"),t.qZA(),t._uU(29,"\n\n"),t.TgZ(30,"div",9),t._uU(31,"\n "),t.TgZ(32,"button",10),t._uU(33,"\n "),t._UZ(34,"fa-icon",11),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"button",12),t._uU(39),t.ALo(40,"translate"),t._UZ(41,"fa-icon",13),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n"),t.qZA()}if(2&e){const i=t.MAs(9);t.xp6(5),t.Oqu(t.lcZ(6,8,"labels.inputs.Charge")),t.xp6(6),t.Q6J("ngForOf",t.Dn7(12,10,a.chargeData,a.chargesDataSource,a.currencyCode.value)),t.xp6(7),t.Q6J("disabled",!i.value),t.xp6(3),t.hij("\n ",t.lcZ(22,14,"labels.buttons.Add"),"\n "),t.xp6(4),t.Q6J("ngIf",a.chargesDataSource.length>0),t.xp6(2),t.Q6J("ngIf",a.activeClientMembers),t.xp6(8),t.hij("\n ",t.lcZ(36,16,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(40,18,"labels.buttons.Next"),"\n ")}},dependencies:[f.sg,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.XD,u.yH,M.ey,T.lW,H.oG,_.KE,_.hX,y.gD,Z.Ic,Z.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,s.JJ,s.On,U.X$,wo.A,q.E,J.w],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var rt=m(5510),pi=m(27676),ut=m(30637);function di(n,o){if(1&n&&(t.TgZ(0,"span",4),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",13),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("externalId",e.savingsAccount.externalId)}}function fi(n,o){1&n&&(t.TgZ(0,"span",4),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Unassigned"),"\n "))}function Ai(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Opening Balance"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccount.minRequiredOpeningBalance))}}function hi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Lock-in Period"),":"),t.xp6(4),t.Oqu(e.savingsAccount.lockinPeriodFrequency+" "+t.gM2(8,4,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function vi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccount.minOverdraftForInterestCalculation))}}function Ci(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),t.xp6(4),t.hij("",t.lcZ(8,4,e.savingsAccount.nominalAnnualInterestRateOverdraft)," %")}}function Ti(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccount.overdraftLimit))}}function Ui(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Balance"),":"),t.xp6(4),t.Oqu(e.savingsAccount.minRequiredBalance)}}function xi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Name")," "))}function bi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Zi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Oi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function Pi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Mi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.amount),"\n ")}}function yi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function Si(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function qi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function Di(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function wi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1,"\n "),t.YNc(2,Si,3,3,"span",28),t._uU(3,"\n "),t.YNc(4,qi,3,3,"span",28),t._uU(5,"\n "),t.YNc(6,Di,2,0,"span",28),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value))}}function Ii(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function Ni(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n ")}}function Fi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Li(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function ki(n,o){1&n&&t._UZ(0,"tr",29)}function Yi(n,o){1&n&&t._UZ(0,"tr",30)}function Ji(n,o){if(1&n&&(t.TgZ(0,"div",14),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"table",15),t._uU(9,"\n\n "),t.ynx(10,16),t._uU(11,"\n "),t.YNc(12,xi,3,3,"th",17),t._uU(13,"\n "),t.YNc(14,bi,2,1,"td",18),t._uU(15,"\n "),t.BQk(),t._uU(16,"\n\n "),t.ynx(17,19),t._uU(18,"\n "),t.YNc(19,Zi,3,3,"th",17),t._uU(20,"\n "),t.YNc(21,Oi,2,1,"td",18),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,20),t._uU(25,"\n "),t.YNc(26,Pi,3,3,"th",17),t._uU(27,"\n "),t.YNc(28,Mi,3,3,"td",18),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,21),t._uU(32,"\n "),t.YNc(33,yi,3,3,"th",17),t._uU(34,"\n "),t.YNc(35,wi,8,3,"td",18),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,22),t._uU(39,"\n "),t.YNc(40,Ii,3,3,"th",17),t._uU(41,"\n "),t.YNc(42,Ni,2,1,"td",18),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,23),t._uU(46,"\n "),t.YNc(47,Fi,3,3,"th",17),t._uU(48,"\n "),t.YNc(49,Li,2,1,"td",18),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.YNc(52,ki,1,0,"tr",24),t._uU(53,"\n "),t.YNc(54,Yi,1,0,"tr",25),t._uU(55,"\n\n "),t.qZA(),t._uU(56,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,4,"labels.inputs.Charges")),t.xp6(5),t.Q6J("dataSource",e.savingsAccount.charges),t.xp6(44),t.Q6J("matHeaderRowDef",e.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.chargesDisplayedColumns)}}const Qi=function(){return["../.."]};let $=(()=>{class n{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.submit=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-preview-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",savingsAccountTermsForm:"savingsAccountTermsForm",savingsAccount:"savingsAccount"},outputs:{submit:"submit"},decls:197,vars:121,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlex","60%",4,"ngIf"],["fxFlexFill","",4,"ngIf"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"span",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"span",4),t._uU(15),t.ALo(16,"find"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"dateFormat"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"div",2),t._uU(31,"\n "),t.TgZ(32,"span",3),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n "),t.YNc(36,di,4,1,"span",5),t._uU(37,"\n "),t.YNc(38,fi,3,3,"span",5),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.TgZ(41,"div",2),t._uU(42,"\n "),t.TgZ(43,"span",3),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.TgZ(47,"span",4),t._uU(48),t.ALo(49,"find"),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n\n "),t.TgZ(52,"h3",1),t._uU(53),t.ALo(54,"translate"),t.qZA(),t._uU(55,"\n\n "),t._UZ(56,"mat-divider",2),t._uU(57,"\n\n "),t.TgZ(58,"div",2),t._uU(59,"\n "),t.TgZ(60,"span",3),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.TgZ(64,"span",4),t._uU(65),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"div",2),t._uU(69,"\n "),t.TgZ(70,"span",3),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"span",4),t._uU(75),t.qZA(),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n\n "),t.TgZ(78,"div",2),t._uU(79,"\n "),t.TgZ(80,"span",3),t._uU(81),t.ALo(82,"translate"),t.qZA(),t._uU(83,"\n "),t.TgZ(84,"span",4),t._uU(85),t.ALo(86,"formatNumber"),t.qZA(),t._uU(87,"\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",2),t._uU(90,"\n "),t.TgZ(91,"span",3),t._uU(92),t.ALo(93,"translate"),t.qZA(),t._uU(94,"\n "),t.TgZ(95,"span",4),t._uU(96),t.ALo(97,"find"),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n\n "),t.TgZ(100,"div",2),t._uU(101,"\n "),t.TgZ(102,"span",3),t._uU(103),t.ALo(104,"translate"),t.qZA(),t._uU(105,"\n "),t.TgZ(106,"span",4),t._uU(107),t.ALo(108,"find"),t.qZA(),t._uU(109,"\n "),t.qZA(),t._uU(110,"\n\n "),t.TgZ(111,"div",2),t._uU(112,"\n "),t.TgZ(113,"span",3),t._uU(114),t.ALo(115,"translate"),t.qZA(),t._uU(116,"\n "),t.TgZ(117,"span",4),t._uU(118),t.ALo(119,"find"),t.qZA(),t._uU(120,"\n "),t.qZA(),t._uU(121,"\n\n "),t.TgZ(122,"div",2),t._uU(123,"\n "),t.TgZ(124,"span",3),t._uU(125),t.ALo(126,"translate"),t.qZA(),t._uU(127,"\n "),t.TgZ(128,"span",4),t._uU(129),t.ALo(130,"find"),t.qZA(),t._uU(131,"\n "),t.qZA(),t._uU(132,"\n\n "),t.YNc(133,Ai,10,6,"div",6),t._uU(134,"\n\n "),t.TgZ(135,"div",2),t._uU(136,"\n "),t.TgZ(137,"span",3),t._uU(138),t.ALo(139,"translate"),t.qZA(),t._uU(140,"\n "),t.TgZ(141,"span",4),t._uU(142),t.ALo(143,"yesNo"),t.qZA(),t._uU(144,"\n "),t.qZA(),t._uU(145,"\n\n "),t.YNc(146,hi,10,9,"div",6),t._uU(147,"\n\n "),t.TgZ(148,"div",2),t._uU(149,"\n "),t.TgZ(150,"span",3),t._uU(151),t.ALo(152,"translate"),t.qZA(),t._uU(153,"\n "),t.TgZ(154,"span",4),t._uU(155),t.ALo(156,"yesNo"),t.qZA(),t._uU(157,"\n "),t.qZA(),t._uU(158,"\n\n "),t.YNc(159,vi,10,6,"div",6),t._uU(160,"\n\n "),t.YNc(161,Ci,10,6,"div",6),t._uU(162,"\n\n "),t.YNc(163,Ti,10,6,"div",6),t._uU(164,"\n\n "),t.TgZ(165,"div",2),t._uU(166,"\n "),t.TgZ(167,"span",3),t._uU(168),t.ALo(169,"translate"),t.qZA(),t._uU(170,"\n "),t.TgZ(171,"span",4),t._uU(172),t.ALo(173,"yesNo"),t.qZA(),t._uU(174,"\n "),t.qZA(),t._uU(175,"\n\n "),t.YNc(176,Ui,9,4,"div",6),t._uU(177,"\n\n "),t.YNc(178,Ji,57,6,"div",7),t._uU(179,"\n\n"),t.qZA(),t._uU(180,"\n\n"),t.TgZ(181,"div",8),t._uU(182,"\n "),t.TgZ(183,"button",9),t._uU(184,"\n "),t._UZ(185,"fa-icon",10),t._uU(186),t.ALo(187,"translate"),t.qZA(),t._uU(188,"\n "),t.TgZ(189,"button",11),t._uU(190),t.ALo(191,"translate"),t.qZA(),t._uU(192,"\n "),t.TgZ(193,"button",12),t.NdJ("click",function(){return a.submit.emit()}),t._uU(194),t.ALo(195,"translate"),t.qZA(),t._uU(196,"\n"),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,42,"labels.heading.Details")),t.xp6(8),t.Oqu(t.lcZ(12,44,"labels.inputs.Product")),t.xp6(4),t.Oqu(t.gM2(16,46,a.savingsAccount.productId,a.savingsAccountTemplate.productOptions,"id","name")),t.xp6(7),t.Oqu(t.lcZ(23,51,"labels.inputs.Submitted On")),t.xp6(4),t.Oqu(t.lcZ(27,53,a.savingsAccount.submittedOnDate)),t.xp6(7),t.Oqu(t.lcZ(34,55,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",a.savingsAccount.externalId),t.xp6(2),t.Q6J("ngIf",!a.savingsAccount.externalId),t.xp6(6),t.Oqu(t.lcZ(45,57,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(t.gM2(49,59,a.savingsAccount.fieldOfficerId,a.savingsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),t.xp6(5),t.Oqu(t.lcZ(54,64,"labels.heading.Terms")),t.xp6(8),t.Oqu(t.lcZ(62,66,"labels.inputs.Currency")),t.xp6(4),t.Oqu(a.savingsAccountTermsForm.get("currencyCode").value),t.xp6(6),t.Oqu(t.lcZ(72,68,"labels.inputs.Decimal Places")),t.xp6(4),t.Oqu(a.savingsAccountTermsForm.get("decimal").value),t.xp6(6),t.hij("",t.lcZ(82,70,"labels.inputs.Nominal Annual Interest"),":"),t.xp6(4),t.hij("",t.lcZ(86,72,a.savingsAccount.nominalAnnualInterestRate)," %"),t.xp6(7),t.hij("",t.lcZ(93,74,"labels.inputs.Interest Compounding Period"),":"),t.xp6(4),t.Oqu(t.gM2(97,76,a.savingsAccount.interestCompoundingPeriodType,a.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(104,81,"labels.inputs.Interest Posting Period"),":"),t.xp6(4),t.Oqu(t.gM2(108,83,a.savingsAccount.interestPostingPeriodType,a.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(115,88,"labels.inputs.Interest Calculated using"),":"),t.xp6(4),t.Oqu(t.gM2(119,90,a.savingsAccount.interestCalculationType,a.savingsAccountProductTemplate.interestCalculationTypeOptions,"id","value")),t.xp6(7),t.hij("",t.lcZ(126,95,"labels.inputs.Days in Year"),":"),t.xp6(4),t.Oqu(t.gM2(130,97,a.savingsAccount.interestCalculationDaysInYearType,a.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredOpeningBalance),t.xp6(5),t.hij("",t.lcZ(139,102,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),t.xp6(4),t.Oqu(t.lcZ(143,104,a.savingsAccount.withdrawalFeeForTransfers)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.lockinPeriodFrequency),t.xp6(5),t.hij("",t.lcZ(152,106,"labels.inputs.Is Overdraft Allowed"),":"),t.xp6(4),t.Oqu(t.lcZ(156,108,a.savingsAccount.allowOverdraft)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minOverdraftForInterestCalculation),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.nominalAnnualInterestRateOverdraft),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.overdraftLimit),t.xp6(5),t.hij("",t.lcZ(169,110,"labels.inputs.Enforce Minimum Balance"),":"),t.xp6(4),t.Oqu(t.lcZ(173,112,a.savingsAccount.enforceMinRequiredBalance)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.charges.length),t.xp6(8),t.hij("\n ",t.lcZ(187,114,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(120,Qi)),t.xp6(1),t.hij("\n ",t.lcZ(191,116,"labels.buttons.Cancel"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(195,118,"labels.buttons.Submit"),"\n "))},dependencies:[f.O5,P.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,T.lW,st.d,Z.fd,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,rt.e,l.rH,U.X$,pi.Z,q.E,J.w,ut.D],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();function Ri(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Gi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Ei(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Bi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Hi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function ji(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function zi(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function Wi(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function Vi(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function $i(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,Vi,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Xi=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(g=>{this.savingsAccountTemplate=g.savingsAccountTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:r.dueDate,feeOnMonthDay:r.feeOnMonthDay,feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountTemplate.clientId?c.clientId=this.savingsAccountTemplate.clientId:c.groupId=this.savingsAccountTemplate.groupId,this.savingsService.createSavingsAccount(c).subscribe(r=>{this.router.navigate(["../",r.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(b.L),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(F,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:8,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,Ri,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,Gi,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,Ei,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,Bi,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Hi,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,ji,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,zi,2,3,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,Wi,2,3,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,$i,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[f.O5,P.BN,Z.C0,Z.VY,Z.Vq,Z.z9,F,k,L,$,U.X$]}),n})();function Ki(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function tc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function nc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function ec(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function ac(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function oc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function ic(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function cc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function sc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function rc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,sc,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountAndTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let uc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(g=>{this.savingsAccountAndTemplate=g.savingsAccountAndTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValidAndNotPristine(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&(!this.savingsAccountDetailsForm.pristine||!this.savingsAccountTermsForm.pristine||!this.savingsAccountChargesStep.pristine)}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:this.dateUtils.formatDate(r.dueDate,a),feeOnMonthDay:this.dateUtils.formatDate(r.feeOnMonthDay,a),feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountAndTemplate.clientId?c.clientId=this.savingsAccountAndTemplate.clientId:c.groupId=this.savingsAccountAndTemplate.groupId,this.savingsService.updateSavingsAccount(this.savingsAccountAndTemplate.id,c).subscribe(r=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(b.L),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(F,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,Ki,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,tc,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,nc,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,ec,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,ac,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,oc,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,ic,2,3,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,cc,2,3,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,rc,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValidAndNotPristine))},dependencies:[f.O5,P.BN,Z.C0,Z.VY,Z.Vq,Z.z9,F,k,L,$,U.X$]}),n})();const lc=function(n){return["./datatables",n]};function gc(n,o){if(1&n&&(t.TgZ(0,"a",2,6),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,lc,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function mc(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,gc,3,5,"a",5),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const _c=function(){return["./general"]};let pc=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.route.data.subscribe(i=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=i.transactionDatatables})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-transaction"]],decls:15,vars:7,consts:[[1,"container"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],[4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"nav",1),t._uU(3,"\n "),t.TgZ(4,"a",2,3),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8,"\n "),t.YNc(9,mc,4,1,"ng-container",4),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t._UZ(12,"router-outlet"),t._uU(13,"\n\n"),t.qZA(),t._uU(14,"\n")),2&e){const i=t.MAs(5);t.xp6(4),t.Q6J("routerLink",t.DdM(6,_c))("active",i.isActive),t.xp6(2),t.hij("\n ",t.lcZ(7,4,"labels.heading.General"),"\n "),t.xp6(3),t.Q6J("ngForOf",a.entityDatatables)}},dependencies:[f.sg,G.BU,G.Nj,S.A,l.lC,l.yS,l.Od,U.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();function dc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.payCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",12),t._uU(3,"\n Pay\n "),t.qZA()}}function fc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.waiveCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",14),t._uU(3,"\n Waive\n "),t.qZA()}}function Ac(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.inactivateCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Inactivate\n "),t.qZA()}}function hc(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ac,4,0,"button",15),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function vc(n,o){if(1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,dc,4,0,"button",8),t._uU(3,"\n "),t.YNc(4,fc,4,0,"button",9),t._uU(5,"\n "),t.YNc(6,hc,4,1,"span",10),t._uU(7,"\n"),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",e.isRecurringCharge())}}function Cc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.editCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3,"\n Edit\n "),t.qZA()}}function Tc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.deleteCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Delete\n "),t.qZA()}}function Uc(n,o){1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,Cc,4,0,"button",9),t._uU(3,"\n "),t.YNc(4,Tc,4,0,"button",15),t._uU(5,"\n"),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}const xc=function(){return["../"]};let bc=(()=>{class n{constructor(e,a,i,c,r,g){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=g,this.route.data.subscribe(v=>{this.chargeData=v.savingsAccountCharge}),this.route.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountData})}payCharge(){const e=[new N.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new V.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(D.E,{data:{title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const r=this.settingsService.language.code,g=this.settingsService.dateFormat,v={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,g),dateFormat:g,locale:r};this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"pay",v,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(it,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}inactivateCharge(){this.dialog.open(ct,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"inactivate",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){const e=[new N.M({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0})];this.dialog.open(D.E,{data:{title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const v={...c.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.chargeData.accountId,v,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(Q.F,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.chargeData.accountId,this.chargeData.id).subscribe(()=>{this.reload()})})}isRecurringCharge(){const e=this.chargeData.chargeTimeType.value;return"Monthly Fee"===e||"Annual Fee"===e||"Weekly Fee"===e}reload(){const e=this.router.url.replace(`/${this.chargeData.id}`,""),a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.d),t.Y36(l.gz),t.Y36(b.L),t.Y36(l.F0),t.Y36(h.uw),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-charge"]],decls:89,vars:27,consts:[["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column","class","container m-b-20",4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column",1,"container","m-b-20"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["icon","edit",1,"m-r-10"]],template:function(e,a){1&e&&(t._uU(0,"\n\n"),t.YNc(1,vc,8,3,"div",0),t._uU(2,"\n\n"),t.YNc(3,Uc,6,2,"div",0),t._uU(4,"\n\n"),t.TgZ(5,"div",1),t._uU(6,"\n\n "),t.TgZ(7,"mat-card"),t._uU(8,"\n\n "),t.TgZ(9,"mat-card-content"),t._uU(10,"\n\n "),t.TgZ(11,"div",2),t._uU(12,"\n\n "),t.TgZ(13,"div",3),t._uU(14,"\n Name\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",4),t._uU(17),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",3),t._uU(20,"\n Charge Type\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"div",4),t._uU(23),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"div",3),t._uU(26,"\n Currency\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",4),t._uU(29),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"div",3),t._uU(32,"\n Payment due at\n "),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",4),t._uU(35),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"div",3),t._uU(38,"\n Payment due as of\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"dateFormat"),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",3),t._uU(45,"\n Calculation Type\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"div",4),t._uU(48),t.qZA(),t._uU(49,"\n\n "),t.TgZ(50,"div",3),t._uU(51,"\n Due\n "),t.qZA(),t._uU(52,"\n\n "),t.TgZ(53,"div",4),t._uU(54),t.ALo(55,"formatNumber"),t.qZA(),t._uU(56,"\n\n "),t.TgZ(57,"div",3),t._uU(58,"\n Paid\n "),t.qZA(),t._uU(59,"\n\n "),t.TgZ(60,"div",4),t._uU(61),t.ALo(62,"formatNumber"),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"div",3),t._uU(65,"\n Waived\n "),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"div",4),t._uU(68),t.ALo(69,"formatNumber"),t.qZA(),t._uU(70,"\n\n "),t.TgZ(71,"div",3),t._uU(72,"\n Outstanding\n "),t.qZA(),t._uU(73,"\n\n "),t.TgZ(74,"div",4),t._uU(75),t.ALo(76,"formatNumber"),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"div",5),t._uU(80,"\n "),t.TgZ(81,"button",6),t._uU(82),t.ALo(83,"translate"),t.qZA(),t._uU(84,"\n "),t.qZA(),t._uU(85,"\n "),t.qZA(),t._uU(86,"\n\n "),t.qZA(),t._uU(87,"\n\n"),t.qZA(),t._uU(88,"\n")),2&e&&(t.xp6(1),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==a.chargeData.amountOutstanding),t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(14),t.hij("\n ",a.chargeData.name,"\n "),t.xp6(6),t.hij("\n ",a.chargeData.penalty?"Penalty":"Fees","\n "),t.xp6(6),t.hij("\n ",a.chargeData.currency.displayLabel,"\n "),t.xp6(6),t.hij("\n ",a.chargeData.chargeTimeType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(42,14,a.chargeData.dueDate),"\n "),t.xp6(7),t.hij("\n ",a.chargeData.chargeCalculationType.value,"\n "),t.xp6(6),t.hij("\n ",t.lcZ(55,16,a.chargeData.amount),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(62,18,a.chargeData.amountPaid),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(69,20,a.chargeData.amountWaived),"\n "),t.xp6(7),t.hij("\n ",t.lcZ(76,22,a.chargeData.amountOutstanding),"\n "),t.xp6(6),t.Q6J("routerLink",t.DdM(26,xc)),t.xp6(1),t.Oqu(t.lcZ(83,24,"labels.buttons.Back")))},dependencies:[f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,d.a8,d.dn,S.A,l.rH,U.X$,q.E,J.w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();var lt=m(11481);const Zc=function(){return["../../"]};let Oc=(()=>{class n{constructor(e,a){this.sanitizer=e,this.route=a,this.route.data.subscribe(i=>{this.transactionRecieptData=i.savingsTransactionReciept})}ngOnInit(){const e=this.transactionRecieptData.headers.get("Content-Type"),a=new Blob([this.transactionRecieptData.body],{type:e}),i=URL.createObjectURL(a);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(lt.H7),t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-reciept"]],decls:13,vars:3,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(e,a){1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"button",2),t._uU(5,"\n "),t._UZ(6,"fa-icon",3),t._uU(7,"Back"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n\n "),t._UZ(10,"iframe",4),t._uU(11,"\n\n"),t.qZA(),t._uU(12,"\n")),2&e&&(t.xp6(4),t.Q6J("routerLink",t.DdM(2,Zc)),t.xp6(6),t.Q6J("src",a.pentahoUrl,t.uOi))},dependencies:[P.BN,T.lW,d.a8,l.rH],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]}),n})();var gt=m(78543);function Pc(n,o){if(1&n&&t._UZ(0,"iframe",13),2&n){const e=t.oxw();t.Q6J("src",e.pentahoUrl,t.uOi)}}const Mc=function(){return["../"]};let yc=(()=>{class n{constructor(e,a,i,c,r,g){this.sanitizer=e,this.reportsService=a,this.formBuilder=i,this.dateUtils=c,this.route=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(v=>{this.savingsAccountId=v.savingsAccountData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",s.kI.required],toDate:["",s.kI.required]})}generate(){const e={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,this.settingsService.dateFormat),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,this.settingsService.dateFormat),R_savingsAccountId:this.savingsAccountId};this.reportsService.getPentahoRunReportData("Client Saving Transactions",e,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(a=>{const i=a.headers.get("Content-Type"),c=new Blob([a.body],{type:i}),r=URL.createObjectURL(c);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(r),this.hideOutput=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(lt.H7),t.Y36(gt.F),t.Y36(s.QS),t.Y36(b.L),t.Y36(l.gz),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-export-transactions"]],decls:57,vars:13,consts:[["fxLayout","column",1,"m-t-20",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayoutGap","3%","fxLayoutAlign","center"],["fxFlex","30%",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["fromDatePicker",""],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["toDatePicker",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5%",1,"generate-button"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src",4,"ngIf"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return a.generate()}),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(14);return t.KtG(r.open())}),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"From Date"),t.qZA(),t._uU(8,"\n "),t._UZ(9,"input",3),t._uU(10,"\n "),t._UZ(11,"mat-datepicker-toggle",4),t._uU(12,"\n "),t._UZ(13,"mat-datepicker",null,5),t._uU(15,"\n "),t.TgZ(16,"mat-error"),t._uU(17,"\n From date is "),t.TgZ(18,"strong"),t._uU(19,"required"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"To Date"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",6),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",4),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,7),t._uU(34,"\n "),t.TgZ(35,"mat-error"),t._uU(36,"\n To date is "),t.TgZ(37,"strong"),t._uU(38,"required"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",8),t._uU(44,"\n "),t.TgZ(45,"button",9),t._uU(46,"Cancel"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"button",10),t._uU(49,"\n "),t._UZ(50,"fa-icon",11),t._uU(51,"Generate Report \xa0"),t.qZA(),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n"),t.qZA(),t._uU(54,"\n\n"),t.YNc(55,Pc,1,1,"iframe",12),t._uU(56,"\n")}if(2&e){const i=t.MAs(14),c=t.MAs(33);t.Q6J("formGroup",a.transactionsReportForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(17),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",c),t.xp6(2),t.Q6J("for",c),t.xp6(15),t.Q6J("routerLink",t.DdM(12,Mc)),t.xp6(3),t.Q6J("disabled",!a.transactionsReportForm.valid),t.xp6(7),t.Q6J("ngIf",!a.hideOutput)}},dependencies:[f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,T.lW,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]}),n})();function Sc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Date is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function qc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Amount is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function Dc(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function wc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Account Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",19),t._uU(6,"\n "),t.qZA())}function Ic(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Cheque"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",20),t._uU(6,"\n "),t.qZA())}function Nc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Routing Code"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",21),t._uU(6,"\n "),t.qZA())}function Fc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Receipt Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",22),t._uU(6,"\n "),t.qZA())}function Lc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Bank"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",23),t._uU(6,"\n "),t.qZA())}const kc=function(){return["../"]};let Yc=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(v=>{this.transactionTemplateData=v.savingsAccountTransactionTemplate,this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",s.kI.required],transactionAmount:["",s.kI.required],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new s.p4("")),this.editTransactionForm.addControl("checkNumber",new s.p4("")),this.editTransactionForm.addControl("routingCode",new s.p4("")),this.editTransactionForm.addControl("receiptNumber",new s.p4("")),this.editTransactionForm.addControl("bankNumber",new s.p4(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){const e=this.editTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.editTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",r,this.transactionTemplateData.id).subscribe(g=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(b.L),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-transaction"]],decls:82,vars:17,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","transactionAmount","required","","matInput",""],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content",2),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(18);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11,"Transaction Date"),t.qZA(),t._uU(12,"\n "),t._UZ(13,"input",4),t._uU(14,"\n "),t._UZ(15,"mat-datepicker-toggle",5),t._uU(16,"\n "),t._UZ(17,"mat-datepicker",null,6),t._uU(19,"\n "),t.YNc(20,Sc,5,0,"mat-error",7),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field"),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"Transaction Amount"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",8),t._uU(29,"\n "),t.YNc(30,qc,5,0,"mat-error",7),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n\n "),t.TgZ(33,"mat-form-field"),t._uU(34,"\n "),t.TgZ(35,"mat-label"),t._uU(36,"Payment Type"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"mat-select",9),t._uU(39,"\n "),t.YNc(40,Dc,2,2,"mat-option",10),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",11),t._uU(45,"\n "),t.TgZ(46,"span",12),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(47,"\n "),t.TgZ(48,"mat-slide-toggle"),t._uU(49,"\n "),t.TgZ(50,"div",13),t._uU(51,"\n "),t.TgZ(52,"span",14),t._uU(53,"Show Payment Details"),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.YNc(59,wc,7,0,"mat-form-field",7),t._uU(60,"\n\n "),t.YNc(61,Ic,7,0,"mat-form-field",7),t._uU(62,"\n\n "),t.YNc(63,Nc,7,0,"mat-form-field",7),t._uU(64,"\n\n "),t.YNc(65,Fc,7,0,"mat-form-field",7),t._uU(66,"\n\n "),t.YNc(67,Lc,7,0,"mat-form-field",7),t._uU(68,"\n\n "),t.TgZ(69,"mat-card-actions",15),t._uU(70,"\n "),t.TgZ(71,"button",16),t._uU(72,"Cancel"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"button",17),t._uU(75,"Submit"),t.qZA(),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n "),t.qZA(),t._uU(80,"\n\n"),t.qZA(),t._uU(81,"\n")}if(2&e){const i=t.MAs(18);t.xp6(4),t.Q6J("formGroup",a.editTransactionForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.editTransactionForm.controls.transactionDate.hasError("required")),t.xp6(10),t.Q6J("ngIf",a.editTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(10),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.showPaymentDetails?"enabled":"disabled"),t.xp6(9),t.Q6J("ngIf",a.editTransactionForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.bankNumber),t.xp6(4),t.Q6J("routerLink",t.DdM(16,kc)),t.xp6(3),t.Q6J("disabled",!a.editTransactionForm.valid)}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,T.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,_.TO,_.KE,_.hX,_.R9,O.Nt,y.gD,W.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function Jc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Qc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Rc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Gc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Ec(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Bc(n,o){1&n&&t._uU(0,"DETAILS")}function Hc(n,o){1&n&&t._uU(0,"TERMS")}function jc(n,o){1&n&&t._uU(0,"CHARGES")}function zc(n,o){1&n&&t._uU(0,"PREVIEW")}function Wc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n \n "),t.YNc(2,zc,1,0,"ng-template",9),t._uU(3,"\n \n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n \n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Vc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(g=>{this.savingsAccountTemplate=g.savingsAccountTemplate,this.dataSource=g.groupsData.activeClientMembers})}ngOnInit(){}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get activeClientMembers(){return this.dataSource}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return this.selectedMembers=this.savingsAccountChargesStep.selectedClientMembers,{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}setData(e){const a=this.settingsService.language.code,i=this.settingsService.dateFormat,r={...this.savingsAccount,charges:this.savingsAccount.charges.map(g=>({chargeId:g.id,amount:g.amount})),clientId:e.id,isGSIM:!0,isParentAccount:!0,submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,i),dateFormat:i,monthDayFormat:"dd MMMM",locale:a};return r.groupId=this.savingsAccountTemplate.groupId,r}buildRequestData(){const e=[],a=this.selectedMembers.selectedMembers;for(let i=0;i<1;i++)e.push(this.setData(a[i]));return e}submit(){const a={clientArray:this.buildRequestData()};this.savingsService.createGsimAcccount(a).subscribe(i=>{this.router.navigate(["../",i.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(b.L),t.Y36(C.d),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(F,7),t.Gf(L,7),t.Gf(k,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode","activeClientMembers"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n \n "),t.YNc(5,Jc,3,0,"ng-template",3),t._uU(6,"\n \n "),t.YNc(7,Qc,3,0,"ng-template",4),t._uU(8,"\n \n "),t.YNc(9,Rc,3,0,"ng-template",5),t._uU(10,"\n \n "),t.YNc(11,Gc,3,0,"ng-template",6),t._uU(12,"\n \n "),t.YNc(13,Ec,3,0,"ng-template",7),t._uU(14,"\n \n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n \n "),t.YNc(17,Bc,1,0,"ng-template",9),t._uU(18,"\n \n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n \n "),t.qZA(),t._uU(22,"\n \n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n \n "),t.YNc(25,Hc,1,0,"ng-template",9),t._uU(26,"\n \n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n \n "),t.qZA(),t._uU(29,"\n \n "),t.TgZ(30,"mat-step"),t._uU(31,"\n \n "),t.YNc(32,jc,1,0,"ng-template",9),t._uU(33,"\n \n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n \n "),t.qZA(),t._uU(37,"\n \n "),t.YNc(38,Wc,7,4,"mat-step",13),t._uU(39,"\n \n "),t.qZA(),t._uU(40,"\n \n "),t.qZA(),t._uU(41,"\n ")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode"))("activeClientMembers",a.activeClientMembers),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[f.O5,P.BN,Z.C0,Z.VY,Z.Vq,Z.z9,F,k,L,$]}),n})();function $c(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Client Details "),t.qZA())}function Xc(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.displayName," ")}}function Kc(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Saving Account "),t.qZA())}function ts(n,o){if(1&n&&(t.TgZ(0,"td",14),t._UZ(1,"i",15),t.ALo(2,"statusLookup"),t._uU(3),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngClass",t.lcZ(2,3,e.status.code))("matTooltip",e.status.value),t.xp6(2),t.hij(" ",e.accountNo," ")}}function ns(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Products "),t.qZA())}function es(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.productName," ")}}function as(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Balance "),t.qZA())}function os(n,o){1&n&&(t.TgZ(0,"td",14),t._uU(1," "),t.qZA())}function is(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Actions "),t.qZA())}const cs=function(n){return["../","savings-accounts",n,"actions","Deposit"]};function ss(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",18),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,cs,e.id))}}const rs=function(n){return["../","savings-accounts",n,"actions","Withdrawal"]};function us(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",19),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,rs,e.id))}}const ls=function(n){return["../","savings-accounts",n,"actions","Approve"]};function gs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",20),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,ls,e.id))}}const ms=function(n){return["../../../","savings-accounts",n,"actions","Undo Approval"]};function _s(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",21),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,ms,e.id))}}const ps=function(n){return["../../",n,"actions","Activate"]};function ds(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,ps,e.id))}}function fs(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1,"\n "),t.YNc(2,ss,4,3,"button",16),t._uU(3,"\n "),t.YNc(4,us,4,3,"button",16),t._uU(5,"\n "),t.YNc(6,gs,4,3,"button",16),t._uU(7,"\n "),t.YNc(8,_s,4,3,"button",16),t._uU(9,"\n "),t.YNc(10,ds,4,3,"button",16),t._uU(11,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active)}}function As(n,o){1&n&&t._UZ(0,"tr",23)}const hs=function(n){return["../../",n,"transactions"]};function vs(n,o){1&n&&t._UZ(0,"tr",24),2&n&&t.Q6J("routerLink",t.VKq(1,hs,o.$implicit.id))}const Cs=function(){return[10,20,25]};let Ts=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.displayedColumns=["clientDetails","savingsAccount","products","balance","Actions"],this.route.data.subscribe(i=>{this.gsimOverviewData=i.gsimData[0].childGSIMAccounts,this.savingAccountData=i.savingAccountData,this.groupsData=i.groupsData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new p.by(this.gsimOverviewData)}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-gsim-account"]],viewQuery:function(e,a){if(1&e&&t.Gf(B.NW,7),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first)}},decls:52,vars:5,consts:[[1,"tab-container","mat-typography"],[2,"margin-top","5px"],["mat-table","",3,"dataSource"],["matColumnDef","clientDetails"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","savingsAccount"],["matColumnDef","products"],["matColumnDef","balance"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink","click",4,"ngIf"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","Deposit",1,"fa","fa-arrow-up"],["matTooltip","Withdraw",1,"fa","fa-arrow-down"],["matTooltip","Approve",1,"fa","fa-check"],["matTooltip","Undo Approval",1,"fa","fa-undo"],["matTooltip","Activate",1,"fa","fa-check-circle"],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n \n "),t.TgZ(4,"h2"),t._uU(5," GSIM Account Overview"),t.qZA(),t._uU(6,"\n \n "),t.TgZ(7,"table",2),t._uU(8,"\n \n "),t.ynx(9,3),t._uU(10,"\n "),t.YNc(11,$c,2,0,"th",4),t._uU(12,"\n "),t.YNc(13,Xc,2,1,"td",5),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n \n "),t.ynx(16,6),t._uU(17,"\n "),t.YNc(18,Kc,2,0,"th",4),t._uU(19,"\n "),t.YNc(20,ts,4,5,"td",5),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n \n "),t.ynx(23,7),t._uU(24,"\n "),t.YNc(25,ns,2,0,"th",4),t._uU(26,"\n "),t.YNc(27,es,2,1,"td",5),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n \n "),t.ynx(30,8),t._uU(31,"\n "),t.YNc(32,as,2,0,"th",4),t._uU(33,"\n "),t.YNc(34,os,2,0,"td",5),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n \n "),t.ynx(37,9),t._uU(38,"\n "),t.YNc(39,is,2,0,"th",4),t._uU(40,"\n "),t.YNc(41,fs,12,5,"td",5),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n \n "),t.YNc(44,As,1,0,"tr",10),t._uU(45,"\n "),t.YNc(46,vs,1,3,"tr",11),t._uU(47,"\n \n "),t.qZA(),t._uU(48,"\n \n "),t._UZ(49,"mat-paginator",12),t._uU(50,"\n \n "),t.qZA(),t._uU(51,"\n "),t.qZA()),2&e&&(t.xp6(7),t.Q6J("dataSource",a.dataSource),t.xp6(37),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSizeOptions",t.DdM(4,Cs)))},dependencies:[f.mk,f.O5,R.oO,T.lW,B.NW,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,E.gM,l.rH,et.F],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var j=m(69749),mt=m(89),_t=m(96545);let pt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.parent.paramMap.get("id"),i=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),dt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){return this.savingsService.getSavingsTransactionDatatables()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),X=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("clientId")||e.paramMap.get("groupId")||e.paramMap.get("centerId"),i=!(!e.paramMap.get("groupId")&&!e.paramMap.get("centerId"));return this.savingsService.getSavingsAccountTemplate(a,void 0,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ft=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(a,!0)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),At=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ht=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Us=m(30567);let vt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("name"),i=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(a){case"Assign Staff":return this.savingsService.getSavingsAccountAndTemplate(i,!0);case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(i);case"Withdrawal":case"Deposit":return this.savingsService.getSavingsTransactionTemplateResource(i);case"Close":return(0,Us.D)([this.savingsService.getSavingsTransactionTemplateResource(i),this.savingsService.getSavingsAccountData(i)]);case"Apply Annual Fees":return this.savingsService.getSavingsAccountData(i);default:return}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ct=(()=>{class n{constructor(e,a){this.reportsService=e,this.settingsService=a}resolve(e){const a=e.paramMap.get("id");return this.reportsService.getPentahoRunReportData("Savings Transaction Receipt",{"output-type":"PDF",R_transactionId:a},"default",this.settingsService.language.code,this.settingsService.dateFormat)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(gt.F),t.LFG(x.g))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Tt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var xs=m(10009),Ut=m(23325);let xt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("groupId"),i=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(i,a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var bs=m(37275),Zs=m(10710),Os=m(22564);let Ps=(()=>{class n{constructor(e,a,i,c){this.route=e,this.savingsService=a,this.settingsService=i,this.dialog=c,this.entityType="savings",this.route.data.subscribe(r=>{this.setSavingsDocumentsData(r.savingsDocuments)}),this.entityId=this.route.parent.snapshot.paramMap.get("savingAccountId")}ngOnInit(){}setSavingsDocumentsData(e){e.forEach(a=>{a.docUrl=this.settingsService.serverUrl+"/savings/"+a.parentEntityId+"/documents/"+a.id+"/attachment?tenantIdentifier="+Zs.N.fineractPlatformTenantId,a.fileName&&(-1!==a.fileName.toLowerCase().indexOf(".jpg")||-1!==a.fileName.toLowerCase().indexOf(".jpeg")||-1!==a.fileName.toLowerCase().indexOf(".png"))&&(a.fileIsImage=!0),a.type&&-1!==a.type.toLowerCase().indexOf("image")&&(a.fileIsImage=!0)}),this.entityDocuments=e}downloadDocument(e){this.savingsService.downloadSavingsDocument(this.entityId,e).subscribe(a=>{const i=window.URL.createObjectURL(a);window.open(i)})}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(a=>{})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(C.d),t.Y36(x.g),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-documents-tab"]],decls:3,vars:6,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDownload","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-documents-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityType",a.entityType)("entityId",a.entityId)("entityDocuments",a.entityDocuments)("callbackUpload",a.uploadDocument)("callbackDownload",a.downloadDocument)("callbackDelete",a.deleteDocument)},dependencies:[Os.k]}),n})();var Ms=m(92317),ys=m(15751);let Ss=(()=>{class n{constructor(e,a,i){this.route=e,this.savingsService=a,this.authenticationService=i;const c=this.authenticationService.getCredentials();this.username=c.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(r=>{this.entityNotes=r.savingAccountNotes})}ngOnInit(){}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(a=>{this.entityNotes.push({id:a.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,a,i){this.savingsService.editSavingsNote(this.entityId,e,a).subscribe(()=>{this.entityNotes[i].note=a.note})}deleteNote(e,a){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(a,1)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(C.d),t.Y36(Ms.$))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-notes-tab"]],decls:3,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-notes-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityId",a.entityId)("entityNotes",a.entityNotes)("callbackAdd",a.addNote)("callbackEdit",a.editNote)("callbackDelete",a.deleteNote)},dependencies:[ys.P]}),n})(),qs=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ds=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ws=function(){return{confirm:!0}};let Is=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-release-amount-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Release Amount"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to release this amount ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,ws)))},dependencies:[T.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();var Ns=m(9722);function Fs(n,o){1&n&&(t.TgZ(0,"button",14),t._uU(1,"\n "),t._UZ(2,"fa-icon",15),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.Q6J("routerLink","edit"),t.xp6(3),t.hij("",t.lcZ(4,2,"labels.buttons.Edit"),"\n "))}function Ls(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Fs,5,4,"button",13),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf","Transfer"==e.transactionData.transactionType.value||"true"==e.transactionData.reversed||3==e.transactionData.transactionType.id||17==e.transactionData.transactionType.id)}}function ks(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ls,4,1,"span",12),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Ys(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.releaseAmount())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&n&&(t.xp6(3),t.hij("",t.lcZ(4,1,"labels.buttons.Release Amount"),"\n "))}function Js(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ys,5,3,"button",16),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function Qs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",21),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&n&&(t.xp6(3),t.hij("",t.lcZ(4,1,"labels.buttons.Undo"),"\n "))}function Rs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Qs,5,3,"button",19),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Gs(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Note"),"\n "))}function Es(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("\n ",e.transactionData.note,"\n ")}}function Bs(n,o){if(1&n&&(t.TgZ(0,"mifosx-transaction-payment-detail",22),t._uU(1,"\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("paymentDetailData",e.transactionData.paymentDetailData)}}const Hs=function(){return["../../"]};let js=(()=>{class n{constructor(e,a,i,c,r,g){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=g,this.route.data.subscribe(v=>{this.accountId=this.route.parent.snapshot.params.savingAccountId,this.transactionData=v.savingsAccountTransaction})}ngOnInit(){}allowUndo(){return!(this.transactionData.reversed&&this.transactionData.transactionType.amountHold||this.transactionData.reversed)}releaseAmount(){this.dialog.open(Is).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"releaseAmount",{},this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})})}undoTransaction(){this.dialog.open(at.z).afterClosed().subscribe(a=>{if(a.confirm){const i=this.settingsService.language.code,c=this.settingsService.dateFormat,r={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),c),transactionAmount:0,dateFormat:c,locale:i};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",r,this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})}})}transactionColor(){return this.transactionData.reversed?"undo":"active"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.d),t.Y36(l.gz),t.Y36(b.L),t.Y36(l.F0),t.Y36(h.uw),t.Y36(x.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transaction-general-tab"]],decls:73,vars:39,consts:[["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","100%",3,"ngClass"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxFlex","50%","class","mat-body-strong",4,"ngIf"],["fxFlex","50%",4,"ngIf"],[3,"paymentDetailData",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"],[3,"paymentDetailData"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,ks,4,1,"span",1),t._uU(3,"\n "),t.YNc(4,Js,4,1,"span",1),t._uU(5,"\n "),t.YNc(6,Rs,4,1,"span",1),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n\n"),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"mat-card"),t._uU(12,"\n\n "),t.TgZ(13,"mat-card-content"),t._uU(14,"\n\n "),t.TgZ(15,"div",3),t._uU(16,"\n "),t.TgZ(17,"div",4),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"div",6),t._uU(25),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"div",6),t._uU(32),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",5),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"div",6),t._uU(39),t.ALo(40,"dateFormat"),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"div",5),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n\n "),t.TgZ(46,"div",6),t._uU(47),t.qZA(),t._uU(48,"\n\n "),t.TgZ(49,"div",5),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n\n "),t.TgZ(53,"div",6),t._uU(54),t.ALo(55,"currency"),t.qZA(),t._uU(56,"\n\n "),t.YNc(57,Gs,3,3,"div",7),t._uU(58,"\n\n "),t.YNc(59,Es,2,1,"div",8),t._uU(60,"\n\n "),t.YNc(61,Bs,2,1,"mifosx-transaction-payment-detail",9),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"div",10),t._uU(65,"\n "),t.TgZ(66,"button",11),t._uU(67),t.ALo(68,"translate"),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.qZA(),t._uU(72,"\n\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",!(!1===a.transactionData.interestedPostedAsOn&&(17===a.transactionData.transactionType.id||3===a.transactionData.transactionType.id))),t.xp6(2),t.Q6J("ngIf",!a.transactionData.reversed&&a.transactionData.transactionType.amountHold),t.xp6(2),t.Q6J("ngIf",a.allowUndo()),t.xp6(11),t.Q6J("ngClass",a.transactionColor()),t.xp6(4),t.hij("\n ",t.lcZ(22,19,"labels.inputs.Id"),"\n "),t.xp6(4),t.hij("\n ",a.transactionData.id,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(29,21,"labels.inputs.Transaction Type"),"\n "),t.xp6(4),t.hij("\n ",a.transactionData.transactionType.value,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(36,23,"labels.inputs.Transaction Date"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(40,25,a.transactionData.date),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(44,27,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",a.transactionData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(51,29,"labels.inputs.Amount"),"\n "),t.xp6(4),t.hij("\n ",t.gM2(55,31,a.transactionData.amount,a.transactionData.currency.code,"symbol-narrow","1.2-2"),"\n "),t.xp6(3),t.Q6J("ngIf",a.transactionData.note),t.xp6(2),t.Q6J("ngIf",a.transactionData.note),t.xp6(2),t.Q6J("ngIf",a.transactionData.paymentDetailData),t.xp6(5),t.Q6J("routerLink",t.DdM(38,Hs)),t.xp6(1),t.Oqu(t.lcZ(68,36,"labels.buttons.Back")))},dependencies:[f.mk,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,R.oO,T.lW,d.a8,d.dn,Ns.B,S.A,l.rH,f.H9,U.X$,q.E],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#4461e2b3;border:1px solid #1a34a6;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.active[_ngcontent-%COMP%]{background-color:#00ce00;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]}),n})();var zs=m(73162);function Ws(n,o){1&n&&t._UZ(0,"mat-progress-bar",2)}function Vs(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",12),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function $s(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function Xs(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",10),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"dateFormat"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td"),t._uU(28),t.qZA(),t._uU(29,"\n "),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"tr"),t._uU(32,"\n "),t.TgZ(33,"td"),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.YNc(37,Vs,4,1,"td",7),t._uU(38,"\n "),t.YNc(39,$s,3,3,"td",7),t._uU(40," "),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td",11),t._uU(59),t.ALo(60,"formatNumber"),t.qZA(),t._uU(61,"\n "),t.qZA(),t._uU(62,"\n "),t.qZA(),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,13,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(14,15,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(18,17,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(25,19,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(35,21,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId),t.xp6(6),t.Oqu(t.lcZ(46,23,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(56,25,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(60,27,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Ks(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div"),t._uU(2,"\n "),t.TgZ(3,"h4",10),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",11),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n ")),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(15,7,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(25,9,"labels.inputs.Balance")),t.xp6(4),t.Oqu(t.gM2(29,11,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2"))}}function tr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Deposits")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function nr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function er(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",10),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,tr,10,9,"tr",7),t._uU(11,"\n "),t.YNc(12,nr,10,9,"tr",7),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.heading.Performance History")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0)}}function ar(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Withdrawls")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function or(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawals Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currency.code,"symbol-narrow","1.2-2"))}}function ir(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalAnnualFees,e.currency.code,"symbol-narrow","1.2-2"))}}function cr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function sr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function rr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function ur(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest On Overdraft")),t.xp6(4),t.hij("\n ",t.gM2(8,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currency.code,"symbol-narrow","1.2-2"),"")}}function lr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Overdraft Interest Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function gr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(8,4,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function mr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawal Fee")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.withdrawalFee.amount,e.currency.code,"symbol-narrow","1.2-2"))}}function _r(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Last Active Transaction Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.lastActiveTransactionDate))}}function pr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Substatus")),t.xp6(4),t.Oqu(e.savingsAccountData.subStatus.value)}}function dr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Inactive")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToInactive)}}function fr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Dormancy")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToDormancy)}}function Ar(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Escheat")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToEscheat)}}function hr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fee")),t.xp6(4),t.hij("\n ",t.gM2(8,4,e.savingsAccountData.annualFee.amount,e.currency.code,"symbol-narrow","1.2-2"),"\n ")}}function vr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Over Draft Limit")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.overdraftLimit,e.currency.code,"symbol-narrow","1.2-2"))}}function Cr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Overdraft Required for Interest Calculation")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currency.code,"symbol-narrow","1.2-2"))}}function Tr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Balance Required for Interest Calculation")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minBalanceForInterestCalculation))}}function Ur(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minRequiredBalance))}}function xr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"yesNo"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Enforce Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.enforceMinRequiredBalance))}}function br(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Recalculation Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.summary.lastInterestCalculationDate))}}function Zr(n,o){if(1&n&&(t.TgZ(0,"a"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(t.gM2(2,1,e.savingsAccountData.onHoldFunds,e.currency.code,"symbol-narrow","1.2-2"))}}function Or(n,o){1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t.YNc(7,Zr,3,6,"a",14),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.On Hold Funds")),t.xp6(4),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNT"))}function Pr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withhold Tax Group")),t.xp6(4),t.Oqu(e.savingsAccountData.taxGroup.name)}}function Mr(n,o){if(1&n&&(t.TgZ(0,"div",13),t._uU(1,"\n "),t.TgZ(2,"h4",10),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,ar,10,9,"tr",7),t._uU(11,"\n "),t.YNc(12,or,10,9,"tr",7),t._uU(13,"\n "),t.YNc(14,ir,10,9,"tr",7),t._uU(15,"\n "),t.YNc(16,cr,10,9,"tr",7),t._uU(17,"\n "),t.YNc(18,sr,10,9,"tr",7),t._uU(19,"\n "),t.YNc(20,rr,10,9,"tr",7),t._uU(21,"\n "),t.YNc(22,ur,10,9,"tr",7),t._uU(23,"\n "),t.YNc(24,lr,10,9,"tr",7),t._uU(25,"\n "),t.YNc(26,gr,10,6,"tr",7),t._uU(27,"\n "),t.TgZ(28,"tr"),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"tr"),t._uU(39,"\n "),t.TgZ(40,"td"),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"tr"),t._uU(49,"\n "),t.TgZ(50,"td"),t._uU(51),t.ALo(52,"translate"),t.qZA(),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"tr"),t._uU(59,"\n "),t.TgZ(60,"td"),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.TgZ(64,"td"),t._uU(65),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n "),t.YNc(68,mr,10,9,"tr",7),t._uU(69,"\n "),t.YNc(70,_r,10,6,"tr",7),t._uU(71,"\n "),t.YNc(72,pr,9,4,"tr",7),t._uU(73,"\n "),t.YNc(74,dr,9,4,"tr",7),t._uU(75,"\n "),t.YNc(76,fr,9,4,"tr",7),t._uU(77,"\n "),t.YNc(78,Ar,9,4,"tr",7),t._uU(79,"\n "),t.YNc(80,hr,10,9,"tr",7),t._uU(81,"\n "),t.YNc(82,vr,10,9,"tr",7),t._uU(83,"\n "),t.YNc(84,Cr,10,9,"tr",7),t._uU(85,"\n "),t.YNc(86,Tr,10,6,"tr",7),t._uU(87,"\n "),t.YNc(88,Ur,10,6,"tr",7),t._uU(89,"\n "),t.YNc(90,xr,10,6,"tr",7),t._uU(91,"\n "),t.YNc(92,br,10,6,"tr",7),t._uU(93,"\n "),t.YNc(94,Or,9,4,"tr",7),t._uU(95,"\n "),t.YNc(96,Pr,9,4,"tr",7),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,33,"labels.heading.Account Summary")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawalFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalAnnualFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestPosted),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalOverdraftInterestDerived),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted<0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.nominalAnnualInterestRate),t.xp6(5),t.Oqu(t.lcZ(32,35,"labels.inputs.Interest Compounding Period")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCompoundingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(42,37,"labels.inputs.Interest Posting Period")),t.xp6(4),t.Oqu(e.savingsAccountData.interestPostingPeriodType.value),t.xp6(6),t.Oqu(t.lcZ(52,39,"labels.inputs.Interest Calculated Using")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCalculationType.value),t.xp6(6),t.Oqu(t.lcZ(62,41,"labels.inputs.Days in Year")),t.xp6(4),t.Oqu(e.savingsAccountData.interestCalculationDaysInYearType.value),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.withdrawalFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.lastActiveTransactionDate),t.xp6(2),t.Q6J("ngIf",0!==e.savingsAccountData.subStatus.id),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToInactive),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToDormancy),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToEscheat),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.annualFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minBalanceForInterestCalculation),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.enforceMinRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.lastInterestCalculationDate),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.onHoldFunds),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.withHoldTax)}}function yr(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",12),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function Sr(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function qr(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div",13),t._uU(2,"\n "),t.TgZ(3,"h4",10),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.ALo(19,"dateFormat"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"tr"),t._uU(23,"\n "),t.TgZ(24,"td"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"td"),t._uU(29),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"tr"),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.YNc(38,yr,4,1,"td",7),t._uU(39,"\n "),t.YNc(40,Sr,3,3,"td",7),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n ")),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,9,"labels.heading.Account Summary")),t.xp6(10),t.Oqu(t.lcZ(15,11,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(19,13,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(36,17,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId)}}function Dr(n,o){if(1&n&&(t.TgZ(0,"div",3),t._uU(1,"\n\n "),t.TgZ(2,"div",4),t._uU(3,"\n "),t.YNc(4,Xs,65,29,"div",5),t._uU(5,"\n\n "),t.YNc(6,Ks,35,16,"ng-template",null,6,t.W1O),t._uU(8,"\n\n "),t.YNc(9,er,16,5,"div",7),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.YNc(12,Mr,100,43,"div",8),t._uU(13,"\n\n "),t.YNc(14,qr,46,19,"ng-template",null,9,t.W1O),t._uU(16,"\n\n"),t.qZA()),2&n){const e=t.MAs(7),a=t.MAs(15),i=t.oxw();t.xp6(4),t.Q6J("ngIf",!i.savingsAccountData.status.rejected&&!i.savingsAccountData.status.submittedAndPendingApproval)("ngIfElse",e),t.xp6(5),t.Q6J("ngIf",!i.savingsAccountData.status.rejected&&!i.savingsAccountData.status.submittedAndPendingApproval),t.xp6(3),t.Q6J("ngIf",i.isActive)("ngIfElse",a)}}const Ir=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Xi,resolve:{savingsAccountTemplate:X}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:nn,resolve:{savingsAccountData:j.X,savingsDatatables:_t.N},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:(()=>{class n{constructor(e,a){this.route=e,this.router=a,this.isLoading=!0,this.isActive=!1,this.route.parent.parent.data.subscribe(i=>{this.savingsAccountData=i.savingsAccountData,this.currency=this.savingsAccountData.currency,this.isLoading=!1,this.isActive="Active"===this.savingsAccountData.status.value}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-general-tab"]],decls:5,vars:2,consts:[["mode","indeterminate",4,"ngIf"],["class","savings-account-tables","fxLayout","row","fxLayoutGap","2%",4,"ngIf"],["mode","indeterminate"],["fxLayout","row","fxLayoutGap","2%",1,"savings-account-tables"],["fxFlex","49%","fxLayout","column","fxLayoutGap","4%"],[4,"ngIf","ngIfElse"],["alternateDetails",""],[4,"ngIf"],["fxFlex","49%",4,"ngIf","ngIfElse"],["alternateSummary",""],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],["fxFlex","49%"],[4,"mifosxHasPermission"]],template:function(e,a){1&e&&(t._uU(0,"\n"),t.YNc(1,Ws,1,0,"mat-progress-bar",0),t._uU(2,"\n\n"),t.YNc(3,Dr,17,5,"div",1),t._uU(4,"\n")),2&e&&(t.xp6(1),t.Q6J("ngIf",a.isLoading),t.xp6(2),t.Q6J("ngIf",!a.isLoading))},dependencies:[f.O5,u.xw,u.SQ,u.yH,zs.pW,rt.e,S.A,f.H9,U.X$,q.E,J.w,ut.D]}),n})()}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Pn},{path:"export",component:yc}]},{path:"charges",component:za,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:vo,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Ss,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:qs}},{path:"documents",component:Ps,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:Ds}},{path:"datatables",children:[{path:":datatableName",component:Co,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:mt.X}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:uc,resolve:{savingsAccountAndTemplate:ft}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:pc,resolve:{transactionDatatables:dt},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:js,resolve:{savingsAccountTransaction:At}},{path:"datatables",children:[{path:":datatableName",component:Mn,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:pt}}]}]},{path:"edit",component:Yc,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:Tt}},{path:"reciept",component:Oc,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:Ct}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:bc,resolve:{savingsAccountData:j.X,savingsAccountCharge:ht}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:la,resolve:{savingsAccountActionData:vt}},{path:":savingAccountId/transfer-funds",loadChildren:()=>m.e("default-src_app_account-transfers_account-transfers_module_ts").then(m.bind(m,69193)).then(n=>n.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Vc,resolve:{groupsData:bs.p,savingsAccountTemplate:X}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:Ts,resolve:{gsimData:xt,savingAccountData:j.X,groupsData:Ut.c}}]}]}]}];let Nr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[j.X,_t.N,mt.X,pt,dt,X,ft,At,ht,vt,Ct,Tt,xs.a,Ut.c,xt],imports:[l.Bz.forChild(Ir),l.Bz]}),n})();var Fr=m(87734),Lr=m(35503),kr=m(78434);let Yr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Fr.m,Lr.D,kr.o,Nr]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["src_app_savings_savings_module_ts"],{62811:(Hr,nt,m)=>{m.r(nt),m.d(nt,{SavingsModule:()=>Er});var l=m(83689),R=m(13450),t=m(94650),h=m(65412),x=m(4859);const bt=function(){return{confirm:!0}};let Ot=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-calculate-interest-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Calculate Interest"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to calculate interest ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,bt)))},dependencies:[x.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();var T=m(49274);const Pt=function(){return{confirm:!0}};let Mt=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._uU(3,"\n"),t.TgZ(4,"div",1),t._uU(5,"\n "),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n"),t.qZA(),t._uU(10,"\n"),t.TgZ(11,"mat-dialog-actions",2),t._uU(12,"\n "),t.TgZ(13,"button",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"button",4),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n"),t.qZA(),t._uU(21,"\n")),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"labels.heading.Post Interest")),t.xp6(6),t.hij("",t.lcZ(8,7,"labels.text.Are you sure you want to post interest")," ?"),t.xp6(7),t.Oqu(t.lcZ(15,9,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("mat-dialog-close",t.DdM(13,Pt)),t.xp6(1),t.Oqu(t.lcZ(19,11,"labels.buttons.Confirm")))},dependencies:[x.lW,h.ZT,h.uh,h.xY,h.H8,T.X$]}),n})();const yt=function(){return{confirm:!0}};let et=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(1),t.hij("",a.data.isEnable?"Enable":"Disable"," Withhold Tax"),t.xp6(5),t.hij("Are you sure you want to ",a.data.isEnable?"enable":"disable"," withhold tax for this account ?"),t.xp6(8),t.s9C("color",a.data.isEnable?"accent":"warn"),t.Q6J("mat-dialog-close",t.DdM(4,yt)))},dependencies:[x.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();class St{constructor(o,e){this.setOptions(o),this.setButtons(o,e)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(o,e){switch(o){case"Active":this.buttonsArray=[],e.block?this.buttonsArray=[{name:"Unblock Account",icon:"lock-open",taskPermissionName:"UNBLOCK_SAVINGSACCOUNT"}]:(e.blockCredit?this.buttonsArray.push({name:"Unblock Deposit",icon:"lock-open",taskPermissionName:"UNBLOCKDEPOSIT_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_SAVINGSACCOUNT"},{name:"Block Deposit",icon:"lock",taskPermissionName:"BLOCKDEPOSIT_SAVINGSACCOUNT"}),e.blockDebit?this.buttonsArray.push({name:"Unblock Withdrawal",icon:"lock-open",taskPermissionName:"UNBLOCKWITHDRAWAL_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Withdrawal",icon:"arrow-down",taskPermissionName:"WITHDRAWAL_SAVINGSACCOUNT"},{name:"Block Withdrawal",icon:"lock",taskPermissionName:"BLOCKWITHDRAWAL_SAVINGSACCOUNT"}),this.buttonsArray=this.buttonsArray.concat([{name:"Block Account",icon:"lock",taskPermissionName:"BLOCK_SAVINGSACCOUNT"},{name:"Hold Amount",icon:"lock",taskPermissionName:"HOLDAMOUNT_SAVINGSACCOUNT"},{name:"Calculate Interest",icon:"table",taskPermissionName:"CALCULATEINTEREST_SAVINGSACCOUNT"},{name:"Post Interest As On",icon:"arrow-right",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"}]));break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pen",taskPermissionName:"UPDATE_SAVINGSACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SAVINGSACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SAVINGSACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SAVINGSACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"}];break;default:this.buttonsArray=[]}}setOptions(o){switch(o){case"Active":this.optionArray=[{name:"Post Interest",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Close",taskPermissionName:"CLOSE_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SAVINGSACCOUNT"},{name:"Withdraw By Client",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Delete",taskPermissionName:"DELETE_SAVINGSACCOUNT"}];break;default:this.optionArray=[]}}addOption(o){this.optionArray.push(o)}}var qt=m(89517),C=m(59349),f=m(36895),P=m(92216),u=m(1576),G=m(55829),d=m(73546),at=m(97392),Dt=m(96338),N=m(28255),E=m(3848),B=m(10266),wt=m(15705),S=m(30998),ot=m(87197);function It(n,o){if(1&n&&(t._UZ(0,"i",23),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function Nt(n,o){if(1&n&&(t._UZ(0,"i",23),t.ALo(1,"statusLookup")),2&n){const e=t.oxw();t.Q6J("ngClass",t.lcZ(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function Ft(n,o){if(1&n&&(t.TgZ(0,"span",9),t._uU(1,"\n "),t._UZ(2,"mifosx-account-number",10),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("accountNo",e.savingsAccountData.clientAccountNo)}}function Lt(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table",11),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"td",24),t._uU(17),t.ALo(18,"currency"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",24),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij(" ",t.lcZ(4,5,"labels.heading.Account Overview")," "),t.xp6(10),t.Oqu(t.lcZ(14,7,"labels.inputs.Current Balance")),t.xp6(4),t.Oqu(t.gM2(18,9,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")),t.xp6(7),t.Oqu(t.lcZ(25,14,"labels.inputs.Available Balance")),t.xp6(4),t.Oqu(t.gM2(29,16,e.savingsAccountData.summary.availableBalance,e.currency.code,"symbol-narrow","1.2-2"))}}function kt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw();return t.KtG(c.doAction(i.name))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon",27),t._uU(3,"\n "),t._UZ(4,"fa-icon",28),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"span"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(4),t.s9C("icon",e.icon),t.xp6(4),t.hij(" ",t.lcZ(9,2,"labels.menus."+e.name)," ")}}function Yt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,kt,11,4,"button",25),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function Jt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.doAction(i.name))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.menus."+e.name))}}function Qt(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Jt,3,3,"button",25),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission",e.taskPermissionName)}}function Rt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.TgZ(2,"button",29),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-menu",null,30),t._uU(8,"\n "),t.YNc(9,Qt,4,1,"span",20),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n "),t.BQk()),2&n){const e=t.MAs(7),a=t.oxw();t.xp6(2),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Oqu(t.lcZ(4,3,"labels.menus.More")),t.xp6(6),t.Q6J("ngForOf",a.buttonConfig.options)}}const Gt=function(){return["./notes"]};function Et(n,o){if(1&n&&(t.TgZ(0,"a",32,39),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Gt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Notes"),"\n ")}}const Bt=function(){return["./standing-instructions"]};function Ht(n,o){if(1&n&&(t.TgZ(0,"a",32,41),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("routerLink",t.DdM(5,Bt))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(3,3,"labels.inputs.Standing Instructions"),"\n ")}}function jt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Ht,4,6,"a",40),t._uU(3,"\n "),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.clientId)}}const zt=function(n){return["./datatables",n]};function Wt(n,o){if(1&n&&(t.TgZ(0,"a",32,42),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,zt,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function Vt(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Wt,3,5,"a",37),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const $t=function(){return["./general"]},Xt=function(){return["./transactions"]},Kt=function(){return["./charges"]},tn=function(){return["./documents"]};function nn(n,o){if(1&n&&(t.TgZ(0,"nav",31),t._uU(1,"\n "),t.TgZ(2,"a",32,33),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"a",32,34),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.TgZ(12,"a",32,35),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"a",32,36),t._uU(19),t.ALo(20,"translate"),t.qZA(),t._uU(21,"\n "),t.YNc(22,Et,4,6,"a",37),t._uU(23,"\n "),t.YNc(24,jt,4,1,"ng-container",38),t._uU(25,"\n "),t.YNc(26,Vt,4,1,"ng-container",20),t._uU(27,"\n "),t.qZA()),2&n){const e=t.MAs(3),a=t.MAs(8),i=t.MAs(13),c=t.MAs(18),r=t.oxw();t.xp6(2),t.Q6J("routerLink",t.DdM(23,$t))("active",e.isActive),t.xp6(2),t.hij("\n ",t.lcZ(5,15,"labels.inputs.General"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(24,Xt))("active",a.isActive),t.xp6(2),t.hij("\n ",t.lcZ(10,17,"labels.inputs.Transactions"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(25,Kt))("active",i.isActive),t.xp6(2),t.hij("\n ",t.lcZ(15,19,"labels.inputs.Charges"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(26,tn))("active",c.isActive),t.xp6(2),t.hij("\n ",t.lcZ(20,21,"labels.inputs.Documents"),"\n "),t.xp6(3),t.Q6J("mifosxHasPermission","READ_SAVINGSNOTE"),t.xp6(2),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngForOf",r.savingsDatatables)}}let en=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.savingsService=i,this.translateService=c,this.dialog=r,this.isActive=!1,this.route.data.subscribe(g=>{this.savingsAccountData=g.savingsAccountData,this.currency=this.savingsAccountData.currency,this.savingsDatatables=g.savingsDatatables}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){const e=this.savingsAccountData.status.value;this.isActive="Active"===e,this.buttonConfig=new St(e,this.savingsAccountData.subStatus),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.buttonConfig.addOption(this.savingsAccountData.fieldOfficerId?{name:"Unassign Staff",taskPermissionName:"REMOVESAVINGSOFFICER_SAVINGSACCOUNT"}:{name:"Assign Staff",taskPermissionName:"UPDATESAVINGSOFFICER_SAVINGSACCOUNT"}),this.savingsAccountData.charges&&this.savingsAccountData.charges.forEach(c=>{"Annual fee - INR"===c.name&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.savingsAccountData.taxGroup&&this.buttonConfig.addOption(this.savingsAccountData.withHoldTax?{name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}:{name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"})}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}doAction(e){switch(e){case"Approve":case"Reject":case"Deposit":case"Activate":case"Close":case"Undo Approval":case"Post Interest As On":case"Assign Staff":case"Add Charge":case"Hold Amount":case"Block Account":case"Block Deposit":case"Block Withdrawal":case"Unassign Staff":case"Withdraw By Client":case"Apply Annual Fees":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Withdrawal":this.router.navigate(["actions/Withdrawal"],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSavingsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break;case"Transfer Funds":this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:{savingsId:this.savingsAccountData.id,accountType:"fromsavings"}});break;case"Unblock Account":case"Unblock Deposit":case"Unblock Withdrawal":this.unblockSavingsAccount(e)}}deleteSavingsAccount(){this.dialog.open(R.F,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(Ot).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(Mt).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(et,{data:{isEnable:!0}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(et,{data:{isEnable:!1}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){const a=this.dialog.open(qt.z,{data:{heading:this.translateService.instant("labels.heading.Savings Account"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want")+e+this.translateService.instant("this Savings Account")}});let i="unblock";"Unblock Deposit"===e&&(i="unblockCredit"),"Unblock Withdrawal"===e&&(i="unblockDebit"),a.afterClosed().subscribe(c=>{c.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,i,{}).subscribe(()=>{this.reload()})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.d),t.Y36(T.sK),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-view"]],decls:76,vars:24,consts:[[1,"account-card"],["fxLayout","column",1,"header"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex","60%"],["class","fa fa-stop",3,"ngClass","matTooltip",4,"ngIf"],[1,"m-l-10"],[3,"accountNo"],[1,"account-overview"],["class","m-l-10",4,"ngIf"],[4,"ngIf"],["fxFlex","auto"],["fxFlex","5%"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["accountMenu","matMenu"],[4,"ngFor","ngForOf"],[1,"content"],["mat-tab-nav-bar","","class","navigation-tabs",4,"ngIf"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["More","matMenu"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["savingsDocuments","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[4,"mifosxHasPermission"],["notes","routerLinkActive"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngIf"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card-header",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-card-title-group",2),t._uU(5,"\n\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"div"),t._uU(9,"\n "),t._UZ(10,"img",4),t.ALo(11,"translate"),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n\n "),t.TgZ(15,"div",5),t._uU(16,"\n "),t.TgZ(17,"mat-card-title",6),t._uU(18,"\n "),t.TgZ(19,"div",7),t._uU(20,"\n "),t.TgZ(21,"h3"),t._uU(22,"\n "),t.YNc(23,It,2,4,"i",8),t._uU(24,"\n "),t.YNc(25,Nt,2,4,"i",8),t._uU(26),t.ALo(27,"translate"),t.TgZ(28,"span",9),t._uU(29,"\n "),t._UZ(30,"mifosx-account-number",10),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"span",11),t._uU(34),t.ALo(35,"translate"),t.ALo(36,"translate"),t.YNc(37,Ft,4,1,"span",12),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.YNc(41,Lt,34,21,"div",13),t._uU(42,"\n\n "),t._UZ(43,"span",14),t._uU(44,"\n\n "),t.TgZ(45,"div",15),t._uU(46,"\n "),t.TgZ(47,"button",16),t._uU(48,"\n "),t.TgZ(49,"mat-icon",17),t._uU(50,"\n "),t._UZ(51,"fa-icon",18),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n\n "),t.TgZ(58,"mat-menu",null,19),t._uU(60,"\n "),t.YNc(61,Yt,4,1,"ng-container",20),t._uU(62,"\n\n "),t.YNc(63,Rt,12,5,"ng-container",13),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"mat-card-content",21),t._uU(69,"\n\n "),t.YNc(70,nn,28,27,"nav",22),t._uU(71,"\n\n "),t._UZ(72,"router-outlet"),t._uU(73,"\n\n "),t.qZA(),t._uU(74,"\n\n"),t.qZA(),t._uU(75,"\n")),2&e){const i=t.MAs(59);t.xp6(10),t.s9C("matTooltip",t.lcZ(11,16,"tooltips.Savings Account")),t.Q6J("src","assets/images/savings_account_placeholder.png",t.LSH),t.xp6(13),t.Q6J("ngIf",!a.savingsAccountData.subStatus.block),t.xp6(2),t.Q6J("ngIf",a.savingsAccountData.subStatus.block),t.xp6(1),t.AsE("\n ",t.lcZ(27,18,"labels.inputs.Savings Product")," : ",a.savingsAccountData.savingsProductName,""),t.xp6(4),t.s9C("accountNo",a.savingsAccountData.accountNo),t.xp6(4),t.lnq("\n ",t.lcZ(35,20,"labels.text."+a.entityType)," ",t.lcZ(36,22,"labels.inputs.name"),": ",a.savingsAccountData.clientName||a.savingsAccountData.groupName,"\n "),t.xp6(3),t.Q6J("ngIf",a.savingsAccountData.clientAccountNo),t.xp6(4),t.Q6J("ngIf",!a.savingsAccountData.status.rejected&&!a.savingsAccountData.status.submittedAndPendingApproval),t.xp6(6),t.Q6J("matMenuTriggerFor",i),t.xp6(14),t.Q6J("ngForOf",a.buttonConfig.singleButtons),t.xp6(2),t.Q6J("ngIf",a.buttonConfig.options&&!a.savingsAccountData.subStatus.block),t.xp6(7),t.Q6J("ngIf",a.isActive)}},dependencies:[f.mk,f.sg,f.O5,P.BN,u.xw,u.yH,G.oO,x.lW,d.a8,d.dk,d.C1,d.dn,d.n5,d.nc,at.Hw,Dt.Nh,N.VK,N.OP,N.p6,E.BU,E.Nj,B.gM,wt.t,S.A,l.lC,l.yS,l.Od,f.H9,T.X$,ot.F]}),n})();var s=m(24006),H=m(98739),W=m(96308),_=m(30671),Z=m(73426),U=m(99639),it=m(29243),j=m(56709),V=m(5510),q=m(35769),Q=m(39122),D=m(35844);const an=function(){return["export"]};function on(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",30),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",31),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.hideReversed())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-checkbox",31),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.hideAccruals())}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t._uU(10,"\n "),t.TgZ(11,"button",32),t._uU(12),t.ALo(13,"translate"),t.qZA(),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hideReversedParam),t.xp6(1),t.hij("\n ",t.lcZ(4,6,"labels.inputs.Hide Reversed"),""),t.xp6(3),t.Q6J("formControl",e.hideAccrualsParam),t.xp6(1),t.hij("\n ",t.lcZ(8,8,"labels.inputs.Hide Accruals"),""),t.xp6(4),t.Q6J("routerLink",t.DdM(12,an)),t.xp6(1),t.Oqu(t.lcZ(13,10,"labels.buttons.Export"))}}function cn(n,o){1&n&&(t.TgZ(0,"th",33),t._uU(1," # "),t.qZA())}function sn(n,o){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=o.index;t.xp6(1),t.Oqu(e+1)}}function rn(n,o){1&n&&(t.TgZ(0,"th",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Id")," "))}function un(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",35),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.showTransactions(c))}),t._uU(1),t.qZA()}if(2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",e.id," ")}}function ln(n,o){1&n&&(t.TgZ(0,"th",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Date")," "))}function gn(n,o){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.date)," ")}}function mn(n,o){1&n&&(t.TgZ(0,"th",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.External Id")," "))}function pn(n,o){if(1&n&&(t.TgZ(0,"td",37),t._uU(1," \n "),t._UZ(2,"mifosx-external-identifier",38),t._uU(3,"\n "),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(2),t.s9C("externalId",e.externalId)}}function _n(n,o){1&n&&(t.TgZ(0,"th",39),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Transaction Type")," "))}function dn(n,o){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.transactionType.value)," ")}}function fn(n,o){1&n&&(t.TgZ(0,"th",40),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Debit")," "))}function An(n,o){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?t.lcZ(2,2,e.amount):"N/A"," ")}}function hn(n,o){1&n&&(t.TgZ(0,"th",40),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Credit")," "))}function vn(n,o){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",a.isDebit(e.transactionType)?"N/A":t.lcZ(2,2,e.amount)," ")}}function Cn(n,o){1&n&&(t.TgZ(0,"th",40),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Balance")," "))}function xn(n,o){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.Q6J("ngClass",a.savingsTransactionColor(e)),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.runningBalance)," ")}}function Tn(n,o){1&n&&(t.TgZ(0,"th",39),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Un(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",45),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw().$implicit,r=t.oxw();return t.KtG(r.undoTransaction(c,i))}),t._uU(1,"\n "),t.TgZ(2,"mat-icon"),t._UZ(3,"fa-icon",52),t.qZA(),t._uU(4,"\n "),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8,"\n "),t.qZA()}2&n&&(t.xp6(6),t.Oqu(t.lcZ(7,1,"tooltips.Undo Transaction")))}const Zn=function(n){return[n,"reciept"]},bn=function(n){return["/","journal-entry","view",n]};function On(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",42),t._uU(1,"\n "),t.TgZ(2,"button",43),t._uU(3,"\n "),t.TgZ(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-menu",null,44),t._uU(10,"\n "),t.TgZ(11,"button",45),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.showTransactions(c))}),t._uU(12,"\n "),t.TgZ(13,"mat-icon"),t._UZ(14,"fa-icon",46),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"span"),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,Un,9,3,"button",47),t._uU(22," \n "),t.TgZ(23,"button",48),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(24,"\n "),t.TgZ(25,"mat-icon"),t._UZ(26,"fa-icon",49),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"span"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",50),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw();return t.KtG(c.routeEdit(i))}),t._uU(34,"\n "),t.TgZ(35,"mat-icon"),t._UZ(36,"fa-icon",51),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"span"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA()}if(2&n){const e=o.$implicit,a=t.MAs(9);t.xp6(2),t.Q6J("matMenuTriggerFor",a),t.xp6(15),t.Oqu(t.lcZ(18,7,"labels.text.View Transaction")),t.xp6(4),t.Q6J("mifosxHasPermission","ADJUST_LOAN"),t.xp6(2),t.Q6J("routerLink",t.VKq(13,Zn,e.id)),t.xp6(6),t.Oqu(t.lcZ(30,9,"tooltips.View Receipts")),t.xp6(4),t.Q6J("routerLink",t.VKq(15,bn,"S"+e.id)),t.xp6(6),t.Oqu(t.lcZ(40,11,"tooltips.View Journal Entries"))}}function Pn(n,o){1&n&&t._UZ(0,"tr",53)}function Mn(n,o){1&n&&t._UZ(0,"tr",54)}const yn=function(){return[50,100,200]};let Sn=(()=>{class n{constructor(e,a,i,c,r,g){this.route=e,this.router=a,this.savingsService=i,this.settingsService=c,this.dialog=r,this.dateUtils=g,this.transactionsData=[],this.displayedColumns=["row","id","date","externalId","transactionType","debit","credit","balance","actions"],this.accountWithTransactions=!1,this.route.parent.parent.data.subscribe(v=>{this.transactionsData=v.savingsAccountData.transactions,this.status=v.savingsAccountData.status.value}),this.accountId=this.route.parent.parent.snapshot.params.savingAccountId}ngOnInit(){this.hideAccrualsParam=new s.p4(!1),this.hideReversedParam=new s.p4(!1),this.setTransactions()}setTransactions(){this.dataSource=new _.by(this.transactionsData),this.accountWithTransactions=this.transactionsData&&this.transactionsData.length>0,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}isDebit(e){return!0===e.withdrawal||!0===e.feeDeduction||!0===e.overdraftInterest||!0===e.withholdTax}isAccrual(e){return e.accrual||"savingsAccountTransactionType.accrual"===e.code}checkStatus(){return"Active"===this.status||"Closed"===this.status||"Transfer in progress"===this.status||"Transfer on hold"===this.status||"Premature Closed"===this.status||"Matured"===this.status}showTransactions(e){this.router.navigate(e.transfer?[`../transfer-funds/account-transfers/${e.transfer.id}`]:[e.id,"general"],{relativeTo:this.route})}routeEdit(e){e.stopPropagation()}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,!this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(!this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,a){let i=this.transactionsData;(a||e)&&(i=this.transactionsData.filter(c=>!(e&&c.reversed||a&&c.transactionType.accrual))),this.dataSource=new _.by(i),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}undoTransaction(e){this.dialog.open(it.z).afterClosed().subscribe(i=>{if(i.confirm){const c=this.settingsService.language.code,r=this.settingsService.dateFormat,g={transactionDate:this.dateUtils.parseDate(e.date),transactionAmount:0,dateFormat:r,locale:c};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",g,e.id).subscribe(()=>{this.reload()})}})}reload(){const a=this.router.url;this.router.navigateByUrl(`/clients/${this.route.parent.parent.snapshot.params.clientId}/savings-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([a]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.d),t.Y36(U.g),t.Y36(h.uw),t.Y36(Z.L))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-transactions-tab"]],viewQuery:function(e,a){if(1&e&&(t.Gf(H.NW,7),t.Gf(W.YE,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first),t.iGM(i=t.CRH())&&(a.sort=i.first)}},decls:99,vars:15,consts:[[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25",3,"hidden"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20","fxLayout","row","fxLayoutGap","20px",4,"ngIf"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","externalId"],["matColumnDef","transactionType"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","debit"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["fxLayout","row","fxLayoutGap","20px",1,"action-button","m-b-20"],[1,"accruals",3,"formControl","click"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngClass","click"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell","",3,"ngClass"],[3,"externalId"],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount",3,"ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["transactionMenu","matMenu"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",1,"account-action-button",3,"routerLink","click"],["icon","receipt","size","sm"],["mat-menu-item","",3,"routerLink","click"],["icon","table-cells","size","sm"],["icon","undo","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"div",3),t._uU(7,"\n "),t.TgZ(8,"h3"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n "),t.YNc(13,on,15,13,"div",4),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"table",5),t._uU(17,"\n\n "),t.ynx(18,6),t._uU(19,"\n "),t.YNc(20,cn,2,0,"th",7),t._uU(21,"\n "),t.YNc(22,sn,2,1,"td",8),t._uU(23,"\n "),t.BQk(),t._uU(24,"\n\n "),t.ynx(25,9),t._uU(26,"\n "),t.YNc(27,rn,3,3,"th",7),t._uU(28,"\n "),t.YNc(29,un,2,2,"td",10),t._uU(30,"\n "),t.BQk(),t._uU(31,"\n\n "),t.ynx(32,11),t._uU(33,"\n "),t.YNc(34,ln,3,3,"th",12),t._uU(35,"\n "),t.YNc(36,gn,3,4,"td",13),t._uU(37,"\n "),t.BQk(),t._uU(38,"\n\n "),t.ynx(39,14),t._uU(40,"\n "),t.YNc(41,mn,3,3,"th",7),t._uU(42,"\n "),t.YNc(43,pn,4,2,"td",13),t._uU(44,"\n "),t.BQk(),t._uU(45,"\n\n "),t.ynx(46,15),t._uU(47,"\n "),t.YNc(48,_n,3,3,"th",16),t._uU(49,"\n "),t.YNc(50,dn,3,4,"td",13),t._uU(51,"\n "),t.BQk(),t._uU(52,"\n\n "),t.ynx(53,17),t._uU(54,"\n "),t.YNc(55,fn,3,3,"th",18),t._uU(56,"\n "),t.YNc(57,An,3,4,"td",19),t._uU(58,"\n "),t.BQk(),t._uU(59,"\n\n "),t.ynx(60,20),t._uU(61,"\n "),t.YNc(62,hn,3,3,"th",18),t._uU(63,"\n "),t.YNc(64,vn,3,4,"td",19),t._uU(65,"\n "),t.BQk(),t._uU(66,"\n\n "),t.ynx(67,21),t._uU(68,"\n "),t.YNc(69,Cn,3,3,"th",18),t._uU(70,"\n "),t.YNc(71,xn,3,4,"td",19),t._uU(72,"\n "),t.BQk(),t._uU(73,"\n\n "),t.ynx(74,22),t._uU(75,"\n "),t.YNc(76,Tn,3,3,"th",16),t._uU(77,"\n "),t.YNc(78,On,44,17,"td",23),t._uU(79,"\n "),t.BQk(),t._uU(80,"\n\n "),t.YNc(81,Pn,1,0,"tr",24),t._uU(82,"\n "),t.YNc(83,Mn,1,0,"tr",25),t._uU(84,"\n\n "),t.qZA(),t._uU(85,"\n\n "),t._UZ(86,"mat-paginator",26),t._uU(87,"\n\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",27),t._uU(90,"\n "),t.TgZ(91,"div",28),t._uU(92,"\n "),t._UZ(93,"i",29),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.qZA(),t._uU(97,"\n"),t.qZA(),t._uU(98,"\n")),2&e&&(t.xp6(2),t.Q6J("hidden",!a.accountWithTransactions),t.xp6(7),t.Oqu(t.lcZ(10,10,"labels.heading.All Transactions")),t.xp6(4),t.Q6J("ngIf",a.checkStatus()),t.xp6(3),t.Q6J("dataSource",a.dataSource),t.xp6(65),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSize",50)("pageSizeOptions",t.DdM(14,yn)),t.xp6(3),t.Q6J("hidden",a.accountWithTransactions),t.xp6(5),t.hij("\n ",t.lcZ(95,12,"labels.text.No transaction was found"),"\n "))},dependencies:[f.mk,f.O5,P.BN,u.xw,u.SQ,u.Wh,G.oO,x.lW,j.oG,at.Hw,N.VK,N.OP,N.p6,H.NW,W.YE,W.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,s.JJ,s.oH,V.e,S.A,l.rH,T.X$,q.E,Q.w,D.H],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#4461e2b3;border:1px solid #1a34a6;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var ct=m(45063);let qn=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(a=>{this.entityDatatable=a.transactionDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-transaction-tab"]],decls:5,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Saving Account Transaction",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[ct.j]}),n})();var M=m(3238),A=m(99602),p=m(59549),F=m(39349),O=m(284),y=m(84385),$=m(90455);function Dn(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Withdraw Money From Saving Account")))}function wn(n,o){1&n&&(t.TgZ(0,"h2",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Deposit Money To Saving Account")))}function In(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Nn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Fn(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Ln(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function kn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function Yn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function Jn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function Qn(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}const Rn=function(){return["../../transactions"]};let Gn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(v=>{this.paymentTypeOptions=v.savingsAccountActionData.paymentTypeOptions}),this.transactionCommand=this.route.snapshot.params.name.toLowerCase(),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.savingAccountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,s.kI.required],transactionAmount:[0,s.kI.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.savingAccountTransactionForm.addControl("accountNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("checkNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("routingCode",new s.p4("")),this.savingAccountTransactionForm.addControl("receiptNumber",new s.p4("")),this.savingAccountTransactionForm.addControl("bankNumber",new s.p4(""))):(this.savingAccountTransactionForm.removeControl("accountNumber"),this.savingAccountTransactionForm.removeControl("checkNumber"),this.savingAccountTransactionForm.removeControl("routingCode"),this.savingAccountTransactionForm.removeControl("receiptNumber"),this.savingAccountTransactionForm.removeControl("bankNumber"))}submit(){const e=this.savingAccountTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.savingAccountTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,this.transactionCommand,r).subscribe(g=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.L),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transactions"]],inputs:{currencyCode:"currencyCode"},decls:106,vars:41,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],["fxFlex","auto"],["type","number","formControlName","transactionAmount","required","","matInput","",1,"right-input"],["required","","formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,Dn,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,wn,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field",4),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(23);return t.KtG(r.open())}),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t._UZ(18,"input",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker-toggle",6),t._uU(21,"\n "),t._UZ(22,"mat-datepicker",null,7),t._uU(24,"\n "),t.YNc(25,In,8,9,"mat-error",8),t._uU(26,"\n "),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"mat-form-field",9),t._uU(29,"\n "),t.TgZ(30,"mat-label"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"span",10),t._uU(35),t.qZA(),t._uU(36,"\n "),t._UZ(37,"span",11),t._uU(38,"\n "),t._UZ(39,"input",12),t._uU(40,"\n "),t.YNc(41,Nn,8,9,"mat-error",8),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"mat-form-field"),t._uU(45,"\n "),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.TgZ(50,"mat-select",13),t._uU(51,"\n "),t.YNc(52,Fn,2,2,"mat-option",14),t._uU(53,"\n "),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n\n "),t.TgZ(56,"div",15),t._uU(57,"\n "),t.TgZ(58,"span",16),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(59,"\n "),t.TgZ(60,"mat-slide-toggle"),t._uU(61,"\n "),t.TgZ(62,"div",17),t._uU(63,"\n "),t.TgZ(64,"span",18),t._uU(65),t.ALo(66,"translate"),t.qZA(),t._uU(67,"\n "),t.qZA(),t._uU(68,"\n "),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.YNc(72,Ln,8,3,"mat-form-field",8),t._uU(73,"\n\n "),t.YNc(74,kn,8,3,"mat-form-field",8),t._uU(75,"\n\n "),t.YNc(76,Yn,8,3,"mat-form-field",8),t._uU(77,"\n\n "),t.YNc(78,Jn,8,3,"mat-form-field",8),t._uU(79,"\n\n "),t.YNc(80,Qn,8,3,"mat-form-field",8),t._uU(81,"\n\n "),t.TgZ(82,"mat-form-field"),t._uU(83,"\n "),t.TgZ(84,"mat-label"),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t._UZ(88,"textarea",19),t._uU(89,"\n "),t.qZA(),t._uU(90,"\n\n "),t.TgZ(91,"mat-card-actions",20),t._uU(92,"\n "),t.TgZ(93,"button",21),t._uU(94),t.ALo(95,"translate"),t.qZA(),t._uU(96,"\n "),t.TgZ(97,"button",22),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n\n "),t.qZA(),t._uU(102,"\n\n "),t.qZA(),t._uU(103,"\n\n "),t.qZA(),t._uU(104,"\n\n"),t.qZA(),t._uU(105,"\n")}if(2&e){const i=t.MAs(23);t.xp6(4),t.Q6J("ngIf",a.transactionType.withdrawal),t.xp6(2),t.Q6J("ngIf",a.transactionType.deposit),t.xp6(2),t.Q6J("formGroup",a.savingAccountTransactionForm),t.xp6(7),t.Oqu(t.lcZ(16,26,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(32,28,"labels.inputs.Transaction Amount")),t.xp6(4),t.Oqu(a.currencyCode),t.xp6(6),t.Q6J("ngIf",a.savingAccountTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(48,30,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.addPaymentDetailsFlag?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(66,32,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(2),t.Q6J("ngIf",a.addPaymentDetailsFlag),t.xp6(5),t.Oqu(t.lcZ(86,34,"labels.inputs.Notes")),t.xp6(8),t.Q6J("routerLink",t.DdM(40,Rn)),t.xp6(1),t.Oqu(t.lcZ(95,36,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingAccountTransactionForm.valid),t.xp6(1),t.Oqu(t.lcZ(99,38,"labels.buttons.Submit"))}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,F.IC,O.Nt,y.gD,$.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]}),n})();function En(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Approved On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Bn=function(){return["../../"]};let Hn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSavingsAccountForm()}createApproveSavingsAccountForm(){this.approveSavingsAccountForm=this.formBuilder.group({approvedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.approveSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(this.approveSavingsAccountForm.value.approvedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-approve-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["approvedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,En,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.approveSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Approved On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.approveSavingsAccountForm.controls.approvedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,Bn)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.approveSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,F.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function jn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Rejected On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const zn=function(){return["../../"]};let Wn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSavingsAccountForm()}createRejectSavingsAccountForm(){this.rejectSavingsAccountForm=this.formBuilder.group({rejectedOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.rejectSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(this.rejectSavingsAccountForm.value.rejectedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-reject-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["rejectedOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,jn,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.rejectSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Rejected On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.rejectSavingsAccountForm.controls.rejectedOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,zn)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.rejectSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,F.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Vn(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Activated On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const $n=function(){return["../../transactions"]};let Xn=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSavingsAccountForm()}createActivateSavingsAccountForm(){this.activateSavingsAccountForm=this.formBuilder.group({activatedOnDate:["",s.kI.required]})}submit(){const e=this.activateSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(this.activateSavingsAccountForm.value.activatedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-activate-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["activatedOnDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,Vn,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.activateSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Activated On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.activateSavingsAccountForm.controls.activatedOnDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,$n)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.activateSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,u.yH,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();const Kn=function(){return["../../"]};let te=(()=>{class n{constructor(e,a,i,c){this.formBuilder=e,this.savingsService=a,this.route=i,this.router=c,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.createUndoApprovalSavingsAccountForm()}createUndoApprovalSavingsAccountForm(){this.undoApprovalSavingsAccountForm=this.formBuilder.group({note:[""]})}submit(){const e={...this.undoApprovalSavingsAccountForm.value};this.savingsService.executeSavingsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-undo-approval-savings-account"]],decls:32,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex",""],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"textarea",3),t._uU(15,"\n "),t.qZA(),t._uU(16,"\n\n "),t.qZA(),t._uU(17,"\n\n "),t.TgZ(18,"mat-card-actions",4),t._uU(19,"\n "),t.TgZ(20,"button",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.TgZ(24,"button",6),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n"),t.qZA(),t._uU(31,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.undoApprovalSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,6,"labels.inputs.Note")),t.xp6(9),t.Q6J("routerLink",t.DdM(12,Kn)),t.xp6(1),t.Oqu(t.lcZ(22,8,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.undoApprovalSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(26,10,"labels.buttons.Confirm")))},dependencies:[u.xw,u.SQ,u.Wh,u.yH,x.lW,d.a8,d.dn,d.hq,p.KE,p.hX,F.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ne(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ee=function(){return["../../"]};let ae=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPostInterestSavingsAccountForm()}createPostInterestSavingsAccountForm(){this.postInterestSavingsAccountForm=this.formBuilder.group({transactionDate:["",s.kI.required]})}submit(){const e=this.postInterestSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.postInterestSavingsAccountForm.value.transactionDate,i));const r={...e,IsPostInterestAsOn:!0,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-post-interest-as-on-savings-account"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,ne,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.postInterestSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.postInterestSavingsAccountForm.controls.transactionDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,ee)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.postInterestSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,u.yH,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function oe(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function ie(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Assignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ce=function(){return["../../"]};let se=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fieldOfficerData=this.savingsAccountData.fieldOfficerOptions,this.createSavingsAssignStaffForm()}createSavingsAssignStaffForm(){this.savingsAssignStaffForm=this.formBuilder.group({toSavingsOfficerId:[""],assignmentDate:["",s.kI.required]})}submit(){const e=this.savingsAssignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(this.savingsAssignStaffForm.value.assignmentDate,i));const r={...e,fromSavingsOfficerId:"",dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-assign-staff"]],decls:54,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["fxFlex","48%"],["formControlName","toSavingsOfficerId"],[3,"value",4,"ngFor","ngForOf"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["assignmentDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",4),t._uU(17,"\n "),t.YNc(18,oe,2,2,"mat-option",5),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"mat-form-field",6),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(23,"\n "),t.TgZ(24,"mat-label"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",7),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",8),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,9),t._uU(34,"\n "),t.YNc(35,ie,8,9,"mat-error",10),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-card-actions",11),t._uU(41,"\n "),t.TgZ(42,"button",12),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"button",13),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n "),t.qZA(),t._uU(52,"\n\n"),t.qZA(),t._uU(53,"\n")}if(2&e){const i=t.MAs(33);t.xp6(4),t.Q6J("formGroup",a.savingsAssignStaffForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.To Savings Officer")),t.xp6(5),t.Q6J("ngForOf",a.fieldOfficerData),t.xp6(7),t.Oqu(t.lcZ(26,15,"labels.inputs.Assignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsAssignStaffForm.controls.assignmentDate.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,ce)),t.xp6(1),t.Oqu(t.lcZ(44,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsAssignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(48,19,"labels.buttons.Confirm"))}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.yH,M.ey,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,y.gD,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function re(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Unassignment Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const ue=function(){return["../../"]};let le=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsUnassignStaffForm()}createSavingsUnassignStaffForm(){this.savingsUnassignStaffForm=this.formBuilder.group({unassignedDate:["",s.kI.required]})}submit(){const e=this.savingsUnassignStaffForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.unassignedDate instanceof Date&&(e.unassignedDate=this.dateUtils.formatDate(this.savingsUnassignStaffForm.value.unassignedDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-unassign-staff"]],decls:39,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","unassignedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["unassignedDatePicker",""],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(19);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t._UZ(14,"input",3),t._uU(15,"\n "),t._UZ(16,"mat-datepicker-toggle",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker",null,5),t._uU(20,"\n "),t.YNc(21,re,8,9,"mat-error",6),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-card-actions",7),t._uU(26,"\n "),t.TgZ(27,"button",8),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"button",9),t._uU(32),t.ALo(33,"translate"),t.qZA(),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n"),t.qZA(),t._uU(38,"\n")}if(2&e){const i=t.MAs(19);t.xp6(4),t.Q6J("formGroup",a.savingsUnassignStaffForm),t.xp6(7),t.Oqu(t.lcZ(12,11,"labels.inputs.Unassignment Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.savingsUnassignStaffForm.controls.unassignedDate.hasError("required")),t.xp6(6),t.Q6J("routerLink",t.DdM(17,ue)),t.xp6(1),t.Oqu(t.lcZ(29,13,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsUnassignStaffForm.valid),t.xp6(1),t.Oqu(t.lcZ(33,15,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,u.yH,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function ge(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Withdrawn On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const me=function(){return["../../"]};let pe=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawSavingsAccountForm()}createWithdrawSavingsAccountForm(){this.withdrawSavingsAccountForm=this.formBuilder.group({withdrawnOnDate:["",s.kI.required],note:[""]})}submit(){const e=this.withdrawSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(this.withdrawSavingsAccountForm.value.withdrawnOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",r).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-withdraw-by-client-savings-account"]],decls:51,vars:21,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["withdrawnOnDatePicker",""],[4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,ge,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"textarea",8),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n\n "),t.qZA(),t._uU(35,"\n\n "),t.qZA(),t._uU(36,"\n\n "),t.TgZ(37,"mat-card-actions",9),t._uU(38,"\n "),t.TgZ(39,"button",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42,"\n "),t.TgZ(43,"button",11),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.qZA(),t._uU(47,"\n\n "),t.qZA(),t._uU(48,"\n\n "),t.qZA(),t._uU(49,"\n\n"),t.qZA(),t._uU(50,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.withdrawSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,12,"labels.inputs.Withdrawn On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.withdrawSavingsAccountForm.controls.withdrawnOnDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,14,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(20,me)),t.xp6(1),t.Oqu(t.lcZ(41,16,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.withdrawSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(45,18,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,F.IC,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function _e(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name+" ("+e.currency.name+")","\n ")}}function de(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Charge")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function fe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ae(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function he(n,o){if(1&n&&(t.TgZ(0,"mat-option",10),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.value,"\n ")}}function ve(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due for collection on")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Ce(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",16),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,18),t._uU(12,"\n "),t.YNc(13,ve,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due for collection on")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.dueDate.hasError("required"))}}function xe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Te(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",19),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",17),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,20),t._uU(12,"\n "),t.YNc(13,xe,8,9,"mat-error",5),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Due On")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.savingsChargeForm.controls.feeOnMonthDay.hasError("required"))}}function Ue(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Repeats Every")))}function Ze(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field"),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",11),t._uU(9,"\n "),t.YNc(10,fe,8,9,"mat-error",5),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field"),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t.TgZ(19,"mat-select",12),t._uU(20,"\n "),t.YNc(21,Ae,2,2,"mat-option",4),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.TgZ(25,"mat-form-field"),t._uU(26,"\n "),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n "),t.TgZ(31,"mat-select",13),t._uU(32,"\n "),t.YNc(33,he,2,2,"mat-option",4),t._uU(34,"\n "),t.qZA(),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.YNc(37,Ce,15,8,"mat-form-field",14),t._uU(38,"\n\n "),t.YNc(39,Te,15,8,"mat-form-field",14),t._uU(40,"\n\n "),t.YNc(41,Ue,8,3,"mat-form-field",5),t._uU(42,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,9,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",e.savingsChargeForm.controls.amount.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(17,11,"labels.inputs.Charge Calculation")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeCalculationTypeOptions),t.xp6(7),t.Oqu(t.lcZ(29,13,"labels.inputs.Charge time type")),t.xp6(5),t.Q6J("ngForOf",e.chargeDetails.chargeTimeTypeOptions),t.xp6(4),t.Q6J("ngIf",e.savingsChargeForm.contains("dueDate")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeOnMonthDay")),t.xp6(2),t.Q6J("ngIf",e.savingsChargeForm.contains("feeInterval"))}}const be=function(){return["../../transactions"]};let Oe=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(v=>{this.savingsChargeOptions=v.savingsAccountActionData.chargeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsChargeForm(),this.buildDependencies()}buildDependencies(){this.savingsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(a=>{this.chargeDetails=a;const i=a.chargeTimeType.id;("Withdrawal Fee"===a.chargeTimeType.value||"Saving No Activity Fee"===a.chargeTimeType.value)&&(this.chargeDetails.dueDateNotRequired=!0),("Annual Fee"===a.chargeTimeType.value||"Monthly Fee"===a.chargeTimeType.value)&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),this.chargeDetails.dueDateNotRequired||this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.removeControl("dueDate"):this.savingsChargeForm.addControl("dueDate",new s.p4("",s.kI.required)),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("feeOnMonthDay",new s.p4("",s.kI.required)):this.savingsChargeForm.removeControl("feeOnMonthDay"),"Monthly Fee"===i.value?this.savingsChargeForm.addControl("feeInterval",new s.p4(a.feeInterval,s.kI.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:a.amount,chargeCalculationType:a.chargeCalculationType.id,chargeTimeType:a.chargeTimeType.id})})})}createSavingsChargeForm(){this.savingsChargeForm=this.formBuilder.group({chargeId:["",s.kI.required],amount:["",s.kI.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){const e=this.savingsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),!0!==this.chargeDetails.dueDateNotRequired)if(!0===this.chargeDetails.chargeTimeTypeAnnualOrMonth){const a="MMMM-dd";e.monthDayFormat=a,e.feeOnMonthDay&&(e.feeOnMonthDay=this.dateUtils.formatDate(this.savingsChargeForm.value.feeOnMonthDay,a))}else{const a=this.settingsService.dateFormat;e.dateFormat=a,e.dueDate&&(e.dueDate=this.dateUtils.formatDate(this.savingsChargeForm.value.dueDate,a))}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.L),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-add-charge-savings-account"]],decls:42,vars:16,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","chargeId"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click",4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["feeOnMonthDayPicker",""],["matInput","","formControlName","feeInterval"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"mat-form-field"),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.TgZ(16,"mat-select",3),t._uU(17,"\n "),t.YNc(18,_e,2,2,"mat-option",4),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.YNc(21,de,8,9,"mat-error",5),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n\n "),t.YNc(24,Ze,43,15,"div",6),t._uU(25,"\n\n "),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"mat-card-actions",7),t._uU(28,"\n "),t.TgZ(29,"button",8),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.qZA(),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(4),t.Q6J("formGroup",a.savingsChargeForm),t.xp6(9),t.Oqu(t.lcZ(14,9,"labels.inputs.Charge")),t.xp6(5),t.Q6J("ngForOf",a.savingsChargeOptions),t.xp6(3),t.Q6J("ngIf",a.savingsChargeForm.controls.chargeId.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.chargeDetails),t.xp6(5),t.Q6J("routerLink",t.DdM(15,be)),t.xp6(1),t.Oqu(t.lcZ(31,11,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.savingsChargeForm.valid),t.xp6(1),t.Oqu(t.lcZ(35,13,"labels.buttons.Submit")))},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,M.ey,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,y.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function Pe(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Closed On Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Me(n,o){1&n&&(t.TgZ(0,"mat-form-field",20),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",21),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Transaction Amount")))}function ye(n,o){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Se(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",22),t._uU(7,"\n "),t.YNc(8,ye,2,2,"mat-option",23),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Payment Type")),t.xp6(5),t.Q6J("ngForOf",e.paymentTypeOptions)}}function qe(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",25),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Account Number")))}function De(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",26),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Cheque")))}function we(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",27),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Routing Code")))}function Ie(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",28),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Receipt Number")))}function Ne(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",29),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Bank")))}function Fe(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t._uU(1,"\n\n "),t.YNc(2,Me,8,3,"mat-form-field",15),t._uU(3,"\n\n "),t.YNc(4,Se,11,4,"mat-form-field",7),t._uU(5,"\n\n "),t.TgZ(6,"div",16),t._uU(7,"\n "),t.TgZ(8,"span",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addPaymentDetails())}),t._uU(9,"\n "),t.TgZ(10,"mat-slide-toggle"),t._uU(11,"\n "),t.TgZ(12,"div",18),t._uU(13,"\n "),t.TgZ(14,"span",19),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.YNc(22,qe,8,3,"mat-form-field",7),t._uU(23,"\n\n "),t.YNc(24,De,8,3,"mat-form-field",7),t._uU(25,"\n\n "),t.YNc(26,we,8,3,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,Ie,8,3,"mat-form-field",7),t._uU(29,"\n\n "),t.YNc(30,Ne,8,3,"mat-form-field",7),t._uU(31,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.amount),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.paymentTypeId),t.xp6(8),t.Q6J("className",e.showPaymentDetails?"enabled":"disabled"),t.xp6(3),t.Oqu(t.lcZ(16,9,"labels.inputs.Show Payment Details")),t.xp6(7),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",e.closeSavingsAccountForm.controls.bankNumber)}}const Le=function(){return["../../"]};let ke=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(v=>{this.paymentTypeOptions=v.savingsAccountActionData[0].paymentTypeOptions,this.transactionAmount=v.savingsAccountActionData[1].summary.accountBalance}),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSavingsAccountForm(),this.buildDependencies()}createCloseSavingsAccountForm(){this.closeSavingsAccountForm=this.formBuilder.group({closedOnDate:["",s.kI.required],withdrawBalance:[!1],postInterestValidationOnClosure:[!1],note:[""]})}buildDependencies(){this.closeSavingsAccountForm.get("withdrawBalance").valueChanges.subscribe(e=>{e?(this.closeSavingsAccountForm.addControl("amount",new s.p4({value:this.transactionAmount,disabled:!0})),this.closeSavingsAccountForm.addControl("paymentTypeId",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("amount"),this.closeSavingsAccountForm.removeControl("paymentTypeId"))})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.closeSavingsAccountForm.addControl("accountNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("checkNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("routingCode",new s.p4("")),this.closeSavingsAccountForm.addControl("receiptNumber",new s.p4("")),this.closeSavingsAccountForm.addControl("bankNumber",new s.p4(""))):(this.closeSavingsAccountForm.removeControl("accountNumber"),this.closeSavingsAccountForm.removeControl("checkNumber"),this.closeSavingsAccountForm.removeControl("routingCode"),this.closeSavingsAccountForm.removeControl("receiptNumber"),this.closeSavingsAccountForm.removeControl("bankNumber"))}submit(){const e=this.closeSavingsAccountForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(this.closeSavingsAccountForm.value.closedOnDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountCommand(this.accountId,"close",r).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-close-savings-account"]],decls:61,vars:28,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["closedOnDatePicker",""],[4,"ngIf"],["formControlName","withdrawBalance",1,"m-b-25","m-t-15"],["formControlName","postInterestValidationOnClosure"],["fxLayout","column",4,"ngIf"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["class","m-t-20",4,"ngIf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],[1,"m-t-20"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Pe,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-checkbox",8),t._uU(27),t.ALo(28,"translate"),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-checkbox",9),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n\n "),t.YNc(34,Fe,32,11,"div",10),t._uU(35,"\n\n "),t.TgZ(36,"mat-form-field"),t._uU(37,"\n "),t.TgZ(38,"mat-label"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t._uU(41,"\n "),t._UZ(42,"textarea",11),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n\n "),t.qZA(),t._uU(45,"\n\n "),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"mat-card-actions",12),t._uU(48,"\n "),t.TgZ(49,"button",13),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n "),t.TgZ(53,"button",14),t._uU(54),t.ALo(55,"translate"),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n\n "),t.qZA(),t._uU(58,"\n\n "),t.qZA(),t._uU(59,"\n\n"),t.qZA(),t._uU(60,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.closeSavingsAccountForm),t.xp6(9),t.Oqu(t.lcZ(14,15,"labels.inputs.Closed On Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.closedOnDate.hasError("required")),t.xp6(4),t.hij("\n ",t.lcZ(28,17,"labels.inputs.Withdraw Balance"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(32,19,"labels.inputs.Is Interest Posting required on closure date"),"?\n "),t.xp6(3),t.Q6J("ngIf",a.closeSavingsAccountForm.controls.withdrawBalance.value),t.xp6(5),t.Oqu(t.lcZ(40,21,"labels.inputs.Note")),t.xp6(10),t.Q6J("routerLink",t.DdM(27,Le)),t.xp6(1),t.Oqu(t.lcZ(51,23,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.closeSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(55,25,"labels.buttons.Confirm"))}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,x.lW,d.a8,d.dn,d.hq,j.oG,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,F.IC,O.Nt,y.gD,$.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();function Ye(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Due Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function Je(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}const Qe=function(){return["../../"]};let Re=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplyAnnualFeesForm(),this.applyCharge()}createApplyAnnualFeesForm(){this.applyAnnualFeesForm=this.formBuilder.group({dueDate:["",s.kI.required],amount:[""]})}applyCharge(){this.savingsAccountData.charges.forEach(a=>{"Annual fee - INR"===a.name&&(this.chargeId=a.id,this.applyAnnualFeesForm.get("amount").patchValue(a.amount))})}submit(){const e=this.applyAnnualFeesForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(this.applyAnnualFeesForm.value.dueDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",r,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-apply-annual-fees-savings-account"]],decls:53,vars:22,consts:[[1,"container","mat-elevation-z8"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","amount","required","","matInput",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content"),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(21);return t.KtG(r.open())}),t._uU(11,"\n "),t.TgZ(12,"mat-label"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t._UZ(16,"input",4),t._uU(17,"\n "),t._UZ(18,"mat-datepicker-toggle",5),t._uU(19,"\n "),t._UZ(20,"mat-datepicker",null,6),t._uU(22,"\n "),t.YNc(23,Ye,8,9,"mat-error",7),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.TgZ(26,"mat-form-field"),t._uU(27,"\n "),t.TgZ(28,"mat-label"),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n "),t._UZ(32,"input",8),t._uU(33,"\n "),t.YNc(34,Je,8,9,"mat-error",7),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"mat-card-actions",9),t._uU(40,"\n "),t.TgZ(41,"button",10),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"button",11),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n\n "),t.qZA(),t._uU(50,"\n\n "),t.qZA(),t._uU(51,"\n\n"),t.qZA(),t._uU(52,"\n")}if(2&e){const i=t.MAs(21);t.xp6(4),t.Q6J("formGroup",a.applyAnnualFeesForm),t.xp6(9),t.Oqu(t.lcZ(14,13,"labels.inputs.Annual Fees Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.dueDate.hasError("required")),t.xp6(6),t.Oqu(t.lcZ(30,15,"labels.inputs.Amount")),t.xp6(5),t.Q6J("ngIf",a.applyAnnualFeesForm.controls.amount.hasError("required")),t.xp6(7),t.Q6J("routerLink",t.DdM(21,Qe)),t.xp6(1),t.Oqu(t.lcZ(43,17,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.applyAnnualFeesForm.valid),t.xp6(1),t.Oqu(t.lcZ(47,19,"labels.buttons.Confirm"))}},dependencies:[f.O5,u.xw,u.SQ,u.Wh,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]}),n})();var Ge=m(41659);function Ee(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Hold Amount")))}function Be(n,o){1&n&&(t.TgZ(0,"h2",11),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.heading.Block Savings Account")))}function He(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function je(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Reason")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function ze(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Date")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function We(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.YNc(13,ze,8,9,"mat-error",6),t._uU(14,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,6,"labels.inputs.Transaction Date")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(5),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.transactionDate.hasError("required"))}}function Ve(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.TgZ(4,"strong"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(1),t.AsE("\n ",t.lcZ(2,3,"labels.inputs.Transaction Amount")," ",t.lcZ(3,5,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"labels.commons.required")))}function $e(n,o){if(1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",17),t._uU(7,"\n "),t.YNc(8,Ve,8,9,"mat-error",6),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Transaction Amount")),t.xp6(5),t.Q6J("ngIf",e.manageSavingsAccountForm.controls.transactionAmount.hasError("required"))}}const Xe=function(){return["../../transactions"]};let Ke=(()=>{class n{constructor(e,a,i,c,r,g,v){this.formBuilder=e,this.savingsService=a,this.dateUtils=i,this.route=c,this.router=r,this.systemService=g,this.settingsService=v,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.reasonOptions=[],this.transactionType={holdamount:!1,blockaccount:!1,blockdeposit:!1,blockwithdrawal:!1},this.transactionCommand=this.route.snapshot.params.name.toLowerCase().replaceAll(" ",""),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createManageSavingsAccountForm(),(this.transactionType.holdamount||this.transactionType.blockaccount||this.transactionType.blockdeposit||this.transactionType.blockwithdrawal)&&this.getCodeValues()}getCodeValues(){let e="SavingsTransactionFreezeReasons";this.transactionType.blockaccount?e="SavingsAccountBlockReasons":this.transactionType.blockdeposit?e="CreditTransactionFreezeReasons":this.transactionType.blockwithdrawal&&(e="DebitTransactionFreezeReasons"),this.systemService.getCodes().subscribe(a=>{a.some(i=>(i.name===e&&this.systemService.getCodeValues(i.id).subscribe(c=>(this.reasonOptions=c,!0)),!1))})}createManageSavingsAccountForm(){this.manageSavingsAccountForm=this.formBuilder.group(this.transactionType.holdamount?{reasonForBlock:["",s.kI.required],transactionDate:["",s.kI.required],transactionAmount:[0,s.kI.required]}:{reasonForBlock:["",s.kI.required]})}submit(){let e="",a={};if(this.transactionType.holdamount){const i=this.manageSavingsAccountForm.value,c=this.settingsService.language.code,r=this.settingsService.dateFormat,g=this.manageSavingsAccountForm.value.transactionDate;i.transactionDate instanceof Date&&(i.transactionDate=this.dateUtils.formatDate(g,r)),a={...i,dateFormat:r,locale:c},e="holdAmount",this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,a).subscribe(v=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else a={...this.manageSavingsAccountForm.value},e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,a).subscribe(i=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(Z.L),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Ge.o),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-manage-savings-account"]],decls:45,vars:19,consts:[[1,"container","mat-elevation-z8"],["mat-title","",4,"ngIf"],[3,"formGroup","ngSubmit"],["fxLayout","column"],["required","","formControlName","reasonForBlock"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxFlex","",3,"click",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-title",""],[3,"value"],["fxFlex","",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["transactionDatePicker",""],["type","number","formControlName","transactionAmount","required","","matInput",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.YNc(4,Ee,3,3,"h2",1),t._uU(5,"\n "),t.YNc(6,Be,3,3,"h2",1),t._uU(7,"\n\n "),t.TgZ(8,"form",2),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(9,"\n\n "),t.TgZ(10,"mat-card-content",3),t._uU(11,"\n\n "),t.TgZ(12,"mat-form-field"),t._uU(13,"\n "),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._uU(17,"\n "),t.TgZ(18,"mat-select",4),t._uU(19,"\n "),t.YNc(20,He,2,2,"mat-option",5),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n "),t.YNc(23,je,8,9,"mat-error",6),t._uU(24,"\n "),t.qZA(),t._uU(25,"\n\n "),t.YNc(26,We,15,8,"mat-form-field",7),t._uU(27,"\n\n "),t.YNc(28,$e,10,4,"mat-form-field",6),t._uU(29,"\n\n "),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"mat-card-actions",8),t._uU(32,"\n "),t.TgZ(33,"button",9),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._uU(36,"\n "),t.TgZ(37,"button",10),t._uU(38),t.ALo(39,"translate"),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.qZA(),t._uU(43,"\n\n"),t.qZA(),t._uU(44,"\n")),2&e&&(t.xp6(4),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.blockaccount),t.xp6(2),t.Q6J("formGroup",a.manageSavingsAccountForm),t.xp6(7),t.Oqu(t.lcZ(16,12,"labels.inputs.Reason")),t.xp6(5),t.Q6J("ngForOf",a.reasonOptions),t.xp6(3),t.Q6J("ngIf",a.manageSavingsAccountForm.controls.reasonForBlock.hasError("required")),t.xp6(3),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(2),t.Q6J("ngIf",a.transactionType.holdamount),t.xp6(5),t.Q6J("routerLink",t.DdM(18,Xe)),t.xp6(1),t.Oqu(t.lcZ(35,14,"labels.buttons.Cancel")),t.xp6(3),t.Q6J("disabled",!a.manageSavingsAccountForm.valid),t.xp6(1),t.Oqu(t.lcZ(39,16,"labels.buttons.Confirm")))},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.yH,M.ey,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,y.gD,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH,T.X$],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function ta(n,o){1&n&&t._UZ(0,"mifosx-approve-savings-account")}function na(n,o){1&n&&t._UZ(0,"mifosx-reject-savings-account")}function ea(n,o){1&n&&t._UZ(0,"mifosx-activate-savings-account")}function aa(n,o){1&n&&t._UZ(0,"mifosx-undo-approval-savings-account")}function oa(n,o){1&n&&t._UZ(0,"mifosx-post-interest-as-on-savings-account")}function ia(n,o){1&n&&t._UZ(0,"mifosx-savings-account-assign-staff")}function ca(n,o){1&n&&t._UZ(0,"mifosx-savings-account-unassign-staff")}function sa(n,o){1&n&&t._UZ(0,"mifosx-withdraw-by-client-savings-account")}function ra(n,o){1&n&&t._UZ(0,"mifosx-add-charge-savings-account")}function ua(n,o){if(1&n&&t._UZ(0,"mifosx-savings-transactions",2),2&n){const e=t.oxw();t.Q6J("currencyCode",e.currencyCode)}}function la(n,o){1&n&&t._UZ(0,"mifosx-close-savings-account")}function ga(n,o){1&n&&t._UZ(0,"mifosx-apply-annual-fees-savings-account")}function ma(n,o){1&n&&t._UZ(0,"mifosx-manage-savings-account")}let pa=(()=>{class n{constructor(e){this.route=e,this.actions={Approve:!1,Reject:!1,Withdrawal:!1,Deposit:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Post Interest As On":!1,"Assign Staff":!1,"Add Charge":!1,"Unassign Staff":!1,"Withdraw By Client":!1,"Apply Annual Fees":!1,"Hold Amount":!1,"Block Account":!1,"Unblock Account":!1,"Block Deposit":!1,"Unblock Deposit":!1,"Block Withdrawal":!1,"Unblock Withdrawal":!1},this.route.data.subscribe(i=>{i.savingsAccountActionData&&(this.currencyCode=i.savingsAccountActionData.currency.code)}),this.actions[this.route.snapshot.params.name]=!0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-saving-account-actions"]],decls:26,vars:13,consts:[[4,"ngIf"],[3,"currencyCode",4,"ngIf"],[3,"currencyCode"]],template:function(e,a){1&e&&(t.YNc(0,ta,1,0,"mifosx-approve-savings-account",0),t._uU(1,"\n"),t.YNc(2,na,1,0,"mifosx-reject-savings-account",0),t._uU(3,"\n"),t.YNc(4,ea,1,0,"mifosx-activate-savings-account",0),t._uU(5,"\n"),t.YNc(6,aa,1,0,"mifosx-undo-approval-savings-account",0),t._uU(7,"\n"),t.YNc(8,oa,1,0,"mifosx-post-interest-as-on-savings-account",0),t._uU(9,"\n"),t.YNc(10,ia,1,0,"mifosx-savings-account-assign-staff",0),t._uU(11,"\n"),t.YNc(12,ca,1,0,"mifosx-savings-account-unassign-staff",0),t._uU(13,"\n"),t.YNc(14,sa,1,0,"mifosx-withdraw-by-client-savings-account",0),t._uU(15,"\n"),t.YNc(16,ra,1,0,"mifosx-add-charge-savings-account",0),t._uU(17,"\n"),t.YNc(18,ua,1,1,"mifosx-savings-transactions",1),t._uU(19,"\n"),t.YNc(20,la,1,0,"mifosx-close-savings-account",0),t._uU(21,"\n"),t.YNc(22,ga,1,0,"mifosx-apply-annual-fees-savings-account",0),t._uU(23,"\n"),t.YNc(24,ma,1,0,"mifosx-manage-savings-account",0),t._uU(25,"\n")),2&e&&(t.Q6J("ngIf",a.actions.Approve),t.xp6(2),t.Q6J("ngIf",a.actions.Reject),t.xp6(2),t.Q6J("ngIf",a.actions.Activate),t.xp6(2),t.Q6J("ngIf",a.actions["Undo Approval"]),t.xp6(2),t.Q6J("ngIf",a.actions["Post Interest As On"]),t.xp6(2),t.Q6J("ngIf",a.actions["Assign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Unassign Staff"]),t.xp6(2),t.Q6J("ngIf",a.actions["Withdraw By Client"]),t.xp6(2),t.Q6J("ngIf",a.actions["Add Charge"]),t.xp6(2),t.Q6J("ngIf",a.actions.Withdrawal||a.actions.Deposit),t.xp6(2),t.Q6J("ngIf",a.actions.Close),t.xp6(2),t.Q6J("ngIf",a.actions["Apply Annual Fees"]),t.xp6(2),t.Q6J("ngIf",a.actions["Hold Amount"]||a.actions["Block Account"]||a.actions["Block Deposit"]||a.actions["Block Withdrawal"]))},dependencies:[f.O5,Gn,Hn,Wn,Xn,te,ae,se,le,pe,Oe,ke,Re,Ke]}),n})();var w=m(34417);const _a=function(){return{confirm:!0}};let st=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-waive-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Waive Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to waive charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,_a)))},dependencies:[x.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();const da=function(){return{confirm:!0}};let rt=(()=>{class n{constructor(e,a){this.dialogRef=e,this.data=a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so),t.Y36(h.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-inactivate-charge-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Inactivate Charge"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(6),t.hij("Are you sure you want to inactivate charge with id: ",a.data.id," ?"),t.xp6(8),t.Q6J("mat-dialog-close",t.DdM(2,da)))},dependencies:[x.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();var L=m(68830),X=m(23107);const fa=["chargesTable"];function Aa(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",22),t._uU(1,"\n "),t.TgZ(2,"button",23),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleCharges())}),t._uU(3),t.qZA(),t._uU(4,"\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.hij("\n ",e.viewAllChargeButtons(e.showInactiveCharges?"View Active Charges":"View Inactive Charges"),"")}}function ha(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Name")," "))}function va(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function Ca(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Charge Type")," "))}function xa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.penalty?"Penalty":t.lcZ(2,1,"Fee")," ")}}function Ta(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Payment Due At")," "))}function Ua(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.chargeTimeType.value)," ")}}function Za(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due As Of")," "))}function ba(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.dueDate)," ")}}function Oa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repeats On (M/d)")," "))}function Pa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.feeOnMonthDay?e.feeOnMonthDay.join("/"):""," ")}}function Ma(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Calculation Type")," "))}function ya(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.chargeCalculationType.value)," ")}}function Sa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Due")," "))}function qa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Da(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Paid")," "))}function wa(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Ia(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Waived")," "))}function Na(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Fa(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Outstanding")," "))}function La(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",t.gM2(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ka(n,o){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function Ya(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.editCharge(c))}),t._uU(1,"\n "),t._UZ(2,"i",30),t._uU(3,"\n "),t.qZA()}}function Ja(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.deleteCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",32),t._uU(3,"\n "),t.qZA()}}function Qa(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ya,4,0,"button",27),t._uU(3,"\n "),t.YNc(4,Ja,4,0,"button",28),t._uU(5,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Ra(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.payCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",36),t._uU(3,"\n "),t.qZA()}}function Ga(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.waiveCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",38),t._uU(3,"\n "),t.qZA()}}function Ea(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(3).$implicit,r=t.oxw();return r.routeEdit(i),t.KtG(r.inactivateCharge(c.id))}),t._uU(1,"\n "),t._UZ(2,"i",41),t._uU(3,"\n "),t.qZA()}}function Ba(n,o){1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,Ea,4,0,"button",39),t._uU(3,"\n "),t.BQk()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function Ha(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ra,4,0,"button",33),t._uU(3,"\n "),t.YNc(4,Ga,4,0,"button",34),t._uU(5,"\n "),t.YNc(6,Ba,4,1,"ng-container",26),t._uU(7,"\n "),t.qZA()),2&n){const e=t.oxw().$implicit,a=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",a.isRecurringCharge(e))}}function ja(n,o){if(1&n&&(t.TgZ(0,"td",25),t._uU(1,"\n "),t.YNc(2,Qa,6,2,"span",26),t._uU(3,"\n "),t.YNc(4,Ha,8,3,"span",26),t._uU(5,"\n "),t.qZA()),2&n){const e=o.$implicit,a=t.oxw();t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(2),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==e.amountOutstanding)}}function za(n,o){1&n&&t._UZ(0,"tr",42)}const Wa=function(n){return[n]};function Va(n,o){1&n&&t._UZ(0,"tr",43),2&n&&t.Q6J("routerLink",t.VKq(1,Wa,o.$implicit.id))}let $a=(()=>{class n{constructor(e,a,i,c,r,g,v){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=g,this.translateService=v,this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(I=>{this.savingsAccountData=I.savingsAccountData,this.chargesData=this.savingsAccountData.charges})}ngOnInit(){const e=this.chargesData?this.chargesData.filter(a=>a.isActive):[];this.dataSource=new _.by(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){const e=this.chargesData.filter(a=>!a.isActive);this.dataSource.data=e}else{const e=this.chargesData.filter(a=>a.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){const a=[new L.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new X.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(w.E,{data:{title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const g=this.settingsService.language.code,v=this.settingsService.dateFormat,I={...r.data.value,dueDate:this.dateUtils.formatDate(r.data.value.dueDate,v),dateFormat:v,locale:g};this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"paycharge",I,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(st,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(rt,{data:{id:e}}).afterClosed().subscribe(i=>{i.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){const a=[new L.M({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})];this.dialog.open(w.E,{data:{title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const I={...r.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.savingsAccountData.id,I,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(R.F,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.savingsService.deleteSavingsAccountCharge(this.savingsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value}routeEdit(e){e.stopPropagation()}reload(){const e=this.router.url,a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}viewAllChargeButtons(e){return this.translateService.instant("labels.buttons."+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.d),t.Y36(l.gz),t.Y36(Z.L),t.Y36(l.F0),t.Y36(h.uw),t.Y36(U.g),t.Y36(T.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-charges-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(fa,7),2&e){let i;t.iGM(i=t.CRH())&&(a.chargesTableRef=i.first)}},decls:103,vars:7,consts:[[1,"tab-container","mat-typography"],["fxLayout","row","fxLayoutAlign","start"],[1,"m-b-10"],["class","action-button m-b-20",4,"ngIf"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["chargesTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"action-button","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Charge",1,"account-action-button",3,"click"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn","matTooltip","Delete Charge",1,"account-action-button",3,"click"],[1,"fa","fa-trash"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Pay Charge",3,"click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Waive Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Pay Charge",1,"account-action-button",3,"click"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary","matTooltip","Waive Charge",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Inactivate Charge",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Inactivate Charge",1,"account-action-button",3,"click"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"div",2),t._uU(5,"\n "),t.TgZ(6,"h3"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.YNc(11,Aa,5,1,"div",3),t._uU(12,"\n "),t.qZA(),t._uU(13,"\n\n "),t.TgZ(14,"div",4),t._uU(15,"\n\n "),t.TgZ(16,"table",5,6),t._uU(18,"\n\n "),t.ynx(19,7),t._uU(20,"\n "),t.YNc(21,ha,3,3,"th",8),t._uU(22,"\n "),t.YNc(23,va,2,1,"td",9),t._uU(24,"\n "),t.BQk(),t._uU(25,"\n\n "),t.ynx(26,10),t._uU(27,"\n "),t.YNc(28,Ca,3,3,"th",8),t._uU(29,"\n "),t.YNc(30,xa,3,3,"td",9),t._uU(31,"\n "),t.BQk(),t._uU(32,"\n\n "),t.ynx(33,11),t._uU(34,"\n "),t.YNc(35,Ta,3,3,"th",8),t._uU(36,"\n "),t.YNc(37,Ua,3,3,"td",9),t._uU(38,"\n "),t.BQk(),t._uU(39,"\n\n "),t.ynx(40,12),t._uU(41,"\n "),t.YNc(42,Za,3,3,"th",8),t._uU(43,"\n "),t.YNc(44,ba,3,3,"td",9),t._uU(45,"\n "),t.BQk(),t._uU(46,"\n\n "),t.ynx(47,13),t._uU(48,"\n "),t.YNc(49,Oa,3,3,"th",8),t._uU(50,"\n "),t.YNc(51,Pa,2,1,"td",9),t._uU(52,"\n "),t.BQk(),t._uU(53,"\n\n "),t.ynx(54,14),t._uU(55,"\n "),t.YNc(56,Ma,3,3,"th",8),t._uU(57,"\n "),t.YNc(58,ya,3,3,"td",9),t._uU(59,"\n "),t.BQk(),t._uU(60,"\n\n "),t.ynx(61,15),t._uU(62,"\n "),t.YNc(63,Sa,3,3,"th",8),t._uU(64,"\n "),t.YNc(65,qa,3,6,"td",9),t._uU(66,"\n "),t.BQk(),t._uU(67,"\n\n "),t.ynx(68,16),t._uU(69,"\n "),t.YNc(70,Da,3,3,"th",8),t._uU(71,"\n "),t.YNc(72,wa,3,6,"td",9),t._uU(73,"\n "),t.BQk(),t._uU(74,"\n\n "),t.ynx(75,17),t._uU(76,"\n "),t.YNc(77,Ia,3,3,"th",8),t._uU(78,"\n "),t.YNc(79,Na,3,6,"td",9),t._uU(80,"\n "),t.BQk(),t._uU(81,"\n\n "),t.ynx(82,18),t._uU(83,"\n "),t.YNc(84,Fa,3,3,"th",8),t._uU(85,"\n "),t.YNc(86,La,3,6,"td",9),t._uU(87,"\n "),t.BQk(),t._uU(88,"\n\n "),t.ynx(89,19),t._uU(90,"\n "),t.YNc(91,ka,3,3,"th",8),t._uU(92,"\n "),t.YNc(93,ja,6,2,"td",9),t._uU(94,"\n "),t.BQk(),t._uU(95,"\n\n "),t.YNc(96,za,1,0,"tr",20),t._uU(97,"\n "),t.YNc(98,Va,1,3,"tr",21),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n "),t.qZA(),t._uU(101,"\n\n"),t.qZA(),t._uU(102,"\n")),2&e&&(t.xp6(7),t.Oqu(t.lcZ(8,5,"labels.inputs.Charges")),t.xp6(4),t.Q6J("ngIf",a.chargesData),t.xp6(5),t.Q6J("dataSource",a.dataSource),t.xp6(80),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[f.O5,u.xw,u.Wh,x.lW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,B.gM,S.A,l.rH,f.H9,T.X$,q.E,D.H],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var Xa=m(35023);const Ka=["instructionsTable"];function to(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Client "),t.qZA())}function no(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromClient.displayName,"-",e.fromClient.id,"")}}function eo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," From Account "),t.qZA())}function ao(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.fromAccount.accountNo," (",e.fromAccountType.value,")")}}function oo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Beneficiary "),t.qZA())}function io(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e.toClient.displayName)}}function co(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," To Account "),t.qZA())}function so(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.toAccount.accountNo," (",e.toAccountType.value,")")}}function ro(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Amount "),t.qZA())}function uo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",e.instructionType.value,"/",e.amount,"")}}function lo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Validity "),t.qZA())}function go(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.ALo(2,"dateFormat"),t.ALo(3,"dateFormat"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,e.validFrom)," to ",t.lcZ(3,4,e.validTill),"")}}function mo(n,o){1&n&&(t.TgZ(0,"th",16),t._uU(1," Actions "),t.qZA())}function po(n,o){1&n&&(t.TgZ(0,"button",21),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA())}function _o(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,po,4,0,"button",20),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function fo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,c=t.oxw();return t.KtG(c.deleteStandingInstruction(i.id))}),t._uU(1,"\n "),t._UZ(2,"i",25),t._uU(3,"\n "),t.qZA()}}function Ao(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,fo,4,0,"button",23),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function ho(n,o){1&n&&(t.TgZ(0,"button",26),t._uU(1,"\n "),t._UZ(2,"i",27),t._uU(3,"\n "),t.qZA())}function vo(n,o){if(1&n&&(t.TgZ(0,"td",17),t._uU(1,"\n "),t.YNc(2,_o,4,1,"span",18),t._uU(3,"\n "),t.YNc(4,Ao,4,1,"span",18),t._uU(5,"\n "),t.YNc(6,ho,4,0,"button",19),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("ngIf","Deleted"!==e.status.value),t.xp6(2),t.Q6J("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Co(n,o){1&n&&t._UZ(0,"tr",28)}function xo(n,o){1&n&&t._UZ(0,"tr",29)}let To=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.savingsService=a,this.dialog=i,this.accountTransfersService=c,this.settingsService=r,this.dataSource=new _.by,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(g=>{this.savingsData=g.savingsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){this.savingsService.getStandingInstructions(this.savingsData.clientId,this.savingsData.clientName,this.savingsData.id,this.settingsService.language.code,this.settingsService.dateFormat).subscribe(g=>{this.instructionsData=g.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(R.F,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(i=>{i.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(C.d),t.Y36(h.uw),t.Y36(Xa.o),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(e,a){if(1&e&&t.Gf(Ka,7),2&e){let i;t.iGM(i=t.CRH())&&(a.instructionTableRef=i.first)}},decls:69,vars:3,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["instructionsTable",""],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","View Standing Instruction",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltip","Edit Standing Instruction",1,"account-action-button"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn","matTooltip","Delete Standing Instruction",1,"account-action-button",3,"click"],[1,"fa","fa-times"],["mat-raised-button","","color","primary","matTooltip","View Standing Instruction",1,"account-action-button"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"h3"),t._uU(5,"All Standing Instructions"),t.qZA(),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n\n "),t.TgZ(10,"table",3,4),t._uU(12,"\n\n "),t.ynx(13,5),t._uU(14,"\n "),t.YNc(15,to,2,0,"th",6),t._uU(16,"\n "),t.YNc(17,no,2,2,"td",7),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t.ynx(20,8),t._uU(21,"\n "),t.YNc(22,eo,2,0,"th",6),t._uU(23,"\n "),t.YNc(24,ao,2,2,"td",7),t._uU(25,"\n "),t.BQk(),t._uU(26,"\n\n "),t.ynx(27,9),t._uU(28,"\n "),t.YNc(29,oo,2,0,"th",6),t._uU(30,"\n "),t.YNc(31,io,2,1,"td",7),t._uU(32,"\n "),t.BQk(),t._uU(33,"\n\n "),t.ynx(34,10),t._uU(35,"\n "),t.YNc(36,co,2,0,"th",6),t._uU(37,"\n "),t.YNc(38,so,2,2,"td",7),t._uU(39,"\n "),t.BQk(),t._uU(40,"\n\n "),t.ynx(41,11),t._uU(42,"\n "),t.YNc(43,ro,2,0,"th",6),t._uU(44,"\n "),t.YNc(45,uo,2,2,"td",7),t._uU(46,"\n "),t.BQk(),t._uU(47,"\n\n "),t.ynx(48,12),t._uU(49,"\n "),t.YNc(50,lo,2,0,"th",6),t._uU(51,"\n "),t.YNc(52,go,4,6,"td",7),t._uU(53,"\n "),t.BQk(),t._uU(54,"\n\n "),t.ynx(55,13),t._uU(56,"\n "),t.YNc(57,mo,2,0,"th",6),t._uU(58,"\n "),t.YNc(59,vo,8,3,"td",7),t._uU(60,"\n "),t.BQk(),t._uU(61,"\n\n "),t.YNc(62,Co,1,0,"tr",14),t._uU(63,"\n "),t.YNc(64,xo,1,0,"tr",15),t._uU(65,"\n\n "),t.qZA(),t._uU(66,"\n\n "),t.qZA(),t._uU(67,"\n\n"),t.qZA(),t._uU(68,"\n")),2&e&&(t.xp6(10),t.Q6J("dataSource",a.dataSource),t.xp6(52),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns))},dependencies:[f.O5,x.lW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,B.gM,S.A,q.E],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]}),n})(),Uo=(()=>{class n{constructor(e){this.route=e,this.entityId=this.route.parent.parent.snapshot.paramMap.get("savingAccountId"),this.route.data.subscribe(a=>{this.entityDatatable=a.savingsDatatable,this.multiRowDatatableFlag="id"===this.entityDatatable.columnHeaders[0].columnName})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-datatable-tabs"]],decls:6,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"mifosx-entity-datatable-tab",1),t._uU(3,"\n "),t.qZA(),t._uU(4,"\n"),t.qZA(),t._uU(5,"\n")),2&e&&(t.xp6(2),t.Q6J("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[ct.j]}),n})();var b=m(58425);function Zo(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function bo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",13),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(11);return t.KtG(i.open())}),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",14),t._uU(7,"\n "),t._UZ(8,"mat-datepicker-toggle",15),t._uU(9,"\n "),t._UZ(10,"mat-datepicker",null,16),t._uU(12,"\n "),t.TgZ(13,"mat-error"),t._uU(14),t.ALo(15,"translate"),t.ALo(16,"translate"),t.TgZ(17,"strong"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA()}if(2&n){const e=t.MAs(11),a=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,8,"labels.inputs.Submitted On")),t.xp6(3),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(6),t.AsE("\n ",t.lcZ(15,10,"labels.inputs.Submitted On")," ",t.lcZ(16,12,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(19,14,"labels.commons.required"))}}function Oo(n,o){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.displayName,"\n ")}}function Po(n,o){if(1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"mat-select",17),t._uU(7,"\n "),t.YNc(8,Oo,2,2,"mat-option",4),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Field Officer")),t.xp6(5),t.Q6J("ngForOf",e.fieldOfficerData)}}function Mo(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",18),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.External ID")))}let k=(()=>{class n{constructor(e,a,i){this.formBuilder=e,this.savingsService=a,this.settingsService=i,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.savingsProductSelected=!1,this.savingsAccountProductTemplate=new t.vpe,this.createSavingsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.savingsAccountTemplate&&(this.productData=this.savingsAccountTemplate.productOptions,this.savingsAccountDetailsForm.patchValue(this.savingsAccountTemplate.savingsProductId?{productId:this.savingsAccountTemplate.savingsProductId,submittedOnDate:this.savingsAccountTemplate.timeline.submittedOnDate&&new Date(this.savingsAccountTemplate.timeline.submittedOnDate),externalId:this.savingsAccountTemplate.externalId}:{submittedOnDate:new Date}))}createSavingsAccountDetailsForm(){this.savingsAccountDetailsForm=this.formBuilder.group({productId:["",s.kI.required],submittedOnDate:["",s.kI.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){const e=this.savingsAccountTemplate.clientId||this.savingsAccountTemplate.groupId;this.savingsAccountDetailsForm.get("productId").valueChanges.subscribe(a=>{this.savingsService.getSavingsAccountTemplate(e,a,!!this.savingsAccountTemplate.groupId).subscribe(i=>{this.savingsAccountProductTemplate.emit(i),this.fieldOfficerData=i.fieldOfficerOptions,this.savingsProductSelected=!0,!this.isFieldOfficerPatched&&this.savingsAccountTemplate.fieldOfficerId?(this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue(this.savingsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get savingsAccountDetails(){return this.savingsAccountDetailsForm.getRawValue()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-details-step"]],inputs:{savingsAccountTemplate:"savingsAccountTemplate"},outputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate"},decls:47,vars:23,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["formControlName","productId","required",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%",3,"click",4,"ngIf"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","48%",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["submittedOnDatePicker",""],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t.TgZ(10,"mat-select",3),t._uU(11,"\n "),t.YNc(12,Zo,2,2,"mat-option",4),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.TgZ(15,"mat-error"),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"strong"),t._uU(20),t.ALo(21,"translate"),t.qZA(),t._uU(22,"\n "),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,bo,22,16,"mat-form-field",5),t._uU(26,"\n\n "),t.YNc(27,Po,11,4,"mat-form-field",6),t._uU(28,"\n\n "),t.YNc(29,Mo,8,3,"mat-form-field",6),t._uU(30,"\n\n "),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",7),t._uU(33,"\n "),t.TgZ(34,"button",8),t._uU(35,"\n "),t._UZ(36,"fa-icon",9),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39,"\n "),t.TgZ(40,"button",10),t._uU(41),t.ALo(42,"translate"),t._UZ(43,"fa-icon",11),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n "),t.qZA(),t._uU(46,"\n\n"),t.qZA()),2&e&&(t.Q6J("formGroup",a.savingsAccountDetailsForm),t.xp6(7),t.Oqu(t.lcZ(8,11,"labels.inputs.Product Name")),t.xp6(5),t.Q6J("ngForOf",a.productData),t.xp6(4),t.AsE("\n ",t.lcZ(17,13,"labels.inputs.Product Name")," ",t.lcZ(18,15,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(21,17,"labels.commons.required")),t.xp6(5),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(2),t.Q6J("ngIf",a.savingsProductSelected),t.xp6(8),t.hij("\n ",t.lcZ(38,19,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(42,21,"labels.buttons.Next"),"\n "))},dependencies:[f.sg,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,M.ey,x.lW,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,y.gD,b.Ic,b.fd,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,T.X$]}),n})();var ut=m(44850);function yo(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",t.lcZ(2,2,e.value),"\n ")}}function So(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",t.lcZ(2,2,e.value),"\n ")}}function qo(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",t.lcZ(2,2,e.value),"\n ")}}function Do(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",t.lcZ(2,2,e.value),"\n ")}}function wo(n,o){if(1&n&&(t.TgZ(0,"mat-option",28),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",t.lcZ(2,2,e.value),"\n ")}}function Io(n,o){1&n&&(t.TgZ(0,"div",29),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",30),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t._UZ(8,"input",31),t._uU(9,"\n "),t.qZA(),t._uU(10,"\n\n "),t.TgZ(11,"mat-form-field",30),t._uU(12,"\n "),t.TgZ(13,"mat-label"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t._UZ(17,"input",32),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"mat-form-field",30),t._uU(21,"\n "),t.TgZ(22,"mat-label"),t._uU(23),t.ALo(24,"translate"),t.qZA(),t._uU(25,"\n "),t._UZ(26,"input",33),t._uU(27,"\n "),t.qZA(),t._uU(28,"\n\n "),t.qZA()),2&n&&(t.xp6(5),t.Oqu(t.lcZ(6,3,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),t.xp6(9),t.Oqu(t.lcZ(15,5,"labels.inputs.Nominal Annual Interest for Overdraft")),t.xp6(9),t.Oqu(t.lcZ(24,7,"labels.inputs.Maximum Overdraft Amount Limit")))}function No(n,o){1&n&&(t.TgZ(0,"mat-form-field",2),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t._UZ(6,"input",34),t._uU(7,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"labels.inputs.Balance Required for Interest Calculation")))}let Y=(()=>{class n{constructor(e,a){this.formBuilder=e,this.settingsService=a,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createSavingsAccountTermsForm(),this.buildDependencies()}ngOnChanges(){this.savingsAccountProductTemplate&&(this.savingsAccountTermsForm.patchValue({currencyCode:this.savingsAccountProductTemplate.currency.code,decimal:this.savingsAccountProductTemplate.currency.decimalPlaces,minBalanceForInterestCalculation:this.savingsAccountProductTemplate.minBalanceForInterestCalculation,nominalAnnualInterestRate:this.savingsAccountProductTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountProductTemplate.minRequiredOpeningBalance,allowOverdraft:this.savingsAccountProductTemplate.allowOverdraft,overdraftLimit:this.savingsAccountProductTemplate.overdraftLimit,enforceMinRequiredBalance:this.savingsAccountProductTemplate.enforceMinRequiredBalance,minOverdraftForInterestCalculation:this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,minRequiredBalance:this.savingsAccountProductTemplate.minRequiredBalance,withdrawalFeeForTransfers:this.savingsAccountProductTemplate.withdrawalFeeForTransfers}),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.savingsAccountTemplate&&this.savingsAccountTermsForm.patchValue({nominalAnnualInterestRate:this.savingsAccountTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountTemplate.minRequiredOpeningBalance,withdrawalFeeForTransfers:this.savingsAccountTemplate.withdrawalFeeForTransfers,lockinPeriodFrequency:this.savingsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingsAccountTemplate.lockinPeriodFrequencyType&&this.savingsAccountTemplate.lockinPeriodFrequencyType.id,allowOverdraft:this.savingsAccountTemplate.allowOverdraft,enforceMinRequiredBalance:this.savingsAccountTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingsAccountTemplate.minRequiredBalance})}createSavingsAccountTermsForm(){this.savingsAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],nominalAnnualInterestRate:["",s.kI.required],interestCompoundingPeriodType:["",s.kI.required],interestPostingPeriodType:["",s.kI.required],interestCalculationType:["",s.kI.required],interestCalculationDaysInYearType:["",s.kI.required],minRequiredOpeningBalance:[""],withdrawalFeeForTransfers:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowOverdraft:[!1],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.interestCompoundingPeriodTypeData=this.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions}buildDependencies(){this.savingsAccountTermsForm.get("allowOverdraft").valueChanges.subscribe(e=>{e?(this.savingsAccountTermsForm.addControl("minOverdraftForInterestCalculation",new s.p4("")),this.savingsAccountTermsForm.addControl("nominalAnnualInterestRateOverdraft",new s.p4("")),this.savingsAccountTermsForm.addControl("overdraftLimit",new s.p4(""))):(this.savingsAccountTermsForm.removeControl("minOverdraftForInterestCalculation"),this.savingsAccountTermsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingsAccountTermsForm.removeControl("overdraftLimit"))})}get savingsAccountTerms(){const e=this.savingsAccountTermsForm.getRawValue();return delete e.currencyCode,delete e.decimal,delete e.minBalanceForInterestCalculation,e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-terms-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate"},features:[t.TTD],decls:208,vars:107,consts:[[3,"formGroup"],["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column","fxLayoutAlign.gt-sm","start center"],["fxFlex","48%"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","decimal"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required",""],["formControlName","interestCompoundingPeriodType","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["type","number","matInput","","formControlName","minRequiredOpeningBalance"],["fxFlex","48%","labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"margin-v"],["fxFlex","98%",1,"mat-h4"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],["fxFlex","98%"],["fxFlex","23%",1,"mat-h3"],["fxFlex","73%","labelPosition","before","formControlName","allowOverdraft",1,"margin-b"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column",4,"ngIf"],["fxFlex","48%","labelPosition","before","formControlName","enforceMinRequiredBalance",1,"margin-v"],["type","number","matInput","","formControlName","minRequiredBalance"],["fxFlex","48%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlexFill","","fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","31%"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft"],["type","number","matInput","","formControlName","overdraftLimit"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"]],template:function(e,a){1&e&&(t.TgZ(0,"form",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9,"\n "),t._UZ(10,"input",3),t._uU(11,"\n "),t.qZA(),t._uU(12,"\n\n "),t.TgZ(13,"mat-form-field",2),t._uU(14,"\n "),t.TgZ(15,"mat-label"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t._uU(18,"\n "),t._UZ(19,"input",4),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.TgZ(22,"mat-form-field",2),t._uU(23,"\n "),t.TgZ(24,"mat-label"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",5),t._uU(29,"\n "),t.TgZ(30,"mat-error"),t._uU(31),t.ALo(32,"translate"),t.ALo(33,"translate"),t.TgZ(34,"strong"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.qZA(),t._uU(39,"\n\n "),t.TgZ(40,"mat-form-field",2),t._uU(41,"\n "),t.TgZ(42,"mat-label"),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n "),t.TgZ(46,"mat-select",6),t._uU(47,"\n "),t.YNc(48,yo,3,4,"mat-option",7),t._uU(49,"\n "),t.qZA(),t._uU(50,"\n "),t.TgZ(51,"mat-error"),t._uU(52),t.ALo(53,"translate"),t.ALo(54,"translate"),t.TgZ(55,"strong"),t._uU(56),t.ALo(57,"translate"),t.qZA(),t._uU(58,"\n "),t.qZA(),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n\n "),t.TgZ(61,"mat-form-field",2),t._uU(62,"\n "),t.TgZ(63,"mat-label"),t._uU(64),t.ALo(65,"translate"),t.qZA(),t._uU(66,"\n "),t.TgZ(67,"mat-select",8),t._uU(68,"\n "),t.YNc(69,So,3,4,"mat-option",7),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n "),t.TgZ(72,"mat-error"),t._uU(73),t.ALo(74,"translate"),t.ALo(75,"translate"),t.TgZ(76,"strong"),t._uU(77),t.ALo(78,"translate"),t.qZA(),t._uU(79,"\n "),t.qZA(),t._uU(80,"\n "),t.qZA(),t._uU(81,"\n\n "),t.TgZ(82,"mat-form-field",2),t._uU(83,"\n "),t.TgZ(84,"mat-label"),t._uU(85),t.ALo(86,"translate"),t.qZA(),t._uU(87,"\n "),t.TgZ(88,"mat-select",9),t._uU(89,"\n "),t.YNc(90,qo,3,4,"mat-option",7),t._uU(91,"\n "),t.qZA(),t._uU(92,"\n "),t.TgZ(93,"mat-error"),t._uU(94),t.ALo(95,"translate"),t.ALo(96,"translate"),t.TgZ(97,"strong"),t._uU(98),t.ALo(99,"translate"),t.qZA(),t._uU(100,"\n "),t.qZA(),t._uU(101,"\n "),t.qZA(),t._uU(102,"\n\n "),t.TgZ(103,"mat-form-field",2),t._uU(104,"\n "),t.TgZ(105,"mat-label"),t._uU(106),t.ALo(107,"translate"),t.qZA(),t._uU(108,"\n "),t.TgZ(109,"mat-select",10),t._uU(110,"\n "),t.YNc(111,Do,3,4,"mat-option",7),t._uU(112,"\n "),t.qZA(),t._uU(113,"\n "),t.TgZ(114,"mat-error"),t._uU(115),t.ALo(116,"translate"),t.ALo(117,"translate"),t.TgZ(118,"strong"),t._uU(119),t.ALo(120,"translate"),t.qZA(),t._uU(121,"\n "),t.qZA(),t._uU(122,"\n "),t.qZA(),t._uU(123,"\n\n "),t.TgZ(124,"mat-form-field",2),t._uU(125,"\n "),t.TgZ(126,"mat-label"),t._uU(127),t.ALo(128,"translate"),t.qZA(),t._uU(129,"\n "),t._UZ(130,"input",11),t._uU(131,"\n "),t.qZA(),t._uU(132,"\n\n "),t.TgZ(133,"mat-checkbox",12),t._uU(134),t.ALo(135,"translate"),t.qZA(),t._uU(136,"\n\n "),t.TgZ(137,"h4",13),t._uU(138),t.ALo(139,"translate"),t.qZA(),t._uU(140,"\n\n "),t.TgZ(141,"mat-form-field",2),t._uU(142,"\n "),t.TgZ(143,"mat-label"),t._uU(144),t.ALo(145,"translate"),t.qZA(),t._uU(146,"\n "),t._UZ(147,"input",14),t._uU(148,"\n "),t.qZA(),t._uU(149,"\n\n "),t.TgZ(150,"mat-form-field",2),t._uU(151,"\n "),t.TgZ(152,"mat-label"),t._uU(153),t.ALo(154,"translate"),t.qZA(),t._uU(155,"\n "),t.TgZ(156,"mat-select",15),t._uU(157,"\n "),t.YNc(158,wo,3,4,"mat-option",7),t._uU(159,"\n "),t.qZA(),t._uU(160,"\n "),t.qZA(),t._uU(161,"\n\n "),t._UZ(162,"mat-divider",16),t._uU(163,"\n\n "),t.TgZ(164,"h3",17),t._uU(165),t.ALo(166,"translate"),t.qZA(),t._uU(167,"\n\n "),t.TgZ(168,"mat-checkbox",18),t._uU(169),t.ALo(170,"translate"),t.qZA(),t._uU(171,"\n\n "),t.YNc(172,Io,29,9,"div",19),t._uU(173,"\n\n "),t._UZ(174,"mat-divider",16),t._uU(175,"\n\n "),t.TgZ(176,"mat-checkbox",20),t._uU(177),t.ALo(178,"translate"),t.qZA(),t._uU(179,"\n\n "),t.TgZ(180,"mat-form-field",2),t._uU(181,"\n "),t.TgZ(182,"mat-label"),t._uU(183),t.ALo(184,"translate"),t.qZA(),t._uU(185,"\n "),t._UZ(186,"input",21),t._uU(187,"\n "),t.qZA(),t._uU(188,"\n\n "),t.YNc(189,No,8,3,"mat-form-field",22),t._uU(190,"\n\n "),t.qZA(),t._uU(191,"\n\n "),t.TgZ(192,"div",23),t._uU(193,"\n "),t.TgZ(194,"button",24),t._uU(195,"\n "),t._UZ(196,"fa-icon",25),t._uU(197),t.ALo(198,"translate"),t.qZA(),t._uU(199,"\n "),t.TgZ(200,"button",26),t._uU(201),t.ALo(202,"translate"),t._UZ(203,"fa-icon",27),t._uU(204,"\n "),t.qZA(),t._uU(205,"\n "),t.qZA(),t._uU(206,"\n\n"),t.qZA(),t._uU(207,"\n")),2&e&&(t.Q6J("formGroup",a.savingsAccountTermsForm),t.xp6(7),t.Oqu(t.lcZ(8,41,"labels.inputs.Currency")),t.xp6(9),t.Oqu(t.lcZ(17,43,"labels.inputs.Decimal Places")),t.xp6(9),t.Oqu(t.lcZ(26,45,"labels.inputs.Nominal Annual Interest")),t.xp6(6),t.AsE("\n ",t.lcZ(32,47,"labels.inputs.Nominal Annual Interest")," ",t.lcZ(33,49,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(36,51,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(44,53,"labels.inputs.Interest Compounding Period")),t.xp6(5),t.Q6J("ngForOf",a.interestCompoundingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(53,55,"labels.inputs.Interest Compounding Period")," ",t.lcZ(54,57,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(57,59,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(65,61,"labels.inputs.Interest Posting Period")),t.xp6(5),t.Q6J("ngForOf",a.interestPostingPeriodTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(74,63,"labels.inputs.Interest Posting Period")," ",t.lcZ(75,65,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(78,67,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(86,69,"labels.inputs.Interest Calculated using")),t.xp6(5),t.Q6J("ngForOf",a.interestCalculationTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(95,71,"labels.inputs.Interest Calculated using")," ",t.lcZ(96,73,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(99,75,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(107,77,"labels.inputs.Days in Year")),t.xp6(5),t.Q6J("ngForOf",a.interestCalculationDaysInYearTypeData),t.xp6(4),t.AsE("\n ",t.lcZ(116,79,"labels.inputs.Days in Year")," ",t.lcZ(117,81,"labels.commons.is")," "),t.xp6(4),t.Oqu(t.lcZ(120,83,"labels.commons.required")),t.xp6(8),t.Oqu(t.lcZ(128,85,"labels.inputs.Minimum Opening Balance")),t.xp6(7),t.hij("\n ",t.lcZ(135,87,"labels.inputs.Apply Withdrawal Fee for Transfers"),"\n "),t.xp6(4),t.Oqu(t.lcZ(139,89,"labels.inputs.Lock-in Period")),t.xp6(6),t.Oqu(t.lcZ(145,91,"labels.inputs.Frequency")),t.xp6(9),t.Oqu(t.lcZ(154,93,"labels.inputs.Type")),t.xp6(5),t.Q6J("ngForOf",a.lockinPeriodFrequencyTypeData),t.xp6(7),t.Oqu(t.lcZ(166,95,"labels.inputs.Overdraft")),t.xp6(4),t.hij("\n ",t.lcZ(170,97,"labels.inputs.Is Overdraft Allowed"),"\n "),t.xp6(3),t.Q6J("ngIf",a.savingsAccountTermsForm.value.allowOverdraft),t.xp6(5),t.hij("\n ",t.lcZ(178,99,"labels.inputs.Enforce Minimum Balance"),"\n "),t.xp6(6),t.Oqu(t.lcZ(184,101,"labels.inputs.Minimum Balance")),t.xp6(6),t.Q6J("ngIf",a.savingsAccountTermsForm.controls.minBalanceForInterestCalculation.value),t.xp6(8),t.hij("\n ",t.lcZ(198,103,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(202,105,"labels.buttons.Next"),"\n "))},dependencies:[f.sg,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,x.lW,j.oG,ut.d,p.TO,p.KE,p.hX,O.Nt,y.gD,b.Ic,b.fd,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,T.X$,D.H],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var Fo=m(63613);function Lo(n,o){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function ko(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Name")," "))}function Yo(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Jo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function Qo(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeCalculationType.value,"\n ")}}function Ro(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1),t.ALo(2,"formatNumber"),t.TgZ(3,"button",29),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.editChargeAmount(c))}),t._uU(4,"\n "),t._UZ(5,"fa-icon",30),t._uU(6,"\n "),t.qZA(),t._uU(7,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.amount),"\n ")}}function Eo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Bo(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.chargeTimeType.value),"\n ")}}function Ho(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function jo(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function zo(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function Wo(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function Vo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeDate(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function $o(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,jo,3,3,"span",31),t._uU(3,"\n "),t.YNc(4,zo,3,3,"span",31),t._uU(5,"\n "),t.YNc(6,Wo,2,0,"span",31),t._uU(7,"\n "),t.YNc(8,Vo,4,0,"button",32),t._uU(9,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value)),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value)}}function Xo(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function Ko(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.feeInterval)}}function ti(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function ni(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,c=t.oxw(2);return t.KtG(c.editChargeFeeInterval(i))}),t._uU(1,"\n "),t._UZ(2,"fa-icon",30),t._uU(3,"\n "),t.qZA()}}function ei(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1,"\n "),t.YNc(2,Ko,2,1,"span",31),t._uU(3,"\n "),t.YNc(4,ti,3,3,"span",31),t._uU(5,"\n "),t.YNc(6,ni,4,0,"button",32),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf",e.feeInterval),t.xp6(2),t.Q6J("ngIf",!e.feeInterval),t.xp6(2),t.Q6J("ngIf","Weekly Fee"===e.chargeTimeType.value||"Monthly Fee"===e.chargeTimeType.value)}}function ai(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Actions")," "))}function oi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"button",33),t.NdJ("click",function(){const c=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.deleteCharge(c))}),t._uU(3,"\n "),t._UZ(4,"fa-icon",34),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n "),t.qZA()}}function ii(n,o){1&n&&t._UZ(0,"tr",35)}function ci(n,o){1&n&&t._UZ(0,"tr",36)}function si(n,o){if(1&n&&(t.TgZ(0,"table",15),t._uU(1,"\n\n "),t.ynx(2,16),t._uU(3,"\n "),t.YNc(4,ko,3,3,"th",17),t._uU(5,"\n "),t.YNc(6,Yo,2,1,"td",18),t._uU(7,"\n "),t.BQk(),t._uU(8,"\n\n "),t.ynx(9,19),t._uU(10,"\n "),t.YNc(11,Jo,3,3,"th",17),t._uU(12,"\n "),t.YNc(13,Qo,2,1,"td",18),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n\n "),t.ynx(16,20),t._uU(17,"\n "),t.YNc(18,Ro,3,3,"th",17),t._uU(19,"\n "),t.YNc(20,Go,8,3,"td",18),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n\n "),t.ynx(23,21),t._uU(24,"\n "),t.YNc(25,Eo,3,3,"th",17),t._uU(26,"\n "),t.YNc(27,Bo,3,3,"td",18),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n\n "),t.ynx(30,22),t._uU(31,"\n "),t.YNc(32,Ho,3,3,"th",17),t._uU(33,"\n "),t.YNc(34,$o,10,4,"td",18),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n\n "),t.ynx(37,23),t._uU(38,"\n "),t.YNc(39,Xo,3,3,"th",17),t._uU(40,"\n "),t.YNc(41,ei,8,3,"td",18),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n\n "),t.ynx(44,24),t._uU(45,"\n "),t.YNc(46,ai,3,3,"th",17),t._uU(47,"\n "),t.YNc(48,oi,7,0,"td",18),t._uU(49,"\n "),t.BQk(),t._uU(50,"\n\n "),t.YNc(51,ii,1,0,"tr",25),t._uU(52,"\n "),t.YNc(53,ci,1,0,"tr",26),t._uU(54,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("dataSource",e.chargesDataSource),t.xp6(51),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumns)}}function ri(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"th",27),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelects())})("ngModelChange",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.selectAllItems=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngModel",e.selectAllItems)}}function ui(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"td",28),t._uU(1,"\n "),t.TgZ(2,"mat-checkbox",41),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.toggleSelect())})("ngModelChange",function(i){const r=t.CHM(e).$implicit;return t.KtG(r.selected=i)}),t.qZA(),t._uU(3,"\n "),t.qZA()}if(2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngModel",e.selected)}}function li(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client ID")," "))}function gi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function mi(n,o){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Client Name")," "))}function pi(n,o){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function _i(n,o){1&n&&t._UZ(0,"tr",35)}function di(n,o){1&n&&t._UZ(0,"tr",36)}function fi(n,o){if(1&n&&(t.TgZ(0,"div",37),t._uU(1,"\n "),t.TgZ(2,"table",38),t._uU(3,"\n\n "),t._uU(4,"\n "),t.ynx(5,39),t._uU(6,"\n "),t.YNc(7,ri,4,1,"th",17),t._uU(8,"\n "),t.YNc(9,ui,4,1,"td",18),t._uU(10,"\n "),t.BQk(),t._uU(11,"\n\n "),t._uU(12,"\n "),t.ynx(13,40),t._uU(14,"\n "),t.YNc(15,li,3,3,"th",17),t._uU(16,"\n "),t.YNc(17,gi,2,1,"td",18),t._uU(18,"\n "),t.BQk(),t._uU(19,"\n\n "),t._uU(20,"\n "),t.ynx(21,16),t._uU(22,"\n "),t.YNc(23,mi,3,3,"th",17),t._uU(24,"\n "),t.YNc(25,pi,2,1,"td",18),t._uU(26,"\n "),t.BQk(),t._uU(27,"\n\n\n "),t.YNc(28,_i,1,0,"tr",25),t._uU(29,"\n "),t.YNc(30,di,1,0,"tr",26),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(26),t.Q6J("matHeaderRowDef",e.displayedColumn),t.xp6(2),t.Q6J("matRowDefColumns",e.displayedColumn)}}let J=(()=>{class n{constructor(e,a,i){this.dialog=e,this.dateUtils=a,this.translateService=i,this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name"]}ngOnInit(){this.savingsAccountTemplate&&(!this.isChargesPatched&&this.savingsAccountTemplate.charges?(this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[],this.isChargesPatched=!0):this.chargesDataSource=[],this.dataSource=new _.by(this.activeClientMembers))}ngOnChanges(){this.savingsAccountProductTemplate&&(this.chargeData=this.savingsAccountProductTemplate.chargeOptions,this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>({...e,id:e.chargeId}))||[])}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){const a=[new L.M({controlName:"amount",label:this.translateService.instant("labels.inputs.Amount"),value:e.amount,type:"number",required:!1})],i={title:this.translateService.instant("labels.heading.Edit Charge Amount"),layout:{addButtonText:"Confirm"},formfields:a};this.dialog.open(w.E,{data:i}).afterClosed().subscribe(r=>{if(r.data){const g={...e,amount:r.data.value.amount};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,g),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){const a=[new X.d({controlName:"date",label:this.translateService.instant("labels.inputs.Date"),value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],i={title:this.translateService.instant("labels.heading.Edit Charge Date"),layout:{addButtonText:"Confirm"},formfields:a};this.dialog.open(w.E,{data:i}).afterClosed().subscribe(r=>{if(r.data){let g;const I=this.dateUtils.formatDate(r.data.value.date,"dd MMMM yyyy");switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":g={...e,dueDate:I};break;case"Annual Fee":case"Monthly Fee":const Br=this.dateUtils.formatDate(r.data.value.date,"dd MMMM");g={...e,feeOnMonthDay:Br}}console.log(g),this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,g),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){const a=[new L.M({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})];this.dialog.open(w.E,{data:{title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:a}}).afterClosed().subscribe(r=>{if(r.data){const g={...e,feeInterval:r.data.value.feeInterval};this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,g),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get savingsAccountCharges(){return{charges:this.chargesDataSource}}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(const e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){const e=this.activeClientMembers.length;this.selectAllItems=0!==e&&this.activeClientMembers.filter(a=>a.selected).length===e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.uw),t.Y36(Z.L),t.Y36(T.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-charges-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",currencyCode:"currencyCode",activeClientMembers:"activeClientMembers"},features:[t.TTD],decls:44,vars:20,consts:[["fxLayout","row wrap","fxLayoutGap","2%","fxLayout.lt-md","column"],["fxFlex","48%"],["charge",""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48%","fxFlexAlign","center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],["icon","plus",1,"m-r-10"],["fxFlex","98%","class","mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["fxFlex","98%",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"value"],["fxFlex","98%","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],[4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["fxFlex","98%"],["fxFlex","98%","mat-table","",3,"dataSource"],["matColumnDef","check"],["matColumnDef","id"],[3,"ngModel","change","ngModelChange"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-form-field",1),t._uU(3,"\n "),t.TgZ(4,"mat-label"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t._uU(7,"\n "),t.TgZ(8,"mat-select",null,2),t._uU(10,"\n "),t.YNc(11,Lo,2,2,"mat-option",3),t.ALo(12,"chargesFilter"),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n\n "),t.TgZ(16,"div",4),t._uU(17,"\n "),t.TgZ(18,"button",5),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(9);return t.KtG(a.addCharge(r))}),t._uU(19,"\n "),t._UZ(20,"fa-icon",6),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n "),t.qZA(),t._uU(24,"\n\n "),t.YNc(25,si,55,3,"table",7),t._uU(26,"\n\n "),t.YNc(27,fi,33,3,"div",8),t._uU(28,"\n\n\n"),t.qZA(),t._uU(29,"\n\n"),t.TgZ(30,"div",9),t._uU(31,"\n "),t.TgZ(32,"button",10),t._uU(33,"\n "),t._UZ(34,"fa-icon",11),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"button",12),t._uU(39),t.ALo(40,"translate"),t._UZ(41,"fa-icon",13),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n"),t.qZA()}if(2&e){const i=t.MAs(9);t.xp6(5),t.Oqu(t.lcZ(6,8,"labels.inputs.Charge")),t.xp6(6),t.Q6J("ngForOf",t.Dn7(12,10,a.chargeData,a.chargesDataSource,a.currencyCode.value)),t.xp6(7),t.Q6J("disabled",!i.value),t.xp6(3),t.hij("\n ",t.lcZ(22,14,"labels.buttons.Add"),"\n "),t.xp6(4),t.Q6J("ngIf",a.chargesDataSource.length>0),t.xp6(2),t.Q6J("ngIf",a.activeClientMembers),t.xp6(8),t.hij("\n ",t.lcZ(36,16,"labels.buttons.Previous"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(40,18,"labels.buttons.Next"),"\n ")}},dependencies:[f.sg,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.XD,u.yH,M.ey,x.lW,j.oG,p.KE,p.hX,y.gD,b.Ic,b.fd,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,s.JJ,s.On,T.X$,Fo.A,q.E,Q.w,D.H],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();var Ai=m(27676),lt=m(30637);function hi(n,o){if(1&n&&(t.TgZ(0,"span",4),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",13),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.s9C("externalId",e.savingsAccount.externalId)}}function vi(n,o){1&n&&(t.TgZ(0,"span",4),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Unassigned"),"\n "))}function Ci(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Opening Balance"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccount.minRequiredOpeningBalance))}}function xi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"find"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Lock-in Period"),":"),t.xp6(4),t.Oqu(e.getCatalogTranslation(e.savingsAccount.lockinPeriodFrequency+" "+t.gM2(8,4,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value")))}}function Ti(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccount.minOverdraftForInterestCalculation))}}function Ui(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),t.xp6(4),t.hij("",t.lcZ(8,4,e.savingsAccount.nominalAnnualInterestRateOverdraft)," %")}}function Zi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccount.overdraftLimit))}}function bi(n,o){if(1&n&&(t.TgZ(0,"div",2),t._uU(1,"\n "),t.TgZ(2,"span",3),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"span",4),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.hij("",t.lcZ(4,2,"labels.inputs.Minimum Balance"),":"),t.xp6(4),t.Oqu(e.savingsAccount.minRequiredBalance)}}function Oi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Name")," "))}function Pi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.name+", "+e.currency.displaySymbol,"\n ")}}function Mi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Type")," "))}function yi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"translateCatalog"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.chargeCalculationType.value),"\n ")}}function Si(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Amount")," "))}function qi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.amount),"\n ")}}function Di(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Date")," "))}function wi(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.dueDate)||"Unassigned","\n ")}}function Ii(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"dateFormat"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("\n ",t.lcZ(2,1,e.feeOnMonthDay)||"Unassigned","\n ")}}function Ni(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n N/A\n "),t.qZA())}function Fi(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1,"\n "),t.YNc(2,wi,3,3,"span",28),t._uU(3,"\n "),t.YNc(4,Ii,3,3,"span",28),t._uU(5,"\n "),t.YNc(6,Ni,2,0,"span",28),t._uU(7,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf","Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf","Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value),t.xp6(2),t.Q6J("ngIf",!("Monthly Fee"===e.chargeTimeType.value||"Annual Fee"===e.chargeTimeType.value||"Specified due date"===e.chargeTimeType.value||"Weekly Fee"===e.chargeTimeType.value))}}function Li(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Repayments Every")," "))}function ki(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.feeInterval||"Not Provided","\n ")}}function Yi(n,o){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"labels.inputs.Collected On")," "))}function Ji(n,o){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.chargeTimeType.value,"\n ")}}function Qi(n,o){1&n&&t._UZ(0,"tr",29)}function Ri(n,o){1&n&&t._UZ(0,"tr",30)}function Gi(n,o){if(1&n&&(t.TgZ(0,"div",14),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"table",15),t._uU(9,"\n\n "),t.ynx(10,16),t._uU(11,"\n "),t.YNc(12,Oi,3,3,"th",17),t._uU(13,"\n "),t.YNc(14,Pi,2,1,"td",18),t._uU(15,"\n "),t.BQk(),t._uU(16,"\n\n "),t.ynx(17,19),t._uU(18,"\n "),t.YNc(19,Mi,3,3,"th",17),t._uU(20,"\n "),t.YNc(21,yi,3,3,"td",18),t._uU(22,"\n "),t.BQk(),t._uU(23,"\n\n "),t.ynx(24,20),t._uU(25,"\n "),t.YNc(26,Si,3,3,"th",17),t._uU(27,"\n "),t.YNc(28,qi,3,3,"td",18),t._uU(29,"\n "),t.BQk(),t._uU(30,"\n\n "),t.ynx(31,21),t._uU(32,"\n "),t.YNc(33,Di,3,3,"th",17),t._uU(34,"\n "),t.YNc(35,Fi,8,3,"td",18),t._uU(36,"\n "),t.BQk(),t._uU(37,"\n\n "),t.ynx(38,22),t._uU(39,"\n "),t.YNc(40,Li,3,3,"th",17),t._uU(41,"\n "),t.YNc(42,ki,2,1,"td",18),t._uU(43,"\n "),t.BQk(),t._uU(44,"\n\n "),t.ynx(45,23),t._uU(46,"\n "),t.YNc(47,Yi,3,3,"th",17),t._uU(48,"\n "),t.YNc(49,Ji,2,1,"td",18),t._uU(50,"\n "),t.BQk(),t._uU(51,"\n\n "),t.YNc(52,Qi,1,0,"tr",24),t._uU(53,"\n "),t.YNc(54,Ri,1,0,"tr",25),t._uU(55,"\n\n "),t.qZA(),t._uU(56,"\n\n "),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,4,"labels.inputs.Charges")),t.xp6(5),t.Q6J("dataSource",e.savingsAccount.charges),t.xp6(44),t.Q6J("matHeaderRowDef",e.chargesDisplayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",e.chargesDisplayedColumns)}}const Ei=function(){return["../.."]};let K=(()=>{class n{constructor(e){this.translateService=e,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.submit=new t.vpe}getCatalogTranslation(e){return this.translateService.instant("labels.catalogs."+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(T.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-account-preview-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",savingsAccountTermsForm:"savingsAccountTermsForm",savingsAccount:"savingsAccount"},outputs:{submit:"submit"},decls:197,vars:121,consts:[["fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","",1,"mat-h3"],["fxFlexFill",""],["fxFlex","40%"],["fxFlex","60%"],["fxFlex","60%",4,"ngIf"],["fxFlexFill","",4,"ngIf"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","2%",1,"margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["fxFlexFill","","fxLayout","row wrap","fxLayout.lt-md","column"],["fxFlexFill","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["mat-header-row",""],["mat-row",""]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"h3",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n\n "),t._UZ(6,"mat-divider",2),t._uU(7,"\n\n "),t.TgZ(8,"div",2),t._uU(9,"\n "),t.TgZ(10,"span",3),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"span",4),t._uU(15),t.ALo(16,"find"),t.qZA(),t._uU(17,"\n "),t.qZA(),t._uU(18,"\n\n "),t.TgZ(19,"div",2),t._uU(20,"\n "),t.TgZ(21,"span",3),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._uU(24,"\n "),t.TgZ(25,"span",4),t._uU(26),t.ALo(27,"dateFormat"),t.qZA(),t._uU(28,"\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"div",2),t._uU(31,"\n "),t.TgZ(32,"span",3),t._uU(33),t.ALo(34,"translate"),t.qZA(),t._uU(35,"\n "),t.YNc(36,hi,4,1,"span",5),t._uU(37,"\n "),t.YNc(38,vi,3,3,"span",5),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n\n "),t.TgZ(41,"div",2),t._uU(42,"\n "),t.TgZ(43,"span",3),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n "),t.TgZ(47,"span",4),t._uU(48),t.ALo(49,"find"),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n\n "),t.TgZ(52,"h3",1),t._uU(53),t.ALo(54,"translate"),t.qZA(),t._uU(55,"\n\n "),t._UZ(56,"mat-divider",2),t._uU(57,"\n\n "),t.TgZ(58,"div",2),t._uU(59,"\n "),t.TgZ(60,"span",3),t._uU(61),t.ALo(62,"translate"),t.qZA(),t._uU(63,"\n "),t.TgZ(64,"span",4),t._uU(65),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n\n "),t.TgZ(68,"div",2),t._uU(69,"\n "),t.TgZ(70,"span",3),t._uU(71),t.ALo(72,"translate"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"span",4),t._uU(75),t.qZA(),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n\n "),t.TgZ(78,"div",2),t._uU(79,"\n "),t.TgZ(80,"span",3),t._uU(81),t.ALo(82,"translate"),t.qZA(),t._uU(83,"\n "),t.TgZ(84,"span",4),t._uU(85),t.ALo(86,"formatNumber"),t.qZA(),t._uU(87,"\n "),t.qZA(),t._uU(88,"\n\n "),t.TgZ(89,"div",2),t._uU(90,"\n "),t.TgZ(91,"span",3),t._uU(92),t.ALo(93,"translate"),t.qZA(),t._uU(94,"\n "),t.TgZ(95,"span",4),t._uU(96),t.ALo(97,"find"),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n\n "),t.TgZ(100,"div",2),t._uU(101,"\n "),t.TgZ(102,"span",3),t._uU(103),t.ALo(104,"translate"),t.qZA(),t._uU(105,"\n "),t.TgZ(106,"span",4),t._uU(107),t.ALo(108,"find"),t.qZA(),t._uU(109,"\n "),t.qZA(),t._uU(110,"\n\n "),t.TgZ(111,"div",2),t._uU(112,"\n "),t.TgZ(113,"span",3),t._uU(114),t.ALo(115,"translate"),t.qZA(),t._uU(116,"\n "),t.TgZ(117,"span",4),t._uU(118),t.ALo(119,"find"),t.qZA(),t._uU(120,"\n "),t.qZA(),t._uU(121,"\n\n "),t.TgZ(122,"div",2),t._uU(123,"\n "),t.TgZ(124,"span",3),t._uU(125),t.ALo(126,"translate"),t.qZA(),t._uU(127,"\n "),t.TgZ(128,"span",4),t._uU(129),t.ALo(130,"find"),t.qZA(),t._uU(131,"\n "),t.qZA(),t._uU(132,"\n\n "),t.YNc(133,Ci,10,6,"div",6),t._uU(134,"\n\n "),t.TgZ(135,"div",2),t._uU(136,"\n "),t.TgZ(137,"span",3),t._uU(138),t.ALo(139,"translate"),t.qZA(),t._uU(140,"\n "),t.TgZ(141,"span",4),t._uU(142),t.ALo(143,"yesNo"),t.qZA(),t._uU(144,"\n "),t.qZA(),t._uU(145,"\n\n "),t.YNc(146,xi,10,9,"div",6),t._uU(147,"\n\n "),t.TgZ(148,"div",2),t._uU(149,"\n "),t.TgZ(150,"span",3),t._uU(151),t.ALo(152,"translate"),t.qZA(),t._uU(153,"\n "),t.TgZ(154,"span",4),t._uU(155),t.ALo(156,"yesNo"),t.qZA(),t._uU(157,"\n "),t.qZA(),t._uU(158,"\n\n "),t.YNc(159,Ti,10,6,"div",6),t._uU(160,"\n\n "),t.YNc(161,Ui,10,6,"div",6),t._uU(162,"\n\n "),t.YNc(163,Zi,10,6,"div",6),t._uU(164,"\n\n "),t.TgZ(165,"div",2),t._uU(166,"\n "),t.TgZ(167,"span",3),t._uU(168),t.ALo(169,"translate"),t.qZA(),t._uU(170,"\n "),t.TgZ(171,"span",4),t._uU(172),t.ALo(173,"yesNo"),t.qZA(),t._uU(174,"\n "),t.qZA(),t._uU(175,"\n\n "),t.YNc(176,bi,9,4,"div",6),t._uU(177,"\n\n "),t.YNc(178,Gi,57,6,"div",7),t._uU(179,"\n\n"),t.qZA(),t._uU(180,"\n\n"),t.TgZ(181,"div",8),t._uU(182,"\n "),t.TgZ(183,"button",9),t._uU(184,"\n "),t._UZ(185,"fa-icon",10),t._uU(186),t.ALo(187,"translate"),t.qZA(),t._uU(188,"\n "),t.TgZ(189,"button",11),t._uU(190),t.ALo(191,"translate"),t.qZA(),t._uU(192,"\n "),t.TgZ(193,"button",12),t.NdJ("click",function(){return a.submit.emit()}),t._uU(194),t.ALo(195,"translate"),t.qZA(),t._uU(196,"\n"),t.qZA()),2&e&&(t.xp6(3),t.Oqu(t.lcZ(4,42,"labels.heading.Details")),t.xp6(8),t.Oqu(t.lcZ(12,44,"labels.inputs.Product")),t.xp6(4),t.Oqu(t.gM2(16,46,a.savingsAccount.productId,a.savingsAccountTemplate.productOptions,"id","name")),t.xp6(7),t.Oqu(t.lcZ(23,51,"labels.inputs.Submitted On")),t.xp6(4),t.Oqu(t.lcZ(27,53,a.savingsAccount.submittedOnDate)),t.xp6(7),t.Oqu(t.lcZ(34,55,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",a.savingsAccount.externalId),t.xp6(2),t.Q6J("ngIf",!a.savingsAccount.externalId),t.xp6(6),t.Oqu(t.lcZ(45,57,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(t.gM2(49,59,a.savingsAccount.fieldOfficerId,a.savingsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),t.xp6(5),t.Oqu(t.lcZ(54,64,"labels.heading.Terms")),t.xp6(8),t.Oqu(t.lcZ(62,66,"labels.inputs.Currency")),t.xp6(4),t.Oqu(a.savingsAccountTermsForm.get("currencyCode").value),t.xp6(6),t.Oqu(t.lcZ(72,68,"labels.inputs.Decimal Places")),t.xp6(4),t.Oqu(a.savingsAccountTermsForm.get("decimal").value),t.xp6(6),t.hij("",t.lcZ(82,70,"labels.inputs.Nominal Annual Interest"),":"),t.xp6(4),t.hij("",t.lcZ(86,72,a.savingsAccount.nominalAnnualInterestRate)," %"),t.xp6(7),t.hij("",t.lcZ(93,74,"labels.inputs.Interest Compounding Period"),":"),t.xp6(4),t.Oqu(a.getCatalogTranslation(t.gM2(97,76,a.savingsAccount.interestCompoundingPeriodType,a.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"))),t.xp6(7),t.hij("",t.lcZ(104,81,"labels.inputs.Interest Posting Period"),":"),t.xp6(4),t.Oqu(a.getCatalogTranslation(t.gM2(108,83,a.savingsAccount.interestPostingPeriodType,a.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"))),t.xp6(7),t.hij("",t.lcZ(115,88,"labels.inputs.Interest Calculated using"),":"),t.xp6(4),t.Oqu(a.getCatalogTranslation(t.gM2(119,90,a.savingsAccount.interestCalculationType,a.savingsAccountProductTemplate.interestCalculationTypeOptions,"id","value"))),t.xp6(7),t.hij("",t.lcZ(126,95,"labels.inputs.Days in Year"),":"),t.xp6(4),t.Oqu(a.getCatalogTranslation(t.gM2(130,97,a.savingsAccount.interestCalculationDaysInYearType,a.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"))),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredOpeningBalance),t.xp6(5),t.hij("",t.lcZ(139,102,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),t.xp6(4),t.Oqu(t.lcZ(143,104,a.savingsAccount.withdrawalFeeForTransfers)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.lockinPeriodFrequency),t.xp6(5),t.hij("",t.lcZ(152,106,"labels.inputs.Is Overdraft Allowed"),":"),t.xp6(4),t.Oqu(t.lcZ(156,108,a.savingsAccount.allowOverdraft)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minOverdraftForInterestCalculation),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.nominalAnnualInterestRateOverdraft),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.overdraftLimit),t.xp6(5),t.hij("",t.lcZ(169,110,"labels.inputs.Enforce Minimum Balance"),":"),t.xp6(4),t.Oqu(t.lcZ(173,112,a.savingsAccount.enforceMinRequiredBalance)),t.xp6(4),t.Q6J("ngIf",a.savingsAccount.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",a.savingsAccount.charges.length),t.xp6(8),t.hij("\n ",t.lcZ(187,114,"labels.buttons.Previous"),"\n "),t.xp6(3),t.Q6J("routerLink",t.DdM(120,Ei)),t.xp6(1),t.hij("\n ",t.lcZ(191,116,"labels.buttons.Cancel"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(195,118,"labels.buttons.Submit"),"\n "))},dependencies:[f.O5,P.BN,u.xw,u.SQ,u.Wh,u.s9,u.yH,x.lW,ut.d,b.fd,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,V.e,l.rH,T.X$,Ai.Z,q.E,Q.w,lt.D,D.H],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]}),n})();function Bi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Hi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function ji(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function zi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function Wi(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function Vi(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function $i(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function Xi(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function Ki(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function tc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,Ki,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let nc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(g=>{this.savingsAccountTemplate=g.savingsAccountTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:r.dueDate,feeOnMonthDay:r.feeOnMonthDay,feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountTemplate.clientId?c.clientId=this.savingsAccountTemplate.clientId:c.groupId=this.savingsAccountTemplate.groupId,this.savingsService.createSavingsAccount(c).subscribe(r=>{this.router.navigate(["../",r.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.L),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(k,7),t.Gf(Y,7),t.Gf(J,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:8,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,Bi,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,Hi,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,ji,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,zi,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,Wi,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,Vi,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,$i,2,3,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,Xi,2,3,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,tc,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[f.O5,P.BN,b.C0,b.VY,b.Vq,b.z9,k,J,Y,K,T.X$]}),n})();function ec(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function ac(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function oc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function ic(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function cc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function sc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.DETAILS"))}function rc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.TERMS"))}function uc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.CHARGES"))}function lc(n,o){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"labels.inputs.PREVIEW"))}function gc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n\n "),t.YNc(2,lc,2,3,"ng-template",9),t._uU(3,"\n\n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n\n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountAndTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let mc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(g=>{this.savingsAccountAndTemplate=g.savingsAccountAndTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValidAndNotPristine(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&(!this.savingsAccountDetailsForm.pristine||!this.savingsAccountTermsForm.pristine||!this.savingsAccountChargesStep.pristine)}get savingsAccount(){return{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}submit(){const e=this.settingsService.language.code,a=this.settingsService.dateFormat,c={...this.savingsAccount,charges:this.savingsAccount.charges.map(r=>({chargeId:r.id,amount:r.amount,dueDate:this.dateUtils.formatDate(r.dueDate,a),feeOnMonthDay:this.dateUtils.formatDate(r.feeOnMonthDay,a),feeInterval:r.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,a),dateFormat:a,monthDayFormat:"dd MMMM",locale:e};this.savingsAccountAndTemplate.clientId?c.clientId=this.savingsAccountAndTemplate.clientId:c.groupId=this.savingsAccountAndTemplate.groupId,this.savingsService.updateSavingsAccount(this.savingsAccountAndTemplate.id,c).subscribe(r=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.L),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(k,7),t.Gf(Y,7),t.Gf(J,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n\n "),t.YNc(5,ec,3,0,"ng-template",3),t._uU(6,"\n\n "),t.YNc(7,ac,3,0,"ng-template",4),t._uU(8,"\n\n "),t.YNc(9,oc,3,0,"ng-template",5),t._uU(10,"\n\n "),t.YNc(11,ic,3,0,"ng-template",6),t._uU(12,"\n\n "),t.YNc(13,cc,3,0,"ng-template",7),t._uU(14,"\n\n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n\n "),t.YNc(17,sc,2,3,"ng-template",9),t._uU(18,"\n\n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n\n "),t.YNc(25,rc,2,3,"ng-template",9),t._uU(26,"\n\n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n\n "),t.qZA(),t._uU(29,"\n\n "),t.TgZ(30,"mat-step"),t._uU(31,"\n\n "),t.YNc(32,uc,2,3,"ng-template",9),t._uU(33,"\n\n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n\n "),t.qZA(),t._uU(37,"\n\n "),t.YNc(38,gc,7,4,"mat-step",13),t._uU(39,"\n\n "),t.qZA(),t._uU(40,"\n\n"),t.qZA(),t._uU(41,"\n")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountAndTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode")),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValidAndNotPristine))},dependencies:[f.O5,P.BN,b.C0,b.VY,b.Vq,b.z9,k,J,Y,K,T.X$]}),n})();const pc=function(n){return["./datatables",n]};function _c(n,o){if(1&n&&(t.TgZ(0,"a",2,6),t._uU(2),t.qZA()),2&n){const e=t.MAs(1),a=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(3,pc,a.registeredTableName))("active",e.isActive),t.xp6(2),t.hij("\n ",a.registeredTableName,"\n ")}}function dc(n,o){if(1&n&&(t.ynx(0),t._uU(1,"\n "),t.YNc(2,_c,3,5,"a",5),t._uU(3,"\n "),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("mifosxHasPermission","READ_"+e.registeredTableName)}}const fc=function(){return["./general"]};let Ac=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.route.data.subscribe(i=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=i.transactionDatatables})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-transaction"]],decls:15,vars:7,consts:[[1,"container"],["mat-tab-nav-bar","",1,"navigation-tabs"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["general","routerLinkActive"],[4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["datatable","routerLinkActive"]],template:function(e,a){if(1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.TgZ(2,"nav",1),t._uU(3,"\n "),t.TgZ(4,"a",2,3),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8,"\n "),t.YNc(9,dc,4,1,"ng-container",4),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t._UZ(12,"router-outlet"),t._uU(13,"\n\n"),t.qZA(),t._uU(14,"\n")),2&e){const i=t.MAs(5);t.xp6(4),t.Q6J("routerLink",t.DdM(6,fc))("active",i.isActive),t.xp6(2),t.hij("\n ",t.lcZ(7,4,"labels.heading.General"),"\n "),t.xp6(3),t.Q6J("ngForOf",a.entityDatatables)}},dependencies:[f.sg,E.BU,E.Nj,S.A,l.lC,l.yS,l.Od,T.X$],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();function hc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.payCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",12),t._uU(3,"\n Pay\n "),t.qZA()}}function vc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.waiveCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",14),t._uU(3,"\n Waive\n "),t.qZA()}}function Cc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.inactivateCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Inactivate\n "),t.qZA()}}function xc(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Cc,4,0,"button",15),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function Tc(n,o){if(1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,hc,4,0,"button",8),t._uU(3,"\n "),t.YNc(4,vc,4,0,"button",9),t._uU(5,"\n "),t.YNc(6,xc,4,1,"span",10),t._uU(7,"\n"),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("ngIf",e.isRecurringCharge())}}function Uc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.editCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3,"\n Edit\n "),t.qZA()}}function Zc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.deleteCharge())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",17),t._uU(3,"\n Delete\n "),t.qZA()}}function bc(n,o){1&n&&(t.TgZ(0,"div",7),t._uU(1,"\n "),t.YNc(2,Uc,4,0,"button",9),t._uU(3,"\n "),t.YNc(4,Zc,4,0,"button",15),t._uU(5,"\n"),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),t.xp6(2),t.Q6J("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}const Oc=function(){return["../"]};let Pc=(()=>{class n{constructor(e,a,i,c,r,g){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=g,this.route.data.subscribe(v=>{this.chargeData=v.savingsAccountCharge}),this.route.data.subscribe(v=>{this.savingsAccountData=v.savingsAccountData})}payCharge(){const e=[new L.M({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new X.d({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})];this.dialog.open(w.E,{data:{title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const r=this.settingsService.language.code,g=this.settingsService.dateFormat,v={...c.data.value,dueDate:this.dateUtils.formatDate(c.data.value.dueDate,g),dateFormat:g,locale:r};this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"pay",v,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(st,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}inactivateCharge(){this.dialog.open(rt,{data:{id:this.chargeData.id}}).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"inactivate",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){const e=[new L.M({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0})];this.dialog.open(w.E,{data:{title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e}}).afterClosed().subscribe(c=>{if(c.data){const v={...c.data.value,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.savingsService.editSavingsAccountCharge(this.chargeData.accountId,v,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(R.F,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.savingsService.deleteSavingsAccountCharge(this.chargeData.accountId,this.chargeData.id).subscribe(()=>{this.reload()})})}isRecurringCharge(){const e=this.chargeData.chargeTimeType.value;return"Monthly Fee"===e||"Annual Fee"===e||"Weekly Fee"===e}reload(){const e=this.router.url.replace(`/${this.chargeData.id}`,""),a=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(a,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.d),t.Y36(l.gz),t.Y36(Z.L),t.Y36(l.F0),t.Y36(h.uw),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-charge"]],decls:102,vars:63,consts:[["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column","class","container m-b-20",4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","2%","fxLayout.lt-md","column",1,"container","m-b-20"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[4,"ngIf"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["icon","edit",1,"m-r-10"]],template:function(e,a){1&e&&(t._uU(0,"\n\n"),t.YNc(1,Tc,8,3,"div",0),t._uU(2,"\n\n"),t.YNc(3,bc,6,2,"div",0),t._uU(4,"\n\n"),t.TgZ(5,"div",1),t._uU(6,"\n\n "),t.TgZ(7,"mat-card"),t._uU(8,"\n\n "),t.TgZ(9,"mat-card-content"),t._uU(10,"\n\n "),t.TgZ(11,"div",2),t._uU(12,"\n\n "),t.TgZ(13,"div",3),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n\n "),t.TgZ(17,"div",4),t._uU(18),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",3),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"div",4),t._uU(25),t.ALo(26,"translateCatalog"),t.qZA(),t._uU(27,"\n\n "),t.TgZ(28,"div",3),t._uU(29),t.ALo(30,"translate"),t.qZA(),t._uU(31,"\n\n "),t.TgZ(32,"div",4),t._uU(33),t.qZA(),t._uU(34,"\n\n "),t.TgZ(35,"div",3),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38,"\n\n "),t.TgZ(39,"div",4),t._uU(40),t.ALo(41,"translateCatalog"),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",3),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._uU(46,"\n\n "),t.TgZ(47,"div",4),t._uU(48),t.ALo(49,"dateFormat"),t.qZA(),t._uU(50,"\n\n "),t.TgZ(51,"div",3),t._uU(52),t.ALo(53,"translate"),t.qZA(),t._uU(54,"\n\n "),t.TgZ(55,"div",4),t._uU(56),t.ALo(57,"translateCatalog"),t.qZA(),t._uU(58,"\n\n "),t.TgZ(59,"div",3),t._uU(60),t.ALo(61,"translate"),t.qZA(),t._uU(62,"\n\n "),t.TgZ(63,"div",4),t._uU(64),t.ALo(65,"formatNumber"),t.qZA(),t._uU(66,"\n\n "),t.TgZ(67,"div",3),t._uU(68),t.ALo(69,"translate"),t.qZA(),t._uU(70,"\n\n "),t.TgZ(71,"div",4),t._uU(72),t.ALo(73,"formatNumber"),t.qZA(),t._uU(74,"\n\n "),t.TgZ(75,"div",3),t._uU(76),t.ALo(77,"translate"),t.qZA(),t._uU(78,"\n\n "),t.TgZ(79,"div",4),t._uU(80),t.ALo(81,"formatNumber"),t.qZA(),t._uU(82,"\n\n "),t.TgZ(83,"div",3),t._uU(84),t.ALo(85,"translate"),t.qZA(),t._uU(86,"\n\n "),t.TgZ(87,"div",4),t._uU(88),t.ALo(89,"formatNumber"),t.qZA(),t._uU(90,"\n\n "),t.qZA(),t._uU(91,"\n\n "),t.TgZ(92,"div",5),t._uU(93,"\n "),t.TgZ(94,"button",6),t._uU(95),t.ALo(96,"translate"),t.qZA(),t._uU(97,"\n "),t.qZA(),t._uU(98,"\n "),t.qZA(),t._uU(99,"\n\n "),t.qZA(),t._uU(100,"\n\n"),t.qZA(),t._uU(101,"\n")),2&e&&(t.xp6(1),t.Q6J("ngIf","Active"===a.savingsAccountData.status.value&&0!==a.chargeData.amountOutstanding),t.xp6(2),t.Q6J("ngIf","Submitted and pending approval"===a.savingsAccountData.status.value),t.xp6(11),t.hij("\n ",t.lcZ(15,24,"labels.inputs.Name"),"\n "),t.xp6(4),t.hij("\n ",a.chargeData.name,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(22,26,"labels.inputs.Charge Type"),"\n "),t.xp6(4),t.hij("\n ",a.chargeData.penalty?"Penalty":t.lcZ(26,28,"Fee"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(30,30,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",a.chargeData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(37,32,"labels.inputs.Payment due at"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(41,34,a.chargeData.chargeTimeType.value),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(45,36,"labels.inputs.Payment due as of"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(49,38,a.chargeData.dueDate),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(53,40,"labels.inputs.Calculation Type"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(57,42,a.chargeData.chargeCalculationType.value),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(61,44,"labels.inputs.Due"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(65,46,a.chargeData.amount),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(69,48,"labels.inputs.Paid"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(73,50,a.chargeData.amountPaid),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(77,52,"labels.inputs.Waived"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(81,54,a.chargeData.amountWaived),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(85,56,"labels.inputs.Outstanding"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(89,58,a.chargeData.amountOutstanding),"\n "),t.xp6(6),t.Q6J("routerLink",t.DdM(62,Oc)),t.xp6(1),t.Oqu(t.lcZ(96,60,"labels.buttons.Back")))},dependencies:[f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,x.lW,d.a8,d.dn,S.A,l.rH,T.X$,q.E,Q.w,D.H],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]}),n})();var gt=m(11481);const Mc=function(){return["../../"]};let yc=(()=>{class n{constructor(e,a){this.sanitizer=e,this.route=a,this.route.data.subscribe(i=>{this.transactionRecieptData=i.savingsTransactionReciept})}ngOnInit(){const e=this.transactionRecieptData.headers.get("Content-Type"),a=new Blob([this.transactionRecieptData.body],{type:e}),i=URL.createObjectURL(a);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(gt.H7),t.Y36(l.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-view-reciept"]],decls:13,vars:3,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(e,a){1&e&&(t.TgZ(0,"mat-card",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n "),t.TgZ(4,"button",2),t._uU(5,"\n "),t._UZ(6,"fa-icon",3),t._uU(7,"Back"),t.qZA(),t._uU(8,"\n "),t.qZA(),t._uU(9,"\n\n "),t._UZ(10,"iframe",4),t._uU(11,"\n\n"),t.qZA(),t._uU(12,"\n")),2&e&&(t.xp6(4),t.Q6J("routerLink",t.DdM(2,Mc)),t.xp6(6),t.Q6J("src",a.pentahoUrl,t.uOi))},dependencies:[P.BN,x.lW,d.a8,l.rH],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]}),n})();var mt=m(78543);function Sc(n,o){if(1&n&&t._UZ(0,"iframe",13),2&n){const e=t.oxw();t.Q6J("src",e.pentahoUrl,t.uOi)}}const qc=function(){return["../"]};let Dc=(()=>{class n{constructor(e,a,i,c,r,g){this.sanitizer=e,this.reportsService=a,this.formBuilder=i,this.dateUtils=c,this.route=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(v=>{this.savingsAccountId=v.savingsAccountData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",s.kI.required],toDate:["",s.kI.required]})}generate(){const e={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,this.settingsService.dateFormat),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,this.settingsService.dateFormat),R_savingsAccountId:this.savingsAccountId};this.reportsService.getPentahoRunReportData("Client Saving Transactions",e,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(a=>{const i=a.headers.get("Content-Type"),c=new Blob([a.body],{type:i}),r=URL.createObjectURL(c);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(r),this.hideOutput=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(gt.H7),t.Y36(mt.F),t.Y36(s.QS),t.Y36(Z.L),t.Y36(l.gz),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-export-transactions"]],decls:57,vars:13,consts:[["fxLayout","column",1,"m-t-20",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayoutGap","3%","fxLayoutAlign","center"],["fxFlex","30%",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["fromDatePicker",""],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["toDatePicker",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","5%",1,"generate-button"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src",4,"ngIf"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return a.generate()}),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n\n "),t.TgZ(4,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(14);return t.KtG(r.open())}),t._uU(5,"\n "),t.TgZ(6,"mat-label"),t._uU(7,"From Date"),t.qZA(),t._uU(8,"\n "),t._UZ(9,"input",3),t._uU(10,"\n "),t._UZ(11,"mat-datepicker-toggle",4),t._uU(12,"\n "),t._UZ(13,"mat-datepicker",null,5),t._uU(15,"\n "),t.TgZ(16,"mat-error"),t._uU(17,"\n From date is "),t.TgZ(18,"strong"),t._uU(19,"required"),t.qZA(),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field",2),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(33);return t.KtG(r.open())}),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"To Date"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",6),t._uU(29,"\n "),t._UZ(30,"mat-datepicker-toggle",4),t._uU(31,"\n "),t._UZ(32,"mat-datepicker",null,7),t._uU(34,"\n "),t.TgZ(35,"mat-error"),t._uU(36,"\n To date is "),t.TgZ(37,"strong"),t._uU(38,"required"),t.qZA(),t._uU(39,"\n "),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n\n "),t.qZA(),t._uU(42,"\n\n "),t.TgZ(43,"div",8),t._uU(44,"\n "),t.TgZ(45,"button",9),t._uU(46,"Cancel"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"button",10),t._uU(49,"\n "),t._UZ(50,"fa-icon",11),t._uU(51,"Generate Report \xa0"),t.qZA(),t._uU(52,"\n "),t.qZA(),t._uU(53,"\n\n"),t.qZA(),t._uU(54,"\n\n"),t.YNc(55,Sc,1,1,"iframe",12),t._uU(56,"\n")}if(2&e){const i=t.MAs(14),c=t.MAs(33);t.Q6J("formGroup",a.transactionsReportForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(17),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",c),t.xp6(2),t.Q6J("for",c),t.xp6(15),t.Q6J("routerLink",t.DdM(12,qc)),t.xp6(3),t.Q6J("disabled",!a.transactionsReportForm.valid),t.xp6(7),t.Q6J("ngIf",!a.hideOutput)}},dependencies:[f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,x.lW,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]}),n})();function wc(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Date is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function Ic(n,o){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"\n Transaction Amount is "),t.TgZ(2,"strong"),t._uU(3,"required"),t.qZA(),t._uU(4,"\n "),t.qZA())}function Nc(n,o){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij("\n ",e.name,"\n ")}}function Fc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Account Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",19),t._uU(6,"\n "),t.qZA())}function Lc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Cheque"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",20),t._uU(6,"\n "),t.qZA())}function kc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Routing Code"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",21),t._uU(6,"\n "),t.qZA())}function Yc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Receipt Number"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",22),t._uU(6,"\n "),t.qZA())}function Jc(n,o){1&n&&(t.TgZ(0,"mat-form-field"),t._uU(1,"\n "),t.TgZ(2,"mat-label"),t._uU(3,"Bank"),t.qZA(),t._uU(4,"\n "),t._UZ(5,"input",23),t._uU(6,"\n "),t.qZA())}const Qc=function(){return["../"]};let Rc=(()=>{class n{constructor(e,a,i,c,r,g){this.formBuilder=e,this.route=a,this.router=i,this.dateUtils=c,this.savingsService=r,this.settingsService=g,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(v=>{this.transactionTemplateData=v.savingsAccountTransactionTemplate,this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",s.kI.required],transactionAmount:["",s.kI.required],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new s.p4("")),this.editTransactionForm.addControl("checkNumber",new s.p4("")),this.editTransactionForm.addControl("routingCode",new s.p4("")),this.editTransactionForm.addControl("receiptNumber",new s.p4("")),this.editTransactionForm.addControl("bankNumber",new s.p4(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){const e=this.editTransactionForm.value,a=this.settingsService.language.code,i=this.settingsService.dateFormat;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(this.editTransactionForm.value.transactionDate,i));const r={...e,dateFormat:i,locale:a};this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",r,this.transactionTemplateData.id).subscribe(g=>{this.router.navigate(["../"],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(s.QS),t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.L),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-edit-transaction"]],decls:82,vars:17,consts:[[1,"container"],[3,"formGroup","ngSubmit"],["fxLayout","column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["dueDatePicker",""],[4,"ngIf"],["type","number","formControlName","transactionAmount","required","","matInput",""],["formControlName","paymentTypeId"],[3,"value",4,"ngFor","ngForOf"],["fxFlexFill",""],["fxFlex","75%",1,"expandcollapsebutton","m-l-10","m-t-40",3,"click"],[3,"className"],[1,"m-l-10"],["fxLayoutGap","5px","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(e,a){if(1&e){const i=t.EpF();t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-card"),t._uU(3,"\n\n "),t.TgZ(4,"form",1),t.NdJ("ngSubmit",function(){return a.submit()}),t._uU(5,"\n\n "),t.TgZ(6,"mat-card-content",2),t._uU(7,"\n\n "),t.TgZ(8,"mat-form-field",3),t.NdJ("click",function(){t.CHM(i);const r=t.MAs(18);return t.KtG(r.open())}),t._uU(9,"\n "),t.TgZ(10,"mat-label"),t._uU(11,"Transaction Date"),t.qZA(),t._uU(12,"\n "),t._UZ(13,"input",4),t._uU(14,"\n "),t._UZ(15,"mat-datepicker-toggle",5),t._uU(16,"\n "),t._UZ(17,"mat-datepicker",null,6),t._uU(19,"\n "),t.YNc(20,wc,5,0,"mat-error",7),t._uU(21,"\n "),t.qZA(),t._uU(22,"\n\n "),t.TgZ(23,"mat-form-field"),t._uU(24,"\n "),t.TgZ(25,"mat-label"),t._uU(26,"Transaction Amount"),t.qZA(),t._uU(27,"\n "),t._UZ(28,"input",8),t._uU(29,"\n "),t.YNc(30,Ic,5,0,"mat-error",7),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n\n "),t.TgZ(33,"mat-form-field"),t._uU(34,"\n "),t.TgZ(35,"mat-label"),t._uU(36,"Payment Type"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"mat-select",9),t._uU(39,"\n "),t.YNc(40,Nc,2,2,"mat-option",10),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n\n "),t.TgZ(44,"div",11),t._uU(45,"\n "),t.TgZ(46,"span",12),t.NdJ("click",function(){return a.addPaymentDetails()}),t._uU(47,"\n "),t.TgZ(48,"mat-slide-toggle"),t._uU(49,"\n "),t.TgZ(50,"div",13),t._uU(51,"\n "),t.TgZ(52,"span",14),t._uU(53,"Show Payment Details"),t.qZA(),t._uU(54,"\n "),t.qZA(),t._uU(55,"\n "),t.qZA(),t._uU(56,"\n "),t.qZA(),t._uU(57,"\n "),t.qZA(),t._uU(58,"\n\n "),t.YNc(59,Fc,7,0,"mat-form-field",7),t._uU(60,"\n\n "),t.YNc(61,Lc,7,0,"mat-form-field",7),t._uU(62,"\n\n "),t.YNc(63,kc,7,0,"mat-form-field",7),t._uU(64,"\n\n "),t.YNc(65,Yc,7,0,"mat-form-field",7),t._uU(66,"\n\n "),t.YNc(67,Jc,7,0,"mat-form-field",7),t._uU(68,"\n\n "),t.TgZ(69,"mat-card-actions",15),t._uU(70,"\n "),t.TgZ(71,"button",16),t._uU(72,"Cancel"),t.qZA(),t._uU(73,"\n "),t.TgZ(74,"button",17),t._uU(75,"Submit"),t.qZA(),t._uU(76,"\n "),t.qZA(),t._uU(77,"\n\n "),t.qZA(),t._uU(78,"\n\n "),t.qZA(),t._uU(79,"\n\n "),t.qZA(),t._uU(80,"\n\n"),t.qZA(),t._uU(81,"\n")}if(2&e){const i=t.MAs(18);t.xp6(4),t.Q6J("formGroup",a.editTransactionForm),t.xp6(9),t.Q6J("min",a.minDate)("max",a.maxDate)("matDatepicker",i),t.xp6(2),t.Q6J("for",i),t.xp6(5),t.Q6J("ngIf",a.editTransactionForm.controls.transactionDate.hasError("required")),t.xp6(10),t.Q6J("ngIf",a.editTransactionForm.controls.transactionAmount.hasError("required")),t.xp6(10),t.Q6J("ngForOf",a.paymentTypeOptions),t.xp6(10),t.Q6J("className",a.showPaymentDetails?"enabled":"disabled"),t.xp6(9),t.Q6J("ngIf",a.editTransactionForm.controls.accountNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.checkNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.routingCode),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.receiptNumber),t.xp6(2),t.Q6J("ngIf",a.editTransactionForm.controls.bankNumber),t.xp6(4),t.Q6J("routerLink",t.DdM(16,Qc)),t.xp6(3),t.Q6J("disabled",!a.editTransactionForm.valid)}},dependencies:[f.sg,f.O5,u.xw,u.SQ,u.Wh,u.s9,u.yH,M.ey,x.lW,d.a8,d.dn,d.hq,A.Mq,A.hl,A.nW,p.TO,p.KE,p.hX,p.R9,O.Nt,y.gD,$.Rr,s._Y,s.Fj,s.wV,s.JJ,s.JL,s.Q7,s.sg,s.u,l.rH],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]}),n})();function Gc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Ec(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",14),t._uU(2,"\n "))}function Bc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",15),t._uU(2,"\n "))}function Hc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",16),t._uU(2,"\n "))}function jc(n,o){1&n&&(t._uU(0,"\n "),t._UZ(1,"fa-icon",17),t._uU(2,"\n "))}function zc(n,o){1&n&&t._uU(0,"DETAILS")}function Wc(n,o){1&n&&t._uU(0,"TERMS")}function Vc(n,o){1&n&&t._uU(0,"CHARGES")}function $c(n,o){1&n&&t._uU(0,"PREVIEW")}function Xc(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",18),t._uU(1,"\n \n "),t.YNc(2,$c,1,0,"ng-template",9),t._uU(3,"\n \n "),t.TgZ(4,"mifosx-savings-account-preview-step",19),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.submit())}),t._uU(5,"\n "),t.qZA(),t._uU(6,"\n \n "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}let Kc=(()=>{class n{constructor(e,a,i,c,r){this.route=e,this.router=a,this.dateUtils=i,this.savingsService=c,this.settingsService=r,this.route.data.subscribe(g=>{this.savingsAccountTemplate=g.savingsAccountTemplate,this.dataSource=g.groupsData.activeClientMembers})}ngOnInit(){}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get activeClientMembers(){return this.dataSource}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return this.selectedMembers=this.savingsAccountChargesStep.selectedClientMembers,{...this.savingsAccountDetailsStep.savingsAccountDetails,...this.savingsAccountTermsStep.savingsAccountTerms,...this.savingsAccountChargesStep.savingsAccountCharges}}setData(e){const a=this.settingsService.language.code,i=this.settingsService.dateFormat,r={...this.savingsAccount,charges:this.savingsAccount.charges.map(g=>({chargeId:g.id,amount:g.amount})),clientId:e.id,isGSIM:!0,isParentAccount:!0,submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,i),dateFormat:i,monthDayFormat:"dd MMMM",locale:a};return r.groupId=this.savingsAccountTemplate.groupId,r}buildRequestData(){const e=[],a=this.selectedMembers.selectedMembers;for(let i=0;i<1;i++)e.push(this.setData(a[i]));return e}submit(){const a={clientArray:this.buildRequestData()};this.savingsService.createGsimAcccount(a).subscribe(i=>{this.router.navigate(["../",i.resourceId],{relativeTo:this.route})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(Z.L),t.Y36(C.d),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(e,a){if(1&e&&(t.Gf(k,7),t.Gf(Y,7),t.Gf(J,7)),2&e){let i;t.iGM(i=t.CRH())&&(a.savingsAccountDetailsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountTermsStep=i.first),t.iGM(i=t.CRH())&&(a.savingsAccountChargesStep=i.first)}},decls:42,vars:9,consts:[[1,"container"],["labelPosition","bottom",1,"mat-elevation-z8"],["savingProductStepper",""],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountTemplate","savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode","activeClientMembers"],["completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["completed",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","submit"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"mat-horizontal-stepper",1,2),t._uU(4,"\n \n "),t.YNc(5,Gc,3,0,"ng-template",3),t._uU(6,"\n \n "),t.YNc(7,Ec,3,0,"ng-template",4),t._uU(8,"\n \n "),t.YNc(9,Bc,3,0,"ng-template",5),t._uU(10,"\n \n "),t.YNc(11,Hc,3,0,"ng-template",6),t._uU(12,"\n \n "),t.YNc(13,jc,3,0,"ng-template",7),t._uU(14,"\n \n "),t.TgZ(15,"mat-step",8),t._uU(16,"\n \n "),t.YNc(17,zc,1,0,"ng-template",9),t._uU(18,"\n \n "),t.TgZ(19,"mifosx-savings-account-details-step",10),t.NdJ("savingsAccountProductTemplate",function(c){return a.setTemplate(c)}),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n \n "),t.qZA(),t._uU(22,"\n \n "),t.TgZ(23,"mat-step",8),t._uU(24,"\n \n "),t.YNc(25,Wc,1,0,"ng-template",9),t._uU(26,"\n \n "),t._UZ(27,"mifosx-savings-account-terms-step",11),t._uU(28,"\n \n "),t.qZA(),t._uU(29,"\n \n "),t.TgZ(30,"mat-step"),t._uU(31,"\n \n "),t.YNc(32,Vc,1,0,"ng-template",9),t._uU(33,"\n \n "),t.TgZ(34,"mifosx-savings-account-charges-step",12),t._uU(35,"\n "),t.qZA(),t._uU(36,"\n \n "),t.qZA(),t._uU(37,"\n \n "),t.YNc(38,Xc,7,4,"mat-step",13),t._uU(39,"\n \n "),t.qZA(),t._uU(40,"\n \n "),t.qZA(),t._uU(41,"\n ")),2&e&&(t.xp6(15),t.Q6J("stepControl",a.savingsAccountDetailsForm),t.xp6(4),t.Q6J("savingsAccountTemplate",a.savingsAccountTemplate),t.xp6(4),t.Q6J("stepControl",a.savingsAccountTermsForm),t.xp6(4),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate),t.xp6(7),t.Q6J("savingsAccountProductTemplate",a.savingsAccountProductTemplate)("savingsAccountTemplate",a.savingsAccountTemplate)("currencyCode",a.savingsAccountTermsForm.get("currencyCode"))("activeClientMembers",a.activeClientMembers),t.xp6(4),t.Q6J("ngIf",a.savingsAccountFormValid))},dependencies:[f.O5,P.BN,b.C0,b.VY,b.Vq,b.z9,k,J,Y,K]}),n})();function ts(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Client Details "),t.qZA())}function ns(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij("\n ",e.displayName," ")}}function es(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Saving Account "),t.qZA())}function as(n,o){if(1&n&&(t.TgZ(0,"td",14),t._UZ(1,"i",15),t.ALo(2,"statusLookup"),t._uU(3),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngClass",t.lcZ(2,3,e.status.code))("matTooltip",e.status.value),t.xp6(2),t.hij(" ",e.accountNo," ")}}function os(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Products "),t.qZA())}function is(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e.productName," ")}}function cs(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Balance "),t.qZA())}function ss(n,o){1&n&&(t.TgZ(0,"td",14),t._uU(1," "),t.qZA())}function rs(n,o){1&n&&(t.TgZ(0,"th",13),t._uU(1," Actions "),t.qZA())}const us=function(n){return["../","savings-accounts",n,"actions","Deposit"]};function ls(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",18),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,us,e.id))}}const gs=function(n){return["../","savings-accounts",n,"actions","Withdrawal"]};function ms(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",19),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,gs,e.id))}}const ps=function(n){return["../","savings-accounts",n,"actions","Approve"]};function _s(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",20),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,ps,e.id))}}const ds=function(n){return["../../../","savings-accounts",n,"actions","Undo Approval"]};function fs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",21),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,ds,e.id))}}const As=function(n){return["../../",n,"actions","Activate"]};function hs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(i){t.CHM(e);const c=t.oxw(2);return t.KtG(c.routeEdit(i))}),t._uU(1,"\n "),t._UZ(2,"i",22),t._uU(3,"\n "),t.qZA()}if(2&n){const e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(1,As,e.id))}}function vs(n,o){if(1&n&&(t.TgZ(0,"td",14),t._uU(1,"\n "),t.YNc(2,ls,4,3,"button",16),t._uU(3,"\n "),t.YNc(4,ms,4,3,"button",16),t._uU(5,"\n "),t.YNc(6,_s,4,3,"button",16),t._uU(7,"\n "),t.YNc(8,fs,4,3,"button",16),t._uU(9,"\n "),t.YNc(10,hs,4,3,"button",16),t._uU(11,"\n "),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.active),t.xp6(2),t.Q6J("ngIf",e.status.submittedAndPendingApproval),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active),t.xp6(2),t.Q6J("ngIf",!e.status.submittedAndPendingApproval&&!e.status.active)}}function Cs(n,o){1&n&&t._UZ(0,"tr",23)}const xs=function(n){return["../../",n,"transactions"]};function Ts(n,o){1&n&&t._UZ(0,"tr",24),2&n&&t.Q6J("routerLink",t.VKq(1,xs,o.$implicit.id))}const Us=function(){return[10,20,25]};let Zs=(()=>{class n{constructor(e,a){this.route=e,this.dialog=a,this.displayedColumns=["clientDetails","savingsAccount","products","balance","Actions"],this.route.data.subscribe(i=>{this.gsimOverviewData=i.gsimData[0].childGSIMAccounts,this.savingAccountData=i.savingAccountData,this.groupsData=i.groupsData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new _.by(this.gsimOverviewData)}routeEdit(e){e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-gsim-account"]],viewQuery:function(e,a){if(1&e&&t.Gf(H.NW,7),2&e){let i;t.iGM(i=t.CRH())&&(a.paginator=i.first)}},decls:52,vars:5,consts:[[1,"tab-container","mat-typography"],[2,"margin-top","5px"],["mat-table","",3,"dataSource"],["matColumnDef","clientDetails"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","savingsAccount"],["matColumnDef","products"],["matColumnDef","balance"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink","click",4,"ngIf"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink","click"],["matTooltip","Deposit",1,"fa","fa-arrow-up"],["matTooltip","Withdraw",1,"fa","fa-arrow-down"],["matTooltip","Approve",1,"fa","fa-check"],["matTooltip","Undo Approval",1,"fa","fa-undo"],["matTooltip","Activate",1,"fa","fa-check-circle"],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n\n "),t.TgZ(2,"div",1),t._uU(3,"\n \n "),t.TgZ(4,"h2"),t._uU(5," GSIM Account Overview"),t.qZA(),t._uU(6,"\n \n "),t.TgZ(7,"table",2),t._uU(8,"\n \n "),t.ynx(9,3),t._uU(10,"\n "),t.YNc(11,ts,2,0,"th",4),t._uU(12,"\n "),t.YNc(13,ns,2,1,"td",5),t._uU(14,"\n "),t.BQk(),t._uU(15,"\n \n "),t.ynx(16,6),t._uU(17,"\n "),t.YNc(18,es,2,0,"th",4),t._uU(19,"\n "),t.YNc(20,as,4,5,"td",5),t._uU(21,"\n "),t.BQk(),t._uU(22,"\n \n "),t.ynx(23,7),t._uU(24,"\n "),t.YNc(25,os,2,0,"th",4),t._uU(26,"\n "),t.YNc(27,is,2,1,"td",5),t._uU(28,"\n "),t.BQk(),t._uU(29,"\n \n "),t.ynx(30,8),t._uU(31,"\n "),t.YNc(32,cs,2,0,"th",4),t._uU(33,"\n "),t.YNc(34,ss,2,0,"td",5),t._uU(35,"\n "),t.BQk(),t._uU(36,"\n \n "),t.ynx(37,9),t._uU(38,"\n "),t.YNc(39,rs,2,0,"th",4),t._uU(40,"\n "),t.YNc(41,vs,12,5,"td",5),t._uU(42,"\n "),t.BQk(),t._uU(43,"\n \n "),t.YNc(44,Cs,1,0,"tr",10),t._uU(45,"\n "),t.YNc(46,Ts,1,3,"tr",11),t._uU(47,"\n \n "),t.qZA(),t._uU(48,"\n \n "),t._UZ(49,"mat-paginator",12),t._uU(50,"\n \n "),t.qZA(),t._uU(51,"\n "),t.qZA()),2&e&&(t.xp6(7),t.Q6J("dataSource",a.dataSource),t.xp6(37),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(2),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(3),t.Q6J("pageSizeOptions",t.DdM(4,Us)))},dependencies:[f.mk,f.O5,G.oO,x.lW,H.NW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,B.gM,l.rH,ot.F],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),n})();var z=m(69749),pt=m(89),_t=m(96545);let dt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.parent.paramMap.get("id"),i=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ft=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){return this.savingsService.getSavingsTransactionDatatables()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),tt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("clientId")||e.paramMap.get("groupId")||e.paramMap.get("centerId"),i=!(!e.paramMap.get("groupId")&&!e.paramMap.get("centerId"));return this.savingsService.getSavingsAccountTemplate(a,void 0,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),At=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(a,!0)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ht=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var bs=m(30567);let Ct=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("name"),i=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(a){case"Assign Staff":return this.savingsService.getSavingsAccountAndTemplate(i,!0);case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(i);case"Withdrawal":case"Deposit":return this.savingsService.getSavingsTransactionTemplateResource(i);case"Close":return(0,bs.D)([this.savingsService.getSavingsTransactionTemplateResource(i),this.savingsService.getSavingsAccountData(i)]);case"Apply Annual Fees":return this.savingsService.getSavingsAccountData(i);default:return}}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),xt=(()=>{class n{constructor(e,a){this.reportsService=e,this.settingsService=a}resolve(e){const a=e.paramMap.get("id");return this.reportsService.getPentahoRunReportData("Savings Transaction Receipt",{"output-type":"PDF",R_transactionId:a},"default",this.settingsService.language.code,this.settingsService.dateFormat)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(mt.F),t.LFG(U.g))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Tt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId"),i=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(a,i)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Os=m(10009),Ut=m(23325);let Zt=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.paramMap.get("groupId"),i=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(i,a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var Ps=m(37275),Ms=m(10710),ys=m(22564);let Ss=(()=>{class n{constructor(e,a,i,c){this.route=e,this.savingsService=a,this.settingsService=i,this.dialog=c,this.entityType="savings",this.route.data.subscribe(r=>{this.setSavingsDocumentsData(r.savingsDocuments)}),this.entityId=this.route.parent.snapshot.paramMap.get("savingAccountId")}ngOnInit(){}setSavingsDocumentsData(e){e.forEach(a=>{a.docUrl=this.settingsService.serverUrl+"/savings/"+a.parentEntityId+"/documents/"+a.id+"/attachment?tenantIdentifier="+Ms.N.fineractPlatformTenantId,a.fileName&&(-1!==a.fileName.toLowerCase().indexOf(".jpg")||-1!==a.fileName.toLowerCase().indexOf(".jpeg")||-1!==a.fileName.toLowerCase().indexOf(".png"))&&(a.fileIsImage=!0),a.type&&-1!==a.type.toLowerCase().indexOf("image")&&(a.fileIsImage=!0)}),this.entityDocuments=e}downloadDocument(e){this.savingsService.downloadSavingsDocument(this.entityId,e).subscribe(a=>{const i=window.URL.createObjectURL(a);window.open(i)})}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(a=>{})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(C.d),t.Y36(U.g),t.Y36(h.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-documents-tab"]],decls:3,vars:6,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDownload","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-documents-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityType",a.entityType)("entityId",a.entityId)("entityDocuments",a.entityDocuments)("callbackUpload",a.uploadDocument)("callbackDownload",a.downloadDocument)("callbackDelete",a.deleteDocument)},dependencies:[ys.k]}),n})();var qs=m(92317),Ds=m(15751);let ws=(()=>{class n{constructor(e,a,i){this.route=e,this.savingsService=a,this.authenticationService=i;const c=this.authenticationService.getCredentials();this.username=c.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(r=>{this.entityNotes=r.savingAccountNotes})}ngOnInit(){}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(a=>{this.entityNotes.push({id:a.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,a,i){this.savingsService.editSavingsNote(this.entityId,e,a).subscribe(()=>{this.entityNotes[i].note=a.note})}deleteNote(e,a){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(a,1)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(C.d),t.Y36(qs.$))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-notes-tab"]],decls:3,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(e,a){1&e&&(t.TgZ(0,"mifosx-entity-notes-tab",0),t._uU(1,"\n"),t.qZA(),t._uU(2,"\n")),2&e&&t.Q6J("entityId",a.entityId)("entityNotes",a.entityNotes)("callbackAdd",a.addNote)("callbackEdit",a.editNote)("callbackDelete",a.deleteNote)},dependencies:[Ds.P]}),n})(),Is=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ns=(()=>{class n{constructor(e){this.savingsService=e}resolve(e){const a=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(a)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.d))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fs=function(){return{confirm:!0}};let Ls=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.so))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-release-amount-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(e,a){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Release Amount"),t.qZA(),t._uU(2,"\n"),t.TgZ(3,"div",1),t._uU(4,"\n "),t.TgZ(5,"p"),t._uU(6,"Are you sure you want to release this amount ?"),t.qZA(),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n"),t.TgZ(9,"mat-dialog-actions",2),t._uU(10,"\n "),t.TgZ(11,"button",3),t._uU(12,"Cancel"),t.qZA(),t._uU(13,"\n "),t.TgZ(14,"button",4),t._uU(15,"Confirm"),t.qZA(),t._uU(16,"\n"),t.qZA(),t._uU(17,"\n")),2&e&&(t.xp6(14),t.Q6J("mat-dialog-close",t.DdM(1,Fs)))},dependencies:[x.lW,h.ZT,h.uh,h.xY,h.H8]}),n})();var ks=m(9722);function Ys(n,o){1&n&&(t.TgZ(0,"button",14),t._uU(1,"\n "),t._UZ(2,"fa-icon",15),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&n&&(t.Q6J("routerLink","edit"),t.xp6(3),t.hij("",t.lcZ(4,2,"labels.buttons.Edit"),"\n "))}function Js(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Ys,5,4,"button",13),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf","Transfer"==e.transactionData.transactionType.value||"true"==e.transactionData.reversed||3==e.transactionData.transactionType.id||17==e.transactionData.transactionType.id)}}function Qs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Js,4,1,"span",12),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Rs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.releaseAmount())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",18),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&n&&(t.xp6(3),t.hij("",t.lcZ(4,1,"labels.buttons.Release Amount"),"\n "))}function Gs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Rs,5,3,"button",16),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function Es(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.undoTransaction())}),t._uU(1,"\n "),t._UZ(2,"fa-icon",21),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&n&&(t.xp6(3),t.hij("",t.lcZ(4,1,"labels.buttons.Undo"),"\n "))}function Bs(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"\n "),t.YNc(2,Es,5,3,"button",19),t._uU(3,"\n "),t.qZA()),2&n&&(t.xp6(2),t.Q6J("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Hs(n,o){1&n&&(t.TgZ(0,"div",5),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij("\n ",t.lcZ(2,1,"labels.inputs.Note"),"\n "))}function js(n,o){if(1&n&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("\n ",e.transactionData.note,"\n ")}}function zs(n,o){if(1&n&&(t.TgZ(0,"mifosx-transaction-payment-detail",22),t._uU(1,"\n "),t.qZA()),2&n){const e=t.oxw();t.Q6J("paymentDetailData",e.transactionData.paymentDetailData)}}const Ws=function(){return["../../"]};let Vs=(()=>{class n{constructor(e,a,i,c,r,g){this.savingsService=e,this.route=a,this.dateUtils=i,this.router=c,this.dialog=r,this.settingsService=g,this.route.data.subscribe(v=>{this.accountId=this.route.parent.snapshot.params.savingAccountId,this.transactionData=v.savingsAccountTransaction})}ngOnInit(){}allowUndo(){return!(this.transactionData.reversed&&this.transactionData.transactionType.amountHold||this.transactionData.reversed)}releaseAmount(){this.dialog.open(Ls).afterClosed().subscribe(a=>{a.confirm&&this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"releaseAmount",{},this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})})}undoTransaction(){this.dialog.open(it.z).afterClosed().subscribe(a=>{if(a.confirm){const i=this.settingsService.language.code,c=this.settingsService.dateFormat,r={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),c),transactionAmount:0,dateFormat:c,locale:i};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",r,this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})}})}transactionColor(){return this.transactionData.reversed?"undo":"active"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.d),t.Y36(l.gz),t.Y36(Z.L),t.Y36(l.F0),t.Y36(h.uw),t.Y36(U.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-savings-transaction-general-tab"]],decls:73,vars:39,consts:[["fxLayoutAlign","end","fxLayoutGap","2%",1,"container","m-b-20"],[4,"ngIf"],[1,"container"],["fxLayout","row wrap",1,"content"],["fxFlex","100%",3,"ngClass"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],["fxFlex","50%","class","mat-body-strong",4,"ngIf"],["fxFlex","50%",4,"ngIf"],[3,"paymentDetailData",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center","fxLayoutGap","2%","fxLayout.lt-md","column"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"],[3,"paymentDetailData"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t._uU(1,"\n "),t.YNc(2,Qs,4,1,"span",1),t._uU(3,"\n "),t.YNc(4,Gs,4,1,"span",1),t._uU(5,"\n "),t.YNc(6,Bs,4,1,"span",1),t._uU(7,"\n"),t.qZA(),t._uU(8,"\n\n"),t.TgZ(9,"div",2),t._uU(10,"\n\n "),t.TgZ(11,"mat-card"),t._uU(12,"\n\n "),t.TgZ(13,"mat-card-content"),t._uU(14,"\n\n "),t.TgZ(15,"div",3),t._uU(16,"\n "),t.TgZ(17,"div",4),t._uU(18,"\n "),t.qZA(),t._uU(19,"\n\n "),t.TgZ(20,"div",5),t._uU(21),t.ALo(22,"translate"),t.qZA(),t._uU(23,"\n\n "),t.TgZ(24,"div",6),t._uU(25),t.qZA(),t._uU(26,"\n\n "),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._uU(30,"\n\n "),t.TgZ(31,"div",6),t._uU(32),t.qZA(),t._uU(33,"\n\n "),t.TgZ(34,"div",5),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n\n "),t.TgZ(38,"div",6),t._uU(39),t.ALo(40,"dateFormat"),t.qZA(),t._uU(41,"\n\n "),t.TgZ(42,"div",5),t._uU(43),t.ALo(44,"translate"),t.qZA(),t._uU(45,"\n\n "),t.TgZ(46,"div",6),t._uU(47),t.qZA(),t._uU(48,"\n\n "),t.TgZ(49,"div",5),t._uU(50),t.ALo(51,"translate"),t.qZA(),t._uU(52,"\n\n "),t.TgZ(53,"div",6),t._uU(54),t.ALo(55,"currency"),t.qZA(),t._uU(56,"\n\n "),t.YNc(57,Hs,3,3,"div",7),t._uU(58,"\n\n "),t.YNc(59,js,2,1,"div",8),t._uU(60,"\n\n "),t.YNc(61,zs,2,1,"mifosx-transaction-payment-detail",9),t._uU(62,"\n\n "),t.qZA(),t._uU(63,"\n\n "),t.TgZ(64,"div",10),t._uU(65,"\n "),t.TgZ(66,"button",11),t._uU(67),t.ALo(68,"translate"),t.qZA(),t._uU(69,"\n "),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n\n "),t.qZA(),t._uU(72,"\n\n"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",!(!1===a.transactionData.interestedPostedAsOn&&(17===a.transactionData.transactionType.id||3===a.transactionData.transactionType.id))),t.xp6(2),t.Q6J("ngIf",!a.transactionData.reversed&&a.transactionData.transactionType.amountHold),t.xp6(2),t.Q6J("ngIf",a.allowUndo()),t.xp6(11),t.Q6J("ngClass",a.transactionColor()),t.xp6(4),t.hij("\n ",t.lcZ(22,19,"labels.inputs.Id"),"\n "),t.xp6(4),t.hij("\n ",a.transactionData.id,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(29,21,"labels.inputs.Transaction Type"),"\n "),t.xp6(4),t.hij("\n ",a.transactionData.transactionType.value,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(36,23,"labels.inputs.Transaction Date"),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(40,25,a.transactionData.date),"\n "),t.xp6(4),t.hij("\n ",t.lcZ(44,27,"labels.inputs.Currency"),"\n "),t.xp6(4),t.hij("\n ",a.transactionData.currency.displayLabel,"\n "),t.xp6(3),t.hij("\n ",t.lcZ(51,29,"labels.inputs.Amount"),"\n "),t.xp6(4),t.hij("\n ",t.gM2(55,31,a.transactionData.amount,a.transactionData.currency.code,"symbol-narrow","1.2-2"),"\n "),t.xp6(3),t.Q6J("ngIf",a.transactionData.note),t.xp6(2),t.Q6J("ngIf",a.transactionData.note),t.xp6(2),t.Q6J("ngIf",a.transactionData.paymentDetailData),t.xp6(5),t.Q6J("routerLink",t.DdM(38,Ws)),t.xp6(1),t.Oqu(t.lcZ(68,36,"labels.buttons.Back")))},dependencies:[f.mk,f.O5,P.BN,u.xw,u.SQ,u.Wh,u.yH,G.oO,x.lW,d.a8,d.dn,ks.B,S.A,l.rH,f.H9,T.X$,q.E],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px 90px;border-color:transparent transparent #1fb050 transparent;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0 90px;border-color:#b4d575 transparent transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.column-mandatory[_ngcontent-%COMP%]{color:#00ce00;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#00ce00!important;background-color:#00ce00;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:.01071em;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;white-space:pre-wrap;color:#fff!important;background-color:#4461e2b3;border:1px solid #1a34a6;max-width:400px!important;white-space:pre-line!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-r-10[_ngcontent-%COMP%]{padding-right:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-l-10[_ngcontent-%COMP%]{padding-left:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#00ce00}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;color:#000000de;line-height:1.5;font-family:Roboto,Helvetica Neue,sans-serif}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.active[_ngcontent-%COMP%]{background-color:#00ce00;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]}),n})();var $s=m(73162);function Xs(n,o){1&n&&t._UZ(0,"mat-progress-bar",2)}function Ks(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",12),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function tr(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function nr(n,o){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"formatNumber"),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij("",t.lcZ(2,1,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function er(n,o){1&n&&(t.TgZ(0,"span"),t._uU(1,"0 %"),t.qZA())}function ar(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",10),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.TgZ(10,"tr"),t._uU(11,"\n "),t.TgZ(12,"td"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._uU(15,"\n "),t.YNc(16,Ks,4,1,"td",7),t._uU(17,"\n "),t.YNc(18,tr,3,3,"td",7),t._uU(19," \n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td"),t._uU(28),t.ALo(29,"dateFormat"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.TgZ(32,"tr"),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37,"\n "),t.TgZ(38,"td"),t._uU(39),t.qZA(),t._uU(40,"\n "),t.qZA(),t._uU(41,"\n "),t.TgZ(42,"tr"),t._uU(43,"\n "),t.TgZ(44,"td"),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47,"\n "),t.TgZ(48,"td"),t._uU(49),t.qZA(),t._uU(50,"\n "),t.qZA(),t._uU(51,"\n "),t.TgZ(52,"tr"),t._uU(53,"\n "),t.TgZ(54,"td"),t._uU(55),t.ALo(56,"translate"),t.qZA(),t._uU(57,"\n "),t.TgZ(58,"td",11),t._uU(59,"\n "),t.YNc(60,nr,3,3,"span",7),t._uU(61,"\n "),t.YNc(62,er,2,0,"span",7),t._uU(63,"\n "),t.qZA(),t._uU(64,"\n "),t.qZA(),t._uU(65,"\n "),t.qZA(),t._uU(66,"\n "),t.qZA(),t._uU(67,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,14,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(14,16,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId),t.xp6(6),t.Oqu(t.lcZ(25,18,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(29,20,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(36,22,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(46,24,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),t.xp6(6),t.Oqu(t.lcZ(56,26,"labels.inputs.Nominal Interest Rate")),t.xp6(5),t.Q6J("ngIf",e.savingsAccountData.nominalAnnualInterestRate),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.nominalAnnualInterestRate)}}function or(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div"),t._uU(2,"\n "),t.TgZ(3,"h4",10),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.TgZ(17,"td"),t._uU(18),t.qZA(),t._uU(19,"\n "),t.qZA(),t._uU(20,"\n "),t.TgZ(21,"tr"),t._uU(22,"\n "),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t._uU(26,"\n "),t.TgZ(27,"td",11),t._uU(28),t.ALo(29,"currency"),t.qZA(),t._uU(30,"\n "),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.qZA(),t._uU(33,"\n "),t.qZA(),t._uU(34,"\n ")),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"labels.heading.Savings Details")),t.xp6(10),t.Oqu(t.lcZ(15,7,"labels.inputs.Field Officer")),t.xp6(4),t.Oqu(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),t.xp6(6),t.Oqu(t.lcZ(25,9,"labels.inputs.Balance")),t.xp6(4),t.Oqu(t.gM2(29,11,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2"))}}function ir(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Deposits")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function cr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function sr(n,o){if(1&n&&(t.TgZ(0,"div"),t._uU(1,"\n "),t.TgZ(2,"h4",10),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,ir,10,9,"tr",7),t._uU(11,"\n "),t.YNc(12,cr,10,9,"tr",7),t._uU(13,"\n "),t.qZA(),t._uU(14,"\n "),t.qZA(),t._uU(15,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,3,"labels.heading.Performance History")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalDeposits),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0)}}function rr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Total Withdrawls")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function ur(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawals Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currency.code,"symbol-narrow","1.2-2"))}}function lr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fees")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalAnnualFees,e.currency.code,"symbol-narrow","1.2-2"))}}function gr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function mr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function pr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Earned Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function _r(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest On Overdraft")),t.xp6(4),t.hij("\n ",t.gM2(8,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currency.code,"symbol-narrow","1.2-2"),"")}}function dr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Overdraft Interest Not Posted")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function fr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Nominal Interest Rate")),t.xp6(4),t.hij("",t.lcZ(8,4,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Ar(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withdrawal Fee")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.withdrawalFee.amount,e.currency.code,"symbol-narrow","1.2-2"))}}function hr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Last Active Transaction Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.lastActiveTransactionDate))}}function vr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Substatus")),t.xp6(4),t.Oqu(e.savingsAccountData.subStatus.value)}}function Cr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Inactive")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToInactive)}}function xr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Dormancy")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToDormancy)}}function Tr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Days to Escheat")),t.xp6(4),t.Oqu(e.savingsAccountData.daysToEscheat)}}function Ur(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Annual Fee")),t.xp6(4),t.hij("\n ",t.gM2(8,4,e.savingsAccountData.annualFee.amount,e.currency.code,"symbol-narrow","1.2-2"),"\n ")}}function Zr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td",11),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Over Draft Limit")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.overdraftLimit,e.currency.code,"symbol-narrow","1.2-2"))}}function br(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"currency"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Overdraft Required for Interest Calculation")),t.xp6(4),t.Oqu(t.gM2(8,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currency.code,"symbol-narrow","1.2-2"))}}function Or(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Min Balance Required for Interest Calculation")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minBalanceForInterestCalculation))}}function Pr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"formatNumber"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.minRequiredBalance))}}function Mr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"yesNo"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Enforce Minimum Required Balance")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.enforceMinRequiredBalance))}}function yr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"dateFormat"),t.qZA(),t._uU(9,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Interest Recalculation Date")),t.xp6(4),t.Oqu(t.lcZ(8,4,e.savingsAccountData.summary.lastInterestCalculationDate))}}function Sr(n,o){if(1&n&&(t.TgZ(0,"a"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(t.gM2(2,1,e.savingsAccountData.onHoldFunds,e.currency.code,"symbol-narrow","1.2-2"))}}function qr(n,o){1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t.YNc(7,Sr,3,6,"a",14),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.On Hold Funds")),t.xp6(4),t.Q6J("mifosxHasPermission","READ_SAVINGSACCOUNT"))}function Dr(n,o){if(1&n&&(t.TgZ(0,"tr"),t._uU(1,"\n "),t.TgZ(2,"td"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"td"),t._uU(7),t.qZA(),t._uU(8,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(t.lcZ(4,2,"labels.inputs.Withhold Tax Group")),t.xp6(4),t.Oqu(e.savingsAccountData.taxGroup.name)}}function wr(n,o){if(1&n&&(t.TgZ(0,"div",13),t._uU(1,"\n "),t.TgZ(2,"h4",10),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5,"\n "),t.TgZ(6,"table"),t._uU(7,"\n "),t.TgZ(8,"tbody"),t._uU(9,"\n "),t.YNc(10,rr,10,9,"tr",7),t._uU(11,"\n "),t.YNc(12,ur,10,9,"tr",7),t._uU(13,"\n "),t.YNc(14,lr,10,9,"tr",7),t._uU(15,"\n "),t.YNc(16,gr,10,9,"tr",7),t._uU(17,"\n "),t.YNc(18,mr,10,9,"tr",7),t._uU(19,"\n "),t.YNc(20,pr,10,9,"tr",7),t._uU(21,"\n "),t.YNc(22,_r,10,9,"tr",7),t._uU(23,"\n "),t.YNc(24,dr,10,9,"tr",7),t._uU(25,"\n "),t.YNc(26,fr,10,6,"tr",7),t._uU(27,"\n "),t.TgZ(28,"tr"),t._uU(29,"\n "),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"translate"),t.qZA(),t._uU(33,"\n "),t.TgZ(34,"td"),t._uU(35),t.ALo(36,"translateCatalog"),t.qZA(),t._uU(37,"\n "),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"tr"),t._uU(40,"\n "),t.TgZ(41,"td"),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44,"\n "),t.TgZ(45,"td"),t._uU(46),t.ALo(47,"translateCatalog"),t.qZA(),t._uU(48,"\n "),t.qZA(),t._uU(49,"\n "),t.TgZ(50,"tr"),t._uU(51,"\n "),t.TgZ(52,"td"),t._uU(53),t.ALo(54,"translate"),t.qZA(),t._uU(55,"\n "),t.TgZ(56,"td"),t._uU(57),t.ALo(58,"translateCatalog"),t.qZA(),t._uU(59,"\n "),t.qZA(),t._uU(60,"\n "),t.TgZ(61,"tr"),t._uU(62,"\n "),t.TgZ(63,"td"),t._uU(64),t.ALo(65,"translate"),t.qZA(),t._uU(66,"\n "),t.TgZ(67,"td"),t._uU(68),t.ALo(69,"translateCatalog"),t.qZA(),t._uU(70,"\n "),t.qZA(),t._uU(71,"\n "),t.YNc(72,Ar,10,9,"tr",7),t._uU(73,"\n "),t.YNc(74,hr,10,6,"tr",7),t._uU(75,"\n "),t.YNc(76,vr,9,4,"tr",7),t._uU(77,"\n "),t.YNc(78,Cr,9,4,"tr",7),t._uU(79,"\n "),t.YNc(80,xr,9,4,"tr",7),t._uU(81,"\n "),t.YNc(82,Tr,9,4,"tr",7),t._uU(83,"\n "),t.YNc(84,Ur,10,9,"tr",7),t._uU(85,"\n "),t.YNc(86,Zr,10,9,"tr",7),t._uU(87,"\n "),t.YNc(88,br,10,9,"tr",7),t._uU(89,"\n "),t.YNc(90,Or,10,6,"tr",7),t._uU(91,"\n "),t.YNc(92,Pr,10,6,"tr",7),t._uU(93,"\n "),t.YNc(94,Mr,10,6,"tr",7),t._uU(95,"\n "),t.YNc(96,yr,10,6,"tr",7),t._uU(97,"\n "),t.YNc(98,qr,9,4,"tr",7),t._uU(99,"\n "),t.YNc(100,Dr,9,4,"tr",7),t._uU(101,"\n "),t.qZA(),t._uU(102,"\n "),t.qZA(),t._uU(103,"\n "),t.qZA()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,33,"labels.heading.Account Summary")),t.xp6(7),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawals),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalWithdrawalFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalAnnualFees),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestEarned>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalInterestPosted),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted>=0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.totalOverdraftInterestDerived),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.interestNotPosted<0),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.nominalAnnualInterestRate),t.xp6(5),t.Oqu(t.lcZ(32,35,"labels.inputs.Interest Compounding Period")),t.xp6(4),t.Oqu(t.lcZ(36,37,e.savingsAccountData.interestCompoundingPeriodType.value)),t.xp6(7),t.Oqu(t.lcZ(43,39,"labels.inputs.Interest Posting Period")),t.xp6(4),t.Oqu(t.lcZ(47,41,e.savingsAccountData.interestPostingPeriodType.value)),t.xp6(7),t.Oqu(t.lcZ(54,43,"labels.inputs.Interest Calculated Using")),t.xp6(4),t.Oqu(t.lcZ(58,45,e.savingsAccountData.interestCalculationType.value)),t.xp6(7),t.Oqu(t.lcZ(65,47,"labels.inputs.Days in Year")),t.xp6(4),t.Oqu(t.lcZ(69,49,e.savingsAccountData.interestCalculationDaysInYearType.value)),t.xp6(4),t.Q6J("ngIf",e.savingsAccountData.withdrawalFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.lastActiveTransactionDate),t.xp6(2),t.Q6J("ngIf",0!==e.savingsAccountData.subStatus.id),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToInactive),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToDormancy),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.daysToEscheat),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.annualFee),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.allowOverdraft),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minBalanceForInterestCalculation),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.minRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.enforceMinRequiredBalance),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.summary.lastInterestCalculationDate),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.onHoldFunds),t.xp6(2),t.Q6J("ngIf",e.savingsAccountData.withHoldTax)}}function Ir(n,o){if(1&n&&(t.TgZ(0,"td"),t._uU(1,"\n "),t._UZ(2,"mifosx-external-identifier",12),t._uU(3,"\n "),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.s9C("externalId",e.savingsAccountData.externalId)}}function Nr(n,o){1&n&&(t.TgZ(0,"td"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"labels.inputs.Not Provided")))}function Fr(n,o){if(1&n&&(t._uU(0,"\n "),t.TgZ(1,"div",13),t._uU(2,"\n "),t.TgZ(3,"h4",10),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._uU(6,"\n "),t.TgZ(7,"table"),t._uU(8,"\n "),t.TgZ(9,"tbody"),t._uU(10,"\n "),t.TgZ(11,"tr"),t._uU(12,"\n "),t.TgZ(13,"td"),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._uU(16,"\n "),t.YNc(17,Ir,4,1,"td",7),t._uU(18,"\n "),t.YNc(19,Nr,3,3,"td",7),t._uU(20,"\n "),t.qZA(),t._uU(21,"\n "),t.TgZ(22,"tr"),t._uU(23,"\n "),t.TgZ(24,"td"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t._uU(27,"\n "),t.TgZ(28,"td"),t._uU(29),t.ALo(30,"dateFormat"),t.qZA(),t._uU(31,"\n "),t.qZA(),t._uU(32,"\n "),t.TgZ(33,"tr"),t._uU(34,"\n "),t.TgZ(35,"td"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38,"\n "),t.TgZ(39,"td"),t._uU(40),t.qZA(),t._uU(41,"\n "),t.qZA(),t._uU(42,"\n "),t.qZA(),t._uU(43,"\n "),t.qZA(),t._uU(44,"\n "),t.qZA(),t._uU(45,"\n ")),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,9,"labels.heading.Account Summary")),t.xp6(10),t.Oqu(t.lcZ(15,11,"labels.inputs.External Id")),t.xp6(3),t.Q6J("ngIf",e.savingsAccountData.externalId),t.xp6(2),t.Q6J("ngIf",!e.savingsAccountData.externalId),t.xp6(6),t.Oqu(t.lcZ(26,13,"labels.inputs.Activated On")),t.xp6(4),t.Oqu(e.savingsAccountData.timeline.activatedOnDate?t.lcZ(30,15,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"),t.xp6(7),t.Oqu(t.lcZ(37,17,"labels.inputs.Currency")),t.xp6(4),t.AsE("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]")}}function Lr(n,o){if(1&n&&(t.TgZ(0,"div",3),t._uU(1,"\n\n "),t.TgZ(2,"div",4),t._uU(3,"\n "),t.YNc(4,ar,68,28,"div",5),t._uU(5,"\n\n "),t.YNc(6,or,35,16,"ng-template",null,6,t.W1O),t._uU(8,"\n\n "),t.YNc(9,sr,16,5,"div",7),t._uU(10,"\n "),t.qZA(),t._uU(11,"\n\n "),t.YNc(12,wr,104,51,"div",8),t._uU(13,"\n\n "),t.YNc(14,Fr,46,19,"ng-template",null,9,t.W1O),t._uU(16,"\n\n"),t.qZA()),2&n){const e=t.MAs(7),a=t.MAs(15),i=t.oxw();t.xp6(4),t.Q6J("ngIf",!i.savingsAccountData.status.rejected&&!i.savingsAccountData.status.submittedAndPendingApproval)("ngIfElse",e),t.xp6(5),t.Q6J("ngIf",!i.savingsAccountData.status.rejected&&!i.savingsAccountData.status.submittedAndPendingApproval),t.xp6(3),t.Q6J("ngIf",i.isActive)("ngIfElse",a)}}const Yr=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:nc,resolve:{savingsAccountTemplate:tt}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:en,resolve:{savingsAccountData:z.X,savingsDatatables:_t.N},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:(()=>{class n{constructor(e,a){this.route=e,this.router=a,this.isLoading=!0,this.isActive=!1,this.route.parent.parent.data.subscribe(i=>{this.savingsAccountData=i.savingsAccountData,this.currency=this.savingsAccountData.currency,this.isLoading=!1,this.isActive="Active"===this.savingsAccountData.status.value}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(l.gz),t.Y36(l.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["mifosx-general-tab"]],decls:5,vars:2,consts:[["mode","indeterminate",4,"ngIf"],["class","savings-account-tables","fxLayout","row","fxLayoutGap","2%",4,"ngIf"],["mode","indeterminate"],["fxLayout","row","fxLayoutGap","2%",1,"savings-account-tables"],["fxFlex","49%","fxLayout","column","fxLayoutGap","4%"],[4,"ngIf","ngIfElse"],["alternateDetails",""],[4,"ngIf"],["fxFlex","49%",4,"ngIf","ngIfElse"],["alternateSummary",""],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],["fxFlex","49%"],[4,"mifosxHasPermission"]],template:function(e,a){1&e&&(t._uU(0,"\n"),t.YNc(1,Xs,1,0,"mat-progress-bar",0),t._uU(2,"\n\n"),t.YNc(3,Lr,17,5,"div",1),t._uU(4,"\n")),2&e&&(t.xp6(1),t.Q6J("ngIf",a.isLoading),t.xp6(2),t.Q6J("ngIf",!a.isLoading))},dependencies:[f.O5,u.xw,u.SQ,u.yH,$s.pW,V.e,S.A,f.H9,T.X$,q.E,Q.w,lt.D,D.H]}),n})()}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Sn},{path:"export",component:Dc}]},{path:"charges",component:$a,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:To,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:ws,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Is}},{path:"documents",component:Ss,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:Ns}},{path:"datatables",children:[{path:":datatableName",component:Uo,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:pt.X}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:mc,resolve:{savingsAccountAndTemplate:At}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Ac,resolve:{transactionDatatables:ft},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Vs,resolve:{savingsAccountTransaction:ht}},{path:"datatables",children:[{path:":datatableName",component:qn,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:dt}}]}]},{path:"edit",component:Rc,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:Tt}},{path:"reciept",component:yc,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:xt}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Pc,resolve:{savingsAccountData:z.X,savingsAccountCharge:vt}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:pa,resolve:{savingsAccountActionData:Ct}},{path:":savingAccountId/transfer-funds",loadChildren:()=>m.e("default-src_app_account-transfers_account-transfers_module_ts").then(m.bind(m,69193)).then(n=>n.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Kc,resolve:{groupsData:Ps.p,savingsAccountTemplate:tt}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:Zs,resolve:{gsimData:Zt,savingAccountData:z.X,groupsData:Ut.c}}]}]}]}];let Jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[z.X,_t.N,pt.X,dt,ft,tt,At,ht,vt,Ct,xt,Tt,Os.a,Ut.c,Zt],imports:[l.Bz.forChild(Yr),l.Bz]}),n})();var Qr=m(87734),Rr=m(35503),Gr=m(78434);let Er=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Qr.m,Rr.D,Gr.o,Jr]}),n})()}}]); \ No newline at end of file